Re: Render a Wicket page to a string for HTML email
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 Swank wrote: Here is a largely equivalent class that I created. It simply extends BaseWicketTester. public class PageRenderer extends BaseWicketTester { private final Locale locale; public PageRenderer(Locale locale) { this.locale = locale; } public PageRenderer() { this.locale = null; } private String renderStartPage() { if (this.locale != null) { getWicketSession().setLocale(locale); } return getServletResponse().getDocument(); } public synchronized String render(Class? extends WebPage pageClass) { startPage(pageClass); return renderStartPage(); } public synchronized String render(Class? extends WebPage pageClass, PageParameters parameters) { startPage(pageClass, parameters); return renderStartPage(); } public synchronized String render(WebPage page) { startPage(page); return renderStartPage(); } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Render-a-Wicket-page-to-a-string-for-HTML-email-tp20325702p27914411.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: InMethod Grid: resizing rowcount
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 expand the number of rows after an ajax-call that e.g. adds data to the underlying datasource. Is there a way to tell the DataGrid that the underlying datasource may have changed, to the effect that the existing row count is not valid anymore? I.e. like markAllItemsDirty(), but then telling the grid to reload the entire underlying model, including rowcount, instead of only the individual rows? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org I tackled a similar problem (an add button for an editable datagrid) the following way: - create a new object with reflection - insert it in the backing list (model) - call update on the grid - add the grid to the requesttarget public class MyDataGrid extends DecoratedDataGrid { protected List rawList; protected final Class modelAsClass; public MyDataGrid(String id, String title, String buttonTitle, List? list, ListIGridColumn columns, final Class? modelAsClass) { super(id, title, buttonTitle, new MyDataProviderAdapter(new ListDataProvider(list)), columns, modelAsClass); log.debug(creating grid for type + modelAsClass.getSimpleName() + no of columns: + columns.size() + size of datalist: + list.size()); this.rawList = list; } @Override protected void onAddRow(AjaxRequestTarget target, Form? form) { Object obj = modelAsClass.newInstance(); rawList.add(obj); log.debug(object of class + modelAsClass.getName() + successfully inserted); update(); target.addComponent(getGrid()); } } This takes place in a custom subclass of the defaultdatagrid. The onAddRow method is called from an ajaxbutton (onsubmit) I hope this helps -- Thierry Peng You must be doing something else in addition to that (or I am missing something). As far as I can see, the DefaultDataGrid class will not ask its model/datasource for a new rowcount when you call update(). Hence the call to update() will not result in the addition of a row to the grid, even though you added the row to your model. Are you sure you are not replacing the entire dataGrid in e.g. your getGrid() call? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org nope, there is no magic in the getGrid() method. it only returns the grid. If I read the update() method correctly I may even omit that call. So, the target.addComponent(grid) is sufficient I'm using the inmethod-grid-1.4-rc7 with some extensions. wicket version is 1.4.6 Ok thanks for your help. The problem is that inmethod 's call to IDataSource.query() asks for the rows upto the last known total row count. In your case that probably does not matter, since you just return an iterator over the entire datasource, and update the rowcount accordingly. I work with very large datasources, and unknown rowcounts. I can workaround this issue by providing the page-size to my datasource, so that I can fix the IQuery.getCount() asked by inmethod. Not a nice solution, but will work for now. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ClassLoader (Serialization?) error
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 name (mypackage.MyClass): Will keep on investigating, thanks for all your tips :-) mypac%3C/a%3E%3C/h4%3E%20%20%20%20%3Cdiv%20id= 2010-03-15 20:38:58,507 ERROR ap18_s1_IX_II [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] org.apache.wicket.request.target.resource.SharedResourceRequestTarget 359167|RGCZLpMSQGtMyQvz53HrwSsxrS9cGrRJQGyp8dJNNz3xTpHv8QpW!-469065994! 1268681938...@192.168.131.143 - unable to lazily register shared resource %3C/a%3E%3C/h4%3E%20%20%20%20%3Cdiv%20id= java.lang.ClassNotFoundException: mypac%3C at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:289) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:262) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:161) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:35) at org.apache.wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:103) at org.apache.wicket.request.target.resource.SharedResourceRequestTarget.respond(SharedResourceRequestTarget.java:149) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at mypackage.MyFilter.doFilter(MyFilter.java:37) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181) 2010-03-15 20:38:58,507 ERROR ap18_s1_IX_II [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] org.apache.wicket.request.target.resource.SharedResourceRequestTarget 359167|RGCZLpMSQGtMyQvz53HrwSsxrS9cGrRJQGyp8dJNNz3xTpHv8QpW!-469065994! 1268681938...@192.168.131.143 - unable to lazily register shared resource net.gencat.accesnet.t%3C/a%3E%3C/h4%3E%20%20%20%20%3Cdiv%20id= java.lang.ClassNotFoundException: net.gencat.accesnet.t%3C at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:289) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:262) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:161) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:35) at org.apache.wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:103) at org.apache.wicket.request.target.resource.SharedResourceRequestTarget.respond(SharedResourceRequestTarget.java:149) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at
Re: Render a Wicket page to a string for HTML email
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) ? http://www.danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ Cheers, Xavier 2010/3/16 rolandpeng rolandp...@cht.com.tw 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 Swank wrote: Here is a largely equivalent class that I created. It simply extends BaseWicketTester. public class PageRenderer extends BaseWicketTester { private final Locale locale; public PageRenderer(Locale locale) { this.locale = locale; } public PageRenderer() { this.locale = null; } private String renderStartPage() { if (this.locale != null) { getWicketSession().setLocale(locale); } return getServletResponse().getDocument(); } public synchronized String render(Class? extends WebPage pageClass) { startPage(pageClass); return renderStartPage(); } public synchronized String render(Class? extends WebPage pageClass, PageParameters parameters) { startPage(pageClass, parameters); return renderStartPage(); } public synchronized String render(WebPage page) { startPage(page); return renderStartPage(); } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Render-a-Wicket-page-to-a-string-for-HTML-email-tp20325702p27914411.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Klein bottle for rent--inquire within.
Re: Render a Wicket page to a string for HTML email
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(); ServletContext context = application.getServletContext(); //fake a request/response cycle MockHttpSession servletSession = new MockHttpSession(context); servletSession.setTemporary(true); MockHttpServletRequest servletRequest = new MockHttpServletRequest( application, servletSession, context); MockHttpServletResponse servletResponse = new MockHttpServletResponse( servletRequest); //initialize request and response servletRequest.initialize(); servletResponse.initialize(); WebRequest webRequest = new ServletWebRequest(servletRequest); BufferedWebResponse webResponse = new BufferedWebResponse(servletResponse); webResponse.setAjax(true); WebRequestCycle requestCycle = new WebRequestCycle( application, webRequest, webResponse); //requestCycle.setRequestTarget(new BookmarkablePageRequestTarget(pageClass, pageParameters)); requestCycle.setRequestTarget(new PageRequestTarget(page)); try { requestCycle.getProcessor().respond(requestCycle); if (requestCycle.wasHandled() == false) { requestCycle.setRequestTarget(new WebErrorCodeResponseTarget( HttpServletResponse.SC_NOT_FOUND)); } requestCycle.detach(); } finally { requestCycle.getResponse().close(); } return webResponse.toString(); } } Cheers, Xavier 2010/3/16 Xavier López xavil...@gmail.com 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) ? http://www.danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ Cheers, Xavier 2010/3/16 rolandpeng rolandp...@cht.com.tw 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 Swank wrote: Here is a largely equivalent class that I created. It simply extends BaseWicketTester. public class PageRenderer extends BaseWicketTester { private final Locale locale; public PageRenderer(Locale locale) { this.locale = locale; } public PageRenderer() { this.locale = null; } private String renderStartPage() { if (this.locale != null) { getWicketSession().setLocale(locale); } return getServletResponse().getDocument(); } public synchronized String render(Class? extends WebPage pageClass) { startPage(pageClass); return renderStartPage(); } public synchronized String render(Class? extends WebPage pageClass, PageParameters parameters) { startPage(pageClass, parameters); return renderStartPage(); } public synchronized String render(WebPage page) { startPage(page); return renderStartPage(); } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Render-a-Wicket-page-to-a-string-for-HTML-email-tp20325702p27914411.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Klein bottle for rent--inquire within.
Re: Wicket in the industry
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 company to use the framework. I really enjoy wicket and it's ease of use. Thing is my company has asked me two valid questions which I hope the community can answer. 1. How is wicket's stress load? For example could you use the framework for example as an interface to a banking system that handles hundreds of requests at the same time? 2. And i think this question relates to the first one, is wicket being adopted by big businesses? Do they use it for their web interfaces? If anyone can answer these questions I would appreciate it as I would like to convince them to use this framework. -- Anantha Kumaran(http://ananthakumaran.github.com) -- View this message in context: http://old.nabble.com/Wicket-in-the-industry-tp27901382p27915504.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Render a Wicket page to a string for HTML email
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 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(); ServletContext context = application.getServletContext(); //fake a request/response cycle MockHttpSession servletSession = new MockHttpSession(context); servletSession.setTemporary(true); MockHttpServletRequest servletRequest = new MockHttpServletRequest( application, servletSession, context); MockHttpServletResponse servletResponse = new MockHttpServletResponse( servletRequest); //initialize request and response servletRequest.initialize(); servletResponse.initialize(); WebRequest webRequest = new ServletWebRequest(servletRequest); BufferedWebResponse webResponse = new BufferedWebResponse(servletResponse); webResponse.setAjax(true); WebRequestCycle requestCycle = new WebRequestCycle( application, webRequest, webResponse); //requestCycle.setRequestTarget(new BookmarkablePageRequestTarget(pageClass, pageParameters)); requestCycle.setRequestTarget(new PageRequestTarget(page)); try { requestCycle.getProcessor().respond(requestCycle); if (requestCycle.wasHandled() == false) { requestCycle.setRequestTarget(new WebErrorCodeResponseTarget( HttpServletResponse.SC_NOT_FOUND)); } requestCycle.detach(); } finally { requestCycle.getResponse().close(); } return webResponse.toString(); } } Cheers, Xavier -- View this message in context: http://old.nabble.com/Render-a-Wicket-page-to-a-string-for-HTML-email-tp20325702p27916314.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Render a Wicket page to a string for HTML email
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) sessionId3=7cc3d77e_12766bcf8eb__7ffd (strange,created by call reder api) I use wicket 1.4.6 for developing. rolandpeng wrote: 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. -- View this message in context: http://old.nabble.com/Render-a-Wicket-page-to-a-string-for-HTML-email-tp20325702p27916505.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?
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] http://jweekend.com/dev/LegUp [2] http://cwiki.apache.org/WICKET/spring.html [3] http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ [4] http://www.manning.com/dashorst/ [5] http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook On 16 March 2010 02:05, David Chang david_q_zh...@yahoo.com wrote: Can anybody recommend to me two good complete clean sample or open source Wicket + Spring + Hibernate applications? One of the effective ways I learn is by learning from good examples. I would be very much grateful for any info. Hopefully, the sample or open source applications are not too big, but still show many points. Thanks a lot! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?
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 expiry? Thank you, Martin
Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?
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 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 expiry? Thank you, Martin
Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?
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 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 expiry? Thank you, Martin
Invoke method after onPopulate
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 enable/disable. Now, I see that I can't use the same method I use in the Ajax Behavior, because at constructor time, the ListView has not been populated yet. Is there a way to invoke a method after ListView' s onPopulate() ? Is it a better approach to override isEnabled() on those Checks ? The bean holding the property to decide it is large, I think I should use a binded model in this case (getModel().bind(generalProperty), or the propertyModel from the general checkbox). Thanks, Xavier
RE: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?
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] Sent: Tuesday, March 16, 2010 3:39 PM To: users@wicket.apache.org Subject: Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration? 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 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 expiry? Thank you, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Page Design Question
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, but there are a couple fields from which I derive values on my domain object. I can solve this by creating a Java object that maps one-to-one with my form and then constructing my domain object(s) from that form object, but is there a better way / best practice way of handling this situation? Thanks for your insight! Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: PagingNavigator - Image for navigation and onclick
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 http://javathoughts.capesugarbird.com/2007/04/how-to-change-markup-of-built-in-wicket.html instructions. 2) Here you can see a generated link from me app ... ?x=pPt1KTjFgq7jCvFV7Vtod43EPo0hbPO-EDP4AMUHOsUoaAgCgpvR6F6GtmhTk1TRCvllRbG1Pu4 img/previous_btn.gif ... my problem is the onclick...-part - is it possible to leave it? 3) so i googled and found: http://old.nabble.com/extra-%27onclick%27-is-generated-for-an-image-wrapped-by-a-link-td20980894.html; ... instead of wicket:link, use bookmarkablepagelink component instead. 4) is there any possible way to perform step 3) in my case? 5) addition: java-src: import org.apache.wicket.markup.html.navigation.paging.IPageable; import org.apache.wicket.markup.html.navigation.paging.PagingNavigator; public class CustomPagingNavigator extends PagingNavigator { private static final long serialVersionUID = 1L; public CustomPagingNavigator(String id, IPageable pageable) { super(id, pageable); } } 5) addition: html-src: wicket:panel div class=dataviewNavigator !-- TODO: 19.02.2010 JO: email an wicket. https://issues.apache.org/jira/browse/WICKET-2754 -- img/first_btn.gif img/previous_btn.gif nbsp; # 5 nbsp; img/next_btn.gif img/last_btn.gif /div /wicket:panel 6) addition: html-output in firefox(i): wicket:panel div class=dataviewNavigator em img/first_btn.gif /em em img/previous_btn.gif /em nbsp; em 1 /em ?x=3T9OhwrOZt--R3HzzNwd0xe1LmcsK2pHT5s9ZfNnRwzogD2Oli57Zg9fZvz3a0DZQEvwKwF4UkokgM6gq5WEGMnL*Nw12f22 2 ?x=3T9OhwrOZt--R3HzzNwd0xe1LmcsK2pHT5s9ZfNnRwxA7NuB8dKvzti588UuFsExZSeXhb6AJXxgFOh4uYcC1qZBjlucfKIM 3 nbsp; ?x=3T9OhwrOZt--R3HzzNwd0xe1LmcsK2pHR7jJcylQSnVTkhGhyoytRIHsOmkLOOIh img/next_btn.gif ?x=3T9OhwrOZt--R3HzzNwd0xe1LmcsK2pHwZiHUF--DlGkX-89FhTk2Of51oKgQbbQ img/last_btn.gif /div /wicket:panel Josef - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/PagingNavigator---Image-for-navigation-and-onclick-tp27664880p27918172.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?
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, 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 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] Sent: Tuesday, March 16, 2010 3:39 PM To: users@wicket.apache.org Subject: Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration? 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 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 expiry? Thank you, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?
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 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] Sent: Tuesday, March 16, 2010 3:39 PM To: users@wicket.apache.org Subject: Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration? 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 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 expiry? Thank you, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Design Question
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 wrote: 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, but there are a couple fields from which I derive values on my domain object. I can solve this by creating a Java object that maps one-to-one with my form and then constructing my domain object(s) from that form object, but is there a better way / best practice way of handling this situation? Thanks for your insight! Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Page-Design-Question-tp27918033p27918501.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: inmethod DataGrid problem in IE8
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: Matej Knopp [mailto:matej.kn...@gmail.com] Sent: Friday, March 12, 2010 3:57 PM To: users@wicket.apache.org Subject: Re: inmethod DataGrid problem in IE8 If you run grid examples is the problem present? -Matej On Fri, Mar 12, 2010 at 9:54 PM, Russell Morrisey russell.morri...@missionse.com wrote: I am having trouble with the layout of my inmethod DataGrid in wicket. It appears that the header columns and the data columns are not lining up correctly. There is a thin outer layer surrounding the individual columns on each row that is pushing the data outside of the viewable area. This only happens in IE 8, it works fine in lower versions of IE and Firefox. The summary and header rows work properly but the data rows are the problem. Marsha This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?
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 Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: Tuesday, March 16, 2010 4:08 PM To: users@wicket.apache.org Subject: Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration? 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 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] Sent: Tuesday, March 16, 2010 3:39 PM To: users@wicket.apache.org Subject: Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration? 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 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 expiry? Thank you, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?
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 like: class ExpiringAjaxTimerBehavior extends AjaxSelfUpdatingTimerBehaviour { protected void onPostProcessTarget(final AjaxRequestTarget target) { if (userHasntDoneAnyThingLimitReached) { this.stop(); Session.get().invalidate(); } } } This way if the timer is active it can leverage application state to determine when to expire and if its not running the standard expiry will take place. Regards, Mike 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 Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: Tuesday, March 16, 2010 4:08 PM To: users@wicket.apache.org Subject: Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration? 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 Asenovmase...@velti.com wrote: 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] Sent: Tuesday, March 16, 2010 3:39 PM To: users@wicket.apache.org Subject: Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration? 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 Asenovmase...@velti.com 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 expiry? Thank you, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?
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: users@wicket.apache.org Subject: Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration? 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 like: class ExpiringAjaxTimerBehavior extends AjaxSelfUpdatingTimerBehaviour { protected void onPostProcessTarget(final AjaxRequestTarget target) { if (userHasntDoneAnyThingLimitReached) { this.stop(); Session.get().invalidate(); } } } This way if the timer is active it can leverage application state to determine when to expire and if its not running the standard expiry will take place. Regards, Mike 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 Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: Tuesday, March 16, 2010 4:08 PM To: users@wicket.apache.org Subject: Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration? 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 Asenovmase...@velti.com wrote: 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] Sent: Tuesday, March 16, 2010 3:39 PM To: users@wicket.apache.org Subject: Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration? 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 Asenovmase...@velti.com 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 expiry? Thank you, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Does AjaxSelfUpdatingBehavior simulate user actions and prevent session from expiration?
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 not to expiry? As other people already wrote, this keeps your session alive. I dont know what kind of clock you have on your page, but you should consider to update it with plain Javascript client-side. If you want it to show the server-time, initialize it one time and let JS increase it each second with a timer. regards Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicket and shiro
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 singleton. This is an invalid application configuration. at org.apache.shiro.SecurityUtils.getSecurityManager(SecurityUtils.java:116) at org.apache.shiro.subject.Subject$Builder.init(Subject.java:565) at org.apache.shiro.SecurityUtils.getSubject(SecurityUtils.java:57) I have declared shiro filter into my web.xml and I can see that MyRealm class is intanceated. But I dont see SessionSecurity instanciated at all. !-- SHIRO FILTER -- filter filter-nameShiroFilter/filter-name filter-classorg.apache.shiro.web.servlet.ShiroFilter/filter-class init-param param-nameconfig/param-name param-value [main] stupidRealm = com.misPartidos.web.MyRealm /param-value /init-param /filter I am not using spring as an the example showed, neither wicket-shiro project, do I? Thanks in advance -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Wicket.replaceOuterHtml problems in Gecko
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); textField.setOutputMarkupPlaceholderTag(true); textField.setVisible(false); add(textField); final AjaxLinkVoid link = new AjaxLinkVoid(link) { private static final long serialVersionUID = 1L; boolean toShow = true; @Override public void onClick(AjaxRequestTarget target) { textField.setVisible(toShow); toShow = !toShow; target.addComponent(textField); } }; and the html : div input wicket:id=text/ /div a wicket:id=linklink/a The basic idea is to switch the visibility of a TextField, the initial state is not visible. This works pretty well in IE (tested in 7 and 8) and Chrome (tested with ver.5 on Linux). Unfortunately the most reliable browser makes something very weird - every re-render with visibility==true it appends one more div element around the input element: div (this is my div from the template) div xmlns=http://www.w3.org/1999/xhtml; (this one is added by FF) div xmlns=http://www.w3.org/1999/xhtml; (this one is added by FF) input id=text2e name= value=.../ /div /div /div I created a simple quickstart application and there everything is working fine. So it looks to me that FF confuses somehow with the complex html structure of my page. Did anyone have such problems before ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Invoke method after onPopulate
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 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 enable/disable. Now, I see that I can't use the same method I use in the Ajax Behavior, because at constructor time, the ListView has not been populated yet. Is there a way to invoke a method after ListView' s onPopulate() ? Is it a better approach to override isEnabled() on those Checks ? The bean holding the property to decide it is large, I think I should use a binded model in this case (getModel().bind(generalProperty), or the propertyModel from the general checkbox). Thanks, Xavier - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket.replaceOuterHtml problems in Gecko
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 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); textField.setOutputMarkupPlaceholderTag(true); textField.setVisible(false); add(textField); final AjaxLinkVoid link = new AjaxLinkVoid(link) { private static final long serialVersionUID = 1L; boolean toShow = true; �...@override public void onClick(AjaxRequestTarget target) { textField.setVisible(toShow); toShow = !toShow; target.addComponent(textField); } }; and the html : div input wicket:id=text/ /div a wicket:id=linklink/a The basic idea is to switch the visibility of a TextField, the initial state is not visible. This works pretty well in IE (tested in 7 and 8) and Chrome (tested with ver.5 on Linux). Unfortunately the most reliable browser makes something very weird - every re-render with visibility==true it appends one more div element around the input element: div (this is my div from the template) div xmlns=http://www.w3.org/1999/xhtml; (this one is added by FF) div xmlns=http://www.w3.org/1999/xhtml; (this one is added by FF) input id=text2e name= value=.../ /div /div /div I created a simple quickstart application and there everything is working fine. So it looks to me that FF confuses somehow with the complex html structure of my page. Did anyone have such problems before ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket and shiro
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 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 singleton. This is an invalid application configuration. at org.apache.shiro.SecurityUtils.getSecurityManager(SecurityUtils.java:116) at org.apache.shiro.subject.Subject$Builder.init(Subject.java:565) at org.apache.shiro.SecurityUtils.getSubject(SecurityUtils.java:57) I have declared shiro filter into my web.xml and I can see that MyRealm class is intanceated. But I dont see SessionSecurity instanciated at all. !-- SHIRO FILTER -- filter filter-nameShiroFilter/filter-name filter-classorg.apache.shiro.web.servlet.ShiroFilter/filter-class init-param param-nameconfig/param-name param-value [main] stupidRealm = com.misPartidos.web.MyRealm /param-value /init-param /filter I am not using spring as an the example showed, neither wicket-shiro project, do I? Thanks in advance -- Fernando Wermus. www.linkedin.com/in/fernandowermus - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicketstuff versioning
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 commands, e-mail: users-h...@wicket.apache.org
Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?
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 Wicket+Spring+Hibernate apps? To: users users@wicket.apache.org Date: Tuesday, March 16, 2010, 9:01 AM 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] http://jweekend.com/dev/LegUp [2] http://cwiki.apache.org/WICKET/spring.html [3] http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ [4] http://www.manning.com/dashorst/ [5] http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook On 16 March 2010 02:05, David Chang david_q_zh...@yahoo.com wrote: Can anybody recommend to me two good complete clean sample or open source Wicket + Spring + Hibernate applications? One of the effective ways I learn is by learning from good examples. I would be very much grateful for any info. Hopefully, the sample or open source applications are not too big, but still show many points. Thanks a lot! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Warning on the spammer sewage sludge
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 to them what has happened. So, beware what you send to this list that has any contact info on it. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TinyMCE components in WicketStuff
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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TinyMCE components in WicketStuff
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 version appears to be the one at https://sourceforge.net/projects/jazzy/files/ Bng - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Bookmarkable Links Session
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 welcome message 'you are logged in'). However, if before login I browse a page that contains state and then i go to the login page, it works well. I guess the session is not being created, but it should be created when I try to login. Any ideas? Cheers. -- Mauro Ciancio maurociancio at gmail dot com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Application#get in WicketSessionFilter
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 org.apache.wicket.Application (e.g. using Session#getApplication or Application#get), which doesn't seem to work, because the application isn't bound to the ThreadLocal. After searching in nabble I found some old threads ([1], [2]) suggesting this should actually work fine, but that doesn't seem to be the case. Is there any special configuration trick I have to apply to make this work, or are those old posts just (no longer) true? If anybody could confirm this is actually a bug, I'd create an issue in JIRA to have this fixed. Regards, Jonas [1] http://old.nabble.com/Accessing-Wicket-Application-from-custom-servlet-ts24814177.html#a24815786 [2] http://old.nabble.com/WicketFilter-td25205475.html#a25210469 -- Sent from my SMTP compliant software Erik van Oosten http://day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TinyMCE components in WicketStuff
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 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: InMethod Grid: resizing rowcount
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. Pointbreak wrote: ... Ok thanks for your help. The problem is that inmethod 's call to IDataSource.query() asks for the rows upto the last known total row count. In your case that probably does not matter, since you just return an iterator over the entire datasource, and update the rowcount accordingly. I work with very large datasources, and unknown rowcounts. I can workaround this issue by providing the page-size to my datasource, so that I can fix the IQuery.getCount() asked by inmethod. Not a nice solution, but will work for now. -- Sent from my SMTP compliant software Erik van Oosten http://day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bookmarkable Links Session
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 Session.get().replaceSession() when logging in, that should both solve your problem and fix a potential security hole. Antoine On Tue, Mar 16, 2010 at 8:32 PM, Mauro Ciancio maurocian...@gmail.com wrote: 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 welcome message 'you are logged in'). However, if before login I browse a page that contains state and then i go to the login page, it works well. I guess the session is not being created, but it should be created when I try to login. Any ideas? Cheers. -- Mauro Ciancio maurociancio at gmail dot com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Feedback and field validation
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? Thanks, Anna
Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?
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 complete clean Wicket+Spring+Hibernate apps? To: users users@wicket.apache.org Date: Tuesday, March 16, 2010, 9:01 AM 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] http://jweekend.com/dev/LegUp [2] http://cwiki.apache.org/WICKET/spring.html [3] http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ [4] http://www.manning.com/dashorst/ [5] http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook On 16 March 2010 02:05, David Chang david_q_zh...@yahoo.com wrote: Can anybody recommend to me two good complete clean sample or open source Wicket + Spring + Hibernate applications? One of the effective ways I learn is by learning from good examples. I would be very much grateful for any info. Hopefully, the sample or open source applications are not too big, but still show many points. Thanks a lot! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket and GNU Gettext
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