0 Replies Latest reply on Dec 16, 2008 1:13 PM by hemantmahidhara

    unable to select text inside text box in modal panel

    hemantmahidhara

      I have a modal panel that has a simple form with a text box and a button. I am not able to select the text in the text box using my mouse (holding the left button down and dragging over the text). Also not able to copy the text using Ctrl+C. Ctrl+A does not select the text either.

      Any idea what I might be doing wrong?

      here is my code

      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
      <%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
      <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
      
      
      <rich:modalPanel id="addTabPanel" height="150" width="237">
       <f:facet name="header">
       <h:panelGroup>
       <h:outputText value="Add New Tab"></h:outputText>
       </h:panelGroup>
       </f:facet>
       <f:facet name="controls">
       <h:panelGroup>
       <h:graphicImage value="/images/close.gif" style="cursor:pointer" id="closeButton"/>
       <rich:componentControl for="addTabPanel" attachTo="closeButton" operation="hide" event="onclick"/>
       </h:panelGroup>
       </f:facet>
       <a4j:form>
       <h:panelGrid>
       <h:outputText value="Name"></h:outputText>
       <h:inputText id="newGroupName" value="#{bean.newName}">
       </h:inputText>
       <a4j:commandButton id="submit" value="Submit"
       action="#{bean.addGroup}"
       reRender="userFolderGroups" limitToList="true"
       oncomplete="Richfaces.hideModalPanel('addTabPanel')">
       </a4j:commandButton>
       </h:panelGrid>
       </a4j:form>
      </rich:modalPanel>