Announcement Announcement Module
Collapse
No announcement yet.
Confused about actions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Confused about actions

    Hello, this is my first post.

    I am new to groovy/grails and am trying to create a select box to toggle the locale.

    My problem is basically I have a class called LocaleChangeFromURI with a function called localeChange. I want to have localeChange called whenever this select box is changed. My gsp is:


    HTML Code:
    		<g:form action="localeChange">
    		<g:select name="languageSelect" from="${['English', 'Espanol', 'Francais', 'Deutsch']}"/>
    		<g:actionSubmit action="submit" value="${message(code: 'default.button.go')}" />
    		</g:form>

    But this doesent work because I havent specified the LocaleChangeFromURI class. But how do I?

    Any help would be great, thanks!

  • #2
    Try the User mailing list at http://grails.org/Mailing+Lists - there are a log more users there than on this forum.

    Comment

    Working...
    X