Hi!
i've got some questions hoping you can give me some short advices:
- must i use webwork tags for <form...>,<textfield...> etc. to make field-validation
work?
if yes:
- why is there always a <table></table> surrounding the <ww:form...> in resulting
code?
- why do i must like labelling my inputs (<ww:textfield label=... />) can i
customize it?
- what is the right quotation: name=' " xxx " ' or name=' " xxx ' " or just
label= " ' xxx ' " (documentations differ...)
seems that ' " xxx " ' is the only right quotation ... ?
- i got a xxx-validation.xml with each action class
- am i right with: at the level of xxxAction.class file in the war's classes
directory?
- do i have to handle field errors in execute() method like:
if(!getActionErrors().isEmpty() || !getFieldErrors().isEmpty()) {
return INPUT;
} return SUCCESS;
or is "succes" or "input" automatically returnd and mapped to action's
configuration in xwork.xml (i found no docs about it)
- i got xwork.xml configuration for actions like :
<action name="loginAction" class="ehp.user.action.LoginAction">
<interceptor-ref name="validationWorkflowStack"/>
<result name="success" type="dispatcher">
<param name="location">/ehp/right.html</param>
</result>
<result name="input" type="dispatcher">
<param name="location">/ehp/false.html</param>
</result>
<result name="error" type="dispatcher">
<param name="location">/ehp/false.html</param>
</result>
</action>
- i got validators.xml in the war's WEB-INF root like in documentations:
<validators>
<validator name="required"
class="com.opensymphony.xwork.validator.validators.RequiredFieldValidator"/>
<validator name="requiredstring"
class="com.opensymphony.xwork.validator.validators.RequiredStringValidator"/>
<validator name="int"
class="com.opensymphony.xwork.validator.validators.IntRangeFieldValidator"/>
<validator name="date"
class="com.opensymphony.xwork.validator.validators.DateRangeFieldValidator"/>
<validator name="expression"
class="com.opensymphony.xwork.validator.validators.ExpressionValidator"/>
<validator name="fieldexpression"
class="com.opensymphony.xwork.validator.validators.FieldExpressionValidator"/>
<validator name="email"
class="com.opensymphony.xwork.validator.validators.EmailValidator"/>
<validator name="url"
class="com.opensymphony.xwork.validator.validators.URLValidator"/>
<validator name="visitor"
class="com.opensymphony.xwork.validator.validators.VisitorFieldValidator"/>
</validators>
Why doesn't it work for me ? :-(
thanks a lot
jp
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork