1) You must return the correct type e.g

public SomeObject getObject(){
    return (SomeObject)dao.getDaoForEntityType(entityType).get(objectId);
}

2) Or you could create your own model and specify it using 'model' parameter

3) (AFAIK) Or wait for 5.3 as it will have this kind of support

regards
Taha



On Mon, Mar 28, 2011 at 5:33 PM, nquirynen <nat...@pensionarchitects.be>wrote:

> I have a page where i can edit 1 object that has been selected to edit.
> This
> object can be a different datatype everytime depending on some properties
> set in the page.
>
>
> //Here i get the right object
> public Object getObject() {
>        return dao.getDaoForEntityType(entityType).get(objectId);
> }
> //the beaneditform
> t:beaneditform object="object" include="${fields}" /
>
>
> Ofcourse this results in "Bean editor model for java.lang.Object does not
> contain a property named ..."
>
> Any tutorials or examples on this done before, or hints on how to achieve
> this are really appreciated.
>
> Thanks!
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Generic-beaneditorform-tp4267477p4267477.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to