Yes, clientBean is declared in faces-config.xml.
This is how i bind value to bean property (in included jsp):
<h:selectBooleanCheckbox value="#{clientBean.client.addV.itp}"/>

and in calling jsp (wich does works fine):

<h:inputText value="#{clientBean.client.clientHomePhone}"/>


----- Original Message ----- From: "Dennis Byrne" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <[email protected]>
Sent: Thursday, April 20, 2006 8:12 AM
Subject: Re: Setting managed bean properties from inlcuded jsp


Furer,

Are you specifying "clientBean" in faces-config.xml ? If so, you would access this via a JSF EL binding - something like this

<h:outputText value="#{clientBean}" />

You are trying to access this with a JSP EL binding ( startwith $ ), which simply cannot trigger an instantiation of the clientBean.

Dennis Byrne

-----Original Message-----
From: Furer Alexander [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 19, 2006 07:46 PM
To: 'MyFaces Discussion'
Subject: Setting managed bean properties from inlcuded jsp

Hi all
I have managed bean that contains few another nested beans.
First jsp binds inputs to managed bean properties and includes (at runtine) another jsp, that binds its' input
to appropriate nested bean's properties.
The code :

<h:form>
... main jsp page .....
.........
<f:subview id="addInfo" >
<f:verbatim>
<jsp:include page="${clientBean.addinionalInfoJSPName}" />
</f:verbatim>
</f:subview>
</h:form>

All jsp(s) use the same bean to tier input valies.
The problem is that on submit, only inputs from main jsp are set and those from additional jsp aren't.
Please advise, thanks



Reply via email to