Console shows the process function successfully obtain the var1 value from inputText
But browser shows blank outputText.
Nevertheless the inputText value contains correct var1 value when I view source in browser.
Test Case 2
Both console and browser shows var1 value.
Does JSF support postback to same page? The answer is no according to my tests.
Postback is, by definition, posting back (to the same page). But I don't see a scope definition on myBean. My suspicion is that myBean is being created at Request scope, meaning that the bean is created and destroyed on each URL request.
If you want the value to carry over, you need at least the View Scope level. Request scope isn't quite useless in JSF, but there are not many uses for it.
Sources may include data from the Fakebook Research Foundation with support from Gargle University