3 Replies Latest reply on Apr 3, 2007 8:08 AM by ilya_shaikovsky

    SimpleTogglePanel and   

    johnbat26

      Hello !
      I am trying use SimpleTogglePanel component.
      It work OK, except that in header appear  .
      If I type in header: "Users", on runtime in browser transform to "User  ".
      What I do wrong ?

        • 1. Re: SimpleTogglePanel and   
          ilya_shaikovsky

          Did you get it unprocessed right in your browser window? Pretty strange. Describe please your environment. And provide your page for examination.

          • 2. Re: SimpleTogglePanel and
            johnbat26

            My config:
            -----------------------------------------
            JSF: jsf-1.2_04-b10-p01
            SEAM: 1.2.1.GA
            JBoss: 4.0.5.GA
            RichFaces: 3.0.1-20070401
            OS: Gentoo Linux (AMD64)
            VM: BEA JRockIt 6.0 and Sun JVM 6.0
            Browser: Mozilla Firefox 2.0.0.3 & Opera 9.10
            ---------------------------------
            This is my page:


            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml"
             xmlns:ui="http://java.sun.com/jsf/facelets"
             xmlns:h="http://java.sun.com/jsf/html"
             xmlns:f="http://java.sun.com/jsf/core"
             xmlns:s="http://jboss.com/products/seam/taglib"
             xmlns:c="http://java.sun.com/jstl/core"
             xmlns:rich="http://richfaces.ajax4jsf.org/rich"
             xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
            
             <h:form>
            
            
             <h:panelGrid columns="1" columnClasses="tpanels" width="400">
            
             <rich:simpleTogglePanel switchType="client" label="Users ">
             <rich:datascroller for="userListTable" maxPages="20" />
             <rich:spacer height="30" />
             <rich:dataTable id="userListTable" width="100%" rows="5" value="#{userList}" var="item">
             <f:facet name="header">
             <rich:columnGroup>
             <h:column>
             <h:outputText value="Number" />
             </h:column>
             <h:column>
             <h:outputText value="Name" />
             </h:column>
             <h:column>
             <h:outputText value="Surname" />
             </h:column>
             </rich:columnGroup>
             </f:facet>
             <h:column>
             <h:outputText value="#{item.id}" />
             </h:column>
             <h:column>
             <h:outputText value="#{item.firstName}" />
             </h:column>
             <h:column>
             <h:outputText value="#{item.lastName}" />
             </h:column>
             </rich:dataTable>
             <rich:spacer height="20" />
             <h:commandButton value="View users" action="#{userManager.loadUsers}"/>
            
             </rich:simpleTogglePanel>
            
             </h:panelGrid>
            
            </h:form>
            
            
            </html>


            Help me...

            • 3. Re: SimpleTogglePanel and   
              ilya_shaikovsky

              Unfortunatelly still can't reproduce your case. Attach please generated html code. Or you may send the simple case for me directly if present.