You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by sommeralex <al...@gmail.com> on 2012/09/02 21:03:02 UTC

Overriding the header of a grid and sorting

Hi!

If i am overwriting the header of a grid, the automatic sort function is
lost. the only thing i could find was
http://tapestry.1045711.n5.nabble.com/Grid-Header-Override-and-Sorting-td3574037.html 

is there no easy way to overwrite a column name? I mean, also for
localization it should be a standard feature being able to localize names
without loosing the standard sort function..

is there a trick to use the standard-sort function or do i have to implement
a full sortModel?

thx
alex



--
View this message in context: http://tapestry.1045711.n5.nabble.com/Overriding-the-header-of-a-grid-and-sorting-tp5715990.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Overriding the header of a grid and sorting

Posted by sommeralex <al...@gmail.com>.
sorry and thx!

2012/9/3 Lance Java [via Tapestry] <
ml-node+s1045711n5716010h52@n5.nabble.com>

> Firstly, you have asked this question on the wrong list (it should be on
> the tapestry-user NOT tapestry-dev)
>
> Secondly, if you add a message with a key "propertyName-label", tapestry
> will use that instead of generating a user friendly name from the property
> name.
>
> @see TapestryInternalUtils.defaultLabel(String id, Messages messages,
> String propertyExpression)
>
>
> Cheers,
> Lance.
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/Overriding-the-header-of-a-grid-and-sorting-tp5715990p5716010.html
> To unsubscribe from Overriding the header of a grid and sorting, click
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5715990&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNTk5MHwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://tapestry.1045711.n5.nabble.com/Overriding-the-header-of-a-grid-and-sorting-tp5715990p5716011.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.

Re: Overriding the header of a grid and sorting

Posted by Lance Java <la...@googlemail.com>.
Firstly, you have asked this question on the wrong list (it should be on the
tapestry-user NOT tapestry-dev)

Secondly, if you add a message with a key "propertyName-label", tapestry
will use that instead of generating a user friendly name from the property
name.

@see TapestryInternalUtils.defaultLabel(String id, Messages messages, String
propertyExpression)


Cheers,
Lance.



--
View this message in context: http://tapestry.1045711.n5.nabble.com/Overriding-the-header-of-a-grid-and-sorting-tp5715990p5716010.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org