Looks like there is a problem in the ResizableBehaviour class. It does not ensure that the necessary jQuery CSS is added to the markup. Since the method that could do this has protected visibility I need to subclass the ResizableBehaviour like this:

ResizableBehaviour resizer = new ResizableBehaviour(){{ addUserProvidedResourceReferences(AbstractJqueryUiEmbeddedBehaviour.jQueryUiBaseCss); }};
myComponent.add(resizer);

Seb

On 29.09.2010 19:08, Sebastian wrote:
Hi,

I'd like to make a DIV resizable. The JavaDoc of ResizableBehavior says
I just need to add a new behavior instance to a Wicket component (in my
case a WebMarkupContainer) to make it resizable. Doing so results in my
HTML output referencing the minified jquery libs and containing code
like "jQuery('mydiv#2').resizable(...)". However the DIV did not change
at all and it is not resizable. What do I miss?

Thanks,
Seb


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to