You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Victor_Trapiello <vi...@trapiello.net> on 2010/05/17 23:41:03 UTC

Small doubt about wicket and Html

Hello guy;

I´m in Spain 12.0 o´clock nothing to do and before falling a sleep I
wonder... is there any method / way to hidde wicket items/componentes direct
in the html code¿? I mean now I do not want to show an image, in my java
code I say bablablabla myLabelWithImage.SetVisible(false);

can we do something similar like in php or strutsc, like puting ablock of
html and at the beginning one conditions intead putting everything in the
java code¿?

Thank you very much guys!

Victor Trapiello
www.trapiello.net
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Small-doubt-about-wicket-and-Html-tp2220418p2220418.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


Re: Small doubt about wicket and Html

Posted by nicolas melendez <nf...@gmail.com>.
you should use HTML/CSS for desing and java for GUI logic, like make
something invisible or visible.


On Tue, May 18, 2010 at 4:36 PM, Victor_Trapiello <vi...@trapiello.net>wrote:

>
> Thank you very much guys
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Small-doubt-about-wicket-and-Html-tp2220418p2221787.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
NM (Nicolás Meléndez)
Java Software Developer

A) Google App Engine works:

1) http://www.clasificad.com.ar - Local free classifieds for  housing, sale,
services, local community, curses,jobs, and events - GAE/J + Wicket + YUI

2) http://www.chessk.com - Massive multiplayer chess online - GAE/J +
Applets + Wicket

B) Linkedin: http://ar.linkedin.com/in/nicolasmelendez

Re: Small doubt about wicket and Html

Posted by Victor_Trapiello <vi...@trapiello.net>.
Thank you very much guys
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Small-doubt-about-wicket-and-Html-tp2220418p2221787.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


Re: Small doubt about wicket and Html

Posted by Fernando Wermus <fe...@gmail.com>.
wicket:enclosure is the best option

On Mon, May 17, 2010 at 7:15 PM, Jeremy Thomerson <jeremy@wickettraining.com
> wrote:

> You can not do it directly in HTML - it breaks the separation of concerns.
>  But, you can create a WebMarkupContainer, set the visibility on it, and
> nest your HTML within it.  Then you can control the visibility for that
> entire block with only the single component.  Also, see wicket:enclosure.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Mon, May 17, 2010 at 4:41 PM, Victor_Trapiello <victor@trapiello.net
> >wrote:
>
> >
> > Hello guy;
> >
> > I´m in Spain 12.0 o´clock nothing to do and before falling a sleep I
> > wonder... is there any method / way to hidde wicket items/componentes
> > direct
> > in the html code¿? I mean now I do not want to show an image, in my java
> > code I say bablablabla myLabelWithImage.SetVisible(false);
> >
> > can we do something similar like in php or strutsc, like puting ablock of
> > html and at the beginning one conditions intead putting everything in the
> > java code¿?
> >
> > Thank you very much guys!
> >
> > Victor Trapiello
> > www.trapiello.net
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Small-doubt-about-wicket-and-Html-tp2220418p2220418.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>



-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus

Re: Small doubt about wicket and Html

Posted by Jeremy Thomerson <je...@wickettraining.com>.
You can not do it directly in HTML - it breaks the separation of concerns.
 But, you can create a WebMarkupContainer, set the visibility on it, and
nest your HTML within it.  Then you can control the visibility for that
entire block with only the single component.  Also, see wicket:enclosure.

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



On Mon, May 17, 2010 at 4:41 PM, Victor_Trapiello <vi...@trapiello.net>wrote:

>
> Hello guy;
>
> I´m in Spain 12.0 o´clock nothing to do and before falling a sleep I
> wonder... is there any method / way to hidde wicket items/componentes
> direct
> in the html code¿? I mean now I do not want to show an image, in my java
> code I say bablablabla myLabelWithImage.SetVisible(false);
>
> can we do something similar like in php or strutsc, like puting ablock of
> html and at the beginning one conditions intead putting everything in the
> java code¿?
>
> Thank you very much guys!
>
> Victor Trapiello
> www.trapiello.net
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Small-doubt-about-wicket-and-Html-tp2220418p2220418.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>