Re: [Wicket-user] Getting WebResponse

2006-02-05 Thread Juergen Donnerstag
1.1 should already have getOriginalResponse() to solve the problem Juergen On 2/5/06, Dan Gould [EMAIL PROTECTED] wrote: I'm getting an exception in Wicket 1.1. I'd file a bug, but since so much of this has already been refactored, I'll just pass it along in case: During

[Wicket-user] ConcurrentModificationException during AJAX updates

2006-02-05 Thread Mark Derricutt
Hey all, I'm noticing a few ConcurrentModificationExceptions in my logs during an AJAX update (SelfUpdating behaviour) under wicket 1.2cvs-from-this-morning:16:55:56.499 WARN!! Exception for /app?path=1:feedbackinterface=IBehaviorListenerbehaviorId=0random=

Re: [Wicket-user] Re: button in the form and form data submission

2006-02-05 Thread Piotr Bzdyl
Hello, you can use submitlinks yes if you want to use links for the form submit or want to use links/buttons outside the form tag. What do you use buttons or links? and are the buttons inside the form tag? I wanted to have several input type=submit/ buttons. I found that I should use Button

Re: [Wicket-user] NoClassDefFound error from TextField... but only on ONE machine!

2006-02-05 Thread Johan Compagner
It is not the textfield that causes the problemIt is the model you give it. And then more likely the object that you give into the model.What type of object are you trying to get from the modelobject?Because it seems that ognl tries to get a property from youre model object and that is causing a

Re: [Wicket-user] Getting WebResponse

2006-02-05 Thread Johan Compagner
that still doesn't really fix the header problems when we redirect to a page.The only real fix is to upgrade to 1.2..johanOn 2/5/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: 1.1 should already have getOriginalResponse() to solve the problemJuergenOn 2/5/06, Dan Gould [EMAIL PROTECTED] wrote:

Re: [Wicket-user] ConcurrentModificationException during AJAX updates

2006-02-05 Thread Eelco Hillenius
Looks like a synchronization issue. Not a known one, but that's part of code that has been quite recently refactored. Could you tell us a bit more about the ajax thingy you're using? Eelco On 2/5/06, Mark Derricutt [EMAIL PROTECTED] wrote: Hey all, I'm noticing a few

[Wicket-user] Path to resources

2006-02-05 Thread Piotr Bzdyl
Hello, I would like to create component for HTML editor on the web page using HTMLArea javascript library. It requires to specify relative or absolute location of its resources on the web site. How should I get this path using wicket? I put the library's resources in the package

Re: [Wicket-user] ConcurrentModificationException during AJAX updates

2006-02-05 Thread Johan Compagner
Is there more then one request happening at the same time?Can you check that with a system.out somewhere or a breakpoint?It looks like 2 or more request at the same time modifying the dirty objects List (pages and pagemaps) We could fix this by making the List a threadlocal or syncing on it

Re: [Wicket-user] ConcurrentModificationException during AJAX updates

2006-02-05 Thread Mark Derricutt
On 2/6/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Looks like a synchronization issue. Not a known one, but that's partof code that has been quite recently refactored. Could you tell us abit more about the ajax thingy you're using?I'm adding the component like: Label totalTime = new

Re: [Wicket-user] Getting WebResponse

2006-02-05 Thread Dan Gould
1.1 should already have getOriginalResponse() to solve the problem Juergen Thanks Juergen. Unfortunately, I don't really want to get the original response. I want to get the actual response (after the redirect), either as a WebResponse or something else where I could call

Re: [Wicket-user] Getting WebResponse

2006-02-05 Thread Johan Compagner
upgrade to 1.2 or don't use Redirect_To_Buffer strategie. But the REDIRECT_TO_RENDER or don't use redirect at all.On 2/5/06, Dan Gould [EMAIL PROTECTED] wrote: 1.1 should already have getOriginalResponse() to solve the problem JuergenThanks Juergen.Unfortunately, I don't really want to get the

Re: [Wicket-user] Path to resources

2006-02-05 Thread Johan Compagner
Those resources are generated by PackageResources (or other dynamic resources) that are added to the SharedResources map.This can be done at startup from youre application see wicket.extensions.Initializer and DatePickerComponentInitializer().init(application); this is the

Re: [Wicket-user] Path to resources

2006-02-05 Thread Piotr Bzdyl
Hi, Those resources are generated by PackageResources (or other dynamic resources) that are added to the SharedResources map. This can be done at startup from youre application see wicket.extensions.Initializer and DatePickerComponentInitializer().init(application); this is the calendar.js:

Re: [Wicket-user] Path to resources

2006-02-05 Thread Johan Compagner
That path is youre webapplication context and youre wicket servlet nameThat is constant for youre application. You don't generate that at all you only make/registerResources to the SharedResources.So every application will have this resource with this path:

Re: [Wicket-user] Referencing looped DOM elements?

2006-02-05 Thread Igor Vaynberg
the trick would be to factor out the id into a parameter of the function. i assume the _javascript_ function is the same for all rows?so you can add an css id attr to each listitem using an attribute modifier. a good id to use is the getPageRelativePath() of if you are using HEAD try

Re: [Wicket-user] Page expiration

2006-02-05 Thread Igor Vaynberg
the ajax stuff is still a work in progress, and the expiration issue is something that remains to be solved. the problem is that each request creates a new version of the page and so if you use any non-ajax link it will calse the page expired page since the link points to an older version of the

Re: [Wicket-user] ConcurrentModificationException during AJAX updates

2006-02-05 Thread Igor Vaynberg
ajax request target already returns session as its lock, why is this still happening?-IgorOn 2/5/06, Johan Compagner [EMAIL PROTECTED] wrote:Is there more then one request happening at the same time? Can you check that with a system.out somewhere or a breakpoint?It looks like 2 or more request at

Re: [Wicket-user] Getting WebResponse

2006-02-05 Thread Dan Gould
Thank you both, Johan and Juergen. I haven't had a chance to try 1.2 yet, but I'm glad to hear that I can do what I want with it. I'll hopefully be able to try the snapshot soon. --- This SF.net email is sponsored by: Splunk Inc. Do you

[Wicket-user] Forcing immediate Page redirection

2006-02-05 Thread Gili
Hi, Is it possible to tell Wicket to redirect the HTTP request prior to the rendering phase of the current page? Last time I checked, setRedirectPage() only issues a redirect command after rendering. I have a BookmarkablePage which lazily-generates database entries if it needs them. Igor

Re: [Wicket-user] ConcurrentModificationException during AJAX updates

2006-02-05 Thread Eelco Hillenius
I'm not sure whether that is the best solution. I think we should first find out why our session synchronization isn't working in this case. Eelco On 2/5/06, Johan Compagner [EMAIL PROTECTED] wrote: Is there more then one request happening at the same time? Can you check that with a

Re: Fwd: [Wicket-user] Contributing to a header in 1.2

2006-02-05 Thread David Leangen
Finally found the problem!! In my page, my css delaration was embedded in a wicket:id like so: wicket:id link wicket:id=css rel=Stylesheet type=text/css href=styles/main.css/ /wicket:id In 1.1, this was tolerated, but in 1.2, it creates an exception. The problem was that the exception

Re: Fwd: [Wicket-user] Contributing to a header in 1.2

2006-02-05 Thread Juergen Donnerstag
Without wicket:id Wicket automatically creates a link for you provided the css file is in the same directory. Though you should get a component was not rendered exception if you added a component like you did. With wicket:id you MUST add a proper Component with the same id. Juergen On 2/6/06,

Re: Fwd: [Wicket-user] Contributing to a header in 1.2

2006-02-05 Thread David Leangen
Sorry, I misquoted my own code... I meant to say wicket:head and not wicket:id. Sorry! So, to repeat what I was trying to say: In my page, my css delaration was embedded in a wicket:head like so: html head wicket:head link wicket:id=css rel=Stylesheet type=text/css

[Wicket-user] onRuntimeException() in 1.2

2006-02-05 Thread Gili
Hi, How does one provide a custom implementation for onRuntimeException() in Wicket 1.2? The javadoc for RequestCycle seems to indicate I shouldn't be subclassing it, yet onRuntimeException() is defined there. It would be nice if I could do:

Re: [Wicket-user] onRuntimeException() in 1.2

2006-02-05 Thread Gili
Sorry, just found Application.newRequestCycleProcessor(). Thanks anyway, Gili Gili wrote: Hi, How does one provide a custom implementation for onRuntimeException() in Wicket 1.2? The javadoc for RequestCycle seems to indicate I shouldn't be subclassing it, yet

[Wicket-user] AJAX broken in HEAD?

2006-02-05 Thread Mark Derricutt
Hey all, once more I've broken AJAX - or more, the ever moving HEAD did something and I just happened to be insane and use it ;pAnyway, none of my AjaxSelfUpdatingTimerBehavior's seem to be updating anymore, I'm not seeing the model's being called for updates at all. Also, I've just added

Re: [Wicket-user] onRuntimeException() in 1.2

2006-02-05 Thread Eelco Hillenius
You probably want to checkout CompoundRequestCycleProcessor and IExceptionResponseStrategy first though. Eelco On 2/5/06, Gili [EMAIL PROTECTED] wrote: Sorry, just found Application.newRequestCycleProcessor(). Thanks anyway, Gili Gili wrote: Hi, How does one provide a

Re: [Wicket-user] AJAX broken in HEAD?

2006-02-05 Thread Igor Vaynberg
everything is working here fine. try wicket-examples and see if ajax is broken there. i just tested and it works.-IgorOn 2/5/06, Mark Derricutt [EMAIL PROTECTED] wrote:Hey all, once more I've broken AJAX - or more, the ever moving HEAD did something and I just happened to be insane and use it ;p

Re: [Wicket-user] NoClassDefFound error from TextField... but only on ONE machine!

2006-02-05 Thread David Leangen
As I'd hoped, by upgrading to 1.2, the problem just simply disappeared. Yay! So, it will forever remain a mystery. Maybe something to do with the way OGNL loads classes or something... who knows. Anyway, thanks for all the suggestions! On Sun, 2006-02-05 at 14:30 +0100, Johan Compagner