Seam 2.3, JSF 2.0 - U-Turn Conversation for <h: selectOneMenu / ">
Right now I am moving the main application from Seam 2.2 to Seam 2.3beta1 to get some of the benefits of JSF 2.0 and JPA 2.0. For the most part, this happens smoothly. However, some Ajax changes in JSF 2.0 and Richfaces 4.x prove to be problematic when porting code.
I have a number of components that are populated based on the contents of others. For example, the first menu selects an item category. When a value is selected, subcategories of this category are retrieved from the database and act as selection items for the second menu. This whole process is related to the discussion area. Currently, the code is as follows:
<h:selectOneMenu value="#{newObjAction.category}"
required="true"
requiredMessage="You must select a category"
style="width:300px;">
<s:selectItems var="cat"
value="#{newDesignAction.designCategories}" label="#{cat.name}"
noSelectionLabel="Select a category..."
hideNoSelectionLabel="true" />
<s:convertEntity />
<a:support event="onchange" reRender="subCategoryPanel"
limitToList="true" ajaxSingle="true" status="subCategoryStatus" />
</h:selectOneMenu>
Seam 2.2 JSF 1.2. JSF 2.0. - :
<f:ajax listener="#{newObjAction.handleCategoryChange}">
, , : . , - , , no-conversation-view-id pages.xml. <f:ajax />? ? , .
.