It should only change "test". What scope is your backing bean? you need to use ViewScoped with
Ajax. Also panelGrid has no layout attribute, use panelGroup with layout="block" to render a div.
If you put some logging in your getters you should find that they get called multiple times through
the phase lifecycle which makes it a good idea to almost always use IDE generated getters & setters.
There's always somewhere else to put additional logic. I realise that this is just a simple test but
this is something that can make your life easier in future.
Any particular reason for multiple forms? You may have to specify the naming container as well
as the component id, i.e. f:ajax render="formid:test".
Joined: Mar 30, 2011
I put them in different forms as a last attempt to figure out why it wasnt working, I figured thta just maybe the form was updated
Also im using SessionScoped. Is only ViewScoped possible to use in conjuction with Ajax? And if so, why if I may ask?