myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: Can't reRender h:inputText value using ajax4jsf ?
Date Sun, 15 Jul 2007 17:18:26 GMT
Why do you think it isn't working? If it is because of the value not
changing it is probably because of submitted values. I recommend that
you ALWAYS use an a4j:region if you are going to use
ajaxSingle="true":

<a4j:region>
<h:selectOneMenu value="#{myBean.selected}">
<f:selectItems value="#{myBean.myList}"/>
<a4j:support event="onchange" action="#{myBean.changeOption}"
ajaxSingle="true" reRender="myInput" />
</h:selectOneMenu>
</a4j:region>
<h:inputText id="myInput" value="#{myBean.myValue}"/>


On 7/15/07, Cagatay Civici <cagatay.civici@gmail.com> wrote:
> Maybe you can try ajax4jsf list?
>
>
> On 7/15/07, Brian Woolf <ysg208@163.com> wrote:
> >
> > Hi
> >
> > I think I've already asked, but still no idea how to update input text
> > component using h:selectOneMenu Can anyone help? Simply, reRender doesn't
> > work on this component. The code:
> >
> >
> > <h:selectOneMenu value="#{ myBean.selected}">
> > <f:selectItems value="#{myBean.myList}"/>
> > <a4j:support event="onchange" action="#{myBean.changeOption}"
> > ajaxSingle="true" reRender="myInput" />
> > </h:selectOneMenu>
> >
> > <h:inputText id="myInput" value="#{myBean.myValue}"/>
> >
> > It works with outputText, but not with inputText.
> >
> > Thanks in advance.
> > --
> > View this message in context:
> http://www.nabble.com/Can%27t-reRender-h%3AinputText-value-using-ajax4jsf---tf4081255.html#a11600039
> > Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >
> >
>
>

Mime
View raw message