aha. I didnt use @DataModelSelectionIndex...
I just added buttons on each line to go to actions:

  | <s:button value="#{messages.button_read}"
  |                                             
action="#{cRUDOrganisationController.startRead(the_organisation)}"/>
  | <s:button value="#{messages.button_update}"
  |                                             
action="#{cRUDOrganisationController.startUpdate(the_organisation)}"/>          
  | <s:button value="#{messages.button_delete}"
  |                                         
action="#{cRUDOrganisationController.startDelete(the_organisation)}"/>
  | <s:button value="#{messages.button_add_image}"
  |                                         
action="#{uploadController.startUpload(the_organisation)}"/>
  | 

As "the-organisation" is in scope then I pass the whole object to my action.

None of this fiddling with Indexes...

Just lasy I guess.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025494#4025494

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025494
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to