Re: Session timeout - AJAX-enabled controls

2009-11-20 Thread David Matoušek
It was happening to me on Wicket examples page too. Especially on AjaxFallbackDataTable Example. ?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.AjaxDataTablePage I just checked it but now it seems to be working correctly. What version of Wicket are examples on url:

Re: CompoundPropertyModel

2009-11-20 Thread Николай Кучумов
Hello, Alex, Jeremy and others. That's weird. Really weird. You know what? Seems that my browser was causing the error... If i open my site via a bookmark, it outputs the error. However if i open a new tab and type in the URL manually, the error doesn't appear. So, an advice to all of the Firefox

Re: JQuery slider implementation broken in 1.4?

2009-11-20 Thread Martin Grigorov
for some reason the Javascript doesn't work. the initializers do work, the handles are set at the specified positions but 'change' and/or 'slide' events never come ... On Fri, 2009-11-20 at 08:52 +0100, pieter claassen wrote: Has anybody recently made the JQuery slider implementation or or even

problems with WicketTester and Scala

2009-11-20 Thread Haim Ashkenazi
Hi I'm playing around with wicket/scala and I found some odd behavior with WicketTester. The code is here: http://github.com/babysnakes/comnshours revision: 6196415aa5910d984dd582e7a6aa28017e6f0dbc The specific test is here:

PageExpiredException: Cannot find the rendered page in session

2009-11-20 Thread Wayne Pope
Hi, we're seeing a few of these in production of late. I however cannot reproduce them locally at the moment. We're using wicket rc7. Any ideas? 2009-11-20 13:43:09,170 ERROR - hub.app.wicket.app.HubWebRequestCycle.onRuntimeException(HubWebRequestCycle.java:72) 72 HubWebRequestCycle -

Flash and Wicket crossdomain.xml

2009-11-20 Thread Mathias Nilsson
Hi, I have built a flash movie that get's data from a webservice. When trying to access it in my webapp it complains. I read that I need to add a crossdomain.xml so that www.mysite.com/crossdomain.xml can be accessed. How can I make this file viewable this way using wicket?

Wicket datepicker disable weekdays

2009-11-20 Thread Muro Copenhagen
Hi, I tried to google for this feature i want without any luck :) I want to use the wicket datepicker but i want to disable fridays, saturdays and sundays. Does anyone have a clue on how to achieve this with the datepicker ? Thanks in advance... Best Regards Muro

Re: Wicket datepicker disable weekdays

2009-11-20 Thread Martin Makundi
Hi! Did you look at the api documentation: http://developer.yahoo.com/yui/calendar/ ** Martin 2009/11/20 Muro Copenhagen copenha...@gmail.com: Hi, I tried to google for this feature i want without any luck :) I want to use the wicket datepicker but i want to disable fridays, saturdays

Re: Wicket datepicker disable weekdays

2009-11-20 Thread Muro Copenhagen
Hi Martin, Thanks actually i did...but could not find something... Maybe i have overlooked stuff ? Best Regards Muro On Fri, Nov 20, 2009 at 3:27 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Did you look at the api documentation:

Re: strange error

2009-11-20 Thread Douglas Ferguson
I am on goto meeting watching a user get this on the app in real time. I can recreate it when using XP. D/ On Nov 20, 2009, at 1:12 AM, Martin Makundi wrote: I get this quite often on our production site, how can you reproduce it? My guess is that it somehow relates to invalid session and

Re: request scoped variables

2009-11-20 Thread Douglas Ferguson
Yeah, but how to I guarantee that it will be detached and reloaded on every request. Also, the application is already using the session as the factory for this loadable detachable. Just out of curiosity, I cached it rather than always constructing a new one, and I started getting all sorts of

Re: Wicket datepicker disable weekdays

2009-11-20 Thread Martin Makundi
If it is'nt in the yui specs then you might have to hack it. ** Martin 2009/11/20 Muro Copenhagen copenha...@gmail.com: Hi Martin, Thanks actually i did...but could not find something... Maybe i have overlooked stuff ? Best Regards Muro On Fri, Nov 20, 2009 at 3:27 PM, Martin Makundi

Re: Wicket datepicker disable weekdays

2009-11-20 Thread Martin Makundi
Or contribute ;) 2009/11/20 Martin Makundi martin.maku...@koodaripalvelut.com: If it is'nt in the yui specs then you might have to hack it. ** Martin 2009/11/20 Muro Copenhagen copenha...@gmail.com: Hi Martin, Thanks actually i did...but could not find something... Maybe i have

Re: strange error

2009-11-20 Thread Martin Makundi
I can recreate it when using XP. Doing what recreates it? D/ On Nov 20, 2009, at 1:12 AM, Martin Makundi wrote: I get this quite often on our production site, how can you reproduce it?  My guess is that it somehow relates to invalid session and clicking stale links on the page. We get

Re: request scoped variables

2009-11-20 Thread Martin Makundi
Why should it be detached every request if it is lightweight? It seems you have a problem elsewhere? Maybe you have problems with object equalities etc? YOu can override MySession.detach to detach it. ** Martin 2009/11/20 Douglas Ferguson doug...@douglasferguson.us: Yeah, but how to I

Re: strange error

2009-11-20 Thread Douglas Ferguson
I load the app and hit an ajax link. It is a specific ajax link that fails not all.. On Nov 20, 2009, at 9:16 AM, Martin Makundi wrote: I can recreate it when using XP. Doing what recreates it? D/ On Nov 20, 2009, at 1:12 AM, Martin Makundi wrote: I get this quite often on our

Re: request scoped variables

2009-11-20 Thread Douglas Ferguson
Good idea, I will double check the equals method. The object is a hibernate pojo, which has to be detached because it can't be used after the hibernate session dies. The hibernate session dies on every request. D/ On Nov 20, 2009, at 9:19 AM, Martin Makundi wrote: Why should it be detached

Re: request scoped variables

2009-11-20 Thread Martin Makundi
The object is a hibernate pojo, which has to be detached because it can't be used after the hibernate session dies. The hibernate session dies on every request. Why not? I reuse the hibernate pojos throughout the whole user web session. ** Martin D/ On Nov 20, 2009, at 9:19 AM, Martin

Wicket YUI - Integration (Slider Question)

2009-11-20 Thread Corbin, James
Hello, I am using the framework off the wicket-stuff trunk that wraps yui to work with wicket. I must say it works pretty well. I did have a few questions on the slider that I hoped someone had experience with at solving, 1. I cannot seem to get the tick marks to show up on the

Re: Flash and Wicket crossdomain.xml

2009-11-20 Thread Jonas
Is the content of you crossdomain.xml 'static'? If so, I guess you can just put that file into your web app's context root. If you need the file content generated dynamically, I doubt generating it in wicket is the easiest way to do it. I think I would rather just use a simple servlet. On Fri,

Re: PageExpiredException: Cannot find the rendered page in session

2009-11-20 Thread Igor Vaynberg
its a regular page expired exception... -igor On Fri, Nov 20, 2009 at 4:49 AM, Wayne Pope waynemailingli...@googlemail.com wrote: Hi, we're seeing a few of these in production of late. I however cannot reproduce them locally at the moment. We're using wicket rc7. Any ideas? 2009-11-20

Re: PageExpiredException: Cannot find the rendered page in session

2009-11-20 Thread Wayne Pope
Ok I just want to clarify that if we get: [pagemap=null,componentPath=20,versionNumber=0] pagemap null thats not a problem? thanks On Fri, Nov 20, 2009 at 5:16 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: its a regular page expired exception... -igor On Fri, Nov 20, 2009 at 4:49 AM,

Corrupt URL for shared resource

2009-11-20 Thread Russell Morrisey
We are getting erroneous requests in our access log, where a URL for a shared resource, which is supposed to look like: com.mycompany.mywidgets.Widget/icon.gif ...instead looks like: com.mycompany.m564ywidgets.Widget/icon.gif These bad requests result in an application error like: ERROR

Re: PageExpiredException: Cannot find the rendered page in session

2009-11-20 Thread Igor Vaynberg
no, null is the name of the default pagemap -igor On Fri, Nov 20, 2009 at 8:30 AM, Wayne Pope waynemailingli...@googlemail.com wrote:  Ok I just want to clarify that if we get: [pagemap=null,componentPath=20,versionNumber=0] pagemap null thats not a problem? thanks On Fri, Nov 20, 2009

Re: PageExpiredException: Cannot find the rendered page in session

2009-11-20 Thread Ilja Pavkovic
Hi, Ok I just want to clarify that if we get: [pagemap=null,componentPath=20,versionNumber=0] pagemap null thats not a problem? pagemap with name null indicates the default pagemap. Everything is fine :) Best Regards, Ilja Pavkovic -- binaere bauten gmbh · tempelhofer ufer 1a ·

UploadWebRequest is actually a UploadWebRequest$MultipartRequest

2009-11-20 Thread Wayne Pope
Hello, we get the following warning in our logs: (UploadProgressBar.java:106) - UploadProgressBar will not work without an UploadWebRequest. See the javadoc for details. We do override in the application: @Override protected WebRequest newWebRequest(javax.servlet.http.HttpServletRequest

Re: Corrupt URL for shared resource

2009-11-20 Thread Igor Vaynberg
well. something is mangling it. are all the requests coming from the same ip? maybe someone is just messing with your server. -igor On Fri, Nov 20, 2009 at 8:41 AM, Russell Morrisey russell.morri...@missionse.com wrote: We are getting erroneous requests in our access log, where a URL for a

Re: PageExpiredException: Cannot find the rendered page in session

2009-11-20 Thread Wayne Pope
thanks IIja and Igor :-) On Fri, Nov 20, 2009 at 5:54 PM, Ilja Pavkovic ilja.pavko...@binaere-bauten.de wrote: Hi,  Ok I just want to clarify that if we get: [pagemap=null,componentPath=20,versionNumber=0] pagemap null thats not a problem? pagemap with name null indicates the default

Passing models to panels - Couldn't resolve model type of Model

2009-11-20 Thread Kogel, Jonck-van-der
Hi, I'm have a question about my application design and whether I should pass a model to a panel or an id and create a new LoadableDetachableModel in the panel. Here is a basic layout of my app: I have taken out the non-relevant parts for brevity. My domain model is basically as follows: Base

How can I disable a IFormValidator?

2009-11-20 Thread Wayne Pope
Hello, I have a form that has a AbstractFormValidator added to it. This does some validation on a couple of formcomponents. However in some situations on of the components is not visible and we get the warming: IFormValidator in form `formContainer:form` depends on a component that has been

Posting A Form To NonWicket

2009-11-20 Thread Balaji C
I've a wicket form with input elements. I would like to post this form to a non-wicket url. Is it possible to post this form from submit event of wicket button? I google and couldn't find any clear solution. Any help is appreciated. If any other alternative, please let me know. Thanks.

Re: Posting A Form To NonWicket

2009-11-20 Thread Edward Zarecor
Is there a requirement to process the data in any way before submitting to the remote application? Why wouldn't you just use an HTML form with the appropriate action pointing to the remote host? Wicket may not need to know about this form. Ed. On Fri, Nov 20, 2009 at 12:14 PM, Balaji C

RE: Posting A Form To NonWicket

2009-11-20 Thread Alex Rass
You could write something on the server end (or your wicket app) that would do it for you. Just use apache http commons or write your own post code. Easy stuff (open socket, couple commands, dump input, close socket). It can even get back to the user with error codes from the other server etc if

Re: UploadWebRequest is actually a UploadWebRequest$MultipartRequest

2009-11-20 Thread Igor Vaynberg
looks like a bug. -igor On Fri, Nov 20, 2009 at 8:55 AM, Wayne Pope waynemailingli...@googlemail.com wrote: Hello, we get the following warning in our logs: (UploadProgressBar.java:106) - UploadProgressBar will not work without an UploadWebRequest. See the javadoc for details. We do

Resolving image locations

2009-11-20 Thread Loritsch, Berin C.
I'm using the Wicket Image object, and I'm having a hard time ensuring that it resolves properly. I have a base class to set up the UI template for the site, including the logo image. I added a new page in a child package, and as a result the Image declared in the base class is resolving

Re: Passing models to panels - Couldn't resolve model type of Model

2009-11-20 Thread Igor Vaynberg
hrm, we should change that message to info rather then warn, warn is a little too strong. the problem is that textfield tries to resolve what type of object it is bound to (a string, an int, etc) but cant because the model object is null. you can silence the warning by explicitly setting a type

Re: How can I disable a IFormValidator?

2009-11-20 Thread Igor Vaynberg
i dont think currently there is a way, please add an rfe. as an alternative you can move your validation logic into form.onvalidate() where you can perform the appropriate checks. -igor On Fri, Nov 20, 2009 at 9:46 AM, Wayne Pope waynemailingli...@googlemail.com wrote: Hello, I have a form

RE: Resolving image locations

2009-11-20 Thread Loritsch, Berin C.
Never mind. The problem was using Image instead of ContextImage. I guess that's the danger of relying on type-ahead to suggest the right thing. -Original Message- From: Loritsch, Berin C. [mailto:berin.lorit...@gd-ais.com] Sent: Friday, November 20, 2009 1:23 PM To:

Complications with loadable detachable models

2009-11-20 Thread bht
Hi It appears that I am fighting against the framework that limits my choices when I start using LDMs (LoadableDetachableModel). Many examples in the framework documentation don't use LDMs. For simplicity, they assume that the domain object e.g. person is available to a model in an instance

Re: Complications with loadable detachable models

2009-11-20 Thread Igor Vaynberg
initialize them lazily just like the model would private transient Foo foo; private Foo getFoo() { if (foo==null) { foo=...; } return foo; } -igor On Fri, Nov 20, 2009 at 10:54 AM, b...@actrix.gen.nz wrote: Hi It appears that I am fighting against the framework that limits my choices when

Re: Wicket datepicker disable weekdays

2009-11-20 Thread Leo Erlandsson
This is certainly possible. You need to use YUI Calendar Renderers. They are documented in the YUI Cal2 API Doc. You can find an example of what you are trying to achieve here (thanks Google): http://www.stephaniebender.de/extras/yui/examples/calendar/render/1.html Basically, you'll want to do

Re: strange error

2009-11-20 Thread Douglas Ferguson
Does anybody have any idea of how to debug this? I.E. A component is visible in the screen but when clicked wicket barfs. D/ On Nov 20, 2009, at 9:28 AM, Douglas Ferguson wrote: I load the app and hit an ajax link. It is a specific ajax link that fails not all.. On Nov 20, 2009, at

Re: strange error

2009-11-20 Thread James Carman
I've seen this also, but it's not reliably reproducible. On Fri, Nov 20, 2009 at 3:30 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Does anybody have any idea of how to debug this? I.E. A component is visible in the screen but when clicked wicket barfs. D/ On Nov 20, 2009, at 9:28

Re: Posting A Form To NonWicket

2009-11-20 Thread Jeremy Thomerson
http://www.google.co.uk/search?q=nabble+wicket+posting+form+external+site http://old.nabble.com/post-a-form-to-external-website-td25506726.html -- Jeremy Thomerson http://www.wickettraining.com On Fri, Nov 20, 2009 at 11:14 AM, Balaji C cho...@gmail.com wrote: I've a wicket form with input

Generating standards compliant responses

2009-11-20 Thread Loritsch, Berin C.
I've set up in my SiteTemplate base class a call to set the content type for the response, however it is not making it to the browser. Any ideas? When I inspect the request headers and run the site validator against my page the server content type is set to text/html even though I've told it

Re: strange error

2009-11-20 Thread Martijn Dashorst
Probably you have a repeater serving out those ajax thingies. 1. Make sure you have a reuse items strategy set 2. Make sure you don't get 2 events right after one another: the link that is clicked and a seperate behavior you've attached: if one event updates the repeater, the component is not

3rd party js wicket

2009-11-20 Thread Douglas Ferguson
Hey, I added a third party js to my MainPage class, which is the base class for all my pages (header, footer, etc). This js has 2 sections. One goes to the top of the body tag and then the other at the bottom of the body tag. Now the requirement has come that I need to add the js to only 1

Re: Generating standards compliant responses

2009-11-20 Thread Igor Vaynberg
Try setting it in configureresponse() -igor On Friday, November 20, 2009, Loritsch, Berin C. berin.lorit...@gd-ais.com wrote: I've set up in my SiteTemplate base class a call to set the content type for the response, however it is not making it to the browser.  Any ideas?  When I inspect the

RE: Generating standards compliant responses

2009-11-20 Thread Loritsch, Berin C.
I just found this out. Thank you. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Friday, November 20, 2009 3:44 PM To: users@wicket.apache.org Subject: Re: Generating standards compliant responses Try setting it in configureresponse() -igor On Friday,

Re: strange error

2009-11-20 Thread Douglas Ferguson
On Nov 20, 2009, at 2:42 PM, Martijn Dashorst wrote: Probably you have a repeater serving out those ajax thingies. 1. Make sure you have a reuse items strategy set What is this? 2. Make sure you don't get 2 events right after one another: the link that is clicked and a seperate behavior

Re: request scoped variables

2009-11-20 Thread Douglas Ferguson
When the hibernate session is closed you will get a lazy initialization error if they proxy tries to load any lazy fields. On Nov 20, 2009, at 9:34 AM, Martin Makundi wrote: The object is a hibernate pojo, which has to be detached because it can't be used after the hibernate session dies.

Validating markup on non bookmarkable pages?

2009-11-20 Thread Loritsch, Berin C.
I'm using the TotalValidator plugin combined with a local basic validator installation. It's a great tool to keep me honest with the accessibility and standards compliant code. However certain pages that aren't linked with a BookmarkableLink can't be validated with the tool. I end up getting an

Re: 3rd party js wicket

2009-11-20 Thread Igor Vaynberg
wicket only supports dynamic injection into the head element which is where all the scripts should go. as far as your particular usecase you can simple put the script into wicket:container tags instead of div tags, wicket:container tags render into nothing. -igor On Fri, Nov 20, 2009 at 12:43

xmlhttp to another domain

2009-11-20 Thread Ed _
Hi, I have an application A that needs to make a call via the browser and not the backend to a go across an internal subdomain applicationB to get the status of a user and update the session of the main application A. Is there a way to add xmlhttpRequest from a panel on the page rendered by

Re: Transaction error dont reach onRuntimeException(Page page, RuntimeException e) method

2009-11-20 Thread Fernando Wermus
Igor, My exception is thrown at @Override protected void onEndRequest() { when I commit the transaction. I reviewed that is not wrapped with a WicketRuntimeException, actually I got a TransientObjectException. On Tue, Nov 10, 2009 at 5:16 PM, Igor Vaynberg

Re: 3rd party js wicket

2009-11-20 Thread Douglas Ferguson
Interesting.. Is wicket:container the same as using wicket:enclosure with an child? D/ On Nov 20, 2009, at 3:39 PM, Igor Vaynberg wrote: wicket only supports dynamic injection into the head element which is where all the scripts should go. as far as your particular usecase you can simple

Re: Transaction error dont reach onRuntimeException(Page page, RuntimeException e) method

2009-11-20 Thread Igor Vaynberg
hrm, throwing an exception from onendrequest may be too late for it to be picked up by onruntimeexception, you may have to do that yourself. -igor On Fri, Nov 20, 2009 at 4:45 PM, Fernando Wermus fernando.wer...@gmail.com wrote: I forgot to mention that I persist some entities in onfinish

[1.4.3] RequestUtils.toAbsolutePath() skips the last value

2009-11-20 Thread smallufo
The code is following : WebApplication : mountBookmarkablePage(/TestPage , TestPage.class); TestPage.html : url = span wicket:id=url/span TestPage.java : final String url = RequestUtils.toAbsolutePath(); add(new Label(url , Model.of(url))); If I open http://foobar:8080/quickstart/app/TestPage

Re: strange error

2009-11-20 Thread Douglas Ferguson
On Nov 20, 2009, at 2:47 PM, Douglas Ferguson wrote: On Nov 20, 2009, at 2:42 PM, Martijn Dashorst wrote: Probably you have a repeater serving out those ajax thingies. 1. Make sure you have a reuse items strategy set What is this? Ok. I investigated and we are sub classes DataView, so

Re: request scoped variables

2009-11-20 Thread Martin Makundi
When the hibernate session is closed you will get a lazy initialization error if they proxy tries to load any lazy fields. In my opinnion it's a design flaw if you lazy-load suff that you keep in session. Stop that. ** Martin On Nov 20, 2009, at 9:34 AM, Martin Makundi wrote: The object