I am converting from
struts to
jsf and have a seious issue initializing backing beans for a page.
I want to pre-fill a backing bean and then display its values on a jsf form.
The followig code does not work as it creates a new bean when it encounters the jsf tag:
<%
form.Site site = new form.Site();
site.setSiteName("test");
%>
<f:view>
<h:form>
<h:inputText binding="#{site.siteName}"></h:inputText>
</h:form>
</f:view>
How does one initialze the baking bean ? With struts, I simply created the bean and stuck it in the session.
You help in this matter would be greatly appriciated.