[ 
https://issues.apache.org/jira/browse/TAPESTRY-1518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499521
 ] 

Jun Tsai commented on TAPESTRY-1518:
------------------------------------

In javassist javadoc pages
I find:

public CtMethod[] getDeclaredMethods()

    Gets all methods declared in the class. The inherited methods are not 
included.



public CtMethod[] getMethods()

    Returns an array containing CtMethod objects representing all the 
non-private methods of the class. That array includes pon-private methods 
inherited from the superclasses.



I guess InternalClassTransformationImpl can use CtClass.getMethods() method to 
find all methods (include inherited methods.)




> T5 can't support generic type page
> ----------------------------------
>
>                 Key: TAPESTRY-1518
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1518
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 5.0.3, 5.0.4, 5.0
>            Reporter: Jun Tsai
>
> Base.java
> class abstract Base<T>{
>  private T entity;
>  public void setEntity(T t){
>   this.entity=entity;
>  }
>  public T getEntity(T t){
>   return this.entity;
>  }
>  protected abstract Class<T> getEntityClass();
>  onPrepareFromMyForm(){
>   if(this.entity == null){
>    try{
>      this.entity=getEntityClass().newInstance();
>    }catch(Exception e){
>      throw new RuntimeException(e);
>    }
>   }
>  }
>  .....
> }
> ProductPage.java
> public class ProductPage extends Base<Product>{
>  protected Class<Product> getEntityClass(){
>    return Product.class;
>  }
> }
> ProductPage.html
> <t:form t:id="MyForm">
>  <t:errors/>
>        <t:label for="input"/>
>        <input t:type="textfield" t:id="input" value="entity.name" size="40" 
> t:validate="required,minlength=3"/> 
>       <br/>
>       <input type="submit" value="Submit"/>
> </t:form>
> exception:
> Could not convert 'entity.name' into a component parameter binding: Class 
> java.lang.Object does not contain a property named 'name' (within property 
> expression 'entity.name').
> When I debug the app,I fiind PropertyConduitSourceImpl.readMethodForTerm 
> before onPrepareFromMyForm method. 
> I think the method should be after onPrepareFromMyForm method.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to