1 Reply Latest reply on May 15, 2008 8:50 AM by ilya_shaikovsky

    rich messages, modal panel and data table

      I have the following code. How do I get the rich messages to show on an invalid entry on the input Text. Any replies are appreciated.

      <rich:modalPanel id="addDetail" width="650" height="300">
       <f:facet name="header">
       <h:panelGroup>
       <h:outputText value="Add/Edit"> </h:outputText>
       </h:panelGroup>
       </f:facet>
       <f:facet name="controls">
       <h:panelGroup>
       <h:graphicImage value="/img/close.png" style="cursor:pointer" id="hideDetailLink"/>
       <rich:componentControl for="addDetail" attachTo="hideDetailLink" operation="hide" event="onclick"/>
       </h:panelGroup>
       </f:facet>
      
       <a:form id="modalContentDetail">
      
       <div>
      
       <rich:dataTable onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
       onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
       cellpadding="0" cellspacing="0"
       border="0" var="termsList" value="#{showDetail.all}">
       <rich:column>
       <f:facet name="header">
       <h:outputText value="#{messages.selectedFoo}"/>
       </f:facet>
       <h:selectBooleanCheckbox
       value="#{theList.theSelected}" layout="pageDirection">
       <a:support event="onclick"
       actionListener="#{showDetail.toggleFooSelected(theList)}"/>
       </h:selectBooleanCheckbox>
       </rich:column>
       <rich:column>
       <f:facet name="header">
       <h:outputText value="#{messages.name}"/>
       </f:facet>
       <h:outputText value="#{theList.name}"/>
       </rich:column>
      
       <rich:column>
       <f:facet name="header">
       <h:outputText value="#{messages.value}"/>
       </f:facet>
       <rich:message for="theval" /><br/>
       <h:inputText id="theval" value="#{theList.value}" size="10" rendered="#{theList.valueToShow}">
       <f:convertNumber/>
       <f:validateLongRange minimum = "0" maximum = "1000000"/>
       </h:inputText>
       </rich:column>
      
       </rich:dataTable>
       </div>
      
       <div>
       <div class="navBar">
       <div class="navBarRight">
       <a:commandButton id="save"
       value="Save It"
       action="#{showDetail.saveIt}"
       reRender="the-rtc, term-rtc-expand"
       onclick="javascript:Richfaces.hideModalPanel('addDetail');"
       view="#"/>
       <a:commandButton value="Cancel" onclick="javascript:Richfaces.hideModalPanel('addDetail');"/>
      
       </div>
       <br class="clear"/>
       </div>
       </div>
      
       </a:form>
      
       </rich:modalPanel>