5 Replies Latest reply on Mar 8, 2007 6:51 AM by baz

    s:selectDate not properly rendered inside a rich:panel

    rmemoria

      Hi,

      I've posted this question in the SEAM forum... it seens to be a Rich faces bug...

      I've included richFaces 3 in my not so old app using SEAM 1.2patch1.

      I have a page with the following code

      Code:

      <rich:panel>
      ..
      ..
       <h:inputText id="dtini" value="" required="true">
       <s:convertDateTime pattern="dd/MM/yyyy"/>
       </h:inputText>
       <s:selectDate for="dtini">
       <h:graphicImage url="../resources/dtpick.gif" style="margin-left:5px"/>
       </s:selectDate>
      ..
      ..
      </rich:panel>



      But the content inside the s:selectDate is not rendered. If I remove the rich:panel tag it is rendered correctly.

      bellow is a piece of the HTML rendered (where the reference to dtpick.gif should be inside the span tag but it's empty).

      Code:
      //--></script><span onclick="__selectDate('main:dtend', 'main:dtend');"></span>



      I may remove the rich:panel tags but the page looks pretty better with them :)

      Any tip?

      Best,
      Ricardo


        • 1. Re: s:selectDate not properly rendered inside a rich:panel
          nbelaevski

          Unfortunately, cannot say anything on that right now. But we'll put this to investigation ASAP.

          Best regards,
          Nick

          • 2. Re: s:selectDate not properly rendered inside a rich:panel
            rmemoria

            Thanks Nick,

            Despite that I'm enjoying working with Rich Faces.

            • 3. Re: s:selectDate not properly rendered inside a rich:panel

              Can you provide full page - both source and result?

              rich:panel is just a div with styles. Seems strange that it can affect page in such way. Something strange happened in s:selectDate.

              • 4. Re: s:selectDate not properly rendered inside a rich:panel
                rmemoria

                Hi,

                I made a very simple page to reproduce this problem.

                I'm using JBoss 4.0.5GA + SEAM 1.2.0patch1 + richfaces 3.

                <?xml version="1.0" encoding="iso-8859-1"?>
                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:f="http://java.sun.com/jsf/core"
                 xmlns:h="http://java.sun.com/jsf/html"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:s="http://jboss.com/products/seam/taglib"
                 xmlns:a="https://ajax4jsf.dev.java.net/ajax"
                 xmlns:rich="http://richfaces.ajax4jsf.org/rich"
                 template="/templates/padrao.xhtml">
                
                <ui:param name="title" value="Test page" />
                <ui:param name="show_menu" value="0" />
                
                <ui:define name="content">
                
                <rich:panel>
                <f:facet name="header">This is the title</f:facet>
                 Inform the data
                 <h:inputText id="dt" value="" required="true">
                 <s:convertDateTime/>
                 </h:inputText>
                 <s:selectDate for="dt">
                 <h:graphicImage url="../resources/dtpick.gif" style="margin-left:5px;cursor:pointer"/>
                 </s:selectDate>
                </rich:panel>
                
                <p/>
                 Inform the data
                 <h:inputText id="dt2" value="" required="true">
                 <s:convertDateTime/>
                 </h:inputText>
                 <s:selectDate for="dt2">
                 <h:graphicImage url="resources/dtpick.gif" style="margin-left:5px;cursor:pointer"/>
                 </s:selectDate>
                
                </ui:define>
                
                </ui:composition>


                The first s:selectDate (inside the rich:panel tags) is not rendered properly.

                The second is rendered perfectly.

                Hope I've helped.

                Regards,
                Ricardo

                • 5. Re: s:selectDate not properly rendered inside a rich:panel
                  baz