Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-2520

<trh:script partialTrigger is not getting called through Command Button

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.0-core
    • None
    • Components
    • None
    • I am using trinidad 2.1.0 ,Myfaces 2.1.10 server as webshpere 8.5
      and IE11

    Description

      <trh:script partialTrigger is getting called through Command Button click

      below is the sample code
      <tr:form id="overviewForm">
      <tr:commandButton id="VisibleOmi2" partialSubmit="true" value="VisibleOmi2" text="VisibleOmi2"></tr:commandButton>
      <tr:commandButton id="hiddenOmi" onclick="alert('hidden button clicked');" partialSubmit="true" action="abcd" inlineStyle="display:none"></tr:commandButton>
      </tr:form>

      <trh:script partialTriggers=":VisibleOmi2"
      text="
      alert('111');
      document.getElementById('hiddenOmi').click();
      alert('222');

      "
      ></trh:script>

      On click of this VisibleOmi2 button the below alerts and button click code is not getting called.

      I have attached the tester

      Attachments

        1. Test.jspx
          4 kB
          jyotirmoy

        Activity

          People

            Unassigned Unassigned
            jshyam89 jyotirmoy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: