Re: Extending Border

2014-05-14 Thread Francois Meillet
Have a look at 
http://apache-wicket.1842946.n4.nabble.com/Adding-border-in-border-td4660191.html#a4660195


François Meillet
Formation Wicket - Développement Wicket





Le 8 mai 2014 à 23:07, Nick Pratt nbpr...@gmail.com a écrit :

 Ive got a class 'A' that extends Border, with the following markup:
 
 wicket:border
 div
 h1span wicket:id=header/spanspan
 class=closeaX/a/span/h1
 wicket:body/wicket:body
 /div
 /wicket:border
 
 
 This all works fine.  Can I extend class A? If so what should the markup of
 class B look like (i.e. how do I get the child markup dropped in to the
 wicket:body section)?
 
 I'm currently hitting:
 
 B.html: Unable to find wicket:border tag in associated markup file for
 Border: [B [Component id = bPanel]] MarkupStream: [unknown]
 
 
 
 Regards
 
 Nick



Re: problem with message order delivered to wicket users list

2014-05-14 Thread Marco Springer

Aye, experiencing the same problem.

On 2014-05-14 06:21, Ernesto Reinaldo Barreiro wrote:

Hi,

I the last couple of days I have been experiencing problems with the 
order
of messages delivered to wicket users list: sometimes I receive an 
answer

and then a few minutes after the original message. Is someone else
experiencing this behavior?


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



PageParameters are not extracted correctly from an Encoded URL

2014-05-14 Thread NickMoutsios
Hi,

I have a shared resource, DynamicImageResource, to serve images from the
database given some parameters.
The URL looks like this (coming from tinymce where it encodes the
ampersand):
https://localhost/center/MerchantFile?merchant=Testingamp;image=logo2
Our application was running on wicket 1.4.22 and this was working like a
charm.
Recently, I have migrated to 6.14.0 and the resource fails to return the
image because the ampersand is not decoded. As a result, parameters are now
these:
merchant=Testing
amp;image=logo2 (key is not image anymore)

Any ideas how I could go about solving this? One solution would be to have
tinymce not encoding the URL, but is there any other way to have, for
example, the URL decoded prior to being handled by the ResourceMapper?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PageParameters-are-not-extracted-correctly-from-an-Encoded-URL-tp4665836.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket AJAX Google Chrome: Strange DOMException in Wicket.Ajax.Request.doGet

2014-05-14 Thread Tobias Gierke

Hi,

I'm stumped by an error (DOMException #19, A network error occurred) 
that seems to have started with Chrome version =31. In our Wicket 
1.5.11 application I have some Javascript that issues an synchronous 
AJAX call like this:


888888
var successHandler = null;
var failureHandler = null;
var channel = null; // use default channel
var call = new Wicket.Ajax.Call(url, successHandler, 
failureHandler, channel);

call.request.async = false;
call.call();
888888

The URL I'm passing is a callback URL returned from 
AbstractAjaxBehavior#getCallbackUrl(). The code works perfectly fine 
with Firefox, Opera and IE but fails at least in Chrome 31 and Chrome 
34.0.1847.137


Here are some (hopefully helpful) screenshots:

AJAX request: http://www.tiikoni.com/tis/view/?id=cd02752
AJAX response: http://www.tiikoni.com/tis/view/?id=525a2c2
Exception: http://www.tiikoni.com/tis/view/?id=4e5e42b
Wicket AJAX debug panel: http://www.tiikoni.com/tis/view/?id=ce33a01

What's really making me scratch my head is the fact that the Wicket 
debug panel clearly shows the server's response/seems to have parsed it 
correctly ... maybe the exception is not the actual root cause but 
triggered by some error in a JS callback function ?


Cheers,
Tobias

P.S. I'm a Javascript novice so please have mercy if I did/overlooked 
something stupid ;)http://www.tiikoni.com/tis/view/?id=cd02752


Wicket Can't Find Component Error

2014-05-14 Thread mashleyttu
Hello All,

Maybe a couple times a week we get a wicket error stating: Unable to find
component with id XZY in . Found with similar names:  when a user
submits one of our forms (we have lots, it has happened on different ones).
We have had a couple user tell us they were sent to our custom error page,
and had to re-complete the form. 

We are having a hard time re-producing this error. My thought is somehow our
page map is getting evicted, because I do not believe it has anything to do
with session timeout. We do not implement any MaxPageMap or custom eviction
strategies. We are using whatever the wicket default is. 

My other thought is on certain request we are getting serialization errors,
but I'm not seeing any in our tomcat logs.

Our site currently has anywhere from about 5 - 20 users on at any given
time. It is very small, and this only happens 2 or 3 times a week. My
concern is as we grown this will happen more often.

Any ideas on what could be occurring? This is an older wicket app built on
wicket 1.5.10. 

Thanks,
Matt

PS. We also get errors a few times a day telling us page number 0 or 1 or 4,
etc has expired. These always occur when there is no active session. My
guess is it could be a bot or something trying to access one of our sites
URLs. I'm less concerned about this error, but still curious.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Can-t-Find-Component-Error-tp4665810.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: problem with message order delivered to wicket users list

2014-05-14 Thread Pierre Goupil
I have lots of trouble, too and Martin told me that it was a problem for
all of the ASF mailing-lists. Hence, my message sent 4 times (!) here, for
which I do apologize.

https://blogs.apache.org/infra/entry/mail_outage

Regards,

Pierre




On Wed, May 14, 2014 at 6:21 AM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 Hi,

 I the last couple of days I have been experiencing problems with the order
 of messages delivered to wicket users list: sometimes I receive an answer
 and then a few minutes after the original message. Is someone else
 experiencing this behavior?

 --
 Regards - Ernesto Reinaldo Barreiro




-- 
La vie est source de joie, la mort est source de paix, seule la transition
est difficile.


AjaxRequestTarget weirdness

2014-05-14 Thread Pierre Goupil
Hello folks,

Sorry if this is double-posting, but I have the feeling that my previous
message didn't find its way.

I'm currently trying to roll my own on Wicket-Atmosphere: I've forked the
github repo and I'm trying to make the project unit testable.

I must admit that I'm not far from reaching my objectives, but there is a
thing that puzzles me.

Please, let me explain: I would like to have an AJAX-style response when JS
and / or components are added to the event bus, since it uses
AjaxRequestTarget. That would allow me to assert whatever I like using the
WicketTester API.

Here is a sample code:

--
if (this.application.createRequestCycle(request,
response).processRequestAndDetach())
{
System.out.println(response.toString());
this.broadcaster.broadcast(response.toString(), _resource);
}
--

Here, the System.out displays something correct like that:

--
?xml version=1.0 encoding=UTF-8?
ajax-response
 component id=id1 
 ![CDATA[div id=id1my label/div]]
 /component
 evaluate
  ![CDATA[(function(){ myJs; })();]]
  /evaluate
/ajax-response
--

BUT, when I then do this in my unit-test:
tester.getLastResponse().getDocument();

I only get:
--
?xml version=1.0 encoding=UTF-8?ajax-response/ajax-response
--

A clue, anyone, please?

If needed, I can publish the link to my github project. But I prefer asking
here first because it needs some cleaning and maybe the problem I'm facing
is just dumb.

Best regards,

Pierre

-- 
La vie est source de joie, la mort est source de paix, seule la transition
est difficile.


Re: Wicket FormPost via ProxyFilter

2014-05-14 Thread smöker
hi,

thanks a lot for your help - the absolute url works fine using UrlRenderer.

this unfortunately only brings me half the way, since the proxied requests
are still failing.

The absolute generated method action looks now like (with cookies enabled in
container): 

http://MYSERVER:MYPORT/MYCONTEXT/wicket/bookmarkable/com.example.Page?23-2.IFormSubmitListener-form

and works fine.

using the external proxy, again the constructor is called and not onSubmit
is called.


will get in contact with filter proxy provider and (hopefully) get back with
a solution ;-)


kind regards

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-FormPost-via-ProxyFilter-tp4665803p4665819.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org