This content has been marked as final.
Show 1 reply
-
1. Re: Newbie question, please clarify: Conversation Propagation with ajax?
chris.simons May 29, 2008 3:13 PM (in response to regenbahn)Good question - you do not want/need any conversation scoping on your bean for rendering the select item options. The conversation deals with page transitions - not loading data from a bean.
What you're looking for should be really simple.
Within your <rich:comboBox> you want to use an <a4j:support> that reRenders some component(s) on the 'onChange' event.
Here is an example when using an h:selectOneListBox:
<h:selectOneListbox partialSubmit="true" id="documentType" required="true" size="1" value="#{cvIdent.documentType}"> <a4j:support event="onchange" ajaxSingle="true" reRender="createIdentForm"/> <s:selectItems var="value" label="#{value.name}" value="#{valueManager.values['Document Type']}" noSelectionLabel="-- Click to View Options --"/> <s:convertEntity /> </h:selectOneListbox>