Wicket cookie timeout example?

2012-03-31 Thread kshitiz
Hi, Is there any way to set cookie expiration time in Wicket? I am not able to find any example related to that...like we can set session expiration time in web.xml... -- View this message in context:

Re: Version Pages by default

2012-03-31 Thread Martin Grigorov
On Sat, Mar 31, 2012 at 12:29 AM, sudeivas sureshkumar@gmail.com wrote: Thanks for the information. I am currently using wicket 1.5.3. I hope this applies to wicket-1.5.3 as well. Yes But in my case, everything works fine. But when our session management fails, then we run into the

Re: Wicket cookie timeout example?

2012-03-31 Thread Martin Grigorov
Hi, See javax.servlet.http.Cookie#setMaxAge(). Also see org.apache.wicket.util.cookies.CookieUtils On Sat, Mar 31, 2012 at 8:25 AM, kshitiz k.agarw...@gmail.com wrote: Hi, Is there any way to set cookie expiration time in Wicket? I am not able to find any example related to that...like we

Re: Version Pages by default

2012-03-31 Thread vineet semwal
for creation ,is it done like this in wicket if(page is creatable){ create}else{ throw pageexpiredexception} else there can be a loop of pageexpiredexception just curious.. On Sat, Mar 31, 2012 at 12:53 PM, Martin Grigorov mgrigo...@apache.org wrote: On Sat, Mar 31, 2012 at 12:29 AM, sudeivas

Re: Version Pages by default

2012-03-31 Thread vineet semwal
oh sorry corrected a bit On Sat, Mar 31, 2012 at 1:50 PM, vineet semwal vineetsemwal1...@gmail.com wrote: for creation ,is it done like this in wicket if(page is creatable){ create}else{ /*throw pageexpiredexception*/ redirect to error page } else there can be a loop of pageexpiredexception

Re: Version Pages by default

2012-03-31 Thread sudeivas
I believe the best solution for me is to update my project to the latest version of wicket, but still I am worried about the following issue, https://issues.apache.org/jira/browse/WICKET-4454 since lot of our code have nested components. Any idea when 1.5.6 will be released? (so that I can wait

Re: Version Pages by default

2012-03-31 Thread Martin Grigorov
On Sat, Mar 31, 2012 at 6:22 PM, sudeivas sureshkumar@gmail.com wrote: I believe the best solution for me is to update my project to the latest version of wicket, but still I am worried about the following issue, https://issues.apache.org/jira/browse/WICKET-4454 since lot of our code

Re: Version Pages by default

2012-03-31 Thread sudeivas
The problem in our application is there is no fixed path except for the home page. From the home page the user will navigate to a different page after clicking on a ajax link (we use setResponsePage(new PageB(Object x)). In Page B we have lot of widgets getting populated dynamically based on

Re: 1.4.7 migration to 1.5.5 failing on AWS Elastic Beanstalk caused by Form class

2012-03-31 Thread roddo123
I haven't been able to have much success with visualvm in that environment. But a test I did do was create a wicket quickstart program, add appropriate jars, remove the wicket label and replace it with a wicket form. I then created a war, and deployed it to a new elastic beanstalk environment.

Re: 1.4.7 migration to 1.5.5 failing on AWS Elastic Beanstalk caused by Form class

2012-03-31 Thread Igor Vaynberg
we run a few 1.5.x apps in aws on tomcat and have not experienced a problem like this. its probably something weird in your environment. -igor On Sat, Mar 31, 2012 at 10:58 AM, roddo123 rfr...@rogers.com wrote: I haven't been able to have much success with visualvm in that environment. But a

Re: Version Pages by default

2012-03-31 Thread Martin Grigorov
You need to mount PageB with mountPage(/pageb, PageB.class) and use setResponsePage(PageB.class, parameters) 'parameters' should bring a key/value that will be used to create a proper objectX, e.g. a key which will be used to load an entity from DB. And there is no need to use AjaxLink if you

Re: Version Pages by default

2012-03-31 Thread sudeivas
This idea sounds good to me rather than just passing the whole JAVA object. But this raises an another question. Since I am just passing PageParameters to the page, in the beginning it will be a stateless page. But when I start using Ajax components inside the page, then it becomes a stateful page

isJavaEnabled does not work

2012-03-31 Thread Andre Schütz
Hello, I use wicket 1.5.4 or 1.5.5 with Opera and Firefox. I checked with the following lines: Application: - protected void init() { super.init(); getRequestCycleSettings().setGatherExtendedBrowserInfo(true); ... } MyWebPage: - WebSession session = WebSession.get();

Re: Wicketstuff - Openlayers: not working with wicket 1.5.5?

2012-03-31 Thread Michael Allan
final Layer layerOSMTilesAtHome = new OSM(Osmarender, OSMLayer.TilesAtHome); The Osmarender renderer became unavailable recently (not sure why). Comment out the lines that refer to it, and to layerOSMTilesAtHome. This has nothing to do with Wicket. -- Michael Allan Toronto, +1

Re: Version Pages by default

2012-03-31 Thread Martin Grigorov
On Sat, Mar 31, 2012 at 10:05 PM, sudeivas sureshkumar@gmail.com wrote: This idea sounds good to me rather than just passing the whole JAVA object. But this raises an another question. Since I am just passing PageParameters to the page, in the beginning it will be a stateless page. But when

Re: isJavaEnabled does not work

2012-03-31 Thread Martin Grigorov
The method says Java, not JavaScript. The page that extracts the extra info uses JavaScript to do that, so it is enabled. 2012/3/31 Andre Schütz wic...@faustas.de: Hello, I use wicket 1.5.4 or 1.5.5 with Opera and Firefox. I checked with the following lines: Application: -

HOWTO to only skip required validators

2012-03-31 Thread Emmanouil Batsis (Manos)
I have a usecase for saving a draft of a form before actually submitting it. I'm trying to figure out how to only skip the required validators using a save draft submit button in my form. Disabling default form processing sounds like using a bazooka to shoot down a fly considering my form

Re: HOWTO to only skip required validators

2012-03-31 Thread Jeff Schneller
Don't mark the fields as required and check the fields during the submit of the save and throw appropriate error message. The save as draft would not check the fields. It is not the most elegant solution but it works and is easy to implement. On Mar 31, 2012, at 10:18 PM, Emmanouil Batsis