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

2007-01-09 Thread Nili Adoram
Hi all, I have a panel (named AdvancedSearchPanel) containing a Form with a SubmitLink. I open this panel inside a modal dialog: final ModalWindow modal; add(modal = new ModalWindow(modalAdvancedSearch)); final AdvancedSearchPanel searchPanel = new

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

2007-01-09 Thread Carfield Yim
I just get the problem, solved by using ajax form button, you can see how I solve it at http://www.nabble.com/Submit-a-form-at-ModalWindow-cause-the-ModalWindow-close.-tf2912895.html#a8139020 On 1/9/07, Nili Adoram [EMAIL PROTECTED] wrote: Hi all, I have a panel (named AdvancedSearchPanel)

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

2007-01-09 Thread Filippo Diotalevi
On 1/9/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Hey, James, Korbinian and Filippo... any plans of creating some releases (see http://www.nabble.com/who-wants-to-be-in-charge-of-doing-wicket-stuff-releases-tf2665134.html)? Yes... and we really need to setup a new site for wicket-stuff

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

2007-01-09 Thread Korbinian Bachl
-Ursprüngliche Nachricht- Yes... and we really need to setup a new site for wicket-stuff now it's so outdated that most of the subprojects of wicket-stuff aren't even documented in the website. And if we don't have a decent website, it's very difficult to keep track of

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

2007-01-09 Thread Filippo Diotalevi
On 1/9/07, Korbinian Bachl [EMAIL PROTECTED] wrote: the current seems very basic to me, and i never heard about MoinMoin and its capabilities before - what wonders me, is if it would be possible to use confluence, as its used for wicket main so we would have only 1 technology / system and

[Wicket-user] Problems making a form reset button

2007-01-09 Thread Erik van Oosten
Hi, I am trying the make a reset button (clears all fields) with code below. According to the class comment of Form I can call updateFormComponentModels, however that method is not visible. What can I do to get the desired effect? I am using wicket-1.2.4. Regards, Erik. // The

[Wicket-user] Pagination not working

2007-01-09 Thread snkr subedi
Hi, i am new to this mailling list as well as Wicket so sorry if the question is not worth the mailing list. i got a problem here. I want to show some tabular information using the DataView with pagination. I have tried both the Loadable and Abstract Detachable models. When i run the program the

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

2007-01-09 Thread Johan Compagner
why do you want to call updateFormComponentModels? You also want to clear all model data? So the models already did get some data from a previous request? (i take the reset button has setDefaultFormProcessing(false) ?) but why not do this: form.visitChildren(FormComponent.class, new

Re: [Wicket-user] Stateless wicket [was] Re: Wicket2 and Wicket 1.2.x

2007-01-09 Thread Johan Compagner
or detachable models are not used anywhere. And many db objects and its complete graphs are hold on to. But stateless support itself won't help for this because then you really need to use it and use it everywhere. But the secondlevel cache will keep the session much smaller. johan On 1/9/07,

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

2007-01-09 Thread Erik van Oosten
Yes, correct. The model should be cleared as well. And it indeed uses setDefaultFormProcessing(false). The approach your describing below will throw exceptions for checkboxes: WicketMessage: unable to set object null, model: Model:classname=[wicket.model.PropertyModel]:attached=true:[EMAIL

Re: [Wicket-user] Pagination not working

2007-01-09 Thread Korbinian Bachl
can you post some sourcecode here? -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von snkr subedi Gesendet: Dienstag, 9. Januar 2007 12:05 An: wicket-user@lists.sourceforge.net Betreff: [Wicket-user] Pagination not working Hi, i am new

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

2007-01-09 Thread Johan Compagner
yes we can't convert null to a primitive (int or boolean) because what is null for an int? (0? but that is wrong, it is not 0 it is void) For a boolean we could say null is false. But that would then be an exception to the rule. So you need your own converter on the object that can handle null

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

2007-01-09 Thread Erik van Oosten
Johan, I got it working as below. Shall I create a Jira issue for this? I think it would be more logical if checkbox could deal with cleared input. Erik. // The reset button Button resetButton = new Button(resetbutton) { /** [EMAIL PROTECTED] */

[Wicket-user] Expiring Pages

2007-01-09 Thread suranjay
We have a web-app which deals with online hotel bookings, which uses Wicket 1.2.4. We have a problem with the pages expiring, when refreshed or submitted, in after about 20 min of inactivity. This also happens when Back button is clicked from a page. We need to have the pages not-expire for about

Re: [Wicket-user] Expiring Pages

2007-01-09 Thread Dipu
you will have to configure the session time out time in your server/ container , in your case you will have to do it in the resin's conf. Regards Dipu - Original Message - From: suranjay [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, January 09, 2007 1:43 PM

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

2007-01-09 Thread Ryan Sonnek
I'd love to try and use the main wicket confluence instance in some way. seriously, i haven't even been able to create an account and login to the wiki for wicket-stuff. On 1/9/07, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 1/9/07, Korbinian Bachl [EMAIL PROTECTED] wrote: the current seems

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

2007-01-09 Thread Johan Compagner
my checkbox works fine: class MyDataObject { Boolean myBoolean; void setMyBoolean(Boolean b) Boolean getMyBoolean() } so it is not directly the checkbox. But if you map it to a boolean (primitive) then you don't have the three-state thing yes. (null, false, true) So i dont know if this is a

Re: [Wicket-user] Expiring Pages

2007-01-09 Thread suranjay
Thank you for ur prompt reply. I did set web-app id=/ session-config session-timeout120/session-timeout session-max4096/session-max /session-config /web-app and session-config session-timeout120/session-timeout

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

2007-01-09 Thread Erik van Oosten
Hi Johan, Ok, I understand. Indeed, my model is a property in a bean that has the primitive type boolean. Even though I have a workaround now, I would appreciate such a fix. If nobody disagrees I am happy to make a JIRA issue for it. Regards, Erik. Johan Compagner schreef: my checkbox

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

2007-01-09 Thread Martijn Dashorst
Keep it as current. If you want tri-state logic, then you have to implement that. What are you going to do with int, long, double, float? make it 0? make it -1? Defaulting to false is very context dependent, and shouldn't be implemented as such. Martijn On 1/9/07, Johan Compagner [EMAIL

Re: [Wicket-user] Pagination not working

2007-01-09 Thread Johan Compagner
are you returning the right thing in the IDataProvider.iterator(offset,length) method? Because the second time the offset shouldnt be 0 but 3 johan On 1/9/07, snkr subedi [EMAIL PROTECTED] wrote: Hi, i am new to this mailling list as well as Wicket so sorry if the question is not worth the

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

2007-01-09 Thread Erik van Oosten
The point is that I do not want tri-state logic. That is why the property has type boolean and not Boolean. If you want tri-state logic, you can (and intuitively will) use non-primitive properties in your model objects. Anyway, you could always use the same values as java uses to initialize

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

2007-01-09 Thread Nick Heudecker
I agree that a wiki is a good way to go. I'll find out if we can use the main Wicket wiki on the Apache site for wicket-stuff. On 1/9/07, Ryan Sonnek [EMAIL PROTECTED] wrote: I'd love to try and use the main wicket confluence instance in some way. seriously, i haven't even been able to create

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

2007-01-09 Thread James McLaughlin
Damned holidays! My lack of attention to wicket-stuff has been gnawing away at me. Ryan, sorry to here yo haven't been able to create an account. I would be glad to help -- let me know what problem you are having. You've tried clicking login from the main page, and then clicking the

Re: [Wicket-user] When will RequestCycle.detach() being called?

2007-01-09 Thread Johan Compagner
yes or see whats different with the code i posted and patch your tester. On 1/6/07, Carfield Yim [EMAIL PROTECTED] wrote: but it can be that it is purely 1.3 So I need to wait for version 1.3 you mean? - Take Surveys.

Re: [Wicket-user] confusing AjaxFallbackLink API

2007-01-09 Thread Johan Compagner
So you make your AjaxFallbackLink that does this: class MyAjaxFallbackLink() { protected void onClick(AjaxTarget target) { if (target == null) { onFallbackClick(); } else { onAjaxClick(target); } } protected void onFallbackClick(); protected void

Re: [Wicket-user] Pagination not working

2007-01-09 Thread snkr subedi
thank you, Johan Compagner for the reply I solved the problem. I had forgot to define the method public List getListForMe(int start,int count){ return findAllMes().subList(start, start+count); } I just used whole list iterator Thank you sNkr

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

2007-01-09 Thread Nick Heudecker
Yeah, the old one was MediaWiki. It worked well enough, but there were some problems with spam. Personally, I'd like to use Wicket's Confluence install to keep everything in one place. Might also make it easier to link between projects. On 1/9/07, James McLaughlin [EMAIL PROTECTED] wrote:

Re: [Wicket-user] Hibernate Paging

2007-01-09 Thread Nathan Hamblen
Experience with creating a databinding API... hmmm... Hey, there's actually an implementation of DataView paging using criteria here: http://databinder.net/site/show/baseball-players (sorry I haven't kept up with my listserv reading) So, I wonder what could be done in terms of generic

Re: [Wicket-user] Hibernate Paging

2007-01-09 Thread Nathan Hamblen
Please ignore my spirited reply to that old message below. Somehow Gmane (or Thunderbird?) has marked a bunch of old listserv messages as new, and it is causing me to live in the past. Nathan Hamblen wrote: Experience with creating a databinding API... hmmm... [blah blah BLAH]

Re: [Wicket-user] Hibernate Paging

2007-01-09 Thread Martijn Dashorst
Oh well, I find it very good to stirr up such a discussion. In fact I think that the ejb package could be just what the doctor ordered for this in particular. javax.persistence while not the end-all-be-all of ORM, does have annotations for all conceivable relationships. This would make such

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

2007-01-09 Thread Eelco Hillenius
The problem is that there are so many people involved in wicket-stuff that it's nearly impossible to reach them all and make a democratic decision about the future of the website. I don't think it has to be work truly democratic. As long as the main communication is via some public mailing

Re: [Wicket-user] Expiring Pages

2007-01-09 Thread Igor Vaynberg
really you need to figure out how to configure this in your container, but in case you hit a brick wall in your basepage add an ajax timer behavior that pings every 20 mins or so, make it stop after 3 hours. the fact that it pings the server every 20 mins will keep the session alive. -igor On

Re: [Wicket-user] ApacheCon interest?

2007-01-09 Thread Nick Heudecker
Unfortunately, I won't be able to do this. I have a client event going on at the same time. On 12/24/06, Martijn Dashorst [EMAIL PROTECTED] wrote: All, We are in the planning stages for submitting proposals to the ApacheCon of next year in Amsterdam (http://apachecon.com) Here are a couple

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

2007-01-09 Thread Igor Vaynberg
we already have a confluence and jira license, so if you guys want i can forward you the info. we also have a server where these things can be hosted :) i can set it up if you guys are interested -igor On 1/9/07, Filippo Diotalevi [EMAIL PROTECTED] wrote: On 1/9/07, Korbinian Bachl [EMAIL

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

2007-01-09 Thread Korbinian Bachl
I havent big experience with WIKIs so far, but i would go confluence as I expect better connections between the wicket wiki and wicket stuff wiki when both are same base. Filippo seems to have experience with confluence, however, I'm still wondering if we can use it, as i dont know a, how to

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

2007-01-09 Thread Korbinian Bachl
damn timing :P can you please let us know more about it? _ Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Igor Vaynberg Gesendet: Dienstag, 9. Januar 2007 18:29 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

Re: [Wicket-user] Hibernate Paging

2007-01-09 Thread Eelco Hillenius
On 1/9/07, Nathan Hamblen [EMAIL PROTECTED] wrote: Please ignore my spirited reply to that old message below. Somehow Gmane (or Thunderbird?) has marked a bunch of old listserv messages as new, and it is causing me to live in the past. Just 10 months ago :) Eelco

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

2007-01-09 Thread Matej Knopp
You have to use AjaxSubmitLink and call Window.close(target) inside the onSubmit(AjaxRequestTarget...) method. -Matej Nili Adoram wrote: Hi all, I have a panel (named AdvancedSearchPanel) containing a Form with a SubmitLink. I open this panel inside a modal dialog: final

Re: [Wicket-user] ApacheCon interest?

2007-01-09 Thread Martijn Dashorst
Matej, could you take this one? Martijn On 1/9/07, Nick Heudecker [EMAIL PROTECTED] wrote: Unfortunately, I won't be able to do this. I have a client event going on at the same time. On 12/24/06, Martijn Dashorst [EMAIL PROTECTED] wrote: All, We are in the planning stages for

Re: [Wicket-user] Hibernate Paging

2007-01-09 Thread Nathan Hamblen
Yeah, I think there's a lot that can be done with ejb3/jpa, and I know that people are more comfortable with standards approved by Sun than they are with the Hibernate name. (There are some useful HibAnno relationships that didn't make it into the spec, tho.) Seems to me like validation and

Re: [Wicket-user] Why are ResourceReference to DefaultButtonImageResources stored in Pagemaps?

2007-01-09 Thread M.A.Bednarz
Igor, thank you very much. I forgot to measure the session and have also collected the byte size of the pagemap :-) Thanks, Maciej Igor Vaynberg schrieb: are you sure the image data is stored in the session? we have RenderedDynamicImageResource-DefaultButtonImageResource in

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

2007-01-09 Thread Filippo Diotalevi
On 1/9/07, Korbinian Bachl [EMAIL PROTECTED] wrote: Filippo seems to have experience with confluence, however, I'm still wondering if we can use it, as i dont know a, how to get the license or if we may use the Apache ones for it b, on what server we will put it up - SF.net seems to limit to

Re: [Wicket-user] Expiring Pages

2007-01-09 Thread Johan Compagner
igor and his hacks.. On 1/9/07, Igor Vaynberg [EMAIL PROTECTED] wrote: really you need to figure out how to configure this in your container, but in case you hit a brick wall in your basepage add an ajax timer behavior that pings every 20 mins or so, make it stop after 3 hours. the fact that

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

2007-01-09 Thread James McLaughlin
I thought there were licensing issues that prevented us from hosting the wicket-stuff wiki with the wicket wiki on apache.org. If not, then I am for it. I have never used confluence so maybe someone who knows better can comment why it is so much better than the other wiki frameworks out there.

Re: [Wicket-user] Expiring Pages

2007-01-09 Thread Igor Vaynberg
webapps are often an uphill battle :) On 1/9/07, Johan Compagner [EMAIL PROTECTED] wrote: igor and his hacks.. On 1/9/07, Igor Vaynberg [EMAIL PROTECTED] wrote: really you need to figure out how to configure this in your container, but in case you hit a brick wall in your basepage add an

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

2007-01-09 Thread Eelco Hillenius
Yeah, we can't use Apache's infrastructure for wicket-stuff. However, we have a couple of servers available that are not related to Apache I believe. Eelco On 1/9/07, James McLaughlin [EMAIL PROTECTED] wrote: I thought there were licensing issues that prevented us from hosting the wicket-stuff

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

2007-01-09 Thread James McLaughlin
That would be great. Maybe we can run the wicket-stuff examples there, too. Is it possible for the wicket-stuff maintainers to get access to said box. thx, jim On 1/9/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Yeah, we can't use Apache's infrastructure for wicket-stuff. However, we have a

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

2007-01-09 Thread Erik van Oosten
Okay, I thought about a bit more and I now agree with you. It will be a mess if you do what I propose in combination with not allowing the empty string through validation. Still, the method CheckBox#clearInput() does not do what you expect. I expect it to clear the checkbox. This is translated

[Wicket-user] Any more wicket articles?

2007-01-09 Thread Erik van Oosten
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 Wicket out there?! Please add them when you find one! Have fun, Erik. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/

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

2007-01-09 Thread Eelco Hillenius
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 Wicket out there?! There should be a couple more, maybe we need to do a bit more googling. :) But... let this be a call to all readers to

[Wicket-user] ApacheCon Europe 2007

2007-01-09 Thread Martijn Dashorst
As you all probably know, the Apache conference Apache Con Europe 2007 is getting closer (read more about it here: http://apachecon.com) We can try to organize a couple of get to gethers. I already submitted an Introduction to Wicket presentation (it still has to be accepted). We are also

[Wicket-user] (no subject)

2007-01-09 Thread Wolfgang Gehner
Hi there, we want to integrate Wicket with other rendering technologies. One example is including wicket pages in a jsp. I created a use case as an Eclipse project based on Wicket trunk of today. zip is available at http://issues.apache.org/jira/browse/WICKET-202 Run the application as usual

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

2007-01-09 Thread Nili Adoram
I tried replacing the original SubmitLink in the form with an AjaxSubmitLink: public class AdvancedSearchForm extends Form { private static final String id = advanedSearchFrom; public AdvancedSearchForm(IModel model) { super(id, model); add(new TextField(name));