Hi all
I'm playing around the excellent Enjoying Web Development with
Tapestry pdf and I would like to do a variation around the
ValidatorBean.
In the example page 77, the PatronCodeValidator class and the Home
class are in the same folder. I was trying to put the
PatronCodeValidator somewhere else, for example :
<page-specification class="pages.Home">
<bean name="patronCodeValidator" class="validator.PatronCodeValidator">
<set name="knownPatrons" value="ognl:knownPatrons"/>
</bean>
(...)
</page-specification>
However, it doesn't work, I get this error :
"org.apache.hivemind.ApplicationRuntimeException
Error initializing property knownPatrons of bean 'patronCodeValidator'
(of component Postage): Unable to read OGNL expression '<parsed OGNL
expression>' of [EMAIL PROTECTED]: $Postage_11.knownPatrons"
SoMy questions are : is it possible to have the Validator in another
package than the one where the page's class is ? If yes, how ?
Thanks in advance
ZedroS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]