-
1. Re: Is it possible to add a commandButton per row inside a l
xuantoan2510 Feb 24, 2008 9:45 PM (in response to gjeudy)i think you can use <a4j:commandLink> on each row of listshuttle
example:
<a4j:commandLink value="test" action="#{TestBean.actionSave}">
</a4j:commandLink>
you can give parameters to process for action method of your bean too.
i try to add button on row like you but it's not active. -
2. Re: Is it possible to add a commandButton per row inside a l
gjeudy Feb 26, 2008 3:24 PM (in response to gjeudy)ok yes this approach seems to work. However my backing beans are already loaded in the listShuttle it sounds like a step backward if I have to pass the id of the object on the command link to access the object details when just passing the object itself would be possible. This would be possible using:
<h:commandButton value="Edit" action="#{domRelateInstancesAction.editDomainInstanceVO(domInstVO)}"></h:commandButton>
where domInstVO is the name of the var inside the listShuttle. However this solution doesn't work inside a listShuttle but only inside dataTables.
I tried invoking a rich:modalPanel from the row and pass parameters in the javascript call but this didnt work because onshow attribute is broken in richfaces 3.1.4. See: http://jira.jboss.com/jira/browse/RF-2201?page=comments&decorator=printable
Therefore I'm left with the commandLink approach which I don't really like. -
3. Re: Is it possible to add a commandButton per row inside a l
gjeudy Feb 26, 2008 3:25 PM (in response to gjeudy)Note: I'm using Seam 2.0.1GA with richfaces otherwise the extended EL expression you see above would not be possible.
-
4. Re: Is it possible to add a commandButton per row inside a l
xuantoan2510 Feb 27, 2008 3:09 AM (in response to gjeudy)You can try with <a4j:commandButton>, it is active too with passing parameter. I'm not clear about your work but the button on listshuttle is not nice.
-
5. Re: Is it possible to add a commandButton per row inside a l
gjeudy Feb 27, 2008 12:31 PM (in response to gjeudy)Thanks xuan, I will try a4j:commandButton.
The reason why I'm using the listShuttle is to provide an easy way to relate one or more entities. The button is to edit attributes on any entities no matter the relationship. I figured it would be nicer if all functionality would be available in the same widget otherwise I would have to force the user to navigate to another page with for example a dataTable from which he would be able to edit with regular commandButtons per row.