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

    <rich:Calendar> in seam

    Ivan Pazmino Newbie

      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
          Ivan Pazmino Newbie

          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 Master

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

            • 3. Re: <rich:Calendar> in seam
              Ivan Pazmino Newbie

              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