Re: Palette header
This code does not override the list headers. I'm using 1.3.4 - what am I doing wrong? public class MyPalette extends Palette { private static final long serialVersionUID = 1L; public MyPalette(String wicketId, Model toEntriesModel, Model fromEntriesModel, ChoiceRenderer choiceRenderer, int maxRows, boolean allowOrder) { super(wicketId, toEntriesModel, fromEntriesModel, choiceRenderer, maxRows, allowOrder); this.newAvailableHeader(Available for Assigning); this.newSelectedHeader(Assigned to User); } } Thanks. -- View this message in context: http://www.nabble.com/Palette-header-tp12673870p18817811.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Palette header
those are factory methods, not meant to be called by you. if you want to customize the behavior you should instead override those methods... -igor On Mon, Aug 4, 2008 at 12:20 PM, Edbay [EMAIL PROTECTED] wrote: This code does not override the list headers. I'm using 1.3.4 - what am I doing wrong? public class MyPalette extends Palette { private static final long serialVersionUID = 1L; public MyPalette(String wicketId, Model toEntriesModel, Model fromEntriesModel, ChoiceRenderer choiceRenderer, int maxRows, boolean allowOrder) { super(wicketId, toEntriesModel, fromEntriesModel, choiceRenderer, maxRows, allowOrder); this.newAvailableHeader(Available for Assigning); this.newSelectedHeader(Assigned to User); } } Thanks. -- View this message in context: http://www.nabble.com/Palette-header-tp12673870p18817811.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Palette header
On 9/14/07, fero [EMAIL PROTECTED] wrote: Thanks Gerolf! By the way, is somewhere the list of all keys for components? i guess not. ideally the keys for a component are described in the javadoc for the components class. but i don't know from the top of my head whether this is already done or not. gerolf Gerolf Seitz wrote: you can either provide localized strings for the keys palette.selected and palette.available (preferred), or override the methods newAvailableHeader/newSelectedHeader. gerolf On 9/14/07, fero [EMAIL PROTECTED] wrote: Hi, simple question: How to set model Palette header (Avaiable, Selected) ? I have a locale combo and I want to use ResourceModel, to change headers, when locale is changed. Thanks Fero -- View this message in context: http://www.nabble.com/Palette-header-tf4442063.html#a12673870 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Palette-header-tf4442063.html#a12676476 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Palette header
Hi, simple question: How to set model Palette header (Avaiable, Selected) ? I have a locale combo and I want to use ResourceModel, to change headers, when locale is changed. Thanks Fero -- View this message in context: http://www.nabble.com/Palette-header-tf4442063.html#a12673870 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]