2 Replies Latest reply on Mar 26, 2009 11:38 AM by jessica streicher

    problem submitting form in modal panel

    jessica streicher Newbie

      Hi!

      I have a really strange Problem with a Modalpanel in my application.
      The Problem occurs in ie7 (works correctly with firefox).

      I have a panel with a form in it. if i press enter the form isnt submitted. The Panel just hides away.

      I have another quite similar panel where it actually does submit the form.
      It just has some more inputs, like a textarea and a date component.

      I just cant figure out whats wrong with this one:

      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core" version="2.0"
       xmlns:t="http://myfaces.apache.org/tomahawk"
       xmlns:c="http://java.sun.com/jsp/jstl/core"
       xmlns:rich="http://richfaces.org/rich"
       xmlns:a4j="http://richfaces.org/a4j">
       <ui:composition>
       <rich:modalPanel id="newNodePanel" width="350" height="350">
       <f:facet name="header">
       <h:outputText value="#{res.newnodeform_title}"></h:outputText>
       </f:facet>
       <f:facet name="controls">
       <h:panelGroup>
       <h:graphicImage
       value="/images/Crystal_Clear_action_button_cancel.png"
       style="cursor:pointer; width:15px; height:15px;" id="hidelinknode" />
       <rich:componentControl for="newNodePanel" attachTo="hidelinknode"
       operation="hide" event="onclick" />
       </h:panelGroup>
       </f:facet>
       <t:div styleClass="formcontent1">
       <h:form>
       <t:div>
       <t:outputLabel value="#{res.newnodeform_parent}"></t:outputLabel>
       </t:div>
       <t:div>
       <t:outputText value="#{nodeBean.parent.label}"></t:outputText>
       </t:div>
       <t:div>
       <t:outputLabel value="#{res.newnodeform_label}"></t:outputLabel>
       </t:div>
       <t:div>
       <t:inputText value="#{nodeBean.node.label}" />
       </t:div>
       <t:div>
       <t:commandButton value="#{res.newnodeform_create}"
       action="#{nodeBean.createNewNode}">
       </t:commandButton>
       </t:div>
       </h:form>
       </t:div>
       </rich:modalPanel>
       </ui:composition>
      </jsp:root>