Hi,
in case of the selectOneMenu there is a very nice solution in sandbox,
which works perfectly.
Have a look at the examples-page:
http://example.irian.at/example-sandbox-20061103/ajaxChildComboBox.jsf
regards,
Gerald
On 11/3/06, Stephen Osella <[EMAIL PROTECTED]> wrote:
One thing I noticed is that the backing bean's value method for var2 (whose
value is set in var1ValueChangeListener) is not being called when
re-rendering the page. That is, to set the selected item of the
SessionBean.var2Items() . I have tried this with and without
immediate="true".
How should you do this? I think it should be very simple.
<form>
<h:selectOneMenu id="var1Menu" value="#{SessionBean.var1}"
onchange="submit( );"
valueChangeListener="#{SessionBean.var1ValueChangeListener
}">
<f:selectItems value="#{SessionBean.var1Items}" />
</h:selectOneMenu>
<h:selectOneMenu id="var2Menu" value="#{SessionBean.var2}"
onchange="submit( );"
valueChangeListener="#{SessionBean.var2ValueChangeListener}">
<f:selectItems value="#{SessionBean.var2Items}" />
</h:selectOneMenu>
</form>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces