Hi,

Put the Button in a Toolbar. See DefaultDataTable's code, it shows how
to add toolbars.
I guess the easiest way for you is to re-create the complete DataTable
with the new columns after pressing the button.
Otherwise also check DataView and GridView components. They are more
flexible than DataTable.

On Thu, Mar 8, 2012 at 8:27 AM, karthik
<[email protected]> wrote:
> Hi,
> I am a newbie in Wicket.
>
> I have a table with 4 columns , for which i have a html and java file
> respectively.
>
> My requirement is that there is a button on the right corner, which on click
> , should add new columns to the right of the existing table.
>
> Should i make any changes to the markup ?
>
> Any suggestions to achieve this will be of help.
>
> Thanks in advance,
> Karhthik
>
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Adding-Columns-on-Button-Click-in-Wicket-tp4455701p4455701.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to