Help

Controls

PermLinkWikiLink
Switch Workspace

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Forum: Seam Users Forum ListTopic List
11. Mar 2010, 17:02 America/New_York | Link

hi all! i think my question has a trivial solution in seam but i can't find it. so your thoughts are very appreciated. at present my webapp has got a select control to choose language/locale for displayed page. i would like to give a user a possibility to select language via url too. for example:

http://host.xxx/en/user/123

in the url above the part '/en/' of the url means that page should be displayed in english. any ideas hot to do that?

thanks :)

1 Reply:
12. Mar 2010, 08:30 America/New_York | Link
You should use language as page parameter like language=en, and define an action and rewrite pattern like the below sample:

`
<rewrite pattern="/url/{language}"/>
<param name="language" />

<action excute="#{myLanguageModificator(param.language)}">
`

 

Please don't forget to rate!