5 Replies Latest reply on Nov 3, 2008 5:12 AM by ilya_shaikovsky

    Modalpanel resizeable=

      Hi,
      I can resize a modalpanel also it is resizeable="false".
      It's a bug?

      I'm using RF3.2.2
      Thanks to all.

        • 1. Re: Modalpanel resizeable=
          nbelaevski

          Yes, that's a bug. Please provide page code.

          • 2. Re: Modalpanel resizeable=

            This is the simplest modalpanel i've got. Every other modalpanel with resizable="false" has the same problem.

            Thanks


            <rich:modalPanel height="120" width="300" id="msgBoxErrSavePanel" autosized="false" moveable="true" style="overflow: true;">
             <f:facet name="header">
             <h:panelGroup>
             <h:outputText value="Risultato"></h:outputText>
             </h:panelGroup>
             </f:facet>
             <f:facet name="controls">
             <h:panelGroup>
             <h:graphicImage value="/resources/img/ico_close.gif" style="cursor:pointer" onclick="Richfaces.hideModalPanel('msgBoxErrSavePanel');"/>
             </h:panelGroup>
             </f:facet>
             <f:verbatim> </f:verbatim>
             <br>
             <a4j:form ajaxSubmit="true">
             <h:outputText style="font-weight: bold;" value="Si è verificato un errore !"/>
             <br><br>
             <table border="0" width="100%">
             <tr>
             <td align="center"> <a4j:commandButton value="Ok" ajaxSingle="true" action="#{treeModelBean.back2searchWoutConfirm}" styleClass="bottone_corto" oncomplete="Richfaces.hideModalPanel('msgBoxErrSavePanel');" reRender="pnl_tree,pnl_req,pnl_impeg,pnl_exam" /> </td>
             </tr>
             </table>
             </a4j:form>
             </rich:modalPanel>


            • 3. Re: Modalpanel resizeable=
              nbelaevski

              Probably that's a typo in the code. Should be resizeable='false"

              • 4. Re: Modalpanel resizeable=

                I'm sorry nbelaevsky, I've posted a wrong sample code.

                Look at those 2 sample modalpanel. Both with resizeable="false", but first work correctly, instead second modalpanel can be resized.

                Thanks




                <rich:modalPanel resizeable="false" id="cityCodFiscPanel" height="130" width="260" moveable="true" style="overflow: true;">
                 <f:facet name="header">
                 <h:panelGroup>
                 <h:outputText value="Codice Fiscale"></h:outputText>
                 </h:panelGroup>
                 </f:facet>
                 <f:facet name="controls">
                 <h:panelGroup>
                 <h:graphicImage value="/resources/img/ico_close.gif" style="cursor:pointer" onclick="Richfaces.hideModalPanel('cityCodFiscPanel');"/>
                 </h:panelGroup>
                 </f:facet>
                
                 <a4j:form ajaxSubmit="true" id="reg_codfisc">
                 <h:outputText value="Selezionare il comune di nascita" />
                 <br><br>
                 <a4j:region id="id_codfisc">
                 <h:inputText styleClass="input_1" id="comNasc" style="border-color: #01a8a5;" value="#{detailBean.patData.strComNascita}" >
                 <a4j:support event="onkeyup" onsubmit="if(!trapEnterKey(event)) return false" action="#{cityListBean.updateListCodFisc}" oncomplete="checkResult('#{cityListBean.numResult}','selectCityCodFisc');" reRender="reg_codfisc,selectCityCodFisc" >
                 <f:setPropertyActionListener target="#{cityListBean.filterCodFisc}" value="#{detailBean.patData.strComNascita}" />
                 </a4j:support>
                 </h:inputText>
                  
                 <a4j:status id="status_citycodfisc">
                 <f:facet name="stop" >
                 <a4j:commandButton oncomplete="checkResult('#{cityListBean.numResult}','selectCityCodFisc');" action="#{cityListBean.updateListCodFisc}" style="width: 16px; height: 16px" styleClass="bottone_cerca" reRender="reg_codfisc,selectCityCodFisc" >
                 <f:setPropertyActionListener target="#{cityListBean.filterCodFisc}" value="#{detailBean.patData.strComNascita}" />
                 </a4j:commandButton>
                 </f:facet>
                 <f:facet name="start">
                 <h:graphicImage style="vertical-align:middle;" value="/resources/img/wait.gif"/>
                 </f:facet>
                 </a4j:status>
                 </a4j:region>
                
                 <br><br>
                 <a4j:commandLink ajaxSingle="true" id="cmd_calc" rendered="#{not empty detailBean.patData.codComNascita}" oncomplete="Richfaces.hideModalPanel('cityCodFiscPanel');" action="#{detailBean.calcCodFisc}" value="Calcola il codice Fiscale" reRender="patBennum,cityCodFiscPanel" />
                 </a4j:form>
                </rich:modalPanel>
                
                
                
                <rich:modalPanel resizeable="false" id="selectCityCodFisc" height="300" width="500" zindex="2000">
                 <f:facet name="header">
                 <h:panelGroup>
                 <h:outputText value="Selezione Città di Nascita"></h:outputText>
                 </h:panelGroup>
                 </f:facet>
                 <f:facet name="controls">
                 <h:panelGroup>
                 <h:graphicImage value="/resources/img/ico_close.gif" style="cursor:pointer" onclick="Richfaces.hideModalPanel('selectCityCodFisc');"/>
                 </h:panelGroup>
                 </f:facet>
                 <a4j:form id="frmSelLocCodFisc">
                 <h:outputLabel value="Nessun risultato corrispondente" rendered="#{cityListBean.numResult==0}" />
                 <h:panelGroup rendered="#{cityListBean.numResult>1}" >
                
                 <rich:dataTable styleClass="tab_dati" width="200px" columns="2" rows="10" id="listCodFisc" value="#{cityListBean.cityList}" var="city"
                 onRowMouseOver="this.style.backgroundColor='#ffff00'"
                 onRowMouseOut="this.style.backgroundColor='#FFFFFF'"
                 binding="#{cityListBean.dataTableCodFisc}"
                 >
                 <rich:column sortBy="#{city.name}" >
                 <f:facet name="header">
                 <h:outputText value="Nome"/>
                 </f:facet>
                 <h:outputText value="#{city.name}"/>
                 </rich:column>
                 <rich:column sortBy="#{city.codcomfis}" >
                 <f:facet name="header">
                 <h:outputText value="Codice"/>
                 </f:facet>
                 <h:outputText value="#{city.codcomfis}"/>
                 </rich:column>
                 <a4j:support reRender="reg_codfisc" oncomplete="Richfaces.hideModalPanel('selectCityCodFisc');" event="onRowClick" action="#{cityListBean.nextCodFisc}" />
                
                 </rich:dataTable>
                
                 </h:panelGroup>
                 <rich:datascroller page="#{cityListBean.cfPageScroll}" rendered="#{cityListBean.numResult>1}" align="center" for="listCodFisc" maxPages="10" />
                 </a4j:form>
                </rich:modalPanel>


                • 5. Re: Modalpanel resizeable=
                  ilya_shaikovsky

                  checked under 3.3.0 shapshot.. unfortunatelly could not reproduce this. could you also check please and if will still reproduced share you war sample with me or Nick?