Re[2]: Alternative to Wicket data binding

2007-08-25 Thread Oleg Taranenko
Hi Igor and Eelco, Sorry, for interventing in your discussion :) May java annotations can help us? Say [EMAIL PROTECTED]/Write or [EMAIL PROTECTED] or ever to protect all bean. It would protect the field from accidently access in Wicket modelsĀ  without any assumption on set/get functions.

Re: Markup of type 'html' for component 'wicket.contrib.gmap.GMap2' not found

2007-08-25 Thread Igor Vaynberg
there is a setting to make it do so, cant quiet remember where it is right now. -igot On 8/25/07, hhuynh <[EMAIL PROTECTED]> wrote: > > > Thanks for tip. I added this to my pom and it works fine now. Eclipse > doesn't > copy non-java files over automatically. > > >

Re: Markup of type 'html' for component 'wicket.contrib.gmap.GMap2' not found

2007-08-25 Thread hhuynh
Thanks for tip. I added this to my pom and it works fine now. Eclipse doesn't copy non-java files over automatically. src/main/java **

Re: Markup of type 'html' for component 'wicket.contrib.gmap.GMap2' not found

2007-08-25 Thread Igor Vaynberg
either the example is broken or your ide does not copy .html files from the src dir to the classes dir. -igor On 8/25/07, hhuynh <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I've tried out the examples of wicket-contrib-gmap2-examples and got this > below error. I'm pretty new to Wicket so I'm n

Markup of type 'html' for component 'wicket.contrib.gmap.GMap2' not found

2007-08-25 Thread hhuynh
Hi all, I've tried out the examples of wicket-contrib-gmap2-examples and got this below error. I'm pretty new to Wicket so I'm not sure where to start debugging this error. Anybody has idea? Thank you, Hung- WicketMessage: Markup of type 'html' for component 'wicket.contrib.gmap.GMap2' not f

Re: Alternative to Wicket data binding

2007-08-25 Thread Eelco Hillenius
> all i asked johan to do was to tweak property resolver to allow access to > private stuff. i was under the impression that the property resolver always > tries to access the getter/setter first, then the field. > > half of this thread you are arguing that we shouldnt allow access to private > fie

Re: Alternative to Wicket data binding

2007-08-25 Thread Igor Vaynberg
On 8/25/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > i completely agree with you. my point is that its been brought up, but > do > > you see anyone else jumping in on this conversation and voicing their > > opinion? you are basically championing this thread because you are a > core > > dev.

Re: Alternative to Wicket data binding

2007-08-25 Thread Eelco Hillenius
> i completely agree with you. my point is that its been brought up, but do > you see anyone else jumping in on this conversation and voicing their > opinion? you are basically championing this thread because you are a core > dev. there are other users on this list, if they were just as concerned >

Re: Alternative to Wicket data binding

2007-08-25 Thread Eelco Hillenius
> first of all the bean spec is _not_ the java way. it is just a spec, widely > adopted though it is - just like jsf. Comparing JavaBeans with JSF is plain bs. JavaBeans has been put forward as a standard patten by SUN from the very first versions of Java, and it is part of any beginners Java book

WicketSessionFilter

2007-08-25 Thread Nick Ward
I want to have a separate servlet to go along with my wicket application that can serve streaming files. However, it needs to have access to the wicket session to know what to stream. I was thinking about using a WicketSessionFilter to help me do this. I am using wicket as a filter, and it seems to

Re: Alternative to Wicket data binding

2007-08-25 Thread Igor Vaynberg
On 8/25/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > yes it is the second time this topic comes up out of how many of > thousands > > of users there are > > > > i dont know. i think this feature is very convenient. it is not > something > > you can toggle on and off because 3rd party co

Re: Alternative to Wicket data binding

2007-08-25 Thread Igor Vaynberg
On 8/25/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > Finally, I'd like to hear a good argument why we shouldn't just say: > if you want to access members directly, just make them public. If you > want to avoid clutter (i.e. writing getters and setters) and you don't > care about breaking en

modal window as pop up on non wicket site.

2007-08-25 Thread Ed _
I am try to see if modal window can be used to pop up a dialog box onto a page that has been written in php. I essentially want to have a html link on the older site - that would launch a pop up dialog to my application. want to avoid first coming to my app and then offering the users a form.

Re: Alternative to Wicket data binding

2007-08-25 Thread Eelco Hillenius
On 8/25/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > I agree with Igor here. If you are really concerned about protecting private > fields, your only option is running with a security manager. > Otherwise there will always be a way around it. Well, yeah. I know there are ways around it, but active

Re: Alternative to Wicket data binding

2007-08-25 Thread Eelco Hillenius
> yes it is the second time this topic comes up out of how many of thousands > of users there are > > i dont know. i think this feature is very convenient. it is not something > you can toggle on and off because 3rd party components might be written with > this in mind. so i would say keep it,

Re: Alternative to Wicket data binding

2007-08-25 Thread Matej Knopp
I agree with Igor here. If you are really concerned about protecting private fields, your only option is running with a security manager. Otherwise there will always be a way around it. Being able to access private field is convenient and reduces code clutter. Even though it's not the "cleanest" wa

Re: Alternative to Wicket data binding

2007-08-25 Thread Igor Vaynberg
On 8/25/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > So you write a class with a certain member, but as you don't want > people to directly access that member, you don't provide an mutator > method. Someone else takes a look at your class and decides to > directly access the member using prop

Re: Alternative to Wicket data binding

2007-08-25 Thread Eelco Hillenius
> > I fail the see the logic in that, sorry. Why just not throw any scope > > limiting away? > > > in this particular case: yes. dont forget that property model is entirely > about convinience in the first place, and flattening scopes is just another > part of that convenience :) So you write a cl

Re: Alternative to Wicket data binding

2007-08-25 Thread Igor Vaynberg
On 8/25/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > I fail the see the logic in that, sorry. Why just not throw any scope > limiting away? in this particular case: yes. dont forget that property model is entirely about convinience in the first place, and flattening scopes is just another

Re: Alternative to Wicket data binding

2007-08-25 Thread Eelco Hillenius
On 8/25/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > On 8/25/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > On 8/25/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > i think that is a foolish argument as you are assuming property model > > should > > > only work on _beans_ > > > it is pe

Re: Alternative to Wicket data binding

2007-08-25 Thread Eelco Hillenius
On 8/25/07, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > On Sat, 25 Aug 2007, Igor Vaynberg wrote: > > always try setter/getter first, if not fallback onto the field. > > +1 > Direct field access works typically so I like to omit > accessor bloat when possible, and if you need any special > handlin

Re: Alternative to Wicket data binding

2007-08-25 Thread Igor Vaynberg
On 8/25/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > On 8/25/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > i think that is a foolish argument as you are assuming property model > should > > only work on _beans_ > > it is perfectly normal to do something like this: > > > > class data { publ

Re: Alternative to Wicket data binding

2007-08-25 Thread Timo Rantalaiho
On Sat, 25 Aug 2007, Igor Vaynberg wrote: > always try setter/getter first, if not fallback onto the field. +1 Direct field access works typically so I like to omit accessor bloat when possible, and if you need any special handling in the accessor just create the accessor method for it. If you w

Re: Palette component, how to populate right box?

2007-08-25 Thread Vatroslav
Sorry, you are right, I was thinking on Collection, not a String. :( However, I found where was the problem: while creating Pallete component, I put the same model as parameters, both for model and choices model. My mistake, it is 11:30 PM at my place and I'm realy tired. :) thanks for help, vatr

Re: Alternative to Wicket data binding

2007-08-25 Thread Eelco Hillenius
On 8/25/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > i think that is a foolish argument as you are assuming property model should > only work on _beans_ > it is perfectly normal to do something like this: > > class data { public String name; public int age; } Yes, I hope you didn't really think

Re: Alternative to Wicket data binding

2007-08-25 Thread Igor Vaynberg
i think that is a foolish argument as you are assuming property model should only work on _beans_ it is perfectly normal to do something like this: class data { public String name; public int age; } and wicket should work with this. if this data object is a private inner of something and is only

Re: Newbie questions

2007-08-25 Thread Eelco Hillenius
On 8/24/07, Alex Shneyderman <[EMAIL PROTECTED]> wrote: > I have been reading and re-reading the > getting started manual, unfortunately it is an extremely incomplete > document, so it is of a very limited use, although I appreciate the > intention. Wicket In Action is available through MEAP now,

Re: Palette component, how to populate right box?

2007-08-25 Thread Igor Vaynberg
are you sure you get an empty string? i dont think that is possible, it should at least be an empty collection. -igor On 8/25/07, Vatroslav <[EMAIL PROTECTED]> wrote: > > > I've tried that, and in that case items are displayed as I want. > But on submit event, palette.getModelObject() returns e

Re: Alternative to Wicket data binding

2007-08-25 Thread Eelco Hillenius
On 8/25/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > But the binding is as pluggable as possible. You can write any IModel > implementation you want. Think of (Compound)PropertyModel as pure > convenience implementation (that works for 99% usecases). With wicket, you > don't think of mapping http r

Re: Palette component, how to populate right box?

2007-08-25 Thread Vatroslav
I've tried that, and in that case items are displayed as I want. But on submit event, palette.getModelObject() returns empty string, although all items are in the right listbox?!? vatroslav that box is populated from the selection model, so make sure the collection in that model has the selec

Re: Palette component, how to populate right box?

2007-08-25 Thread Igor Vaynberg
that box is populated from the selection model, so make sure the collection in that model has the selected items -igor On 8/25/07, Vatroslav <[EMAIL PROTECTED]> wrote: > > > Hi, > Is it possible to populate both list boxes on Palette component? > Or even only right one (Selected)? > Usually I on

Saving another page into session from ajax request

2007-08-25 Thread Carlos Pita
Hi all, how should i save a page -that I'm modifying from an ajax request originated at another page- into the session, if possible? The target page is an iframe nested inside the source one. For the record, I'm doing this trick not for the pleasure it brings but because of the need to upload fil

Palette component, how to populate right box?

2007-08-25 Thread Vatroslav
Hi, Is it possible to populate both list boxes on Palette component? Or even only right one (Selected)? Usually I only want to change order, and in rare cases to remove some items. So populating only selected box would be preferable. Regards, Vatroslav -- View this message in context: http://w

Re: Alternative to Wicket data binding

2007-08-25 Thread Sam Hough
Sorry yes. I agree Wicket has a very elegant solution to giving developers choice of how to get data between components and model. Matej Knopp-2 wrote: > > But the binding is as pluggable as possible. You can write any IModel > implementation you want. Think of (Compound)PropertyModel as pure >

Re: Alternative to Wicket data binding

2007-08-25 Thread Matej Knopp
But the binding is as pluggable as possible. You can write any IModel implementation you want. Think of (Compound)PropertyModel as pure convenience implementation (that works for 99% usecases). With wicket, you don't think of mapping http requests to bean. But you have to think about mapping compon

Re: Alternative to Wicket data binding

2007-08-25 Thread Sam Hough
>From a newbie perspective, for what it is worth, say I had a class: private Object secret; private String temp; public getSecret() {return temp;} private setSecret(Object p) {secret = p;} So I think I have a read only property secret that comes from temp it is going to get confusing when Wicket g

Re: Alternative to Wicket data binding

2007-08-25 Thread Matej Knopp
Why couldn't it access the attribute field directly? -Matej On 8/25/07, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote: > > I agree. If you make the PropertyModel access private getter and setter I > don't see any reason because it cannot access the attribute field directly > (when the getter and set