[ https://issues.apache.org/jira/browse/TAP5-663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-663. ------------------------------------- Resolution: Duplicate TAP5-666 > Error with passing false in property expressions > ------------------------------------------------ > > Key: TAP5-663 > URL: https://issues.apache.org/jira/browse/TAP5-663 > Project: Tapestry 5 > Issue Type: Bug > Components: tapestry-core > Affects Versions: 5.1.0.3, 5.1.0.4 > Reporter: Andy Blower > Priority: Minor > > I just tried out the new T5.1 property expressions for the first time and got > an error. I'm trying to replace this: > ${linkTitle} > public String getLinkTitle() { > return getTitle(false); > } > With this: > ${getTitle(false)} > Which I should be able to do according to the Grammar as far as I can see, > since but I get this error when I try it: > Caused by: > org.apache.tapestry5.internal.services.PropertyExpressionException: Node > false (within expression 'getTitle(false)') was type FALSE, but was expected > to be (one of) DECIMAL, DEREF, IDENTIFIER, INTEGER, INVOKE, LIST, SAFEDEREF, > STRING. > at > org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.unexpectedNodeType(PropertyConduitSourceImpl.java:925) > at > org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.subexpression(PropertyConduitSourceImpl.java:637) > at > org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.createMethodInvocation(PropertyConduitSourceImpl.java:756) > at > org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.createMethodInvocation(PropertyConduitSourceImpl.java:730) > at > org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.createGetter(PropertyConduitSourceImpl.java:711) > at > org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.createGetterAndSetter(PropertyConduitSourceImpl.java:436) > at > org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.createAccessors(PropertyConduitSourceImpl.java:419) > at > org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.createInstance(PropertyConduitSourceImpl.java:272) > at > org.apache.tapestry5.internal.services.PropertyConduitSourceImpl.build(PropertyConduitSourceImpl.java:1206) > at > org.apache.tapestry5.internal.services.PropertyConduitSourceImpl.create(PropertyConduitSourceImpl.java:1081) > at > $PropertyConduitSource_120d3f0182d.create($PropertyConduitSource_120d3f0182d.java) > at > org.apache.tapestry5.internal.bindings.PropBindingFactory.newBinding(PropBindingFactory.java:49) > at > $BindingFactory_120d3f0182e.newBinding($BindingFactory_120d3f0182e.java) > at > $BindingFactory_120d3f01826.newBinding($BindingFactory_120d3f01826.java) > at > org.apache.tapestry5.internal.services.BindingSourceImpl.newBinding(BindingSourceImpl.java:81) > ... 107 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.