Probably something wrong in Mojarra.
Richfaces 3.3 provided a4j:include which can load the content dynamically but it is not ported in Richfaces4.x...
I searched this topic by Google,and got that MyFaces fixed the problem, but in Mojarra, there is still an open issue about this.
Sorry Hansty, you'll either need to swap out Mojarra in AS7 or take it up with the Mojarra team (or see if a newer version fixed the problem)
Thanks for your suggestions.
I haven't tried your exact case, but I've had better success with ajax rendering using Richfaces (and a4j). Try either converting your command button to a <a4j:commandButton> or using <a4j:ajax> instead of <f:ajax>. Also, a4j better resolves ids when doing re-rendering such that you don't need a full path. E.g. :form:contentPane becomes contentPane. This in my opinion is much more robust as you can change your page structure without having to revisit all you ajax calls.
Also, you can't do that with partial state saving if you are using a ViewScoped bean. You'll have to turn it off:
This is because tag handlers run in the restore view phase and will re-create any view scoped bean. This is going to be changed in JSF 2.2.
I have not any @ViewScoped at all, I alswasy used CDI annoations instead of the JSF scopes...
there are much discussions about the jsf code was generated at build time or render time...