thnx, I did add a syntethic property to do the task, but thought ognl was supposed to work ....
actualy I like the approach via property more, since then I have autocomplete and all the stuff I'm used to while writing java code, and auto reloading of classes makes it as fast to test, as if it was written in the template :) Davor Hrg On 3/5/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
Two problems here: 1) Not well formed XML. That "<" inside the test attribute isn't allow. Use < 2) OGNL isn't supported in T5. For anything more complicated than a property access, you do the work in Java code as a synthetic property. On 3/5/07, Davor Hrg <[EMAIL PROTECTED]> wrote: > Hi, > maybe this was reported and solved but here it goes ... > > I've tried the tapestry tutorial and it was very nice and easy. > I've made few mistakes but error reporting is great so it was fixed quickly. > > the problem occured when I tried to add some of the proposed changes to the > app.. > > just to test the expressions I added: > <t:comp type="If" test="ognl:index<5"> > > but I get the error > Failure parsing template context:WEB-INF/Guess.html: The value of attribute > "test" associated with an element type "t:comp" must not contain the '<' > character. > > Am I doing it wrong, or it's just a bug to be fixed later.... > > Davor Hrg > -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]