Hi Wes.
Wes Wannemacher ha scritto:
I don't think you need the method name in validation file's filename. I would
try renaming the file to Item_update-validation.xml.
Didn't help. I even tried to make a new package /admin/Item
and use action names as update, view and edit.. naturally
I renamed the validation file to update-validator.xml
but didn't change anything.
If your intention is to only validate when the method 'update' is being
called, you might have to use the Validation annotations rather than the XML
file. Remember though that there are a certain set of results ignored by the
validation interceptor by default (such as the "input" result).
I tried Annotations yesterday but didn't help neither.
I start to think there is something wrong with my environment..
But.. are you guys sure that xml validation works when
implementing ModelDriven?
Thanks
Robi
-Wes
On Wednesday 08 April 2009 09:15:11 Roberto Nunnari wrote:
Humm.. I don't know.. I tried with
view:
<s:form method="post" action="Item_update" namespace="/admin">
struts.xml:
<action name="Item_update" method="update"
class="ch.nunnisoft.myecommerce.actions.admin.ItemAction">
<result type="redirect-action">
<param name="actionName">Item-view?id=${id}</param>
</result>
<result name="input" type="tiles">adminItemEdit</result>
</action>
and renamed validator xml file to:
Item_update-update-validation.xml
but still.. it doesn't check anything..
Any more hints?
Robi
Lukasz Lenart ha scritto:
2009/4/8 Roberto Nunnari <roberto.nunn...@supsi.ch>:
<action name="Item-update" method="update"
Action name is:
Item-update
method name is:
update
so then, validation file should be?
Item-update-update-validation.xml
and here's my Item-update-validation.xml file that I put in the same
folder
In theory this should work for whole action Item-update, but I think
the problem is that double dash ;-)
Change naming convention for your actions, use namespace instead names
like Item-update or use underscore
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org