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-unsubscr...@tapestry.apache.org For additional commands, e-mail: dev-h...@tapestry.apache.org
Re: Overriding the header of a grid and sorting
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-unsubscr...@tapestry.apache.org For additional commands, e-mail: dev-h...@tapestry.apache.org
Re: Overriding the header of a grid and sorting
sorry and thx! 2012/9/3 Lance Java [via Tapestry] ml-node+s1045711n5716010...@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 herehttp://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5715990code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNTk5MHwxMDUzMzQxMzM4 . NAMLhttp://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=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.