1 Reply Latest reply on Jun 10, 2008 2:44 PM by Mark LoSacco

    rich:panel and s:decorate cause me a trouble

    Nattapong Sirilappanich Newbie


      I'm using rich:panel to group related input field together.
      However, i create a template for decorating field and using s:decorate with each field.

      I expecting the rendered panel to cover every field within but it's not.

      The panel height is a little bit too short, some field are left out.


        • 1. Re: rich:panel and s:decorate cause me a trouble
          Mark LoSacco Newbie

          I have the same problem.
          Basically when I use nested rich:panel's along with s:decorate (using the seamgen generated display.xhtml template) my panels don't draw properly and things overlap.

          The display.xhtml looks like:

          <ui:composition xmlns="http://www.w3.org/1999/xhtml"
           <div class="prop">
           <span class="name">
           <ui:insert name="label"/>
           <span class="value">

          And my page code looks like:
           <s:div styleClass="pagetitle">
           Title Here
           <rich:spacer height="10px"/>
           <f:facet name="header">
           <s:decorate id="eventDateDecoration" template="layout/display.xhtml">
           <ui:define name="label">Date</ui:define>
           <h:outputText value="#{event.eventStart}">
           <s:convertDateTime type="date" dateStyle="short" />
           <rich:spacer height="10px"/>
           <f:facet name="header">Header 2

          The date field draws over top of the bottom of the panel, and the spacing between the first and second nested panels is almost gone.

          Seems like the span tags in the template are causing the problem.