You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Edbay <ed...@prudential.com> on 2008/08/04 21:20:00 UTC
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Palette header
Posted by Igor Vaynberg <ig...@gmail.com>.
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 <ed...@prudential.com> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org