webtier@glassfish.java.net

is this a <f:ajax> bug ?

From: <webtier_at_javadesktop.org>
Date: Fri, 22 May 2009 04:09:50 PDT

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