webtier@glassfish.java.net

Re: [webtier] Re: f:viewParam with required="true" problem when using field with f:ajax

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Fri, 29 Jan 2010 08:07:59 -0800

Hello,

Please log an issue [1] with a small deployable test case and we'll
investigate.

Thanks,
-rl

[1] https://javaserverfaces.dev.java.net

On 1/28/10 2:09 PM, webtier_at_javadesktop.org wrote:
> More details to help with problem investigation .
> Removing the required attribute on f:viewParam and ending up with something like
> <f:metadata>
> <f:viewParam id="entryType" name="entryType" value="#{welcome.entryType}">
> <f:event type="preValidate" listener="# {welcomeListener.preValidateParam}"/>
> </f:viewParam>
> </f:metadata>
>
> where the listener looks like this :
>
> public void preValidateViewParam(ComponentSystemEvent e) {
> UIViewParameter viewParam = (UIViewParameter) e.getComponent();
> System.out.println("preValidateViewParam"
> + viewParam.getName() + " ... " + viewParam.getSubmittedValue());
> }
>
> I noticed that for first ajax request the value is maintained , but for the second ajax request the submitted value is null . The request header is still carying my URL param but JSF is loosing it somewhere along the way.
> [Message sent by forum member 'movemountfuji' (movemountfuji_at_gmail.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=383585
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>