2 Replies Latest reply on Mar 6, 2013 7:10 AM by Fernando Arbeiza

    rich:placeholder not working inside rich:togglePanel

    Fernando Arbeiza Newbie

      Hi,

       

      I was having some problems getting rich:placeholder to show. It seems the problem is I am using it inside a togglePanel. I have created a minimal example which raises the problem using either versions 4.3.0 or 4.3.1.RC1; the placeholder inside Panel item 2 is not shown:

       

      <!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:h="http://java.sun.com/jsf/html"
          xmlns:rich="http://richfaces.org/rich">
      <h:head>
          <title></title>
      </h:head>
      <h:body>
          <rich:togglePanel id="layout" switchType="client"
              cycledSwitching="true">
              <rich:togglePanelItem>
                     Panel item 1
                     <h:inputText id="input1">
                      <rich:placeholder value="Text..." />
                  </h:inputText>
              </rich:togglePanelItem>
              <rich:togglePanelItem>
                     Panel item 2
                     <h:inputText id="input2">
                      <rich:placeholder value="Text..." />
                  </h:inputText>
              </rich:togglePanelItem>
          </rich:togglePanel>
      
          <h:commandButton value="Switch">
              <rich:toggleControl targetPanel="layout" />
          </h:commandButton>
      </h:body>
      </html>
      

       

      Any idea about why it is happening? Or any workaround?

       

      Thank you very much in advance.