You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2009/04/27 18:38:30 UTC

[jira] Assigned: (TAP5-666) Property expression can not pass a boolean value to a method

     [ https://issues.apache.org/jira/browse/TAP5-666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAP5-666:
-----------------------------------------

    Assignee: Howard M. Lewis Ship

> Property expression can not pass a boolean value to a method
> ------------------------------------------------------------
>
>                 Key: TAP5-666
>                 URL: https://issues.apache.org/jira/browse/TAP5-666
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.4
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>
> From the mailing list:
> 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.