You should now use either the createDisplayModel or createEditModel method.
Both are documented so you should easily figure out which one applies to
your use case.

You'll need to pass an additional Messages parameter that you can (if that's
the case) for example get from ComponentResources.getMessages()

On Thu, Nov 20, 2008 at 2:39 PM, dwi ardi irawan <[EMAIL PROTECTED]>wrote:

> hi guys..it's been so long i didn't work using tapestry 5
> but i have difficulty to update my application using new tapestry 5.0.16
>
> when i used the old tapestry version (i forgot the version) it supported
> something like this :
> *.tml*
> <table t:type="grid" rowsPerPage="20" pagerPosition="top"
> source="playerList" row="player" model="playerModel" remove="idPlayer"/>
>
>
> *.java
> [EMAIL PROTECTED]
> private BeanModel playerModel;
> @Inject
> private BeanModelSource beanModelSource;
> @Inject
> private ComponentResources resources;*
> *
> ......
> void pageLoaded(){
>        playerModel = beanModelSource.create(Player.class, false,
> resources);
>
> }
> .....
>
> but when i checked...the latest version of tapestry which is tapestry
> 5.0.16
>
> the method .create() for BeanModelSource is now deprecated.
>
> does anybody know how how to fix it and how can i implement it the same way
> in tapestry 5.0.16
>
>
> thnx u very much
>
>
> --
> http://dwiardiirawan.blogspot.com
> "cos everyone could be extraordinary...lighten up !"
>

Reply via email to