This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
with this code here
you almost have.
Now write a backing bean method (java beans specification) as specified(JSF) for a "validator method" and obtain the value (validator= on the tag).
Inside the the validator
set the UIComponent to setTransient(true);
and the component type in the validator of UIInput to saveState
with these in the workings as a choice.
did you mean use another classfile/ bean with a scope of "none" in the web app bean package folder?
JSF in most modes uses "POST" CGI request system. The design is to use a bean of at least one master-classfile that contains "session" state scope to hold the value over while nothing is occurring, and the same classfile also contains(generally the same one) a validator method for each component of the form and relates to the page form programmatically in the JSF framework not simply server side java and a normal HTML form or page.
Other services such as "output" of messages and data presented to the client are an associate point of the result of using a form and is a service to the system and method of using JSF to manipulate form data.
...did you have the fish?!............................ No.