Bieringer Dominik wrote:
Okay, Where can i find information about the technique you are talking
about?

As luck would have it, I wrote a blog entry about that technique (EL
functions) last week, but hadn't got round to posting it up yet. Your
question has motivated me to post it, so it's here:

http://jroller.com/page/ThoughtPark?entry=using_facelets_el_functions_for

The specifics of what I wrote are for EL functions in facelets, but the
same principle applies for JSPs, it's just slightly harder work.

I wrote it because you very rarely see EL functions mentioned. I
think they came in with JSP 2.0.

I can do the same you said on my JSF pages too ;)... I am having one JSF
page called main.jsp, which is including all other JSF pages dynamically...
(The decision which page to include is stored in an Session Bean)

That way, the user always navigates to main.jsp, but different pages are
loaded, .... Because of that, I only have to declare the message bundle
once, in the main.jsp page, and the message bundle is available in all
included sub pages.

If your message bundle is only declared in one place, there's not
much to be gained by my EL technique.

It sounds a bit like you're re-inventing the kind of templating
that facelets does. Have you thought about using it?


J.
--
.....................................................................
          Dr Jonathan Harley   .
                               .   Email: [EMAIL PROTECTED]
           Zac Parkplatz Ltd   .   Office Telephone: 024 7633 1375
           www.parkplatz.net   .   Mobile: 079 4116 0423

Reply via email to