This could be done via a mixin like this (untested)

public class DontSort {
        @InjectComponent
        private Grid grid;

        @Parameter(required="true")
        private String unsorted;

        @SetupRender
        void setupRender() {
                BeanModel model = grid.getDataModel();
                String[] props = unsorted.split(",");
                for (String prop : props) {
                        model.get(prop).sortable(false);
                }
        }
}

Usage:
<t:grid mixins="dontsort" unsorted="name,address1,address2,..." />

Lance



On Thursday, 12 January 2012, LanceWhite <groli...@gmail.com> wrote:
> Thanks, that gave me the info I needed!
>
> (and found the JumpStart example where this was done)
>
> Cheers
>
> Lance
>
> --
> View this message in context:
http://tapestry.1045711.n5.nabble.com/T5-3-Grid-sorting-tp5140215p5140324.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to