You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by PEGASUS84 <pe...@hotmail.it> on 2009/02/17 23:59:03 UTC

struts2 validation

good evening;
Does someone knows how to hide the error message which cames from the action
with name=input?
i don't want to view this message Invalid field value...
-- 
View this message in context: http://www.nabble.com/struts2-validation-tp22068251p22068251.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 validation

Posted by PEGASUS84 <pe...@hotmail.it>.
sorry but i can't.
this is my code jsp:
<s:form action="/action/Login.action" method="GET" cssClass="form">
  <s:textfield label="Username" name="username"
cssClass="basic"></s:textfield>
 <s:password  label="Password"  name="password"
cssClass="basic"></s:password>
  <s:select  label="Login as" name="tipo" cssClass="selezione" headerKey="1"
headerValue="seleziona"
list="#{'01':'studente','02':'docente','03':'segretario'}"></s:select>
   <s:submit value="Login" align="center" cssClass="botton"/>
   </s:form>


and this is the image
http://www.nabble.com/file/p22089792/Image.jpg 
i don't want the message;
please help me
-- 
View this message in context: http://www.nabble.com/struts2-validation-tp22068251p22089792.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 validation

Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/2/18 PEGASUS84 <pe...@hotmail.it>:
> but in this way i'cant se the labels of the form;

You can use s:label tag [1]

> Can i override theme simple and remove only errorMessage?

Yes you can, take a look on [2] and [3]


[1] http://struts.apache.org/2.1.6/docs/label.html
[2] http://struts.apache.org/2.1.6/docs/extending-themes.html
[3] http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme


Regards
-- 
Lukasz
http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 validation

Posted by PEGASUS84 <pe...@hotmail.it>.
thanks,
but in this way i'cant se the labels of the form;
Can i override theme simple and remove only errorMessage?
-- 
View this message in context: http://www.nabble.com/struts2-validation-tp22068251p22087958.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 validation

Posted by Lukasz Lenart <lu...@googlemail.com>.
Use theme simple [1] and add what tags you want

[1] http://struts.apache.org/2.1.2/docs/themes-and-templates.html


Regards
-- 
Lukasz
http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 validation

Posted by PEGASUS84 <pe...@hotmail.it>.

thanks for your answer i've removed the conversion error interceptor but the
same message apper in my jsp page;
if i see the html code i see <td> with the message invalide field value...
is there a way for remove this td?
 
-- 
View this message in context: http://www.nabble.com/struts2-validation-tp22068251p22082549.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 validation

Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/2/17 PEGASUS84 <pe...@hotmail.it>:
> Does someone knows how to hide the error message which cames from the action
> with name=input?
> i don't want to view this message Invalid field value...

I thing you're talking about conversion errors, if so remove
Conversion Error Interceptor [1] from your stack

[1] http://struts.apache.org/2.1.6/docs/conversion-error-interceptor.html


Regards
-- 
Lukasz
http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org