This content has been marked as final.
Show 5 replies
-
1. Re: rich:inputNumberSpinner in a table
ilya_shaikovsky Apr 28, 2008 12:19 PM (in response to neilac333)please paste current code snippet.
-
2. Re: rich:inputNumberSpinner in a table
neilac333 Apr 29, 2008 12:43 AM (in response to neilac333)Thanks, Ilya, but I figured it out. It was simply a matter of using a4j:support, which I thought only applied to standard JSF components.
-
3. Re: rich:inputNumberSpinner in a table
badjan Aug 25, 2009 9:01 AM (in response to neilac333)Hi,
could you please post your solution.
I've got a similar problem an just can't find how to use a4j:support correctly.
Would be nice if you could help me :)<rich:dataTable value="#{actSoStory.soStoryAdvancedList}" var="ssa3"> <rich:column> <rich:inputNumberSpinner value="#ssa3.saPageNumber}"> <a4j:support action="updateSsaPageNum" reRender="#{flowRenderFragments}" event="onchange"/> </rich:inputNumberSpinner> </rich:column> </rich:dataTable>
Question is, how to access "ssa3"?
Normaly I would use something like:<f:setPropertyActionListener value="#{ssa3}" target="#{StoryBB.storyAdvancedSelectedRow}" />
But it is not possible to set f:setPropertyActionListener within the inputNumberSpinner.
...so I just want to update (via ajax) ssa3 when pageNum is changed by the numberSpinner.
Would be great if you or someone else could help me :)
Bests,
Jan -
4. Re: rich:inputNumberSpinner in a table
ilya_shaikovsky Aug 25, 2009 9:34 AM (in response to neilac333)But it is not possible to set f:setPropertyActionListener within the inputNumberSpinner.
But it's possible to define it inside support ;) -
5. Re: rich:inputNumberSpinner in a table
badjan Aug 25, 2009 9:58 AM (in response to neilac333)Ahh... yeah :)
It's working this way !
Thanks a lot ;)