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
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 =
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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 :
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
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
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:
20 matches
Mail list logo