Re: 3.5 Hibernate 1.1 tutorial wicketized/eclipseized

2010-07-05 Thread Martin Grigorov
On Sun, 2010-07-04 at 21:05 -0500, David Brown wrote: Hello, I put the hib-tut.zip file in my gmail uploaded files in a directory called uploads. I don't know what u need to do to get to my uploaded files on gmail. :-David. All we need is your password ;-) Thanks for sharing ! On Sat,

java.lang.IllegalArgumentException: Parameter modelObject cannot be null

2010-07-05 Thread Sigmar Muuga
Hello, I am creating a form, my form has an instance variable: private Organization organisation; Also, organisation is initialized in constructor with new Organisation(). Now I am creating a TextField, that uses the propertyModel: IModelOrganization m1 = new

Re: java.lang.IllegalArgumentException: Parameter modelObject cannot be null

2010-07-05 Thread Sigmar Muuga
Also entity is initalized for that organisation object. On Mon, Jul 5, 2010 at 10:36 AM, Sigmar Muuga meedi...@gmail.com wrote: Hello, I am creating a form, my form has an instance variable: private Organization organisation; Also, organisation is initialized in constructor with new

Re: java.lang.IllegalArgumentException: Parameter modelObject cannot be null

2010-07-05 Thread Dr. Wolf Blecher
Is in entity the field name also initialized? Try to set it to the empty String in the initialization of entity. Am 05.07.2010 09:37, schrieb Sigmar Muuga: Also entity is initalized for that organisation object. On Mon, Jul 5, 2010 at 10:36 AM, Sigmar Muuga meedi...@gmail.com wrote: Hello,

SV: java.lang.IllegalArgumentException: Parameter modelObject cannot be null

2010-07-05 Thread Wilhelmsen Tor Iver
Also, organisation is initialized in constructor with new Organisation(). Does this initialization happen before or after you create the model? java.lang.IllegalArgumentException: Parameter modelObject cannot be null This error message indicates it happens after. - Tor Iver

Re: Animating the opening of a modal window

2010-07-05 Thread Martijn Dashorst
You'll have to create your own javascript to do so (or use/integrate it with jquery/mootools/dojo/etc ) Martijn On Fri, Jul 2, 2010 at 5:18 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Is it possible to animate the opening of a modal window using wicket? I know it can be done in

RE: Animating the opening of a modal window

2010-07-05 Thread Chris Colman
Yes, I was trying to keep it a pure Java app and so avoid writing the javascript myself (my days of writing browser aware javascript are hopefully over =]) so I was wondering what's the best option. From my short research jQuery seems to be really gaining some good momentum. It also appears as

RE: Ajax channel busy

2010-07-05 Thread Chris Colman
Ok, this is fun. It was due to an error in my script. I've been doing Java for so many years that I forgot how to use a dynamic language. I guess I'm too used to having the compiler tell me how much of an idiot I am so I have less pain at runtime. ;-) Humans aren't perfect - that's why humans

Re: 3.5 Hibernate 1.1 tutorial wicketized/eclipseized

2010-07-05 Thread Vojtěch Krása
Hi, you can upload it at http://megaupload.com/ or everywhere else... 2010/6/30 da...@davidwbrown.name Hello, mostly of interest to wicket noobs: i have a wicketized/eclipseized hibernate 1.1 tutorial that should work out-of-the-box albeit for mysql only. Where to upload the project? Or, I

Re: Ajax channel busy

2010-07-05 Thread David Leangen
Hi, Chris, I tend to agree with you, that's why I prefer Java over Javascript. However, I need to write a few components, so I'm wondering what others do to help them avoid these types of errors that would normally be caught at compile time. Cheers, =David On Jul 5, 2010, at 6:41 PM,

Re: Ajax channel busy

2010-07-05 Thread nino martinez wael
:) You could try to write some unit test, with rhino, it should be fairly simple.. Just wriite a junit test that executes a rhino test which in turn parses your js.. :) As someone mentioned to me once, In java you can always add a new layer of abstraction :) 2010/7/5 David Leangen

Rating Component question (Starts example)

2010-07-05 Thread Victor_Trapiello
Hello guys, I´m trying to integrate the Rating Component in my application, but I´m having some minnor problems, let me see if you can help me.. I´m trying to get the pictures (I mean the starts for the component), I have entered here...

Re: Rating Component question (Starts example)

2010-07-05 Thread Martin Makundi
The star is already included in the wicket/extensions jars. ** Martin 2010/7/5 Victor_Trapiello vic...@trapiello.net: Hello guys, I´m trying to integrate the Rating Component in my application, but I´m having some minnor problems, let me see if you can help me.. I´m trying to get the

Re: Rating Component question (Starts example)

2010-07-05 Thread Victor_Trapiello
but... the error that comes up is: org.apache.wicket.markup.MarkupNotFoundException: Base markup of inherited markup not found. Component class: com.mycompany.RatingsPage Enable debug messages for org.apache.wicket.util.resource.Resource to get a list of all filenames tried. at

Re: Rating Component question (Starts example)

2010-07-05 Thread Martin Makundi
Can't say much without the code and markup. ** Martin 2010/7/5 Victor_Trapiello vic...@trapiello.net: but... the error that comes up is: org.apache.wicket.markup.MarkupNotFoundException: Base markup of inherited markup not found. Component class: com.mycompany.RatingsPage Enable debug

Re: Page maps problem

2010-07-05 Thread Igor Vaynberg
you should set all the popups to use the same pagemap, i think that should help. -igor On Sun, Jul 4, 2010 at 12:19 PM, Branislav Kalas bka...@gmail.com wrote: Hi, sorry for my terrible english.I am trying to achieve this: I have webapp where i want to allow users open some links in new

Model for simple UI state? (Apart from 'regular' Model)

2010-07-05 Thread Anh
Hi, I'm having trouble on how to best implement something simple: I'm frequently finding the need to have 2 Models for a component: One Model is the bound data object (persisted), The other is lightweight UI state, such as whether a section is expanded, etc. The UI state is not needed outside

Re: java.lang.IllegalArgumentException: Parameter modelObject cannot be null

2010-07-05 Thread Sigmar Muuga
Ok, sorry, my bad. I did the initialization afterwards :( Sometimes such mistakes just happen... On Mon, Jul 5, 2010 at 10:45 AM, Wilhelmsen Tor Iver toriv...@arrive.nowrote: Also, organisation is initialized in constructor with new Organisation(). Does this initialization happen before or

Re: Model for simple UI state? (Apart from 'regular' Model)

2010-07-05 Thread James Carman
Wicket stores the state (its fields) of a component (and thus pages) between requests. So, your idea should work. Did you see any serialization errors/warnings on your output log? Perhaps the component's state can't be serialized? On Mon, Jul 5, 2010 at 3:10 PM, Anh 7za...@gmail.com wrote:

Re: Model for simple UI state? (Apart from 'regular' Model)

2010-07-05 Thread Pedro Santos
UI state as properties in the component should be to fine, see if using session relative urls the problem remains On Mon, Jul 5, 2010 at 4:10 PM, Anh 7za...@gmail.com wrote: Hi, I'm having trouble on how to best implement something simple: I'm frequently finding the need to have 2 Models

Re: Animating the opening of a modal window

2010-07-05 Thread Pedro Santos
Hi Chris, if you simple want to add an javascript effect to an browser component, there is no need to use an wicket integration with an javascript frameworks. About the browser compatibility, use only the component api provided by the javascript framework, there is no reason to have browser aware

Re: Model for simple UI state? (Apart from 'regular' Model)

2010-07-05 Thread Anh
Thank you, this works fine. Of course, now I can't remember the example that made me think this approach wouldn't work! Thanks again On Mon, Jul 5, 2010 at 12:33 PM, Pedro Santos pedros...@gmail.com wrote: UI state as properties in the component should be to fine, see if using session

Re: Animating the opening of a modal window

2010-07-05 Thread Anh
Hi Pedro, Do you or anyone else have an example of this? I have the same need as Chris, and would like to avoid a Wicket integration project in order to use jQuery animations. I would like to be able to use simple jQuery animations when adding/remove components, or a modal lightbox. I'm a

Displaying labels instead of field keynames in error messages

2010-07-05 Thread Sigmar Muuga
Hello, when I validate my form, wicket gives me errors like this: 'someFieldCode is mandatory' etc. But how to use it like 'Some field is mandatory'? Is it only the default behaviour of replacing placeholders in wicket-messages and can be customized? Or I have to rename all my forms fields to

Configure Wicket to detect some special HTML characters?

2010-07-05 Thread David Chang
If someone enters scriptalert(1)/script in a wicket form's text field, can Wicket be configured to detect special characters such as angle brackets and translate them into HTML entities before sending user input to database? If yes, any pointers? Best, David

Re: Configure Wicket to detect some special HTML characters?

2010-07-05 Thread Martin Makundi
Why would you want to do that? ** Martin 2010/7/6 David Chang david_q_zh...@yahoo.com: If someone enters scriptalert(1)/script in a wicket form's text field, can Wicket be configured to detect special characters such as angle brackets and translate them into HTML entities before sending

Re: Displaying labels instead of field keynames in error messages

2010-07-05 Thread Martin Makundi
Or I have to rename all my forms fields to the same values as their labels are? Yes, rename. ** Martin 2010/7/6 Sigmar Muuga meedi...@gmail.com: Hello, when I validate my form, wicket gives me errors like this: 'someFieldCode is mandatory' etc. But how to use it like 'Some field is

Re: Configure Wicket to detect some special HTML characters?

2010-07-05 Thread David Chang
I dont want to save these characters into the database. --- On Tue, 7/6/10, Martin Makundi martin.maku...@koodaripalvelut.com wrote: From: Martin Makundi martin.maku...@koodaripalvelut.com Subject: Re: Configure Wicket to detect some special HTML characters? To: users@wicket.apache.org

Re: Configure Wicket to detect some special HTML characters?

2010-07-05 Thread Jeremy Thomerson
Create a custom converter. Jeremy Thomerson -- sent from my smartphone - please excuse formatting and spelling errors On Jul 6, 2010 12:16 AM, David Chang david_q_zh...@yahoo.com wrote: I dont want to save these characters into the database. --- On Tue, 7/6/10, Martin Makundi

Re: Displaying labels instead of field keynames in error messages

2010-07-05 Thread Jeremy Thomerson
No, don't rename. Call setLabel on the component. Jeremy Thomerson -- sent from my smartphone - please excuse formatting and spelling errors On Jul 6, 2010 12:11 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Or I have to rename all my forms fields to the same values as their

Re: Configure Wicket to detect some special HTML characters?

2010-07-05 Thread Martin Makundi
I dont want to save these characters into the database. Why not? Why are you inputting data that you don't want to put into database? ** Martin --- On Tue, 7/6/10, Martin Makundi martin.maku...@koodaripalvelut.com wrote: From: Martin Makundi martin.maku...@koodaripalvelut.com Subject:

Re: Single inheritence in parts

2010-07-05 Thread Jeremy Thomerson
Search the list for this and you'll find some quite long discussions. Basically, it's not going to happen. This would be multiple inheritance, not single. You can easily use panels to accomplish what you're looking for. Jeremy Thomerson -- sent from my smartphone - please excuse formatting and

Re: Animating the opening of a modal window

2010-07-05 Thread Anh
Please disregard my last question - I looked at WiQuery and looks perfect for my needs. I had wrongly assumed it was a fork of Wicket that used jQuery as its ajax implementation. Thanks On Mon, Jul 5, 2010 at 5:21 PM, Anh 7za...@gmail.com wrote: Hi Pedro, Do you or anyone else have an

Re: Single inheritence in parts

2010-07-05 Thread Ernesto Reinaldo Barreiro
Hi Jeremy, Wasn't this on the which list for 1.5? [1] and [2]? Cheers, Ernesto 1-https://cwiki.apache.org/WICKET/wicket-15-wish-list.html#Wicket1.5WishList-multiplychild%252Fextendinheritance 2-https://issues.apache.org/jira/browse/WICKET-1134 On Tue, Jul 6, 2010 at 7:37 AM, Jeremy Thomerson

Using authorization to stop RENDER action doesn't work with as expected with repeater components

2010-07-05 Thread Christopher Armstrong
I'm building a Wicket-based project that uses Wasp/Swarm for authorization. I've connected it to Spring Security to use it as an authentication backend, and I've also used Spring Security to perform authentication and authorization on my middle tier Spring beans. I have a secured web page with