Results 1 to 2 of 2

Thread: Confused about actions

  1. #1

    Default 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. #2
    Join Date
    Jul 2007
    Posts
    123

    Default

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •