Hi Josh,
yes, jWicket does it the Wicket way.
Generally you have a Behavior (e.g. DraggabeBehavior) extending wicket's
AjaxBehavior.
The you have some own component (a Panel e.g.)
Now you simply do
myPanel.add(new DraggableBehavior(...));
And DraggableBehavior let's you override some callbacks e.g.
DraggabeBehavior draggable = new DraggabeBehavior() {
onDragStop(final AjaxRequestTarget target, final SpecialKeys
specialKeys) {
// react when dragging has stopped
}
};
Draggable.setWantOnDragStopNotification(true);
class MyPanel extends Panel implements IDraggable { // only implements
IDraggable if you need to react here
onDragStop(final AjaxRequestTarget target, final SpecialKeys
specialKeys) {
// or react here when dragging has stopped
}
}
MyPanel myPanel = new MyPanel();
myPanel.add(draggable);
That's all.
Stefan
-Ursprüngliche Nachricht-
Von: Josh Kamau [mailto:joshnet2...@gmail.com]
Gesendet: Montag, 28. Juni 2010 16:20
An: users@wicket.apache.org
Betreff: Re: Jwicket and Wiquery
Thanks Stefan.
Actually i have an idea that jWicket is what i want. I have read that it
allows me to do the UI the jquery way but send events via ajax to the
server. The only thing stopping me here is lack of documentation.
Let me check out the demo .
Thanks again.
On Mon, Jun 28, 2010 at 5:15 PM, Stefan Lindner wrote:
> There is no tutorial for jWicket yet. Take a look at the javadocs or look
> into the source code of the demo application.
> And: If you are convinced that wiquery fulfills your requierements then
> take wiquery.
>
> Stefan
>
> -Ursprüngliche Nachricht-
> Von: Josh Kamau [mailto:joshnet2...@gmail.com]
> Gesendet: Montag, 28. Juni 2010 16:05
> An: users@wicket.apache.org
> Betreff: Jwicket and Wiquery
>
> Hi team;
>
> Whats the difference between jwicket and wiquery? I have already read
> wiquery tutorials and seen some examples, but i dont need to find any for
> jwicket. any help from jwicket team will do
>
> Kind regards.
>
> josh
>
> -
> 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