Markus,

Wouldn't it be easier to navigate to the JSP page using an action method, in which you can set the properties of a managed bean appropriately? If you really want to initiate it from within the JSP page itself (e.g. because some external website is refering to it using an <a href="..."/>), you can use a bit of an ugly hack 'abusing' an <h:inputHidden value="#{BackingBean.value}"/> to call a getter method on your backing bean in which you modify the values. If anyone has a better idea, I'd like to hear it too because I would like to get rid of this 'feature' in my own application as well.

Regards,

Gert Vanthienen
[EMAIL PROTECTED]

Döring Markus wrote:
Hello,
I want to set a property of a managed bean out of a JSP Page.
What I've done so far is the following:

<jsp:useBean scope="request" class="DataControler" id="dataControler">
                <jsp:setProperty name="dataControler" property="dataName" 
value="User" />
                <jsp:setProperty name="dataControler" property="editable" 
value="true" />
                <jsp:setProperty name="dataControler" property="removeable" 
value="true" />
</jsp:useBean>

This works fine in the RenderResponse phase (6). When an action occurs, the 
view is restored and in the ApplyRequestValues phase (2) the jsp-setProperties 
are not executed.

How can I manage to set an beanProperty with an JSF Tag, or who can I force JSF 
to execute the jsp-setProperty in other phases than the RenderResponse?

Thanks for any help

Greetings
Markus Döring




Reply via email to