Hi,
When we add ajax handler to a component with open
and close tag , for example a drop down choice <select wicket:id="parentAgent" id="parentAgent"></select>
wicket will try to add the hanfder
twice, first during the rendering phase of the opening tag and
secondly during the rendering phase of the close tag. And this results in
an exception.
The ajax handler should be added only when the tage
type is XmlTag.OPEN or XmlTag.OPEN_CLOSE and not when the tag type is
XmlTag.CLOSE.
Right now i am doing this check to avoid
the probelm when i add the ajax handler to a drop dpwn , can any
one out there please confirm if this is the right approach.
or am i missing something important
here.
Any suggestions and pointer in the right
direction will be greatly appreciated.
Thanks
Dipu
|
- [Wicket-user] adding ajax handlers to component with open ... Dipu