Re: [Wicket-user] Replace a component with another component by adding a Behaviour

2007-07-20 Thread Eelco Hillenius
> in the end it will be the panel-solution I think. > but is there a way to diable the check? Not really for those components. Though if you take a look at their sources, they are not real difficult components. TextArea for instance: public class TextArea extends AbstractTextComponent { p

Re: [Wicket-user] Replace a component with another component by adding a Behaviour

2007-07-20 Thread pixotec
thank you eelco, in the end it will be the panel-solution I think. but is there a way to diable the check? renders the added hidden field then a complete html-tag when it replaces textarea? -- View this message in context: http://www.nabble.com/Replace-a-component-with-another-component-by-addi

Re: [Wicket-user] Replace a component with another component by adding a Behaviour

2007-07-19 Thread Eelco Hillenius
> I try to replace a TextArea with a HiddenField (or in next step with a > Panel). > > before: > Input comes > here > > after: > > > I added a Behaviour to the TextArea: > public void bind(Component c) > { > target = c; > > HiddenField hiddenField = new HiddenField(target.g