This content has been marked as final.
Show 5 replies
-
1. Re: How do I get the value from the JSF UIComponent?
amitev Apr 24, 2010 11:29 PM (in response to boomerbrian.brian.abston.featurenotbug.com)Cast to UIInput and
UIInput.getSubmittedValue()
-
2. Re: How do I get the value from the JSF UIComponent?
boomerbrian.brian.abston.featurenotbug.com Apr 25, 2010 6:21 PM (in response to boomerbrian.brian.abston.featurenotbug.com)Thanks Adrian. When I added the UIInput.getSubmittedValue() the value was still null but it at least verified for me that I was trying to access it correctly. I had to add ajax support to the inputSecret component so the value would get updated when leaving the field.
<a:support event="onblur" bypassUpdates="true" ajaxSingle="true" /> -
3. Re: How do I get the value from the JSF UIComponent?
boomerbrian.brian.abston.featurenotbug.com Apr 25, 2010 7:29 PM (in response to boomerbrian.brian.abston.featurenotbug.com)Spoke too soon. Still not working. I am not sure what is going on.
-
4. Re: How do I get the value from the JSF UIComponent?
boomerbrian.brian.abston.featurenotbug.com Apr 25, 2010 8:12 PM (in response to boomerbrian.brian.abston.featurenotbug.com)After some investigation it appears to be because the setters aren't called before the valueChangeListener is called. This would explain why the component value is null. Now I have to figure out a workaround.
-
5. Re: How do I get the value from the JSF UIComponent?
shravanou Apr 26, 2010 8:36 PM (in response to boomerbrian.brian.abston.featurenotbug.com)Use immediate 'true' and I think you should be all set.