Pre render action common to all pages

2008-08-11 Thread Benny Weingarten
Hello. I'm writing a wicket application for facebook, but I think my problem may be common to many wicket applications. In my case, I'm using the wicket-facebook authentication strategy that is described in a different thread here on nabble. That works great - when a page is rendered, the

Re: help with css and image background

2008-08-11 Thread Ernesto Reinaldo Barreiro
She's just trying to explain herself in a language that is not her own and that certainly she doesn't use for every day life... Have you ever been in such a situation? I know it well because I have been there myself... No need to be harsh... Best Regards, Ernesto. Daan van Etten wrote:

Re: Pre render action common to all pages

2008-08-11 Thread Igor Vaynberg
create a custom request cycle and put this stuff in requestcycle#onbeginrequest -igor On Sun, Aug 10, 2008 at 11:15 PM, Benny Weingarten [EMAIL PROTECTED] wrote: Hello. I'm writing a wicket application for facebook, but I think my problem may be common to many wicket applications. In my

how to test multiple submits on the form

2008-08-11 Thread ElSe
Hi, all! I have a question regarding the load testing of the Wicket application. I have used this article http://cwiki.apache.org/WICKET/multiple-submit-buttons.html to create the form in my application. All works well. But now I have to organize load testing of my application. I have read

Re: Extending BrowserInfoForm

2008-08-11 Thread Federico Fanton
On Fri, 8 Aug 2008 08:29:37 -0700 [EMAIL PROTECTED] wrote: should be fine Done, https://issues.apache.org/jira/browse/WICKET-1786 Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: ListView in Forms

2008-08-11 Thread Markus Haspl
hi, thanks. this works :-) avajon On Sat, Aug 9, 2008 at 1:11 AM, brian.diekelman [EMAIL PROTECTED] wrote: There are a few things going on here... try this and see if it does what you want it to do. If so reply back and I'll explain what the underlying issue was: TextField

Re: Multiple instances of pages and spring integration

2008-08-11 Thread Lorenzo Bolzani
Hi Igor, I tried your suggestion and it works but looks like a workaround more than a solution. I have many pages that need some configuration. This is server side configuration, for example how often a page should refresh itself. I tryed to pass in these parameters as PageParameters but in this

RE: Strange AjaxFormComponentUpdatingBehavior with Internet Explorer

2008-08-11 Thread Kai Mütz
Can anyone helb with the above issue? Kai Mütz mailto:[EMAIL PROTECTED] wrote: BTW, whilw checking the checkbox the AJAX Debug window says: Info: Set focus on required That's all. 2008/8/8 Kai Mütz [EMAIL PROTECTED] Hi, I have 2 form components in a form. A checkbox and a

Re: tinymce ajax submit

2008-08-11 Thread sander v F
For a project I also needed a AjaxSubmitLink to submit the tinyMce data, so i've searched for a solution and found it at http://dwairi.blogspot.com/2006/12/tinymce-ajax.html The solution is to add tinyMCE.triggerSave(true,true); to the onclick of the ajax button/link before the wicket code is

Always serialize pages for debug purposes

2008-08-11 Thread Thomas Mäder
Hi Guys, I seem to remember that there was a way to force Wicket to always serialize pages on detach in order to make sure every page is serializable during development. Can someone please point me to the FM so I can read it? Searching Nabble Google didn't turn up anything. this is 1.3.3

Re: Multiple instances of pages and spring integration

2008-08-11 Thread Michael Sparer
I'd say Igor's suggestion is a solution rather than workaround. There's just no point in configuring pages by means of XML or - worse - even a spring config. Passing in page specific parameters is exactly the way to go. I tryed to pass in these parameters as PageParameters but in this way I

Customizing treeTable.

2008-08-11 Thread kag1526
I am using a tree table to display data from a database, however some of the rows in the tree table needs to have multiple values that I would like to be displayed in the same cell on multiple lines like: Name | ABC Variant names | ABC

Re: Always serialize pages for debug purposes

2008-08-11 Thread Uwe Schäfer
Thomas Mäder schrieb: I seem to remember that there was a way to force Wicket to always serialize pages on detach in order to make sure every page is serializable during development. Can someone please point me to the FM so I can read it? Searching Nabble Google didn't turn up anything. one

Re: Always serialize pages for debug purposes

2008-08-11 Thread Thomas Mäder
Yeah, but wasn't there official support for that? And if not, wouldn't this be useful for debug? Thomas 2008/8/11 Uwe Schäfer [EMAIL PROTECTED] Thomas Mäder schrieb: I seem to remember that there was a way to force Wicket to always serialize pages on detach in order to make sure every

Re: Multiple instances of pages and spring integration

2008-08-11 Thread Lorenzo Bolzani
Hi Michael, the point is that this is not a user provided parameter but a server-side page configuration parameter. In this specific case I need to tell the page how often it should auto-refresh. So it is not something that should be passed in from the client over the url but something defined at

Re: Multiple instances of pages and spring integration

2008-08-11 Thread Michael Sparer
Well if it's no dynamic parameter but a static one, different for each page ... why not subclassing a basepage with changed attributes? If the only problem you see is a missing overview, i.e. you'd like to control the different values at one place, you should consider setting the properties e.g.

Re: PageParameters

2008-08-11 Thread Lutz Müller
Thats what I was thinking, too, when I read Uwes post. I did not look at Wicket 1.4 yet, but had assumed that PageParameters should always be String to String maps, because this is what they are in HTTP. But then again, wicket is not strictly HTTP, and when you look at the javadoc comment for

Re: Always serialize pages for debug purposes

2008-08-11 Thread Jonas
It seems this feature was removed, but there's some javadoc left in org.apache.wicket.settings.IDebugSettings: [quote] iserializeSessionAttributes/i (defaults to true in development mode) - Causes the framework * to serialize any attribute put into session - this helps find Not Serializable

Re: Wicket 1.4m3 - AjaxButton, AjaxSubmitLink in ModalWindow in IE 7 Problem ?

2008-08-11 Thread kag1526
I just tested my app in IE 7 since I also have a ModalWindow with an AjaxSubmitLink that submits my form and closes the window and mine worked fine. sorry I can't help with a solution but I can tell you that it is possible to make work. FakeBoy wrote: Hi, I tried to submit form from

Re: how to test multiple submits on the form

2008-08-11 Thread Igor Vaynberg
add button's name attribute to the post params iirc buttonname.x=2buttonname.y=2 will do -igor On Mon, Aug 11, 2008 at 12:18 AM, ElSe [EMAIL PROTECTED] wrote: Hi, all! I have a question regarding the load testing of the Wicket application. I have used this article

Re: PageParameters

2008-08-11 Thread Igor Vaynberg
wicket provides convinience methods for working with strings, eg a method to automatically convert a string to an int so you dont have to. likewise it will automatically convert all objects you put into it to a string. -igor On Mon, Aug 11, 2008 at 7:36 AM, Lutz Müller [EMAIL PROTECTED] wrote:

Re: Multiple instances of pages and spring integration

2008-08-11 Thread Igor Vaynberg
then have your page look it up itself from the spring context using some registry class mypage extends webpage { @SpringBean private PageConfigRegistry registry; public mypage() { mydata data=(mydata)registry.getdatafor(getclass()); // do whatever with data // ^ or put that

Re: Customizing treeTable.

2008-08-11 Thread Matej Knopp
Hi, with current layout it is not possible for the TreeTable to have variable row height. -Matej On Mon, Aug 11, 2008 at 2:13 PM, kag1526 [EMAIL PROTECTED] wrote: I am using a tree table to display data from a database, however some of the rows in the tree table needs to have multiple values

Handling runtime exceptions in ajax request

2008-08-11 Thread Daniel Stoch
Hi, In Wicket by default IRequestCycleProcessor.respond(RuntimeException, RequestCycle) method is called to handle runtime exceptions. In AbstractRequestCycleProcessor this method throws RestartResponseException (or RestartResponseAtInterceptPageException) and then the other page is shown (eg.

Re: Always serialize pages for debug purposes

2008-08-11 Thread Thomas Mäder
Ah bugger! That was most convenient! I'd be very much in favor of it's making a comeback Thomas On Mon, Aug 11, 2008 at 4:56 PM, Jonas [EMAIL PROTECTED] wrote: It seems this feature was removed, but there's some javadoc left in org.apache.wicket.settings.IDebugSettings: [quote]

Re: PageParameters

2008-08-11 Thread Brill Pappin
ok... that make sense to me. The primary then should be String, String but maybe overload it so that nothing legacy breaks. I think the String, ? will help, but I also think that being specific about what it holds is important... otherwise its trying to be too smart and I might get a

Re: PageParameters

2008-08-11 Thread Igor Vaynberg
then, unfortunately, you have to perform the conversion yourself all the time, which is quiet annoying. -igor On Mon, Aug 11, 2008 at 8:24 AM, Brill Pappin [EMAIL PROTECTED] wrote: ok... that make sense to me. The primary then should be String, String but maybe overload it so that nothing

Re: Always serialize pages for debug purposes

2008-08-11 Thread Igor Vaynberg
with the default diskstore pages are always serialized... -igor On Mon, Aug 11, 2008 at 8:23 AM, Thomas Mäder [EMAIL PROTECTED] wrote: Ah bugger! That was most convenient! I'd be very much in favor of it's making a comeback Thomas On Mon, Aug 11, 2008 at 4:56 PM, Jonas [EMAIL PROTECTED]

Re: PageParameters

2008-08-11 Thread Brill Pappin
Oh I wouldn't take out the convenience methods... but the base should not be String,Object :) Start with String, String then add any convenience methods from there. I agree that manual conversion would be a bit of a pain, but most people would only do it once if that was the only option

Re: Comparing JSF and Wicket

2008-08-11 Thread Peter Thomas
On Thu, Aug 7, 2008 at 12:24 PM, nlif [EMAIL PROTECTED] wrote: Peter, Actually, when I said I googled a bit and found some material, I was in fact referring to your blog post and the slides :) This is very useful information, and your comparison was done, IMHO, very fairly and skillfully.

Easier way to accomplish setResponsePage(Class, PageParameters)

2008-08-11 Thread Ryan O'Hara
We are trying to figure out the best way to make our URLs portable. Currently, we mount a QueryStringUrlEncodingStrategy in our application class. Then, in the beginning of the page's constructor, page parameters are mapped to instance variables. Then, when the form button is clicked, a

Re: Multiple instances of pages and spring integration

2008-08-11 Thread Lorenzo Bolzani
2008/8/11 Igor Vaynberg [EMAIL PROTECTED]: then have your page look it up itself from the spring context using some registry class mypage extends webpage { @SpringBean private PageConfigRegistry registry; public mypage() { mydata data=(mydata)registry.getdatafor(getclass()); // do

How to not reload page when switching tabs in TabbedPanel.

2008-08-11 Thread kag1526
I have a TabbedPanel where the first tab is a search screen where you can search the database and then click on a row to open detailed information about that row in another tab. Some of the searches can take a long time in the database so I need the search results to stay in the search tab even

Re: Multiple instances of pages and spring integration

2008-08-11 Thread Igor Vaynberg
On Mon, Aug 11, 2008 at 9:40 AM, Lorenzo Bolzani [EMAIL PROTECTED] wrote: So you are saying that wicket does not provide a standard way for page configuration. So I'll develop a custom solution based on spring or on property files. there is no one-way-fits-all way of configuring pages, this is

Re: How to not reload page when switching tabs in TabbedPanel.

2008-08-11 Thread Igor Vaynberg
you need to do this on model-level, not component level. there have been threads on the mailing list about background tasks, even search-result specific threads. search the list. -igor On Mon, Aug 11, 2008 at 9:47 AM, kag1526 [EMAIL PROTECTED] wrote: I have a TabbedPanel where the first tab is

Any wicketstuff.org site admins around?

2008-08-11 Thread David Nedrow
It doesn't look as though there is any way to send a message to the site admins listed on the Wicket Stuff site. The web server is not setting the correct mime-type for .war files. If any of the admins see this, could you add something like the following (assuming Apache httpd)... AddType

Re: Images not caching in browser

2008-08-11 Thread jchappelle
That was it. There was a no-cache header being sent to the browser from tomcat. I'll post my findings for anyone else that is having the same problem. I used a tool called fiddler to examine the headers that were being sent down. You can get it here: http://www.fiddler2.com/fiddler2/ After that

Re: Wicket 1.4m3 - AjaxButton, AjaxSubmitLink in ModalWindow in IE 7 Problem ?

2008-08-11 Thread FakeBoy
Thanks for your interest :) I tried to isolate problem, because I use it in some context of my application. I made small fake startup project only with only necessary classes and this problem hasn't occured. So everything works fine. But I made only simple dummy modal window with no listeners and

Re: How to not reload page when switching tabs in TabbedPanel.

2008-08-11 Thread kag1526
I have gotten the search tab to work by making the class that creates the tab panel have a class variable called searchPanel that holds the panel that the getPanel() method returns, (I create it the first time the tab is selected and then just return it each time after that) I might have to go

Feedback messages disappearing before display

2008-08-11 Thread insom
I have a submit button that adds a message to my FeedbackPanel, like so: if (isTestPassed()) { ... } else { setResponsePage(TestPage.class); info(You didn't pass the test...); } However, when the browser gets to the TestPage, it doesn't display any messages. I stepped

Re: In memoriam: Maurice Marrink

2008-08-11 Thread Nino Saturnino Martinez Vazquez Wael
Yes, very sad. I had the pleasure of chatting and mailing with him a couple of times, and was looking very much forward to getting annotations into the Wicket security framework. This is truly a loss for the Wicket community:( RIP Maurice. greeklinux wrote: That is very sad. Maurice, RIP

Re: Wicket 1.4m3 - AjaxButton, AjaxSubmitLink in ModalWindow in IE 7 Problem ?

2008-08-11 Thread FakeBoy
Hi, I GOT IT I found the problem. The Problem was in the TextField with wicket id id. When you want to safetly use ajax submit components (AjaxButton, AjaxSubmitLink) your form components (TextFiels etc.) CAN NOT have wicket id id, because ajax submit stop work in IE. For example:

Re: Wicket 1.4m3 - AjaxButton, AjaxSubmitLink in ModalWindow in IE 7 Problem ?

2008-08-11 Thread Martijn Dashorst
also, don't use a submit button with wicket:id submit Martijn On Mon, Aug 11, 2008 at 9:57 PM, FakeBoy [EMAIL PROTECTED] wrote: Hi, I GOT IT I found the problem. The Problem was in the TextField with wicket id id. When you want to safetly use ajax submit components (AjaxButton,

Re: Feedback messages disappearing before display

2008-08-11 Thread nanotech
Hi, I believe you want to display the feedback message in TestPage. If so, do something like this: 1. make sure you have feedback panel added on the page where you will be landing after redirect. 2. Then you can get hold of the feedback panel in the current page like shown below: FeedbackPanel

Re: In memoriam: Maurice Marrink

2008-08-11 Thread insom
Let me publicly express my thanks for his work as well. While I'm new to Wicket, I've seen Maurice's name often in the message archives. He responded to requests for help quickly, effectively, and kindly. I have been deeply impressed during my experience with Wicket, as much due to the quality of

Re: Feedback messages disappearing before display

2008-08-11 Thread insom
I tried to follow your suggestions, but it is still not displaying messages in the panel. nanotech wrote: I believe you want to display the feedback message in TestPage. Yes, that's correct. TestPage extends BaseTemplate, which contains this: BaseTemplate.java: MessagePanel messagePanel

Re: Feedback messages disappearing before display

2008-08-11 Thread Matej Knopp
If you want to show messages on another page you need to use session feedback messages (getSession().info) -Matej On Mon, Aug 11, 2008 at 9:47 PM, insom [EMAIL PROTECTED] wrote: I have a submit button that adds a message to my FeedbackPanel, like so: if (isTestPassed()) { ... } else

Re: Feedback messages disappearing before display

2008-08-11 Thread Matej Knopp
If you want to show messages on another page you need to use session feedback messages (getSession().info) -Matej On Mon, Aug 11, 2008 at 9:47 PM, insom [EMAIL PROTECTED] wrote: I have a submit button that adds a message to my FeedbackPanel, like so: if (isTestPassed()) { ... } else

Re: Always serialize pages for debug purposes

2008-08-11 Thread James Carman
But, it's in a separate thread, right? So, you'll have to look for error messages in a log file (or console window). Would a more drastic response (error in the browser) be more appropriate during development? On Mon, Aug 11, 2008 at 11:34 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: with the

Re: Feedback messages disappearing before display

2008-08-11 Thread insom
That solved it. I'm surprised -- considering that the original getSession().getFeedbackMessages() showed the message, I had assumed that it was being attached to the session. I guess I still have a lot to learn :) Thanks for your help. Matej Knopp-2 wrote: If you want to show messages on

Re: Always serialize pages for debug purposes

2008-08-11 Thread Igor Vaynberg
well, then check who removed them and ask them why they did that... personally i dont mind looking into the console, but thats just me... -igor On Mon, Aug 11, 2008 at 2:10 PM, James Carman [EMAIL PROTECTED] wrote: But, it's in a separate thread, right? So, you'll have to look for error

Re: Always serialize pages for debug purposes

2008-08-11 Thread James Carman
The only problem with having to look at the console is that sometimes other logging can make that stuff fly by. And, if you're not watching it, it's not obvious there's a problem. Perhaps a better solution might be to check serializability using a unit test rather than by exercising the pages