11-16-2006 01:13 AM
11-16-2006 07:49 AM
<h:selectOneMenu … valueChangeListener="#{YourBean.somethingChanged}">
…..
</h:selectOneMenu>
<h:selectOneMenu …>
<f:selectItems value="#{YourBean.dynamicValues}" />
</h:selectOneMenu>
11-17-2006 10:15 PM
11-19-2006 10:02 PM
The JSF selectOne component (and many others) has the valueChangedListener attribute available. If you bind this to a method on your bean it will get called back when the user makes a change.
The code in the managed bean called can create the items for the other list so when the page refreshes those values are shown.
For example:
<h:selectOneMenu … valueChangeListener="#{YourBean.somethingChanged}">
…..
</h:selectOneMenu>
<h:selectOneMenu …>
<f:selectItems value="#{YourBean.dynamicValues}" />
</h:selectOneMenu>
11-21-2006 05:50 AM
11-21-2006 11:56 PM
11-23-2006 05:10 PM
12-01-2006 07:42 AM
12-02-2006 05:04 PM
05-20-2007 01:45 PM
component = context.getApplication().createComponent(UISelectOne.COMPONENT_TYPE);
…
component.setValueChangeListener(…);
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.