You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by ulrik <ul...@gmail.com> on 2008/06/26 10:56:47 UTC
Column with Link/Button in a treetable
Hello!
I am building a simple application with a EditableTreeTable
(http://www.wicketstuff.org/wicket13/nested/?wicket:bookmarkablePage=:org.apache.wicket.examples.ajax.builtin.tree.EditableTreeTablePage)
Here is how I create the columns for the table:
IColumn columns[] = new IColumn[] {
new PropertyTreeColumn(new ColumnLocation(Alignment.LEFT, 5,
Unit.EM),
"Radnr", "userObject.rowNr"),
new PropertyEditableColumn(new
ColumnLocation(Alignment.MIDDLE, 7, Unit.PROPORTIONAL), "ArtNr",
"userObject.artNr"),
new PropertyEditableColumn(new
ColumnLocation(Alignment.MIDDLE, 7, Unit.PROPORTIONAL), "Typ",
"userObject.type"),
new PropertyEditableColumn(new
ColumnLocation(Alignment.MIDDLE, 7,
Unit.PROPORTIONAL), "Beskrivning",
"userObject.description"),
new PropertyEditableColumn(new
ColumnLocation(Alignment.MIDDLE, 7,
Unit.PROPORTIONAL), "Antal", "userObject.qty"),
new PropertyEditableColumn(new
ColumnLocation(Alignment.MIDDLE, 7,
Unit.PROPORTIONAL), "Enh", "userObject.unit"),
new PropertyEditableColumn(new
ColumnLocation(Alignment.MIDDLE, 7, Unit.PROPORTIONAL), "áPris",
"userObject.price"),
new PropertyEditableColumn(new
ColumnLocation(Alignment.MIDDLE, 7, Unit.PROPORTIONAL), "Summa",
"userObject.total"),
};
Now I want to add another column, which should hold either a link or a
button that enables me to remove a row in the table. Sadly I have no idea of
how I should do this.
Could someone please help me?
//Ulrik
--
View this message in context: http://www.nabble.com/Column-with-Link-Button-in-a-treetable-tp18129531p18129531.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: Column with Link/Button in a treetable
Posted by Igor Vaynberg <ig...@gmail.com>.
see how the "select" column is created in datatable examples in wicket-examples
-igor
On Thu, Jun 26, 2008 at 1:56 AM, ulrik <ul...@gmail.com> wrote:
>
> Hello!
>
> I am building a simple application with a EditableTreeTable
> (http://www.wicketstuff.org/wicket13/nested/?wicket:bookmarkablePage=:org.apache.wicket.examples.ajax.builtin.tree.EditableTreeTablePage)
>
> Here is how I create the columns for the table:
>
> IColumn columns[] = new IColumn[] {
> new PropertyTreeColumn(new ColumnLocation(Alignment.LEFT, 5,
> Unit.EM),
> "Radnr", "userObject.rowNr"),
> new PropertyEditableColumn(new
> ColumnLocation(Alignment.MIDDLE, 7, Unit.PROPORTIONAL), "ArtNr",
> "userObject.artNr"),
> new PropertyEditableColumn(new
> ColumnLocation(Alignment.MIDDLE, 7, Unit.PROPORTIONAL), "Typ",
> "userObject.type"),
> new PropertyEditableColumn(new
> ColumnLocation(Alignment.MIDDLE, 7,
> Unit.PROPORTIONAL), "Beskrivning",
> "userObject.description"),
> new PropertyEditableColumn(new
> ColumnLocation(Alignment.MIDDLE, 7,
> Unit.PROPORTIONAL), "Antal", "userObject.qty"),
> new PropertyEditableColumn(new
> ColumnLocation(Alignment.MIDDLE, 7,
> Unit.PROPORTIONAL), "Enh", "userObject.unit"),
> new PropertyEditableColumn(new
> ColumnLocation(Alignment.MIDDLE, 7, Unit.PROPORTIONAL), "áPris",
> "userObject.price"),
> new PropertyEditableColumn(new
> ColumnLocation(Alignment.MIDDLE, 7, Unit.PROPORTIONAL), "Summa",
> "userObject.total"),
>
>
> };
>
> Now I want to add another column, which should hold either a link or a
> button that enables me to remove a row in the table. Sadly I have no idea of
> how I should do this.
> Could someone please help me?
>
> //Ulrik
> --
> View this message in context: http://www.nabble.com/Column-with-Link-Button-in-a-treetable-tp18129531p18129531.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