I tried SessionScoped, ViewScoped, RequestScoped... The result is the same in all cases.
–
Remy CiliaNov 7 '12 at 16:53

I tried to run your example and it worked fine. How you are checking is args undefined or not? Have you tried to do console.log(args) before if(args.validationFailed || !args.loggedIn)?
–
akoskmNov 7 '12 at 17:29

Ok, so we should always have "validationFailed" or "loggedIn" in the response. But in my case, both are undefined! (I "console.log" just before the "if" in the JS function).
–
Remy CiliaNov 7 '12 at 18:53

Is the Dialog - Login Demo works for you? Are you getting the expected JSON responses (like I described in my answer)? Which browser are you using?
–
akoskmNov 8 '12 at 6:08

This demo still doesn't work for me. I updated my first post with the response I get from Firebug (I can see it in the Firebug javascript console, maybe I do it wrong?) I tried with Firefox and Chromium, I have the same result with both.
–
Remy CiliaNov 9 '12 at 23:19

Your code looks fine, with copy&paste it works for me. Is the original demo on the PrimeFaces showcase works for you?
–
akoskmNov 10 '12 at 7:37

On the Primefaces showcase, it's working, but still not if I just copy/paste all the code on my environment... And if I check with FireBug on the showcase, I can see the "extension" tag with the Json, as you said.
–
Remy CiliaNov 10 '12 at 14:52