Re: [Wicket-user] question on autolinking

2006-04-14 Thread Juergen Donnerstag
Only very little performance impact. Wicket automatically creates a Link component for you and the "disable" behavior is exactly the same as for for Links. And Links get disabled if they point to the same page. If you don't want that behavior, than you can not use autolinks. Just add standard norm

[Wicket-user] immediate redirect?

2006-04-14 Thread Alexander Lohse
Hi, can anyone help me how I can redirect/setresponsepage immediately and interrupting the current call? For example: If at some point in my application I encounter a database error. I would like to redirect the user to nice error-page and quit processing the current request. Thank you

Re: [Wicket-user] Possible Enhancement for FormTester

2006-04-14 Thread Juergen Donnerstag
sure, everything that makes life easier and doesn't break existing code is welcome. Send it to me. Juergen On 4/14/06, Ingram Chen <[EMAIL PROTECTED]> wrote: > Currently FormTester only does raw String on request parameters. > As http://www.wicket-wiki.org.uk/wiki/index.php/Testing > states,

Re: [Wicket-user] immediate redirect?

2006-04-14 Thread Davy De Durpel
In wicket 1.2 you just have to add this line of code: throw new RestartResponseAtInterceptPageException(YourFancyErrorPage.class); I'm not sure if this one will work with wicket version prior to 1.2, but then it might be worth the upgrade ;-) -- View this message in context: http://www.nabble.c

[Wicket-user] wicket Session vs HttpSession

2006-04-14 Thread nils steen
Hi,I am on a project where the goal is to write a second front-end to an existing application. The existing application uses the HttpSession attributes to store the user's settings (language, encoding, authentication, permissions...) I tried passing the httpSession to the existing application usin

Re: [Wicket-user] wicket Session vs HttpSession

2006-04-14 Thread Johan Compagner
if it is not the same one then you are on a diffent context.So the session sees you as a different web app then the old applicationThen you will get a new session.Are you sure that the complete app (old and new) are running in the same web app under the same context? johanOn 4/14/06, nils steen <[E

Re: Betr.: Re: [Wicket-user] Wicket 2 (beta 3) and Resin 3.0.18 on SuSE 9.3 FileNotFoundException Too many open files

2006-04-14 Thread Johan Compagner
We can't disabled lastModified for that kind of stuff. We need a last modified timestamp for the http HEAD request for resources inside jarsWe could cache that result if we see that it comes from a jar. But as i said then we have to make sure that we have some sort of soluton for OSGI containers wh

Re: [Wicket-user] question on autolinking

2006-04-14 Thread Michael Day
Yep, I know I can add Link components, but it gets very tedious when you have, say, 100 links on a page. Auto-linking is such a useful feature, so I personally think that the link disabling feature should be a) configurable (via MarkupSettings), and b) disabled by default since it's not wh

Re: [Wicket-user] immediate redirect?

2006-04-14 Thread Alexander Lohse
Thanks. That was what I needed. In wicket 1.2 you just have to add this line of code: throw new RestartResponseAtInterceptPageException (YourFancyErrorPage.class); I'm not sure if this one will work with wicket version prior to 1.2, but then it might be worth the upgrade ;-) --

Re: [Wicket-user] question on autolinking

2006-04-14 Thread Igor Vaynberg
i dont think its a bug. autolinking is based on page's class, so if you have multiple links to the same page class with different parameters they will all be disabled. one more disadvantage of using wicket:link to do it automatically. if you used a link component you created you could override the

[Wicket-user] modifing Feedback

2006-04-14 Thread Alexander Lohse
Hi, is there any automatic-pre-render-method-invocation I can use to check conditions and add feedback? I tried onBeforeRender(). This seems to be to late to modify content?! I tried onAttach(). Here I have a strange phenomenon: The new feedback is not displayed, but I have an SimpleAttrib

Re: [Wicket-user] modifing Feedback

2006-04-14 Thread Alexander Lohse
Different said: How can a component add feedback-messages the first time he is displayed? - I cannot add feedback inside the constructor, because the page is not yet known. - I cannot override setParent, to find out when a page is given. - and later inside the process: see below Thanks

[Wicket-user] AjaxRequest with expired session

2006-04-14 Thread Arto Arffman
Hi,   What should happen when AjaxRequest is issued and session has expired? In my app nothing happens at all.   /arto

Re: [Wicket-user] modifing Feedback

2006-04-14 Thread Johan Compagner
Component protected void onBeforeRender()but you have to remember of course if it is the first time or notOn 4/14/06, Alexander Lohse < [EMAIL PROTECTED]> wrote:Different said:How can a component add feedback-messages the first time he is displayed?  - I cannot add feedback inside the constructor,

[Wicket-user] Re: AjaxRequest with expired session

2006-04-14 Thread Arto Arffman
Ha! found a bug   there is one parameter missing when generating ajax-response...   Signature in wicket-ajax.js is: function wicketSubmitFormById(formId, url, submitButton, successHandler, failureHandler) {   AjaxFormSubmitBehavior.getEventHandler() has now:     return getCallbackScript(new Append

[Wicket-user] bug with components names and tags

2006-04-14 Thread Michael Day
In my markup, I have added a RequiredTextField component called "message". I also use the tag. Wicket seems to get them confused. Is this a bug? wicket.markup.MarkupException: Component message must be applied to a tag of type 'input', not '' (line 0, column 0)

Re: [Wicket-user] wicket ajax memory leak with IE

2006-04-14 Thread Timo Stamm
Igor, do you know RIFE/Continuations? It uses continuations for better state handling and control flow instead of better performance. There are some examples in this slide (pages 5 to 8): https://www.dev.java.net/files/documents/204/3120/rife_fosdem_2004.pdf It really looks like an interesti

Re: [Wicket-user] wicket Session vs HttpSession

2006-04-14 Thread Eelco Hillenius
> > However, the session passed to the backend isn't always the same one, > causing the back-end to throw exceptions. Then there is something wrong that is not Wicket related. Wicket just passes/ uses the underlying httpSession. > Is there something i can do to > maintain the httpSession (and kee

Re: [Wicket-user] wicket ajax memory leak with IE

2006-04-14 Thread Igor Vaynberg
what do rife's continuations have to do with ajax?-IgorOn 4/14/06, Timo Stamm <[EMAIL PROTECTED] > wrote:Igor,do you know RIFE/Continuations? It uses continuations for better state handling and control flow instead of better performance.There are some examples in this slide (pages 5 to 8):https://w

Re: [Wicket-user] wicket ajax memory leak with IE

2006-04-14 Thread Eelco Hillenius
I can't speak for Igor - though we have talked about that too - but for my opion see e.g. http://www.theserverside.com/news/thread.tss?thread_id=39579#204913 Basically, I think continuations are a smart idea, and they might be useful for wizard/ flow type applications. That said, I also think they

Re: [Wicket-user] wicket ajax memory leak with IE

2006-04-14 Thread Timo Stamm
Igor Vaynberg schrieb: what do rife's continuations have to do with ajax? Nothing. On 4/14/06, Timo Stamm <[EMAIL PROTECTED]> wrote: Igor, do you know RIFE/Continuations? It uses continuations for better state handling and control flow instead of better performance. There are some exampl

Re: [Wicket-user] wicket ajax memory leak with IE

2006-04-14 Thread Igor Vaynberg
heh, so why post to this thread and not start a new one?-IgorOn 4/14/06, Timo Stamm <[EMAIL PROTECTED] > wrote:Igor Vaynberg schrieb:> what do rife's continuations have to do with ajax? Nothing.> On 4/14/06, Timo Stamm <[EMAIL PROTECTED]> wrote:>> Igor,>> do you know RIFE/Continuations? It uses

Re: [Wicket-user] wicket ajax memory leak with IE

2006-04-14 Thread Timo Stamm
Eelco Hillenius schrieb: I can't speak for Igor - though we have talked about that too - but for my opion see e.g. http://www.theserverside.com/news/thread.tss?thread_id=39579#204913 Thanks for the link. mind you that Wicket allows for very fancy state optimizations as well. Quoting from a

Re: [Wicket-user] wicket ajax memory leak with IE

2006-04-14 Thread Igor Vaynberg
the problem with the word "continuation" is that it has recently aquired multiple meanings.in rife, afaik, the continations are used to drive program flow. that is, the continuation remembers where in the function you are and can resume from that point forward. this is basically an abstraction of a

Re: [Wicket-user] wicket ajax memory leak with IE

2006-04-14 Thread Igor Vaynberg
i dont see how this "spreads" the logic around. your navigation logic would be isolated in an object that will drive the flow and the steps are reusable panels.i wrote a wizard framework for the company i work for, and we have been using it with great success. it is driven by a general workflow lik

[Wicket-user] Wicket & continuations (was: wicket ajax memory leak with IE)

2006-04-14 Thread Eelco Hillenius
Answers below, > Quoting from a response from Bruce Tate (taken from your link): > > | check out Seaside's online store as an example of a wizard with > | continuations. It's a classic shopping cart. The code: > | > | go > | | shipping billing creditCard | > | cart _ WAStoreCart new. > | sel

Re: [Wicket-user] modifing Feedback

2006-04-14 Thread Alexander Lohse
Hi, as I said, this does not work! Maybe a Bug in 1.2 b3? Am 15.04.2006 um 00:07 schrieb Johan Compagner: Component protected void onBeforeRender() but you have to remember of course if it is the first time or not On 4/14/06, Alexander Lohse < [EMAIL PROTECTED]> wrote:Different said: How