I have jsf within an iframe, to be more precise, within c:import of another jsf,
I have a button inside the iframe jsf, that activates a simple method within a bean, System.out.println("foo");
When i click the button inside the iframe, first click the link changes to the iframe address and the method is not invoked at all, and the second click works but only when i am inside the other address.
this is an example of the code :
first click on the button will change the link from test1.jspx to test2.jspx, second click will work.
I tried - changing the bean method foo return type from void to String and returned "".
- changing to a4j:commandButton, and change h:form to a4j:form, this dosen't change the link from test1.jspx to test2.jspx but still, first click does nothing, second click works.
Consider upgrading your CV, instead. JSF2.0 has been out long enough that migration from JSF 1 should be part of any new development project. Moving from JSF1 to JSF2 is relatively painless - at least if you followed good practices in JSF1. If working conditions don't permit keeping up with technology, you're better off going elsewhere before things get worse, as someone is being penny-wise and pound-foolish.
subject: Command button within iframe doesn't work on first click