0 Replies Latest reply on Oct 21, 2008 12:10 PM by Leandro Hermida

    listShuttle considered invalid by EL during initial form dis

    Leandro Hermida Newbie

      Hello,

      I am a RichFaces newbie, using it with Seam and Facelets. I have a problem in that <rich:listShuttle> is always considered invalid by EL when I display my form and "decorate" each form field input. All the other form field inputs are fine. Does anyone have any idea why, during initial form display is listShuttle considered invalid when evaluated by EL?

      Here is my formFieldDecorate.xhtml (very typical):

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
      
       <div class="entry #{invalid ? 'errorEntry' : ''}">
       <s:div styleClass="errorMessage" rendered="#{invalid}">
       <h:panelGrid columns="2" cellpadding="0" cellspacing="0" border="0">
       <h:graphicImage value="/img/attention.gif"
       width="18" height="18"
       styleClass="attentionImage"/>
       <s:span styleClass="attentionMessage"> <s:message/></s:span>
       </h:panelGrid>
       </s:div>
       <div class="label">
       <ui:insert name="label"/>
       <s:span styleClass="required" rendered="#{required}">*</s:span>:
       </div>
       <div class="input">
       <s:validateAll>
       <ui:insert/>
       </s:validateAll>
       </div>
       </div>
      
      </ui:composition>


      And here is the form itself:

      <h:form>
       <s:decorate id="investigationNameDecorate" template="/layout/formFieldDecorate.xhtml">
       <ui:define name="label">Name</ui:define>
       <h:inputText tabindex="1" size="60" maxlength="100" required="true" value="#{investigation.name}" />
       </s:decorate>
       <s:decorate id="investigationStartDateDecorate" template="/layout/formFieldDecorate.xhtml">
       <ui:define name="label">Start Date</ui:define>
       <rich:calendar value="#{investigation.start}" popup="true"
       datePattern="MMM dd, yyyy HH:mm" showApplyButton="false" />
       </s:decorate>
       <s:decorate id="investigationEndDateDecorate" template="/layout/formFieldDecorate.xhtml">
       <ui:define name="label">End Date</ui:define>
       <rich:calendar value="#{investigation.end}" popup="true"
       datePattern="MMM dd, yyyy HH:mm" showApplyButton="false" />
       </s:decorate>
       <s:decorate id="investigationTypesDecorate" template="/layout/formFieldDecorate.xhtml">
       <ui:define name="label">Types</ui:define>
       <rich:listShuttle listsHeight="200"
       sourceValue="#{investigationCreateAction.availableInvestigationTypes}"
       targetValue="#{investigationCreateAction.selectedInvestigationTypes}"
       sourceCaptionLabel="Available Types"
       targetCaptionLabel="Selected Types" orderControlsVisible="false"
       fastOrderControlsVisible="false" converter="ontologyTermDTOConverter"
       var="type">
       <rich:column width="18">
       <h:graphicImage value="/img/ico_common.gif" />
       </rich:column>
       <rich:column>
       <h:outputText value="#{type.term}" />
       </rich:column>
       </rich:listShuttle>
       </s:decorate>
       <h:commandLink id="create" action="#{investigationCreateAction.create}" />
      </h:form>