|
In my faces-config I have defined a bean called myBean and I have a
trivial statement like this in my jspx file: <h:outputText value="#{myBean.myProperty}"/> However this statement is placed inside a loop and at the start of each iteration I need to call a method called myBean.setup() before I try to get any properties. Because I have not found any better way, I am doing the following at the start of each iteration: <jsp:useBean id="myBean" class="dk.rockit.x.y.z.MyBean" scope="request" /> <jsp:scriptlet>myBean.setup();</jsp:scriptlet> I dislike this approach for several reasons:
Randahl |
- How can I avoid using the jsp:useBean tag? Randahl Fink Isaksen
- Re: How can I avoid using the jsp:useBean tag? Alecsandru Chirosca
- Re: How can I avoid using the jsp:useBean ta... Klug, Boris
- Re: How can I avoid using the jsp:useBean ta... Randahl Fink Isaksen
- Re: How can I avoid using the jsp:useBean tag? Bruno Aranda

