[jboss-user] [JBoss Seam] - Re: Ajax4JSF and s:selectItems

pdhaigh do-not-reply at jboss.com
Sun Aug 19 04:59:23 EDT 2007


Hi guys, 

yes, i had tried that too. Here's a stripped down example:

<h:form>
  |     <f:facet name="afterInvalidField">
  | 	<h:panelGroup><br/><s:message/></h:panelGroup>
  |     </f:facet>
  |     <f:facet name="aroundInvalidField">
  | 	<s:span styleClass="error"/>
  |     </f:facet>   		    
  | <s:validateAll>			
  | 		<h:panelGrid columns="2" columnClasses="object,value">						
  | 			<h:outputText  value="Destination: "/>
  | 			<s:decorate>
  | 				<h:selectOneMenu value="#{feedback.destination}" required="true" >
  | 					<s:selectItems value="#{destinations.resultList}" 
  | 						var="destination" 
  | 						label="#{destination.name}"
  | 						noSelectionLabel="Please select"/>
  | 					<s:convertEntity/>
  | 					<a4j:support ajaxSingle="true" event="onchange" 
  | 						actionListener="#{feedbackManager.setDestination}" reRender="regionmenu"/>
  | 				</h:selectOneMenu>
  | 			</s:decorate>
  | 			<s:decorate>
  | 				<h:selectOneMenu id="regionmenu" value="#{feedback.region}" required="true"
  | 					disabled="#{feedback.destination!=null}" >
  | 					<s:selectItems value="#{regions.resultList}" 
  | 						var="region" 
  | 						label="#{region.name}"
  | 						noSelectionLabel="Please select"/>
  | 					<s:convertEntity/>
  | 				</h:selectOneMenu>
  | 			</s:decorate>								
  | 	</h:panelGrid>
  | 	</s:validateAll>
  | </h:form>
  | 

does not work. However, changing the disabled parameter to 

disabled="#{feedback.destination==null}"

makes it work (although of course this isn't much help)

Removing the disabled statement completely does not work.

cheers

p

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075517#4075517

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075517



More information about the jboss-user mailing list