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

componentControl: <h:commandButton onclick = " return false; "...> does not show modalPanel

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.1.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      tomcat 6.0.13
      jsf 1.1
      FF

      Description

      <rich:modalPanel id="ccModalPanelID" onshow="alert(event.parameters.show)" onhide="alert(event.parameters.hide)">
      <h:outputLink id="hideButton1ID" onclick="return false;" value="Close" ><f:verbatim>Close 1</f:verbatim></h:outputLink>
      <f:verbatim><br/></f:verbatim>
      <h:outputLink id="hideButton2ID" onclick="return false;" value="Close" ><f:verbatim>Close 2</f:verbatim></h:outputLink>
      </rich:modalPanel>
      <h:commandButton onclick="return false;" id="showButtonID" value="show" >
      <rich:componentControl for="ccModalPanelID" event="onclick" operation="show" params="show:'componentControl work(show)'" />
      </h:commandButton>

        Gliffy Diagrams

          Activity

          Hide
          maksimkaszynski Maksim Kaszynski added a comment -

          Known issue of support-like components. Could not be fixed.

          Added disableDefault attribute to componentControl - use it instead of return false.

          <h:commandButton value="zzz">
          <cc:componentControl for="m" event="onclick" operation="show" disableDefault="true">
          <f:param name="param" value="Hallo!"></f:param>
          </cc:componentControl>
          </h:commandButton>

          Show
          maksimkaszynski Maksim Kaszynski added a comment - Known issue of support-like components. Could not be fixed. Added disableDefault attribute to componentControl - use it instead of return false. <h:commandButton value="zzz"> <cc:componentControl for="m" event="onclick" operation="show" disableDefault="true"> <f:param name="param" value="Hallo!"></f:param> </cc:componentControl> </h:commandButton>

            People

            • Assignee:
              ayanul Aleksej Yanul
              Reporter:
              ayanul Aleksej Yanul
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development