• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is this possible?

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually have just found the way.

Sorry and thanks.
Carlos.
------------------------------



Hi there,
I have been programming with JSF (1.2) for a little while, and wonder if the following is possible:

I want to use a JSF template where I put references to "any" backing bean which will holds an instance of a specific type, let's say ADDRESS for example.

This would be extremely useful because I could have defined one single template for the address type which I would call from the container files und update ADDRESS fields like "${[ANY_BACKINGBEAN_PARAMETER].address.zipCode}". I know I still have the solution of creating an AddressBackingBean and reference it from the template (which I actually do), but then I must be caring for updating the reference throughout the application, which means handling the coordination of bean initialization in the PhaseListener when accessing a specific page.

The whole thing involves considerable tasks in coordinating and assigning the right references at the right time.

Hope the issue is clear. From my understanging I guess that a real template framework should enable this feature. However I still haven't figured out how to do this in JSF. Perhaps available in JSF 2.0?

Many thanks.

Carlos.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic