You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Josh Canfield (JIRA)" <ji...@apache.org> on 2010/08/18 10:53:17 UTC

[jira] Commented: (TAP5-982) page generic with more than two levels

    [ https://issues.apache.org/jira/browse/TAP5-982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12899787#action_12899787 ] 

Josh Canfield commented on TAP5-982:
------------------------------------

This is fixed in the trunk.

> page generic with more than two levels
> --------------------------------------
>
>                 Key: TAP5-982
>                 URL: https://issues.apache.org/jira/browse/TAP5-982
>             Project: Tapestry 5
>          Issue Type: Improvement
>    Affects Versions: 5.1.0.5
>            Reporter: Jun Tsai
>
> PageA<T>{
> public T getEntity(){
> }
> public T setEntity(T entity){
> }
>  .....
> }
> PageB extends PageA<Member>{
> .....
> }
> When I access ${entity.name} in tml ,PageB works fine.Then I create PageC
> PageC extends PageB{
>  ....
> }
> When I access ${entity.name} in tml of PageC,Exception was thrown:
> Class java.lang.Object does not contain a property named 'name' (within property expression 'entity.name). Available properties: class.
> org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.infoForPropertyNode(PropertyConduitSourceImpl.java:942)
> org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.infoForPropertyOrMethod(PropertyConduitSourceImpl.java:932)
> org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.createGetterAndSetter(PropertyConduitSourceImpl.java:421)
> org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.createAccessors(PropertyConduitSourceImpl.java:407)
> org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.createInstance(PropertyConduitSourceImpl.java:260)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.