Session still valid if user returns?

2008-09-05 Thread Liz Huber
Once again, i have I question, to which I found no answer: If the user leaves my wicket application and navigates to another website and returns to my wicket application within a few minutes. Is his previous session still valid?

Re: Session still valid if user returns?

2008-09-05 Thread Matej Knopp
Yes, if a) the session hasn't expired yet (there's inactivity period after which session expires, usually set to 30 minutes) b) user hasn't closed the browser - the session cookie is still valid or c) session id is encoded in URL. -Matej On Fri, Sep 5, 2008 at 9:47 AM, Liz Huber [EMAIL

Re: Assert that all models are detached at the end of the request?

2008-09-05 Thread Kaspar Fischer
For the sake of completeness, here is the solution I am currently using. It uses, as suggested by Martijn, a custom request cycle and a modified version of SerializableChecker. You have to install the custom request cycle in your application using @Override public RequestCycle

Re: [Follow up] Ajax link doesn't call event

2008-09-05 Thread only4you
Lack of super section cause that kind of a problem. Look at example: AjaxEditableLabel label = new AjaxEditableLabel(componentId, new PropertyModel(dtoUser, loginName)){ @Override protected void onEdit(AjaxRequestTarget

Re: Problem with multiple browser windows and locked page maps

2008-09-05 Thread Jan Stette
Hi Johan, I've seen the code in WebPage.onNewBrowserWindow(). The thing I'm having a problem figuring out is where to hook in this code. I can't see that I can do this in the constructor of a page as you suggest. In the constructor the page hasn't been fully constructed yet so I can't see that

Re: Add a javascript window to a Link when text input not saved

2008-09-05 Thread Martin Grigorov
Hi, you'll need some javascript to do this. your link (alink) will have to call some JS function which will check for changed inputs and if there is such input just call event.preventDefault() to prevent the request to the LinkPage.class On Wed, 2008-09-03 at 11:40 -0700, liza6218 wrote: Hi,

Re: wicket-like framework to complement wicket?

2008-09-05 Thread James Carman
Really? Would it be easy to implement this interface: http://domdrides.sourceforge.net/domdrides-core/apidocs/org/domdrides/repository/Repository.html If so, I'd be interested in the code as another submodule to domdrides (we've got hibernate, jpa, and iBATIS right now). On Fri, Sep 5, 2008 at

Problem sharing model between 2 panels

2008-09-05 Thread Neil McT
Here is the problem I have a Parent panel which swaps in and out a Display panel and an Update panel (these are basically 2 views, read-only and read-write, of a users details). To enable any changes by the Update panel to be seen by the Display panel, I have both panels pointing to the

Render html with Wickettester inside webapp locks page

2008-09-05 Thread danielroth
Hi, I have used WicketTester in 1.3.X to render mail in a Link call like: WicketTester tester = new WicketTester(new WicketTester.NonPageCachingDummyWebApplication()); tester.startPage(new Mail(someData)); String mail = tester.getServletResponse().getDocument(); sendmail(mail);

Re: wicket-like framework to complement wicket?

2008-09-05 Thread francisco treacy
first off, i admit i didn't know too much about domdrides. so it seems i was talking about the entity part. e.g. extend UuidEntity in your domain, that is orthogonal to gluw. concerning domdrides repository approach, as a quick idea i can imagine implementing gluw in an adapter pattern manner.

Re: wicket-like framework to complement wicket?

2008-09-05 Thread francisco treacy
fernando, good! but i personally restrain from using db4o as its license is quite restrictive. that's why i'm supporting neodatis, which is slowly gaining momentum. is your code available? how are you handling transactions? how do you get references to ObjectContainers in your wicket pages?

Making a Behavior that adds a script after a component?

2008-09-05 Thread Pointbreak
I have a couple of behaviors that add javascript to the header of a document, to change attributes or add event scripts to components (using jquery onready, but that's not the point). This all works fine. There is just one problem: when I use such components in an ajax request/response, it won't

trying to display exceptions in Tomcat

2008-09-05 Thread Dean Murray
Hi, I am new to Wicket and Tomcat and I am following a tutorial using Tomcat 6. I am doing a very simple Hello World application. I am trying to get Tomcat to display the exception message instead of the infamous The requested resource (/myApp/app) is not available Status 404 message when

Re: Making a Behavior that adds a script after a component?

2008-09-05 Thread Matej Knopp
if you use renderOnDomReadyJavascript method of IHeaderResponse it will be invoked after ajax request. -Matej On Fri, Sep 5, 2008 at 3:41 PM, Pointbreak [EMAIL PROTECTED] wrote: I have a couple of behaviors that add javascript to the header of a document, to change attributes or add event

Re: Making a Behavior that adds a script after a component?

2008-09-05 Thread Pointbreak
Perfect. Thanks! On Fri, 5 Sep 2008 15:53:12 +0200, Matej Knopp [EMAIL PROTECTED] said: if you use renderOnDomReadyJavascript method of IHeaderResponse it will be invoked after ajax request. -Matej On Fri, Sep 5, 2008 at 3:41 PM, Pointbreak [EMAIL PROTECTED] wrote: I have a couple of

Re: trying to display exceptions in Tomcat

2008-09-05 Thread Martin Funk
Dean Murray wrote: Hi, I am new to Wicket and Tomcat and I am following a tutorial using Tomcat 6. I am doing a very simple Hello World application. I am trying to get Tomcat to display the exception message instead of the infamous The requested resource (/myApp/app) is not available

Gmap2 not visible

2008-09-05 Thread normanr
Hi there, i'm having a problem with wicket-contrib-gmap2. I compiled the examples and everything worked fine. Then i wrote my own app just for testing but when i'm looking at the page i only see the 'powered by Google' Logo and the Copyright Notice but no map. Here's my Code: final GMap2 map =

Re: Gmap2 not visible

2008-09-05 Thread francisco treacy
try firing your app in DEPLOYMENT mode francisco On Fri, Sep 5, 2008 at 6:01 PM, normanr [EMAIL PROTECTED] wrote: Hi there, i'm having a problem with wicket-contrib-gmap2. I compiled the examples and everything worked fine. Then i wrote my own app just for testing but when i'm looking at

AjaxFormComponentUpdatingBehavior(onchange) does not work when added to a FormComponentPanel

2008-09-05 Thread Lutz Müller
Hello all, I created a Component called TimePanel which is a FormComponentPanel containing two DropDownChoices. As you may have guessed from the components name, its used to input time. It is intended to be used with Jodas LocaTime as a ModelObject. One DDC is for hours, the other one for

Re: Problem sharing model between 2 panels

2008-09-05 Thread Igor Vaynberg
the model that the display panel should be a loadable detachable model so it loads data from the database on render the model that the update panel uses should load the changes, edit them, and save them to the database. that way everything is in sync. when the form submits it clones the model

Re: Render html with Wickettester inside webapp locks page

2008-09-05 Thread Igor Vaynberg
imho this is a misuse. but to try and get it to work you might want to run wickettester in a separate thread. i think it might hang because the tester will mess with the threadlocals. -igor On Fri, Sep 5, 2008 at 6:15 AM, danielroth [EMAIL PROTECTED] wrote: Hi, I have used WicketTester in

Re: Assert that all models are detached at the end of the request?

2008-09-05 Thread James Carman
Could you perhaps use an aspect for this? On Thu, Aug 28, 2008 at 4:57 PM, Kaspar Fischer [EMAIL PROTECTED] wrote: Is there an easy way to assert that all models are detached at the end of the request? It does not look so easy to check this as models do not have common base class where one

How to trigger Ajax event from client side javascript?

2008-09-05 Thread liza6218
Hi, I'm trying to trigger OnChangeAjaxBehavior on an HiddenField (or TextField) change from client side javascript. Here is the code in html: function change(){ var change = document.forms[0].changed.value; if(change != true) {

Re: Gmap2 not visible

2008-09-05 Thread normanr
Yeah! Thanks i've read something like that, but my mind plays so many tricks on me at the moment :D Thanks so much! francisco treacy-2 wrote: try firing your app in DEPLOYMENT mode francisco On Fri, Sep 5, 2008 at 6:01 PM, normanr [EMAIL PROTECTED] wrote: Hi there, i'm having a

Re: DateField throwing runtime error in IE only

2008-09-05 Thread nanotech
Hi, Did you or anyone found the solution to this? I am having the same problem in IE7 on a ModalWindow (implemented as Panel) with a DateTextField and a DatePicker attached to it. I noticed that it works for the first time when there is no date in the date field...but after date is selected and

Re: wicket-like framework to complement wicket?

2008-09-05 Thread Sam Stainsby
On Fri, 05 Sep 2008 15:21:34 +0200, francisco treacy wrote: good! but i personally restrain from using db4o as its license is quite restrictive. that's why i'm supporting neodatis, which is slowly gaining momentum. Isn't DB4O released under GPL, as well as a commercial license?

Re: wicket-like framework to complement wicket?

2008-09-05 Thread Igor Vaynberg
GPL is very restrictive :) -igor On Fri, Sep 5, 2008 at 4:35 PM, Sam Stainsby [EMAIL PROTECTED] wrote: On Fri, 05 Sep 2008 15:21:34 +0200, francisco treacy wrote: good! but i personally restrain from using db4o as its license is quite restrictive. that's why i'm supporting neodatis, which is