Hi All,
Simple example:
---------------------------------------------------------------------------------
final BlockUIBehavior blockBehavior = new BlockUIBehavior();
final Form<Void> form = new Form<Void>("form");
AjaxButton ajaxButton = new AjaxButton("block")
{
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> ajaxForm)
{
target.addComponent(form); //(1)
blockBehavior.unblock(target);
}
};
form.add(ajaxButton.add(JQBehaviors.mouseClick(blockBehavior.block(form))));
add(form.add(blockBehavior));
---------------------------------------------------------------------------------
BlockUIBehavior works only first time.
On the second click to the button - nothing happens.
If remove (1) then it works without problems.
Does anybody know the reason of the problem and possible workaround?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/JQWicket-BlockUIBehavior-does-not-work-after-target-addComponent-tp4372781p4372781.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]