3 Replies Latest reply on Mar 16, 2010 4:44 AM by Ilya Shaikovsky

    rich:inplaceInput  in ui:define  change position!

    Chao Cui Newbie

      I am using the rich:inplaceInput in a seam project.

      It's weird that every time I change the size of the browser,the position of  rich:inplaceInput will be changed.

      In other words, the position of  rich:inplaceInput  is not fixed.

      But when I remove the Facelets template(Remove the <ui:define name="body"> and  template="layout/template.xhtml" ) it will be all right.

       

      Note that the problem is only on IE6/IE7, and works fine with firefox.

      Does anyone encounter this problems,thanks

      Here is the code:

      <!DOCTYPE composition 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:s="http://jboss.com/products/seam/taglib"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:rich="http://richfaces.org/rich"
          xmlns:a="http://richfaces.org/a4j"
          xmlns:custom="http://enhancements.rice.seam/jsf"
          template="layout/template.xhtml">
      <ui:define name="body">
      <rich:panel style="width:220px;">
              <f:facet name="header">
                  <h:outputText value="Person Info"></h:outputText>
              </f:facet>
              <h:panelGrid columns="2">
                  <h:outputText value="Name: "/>
                  <rich:inplaceInput defaultLabel="click to enter your name"/>
                  <h:outputText value="Email:"/>
                  <rich:inplaceInput defaultLabel="click to enter your email"/>
              </h:panelGrid>
            </rich:panel>
      </ui:define>
      </ui:composition>