Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-25 Thread Igor Vaynberg
i think the default behavior should be to just output the redirect _javascript_ and ignore everything else in the response. in case someone has an edge case that requires some _javascript_ they can easily implement window.location script themselves. maybe adding requestcycle.urlfor(Page page) will

Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-25 Thread Eelco Hillenius
We could do that too. Do you think any script should be executed, or if such a page (rather request target, let's keep things generic here) is set, should anything else be disregarded? Eelco On 7/25/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > the answer would be to add setresponsepage on the

Re: [Wicket-user] Page reload indefinitely

2006-07-25 Thread Igor Vaynberg
are you using 1.2.0 or 1.2.1 ? in 1.2.0 we used a cookie to detect new windows/tabs, in 1.2.1 we switched to window.name so it should be much better.-Igor On 7/25/06, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote: Sometimes loading a bookmarkable page it never stop loading. It appears to be an infinit

[Wicket-user] Page reload indefinitely

2006-07-25 Thread Paolo Di Tommaso
Sometimes loading a bookmarkable page it never stop loading. It appears to be an infinite redirect loop because I can see on my log query execute over and over again. The only way to stop is  press the stop browser button. I'm unable to replicate the error because it happens for in some aleatory w

Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-25 Thread Igor Vaynberg
the answer would be to add setresponsepage on the ajaxrequesttarget that would keep the settings and at the end of processing /append/ the _javascript_ call. so you can call setresponsepage multiple times, but only the last call matters. and requestcycle can just forward to that method on the targe

Re: [Wicket-user] Extensions Javascript encoding bug?

2006-07-25 Thread Johan Compagner
It seems that your page is not output in UTF-8 (that is default by us)Or your pages are not correctly loaded from disk.johanOn 7/25/06, JK <[EMAIL PROTECTED]> wrote:Hi, Does Wicket extensions (1.2.1) have _javascript_ encoding bug? FormInput (http://www.wicket-library.com/wicket-examples/forminput

Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-25 Thread Eelco Hillenius
That's why I asked you that question on ##wicket. PrependJavaScript now adds to a list. I think the name implies that it should be added in front of everything. That would fix that potential problem. If not, I thought about exposing getPrependJavaScripts or something, so that I could do the filteri

Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-25 Thread Igor Vaynberg
what happens if you call setresponsepage twice, since both _javascript_s are output i think the first one will be followed instead of the second one which is in contradition to how it works on regular requsts.-Igor On 7/25/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: I just checked in a fix (will

[Wicket-user] Extensions Javascript encoding bug?

2006-07-25 Thread JK
Hi, Does Wicket extensions (1.2.1) have Javascript encoding bug? Form Input (http://www.wicket-library.com/wicket-examples/forminput) Calendar component has question mark instead of ä. Editable Label example (http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.exam

Re: [Wicket-user] Please explain the usage of Border in the library example

2006-07-25 Thread Igor Vaynberg
well im close to figuring out this whone time space continuum deal so hopefully soon it will be 42!-IgorOn 7/25/06, Johan Compagner < [EMAIL PROTECTED]> wrote:25 ofcourse in your case. On 7/25/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote: patches to javadoc are always welcome :) or a bug report so

Re: [Wicket-user] Wicket 1.2.1 available

2006-07-25 Thread Igor Vaynberg
i kept trying to log in but my browser would just spin its wheel :)-IgorOn 7/25/06, Gwyn Evans <[EMAIL PROTECTED] > wrote:On 25/07/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:> wiki is too slow for me to be usable right now,Out of interest, what sort of delays were you seeing & was this aone-off o

Re: [Wicket-user] Wicket 1.2.1 available

2006-07-25 Thread Igor Vaynberg
not to mention model cloning-IgorOn 7/25/06, Johan Compagner <[EMAIL PROTECTED]> wrote: This is not really only for clustering..It is also for restarts of the server without loosing sessions. You just should have that setting on when developing and try to make everything serializeable because

Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-25 Thread Eelco Hillenius
I just checked in a fix (will thus be in Wicket 1.2.2 and Wicket 2.0) so that you can directly set the response page like you would do in normal requests: add(new AjaxLink("set-response-page") { public void onClick(AjaxRequestTarget target) { setResponsePage(LinksPa

Re: [Wicket-user] PrependContextPathHandler for components?

2006-07-25 Thread Johan Compagner
how do you create the url?You should use our urlFor method for that on RequestCyclejohanOn 7/17/06, Jan Willem Janssen < [EMAIL PROTECTED]> wrote:Hi All,Just as an exercise, I created a custom image-component that rewrites the source attribute to link to my own image-handling servlet.By default, sr

Re: [Wicket-user] DropDownChoice and ajax fill form TextFields

2006-07-25 Thread Eelco Hillenius
Simple == good. Eelco On 7/25/06, JK <[EMAIL PROTECTED]> wrote: > Thak you very much! My code: > > drop.add(new AjaxEventBehavior("onchange") { > public void onEvent(AjaxRequestTarget target) { > // Update form model > target.addComponent(form); > } > } ); > > 2006/7/25, Eelco

Re: [Wicket-user] DropDownChoice and ajax fill form TextFields

2006-07-25 Thread JK
Thak you very much! My code: drop.add(new AjaxEventBehavior("onchange") { public void onEvent(AjaxRequestTarget target) { // Update form model target.addComponent(form); } } ); 2006/7/25, Eelco Hillenius <[EMAIL PROTECTED]>: > You could add the form to the AjaxRequestTarget, so

Re: [Wicket-user] Please explain the usage of Border in the library example

2006-07-25 Thread Johan Compagner
25 ofcourse in your case.On 7/25/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: patches to javadoc are always welcome :) or a bug report so we wont forget. for core committers there are only so many hours in the day. - Take Surve

Re: [Wicket-user] DropDownChoice and ajax fill form TextFields

2006-07-25 Thread Eelco Hillenius
You could add the form to the AjaxRequestTarget, so that the whole form is re-displayed. Of course, make sure you updated the relevant models of the text fields. Another approach is to update those fields with a javascript function you execute with your ajax response. See AjaxRequestTarget#appendJa

Re: [Wicket-user] Form submission and model updating

2006-07-25 Thread Eelco Hillenius
You can get that temporary data with FormComponent#getInput or #getInputAsArray. That data will be used to render the form components again. But if you *really* want to update some of you model values in-between, you have to customize your form or some of your components. E.g. create a custom form

Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-25 Thread Johan Compagner
use a attributemodifier for that.so something like: link.add(new AttributeModifier("class","yourclass"))On 7/25/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:hi,I am now struggling with a new problem : I need to programmatically set the class attribute of a html link ( element). I tried to ext

Re: [Wicket-user] Form submission and model updating

2006-07-25 Thread Johan Compagner
All user input data is kept in the form/formcomponent. It is just not pushed to the client.So one mistake will not result in loosing all the data.Only if you reset the model object from the other side the entered data will be thrown away and the new model data from the backend is used.johanOn 7/25/

[Wicket-user] DropDownChoice and ajax fill form TextFields

2006-07-25 Thread JK
Hi, This might be stupid question but I can't find out how to do it... A form has DropDownChoice and many TextFields. When choice is made, rest of the form is filled with ajax depending the choice. Should I call some update method or what? (Wicket 1.2.1) -

[Wicket-user] Form submission and model updating

2006-07-25 Thread Tymur Porkuyan
Is it possible to update models even if form validation failed? I have a large form and I don't want user to lose all entered data just because of one mistake. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceF

Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-25 Thread Paolo Di Tommaso
With getSession().touch(page); it works!Thank you!- PaoloOn 7/25/06, Johan Compagner <[EMAIL PROTECTED] > wrote:ahhafter the url for do this:session.touch(page); We should hide this for you somehow..I do hope that the page is not stateless anymore at that timeCan you debug that a bit.. So after the

Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-25 Thread Johan Compagner
ahhafter the url for do this:session.touch(page);We should hide this for you somehow..I do hope that the page is not stateless anymore at that timeCan you debug that a bit.. So after the urlFor() output the page.isStateless()johanOn 7/25/06, Paolo Di Tommaso < [EMAIL PROTECTED]> wrote:I'm using a

Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-25 Thread Matej Knopp
Johan Compagner wrote: > need to see some more code or a test case. > > On 7/25/06, *Paolo Di Tommaso* <[EMAIL PROTECTED] > > wrote: > > I'm trying to redirect after an ajax request doing something like that: > > String url = (String) RequestCycle.get().urlFor(

Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-25 Thread Paolo Di Tommaso
I'm using an AjaxFormSubmitBehavior to submit form data. I would like to use ajax behaviour because if there are validation error I can notify user for errors without reloading page again. If validation is OK I need to move to the next page in the application flow so in the onSubmit method for Ajax

Re: [Wicket-user] Wicket 1.2.1 available

2006-07-25 Thread Gwyn Evans
On 25/07/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > wiki is too slow for me to be usable right now, Out of interest, what sort of delays were you seeing & was this a one-off or does it normally seem too slow? /Gwyn - Tak

Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-25 Thread Johan Compagner
need to see some more code or a test case.On 7/25/06, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote: I'm trying to redirect after an ajax request doing something like that: String url = "" RequestCycle.get().urlFor(myPageInstance, IRedirectListener.INTERFACE );target.addJavascript( "window.location =

Re: [Wicket-user] Wicket 1.2.1 available

2006-07-25 Thread Johan Compagner
This is not really only for clustering..It is also for restarts of the server without loosing sessions. You just should have that setting on when developing and try to make everything serializeable because that will in the end help you in either case. johanOn 7/24/06, Igor Vaynberg <[EMAIL PROTECTE

Re: [Wicket-user] Is there function like Actions in swing?

2006-07-25 Thread Johan Compagner
Not really but you could make it. Wicket doesn't work with listeners (what the Action is) but in wicket you just subclass the component and implement the "action" method.So instead of subclassing Action and add the action to a component you do it directly on the component. This is fine except if yo

Re: [Wicket-user] Editing form(s) for table rows

2006-07-25 Thread Eelco Hillenius
I would just go a simpler route and have one form for all components. When you use ajax, only the model of the component that triggered the ajax call is updated and the others are left like they were. Besides being simpler and more efficient memory wise, it's also easier to convert back to non-ajax

Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-25 Thread Pierre-Yves Saumont
Thanks to Justin, Franck, Eelco and Igor for the instant answers ! I am now going to spend a few hours on the next problem before bothering you again ! Pierre-Yves Eelco Hillenius a écrit : > link.add(new SimpleAttributeModifier("class", "myclass")); > > or use AttributeModifier if you need mo

Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-25 Thread Paolo Di Tommaso
I'm trying to redirect after an ajax request doing something like that: String url = "" RequestCycle.get().urlFor(myPageInstance, IRedirectListener.INTERFACE );target.addJavascript( "window.location = '" +url+ "'" ); But always get an "Page Expired" error page.Is it possible to redirect to a page i

[Wicket-user] Is there function like Actions in swing?

2006-07-25 Thread Rice Yeh
Hi,  Is there function like Actions in swing in the wicket?Regards,Rice - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & busines