Thanks for your answer Matt. As soon as I have finish my current work on a Spring/Struts website, I'll happily use your advice :)
Thanks again ZedroS On 2/2/06, Mat Gessel <[EMAIL PROTECTED]> wrote: > > The error indicates that OGNL cannot read the knownPatrons property. > Make sure you have this property defined in the page. If you want to > access a property from multiple pages you can define it in a singleton > and access it statically like: > ognl:@[EMAIL PROTECTED]() > > When you get to chapter 4 you will see a better way of doing this: > Application State Objects. > > -= Mat > > On 2/1/06, ZedroS Schwart <[EMAIL PROTECTED]> wrote: > > 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] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
