Re: Behavior rendering

2014-05-16 Thread Sven Meier
Hi, read IAjaxRegionMarkupIdProvider's javadoc. Regards Sven On 05/09/2014 08:34 PM, Nick Pratt wrote: I have a Behavior attached to a WebMarkupContainer with a bind() method as follows: @Override public void bind( Component component ) { this.boundComponent = component;

Re: Behavior rendering

2014-05-12 Thread Nick Pratt
in the beforeRender() and afterRender(), is there anything better than adding something like: WebRequest request = (WebRequest) component.getRequest(); boolean ajax = request.isAjax(); if( ajax ) { return; } prior to appending the additional markup? On Fri, May 9, 2014 at 2:34 PM, Nick

Re: Behavior rendering

2014-05-12 Thread Nick Pratt
This works great - thank you. Nick On Sun, May 11, 2014 at 3:26 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, See org.apache.wicket.ajax.IAjaxRegionMarkupIdProvider Martin Grigorov Wicket Training and Consulting On Fri, May 9, 2014 at 9:34 PM, Nick Pratt nbpr...@gmail.com wrote:

Re: Behavior rendering

2014-05-12 Thread Nick Pratt
Martin While this updates correctly, Im running in to a problem of state with regards to visibility. Is there anyway to preserve client side state (specifically the value of 'display') when updating a component with such a border wrapped around it? Is there a way to inspect the value of the

Re: Behavior rendering

2014-05-12 Thread Martin Grigorov
Wicket.Event.subscribe(Wicket.Event.Topic.DOM_NODE_REMOVING, function(jqEvent, toBeRemovedElement) { preserveAttrs(toBeRemovedElement) }) Wicket.Event.subscribe(Wicket.Event.Topic.DOM_NODE_ADDED, function(jqEvent, addedElement) { restoreAttrs(addedElement) }) Martin Grigorov Wicket Training and

Re: Behavior rendering

2014-05-11 Thread Martin Grigorov
Hi, See org.apache.wicket.ajax.IAjaxRegionMarkupIdProvider Martin Grigorov Wicket Training and Consulting On Fri, May 9, 2014 at 9:34 PM, Nick Pratt nbpr...@gmail.com wrote: I have a Behavior attached to a WebMarkupContainer with a bind() method as follows: @Override public void bind(

Behavior rendering

2014-05-11 Thread Nick Pratt
I have a Behavior attached to a WebMarkupContainer with a bind() method as follows: @Override public void bind( Component component ) { this.boundComponent = component; component.setOutputMarkupId( true ); component.setOutputMarkupPlaceholderTag( true );