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

Accordion doesn't work inside form named form

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Optional
    • Resolution: Done
    • Affects Version/s: 4.0.0.Milestone3
    • Fix Version/s: None
    • Component/s: component-output
    • Labels:
      None
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      change form's id to something different, e.g. "myform"
      or
      set prependId="false".

      Show
      change form's id to something different, e.g. "myform" or set prependId="false".

      Description

      <h:form id="form">
      <rich:accordion id="accordion">
      <rich:accordionItem header="Item 1">
      content of item 1
      </rich:accordionItem>
      <rich:accordionItem header="Item 2">
      content of item 2
      </rich:accordionItem>
      </rich:accordion>
      </h:form>

      The code above causes a syntax error in JavaScript. Chrome reports this in its console:
      Uncaught Syntax error, unrecognized expression: Syntax error, unrecognized expression: accordion

      Workaround exists.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Alex.Kolonitsky Alex Kolonitsky
                  Reporter:
                  ppitonak Pavol Pitoňák
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: