-
1. Re: DataTable command link selecting the row
healeyb Dec 6, 2011 9:48 AM (in response to jlpktnst)I think this is a bug, and if I'm right the workaround is to use an action= rather than an actionListener.
Can you give this a try?
-
2. Re: DataTable command link selecting the row
paul.dijou Dec 6, 2011 9:57 AM (in response to jlpktnst)1 of 1 people found this helpfulHi,
Why don't you use an "action" instead of an "actionListener" ? Since "actionListener" is executed during an earlier JSF life cycle phase than "action", probably that the setPropertyActionListener happens between both, so using "action" will solve your problem.
If you really can't use "action", here is a blog entry about the same problem and a workaround : http://codedrawer.wordpress.com/2011/08/25/jsf-actionlistener-and-fsetpropertyactionlistener-wont-work-together/
Regards,
Paul.
-
3. Re: DataTable command link selecting the row
jlpktnst Dec 6, 2011 10:20 AM (in response to jlpktnst)Thanks both.
I am not sure whether the difference will matter to me, but for now I will stick with action. Seems to work just fine.
I guess I was under impression that actionListener was the proper way to go since action can return url for redirection... apparently I was wrong.
p.s. funny thing I cannot mark more than one post as "correct answer". I guess people making this forum weren't really philosophical.