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 <[EMAIL PROTECTED]> wrote:
Maybe you can try ajax4jsf list?


On 7/15/07, Brian Woolf <[EMAIL PROTECTED]> 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.
>
>


Reply via email to