[jboss-user] [JBoss Seam] - Re: Ajax4JSF and s:selectItems
smithbstl
do-not-reply at jboss.com
Fri Aug 17 14:29:39 EDT 2007
agreed, all you should be rerendering is "dothis"
Here is an example that I know works from my app
<h:selectOneMenu id="departmentCode_select" value="#{departmentCode}">
| <s:selectItems label="#{deptCode.department.departmentNumber} - #{deptCode.department.departmentName}"
| value="#{departmentCodeList}"
| noSelectionLabel="(None)" var="deptCode"/>
| <s:convertEntity/>
| <a4j:support event="onchange"
| actionListener="#{serviceRequestManager.fillDepartmentSectionList}"
| ajaxSingle="true" reRender="departmentSection_select"/>
| </h:selectOneMenu>
| <h:outputLabel for="departmentSection_select" value="#{messages['AssignmentList.departmentSection']}"/>
| <h:selectOneMenu id="departmentSection_select" value="#{departmentSection}">
| <s:selectItems label="#{deptSection.departmentSectionName}"
| value="#{departmentSectionList}"
| noSelectionLabel="(None)" var="deptSection"/>
| <s:convertEntity/>
| </h:selectOneMenu>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075329#4075329
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075329
More information about the jboss-user
mailing list