1 Reply Latest reply on Nov 9, 2009 6:54 PM by Walter White

    Page Parameters and locale-specific content

    Walter White Novice

      Hi all,

      I want to write a custom JSF View Handler that resolves pages like:

      /news/1 => /news/1/en_US.xhtml

      or whatever the client's selected locale is from calculateLocale.

      I currently do this for sending out locale-specific email and it works great, but I haven't worked too much with JSF to know how this may interfere with the default view handler.

      For pages that are using forms, I have developed tags in combination with annotations on the bean to automatically draw the UI.

      I don't know how I would develop a view handler for either of these instances just yet.  I want to have 1 entry in pages.xml for each page (/news/1).  Even with a view handler, I will have to an entry for each locale:


      Is it possible to do this?  Is this a good or bad schema?  Is there a better way to do this?  I'm trying to avoid database calls here as well as make writing information pages quick and easy while avoiding duplication and the potential problems that arise.