Wicket is "just java, just html".  Just add the JS to your HTML file.  Don't
add an AjaxEventBehavior in java - because you don't want Ajax, and you
don't need to do it in the java.

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Mar 17, 2010 at 4:05 AM, marioosh.net <marioosh....@gmail.com>wrote:

> I have container and buttons element in my template:
>
>        <div wicket:id="container">
>                <span>
>                        ...
>                </span>
>                <span wicket:id="buttons" style="display: none;">
>                        <a href="#" wicket:id="edit">E</a>
>                        <a href="#" wicket:id="delete">D</a>
>                </span>
>        </div>
>
> and java:
>                container.add(new AjaxEventBehavior("onmouseover") {
>                        protected void onEvent(AjaxRequestTarget target) {
>                                buttons.add(new
> SimpleAttributeModifier("style", "display: ;"));
>                                target.addComponent(buttons);
>                        }
>                });
>
> On mouseover container i show buttons, but i think it sends request to
> server in that way.
> Is possible to change style in js only (but programming in wicket),
> not sending request to server ?
> How in wicket do some js work, but not interacting with server ?
>
> --
> Greetings,
> marioosh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to