My problem is with dynamique <ui:include> like <ui:include src="#{myBean.myPage}"/>.

In that case, Ajax used in the included page doesn't work properly and style are not well rendered.

For the moment, because the project is on a hurry, we don't use Ajax to dynamicaly include pages in pages : we just reload the complete page.

But even in that case, we had a problem : by default, RF loads the entire page inside the current page to replace it, which is the same effect as dynamic <ui:include> because we load the content in Ajax.

With that problem, any part of the page reloaded by Ajax returns a malformed XML error, because it does an "<update>" and not an "<eval>" (seen somewhere in that forum).

We didn't have the time to find a solution for that problem too, so we used "faces-redirect=true" on every page, and we added this to web.xml :

<context-param>

<param-name>javax.faces.STATE_SAVING_METHOD</param-name>

<param-value>server</param-value>

</context-param>

It seams to fixe some Ajax rendering problems, but not all so we continue to just reload the entire page every time...

It is heavy, but it works, so we will see later how to do properly the apps in Ajax.

I'm realy a newbie in JSF2.0/Richfaces 4/Mojarra 2.1.4 but i have maybe found a workaround to use "ui:include" for dynamic browsing.

Firstly, i update my version of mojarra to 2.1.4 and effectively there is no more needs to handle "javax.faces.PARTIAL_STATE_SAVING" in the web.xml. From here, i can click on my menu item and the dynamic content include via "ui:include" is render BUT .....then i need to reload the page to make ajax calls works normally (OR to click twice on buttons or links).

So my solution is to create an hidden button (a4j:commandbutton for example) which will send a fake ajax request. Of course I dont click myself on this button but i simulate the click thank to "oncomplete" property.

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

2) However, another issue is coming due to this. I am not getting the input text values entered from the second popup which opens from the main pop up when I click on second pop up "Get SKU Count"button.

The second popup code is shown below

Kindly help me resolve this issue. If you need further info please contact me.

You're opening the popupPanel before it was rerendered, use oncomplete instead.

In the future please start a new thread instead of opening one that's 3-year old and not very relevant to your problem. Also if you're going to provide code paste it as text so we can copy and test it, we're not up to transcribing it from a picture.