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
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.getId(),
target.getModel());
I was an user of click.
I was fed up of self handling model data. click has no direct linking of
pagefields to modelfields.
I asked the developers, but they did not see the advantage of doing click
the model binding.
click uses velocity, wicket html.
I prefer the wicket way.
Francisco Diaz Trep