3 Replies Latest reply on Oct 1, 2008 10:35 AM by ipazmino

    <rich:Calendar> in seam

    ipazmino

      Hi,

      I'm trying to use a <rich:calendar> component inside a seam's <s:decorate> component. But when using this nesting, the calendar doesn't get displayed.

      Thanks in advance for any help.

        • 1. Re: <rich:Calendar> in seam
          ipazmino

          Hi,

          It seems to be that actually as a common thing this component can't be nested inside another, because inside a label it would display the inputTextfield and the button to launch the calendar popup, but never actually launch it.

          • 2. Re: <rich:Calendar> in seam
            ilya_shaikovsky

            calendar inside a label? :) seems I could not understand it clearly. code snippet please.

            • 3. Re: <rich:Calendar> in seam
              ipazmino

              he he he I only realized after posting the second entrance.
              I had this

              <s:decorate for="dateDate">
               <h:outputLabel for="dateDate" value="Date " >
               <rich:calendar id="dateDate"
               popup="true" value="#{message.datetime}"
               locale="US" datePattern="dd/MM/yyyy HH:mm" />
               </h:outputLabel>
               <h:message for="dateDate" />
              </s:decorate>

              and now, changed to this, so it works
              <s:decorate for="dateDate">
               <h:outputLabel for="dateDate" value="Date " />
               <rich:calendar id="dateDate"
               popup="true" value="#{message.datetime}"
               locale="US" datePattern="dd/MM/yyyy HH:mm" />
               <h:message for="dateDate" />
              </s:decorate>

              Thanks anyway