Re: Render a Wicket page to a string for HTML email

2010-03-16 Thread rolandpeng
That works , thank you! But I have another question: when I use requestLogger.getLiveSessions() to get the live sessions,the number of sessions always increased after I call the render api. Is it possible to render page of html source in the same session(not create a new one)? Thank you! Scott

Re: InMethod Grid: resizing rowcount

2010-03-16 Thread Pointbreak
On Mon, 15 Mar 2010 16:06 +0100, Thierry Peng p...@glue.ch wrote: Pointbreak schrieb: On Mon, 15 Mar 2010 15:06 +0100, Thierry Peng p...@glue.ch wrote: Pointbreak schrieb: The public interface of the inmethod DataGrid/DefaultDataGrid does not seem to provide functionality to

Re: ClassLoader (Serialization?) error

2010-03-16 Thread Xavier López
It is indeed a weird case. I haven't ever found this error on my development environment, so it is hard to debug, only happens when the application is running deployed. I have never saw it live, only in the application's logs. I even found one of these errors that doesn't even finish the package

Re: Render a Wicket page to a string for HTML email

2010-03-16 Thread Xavier López
Here is another way I used when I was in need of this feature. This one simulates a request cycle. I don't know if you could adapt this to fit your needs (maybe doing the same, but with the real requestCycle instead) ?

Re: Render a Wicket page to a string for HTML email

2010-03-16 Thread Xavier López
Oops, forgot to mention that code has a pair of bugs in it. Here is the implementation i came up with : public class RenderHTMLUtils { public static String renderPage(Page page) { //get the servlet context WebApplication application = (WebApplication) WebApplication.get();

Re: Wicket in the industry

2010-03-16 Thread Vladimir K
Look the site has raw wicket urls :) ananthakumaran wrote: http://www.breakitdownblog.com/apache-wicket-powers-mobile-walmart-com/ On Mon, Mar 15, 2010 at 1:50 PM, Mynhardt Vlok mynhar...@gmail.com wrote: Hey community I'm testing / using wicket at the moment and have to convince my

Re: Render a Wicket page to a string for HTML email

2010-03-16 Thread rolandpeng
Thank you. I have tested your implementation class,but it still the same(live sessions increasing) while I call requestLogger.getLiveSessions(). Does anyone have other advice? Thank you so much in advance. Xavier López-2 wrote: Oops, forgot to mention that code has a pair of bugs in it. Here

Re: Render a Wicket page to a string for HTML email

2010-03-16 Thread rolandpeng
append some more information. After tracing the sessionId in live sessions. I found several id listed below: sessionId1=3F329131CF155AEAA4FB383AD854E510 (normal format,created by login) sessionId2=7cc3d77e_12766bcf8eb__7fff (strange,created by call render api)

Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-16 Thread Cemal Bayramoglu
David, You may find LegUp [1] useful. Also see the wiki, [2], the Wicket in Action site [3] and book [4] for useful information, and the PhoneBook sample [5]. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1]

Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?

2010-03-16 Thread Martin Asenov
Hello, everyone! In my webapp it looks like the session never expires, although I've set timeout of 30 seconds. But I have a digital clock in my right lower corner of the screen, that has an AjaxSelfUpdatingBehavior activated on it. Does it simulate user actions, that may cause session not to

Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?

2010-03-16 Thread nino martinez wael
yes. Ajax contacts the server. And on each request the timer are reset. So your ajax behavior are also functioning as a heartbeat or keepalive feature. 2010/3/16 Martin Asenov mase...@velti.com Hello, everyone! In my webapp it looks like the session never expires, although I've set timeout

Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?

2010-03-16 Thread Ernesto Reinaldo Barreiro
http://chillenious.wordpress.com/2007/06/19/how-to-create-a-text-area-with-a-heart-beat-with-wicket/ On Tue, Mar 16, 2010 at 2:27 PM, Martin Asenov mase...@velti.com wrote: Hello, everyone! In my webapp it looks like the session never expires, although I've set timeout of 30 seconds. But I

Invoke method after onPopulate

2010-03-16 Thread Xavier López
Hi, I have a ListView that build up a list of checks. These Checks have all to be enabled or disabled depending on a bean's property. That property is binded to a general checkbox (outside the listview). When the user changes the selection on the main checkbox, the ones in the listview

RE: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?

2010-03-16 Thread Martin Asenov
And why is that? Shouldn't Wicket session filter such events and not consider them user interaction with the system? Thank you both for the replies, and for the link also! Great help! Regards, Martin -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com]

Page Design Question

2010-03-16 Thread Steven Haines
First, thanks for your help yesterday with the form id question, setMarkupId() solved my problem. I have a generic page design question for you: how do you handle situations when your page form does not map easily to your domain objects? I can map 90% of the form's fields to my domain object,

Re: PagingNavigator - Image for navigation and onclick

2010-03-16 Thread josef46
josef46 wrote: i found myself the/a solution i commented in my public class XY extends WebApplication init-methode this line: //getMarkupSettings().setAutomaticLinking(true); hello, 1) i would like to replace the naviagtion chars ... by images, following this

Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?

2010-03-16 Thread Jonas
It's the servlet container that manages the HttpSessions. The servlet container cannot distinguish between 'real' user requests and ajax events - they're all plain http requests concerning a certain session. So, I don't think there's anything wicket could do about this... cheers, Jonas On Tue,

Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?

2010-03-16 Thread Ernesto Reinaldo Barreiro
Maybe you can disable your clock if the user haven´t performed any other activity for a while... That way session will expire... Ernesto On Tue, Mar 16, 2010 at 2:46 PM, Martin Asenov mase...@velti.com wrote: And why is that? Shouldn't Wicket session filter such events and not consider them

Re: Page Design Question

2010-03-16 Thread Vladimir K
Wiket provides PropertyModel class to map to values accessible via expressions. You always can write your own models. For instance you can employ Spring property expressions if you'd like map on collection projection. You can yield values using great Google collections framework. Steven Haines

RE: inmethod DataGrid problem in IE8

2010-03-16 Thread Russell Morrisey
Marsha wasn't able to reproduce the problem in the examples. She is working on it now. Thanks for the quick response! RUSSELL E. MORRISEY Programmer Analyst Professional Mission Solutions Engineering, LLC | russell.morri...@missionse.com | www.missionse.com -Original Message- From:

RE: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?

2010-03-16 Thread Martin Asenov
My idea is to disable the ajaxselfupdatingtimerbehavior if the user hasn't do anything for 15 mins for instance... and set session timeout to another 15, so that the session really lasts 30 mins. But I'm just wondering how to do that exactly... Any ideas? Best, Martin -Original

Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?

2010-03-16 Thread Michael O'Cleirigh
Hi Martin, AjaxSelfUpdatingTimerBehavior has an method called onPostProcessTarget(...); its is called each time the ajax request hits the server side. You will want to add your timeout detection here. You don't need to turn off the behavior. You can just invalidate the session directly

RE: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?

2010-03-16 Thread Martin Asenov
Thanks, Michael! But how could I know if the user hasn't done anything? Does it have something to do with the RequestCycle? Regards, Martin -Original Message- From: Michael O'Cleirigh [mailto:michael.ocleir...@rivulet.ca] Sent: Tuesday, March 16, 2010 5:45 PM To:

Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?

2010-03-16 Thread Daniel Peters
Martin Asenov wrote: In my webapp it looks like the session never expires, although I've set timeout of 30 seconds. But I have a digital clock in my right lower corner of the screen, that has an AjaxSelfUpdatingBehavior activated on it. Does it simulate user actions, that may cause session

wicket and shiro

2010-03-16 Thread Fernando Wermus
I am setting up shiro authentication and wicket, without any authorizationStrategy yet. I got the following message, org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static

Wicket.replaceOuterHtml problems in Gecko

2010-03-16 Thread Martin Grigorov
Hi, I'm experiencing a weird problem with Wicket Ajax in Firefox 3.6 (I didn't test in older versions of FF). Basically my code looks like this: final TextFieldString textField = new TextFieldString(text, new PropertyModelString(this, text)); textField.setOutputMarkupId(true);

Re: Invoke method after onPopulate

2010-03-16 Thread Igor Vaynberg
you can override onbeforerender, call super first, then iterate over the children and do what you need to. -igor On Tue, Mar 16, 2010 at 6:44 AM, Xavier López xavil...@gmail.com wrote: Hi, I have a ListView that build up a list of checks. These Checks have all to be enabled or disabled

Re: Wicket.replaceOuterHtml problems in Gecko

2010-03-16 Thread Igor Vaynberg
i have seen that happen when you have invalid markup. like a div inside a span, or a div directly inside a tr. check your page for stuff like that. -igor On Tue, Mar 16, 2010 at 10:02 AM, Martin Grigorov mcgreg...@e-card.bg wrote: Hi, I'm experiencing a weird problem with Wicket Ajax in

Re: wicket and shiro

2010-03-16 Thread Igor Vaynberg
i think there is more chance you will get this answered on the shiro lists since this is not wicket-related. -igor On Tue, Mar 16, 2010 at 9:55 AM, Fernando Wermus fernando.wer...@gmail.com wrote: I am setting up shiro authentication and wicket, without any authorizationStrategy yet. I got the

Wicketstuff versioning

2010-03-16 Thread Boris Goldowsky
The wicketstuff-core is calling itself version 1.4.2 in the HEAD of SVN. Shouldn't this be updated to 1.4.7 now to keep in sync with Wicket? Bng - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-16 Thread David Chang
James, thanks so much for the information. I cannot say enough thank-you for your help. All the best, David --- On Tue, 3/16/10, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: From: Cemal Bayramoglu jweekend_for...@cabouge.com Subject: Re: Recommend two good complete clean

Warning on the spammer sewage sludge

2010-03-16 Thread Andrew Lombardi
Apparently some spammers have taken some messages from the Wicket mailing list, and using it as seed data in their efforts to trick spam filters into passing the message through. Since I have a phone number in my email signature, i've gotten a few not-so-nice texts / voicemails until I explain

Re: TinyMCE components in WicketStuff

2010-03-16 Thread Boris Goldowsky
The TinyMCE package depends on the Jazzy spell checker, which doesn't seem to be in any public maven repository. Would it be reasonable to put that jar into the wicketstuff repository? The latest version appears to be the one at https://sourceforge.net/projects/jazzy/files/ Bng

Re: TinyMCE components in WicketStuff

2010-03-16 Thread Igor Vaynberg
sure -igor On Tue, Mar 16, 2010 at 12:21 PM, Boris Goldowsky bgoldow...@cast.org wrote: The TinyMCE package depends on the Jazzy spell checker, which doesn't seem to be in any public maven repository.  Would it be reasonable to put that jar into the wicketstuff repository? The latest

Bookmarkable Links Session

2010-03-16 Thread Mauro Ciancio
Hello everyone, I'm developing an application that uses a lot of bookmarkable links in order to get pretty urls. When I log in with my userpassword, I'm redirected to the home page. This behavior is ok, but the session appears to be not created, so i still see the login link (and not the

Re: Application#get in WicketSessionFilter

2010-03-16 Thread Erik van Oosten
Hi Jonas, Perhaps this is what you need: http://cwiki.apache.org/WICKET/springbean-outside-wicket.html Regards, Erik. Jonas wrote: Hi all, we're using WicketSessionFilter in our product to access our custom WebSession, which works fine. Now we've tried to also access the

Re: TinyMCE components in WicketStuff

2010-03-16 Thread Boris Goldowsky
Great. Can someone with write access to the repository do this? Or if i can do it via my SVN credentials, tell me how. Thanks! Bng Igor Vaynberg wrote: sure -igor On Tue, Mar 16, 2010 at 12:21 PM, Boris Goldowsky bgoldow...@cast.org wrote: The TinyMCE package depends on the Jazzy

Re: InMethod Grid: resizing rowcount

2010-03-16 Thread Erik van Oosten
I can confirm this. It took me a few days of debugging before I found out :( Another solution is to just replace the inmethod grid with a freshly created instance after data changes. You can share the DataSource, and you may have to copy over the set of selected items. Regards, Erik.

Re: Bookmarkable Links Session

2010-03-16 Thread Antoine van Wel
When you have a stateless page, no session is created when you land on such a page first, or to be more precise: a temporary session is created. So that should explain the difference you see. Calling Session.get().bind() when logging in should fix that. Better, call

Feedback and field validation

2010-03-16 Thread Anna Simbirtsev
Hi, I validate fields using AjaxFormComponentUpdatingBehavior(onblur). When I am on field 1, and data is invalid, it displays feedback message, and I can see this message in session. When I move to a different field, this feedback message is no longer in the session. Can somebody explain that?

Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-16 Thread David Chang
Cemal, Thanks so much for the information. I am really grateful, indeed. Putting Wicket aside, you guys are awesome. Best, David --- On Tue, 3/16/10, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: From: Cemal Bayramoglu jweekend_for...@cabouge.com Subject: Re: Recommend two good

Wicket and GNU Gettext

2010-03-16 Thread Sigmar Muuga
Hello, just wanted to ask, if anybody has experiences with combining GNU Gettext and Wicket? Actually I am figuring how to get my project work best with it... what should I do r what should I do not Is it possible to use it also with wicket:message? Sigmar