On Tue, Aug 26, 2003 at 08:57:57AM -0700, Pat Lightbody wrote:
Anders,
WebWork was meant, from the start, to include optional components. It was
built to be an extension upon XWork to include various view support. If we
made FreeMarker a view technology that ended up in webwork-extensions, why
I've been using the validator in webwork and have found myself
duplicating a few of the validations throughout the app, is there anyway
I can apply validations to multiple actions or objects?
for example I have a creation form to create a Car, and then I have
another to Edit and Update the
Hello,
I've got following problem with Webwork and Velocity:
I'm creating a page with top and link navigation and the content. I've got
the link navigation as template, which is included into the page. Problem is
when in that template I'll use a VTL variable. Then template is included as
static
Did you #include() or #parse() your template?
#include() just includes everyting verbatim
withoutlooking inside.
At first I've tried #include but it did not work. Then I've tried #parse
(template.vm) but an exception was raised:
Fri Sep 05 13:31:11 CEST 2003 [error] #parse() : arg =
--- Tomasz Wrona [EMAIL PROTECTED] wrote:
Did you #include() or #parse() your template?
#include() just includes everyting verbatim
withoutlooking inside.
At first I've tried #include but it did not work.
Then I've tried #parse
(template.vm) but an exception was raised:
Fri Sep 05
It's embedded into your resultig page. Such snippet
works for me:
h3News/h3
#set( $prefix = /infobit/news/ )
#set( $suffix = ?_render_mode=preview )
table
#foreach($newsEntry in $newsSelector.news
)
#set ( $linkname =
If you have the Car object as a property of the Action, you can use the
VisitorFieldValidator (there's a little doc on this on the Wiki) to make
the validation framework use the validations defined for the Car class.
This way, you could define your common validations for the car in a
single
Oh, and I'm still open to making it possible to centralize validations
without having to inherit them... Maybe an include element in the
validation files like we have in xwork.xml? Then you could manage
validations all in your XML files without needing a second place to look
for what might have
ok, so this is what i've got and its not working, maybe im not
understanding everyting correctly, in CarAction-validation.xml :
!DOCTYPE validators PUBLIC -//OpenSymphony Group//XWork Validator
1.0//EN http://www.opensymphony.com/xwork/xwork-validator-1.0.dtd;
validators
field name=car
It should be Car-validation.xml, not Car-validations.xml
-Original Message-
From: Francisco Hernandez [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 1:01 PM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] using one validator on several
different actions
ok, so
I tried using Car-validation.xml too and it doesnt work, anything else I
could try?
Jason Carreira wrote:
It should be Car-validation.xml, not Car-validations.xml
-Original Message-
From: Francisco Hernandez [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 1:01 PM
To: [EMAIL
When you say it doesn't work, what do you mean?
-Original Message-
From: Francisco Hernandez [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 3:05 PM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] using one validator on several
different actions
I tried using
im not getting any fieldErrors added the fields that were left blank
Jason Carreira wrote:
When you say it doesn't work, what do you mean?
-Original Message-
From: Francisco Hernandez [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 3:05 PM
To: [EMAIL PROTECTED]
Subject: Re:
Keep in mind that these errors will be added as the property names (i.e.
name not car.name) so it might not show up next to the field... See
if it's got any errors when it runs. I'll create a Jira, as I just
realized this is a problem :-)
-Original Message-
From: Francisco Hernandez
its not adding any fieldErrors at all
Jason Carreira wrote:
Keep in mind that these errors will be added as the property names (i.e.
name not car.name) so it might not show up next to the field... See
if it's got any errors when it runs. I'll create a Jira, as I just
realized this is a problem
Can you send me your 2 classes, xwork.xml, and validation files?
-Original Message-
From: Francisco Hernandez [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 6:56 PM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] using one validator on several
different actions
16 matches
Mail list logo