Re: How to set a form's target to an iframe?

2009-06-07 Thread Jeremy2009
I checkd the http requests and it seems that there are 2 coming from the browser to Wicket for the iframe. This results in the iframe's oncomponenttagbody() being called twice. Any idea why there are 2 requests being generated?? Many thanks J Jeremy2009 wrote: Thanks for letting me know

Re: [Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-07 Thread smallufo
2009/6/7 Johan Compagner jcompag...@gmail.com can you debug and see what this returns for both situations? ((WebRequest)RequestCycle.*get*().getRequest()).getHttpServletRequest() .getRequestURL().toString() ok , here is my test : String a1 =

Re: Ajax URL encoding and

2009-06-07 Thread Johan Compagner
ahh you write javascript yourself. use: use JavascriptUtils.writeJavascript(*final* Response response, *final*CharSequence text, String id) for that That will make sure that the javascript is property escaped between CDATA On Sun, Jun 7, 2009 at 01:51, Stefan Lindner lind...@visionet.de

Re: [Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-07 Thread Johan Compagner
a1 = http://foo.bar:8080/app/CurrentPage s1 = http://foo.bar:8080/app/CurrentPage a2 = http://foo.bar:8080/app/ s2 = http://CurrentPage/ http://currentpage/ a1 , s1 are correct , a2 , s2 are totally wrong. a1 , s1 en a2 are all correct. but why s2 is a result when a2 is the input

RE: Ajax URL encoding and

2009-06-07 Thread Stefan Lindner
Ah! Thank you! That's it! -Ursprüngliche Nachricht- Von: Johan Compagner [mailto:jcompag...@gmail.com] Gesendet: Sonntag, 7. Juni 2009 12:27 An: users@wicket.apache.org Betreff: Re: Ajax URL encoding and ahh you write javascript yourself. use: use

nested forms and locale

2009-06-07 Thread Morten Steffensen
Hi, I am having problems using nested forms and changing locale. I have 2 links for changing the locale. It works until i press the AjaxButton in the inner form. Hereafter the txtField's getObject is not called anymore. What am i doing wrong ? Any suggestions ? public class ProblemPage

Ajax Buttons and Form?

2009-06-07 Thread Luther Baker
I'm saving a 'Post', like a blog post, and JPA's merge function doesn't update the object in place but rather, returns an object reflecting the new database fields (like id if it were set). In my application, I'd like to manage insert / update by setting this new 'Post' as the model for my form.

Re: nested forms and locale

2009-06-07 Thread Brill Pappin
i may be wrong about this because my wicket ajax is still a bit shaky, but try adding the components you wanted updated to the links target. - Brill On 7-Jun-09, at 10:20 AM, Morten Steffensen wrote: Hi, I am having problems using nested forms and changing locale. I have 2 links for

Re: nested forms and locale

2009-06-07 Thread Morten Steffensen
Well - when I click one of the links for changing the locale, after i hit the Press me button, the onClick method gets called, and the setLocale gets called. Then i thought that the setLocale would mark the session as dirty and in some magic way the models getObject gets called on the items of

Re: Copy Form Fields

2009-06-07 Thread hill180
This might not be the best solutions (new to wicket/java) but I posted if it might help: This way, I was able to copy the fields and save correctly to my Hibernate POJO. package com.myapp.wicket; import org.apache.wicket.behavior.AttributeAppender; import

Custom HeaderContributor

2009-06-07 Thread Stefan Lindner
Is it possible to have a custom HeaderContributor? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Custom HeaderContributor

2009-06-07 Thread Martin Funk
Am 07.06.2009 um 18:43 schrieb Stefan Lindner: Is it possible to have a custom HeaderContributor? err... could you elaborate a little more? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: [Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-07 Thread Johan Compagner
No it is just the request uri and the request uri of the ajax call will always be http://foo.bar:8080/app/?xx=y so that is correct. And looking at the code you also can see that that last piece CurrentPage is stripped out (as it should) in the make to absolute path code Just Debug it

Re: [Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-07 Thread Martin Makundi
The problem is that when you have a bookmarkable page with parameters, the url looks like this: http://www.mydomain.com/myapp/MyPage/param1/value1/param2/value2 The parameters are not part of the url path, but the toAbsolutePath code assumes them to be. It would be better if it would adapt to

Component lifecycle question

2009-06-07 Thread Martin Funk
Hi list, in short: Why is there no Component#onRemove() method? I see that there is Component#onDetach() which is called by Component#remove(), so it might be a good candidate. But onDetach is also called at the end of every RequestCycle. I have things that I want to get done when a

Re: [Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-07 Thread Johan Compagner
that it doesnt give you the hostname/port is ofcourse a bug print out these variables: getRequestCycle().urlFor(CurrentPage.class ,pps).toString() I think that one time it will give you just the url and one time ../.././CurrentPage i guess that is your problem but you need to debug a bit

Re: [Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-07 Thread Johan Compagner
please attach a failing test case On Sun, Jun 7, 2009 at 21:16, smallufo small...@funp.com wrote: 2009/6/8 Johan Compagner jcompag...@gmail.com that it doesnt give you the hostname/port is ofcourse a bug I've submitted this bug to JIRA :

Re: Custom HeaderContributor

2009-06-07 Thread Jeremy Thomerson
HeaderContributor is rather an implementation of IHeaderContributor - of which of course you could create your own implementations. What you really seem to be seeking is to make each ajax behavior use a different header contributor. For that, you would need to override the way which each ajax

Re: wicket:link - wicket:context

2009-06-07 Thread Jeremy Thomerson
See org.apache.wicket.markup.resolver.AutoLinkResolver -- Jeremy Thomerson http://www.wickettraining.com On Sat, Jun 6, 2009 at 5:00 PM, Luther Baker lutherba...@gmail.com wrote: I'd like to consider writing a component similar to wicket:link. I don't think wicket:link actually does the

AW: Custom HeaderContributor

2009-06-07 Thread Stefan Lindner
Hello Jeremy, you wrote HeaderContributor is rather an implementation of IHeaderContributor - of which of course you could create your own implementations Great to read, but how can I do this? -Ursprüngliche Nachricht- Von: Jeremy Thomerson [mailto:jer...@wickettraining.com] Gesendet: