Bingind a bean that has getters, but no setters

2009-03-24 Thread Andrea Aime
Hi, I'm trying to make a component that edits the corners of a rectangle. The model of this component should be a JTS Envelope class: http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html?is-external=true This class has getters for minX,minY,maxX,maxY, but has no

Re: Bingind a bean that has getters, but no setters

2009-03-24 Thread Johan Compagner
The latest code in 1.3 and 1.4 are working with private fields and only getters If you have a property model on those fields it will use the field reference directly to set it. johan On Tue, Mar 24, 2009 at 13:15, Andrea Aime aa...@opengeo.org wrote: Hi, I'm trying to make a component that

Re: Bingind a bean that has getters, but no setters

2009-03-24 Thread Andrea Aime
James Carman ha scritto: Or, you could provide a wrapper A wrapper... how? In particular, how is the wrapper notified that it's time to set all the properties back in the envelope? (sorry, model rookie here). Btw, Johan suggestion works, but bombs out in the case the envelope is null

Re: Bingind a bean that has getters, but no setters

2009-03-24 Thread nino martinez wael
Hi Andrea Did you use the openlayers integration project? just curious... regards Nino 2009/3/24 Andrea Aime aa...@opengeo.org Hi, I'm trying to make a component that edits the corners of a rectangle. The model of this component should be a JTS Envelope class:

Re: Bingind a bean that has getters, but no setters

2009-03-24 Thread Andrea Aime
nino martinez wael ha scritto: Hi Andrea Did you use the openlayers integration project? just curious... Nope, so far I did not. GeoServer has its own way to generate a OL client preview page which uses FreeMarker templates. Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert

Re: Bingind a bean that has getters, but no setters

2009-03-24 Thread nino martinez wael
Ok, was just because the openlayer integration exposes the JTD objects... No problem there.. 2009/3/24 Andrea Aime aa...@opengeo.org nino martinez wael ha scritto: Hi Andrea Did you use the openlayers integration project? just curious... Nope, so far I did not. GeoServer has its own

Re: Bingind a bean that has getters, but no setters

2009-03-24 Thread nino martinez wael
I guess you could look into the integration for inspiration on howto use wicket it does some of the same stuf you are talking about 2009/3/24 nino martinez wael nino.martinez.w...@gmail.com Ok, was just because the openlayer integration exposes the JTD objects... No problem there..

Re: Bingind a bean that has getters, but no setters

2009-03-24 Thread Johan Compagner
hmm normally i think we try to create the object by calling the default constructor And i see it does have a default constructor But is that Envelope object really your model object? Do you have a simple test case that i can add to the PropertyResolverTest ? On Tue, Mar 24, 2009 at 15:11,

Re: Bingind a bean that has getters, but no setters

2009-03-24 Thread Andrea Aime
Johan Compagner ha scritto: hmm normally i think we try to create the object by calling the default constructor And i see it does have a default constructor But is that Envelope object really your model object? Well, it's actually a property of a larger object, which I provide to my panel

Re: Bingind a bean that has getters, but no setters

2009-03-24 Thread Michael O'Cleirigh
Hi Andrea, I'm trying to make a component that edits the corners of a rectangle. The model of this component should be a JTS Envelope class: http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html?is-external=true This class has getters for