myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Łukasz Budnik" <>
Subject general question: assigning/copying variables in view?
Date Sun, 09 Mar 2008 09:47:44 GMT
Hi All!

I have a problem with redundancy in my web application and I am
looking for a solution
to this problem.

Let's say I have an application to support the librarians. I have
following views: authorDetails.jsf, bookDetails.jsf,

All above listed views use the very same HTML elements.
It's huge redundancy, because they differ only by the value attribute
set in outputTexts.
For example, author's first name is retrieved from three different
managed beans: => in authorDetails.jsf => in bookDetails.jsf => bookOrderDetails.jsf

Is there any method in MyFaces to assign /copy a variable like this:

<copy to="authorDetails" from="" />
<copy to="authorDetails" from="" />

so that later on I could include one common JSP and display the
contents of authorDetails variable?

thanks in advance
best regards
View raw message