Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-131

ModalPanel: standard JSF command controls not working

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.0, 3.0.1
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:
      None
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Avoid form inside form. JSF RI treats such case incorrectly. ModalPanel component should have form inside if it holds inputs and it should not reside inside other form in such case.
      Sample:
      <h:form>
      Page content...
      </h:form>
      ....
      <rich:modalPanel>
      <h:form>
      <h:input />
      </h:form>
      </rich:modalPanel>

      Show
      Avoid form inside form. JSF RI treats such case incorrectly. ModalPanel component should have form inside if it holds inputs and it should not reside inside other form in such case. Sample: <h:form> Page content... </h:form> .... <rich:modalPanel> <h:form> <h:input /> </h:form> </rich:modalPanel>

      Description

      The following code fails with JS error after "Delete" press:
      <h:form id="_form">

      <h:commandButton value="Delete" onclick="Richfaces.showModalPanel('test'); return false;" />

      <rich:modalPanel id="test">
      <h:form id="_formInner">
      <h:commandButton value="Confirm" actionListener="#

      {bean.processAction}

      " />
      <h:commandButton value="Cancel" onclick="Richfaces.hideModalPanel('test'); return false;" />
      </h:form>
      </rich:modalPanel>
      </h:form>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                afrancuzov Alexander Francuzov
                Reporter:
                nbelaevski Nick Belaevski
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: