webtier@glassfish.java.net

Re: [webtier] is this a <f:ajax> bug ?

From: Jim Driscoll <Jim.Driscoll_at_Sun.COM>
Date: Fri, 22 May 2009 18:32:05 -0700

Though I should add, I'd really like to figure out what's happening, so
please let us know.

One thing that we *really* need to work on post-beta is better error
reporting, though we're restricted a bit by what the spec requires.

And if you can separate out the code enough for it to be small (couple
100 lines, tops), I could also take a look at it.

Jim

On 5/22/09 9:07 AM, Jim Driscoll wrote:
> When it fails, what happens? What values are you setting things to?
>
> when you remove the ajax tag, what happens?
>
> Have you tried debugging the problem? Have you used firebug?
>
> Is there anything in the server log?
>
> Is it always failing at the same place? I.E., it's unlikely to fail from
> four - it's more likely to fail on "delete".
>
> This is kinda like saying "my car stops when I go up hills, what's
> wrong?" without more information, it's impossible to say.
>
> Jim
>
> On 5/22/09 4:09 AM, webtier_at_javadesktop.org wrote:
>> hello,
>> I try to play around with JSF 2.0 and have the following problem in
>> changing
>> the locale with ajax. The following code works fine
>>
>> <h:body>
>> <f:view locale="#{myLocaleHandler.locale}">
>> <h:outputScript name="ajax.js" library="javax.faces" target="head"/>
>> <h:form id="form">
>> <h:commandButton id="change" value="ajax"
>> actionListener="#{myLocaleHandler.toggle}" image="#{msg.flag}">
>> <f:ajax render="form:out form:change form:save" />
>> </h:commandButton>
>>
>> <h:commandButton id="save" value="#{msg.save}" style="width: 80px;" />
>> <h:commandButton id="delete" value="#{msg.delete}" style="width:
>> 80px;" />
>> <h:commandButton id="cancel" value="#{msg.cancel}" style="width:
>> 80px;" />
>>
>> <h:outputText id="out" value="#{myLocaleHandler.locale}" />
>>
>> <h:messages />
>> </h:form>
>> </f:view>
>> </h:body>
>>
>> however, if i add an additional component to update, for example
>> <f:ajax render="form:out form:change form:save form:delete" />
>> or want to update everything
>> <f:ajax render="@all" />
>> it fails.
>>
>> Is this a bug or am I wrong?
>>
>> regards
>>
>> Bernd
>> [Message sent by forum member 'bernd_mueller' (bernd_mueller)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=347285
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>