3 Replies Latest reply on Nov 12, 2015 2:29 PM by gopalh

    Rich faces 4 +Mojarra 2.0.1 ->Ajax Render not working.

    gopalh

      Hi,

       

      Please find my code attached for the below requirement:

      1) I have added <a4j:outputPanel> inside <h:form> of a main pop up page. This is the main pop up page and when I click on this "Add Vendor" button it will open another small pop up.

       

      2) On the second popup, When I  click on Get SKU Count only the active sku count and inactive sku count text area next to the labels should get populated with values as a ajax update.

      But the Get SKU Count process executes successfully but no value is populated on screen. When I refresh page and come back to the second popup screen then the values in active sku count and inactive sku count are visible.

        • 1. Re: Rich faces 4 +Mojarra 2.0.1 ->Ajax Render not working.
          michpetrov

          The button has render="@this"; the textarea cannot show new data if it's not being rerendered.

           

          Try to reduce the examples next time, if you have a problem with a button and a text area then don't include anything else, you can also paste the code directly here.

          • 2. Re: Rich faces 4 +Mojarra 2.0.1 ->Ajax Render not working.
            gopalh

            Thanks Michal. Its working now.

            But I have another issue here. When I refresh the page and click on "Add Vendor" in first pop up it does not reset the fields in second popup

            as the first popup button "Add Vendor" action method "#{addVendor.clearFields}" is not being called only after Refreshing the page.

            The Close icon also calls "#{addVendor.clearFields}" and that is working fine after Refresh also. When I click on "Add Vendor" after closing then the

            "#{addVendor.clearFields}" method is called successfully but only after page refresh the action call fails.

            • 3. Re: Rich faces 4 +Mojarra 2.0.1 ->Ajax Render not working.
              gopalh

              its working now . I had used nested forms which was wrong.