Matthieu Casanova a écrit :
> Hi, I want to hide a component, and sometimes making it visible using
> javascript.
> Is there something like that in wicket api or should I do it myself
> with some javascript ?
Hi,
If you want to make your component visible/invisble using ajax, you can use
setOutputMarkupPlaceholderTag(true) and setVisible(false/true) on
your component. Read setOutputMarkupPlaceholderTag javadoc to get more
information.
If you want just want to do that with javascript (without ajax), a
simple javascript could be fine
myNode.style.display = "none"/"block" or myNode.style.visiblility =
"hidden"/"visible"
--
Vincent
>
> Matthieu
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user