Thanks!
D&D works on IE without crashing IE's JS engine.
The approach, to pass component to
someEffect.fire(target,component...)
is more simpler/cheaper than adding behavior to
a component and invoking bahavior's method to apply effect.
Regarding effects, to preserve my approach
(I was forked jwicket 0.4 ...) I had to use
(by example) something like:
public class FadeEffect extends AbstractJqueryUiEffect {
public FadeEffect() {
super(new JQueryJavascriptResourceReference(
SlideEffect.class, "jquery.effects.fade-1.8.min.js"));
}
public void fadeOut(final AjaxRequestTarget target,
final int speedMs, final Component component) {
target.appendJavascript("jQuery('#" + component.getMarkupId()
+ "').fadeOut(" + String.valueOf(speedMs) + ");");
}
public void fadeIn(final AjaxRequestTarget target,
final int speedMs, final Component component) {
target.appendJavascript("jQuery('#" + component.getMarkupId()
+ "').fadeIn(" + String.valueOf(speedMs) + ");");
}
@Override
void appendOptions(StringBuilder jsString) {
// required by abstract super
}
@Override
String getEffectName() {
// required by abstract super
return "fade";
}
}
All in all,
thanks once again.
Stefan
--- On Fri, 2/26/10, Stefan Lindner <[email protected]> wrote:
> From: Stefan Lindner <[email protected]>
> Subject: jWicket release 0.5.0
> To: [email protected]
> Date: Friday, February 26, 2010, 3:57 PM
> I have committed jWicket version
> 0.5.0 to wicketstuff
>
> Changes:
> - jQuery update to Version 1.4.2
> - jQuery UI update to 1.8RC2
> - drag/drop/resize improvements to work in IE 6/7/8 after
> AJAX update or
> in LazyLoad panels
> - drag/drop/resize improvements for less footprint in HTML,
> smaller js
> code generation
> - Effects rewritten completely, now covering all effects
> - Effects now support a chain of multiple effects
>
> Known Issues
> - Example application not very attractive
> - Example applicatioin contains some debugging code
>
> Let me know if someone needs prebuild jar files.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]