5 Replies Latest reply on Jan 9, 2008 7:16 PM by Pete Muir

    seam-gen with rf 3.1.3 simpleTogglePanel float clearing

    Andrew Atkinson Newbie

      Apparently rf 3.1.3 moved from tables to css for the simpleTogglePanel layout and now the seam-gen generated display forms have some float clearing issue.

      To reproduce in a seam-gen generated project:

      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
      <ui:define name="body">
      <rich:simpleTogglePanel label="Lorem ipsum" switchType="client" width="30%" >
       <s:decorate template="layout/display.xhtml">
       <ui:define name="label">Lorem ipsum</ui:define>
       <h:inputText id="lorem1" value=""/>
       <s:decorate template="layout/display.xhtml">
       <ui:define name="label">Lorem ipsum</ui:define>
       <h:inputText id="lorem2" value=""/>

      As a workaround I added to theme.css:
      .rich-stglpanel-body {
       overflow: auto;

      Not sure if this also applies to other rf components like panel.

      A more subtle seam-gen issue that I came across is that the components*.xml templates have an incorrect or outdated event id:
      <event type="org.jboss.seam.security.notLoggedIn">
       <action execute="#{redirect.captureCurrentView}"/>
      should be
      <event type="org.jboss.seam.notLoggedIn">
       <action execute="#{redirect.captureCurrentView}"/>