Re: onPrepare from grid?

2012-11-04 Thread Chris Poulsen
I don't think that grid emits "prepare" events (as far as i read its javadocs). Isn't the "prepare" event related to forms? -- Chris On Sun, Nov 4, 2012 at 5:55 PM, membersound wrote: > Hi, > > can I specify a onPrepareFromGrid() method somehow? > > I tried > > onPrepareFromMygrid() { >sys

Re: Retrieveing what page user is located in?

2012-11-04 Thread Bryan Lewis
Sorry, BasePage is our internal class, the root class for all our pages. I assumed you'd replace it with something similar of your own. It could be only an interface. If you don't have such a thing, don't add a cast at all... componentResources.getPage() returns a Component and that should be g

Re: Retrieveing what page user is located in?

2012-11-04 Thread o3005659
What in this case should represent BasePage? When I put Page instead BasePage, it gives me following error: Render queue error in SetupRender[AareEuroFalzu668:listaare.pagedloop]: ro.aare.pages.AareEuroFalzu668 cannot be cast to org.apache.tapestry5.internal.structure.Page @Thiago, could you giv

onPrepare from grid?

2012-11-04 Thread membersound
Hi, can I specify a onPrepareFromGrid() method somehow? I tried onPrepareFromMygrid() { sysout("never gets called"); } Can't I assign a onPrepare method only to a specific grid? -- View this message in context: http://tapestry.1045711.n5.nabble.com/onPrepare-from-grid-tp5717639.html Sen

Re: Grid display several implementations of an object?

2012-11-04 Thread membersound
Ok even though I provide an BeanModel now, still having issues with this: On one page, I display a t:grid list of Users, and if I click on one of the users I display an additional t:grid below. I make use of 2 different BeanModels here which works fine now. BUT when I come from another page by a

Re: Grid display several implementations of an object?

2012-11-04 Thread membersound
Ok, but as I already have another BeanModel for another entity within the same page, it seems as if I cannot create additional beanmodels like: @Inject @Property private BeanModel userModel; @Inject @Property private BeanModel orderModel; void setupRender() {

Re: Grid display several implementations of an object?

2012-11-04 Thread Howard Lewis Ship
If you do not supply a GridDataModel, the Grid component generates one from the first object in its source. I believe this is documented in its JavaDoc.. On Sunday, November 4, 2012, membersound wrote: > Can a list for a t:grid contain several implementations of an object? I > just > want to make

Grid display several implementations of an object?

2012-11-04 Thread membersound
Can a list for a t:grid contain several implementations of an object? I just want to make sure the following is in general possible? class Fruit; class Apple extends Fruit class Banana extends Fruit class Page { List fruits; Foo fruit; } Result atm: Render queue error in Begin

Re: Possible bug in generated client ids

2012-11-04 Thread Dimitris Zenios
Done https://issues.apache.org/jira/browse/TAP5-2025 Please vote the bug On Sat, Nov 3, 2012 at 7:38 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Sat, 03 Nov 2012 12:47:51 -0200, Dimitris Zenios < > dimitris.zen...@gmail.com> wrote: > > I managed to fix it by overriding