[Wicket-user] java.lang.IllegalStateException: Attempt to set model object on null model of component

2007-01-10 Thread snkr subedi
hi, all I have got a problem here. I have a modal window which contains a form. When i submit that form i get a error message as shown below: WicketMessage: Method onFormSubmitted of interface wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id =

Re: [Wicket-user] java.lang.IllegalStateException: Attempt to set model object on null model of component

2007-01-10 Thread Johan Compagner
on of your components doesn't have a model where the data that comes from the browser can be stored into. so you use something like this: TextField field = new TextField(textfield) instead of this: TextField field = new TextField(textfield, new Model()) that constructor without the model is

Re: [Wicket-user] Problems making a form reset button

2007-01-10 Thread Johan Compagner
what is clearing a checkbox? If the data that somebody entered was false.. (so that was the value that was entered) and then you call clear what is then the value? still false? But that is not cleared. That is still data cleared to me is null not false (thats state). Why is false better then

[Wicket-user] someone

2007-01-10 Thread droppings
Decreased outright dollars comparison iptv. Identifies marketing, goes through. Seminar minnesota twin cities. Remixing clips property podcaster health awaited vertical. Software dells, oem machines became. Blog weblogs slammed parent. Details telcos, lay goose egg ranked. Kitties campaign

Re: [Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-10 Thread Matej Knopp
Can you please check your log? Probably there will be an exception. Can you post the stacktrace? -Matej Nili Adoram wrote: I tried replacing the original SubmitLink in the form with an AjaxSubmitLink: public class AdvancedSearchForm extends Form { private static final String id =

Re: [Wicket-user] Expiring Pages

2007-01-10 Thread suranjay
Thank you! I put the following code in the constructor of my web-pages. add(new AjaxSelfUpdatingTimerBehavior(Duration.minutes(10))); add(new AbstractAjaxTimerBehavior(Duration.minutes(10)) { /** * @see

Re: [Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-10 Thread Nili Adoram
Indeed there was an error since I put an input tag for the AjaxSubmitLink inside the markup instead of a tag. I fixed the markup and now the form is submitted, the modal window is closed and the window closed callback is invoked. Thank you, Nili Matej Knopp wrote: Can you please check your

[Wicket-user] Validation of RadioGroup, DropDownChoice etc.

2007-01-10 Thread jan_bar
Hi, it would be nice if setRequired(true) works on RadioGroup or DropDownChoice and similar controls. For instance, radio group with initial state that has no radio checked, user is required to select one, there is no default value. When RadioGroup has required=true, it will verify if one of he

Re: [Wicket-user] Expiring Pages

2007-01-10 Thread suranjay
Thank you! I put the following code in the constructor of my web-pages. add(new AjaxSelfUpdatingTimerBehavior(Duration.minutes(10))); add(new AbstractAjaxTimerBehavior(Duration.minutes(10)) { /** * @see

Re: [Wicket-user] ApacheCon Europe 2007

2007-01-10 Thread Marc-Andre Houle
If i wasn't in Montreal/Quebec/Canada, I would definitely go with something like drinking beer! Damn it, Europe is too far away to get there and get back in one day and not paying for an airplane ticket! Eh, too bad :) Marc On 1/9/07, Martijn Dashorst [EMAIL PROTECTED] wrote: As you all

[Wicket-user] how to create a link without markup id?

2007-01-10 Thread tooy li(Gmail)
I need show a downloadlink when a record has a attachment info. since the reocrd may have not attachment, the downloadlink must be create by condition. how can i do it ? I also feel puzzle for how to do generate a system menu or some dymic link . since the componet have to bind with some id.

Re: [Wicket-user] how to create a link without markup id?

2007-01-10 Thread Martijn Dashorst
add(new LInk(link) {}.setVisible(someCondition)); Martijn On 1/10/07, tooy li(Gmail) [EMAIL PROTECTED] wrote: I need show a downloadlink when a record has a attachment info. since the reocrd may have not attachment, the downloadlink must be create by condition. how can i do it ? I also

Re: [Wicket-user] how to create a link without markup id?

2007-01-10 Thread Erik van Oosten
To answer a part of your question: You can 'hide' elements on a condition like this: add(new SomeComponent() { public boolean isVisible() { return your_condition; } }); Regards, Erik. tooy li(Gmail) schreef: I need show a downloadlink when a record has a attachment

Re: [Wicket-user] Expiring Pages

2007-01-10 Thread Igor Vaynberg
remove the selfupdating one, and just leave the timer. you dont need to put anything into the ontimer() event, the point is that the behavior generated a callback to the page so it keeps your session alive. -igor On 1/10/07, suranjay [EMAIL PROTECTED] wrote: Thank you! I put the following

[Wicket-user] plain 'ol DropDownChoice of strings??

2007-01-10 Thread V. Jenks
Hi all, been a long hiatus for me but I'm diving back into Wicket finally. I'm a little rusty (was forced, against my will, to use JSF for the past couple of months!) - and I've got a silly question...should be a snap. I've got a DropDownChoice select list on a page I simply need to fill w/

Re: [Wicket-user] plain 'ol DropDownChoice of strings??

2007-01-10 Thread Igor Vaynberg
first, you dont need to specify that IChoiceRenderer as it does what the default one does second, you are doing this: form.add(new DropDownChoice(phoneType, new Model(), that newModel() isnt bound to your entity, so use a constructor without that IModel param - that way the compound property

Re: [Wicket-user] plain 'ol DropDownChoice of strings??

2007-01-10 Thread Igor Vaynberg
offtopic, would like to hear about your jsf experience compared to wicket. anything you found better that we can improve? -igor On 1/10/07, V. Jenks [EMAIL PROTECTED] wrote: Hi all, been a long hiatus for me but I'm diving back into Wicket finally. I'm a little rusty (was forced, against

Re: [Wicket-user] plain 'ol DropDownChoice of strings??

2007-01-10 Thread V. Jenks
Sure, I'd be happy to comment on that. Some constructive criticism; there are many things that JSF does easier and/or better (IMO) than Wicket. 1. select lists are *much* easier to populate, manipulate, and deal with. ;) 2. paging and sorting tables/grids/lists are *much, much* easier to

[Wicket-user] Setting attributes on a list view

2007-01-10 Thread Eelco Hillenius
Someone (nick eugs) had a question on the IRC channel today. I gave the wrong answer unfortunately, and I'm afraid this is quite a common mistake to make anyway. Q: I want to change an attribute of the list view. So say, the list view is attached to tag tr wicket:id=rows.../tr, I want it to

Re: [Wicket-user] plain 'ol DropDownChoice of strings??

2007-01-10 Thread V. Jenks
One more thing :D Wicket has a fantastic group of developers and the support has been top-knotch...the same can't be said about every project. If this mailing list wasn't here I might not have used Wicket so much...or at all. igor.vaynberg wrote: offtopic, would like to hear about your jsf

Re: [Wicket-user] plain 'ol DropDownChoice of strings??

2007-01-10 Thread V. Jenks
That worked, thanks a lot. igor.vaynberg wrote: first, you dont need to specify that IChoiceRenderer as it does what the default one does second, you are doing this: form.add(new DropDownChoice(phoneType, new Model(), that newModel() isnt bound to your entity, so use a constructor

Re: [Wicket-user] plain 'ol DropDownChoice of strings??

2007-01-10 Thread Igor Vaynberg
cool, thanks for the comparison, a few points to discuss On 1/10/07, V. Jenks [EMAIL PROTECTED] wrote: 1. select lists are *much* easier to populate, manipulate, and deal with. ;) can i have an example of code? 2. paging and sorting tables/grids/lists are *much, much* easier to

Re: [Wicket-user] Any more wicket articles?

2007-01-10 Thread Igor Vaynberg
http://www.oreillynet.com/onjava/blog/2007/01/wicket_another_java_web_framew.html On 1/9/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Hello, I just updated the wiki page http://cwiki.apache.org/confluence/display/WICKET/Articles+about+Wicket but there must surely be more articles on

Re: [Wicket-user] Setting attributes on a list view

2007-01-10 Thread Eelco Hillenius
Not a bad idea. Eelco On 1/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: as a sidenote, i think a few tag-interfaces are in order: INotRenderable, INotAjaxifiable, names up for grabs. what this can do is give the user some nice runtime errors that explain whats wrong. listview, for

Re: [Wicket-user] how to create a link without markup id?

2007-01-10 Thread tooy li(Gmail)
hi, you didn't give the answer. when you create a download link , you have to put a file that cannot be null into the constructor. now I have to create a fake file into downloadlink ,then hidden it when the condition is not ok. it's very verbose!!!. Message: 6 Date: Wed, 10 Jan 2007

Re: [Wicket-user] how to create a link without markup id?

2007-01-10 Thread Igor Vaynberg
filelink is just a few lines of code, create your own class that retrieves the file lazily -igor On 1/10/07, tooy li(Gmail) [EMAIL PROTECTED] wrote: hi, you didn't give the answer. when you create a download link , you have to put a file that cannot be null into the constructor. now I have

[Wicket-user] no cursor in the modal window

2007-01-10 Thread Prashant Khanal
hello all i found no cursor in the modal window. Is it the default behavior.How to make cursor appear in the input field of the modal window? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-10 Thread Ian Clarke
Just kinda taking this thread back to where it started: Does anyone have a .jar for wicket-stuff that will work with the Wicket 1.x branch? Ian. On 1/9/07, James McLaughlin [EMAIL PROTECTED] wrote: That would be great. Maybe we can run the wicket-stuff examples there, too. Is it possible for

[Wicket-user] has anyone got a book on wicket?

2007-01-10 Thread snkr subedi
Hi, If anyone has got a free book on wicket please help me I think i need to go through some more tutorials Please guide me thanks in advance sNkr - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's

Re: [Wicket-user] has anyone got a book on wicket?

2007-01-10 Thread Eelco Hillenius
It's not free, but at $20 for the electronic version, this http://www.apress.com/book/bookDisplay.html?bID=10189 is a bargain :) Eelco On 1/10/07, snkr subedi [EMAIL PROTECTED] wrote: Hi, If anyone has got a free book on wicket please help me I think i need to go through some more tutorials

Re: [Wicket-user] has anyone got a book on wicket?

2007-01-10 Thread Martijn Dashorst
Can you read chinese? Then there is one available for you. http://jroller.com/page/dashorst?entry=new_wicket_book_reaches_out Martijn On 1/11/07, snkr subedi [EMAIL PROTECTED] wrote: Hi, If anyone has got a free book on wicket please help me I think i need to go through some more tutorials