Thank you for your answer.
It seems that I'm too stupid for getting it, I try to work with closures but
now my textfields are always hidden.
Can please anyone help again?
Thank you and best regards
Christoph
<snip>
/* bool */
boolean _bPause = false;
/* selectbox */
_selectArt.add(new AjaxFormComponentUpdatingBehavior("onchange")
{
private static final long serialVersionUID=1L;
protected void onUpdate(AjaxRequestTarget target)
{
if(selectArtModel.getObject().equals("1"))
{
System.out.println("test id: "+_pauseVon.getMarkupId());
// _pauseVon.setVisible(true);
// _pauseBis.setVisible(true);
_bPause = true;
target.addComponent(_pauseVon);
target.addComponent(_pauseBis);
}
else
{
// _pauseVon.setVisible(false);
// _pauseBis.setVisible(false);
_bPause = false;
target.addComponent(_pauseVon);
target.addComponent(_pauseBis);
}
}
});
/* pauseVon textfield with datepicker */
_pauseVon = new TextField<String>("pauseVon", pauseVonModel)
{
private static final long serialVersionUID=1L;
@Override
public boolean isVisible()
{
_logger.severe("von: "+_bPause);
return _bPause;
}
};
---8<---
<wicket:enclosure child="pauseVon">
<input type="text" wicket:id="pauseVon" />
</wicket:enclosure>
</snip>
On Fri, Apr 9, 2010 at 9:50 AM, Per Newgro <[email protected]> wrote:
> http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html
>
> see Element wicket:enclosure
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>