Re: 5.4-rc-1 - problem when *add* a column to a *grid*, but it is working OK in 5.4-beta-26
First of all, I have made a mistake in the subject - it was supposed to be 5.4-rc-1 On 14.12.2015 09:18, Chris Poulsen wrote: show. (If you are not using include, a number of things can go wrong like: the Degree class may evolved, the hibernate stuff may have added extra runtime properties that the introspector is picking up, the JDK version may have changed which means that the introspector behavior may have changed, new data type analyzers may have been added etc.) The added property is not a member of this class properties, so I see no real reason why including the other properties should matter. But, I do get why you are suggesting that. On the other hand, I would prefer not to use the "include" since it polutes the (H)THML with with internal (read: database) details. On the other hand, "add" is just a view layer thing, since you add an interaction element to the (H)TML. But, this debate is fruitless, because it does not matter. I tried using "include", the problem remains. I guess the real reason for this happening is some incompatibility, between some of the libraries, but I have spent many hours to find the problem and tried many combinations without luck. So any ideas towards finding a solution would be great. smime.p7s Description: S/MIME Cryptographic Signature
Re: 5.4-rc-1 - problem when *add* a column to a *grid*, but it is working OK in 5.4-beta-26
I don't know what you mean by having tried many library combinations. But Tapestry related libs should all be the same version and without duplicates in your runtime. The error you are getting happens because the BeanModel for your grid already contains a property called "delete". So if you actually tried using and got the error, something is really off... You can try to attach a debugger to either Grid, BeanModelUtils or BeanModelImpl to see what your generated model contains... or create / bind a bean model explicitly and debug using that. -- Chris On Mon, Dec 14, 2015 at 12:04 PM, Vangel V. Ajanovskiwrote: > First of all, I have made a mistake in the subject - it was supposed to be > 5.4-rc-1 > > On 14.12.2015 09:18, Chris Poulsen wrote: > >> show. (If you are not using include, a number of things can go wrong like: >> the Degree class may evolved, the hibernate stuff may have added extra >> runtime properties that the introspector is picking up, the JDK version >> may >> have changed which means that the introspector behavior may have changed, >> new data type analyzers may have been added etc.) >> > The added property is not a member of this class properties, so I see no > real reason why including the other properties should matter. But, I do get > why you are suggesting that. > > On the other hand, I would prefer not to use the "include" since it > polutes the (H)THML with with internal (read: database) details. On the > other hand, "add" is just a view layer thing, since you add an interaction > element to the (H)TML. > > But, this debate is fruitless, because it does not matter. > I tried using "include", the problem remains. > > I guess the real reason for this happening is some incompatibility, > between some of the libraries, but I have spent many hours to find the > problem and tried many combinations without luck. So any ideas towards > finding a solution would be great. > >
Re: 5.4-rc-1 - problem when *add* a column to a *grid*, but it is working OK in 5.4-beta-26
On 14.12.2015 12:50, Chris Poulsen wrote: The error you are getting happens because the BeanModel for your grid already contains a property called "delete". If I replace add="delete" with add="deleteHVUHDVIUDHVS" I will get a message that the Model already contains "deleteHVUHDVIUDHVS" So if you actually tried using and got the error, something is really off... As I said, I did try that and still get the error. You can try to attach a debugger to either Grid, BeanModelUtils or BeanModelImpl to see what your generated model contains... or create / bind a bean model explicitly and debug using that. Will try. smime.p7s Description: S/MIME Cryptographic Signature
Re: 5.4-rc-1 - problem when *add* a column to a *grid*, but it is working OK in 5.4-beta-26
On 14.12.2015 12:48, Thiago H de Paula Figueiredo wrote: Have you tried to @Inject BeanModelSource and call beanModelSource.createDisplayModel(yourClass.class, messages) and see what are the properties (PropertyModel instances) it detects? So in the tml I know have a random property name: Calling: model = bms.createDisplayModel(Degree.class, messages); System.out.println(model.getPropertyNames()); Printout: [degreeId, code, title, titleEn, terms, note] As you see there is no property "deleteuh9uhco9qh98ehv" in the model. But, the error occurs again: *Bean editor model for mk.ukim.finki.isis.dossier.entities.Degree already contains a property model for property 'deleteuh9uhco9qh98ehv'.* smime.p7s Description: S/MIME Cryptographic Signature
Re: 5.4-rc-1 - problem when *add* a column to a *grid*, but it is working OK in 5.4-beta-26
On Mon, 14 Dec 2015 09:04:15 -0200, Vangel V. Ajanovskiwrote: But, this debate is fruitless, because it does not matter. I tried using "include", the problem remains. Have you tried to @Inject BeanModelSource and call beanModelSource.createDisplayModel(yourClass.class, messages) and see what are the properties (PropertyModel instances) it detects? -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org