Order of variables in controllers and views

View: New views
3 Messages — Rating Filter:   Alert me  

Order of variables in controllers and views

by puspadhar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear All,

Is there a way to create the controllers and the views so that the variables are displayed in the views in the order they were declared in the domain class?

Regards,
Puspadhar Das

Re: Order of variables in controllers and views

by nycsailor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In a way,

That is what the scaffolding does with the constraint closure.  Instead
of listing the way they were declared, it lists them in the order of the
constraints.

You could also make your own list and read it from the view.

Scott


On Fri, 2009-06-26 at 19:09 -0700, puspadhar wrote:
> Dear All,
>
> Is there a way to create the controllers and the views so that the variables
> are displayed in the views in the order they were declared in the domain
> class?
>
> Regards,
> Puspadhar Das


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Order of variables in controllers and views

by Graeme Rocher-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Please post these questions to the user list

On Sat, Jun 27, 2009 at 3:09 AM, puspadhar<puspadhar@...> wrote:

>
> Dear All,
>
> Is there a way to create the controllers and the views so that the variables
> are displayed in the views in the order they were declared in the domain
> class?
>
> Regards,
> Puspadhar Das
> --
> View this message in context: http://www.nabble.com/Order-of-variables-in-controllers-and-views-tp24229705p24229705.html
> Sent from the grails - dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>



--
Graeme Rocher
Head of Grails Development
SpringSource - Weapons for the War on Java Complexity
http://www.springsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email