[jboss-user] [JBoss Seam] - Re: How to use ice:dataTable and @DataModel?

tony.herstell@gmail.com do-not-reply at jboss.com
Tue Mar 6 12:21:38 EST 2007


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



More information about the jboss-user mailing list