Re: How Can I Implement a Dynamic Table?

2007-08-10 Thread Igor Vaynberg
see DataTable -igor On 8/10/07, Pantaleoni, Andrea (KCTU) [EMAIL PROTECTED] wrote: Hello, I have to implement a dynamic table: depending on user choices or values of fields in database, the number of columns could change. e.g. In same case I can have 3 columns containing Labels or in

Re: Problem with uploading files

2007-08-10 Thread Igor Vaynberg
looks like fileInputStream is a field on your page, but it isnt serializable. so dont store it as a field -igor On 8/10/07, legol [EMAIL PROTECTED] wrote: Iam doing something like this: FileUpload upload = uploadField.getFileUpload(); if(upload!=null) {

Re: remove all behaviors of a certain type

2007-08-10 Thread Igor Vaynberg
you have getbehaviors() and removebehavior(), the rest belongs in some WicketUtil class you write. -igor On 8/10/07, Sean Sullivan [EMAIL PROTECTED] wrote: The Component class provides a method for removing a single IBehavior object: public Component remove(final IBehavior behavior)

RE: getting component parent

2007-08-10 Thread Pantaleoni, Andrea (KCTU)
Actually I'm using use 1.2 -Original Message- From: Will Jaynes [mailto:[EMAIL PROTECTED] Sent: 10 August 2007 13:52 To: users@wicket.apache.org Subject: getting component parent Using 1.3. I have a panel which needs to create different internal components depending on who it's

remove all behaviors of a certain type

2007-08-10 Thread Sean Sullivan
The Component class provides a method for removing a single IBehavior object: public Component remove(final IBehavior behavior) Is there a similar method that will allow me to remove all IBehaviors of a certain type? I'd like to be able to do this: Panel p; ...

How Can I Implement a Dynamic Table?

2007-08-10 Thread Pantaleoni, Andrea (KCTU)
Hello, I have to implement a dynamic table: depending on user choices or values of fields in database, the number of columns could change. e.g. In same case I can have 3 columns containing Labels or in other cases 5 containing Labels and form components(and so on). To do that I'm using a ListView

getting component parent

2007-08-10 Thread Will Jaynes
Using 1.3. I have a panel which needs to create different internal components depending on who it's parent is. However, calling getParent() in the constructor gives me null. I can make a constuctor that passes in the parent. But I wonder if there is a different way. Is there some other point