5 Replies Latest reply on Jun 6, 2007 5:57 AM by ilya_shaikovsky

    <h:outputText> inside a ModalPanel don't show cursor.

    vh

      I have a <h:outputText... inside a modalPanel, it works but it doesn't show the cursor. Do you know why?

        • 1. Re: <h:outputText> inside a ModalPanel don't show cursor.
          vh

          I mean an <h:inputText not a outputText.

          • 2. Re: <h:outputText> inside a ModalPanel don't show cursor.
            daedlus

            hmm .. am facing the same problem.

            • 3. Re: <h:outputText> inside a ModalPanel don't show cursor.
              ilya_shaikovsky

              describe your environment aqnd use the latest 3.0.1 snapshots please.

              • 4. Re: <h:outputText> inside a ModalPanel don't show cursor.
                vh

                I used the latest snapshot for RichFaces and a4j. The problem is still there.

                Here is my code. The part to launch the modalPanle is:

                <h:outputLink id="addVC" value="#" onclick="enableComponent('ok',false);Richfaces.showModalPanel('editVcMp',{width:450, top:100}); return false;">
                


                The modalPanel is called "editVcMp". Help!
                
                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                <html xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:h="http://java.sun.com/jsf/html"
                 xmlns:f="http://java.sun.com/jsf/core"
                 xmlns:rich="http://richfaces.ajax4jsf.org/rich"
                 xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
                
                <f:loadBundle basename="com.vmware.vdi.admin.ui.messages.MessageBundle" var="bundle"/>
                
                <ui:composition template="/templates/headerFrame.xhtml">
                 <ui:define name="title">Configuration</ui:define>
                 <ui:define name="body">
                 <h:form id="configForm">
                 <table margin="20px 20px 20px 20px" cellspacing="20px">
                 <tr valign="top" align="left">
                
                 <!-- This is the VC panel -->
                 <td width="42em">
                 <rich:panel bodyClass="configPanel">
                 <f:facet name="header">
                 <h:outputText id="vc_list" value="#{bundle.VirtualCenterInstances}" />
                 </f:facet>
                
                 <table width="100%" align="center" scroll="true">
                 <tr align="right">
                 <td>
                 <h:outputLink id="addVC" value="#"
                 onclick="enableComponent('ok',false);Richfaces.showModalPanel('editVcMp',{width:450, top:100}); return false;">
                 <h:outputText value="#{bundle.Add}"/>
                 </h:outputLink>
                 <rich:spacer id="spacer3" width="10" />
                 <a4j:commandLink id="editVC"
                 actionListener="#{vcBean.populateData}"
                 oncomplete="enableComponent('ok',false);Richfaces.showModalPanel('editVcMp',{width:450, top:100})"
                 reRender="editVcMp" >
                 <h:outputText value="#{bundle.Edit}"/>
                 </a4j:commandLink>
                 <rich:spacer width="10" />
                 <a4j:commandLink id="removeVC" actionListener="#{vcBean.deleteVC}"
                 limitToList="true" reRender="vcTable,selectedIdHidden">
                 <h:outputText value="#{bundle.Remove}"/>
                 </a4j:commandLink>
                 <rich:spacer width="10" />
                 <h:commandLink id="testVC" actionListener="#{vcBean.testVC}">
                 <h:outputText value="#{bundle.Test}"/>
                 </h:commandLink>
                 </td>
                 </tr>
                 <tr id="err">
                 <td>
                 <h:messages errorClass="error"/>
                 </td>
                 </tr>
                 <tr>
                 <td>
                 <h:panelGroup id="vcTable">
                 <rich:dataTable
                 onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
                 onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
                 onRowClick="this.style.backgroundColor='yellow';setSelectedRow(this, 1, 'configForm:selectedIdHidden');"
                 cellpadding="0" cellspacing="0"
                 width="100%" border="0" var="vc" value="#{vcBean.vcList}">
                 <rich:column>
                 <h:outputText value="#{vc.serverName}" />
                 </rich:column>
                 <rich:column style="display:none">
                 <h:outputText value="#{vc.id}"/>
                 </rich:column>
                 </rich:dataTable>
                 </h:panelGroup>
                 </td>
                 </tr>
                 </table>
                 </rich:panel>
                 </td>
                
                 <!-- This is the Global setting panel -->
                 <td width="42em">
                 <rich:panel bodyClass="configPanel">
                 <f:facet name="header">
                 <h:outputText id="globalSetting" value="#{bundle.GlobalSettings}" />
                 </f:facet>
                 </rich:panel>
                 </td>
                 </tr>
                 <tr valign="top" align="left" height="40em">
                 <!-- This is the access setting panel -->
                 <td>
                 <rich:panel bodyClass="configPanel">
                 <f:facet name="header">
                 <h:outputText id="accessSetting" value="#{bundle.AccessSettings}" />
                 </f:facet>
                 </rich:panel>
                 </td>
                 </tr>
                 </table>
                 <h:inputHidden id="selectedIdHidden" value="#{vcBean.selectedVCId}"/>
                 </h:form>
                
                 <div>
                 <rich:modalPanel id="editVcMp" minHeight="280" minWidth="300"
                 height="450" width="400" zindex="2000">
                 <f:facet id="modalHeader" name="header">
                 <h:outputText id="modalTitle" value="#{bundle.VirtualCenterSettings}" />
                 </f:facet>
                
                 <form id="editVcForm">
                 <table>
                 <tr>
                 <td id="editVcErr">
                 <a4j:outputPanel id="errPanel" ajaxRendered="true">
                 <h:messages id="error" errorClass="error"></h:messages>
                 </a4j:outputPanel>
                 </td>
                 </tr>
                 <tr>
                 <td align="right">
                 <div id="basicLink" style="display:none">
                 <h:outputLink value="#" onclick="showComponent('advancePanel', false);showComponent('advancedLink', true); showComponent('basicLink', false);">
                 <h:outputText value="#{bundle.Basic}"/>
                 </h:outputLink>
                 </div>
                 </td>
                 </tr>
                 <tr>
                 <td>
                 <rich:panel id="basicPanel">
                 <table>
                 <tr>
                 <td><h:outputText id="svrNameLabel" value="#{bundle.ServerAddress}"/></td>
                 <td><h:inputText id="svrNameField"
                 onkeyup="enableOkBtn();"
                 value="#{vcBean.serverName}"/>
                 </td>
                 </tr>
                 <tr>
                 <td><h:outputText id="userLabel" value="#{bundle.UserName}"/></td>
                 <td><h:inputText id="userField"
                 onkeyup="enableOkBtn();"
                 value="#{vcBean.userName}" />
                 </td>
                 </tr>
                 <tr>
                 <td><h:outputText id="pwLabel" value="#{bundle.PasswordColon}"/></td>
                 <td><h:inputSecret id="pwField" redisplay="true"
                 onkeyup="enableOkBtn();"
                 value="#{vcBean.password}"/>
                 </td>
                 </tr>
                 <tr>
                 <td><h:outputText id="descLabel" value="#{bundle.Description}"/></td>
                 <td><h:inputText id="descField"
                 onkeyup="enableOkBtn();"
                 value="#{vcBean.description}" />
                 </td>
                 </tr>
                 <tr>
                 <td colspan="2" align="left">
                 <h:selectBooleanCheckbox onclick="enableOkBtn();displayPort(this);"
                 id="sslCheckbox"
                 value="#{vcBean.useSSL}" >
                 </h:selectBooleanCheckbox>
                 <h:outputText value="#{bundle.useSSL}"/>
                 </td>
                 </tr>
                 <tr>
                 <td><h:outputText id="portLabel" value="#{bundle.NonSSLPort}"
                 onkeyup="enableOkBtn();"
                 style="#{vcBean.portStyle}"/></td>
                 <td><h:inputText id="portField" value="#{vcBean.port}"
                 onkeyup="enableOkBtn();"
                 style="#{vcBean.portStyle}"/></td>
                 </tr>
                 </table>
                 </rich:panel>
                 </td>
                 </tr>
                 <tr>
                 <td align="right">
                 <div id="advancedLink">
                 <h:outputLink value="#"
                 onclick="showComponent('advancePanel', true);showComponent('advancedLink', false); showComponent('basicLink', true);return false;">
                 <h:outputText value="#{bundle.Advanced}"/>
                 </h:outputLink>
                 </div>
                 </td>
                 </tr>
                 <tr>
                 <td>
                 <rich:panel id="advancePanel" style="display:none">
                 <table>
                 <tr>
                 <td colspan="2">
                 <h:outputText value="#{bundle.vcAdvSettingDesp}"/>
                 </td>
                 </tr>
                 <tr>
                 <td><h:outputText value="#{bundle.vmAddNum}"/></td>
                 <td><h:inputText value="#{vcBean.vmAddNum}"
                 onkeyup="enableOkBtn();"/>
                 </td>
                 </tr>
                 <tr>
                 <td><h:outputText value="#{bundle.vmRemoveNum}"/></td>
                 <td><h:inputText value="#{vcBean.vmRemoveNum}"
                 onkeyup="enableOkBtn();"/>
                 </td>
                 </tr>
                 </table>
                 </rich:panel>
                 </td>
                 </tr>
                 <tr>
                 <td >
                 <rich:spacer id="spacer1" height="20px" width="10px"></rich:spacer>
                 </td>
                 </tr>
                 <tr>
                 <td align="center">
                 <a4j:commandButton id="ok" actionListener="#{vcBean.saveVC}"
                 value="#{bundle.OK}"
                 oncomplete="closeWindow('errPanel','editVcMp');"
                 reRender="vcTable,editVcMp,error" >
                 </a4j:commandButton>
                 <rich:spacer id="spacer2" height="4px" width="10px"></rich:spacer>
                 <a4j:commandButton id="cancel" actionListener="#{vcBean.cancel}"
                 oncomplete="Richfaces.hideModalPanel('editVcMp');"
                 reRender="editVcErr,editVcMp,error"
                 value="#{bundle.Cancel}">
                 </a4j:commandButton>
                 </td>
                 </tr>
                 </table>
                 <h:inputHidden id="editVcIdHidden" value="#{vcBean.editVcId}"/>
                 </form>
                 </rich:modalPanel>
                 </div>
                 </ui:define>
                </ui:composition>
                </html>
                
                


                • 5. Re: <h:outputText> inside a ModalPanel don't show cursor.
                  ilya_shaikovsky

                  At first please use GA release from http://repository.jboss.com/maven2/org/richfaces/richfaces/3.0.1/

                  And inform about browser and other environment info if will not help.