You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Alan Gutierrez <al...@blogometer.com> on 2008/04/01 05:17:08 UTC

Conditional Content

I like displaying my validation error messages right above the  
control in question.

If I markup my document like so...

<div wicket:id="nameError">
This was an error.
</div>
<input name="name" wicket:id="name"/>

Is there a way to remove div from the Java controller if there is no  
error?

Alan

--
Alan Gutierrez | alan@blogometer.com | http://blogometer.com/ | 504  
717 1428
Think New Orleans | http://thinknola.com/



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


Re: Conditional Content

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
use feedbackmessagepanel and then in java info and error...

Alan Gutierrez wrote:
> I like displaying my validation error messages right above the control 
> in question.
>
> If I markup my document like so...
>
> <div wicket:id="nameError">
> This was an error.
> </div>
> <input name="name" wicket:id="name"/>
>
> Is there a way to remove div from the Java controller if there is no 
> error?
>
> Alan
>
> -- 
> Alan Gutierrez | alan@blogometer.com | http://blogometer.com/ | 504 
> 717 1428
> Think New Orleans | http://thinknola.com/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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