10 Replies Latest reply on Apr 17, 2009 8:41 AM by ilya_shaikovsky

    ModelPanel and fieldset

    ipraveenjain

      hi
      i am using html tag inisde <rich:modelPanel>
      if i place any control inside it dispalys out of that border.
      but if i use same example in simple page without using <rich:modelpanel> it displays fines.

      example
      <ui:inlcude>
      <t:selectOneRadio id="sor134" value="SI" layout="pageDirection"
      style="font-weight:bold; background-color:#99CCFF;">
      <f:selectItem id="si1134" itemLabel="Samsung2" itemValue="sa" />

      <f:selectItem id="si2134" itemLabel="Link" itemValue="lo" />
      <f:selectItem id="si3134" itemLabel="Logitech" itemValue="lg" />
      <f:selectItem id="si4134" itemLabel="BenQ" itemValue="bq"
      itemDisabled="true" />
      </t:selectOneRadio>
      if i write the code in <rich:modelpanel> radio controls displays out of fieldset althoug simple html controls appears in the fileld set.
      but if i use normal page it displays fine..

        • 1. Re: ModelPanel and fieldset
          ilya_shaikovsky

           

          <ui:inlcude>


          what about this unclosed tag and without src? ;)



          • 2. Re: ModelPanel and fieldset
            ipraveenjain

            forget about <ui:include> tag , it is not using

            • 3. Re: ModelPanel and fieldset
              ilya_shaikovsky

              please paste full modal panel code one more time. And use please code forum tag in order to make it clear.

              • 4. Re: ModelPanel and fieldset
                ipraveenjain

                hi below is code

                <fieldset><legend>Example</legend> <t:selectOneRadio id="sor134" value="SI" layout="pageDirection"
                 style="font-weight:bold; background-color:#99CCFF;">
                 <f:selectItem id="si1134" itemLabel="Samsung2" itemValue="sa" />
                
                 <f:selectItem id="si2134" itemLabel="Link" itemValue="lo" />
                 <f:selectItem id="si3134" itemLabel="Logitech" itemValue="lg" />
                 <f:selectItem id="si4134" itemLabel="BenQ" itemValue="bq"
                 itemDisabled="true" />
                 </t:selectOneRadio>
                 </fieldset>
                



                • 5. Re: ModelPanel and fieldset
                  ilya_shaikovsky

                  checked within demosite. fileldset included fine to modal and all the nested content rendered inside fine. JSF RI + Facelets + RF 3.3.1 snapshot.

                  • 6. Re: ModelPanel and fieldset
                    ipraveenjain

                    this is my modelpanel

                    <rich:modalPanel id="panelNewUser" width="550" height="400"
                     styleClass="wizardModalPanel" resizeable="false">
                     <f:facet name="header">
                     <h:panelGroup>
                     <h:outputText value="GridBank User Wizard"></h:outputText>
                     </h:panelGroup>
                     </f:facet>
                     <f:facet name="controls">
                     <h:panelGroup>
                     <h:graphicImage value="/images/modal/close.png"
                     style="cursor:pointer" id="hideUserWizard" />
                     <rich:componentControl for="panelNewUser"
                     attachTo="hideUserWizard" operation="hide" event="onclick" />
                     </h:panelGroup>
                     </f:facet>
                     <jsp:include page="/pages/wizards/NewUserWizard.jsp" />
                     </rich:modalPanel>
                    
                    

                    and this is my included page
                    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
                    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
                    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
                    <%@ taglib uri="http://www.zkoss.org/jsf/zul" prefix="z"%>
                    <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
                    <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
                    <t:panelGrid columns="1" style="background: #757575;"
                     rendered="#{mainBind.createPoolWizard.slideIndex == 7}">
                     <t:column>
                     <h:selectBooleanCheckbox id="shrd"></h:selectBooleanCheckbox>
                     <h:outputLabel value="Shredding Management"></h:outputLabel>
                     </t:column>
                     <t:column>
                    
                     <h:selectBooleanCheckbox id="def"></h:selectBooleanCheckbox>
                     <h:outputLabel value="Defragmentation Management"></h:outputLabel>
                     </t:column>
                     <fieldset><legend>Quota Management</legend> <input
                     type="checkbox"> <label>Apply the whole storage
                     Virtual pool Maximum storage capacity as this pool's permitted quota
                     limit</label> <br />
                     <label>Permitted maximum user quota (GB)</label> <input type="text">
                    
                     </fieldset>
                    
                     <br />
                     <t:column>
                     <t:outputLabel
                     value="Remaining pool capacity before alert is raised"></t:outputLabel>
                     <t:inputText value="{remcap}"></t:inputText>
                     <t:outputText value="%"></t:outputText>
                     </t:column>
                     </t:panelGrid>
                    

                    if i use
                    <t:outputLabel> or <t:inputText> in place of and <input--> tag
                    they will appear outside the frame.

                    i dont know why and how to sove the issue.

                    • 7. Re: ModelPanel and fieldset
                      ilya_shaikovsky

                      wrap the fieldset with f:verbatim.

                      • 8. Re: ModelPanel and fieldset
                        ilya_shaikovsky

                        in any way it isn't related to modal panel anyhow.

                        • 9. Re: ModelPanel and fieldset
                          ipraveenjain

                          thanks
                          it solves my problem.
                          what does <f:verbatim> do?
                          and where i can use it?

                          • 10. Re: ModelPanel and fieldset
                            ilya_shaikovsky

                            I have no problem because of facelets using. In JSP plain html should be wrapped to verbatim to avoid such problems.