WicketTester, FormTester and submit after validation failure

2007-12-01 Thread Neil Green
I'm using WicketTester with wicket 1.3.0-rc1 and I've run into some problems when I test form validation. I submit an invalid form and as expected I am returned to the same page with feedback errors. In the same test, I correct the error in the form and resubmit. Instead of the form being

Re: WicketTester, FormTester and submit after validation failure

2007-12-01 Thread Per Newgro
Hi Neil, you always get the same page, unless you send it again. I think you have to use a WebRequestCycle to achieve your goal. See this thread http://www.nabble.com/WicketTester---reload-page-after-model-changed-tf4691262.html#a1348 Cheers Per

Re: advice about ImageSubmitButton and AjaxImageSubmitButton

2007-12-01 Thread Martijn Dashorst
You are the first one to miss them, so they are not used very often :). They are easy enough to create yourself, -1 on adding more bloated buttons to the core. Martijn On Nov 29, 2007 10:17 AM, xiefei [EMAIL PROTECTED] wrote: In the Button type hierachy, there are ImageButton and

Re: Regarding POP-UP window

2007-12-01 Thread Martijn Dashorst
What have you tried to accomplish this? Martijn On Nov 30, 2007 6:48 AM, Edi [EMAIL PROTECTED] wrote: Hello, I have one combo box, I have selected one combo item, when I click the button, the selected combo item should be displayed in the pop-up window. how can i do this? please

Re: Binding application to another thred

2007-12-01 Thread Martijn Dashorst
You know that creating threads in a servlet container yourself is A Bad Thing (tm)? You could try to use Application.get(String key) instead of Application.get (). Martijn On Nov 30, 2007 11:40 AM, Vit Rozkovec [EMAIL PROTECTED] wrote: Good day, when I create new thread, what is the proper

Re: Thx everybody that attended the user group meeting in The Netherlands

2007-12-01 Thread Johan Compagner
You cant make suggestions because as usual igor wasnt there! But of course next year apache on eu you come over ofcourse (and the wicket meetup in thayland is still ofcourse a big option) On 12/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On Nov 30, 2007 4:38 PM, Johan Compagner [EMAIL

Re: Asynchronous Ajax update of Panels, non-blocking

2007-12-01 Thread Martijn Dashorst
On Nov 30, 2007 11:56 AM, axess [EMAIL PROTECTED] wrote: I have a page with Panels that need some more operation time to construct their model, because of heavy statistics calculation and database operations. The Panels should render their content when they are done after some seconds, but

Re: [RFE] HeaderContributor.forFavicon(Reference)

2007-12-01 Thread Alex Objelean
I think William is not talking about when js is executed, but how it is included - in the bottom of the body tag. Alex. igor.vaynberg wrote: you can already sorta do this our iheadercontributor's iheaderresponse has renderOnDomReadyJavascript and renderOnLoadJavascript so you can put

Re: Thx everybody that attended the user group meeting in The Netherlands

2007-12-01 Thread Martijn Dashorst
And much more: http://flickr.com/photos/tags/wicketmeetup On Dec 1, 2007 2:20 AM, Johan Compagner [EMAIL PROTECTED] wrote: a few: http://flickr.com/photos/tags/wicketmeeting/ On Dec 1, 2007 2:17 AM, Eelco Hillenius [EMAIL PROTECTED] wrote: On Nov 30, 2007 4:38 PM, Johan Compagner [EMAIL

Re: Thx everybody that attended the user group meeting in The Netherlands

2007-12-01 Thread Martijn Dashorst
Everyone needs to add the tag wicket to their uploaded photo's. This can be done pretty quickly even in the browser... Martijn On Dec 1, 2007 2:24 AM, Eelco Hillenius [EMAIL PROTECTED] wrote: On Nov 30, 2007 5:20 PM, Johan Compagner [EMAIL PROTECTED] wrote: a few:

Re: WicketTester, FormTester and submit after validation failure

2007-12-01 Thread Neil Green
Per Newgro wrote: you always get the same page, unless you send it again. I think you have to use a WebRequestCycle to achieve your goal. See this thread http://www.nabble.com/WicketTester---reload-page-after-model-changed-tf4691262.html#a1348 Thanks for your response. I think I've

Re: WicketTester, FormTester and submit after validation failure

2007-12-01 Thread Per Newgro
Hi Neil, but isn't this cheating? Hmm. I never saw the FeedbackMessageClearing. I always assumed that my test has to simulate the browser behavior. So i used the request cycle. If you get an error prone page (with messages) the browser will not reset the messages simply, or? If i'm not

Re: Gzip filter and resource problem

2007-12-01 Thread Matej Knopp
Check the response headers. -Matej On Dec 1, 2007 12:08 PM, Artur W. [EMAIL PROTECTED] wrote: Hi! Matej Knopp-2 wrote: Yes. Your filter should check if the resource is already compressed. Wicket compress javascripts and css files already. Your filter probably compresses it again.

Re: Serialized pages location on the disk ?

2007-12-01 Thread Matej Knopp
On Dec 1, 2007 3:39 AM, mfs [EMAIL PROTECTED] wrote: I see..what about SimpleSynchronousFilePageStore, doesnt this solve the problem ? i remember johan about it being an alternative (other than using an httpsessionstore as per 1.2) in clustered-env/shared disk scenario...

Re: WicketTester, FormTester and submit after validation failure

2007-12-01 Thread Neil Green
Per Newgro wrote: but isn't this cheating? Hmm. I never saw the FeedbackMessageClearing. I always assumed that my test has to simulate the browser behavior. So i used the request cycle. If you get an error prone page (with messages) the browser will not reset the messages simply, or? If i'm

Re: Gzip filter and resource problem

2007-12-01 Thread Artur W.
Hi! Matej Knopp-2 wrote: Yes. Your filter should check if the resource is already compressed. Wicket compress javascripts and css files already. Your filter probably compresses it again. You are right! But how can I check it? I thought that better idea than compress it be myself is to

Re: WicketTester, FormTester and submit after validation failure

2007-12-01 Thread Per Newgro
PlinkPlink. The coin has reached the bottom. Then it makes sense. I have to check my testcases for this behavior. Thanks Per - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Dynamic Page Redirection

2007-12-01 Thread Franklin Antony
Dear All, I have three pages. Page A,Page B,Page C. The use case is as follows When I click the onSubmit of Page A(has a form) I setResponse to Page B. Page B already has forms and buttons and many other components in it. Now on Page B i want to dynamically redirect to Page C under certain

[offtop] need help with eclipse and m2eclipse

2007-12-01 Thread Oleg Taranenko
Helloall, Sorry for bothering, may be somebody could help. I'm developing web apps under Eclipse. Early I'm using the mvn eclipse:eclipse + jetty launcher plugn. Now i try to use m2eclipse plugin and webapp is started using m2's goal mvn jetty:run. The application works, but when I want to

Re: [offtop] need help with eclipse and m2eclipse

2007-12-01 Thread Martijn Dashorst
You don't need the jetty launcher plugin, in fact I'd recommend using the embedded jetty starter we provide with the quickstarts. Right click the start class, select debug as application and go... Also the mvn jetty:run plugin is not really useful for development in my opinion. It is a nice maven

Re: Dynamic Page Redirection

2007-12-01 Thread Franklin Antony
Thanks. Perfect and working fine. Regards, Franklin. Franklin Antony wrote: Dear All, I have three pages. Page A,Page B,Page C. The use case is as follows When I click the onSubmit of Page A(has a form) I setResponse to Page B. Page B already has forms and buttons and many other

Re[2]: [offtop] need help with eclipse and m2eclipse

2007-12-01 Thread Oleg Taranenko
Hello Martijn, Jetty launcher has some advantages though, i.e. it allows to set up different context path/port for the projects without changing source code. Thus i can simultaneously run and debug its. If not this annoying bug, i found development with m2eclipse more convenient. I hope the

Re: adding wicket palette buttons

2007-12-01 Thread Igor Vaynberg
add an rfe into jira -igor On Dec 1, 2007 11:06 AM, Jason Anderson [EMAIL PROTECTED] wrote: roger, ill take a look and see what i can come up with think it would be possible to add this to the default palette markup? generally in most desktop type apps i've ever seen this with this style

RE: cannot render a menubar using menu2 package

2007-12-01 Thread Doug Leeper
Rik, Here is what I have done to utilize the MenuBar. (Unfortunatley...this is not available to the public so I can't direct you to a public URL) In foo.html: link rel=stylesheet type=text/css href=/member/css/topNavMenu.css / Menu Bar In my foo.java: YuiMenuBar menuBar = new YuiMenuBar(

Re: Gzip filter and resource problem

2007-12-01 Thread Artur W.
Matej Knopp-2 wrote: Check the response headers. Sorry for the stupid question but how can i do that? There is no getHeader method in the HttpServletResponse. Thanks, Artur -- View this message in context:

[ANN] Wicket Web Beans 1.0-rc2 Released

2007-12-01 Thread Dan Syrstad
Wicket Web Beans 1.0-rc2 has been released. Wicket Web Beans (WWB) is an Apache Wicket component toolkit for displaying and editing POJOs that conform to the JavaBeans specification. Web pages are automatically generated based on bean properties and certain conventions. If necessary, the layout,

Re: Thx everybody that attended the user group meeting in The Netherlands

2007-12-01 Thread Eelco Hillenius
I loved the talks and enjoyed talking to all of you! Until next year! If it would be around ApacheCon next year (April), I'd have an extra reason to fly over, and others maybe an extra reason to go to ApacheCon! Eelco -

Re: getObject() still called for Models in a wicket:enclosure when the content of the enclosure is not rendered?

2007-12-01 Thread Eelco Hillenius
That is very strange. It shouldn't be called, as the model object is only requested when a component that is rendering requests it. Are you really sure? Can you create a test case for this, or a quickstart project that shows the problem and attach it to a JIRA issue please? Eelco On Nov 29, 2007

Re: Gzip filter and resource problem

2007-12-01 Thread Matej Knopp
use httpservletresponsewrapper and intercept setHeader. -Matej On Dec 1, 2007 10:47 PM, Artur W. [EMAIL PROTECTED] wrote: Matej Knopp-2 wrote: Check the response headers. Sorry for the stupid question but how can i do that? There is no getHeader method in the HttpServletResponse.