• 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

Permanent links for i18n in JSF

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
I am migrating an application from Struts2 to JSF. In struts2 I had mapped most of the actions so that the same action returned different locale content depending on the URL:

http://site.com/en/content.action
http://site.com/es/content.action

The action returned the same JSP which showed spanish or english depending on the URL.

Is there any approach for doing this with JSF? If not, which is the recommended approach for making the same JSF (xhtml) show different locale content depending on a request parameter (?locale=en for example)
I have solved it using a changeLocale method in a managed bean, which works OK, but as it uses Post, the pages are not SEO as cannot be crawled.

Thanks for any ideas/approach.
Ignacio
 
reply
    Bookmark Topic Watch Topic
  • New Topic