New feature: targetting arbitrary columns with table links

Discuss the bpm4struts cartridge here

me too...

Postby leifj » Wed 17. Aug 2005, 05:30

I have the same problem - after allowing maven to update my 3.1 RC1 snapshot my tablelink actions are rendered as if they used action.type=form but withouth the submit button!

More precisely: the column where the hyperlink action should be is rendered as a text-field. I have 'touched' the model and have checked (with 'vi') that the tagged values are in the new '.web.' arc. There is no submit button per row - I am seeing something in-between 'hyperlink' and 'form'. My column beans have not changed.

Am I right in that the only change I should have to do to keep the hyperlink semantics is to make sure that the tagged values are updated to their new names or is there something else that needs to change in the model?
leifj
 
Posts: 16
Joined: Mon 9. May 2005, 10:14
Location: Stockholm

Postby wouter.zoons » Wed 17. Aug 2005, 05:42

hi Leif,

take a look at the online store sample, on the second page there is a table and in the title column an action is rendered which is sending the value of the id column

this means we have a table action for the id parameter targetting the title column

I just tested it again to make sure and it's really working fine, there's must be something wrong with your model (can you check the table.columns tagged value is not in that .web. arc you talked about ? it still should be under @andromda.presentation though)

anyway, you only need to update the tablelink tagged values if you want to target a column with a different name than the event parameter
Wouter Zoons - wouter [at] andromda [dot] org
http://www.andromda.org/ - http://draftdog.blogspot.com/
wouter.zoons
AndroMDA Admin
 
Posts: 4137
Joined: Fri 6. May 2005, 18:29
Location: Brussels, Belgium

Postby leifj » Wed 17. Aug 2005, 06:11

wouter@andromda.org wrote:hi Leif,

take a look at the online store sample, on the second page there is a table and in the title column an action is rendered which is sending the value of the id column


As far as I can tell my model is identical with the exception that the action paramter (id in the stor example) and the field value ('title') are the same in my case.
leifj
 
Posts: 16
Joined: Mon 9. May 2005, 10:14
Location: Stockholm

Postby wouter.zoons » Wed 17. Aug 2005, 06:33

can you send me your model, I think I will be able to figure out what's wrong quite quickly
Wouter Zoons - wouter [at] andromda [dot] org
http://www.andromda.org/ - http://draftdog.blogspot.com/
wouter.zoons
AndroMDA Admin
 
Posts: 4137
Joined: Fri 6. May 2005, 18:29
Location: Brussels, Belgium

Postby wouter.zoons » Wed 17. Aug 2005, 08:26

Leif sent me his model

hi Leif, I found out what's wrong:

the fields for that name column in that table you mentioned are text input fields, right ? well, that's because the default widget used for event parameters is such an input field, if you want to override the widget type you'll need to use the @andromda.presentation.web.view.field.type tagged value and (for example) set it to link (for an hyperlink) just as you would for regular action forms (select, password, ...)

from the POV of the cartridge you asked for those fields to have an input field instead of a link by simple not specifying the tagged value

I do agree that having an hyperlink event modeled on the transition could imply that but the tagged value takes precendence, I guess I could update that ..
Wouter Zoons - wouter [at] andromda [dot] org
http://www.andromda.org/ - http://draftdog.blogspot.com/
wouter.zoons
AndroMDA Admin
 
Posts: 4137
Joined: Fri 6. May 2005, 18:29
Location: Brussels, Belgium

Postby leifj » Wed 17. Aug 2005, 19:24

wouter.zoons wrote:Leif sent me his model

hi Leif, I found out what's wrong:



You did indeed find the problem! Thanks!
leifj
 
Posts: 16
Joined: Mon 9. May 2005, 10:14
Location: Stockholm

Postby leifj » Wed 17. Aug 2005, 19:38

Can I suggest adding a bullet-point at the end of the list under the
"The 'id' hyperlink" example with the following (approximate) wording:

* add the @andromda.presentation.web.view.field.type=link tagged
value to the 'id' event trigger parameter. Unless you do this the
field will be rendered using the default widget which will be a text-
input field.
leifj
 
Posts: 16
Joined: Mon 9. May 2005, 10:14
Location: Stockholm

Postby wouter.zoons » Wed 17. Aug 2005, 19:46

done, thanks for the feedback
Wouter Zoons - wouter [at] andromda [dot] org
http://www.andromda.org/ - http://draftdog.blogspot.com/
wouter.zoons
AndroMDA Admin
 
Posts: 4137
Joined: Fri 6. May 2005, 18:29
Location: Brussels, Belgium


Return to Bpm4Struts cartridge

Who is online

Users browsing this forum: No registered users and 0 guests