This content has been marked as final.
Show 2 replies
-
1. Re: extDT with a4j:support onselectionchange not binding var
pkawiak Oct 10, 2008 4:10 AM (in response to anders.norgaard)"biehl" wrote:
This is a bug, right?
I don't really think so.
Judging from your code I suspect you would like to have selected row passed
to an action method, but it's not the way to do it. A versionUpdated method receives fw object, but please notice that it is called INSIDE a column component. As far as I know var attribute holds an ACTUAL list item, and so the inplaceInput in the second row will have second item passed into the method. As you are using var outside of column component, the behaviour can be hard to determine - what item do you suspect to get there? The selected one?
In your action method you can check firmwaremanager.selection object. It should contain selected items' keys, which you can use to retrieve them from your data model. -
2. Re: extDT with a4j:support onselectionchange not binding var
anders.norgaard Oct 15, 2008 10:30 AM (in response to anders.norgaard)Yeah, I was expecting the selected one. As a parallel to rich:suggestionbox which works great as
<rich:suggestionbox for="cpevendornameInput" suggestionAction="#{firmwaremanager.autocompleteVendor()}" var="vendor" id="fwvendorsuggestion" frequency="0"> <h:column> <h:outputText value="#{vendor.name}"/> </h:column> <a4j:support event="onselect" action="#{firmwaremanager.setCpeVendor(vendor)}"></a4j:support> </rich:suggestionbox>
But, yes I use the keys from firmwaremanager.selection and that works fine. So I was just wondering.
Best
Anders