Re: Performance Benchmarks
we did a performance comparison between wicket and jsf in january, and for our usecases wicket was the clear winner (about factor 4). wicket was nearly as fast as our old struts implementation. btw, we used wicket together with seam, which also did not add much to the execution times. uwe. On Mon, Apr 27, 2009 at 3:49 AM, Peter Thomas ptrtho...@gmail.com wrote: LOL at Jeremy's definitive quote :) Coming to original post - Munna: there is some comparative info on performance and memory usage here: http://ptrthomas.wordpress.com/2009/01/14/seam-jsf-vs-wicket-performance-comparison/ Hope this helps. On Sun, Apr 26, 2009 at 7:26 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Does this count? It's really fast - quote from Jeremy Thomerson in his email written Sunday, April 26. Sorry - couldn't resist a little laugh. I never put much faith in other people's performance benchmarks because they are typically little more than anecdotal evidence of their limited experience with X over Z. But here's my anecdotal benchmark - I've never debugged an application where Wicket was the *slow* part of the application. And I've debugged a lot of Wicket applications. It's always the DB layer. Occasionally something resource intensive in the service layer. But always the DB layer. -- Jeremy Thomerson http://www.wickettraining.com On Sun, Apr 26, 2009 at 8:09 PM, Munna Ramjee munnaram...@gmail.com wrote: Hi All, Are there any performance benchmarks posted anywhere for Wicket? Thanks in advance for the help. Thanks, Munna. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Performance Benchmarks
Can wicket help with estimating page size in bytes? (or in cucumbers if the size of a cucumber is defined). I would like to keep pages footprint in session as short as possible. P.S. JSF certainly can be slower than DB, especially when you use Seam and SFSB as a page backing bean. It is easy to understand if you know that you have several approaches to improve DB performance, just hire DBA and understand the lifecycles of your entities and put them into appropriate cache. From the other hand with JSF you just can do NOTHING. Just get rid of JSF (in favor of Wicket for instance). JSF is a perverted framework. It is like Visual Basic for the Java Web applications. It is just for designing hotel booking sites. uwe janner wrote: we did a performance comparison between wicket and jsf in january, and for our usecases wicket was the clear winner (about factor 4). wicket was nearly as fast as our old struts implementation. btw, we used wicket together with seam, which also did not add much to the execution times. uwe. On Mon, Apr 27, 2009 at 3:49 AM, Peter Thomas ptrtho...@gmail.com wrote: LOL at Jeremy's definitive quote :) Coming to original post - Munna: there is some comparative info on performance and memory usage here: http://ptrthomas.wordpress.com/2009/01/14/seam-jsf-vs-wicket-performance-comparison/ Hope this helps. On Sun, Apr 26, 2009 at 7:26 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Does this count? It's really fast - quote from Jeremy Thomerson in his email written Sunday, April 26. Sorry - couldn't resist a little laugh. I never put much faith in other people's performance benchmarks because they are typically little more than anecdotal evidence of their limited experience with X over Z. But here's my anecdotal benchmark - I've never debugged an application where Wicket was the *slow* part of the application. And I've debugged a lot of Wicket applications. It's always the DB layer. Occasionally something resource intensive in the service layer. But always the DB layer. -- Jeremy Thomerson http://www.wickettraining.com On Sun, Apr 26, 2009 at 8:09 PM, Munna Ramjee munnaram...@gmail.com wrote: Hi All, Are there any performance benchmarks posted anywhere for Wicket? Thanks in advance for the help. Thanks, Munna. - 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://www.nabble.com/Performance-Benchmarks-tp23248583p23252707.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: DefaultDataTable: How to add a DDChoice to change rows per page
Vit, thanks for pointing the topic. It will come in handy. However I believe it makes sense to have DDC incorporated into navigation toolbar to save space. Vit Rozkovec wrote: Hi, check this out: http://www.nabble.com/nice-small-component-to-share-Toolbar-for-DataTable-to16743136.html Vladimir Kovalyuk wrote: I would like to add some component, say DropDownChoice, to allow user to change default rows per page setting for data table. I've investigated two ways: 1) extend NavigationToolbar or PagingNavigator 2) extends NavigationToolbar to add extra panel right to PagingNavigator Althought it is possible to completely override PagingNavigator component it is not so straightforward as I expected. Please improve DefaultDataTable so it will be capable to change rows per page. I also suggest creating child components in all the non-final components via createXXX methods instead of new keyword in order to simplify overriding. - 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://www.nabble.com/DefaultDataTable%3A-How-to-add-a-DDChoice-to-change-rows-per-page-tp23244335p23252333.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
[Imrovement] Allow overriding of the Validator default MessageKey
I've created a JIRA issue: https://issues.apache.org/jira/browse/WICKET-2244
Re: Performance Benchmarks
With the request logger you can turn on logging of the session size * boolean * getRecordSessionSize() if you want to record 1 specific pages you should just do that in Requestcycle.detach johan On Mon, Apr 27, 2009 at 11:19, Vladimir K koval...@gmail.com wrote: Can wicket help with estimating page size in bytes? (or in cucumbers if the size of a cucumber is defined). I would like to keep pages footprint in session as short as possible. P.S. JSF certainly can be slower than DB, especially when you use Seam and SFSB as a page backing bean. It is easy to understand if you know that you have several approaches to improve DB performance, just hire DBA and understand the lifecycles of your entities and put them into appropriate cache. From the other hand with JSF you just can do NOTHING. Just get rid of JSF (in favor of Wicket for instance). JSF is a perverted framework. It is like Visual Basic for the Java Web applications. It is just for designing hotel booking sites. uwe janner wrote: we did a performance comparison between wicket and jsf in january, and for our usecases wicket was the clear winner (about factor 4). wicket was nearly as fast as our old struts implementation. btw, we used wicket together with seam, which also did not add much to the execution times. uwe. On Mon, Apr 27, 2009 at 3:49 AM, Peter Thomas ptrtho...@gmail.com wrote: LOL at Jeremy's definitive quote :) Coming to original post - Munna: there is some comparative info on performance and memory usage here: http://ptrthomas.wordpress.com/2009/01/14/seam-jsf-vs-wicket-performance-comparison/ Hope this helps. On Sun, Apr 26, 2009 at 7:26 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Does this count? It's really fast - quote from Jeremy Thomerson in his email written Sunday, April 26. Sorry - couldn't resist a little laugh. I never put much faith in other people's performance benchmarks because they are typically little more than anecdotal evidence of their limited experience with X over Z. But here's my anecdotal benchmark - I've never debugged an application where Wicket was the *slow* part of the application. And I've debugged a lot of Wicket applications. It's always the DB layer. Occasionally something resource intensive in the service layer. But always the DB layer. -- Jeremy Thomerson http://www.wickettraining.com On Sun, Apr 26, 2009 at 8:09 PM, Munna Ramjee munnaram...@gmail.com wrote: Hi All, Are there any performance benchmarks posted anywhere for Wicket? Thanks in advance for the help. Thanks, Munna. - 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://www.nabble.com/Performance-Benchmarks-tp23248583p23252707.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
Strange maven warning
Hello all, Strange warning I began to see last time: [WARNING] POM for 'org.apache.wicket:wicket-extensions:pom:1.4-SNAPSHOT:compile' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM for project org.apache.wicket:wicket-extensions at Artifact [org.apache.wicket:wicket-extensions:pom:1.4-SNAPSHOT:compile] [surefire:test] What it can be? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: pageparams bug?
https://issues.apache.org/jira/browse/WICKET-2245 2009/4/26 Igor Vaynberg igor.vaynb...@gmail.com: weird, open a jira issue. -igor On Sun, Apr 26, 2009 at 8:14 AM, francisco treacy francisco.tre...@gmail.com wrote: Hi all, Just mounting urls in our app, I stumbled upon something I believe is a bug. As I might be overlooking something else, please confirm - then I'll file it to Jira. Say I mount MyBookmarkablePage like so: mount(new IndexedHybridUrlCodingStrategy(/my/bookmarkable, MyBookmarkablePage.class)); where public MyBookmarkablePage() { (...) } public MyBookmarkablePage(PageParameters params) { (...) } When I call http://localhost:8080/app/my/bookmarkable (just that plain url, no trailing nothing), then I never get into the no-args constructor, always in the params one. This because the params object comes with 0=, which I feel is wrong. Consequently, params.containsKey(0) returns true - and here I have to go and check if the value is not empty. Yuck. I'm using wicket 1.4-rc2. Francisco - 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: Performance Benchmarks
On Mon, Apr 27, 2009 at 11:55 AM, Johan Compagner jcompag...@gmail.com wrote: if you want to record 1 specific pages you should just do that in Requestcycle.detach Or add a post-request file scanner that records the page sizes from the serialized instances on the filesystem. Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Validator for 2 fields
Thorsten, Look at the Wicket class called EqualInputValidator for guidance. You have to add it to the form, not to the individual fields. W On Apr 27, 2009, at 6:16 AM, Thorsten Scherler wrote: Hi all, I have a question about validating one field with another. I have a form that ask for the start page and for the end page of an article. I need to validate whether the startPage is lesser or equal to the endPage. I could do this in public void onSubmit() {...} of the form like: public void onSubmit() { if(model.getStartPage()model.getEndPage()){ this.error(The startPage cannot be bigger then the endPage); } ... } However I wonder if that is not cleaner with a validator. My problem is ATM that I have not found an example that shows how to validate a field comparing it to another field in the same form. In pseudo code: RequiredTextField start = new RequiredTextField(startPage, Integer.class); add(start); RequiredTextField end = new RequiredTextField(endPage, Integer.class); // the next line does not exits but would be what I need NumberValidator max = NumberValidator.minimum(start); end.add(max); add(end); What is the best way to implement such a validation? TIA for any tips. salu2 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions Sociedad Andaluza para el Desarrollo de la Sociedad de la Información, S.A.U. (SADESI) - 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: Native memory leak using wicket-1.2.6 / IBM JDK 1.4 / Windows 2003 Server SP1
It is 'deployment' mode, good advise though. By any chance, any recommendation on JVM -ms / -mx parameters for wicket application? What we have found that we needed to set the 1/ low -ms value. 2/ comparatively high -mx value , but had to make sure that it does not exceed half of the available memory of the box Carlo Camerino wrote: did yous witch your aplication to deployment mode. Using development mode in websphere using wicket will cause it to have memory leaks. Even in 1.3.5 we experience it. Try switching to deployment mode and see if helps On Thu, Apr 23, 2009 at 10:20 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Wicket doesn't do anything with native stuff—we're doing pure Java. Either you did something strange, or there's a bug in WebSphere or the IBM JDK you're running into. Martijn On Thu, Apr 23, 2009 at 1:37 PM, Basak, Prasan (TCS) prasan.ba...@landg.com wrote: Hi, Our web application use following configuration for development, and it frequently gives Java core dump without enough load. We contacted IBM support, who, after analysing dump file, has found that some of the html files of our app have been stored in the native memory space ( not heap memory) , presumably by wicket. Did any other user of wicket 1.2.x experience similar issues? Env: JDK = IBM JDK 1.4 OS = Windows 2003 Server SP1 Application Server = Websphere Process Server 6.0.2x Web application = Is a pure java app Wicket Version = 1.2.6 Thanks prasun ** This email (and any attachments) may contain privileged and/or confidential information. If you are not the intended recipient please do not disclose, copy, distribute, disseminate or take any action in reliance on it. If you have received this message in error please reply and tell us and then delete it. Should you wish to communicate with us by email we cannot guarantee the security of any data outside our own computer systems. For the protection of Legal General's systems and staff, incoming emails will be automatically scanned. Any information contained in this message may be subject to applicable terms and conditions and must not be construed as giving investment advice within or outside the United Kingdom. Legal General Group plc is registered in England under company number 1417162 and is a holding company. The registered office for all companies in the Legal General group is One Coleman Street London EC2R 5AA. The following subsidiary companies of Legal General Group Plc are authorised and regulated by the Financial Services Authority: Legal General Partnership Services Limited, Legal General Insurance Limited, Legal General Assurance Society Limited, Legal General (Unit Trust Managers) Limited and Legal General (Portfolio Management Services) Limited. Legal General International (Ireland) is incorporated in Ireland under company number 440141 with its registered office at Beaux Lane House, Lower Mercer Street, Dublin 2, Ireland and is authorised by the Financial Regulator in Ireland and by the Financial Services Authority for the conduct of insurance business in the UK. Full details can be found at http://www.legalandgeneralgroup.com ** -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - 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://www.nabble.com/Native-memory-leak-using-wicket-1.2.6---IBM-JDK-1.4---Windows-2003-Server-SP1-tp23195156p23253779.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: Validator for 2 fields
On Mon, 2009-04-27 at 06:43 -0400, Willis Blackburn wrote: Thorsten, Look at the Wicket class called EqualInputValidator for guidance. You have to add it to the form, not to the individual fields. Thanks. Meanwhile I found a working solution. Will post it now. salu2 W On Apr 27, 2009, at 6:16 AM, Thorsten Scherler wrote: Hi all, I have a question about validating one field with another. I have a form that ask for the start page and for the end page of an article. I need to validate whether the startPage is lesser or equal to the endPage. I could do this in public void onSubmit() {...} of the form like: public void onSubmit() { if(model.getStartPage()model.getEndPage()){ this.error(The startPage cannot be bigger then the endPage); } ... } However I wonder if that is not cleaner with a validator. My problem is ATM that I have not found an example that shows how to validate a field comparing it to another field in the same form. In pseudo code: RequiredTextField start = new RequiredTextField(startPage, Integer.class); add(start); RequiredTextField end = new RequiredTextField(endPage, Integer.class); // the next line does not exits but would be what I need NumberValidator max = NumberValidator.minimum(start); end.add(max); add(end); What is the best way to implement such a validation? TIA for any tips. salu2 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions Sociedad Andaluza para el Desarrollo de la Sociedad de la Información, S.A.U. (SADESI) - 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 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions Sociedad Andaluza para el Desarrollo de la Sociedad de la Información, S.A.U. (SADESI) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Validator for 2 fields
Hi all, I have a question about validating one field with another. I have a form that ask for the start page and for the end page of an article. I need to validate whether the startPage is lesser or equal to the endPage. I could do this in public void onSubmit() {...} of the form like: public void onSubmit() { if(model.getStartPage()model.getEndPage()){ this.error(The startPage cannot be bigger then the endPage); } ... } However I wonder if that is not cleaner with a validator. My problem is ATM that I have not found an example that shows how to validate a field comparing it to another field in the same form. In pseudo code: RequiredTextField start = new RequiredTextField(startPage, Integer.class); add(start); RequiredTextField end = new RequiredTextField(endPage, Integer.class); // the next line does not exits but would be what I need NumberValidator max = NumberValidator.minimum(start); end.add(max); add(end); What is the best way to implement such a validation? TIA for any tips. salu2 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions Sociedad Andaluza para el Desarrollo de la Sociedad de la Información, S.A.U. (SADESI) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Validator for 2 fields
On Mon, 2009-04-27 at 12:16 +0200, Thorsten Scherler wrote: Hi all, I have a question about validating one field with another. I have a form that ask for the start page and for the end page of an article. I need to validate whether the startPage is lesser or equal to the endPage. I could do this in public void onSubmit() {...} of the form like: public void onSubmit() { if(model.getStartPage()model.getEndPage()){ this.error(The startPage cannot be bigger then the endPage); } ... } However I wonder if that is not cleaner with a validator. My problem is ATM that I have not found an example that shows how to validate a field comparing it to another field in the same form. I found a solution. :) RequiredTextField start = new RequiredTextField(startPage, Integer.class); add(start); RequiredTextField end = new RequiredTextField(endPage, Integer.class); MinimumValidator miniVal = new MinimumValidator (start); end.add(miniVal); add(end); I created a small Validator that is doing the comparison and is working very nicely: public class MinimumValidator extends AbstractValidator { private TextField field; public MinimumValidator(TextField field){ this.field = field; } protected Map variablesMap(IValidatable validatable) { final Map map = super.variablesMap(validatable); map.put(field, field); return map; } @Override protected void onValidate(IValidatable validatable) { int end = (Integer)validatable.getValue(); int start = Integer.parseInt(field.getValue()); if (startend){ error(validatable); } } salu2 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions Sociedad Andaluza para el Desarrollo de la Sociedad de la Información, S.A.U. (SADESI) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to Maintain the session in Wicket while using the SpringWebApplication
Hi. I want to maintain the session in the Wicket for drop down values. But i am using SpringWebApplication class. So, please tell me how to maintain the session need a sample example. -- Regards. Geeta Madhavi. K
Re: displaying xml content
Shiraz, Does this dynamic XML content include references to Wicket components? In other words does it include wicket:id attributes? If not, then you don't need a special panel for it. You can just display it as a MultilineLabel with escaping turned off. W On Apr 27, 2009, at 5:57 AM, shiraz memon wrote: Hi I am trying to display dynamic xml content on simple panel. For that I have also overriden the getMarkupType method with xml as returning string in the XmlPanel class (which extends Panel). Besides that, I have also created an empty XMLPanel.xml file. After viewing the panel on browser I see the following error: WicketMessage: Tag expected [markup = file:/home/shiraz/workspace/iscore/target/classes/is/web/ XmlInfoPanel.xml , index = 1, current = null] Root cause: org.apache.wicket.markup.MarkupException: Tag expected [markup = file:/home/shiraz/workspace/iscore/target/classes/is/web/ XmlInfoPanel.xml , index = 1, current = null] at org .apache .wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java: 465) at org.apache.wicket.markup.MarkupStream.getTag(MarkupStream.java:269) at org .apache .wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java: 639) at org .apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java: 114) at org.apache.wicket.Component.renderComponent(Component.java:2596) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java: 1521) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java: 1399) at org .apache .wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java: 1586) at org .apache .wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510) at org.apache.wicket.Component.renderComponent(Component.java:2596) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java: 1521) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java: 1399) at org .apache .wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java: 1586) at org .apache .wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510) at org.apache.wicket.Component.renderComponent(Component.java:2596) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java: 1521) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.markup.html.list.ListView.renderItem(ListView.java: 635) at org .apache.wicket.markup.html.list.ListView.renderChild(ListView.java: 623) at org .apache .wicket .markup.repeater.AbstractRepeater.onRender(AbstractRepeater.java:103) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java: 1399) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java: 1537) at org.apache.wicket.Page.onRender(Page.java:1522) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.Page.renderPage(Page.java:926) at org .apache .wicket .request .target .component .BookmarkablePageRequestTarget .respond(BookmarkablePageRequestTarget.java:262) at org .apache .wicket .request .AbstractRequestCycleProcessor .respond(AbstractRequestCycleProcessor.java:105) at org .apache .wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1200) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) However, the error is about the empty xml file. Since the content is generated at runtime from some external source, is there a way to view that dynamic xml content in wicket panel? Thanks Shiraz - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Native memory leak using wicket-1.2.6 / IBM JDK 1.4 / Windows 2003 Server SP1
thanks for replying. I was not looking for only native code usage, which I am sure wicket does not use. I have found out that in 1.3.x wicket uses 'DiskPageStore' to store some data to disk, whereas in 1.2.x all the data are in memory, is it correct? Would help if someone explains if wicket 1.2.x does any file I/O for storing PageMap data? thanks prasun Martijn Dashorst wrote: Wicket doesn't do anything with native stuff—we're doing pure Java. Either you did something strange, or there's a bug in WebSphere or the IBM JDK you're running into. Martijn On Thu, Apr 23, 2009 at 1:37 PM, Basak, Prasan (TCS) prasan.ba...@landg.com wrote: Hi, Our web application use following configuration for development, and it frequently gives Java core dump without enough load. We contacted IBM support, who, after analysing dump file, has found that some of the html files of our app have been stored in the native memory space ( not heap memory) , presumably by wicket. Did any other user of wicket 1.2.x experience similar issues? Env: JDK = IBM JDK 1.4 OS = Windows 2003 Server SP1 Application Server = Websphere Process Server 6.0.2x Web application = Is a pure java app Wicket Version = 1.2.6 Thanks prasun ** This email (and any attachments) may contain privileged and/or confidential information. If you are not the intended recipient please do not disclose, copy, distribute, disseminate or take any action in reliance on it. If you have received this message in error please reply and tell us and then delete it. Should you wish to communicate with us by email we cannot guarantee the security of any data outside our own computer systems. For the protection of Legal General's systems and staff, incoming emails will be automatically scanned. Any information contained in this message may be subject to applicable terms and conditions and must not be construed as giving investment advice within or outside the United Kingdom. Legal General Group plc is registered in England under company number 1417162 and is a holding company. The registered office for all companies in the Legal General group is One Coleman Street London EC2R 5AA. The following subsidiary companies of Legal General Group Plc are authorised and regulated by the Financial Services Authority: Legal General Partnership Services Limited, Legal General Insurance Limited, Legal General Assurance Society Limited, Legal General (Unit Trust Managers) Limited and Legal General (Portfolio Management Services) Limited. Legal General International (Ireland) is incorporated in Ireland under company number 440141 with its registered office at Beaux Lane House, Lower Mercer Street, Dublin 2, Ireland and is authorised by the Financial Regulator in Ireland and by the Financial Services Authority for the conduct of insurance business in the UK. Full details can be found at http://www.legalandgeneralgroup.com ** -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - 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://www.nabble.com/Native-memory-leak-using-wicket-1.2.6---IBM-JDK-1.4---Windows-2003-Server-SP1-tp23195156p23253981.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
displaying xml content
Hi I am trying to display dynamic xml content on simple panel. For that I have also overriden the getMarkupType method with xml as returning string in the XmlPanel class (which extends Panel). Besides that, I have also created an empty XMLPanel.xml file. After viewing the panel on browser I see the following error: WicketMessage: Tag expected [markup = file:/home/shiraz/workspace/iscore/target/classes/is/web/XmlInfoPanel.xml , index = 1, current = null] Root cause: org.apache.wicket.markup.MarkupException: Tag expected [markup = file:/home/shiraz/workspace/iscore/target/classes/is/web/XmlInfoPanel.xml , index = 1, current = null] at org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:465) at org.apache.wicket.markup.MarkupStream.getTag(MarkupStream.java:269) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:639) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114) at org.apache.wicket.Component.renderComponent(Component.java:2596) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510) at org.apache.wicket.Component.renderComponent(Component.java:2596) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510) at org.apache.wicket.Component.renderComponent(Component.java:2596) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.markup.html.list.ListView.renderItem(ListView.java:635) at org.apache.wicket.markup.html.list.ListView.renderChild(ListView.java:623) at org.apache.wicket.markup.repeater.AbstractRepeater.onRender(AbstractRepeater.java:103) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1537) at org.apache.wicket.Page.onRender(Page.java:1522) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.Page.renderPage(Page.java:926) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:262) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1200) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) However, the error is about the empty xml file. Since the content is generated at runtime from some external source, is there a way to view that dynamic xml content in wicket panel? Thanks Shiraz
absolute urls in form action
Hi, Does anybody know if it's possible to get Wicket to use absolute urls in a forms action attribute, and how to accomplish this if possible. We're trying to get a Wicket application integrated into a CMS system, through some proxying and need the full urls since the CMS is on a different server from the Wicket application. I realise we probably could do some url rewriting on the CMS side, but it would be nice if there was a simple way to get absolute urls directly in Wicket. /Steen
Re: absolute urls in form action
Hi Eric, Thank you for the answer. Unfortunately we are still on 1.3.5, but good to know there is a future solution. /Steen 2009/4/27 Erik van Oosten e.vanoos...@grons.nl Hi Steen, Starting Wicket 1.4-rc1 plus a patch you can let Wicket make all URLs absolute. See http://issues.apache.org/jira/browse/WICKET-1974 for more details. With some tweaks you can make the shown code work for any context (not just the root context). Regards, Erik. Steen Larsen wrote: Hi, Does anybody know if it's possible to get Wicket to use absolute urls in a forms action attribute, and how to accomplish this if possible. We're trying to get a Wicket application integrated into a CMS system, through some proxying and need the full urls since the CMS is on a different server from the Wicket application. I realise we probably could do some url rewriting on the CMS side, but it would be nice if there was a simple way to get absolute urls directly in Wicket. /Steen -- 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: absolute urls in form action
Hi Steen, Starting Wicket 1.4-rc1 plus a patch you can let Wicket make all URLs absolute. See http://issues.apache.org/jira/browse/WICKET-1974 for more details. With some tweaks you can make the shown code work for any context (not just the root context). Regards, Erik. Steen Larsen wrote: Hi, Does anybody know if it's possible to get Wicket to use absolute urls in a forms action attribute, and how to accomplish this if possible. We're trying to get a Wicket application integrated into a CMS system, through some proxying and need the full urls since the CMS is on a different server from the Wicket application. I realise we probably could do some url rewriting on the CMS side, but it would be nice if there was a simple way to get absolute urls directly in Wicket. /Steen -- 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: displaying xml content
Willis Does this dynamic XML content include references to Wicket components? In other words does it include wicket:id attributes? No it does not contain any wicket attributes. If not, then you don't need a special panel for it. You can just display it as a MultilineLabel with escaping turned off. Does it allow clients to browse xml in an interactive way, such as clicking + link to expand the child elements while - to collapse. Thanks Shiraz On Apr 27, 2009, at 5:57 AM, shiraz memon wrote: Hi I am trying to display dynamic xml content on simple panel. For that I have also overriden the getMarkupType method with xml as returning string in the XmlPanel class (which extends Panel). Besides that, I have also created an empty XMLPanel.xml file. After viewing the panel on browser I see the following error: WicketMessage: Tag expected [markup = file:/home/shiraz/workspace/iscore/target/classes/is/web/XmlInfoPanel.xml , index = 1, current = null] Root cause: org.apache.wicket.markup.MarkupException: Tag expected [markup = file:/home/shiraz/workspace/iscore/target/classes/is/web/XmlInfoPanel.xml , index = 1, current = null] at org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:465) at org.apache.wicket.markup.MarkupStream.getTag(MarkupStream.java:269) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:639) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114) at org.apache.wicket.Component.renderComponent(Component.java:2596) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510) at org.apache.wicket.Component.renderComponent(Component.java:2596) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510) at org.apache.wicket.Component.renderComponent(Component.java:2596) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.markup.html.list.ListView.renderItem(ListView.java:635) at org.apache.wicket.markup.html.list.ListView.renderChild(ListView.java:623) at org.apache.wicket.markup.repeater.AbstractRepeater.onRender(AbstractRepeater.java:103) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1537) at org.apache.wicket.Page.onRender(Page.java:1522) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.Page.renderPage(Page.java:926) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:262) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1200) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) However, the error is about the empty xml file. Since the content is generated at runtime from some external source, is there a way to view that dynamic xml content in wicket panel? Thanks Shiraz - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Example of DataTable and Hibernate
Hey, Do you know any example regarding using DataTable repeater with Spring Dao bean (Hibernate preferably)? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Does FeedbackPanel have to be added to Page?
That error comes directly from this ticket in JIRA... if you want to know how it came to be, read the comments. https://issues.apache.org/jira/browse/WICKET-1138 - Brill Pappin On 26-Apr-09, at 7:52 PM, Jason Wang wrote: Hi all, I got a weird error when doing a form component validation. When it fails on the validation the feedback panel is not updated with the error message. The log shows this: Component-targetted feedback message was left unrendered. This could be because you are missing a FeedbackPanel on the page. Well, I added the FeedbackPanel on the form belonging to a webpage. And all the error messages sent to the panel can be properly displayed. Just the one triggered with a component.validate failed to display. The example below can reproduce this error I got: Java: public class Example extends WebPage { public Example(){ Form signupForm = new Form(signUpForm); final FeedbackPanel feedbackPanel = new FeedbackPanel(feedback); feedbackPanel.setEscapeModelStrings(false).setOutputMarkupId(true); signupForm.add(feedbackPanel); final RequiredTextFieldString mobile = new RequiredTextFieldString( mobile); mobile.setLabel(new ModelString(mobile)).add(new PatternValidator(^[1-9]([0-9]{8,14}))); mobile.add(new AjaxFormComponentUpdatingBehavior(onblur) { protected void onUpdate(AjaxRequestTarget ajaxRequestTarget) { mobile.validate(); ajaxRequestTarget.addComponent(feedbackPanel); } }); signupForm.add(mobile); add(signupForm); } } Html: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.sourceforge.net/; xml:lang=en lang=en body form wicket:id=signUpForm class=signUpForm span wicket:id=feedback[feedbackmessages will be put here]/span input wicket:id=mobile id=mobile type=text size=20 class=signUpForm-input/ /form /body /html Cheers, Jason - 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: Example of DataTable and Hibernate
DataTable specifically or one of its subclasses? Here's an example of using AjaxFallbackDefaultDataTable with a repository (which is implemented as a hibernate-based Spring dao subclass). http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/story3/page/Home.java On Mon, Apr 27, 2009 at 8:54 AM, HHB hubaghd...@yahoo.ca wrote: Hey, Do you know any example regarding using DataTable repeater with Spring Dao bean (Hibernate preferably)? Thanks. - 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
How to get an i18n message?
Hey, How to get a message (that will be displayed in FeedbackPanel) from properties file in order to use it for info() method of Component class? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: LinkTree will not be updated
James McLaughlin jomclaughlin at gmail.com writes: add tree.updateTree(target) before adding the tree to the target. hth, jim Thank you for your quick response, but your proposal has not helped me, unfortunately. The tree remains as it is and it will not be updated. Thanks elena - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Possible to retrieve previous page from PageMap
I have tried to find something but, given that I am using wikcket 1.3 and I do not have PageReferences, the only way I have found to recover the last page is to pass a parameter with the page name and then found the last version of that page in the HttpSession pageMap. Or to keep the reference of the last page in the session. I can do it but I expect that wicket already have that kind of mechanism. Doesn't it? On Tue, Apr 14, 2009 at 8:30 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: search this forum for pagereference -igor On Tue, Apr 14, 2009 at 9:28 AM, Daniele Dellafiore ilde...@gmail.com wrote: Here is my return to last page problem. A detail page has multiple tabs, an AjaxTabbedPanel. Swithing between tabs does not put another page in browser history, so history.back() is fine. I have also a checkbox that trigger enable/disable state of all the input of the form. Is an AjaxCheckBox that in the callback refresh the form component after changing the enable property. The history.back() works, again. But, I have a reset button that: 1. reload the old values in the fields 2. put the form in a disable state, like at the beginning. Now, to achieve this result, the Reset button actually calls a setResponsePage(getPage(), getPage().getPageParameters()) so reloads the current page with original parameters. That calls actually make the history grow, so the history.back() is no longer useful becouse, in fact, goes to the last version of the actual page instead of the previous page. Any suggestion? I should simply use a document.form.reset() making that the Reset button is not a submit button... sounds fine? In general, what is the best solution wicket-like? Is something REST-like a la gmail, that returns to the /search/myFilter ? Or something statefull, so I suppose it should be easy to recover the last rendered page with the right version and so on... On Fri, Mar 13, 2009 at 5:18 PM, francisco treacy francisco.tre...@gmail.com wrote: igor, i would agree with you if i wanted to mimic the browser back button functionality. but i do not. we intensively use panel swapping and we're only interested in registering when users click on certain pages (we can fine-tune pages which pages should be back-clickable). we actually considered using history.go(-1), but if you want your app to seriously take into account usability / user experience, it's useless -- for instance think panel swapping, or rendering links such as back to your search for ice-cream. personally i'm not someone who likes complexity just for the sake of it. francisco On Fri, Mar 13, 2009 at 3:43 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: its really a lot of work to duplicate what the back button in the browser already does. or a simple a href=# onclick=history.go(-1)back/a will do as well. -igor On Fri, Mar 13, 2009 at 5:02 AM, francisco treacy francisco.tre...@gmail.com wrote: to be honest i haven't read the whole thread, but we are also trying to achieve roughly the same thing. as of wicket 1.4-m1 there is a class called PageId that you may want to consider. i created a back state holder class that holds a PageId and an IModelString for the text of the back link. so for every visited page (in the onBeforeRender - could be placed in the base page), we set a holder in the session and in our base page we call Session.get.getHolder. pretty simple really. as the PageId class is a unique identifier of the page you can use it to distinguish between pagemaps, etc. (so navigation doesn't interfere between tabs / windows) this fulfills our usecase, as this is just a helper link to go back where you were. we don't completely rely on this link because we also do keep traditional navigation links in our pages. however i still need to solve the double click problem, i.e. if a user clicks twice on a link, the last rendered page will be the same as the one he is in. thus, the back link points to the same page. it is actually quite tricky to get it right, yet i believe possible. i will definitely try to avoid the link handing over pageparams in the url like in the good old days :) i will post it once i get everything working together. francisco On Fri, Mar 13, 2009 at 10:29 AM, pixologe pixol...@mailinator.com wrote: Just a thought which I did not think about when implementing this (thus I had to change this stuff all over afterwards), perhaps it helps someone avoiding the same mistake: The latest rendered page is not neccessarily the page that lead the user to the current page. I.e. retrieving the last page this way might result in strange behavior if the user uses two browser windows or tabs simulaneously. Same applies for clicking the browser's back button. Thus I had to go back to a rather old-fashioned solution, where every link hands over a page param :-/ like in the good old days ;-) rolandpeng wrote: great! after
Re: How to get an i18n message?
Here's an example from my own code: private static final String SQLERROR_GET = new ResourceModel(error.sqlException.select).getObject(); My properties.xml file contains a key that is called error.sqlException.select. This string is an error message that I later on add to my feedbackpanel: error(SQLERROR_GET); Hope that helps. Regards, Linda Hey, How to get a message (that will be displayed in FeedbackPanel) from properties file in order to use it for info() method of Component class? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.287 / Virus Database: 270.12.4/2082 - Release Date: 04/27/09 06:19:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Possible to retrieve previous page from PageMap
Copy/paste the code for PageReference into your code. That's what I did. I also created a factory method to create a PageReference from the currently requested page (useful for being able to go back). On Mon, Apr 27, 2009 at 10:42 AM, Daniele Dellafiore ilde...@gmail.com wrote: I have tried to find something but, given that I am using wikcket 1.3 and I do not have PageReferences, the only way I have found to recover the last page is to pass a parameter with the page name and then found the last version of that page in the HttpSession pageMap. Or to keep the reference of the last page in the session. I can do it but I expect that wicket already have that kind of mechanism. Doesn't it? On Tue, Apr 14, 2009 at 8:30 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: search this forum for pagereference -igor On Tue, Apr 14, 2009 at 9:28 AM, Daniele Dellafiore ilde...@gmail.com wrote: Here is my return to last page problem. A detail page has multiple tabs, an AjaxTabbedPanel. Swithing between tabs does not put another page in browser history, so history.back() is fine. I have also a checkbox that trigger enable/disable state of all the input of the form. Is an AjaxCheckBox that in the callback refresh the form component after changing the enable property. The history.back() works, again. But, I have a reset button that: 1. reload the old values in the fields 2. put the form in a disable state, like at the beginning. Now, to achieve this result, the Reset button actually calls a setResponsePage(getPage(), getPage().getPageParameters()) so reloads the current page with original parameters. That calls actually make the history grow, so the history.back() is no longer useful becouse, in fact, goes to the last version of the actual page instead of the previous page. Any suggestion? I should simply use a document.form.reset() making that the Reset button is not a submit button... sounds fine? In general, what is the best solution wicket-like? Is something REST-like a la gmail, that returns to the /search/myFilter ? Or something statefull, so I suppose it should be easy to recover the last rendered page with the right version and so on... On Fri, Mar 13, 2009 at 5:18 PM, francisco treacy francisco.tre...@gmail.com wrote: igor, i would agree with you if i wanted to mimic the browser back button functionality. but i do not. we intensively use panel swapping and we're only interested in registering when users click on certain pages (we can fine-tune pages which pages should be back-clickable). we actually considered using history.go(-1), but if you want your app to seriously take into account usability / user experience, it's useless -- for instance think panel swapping, or rendering links such as back to your search for ice-cream. personally i'm not someone who likes complexity just for the sake of it. francisco On Fri, Mar 13, 2009 at 3:43 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: its really a lot of work to duplicate what the back button in the browser already does. or a simple a href=# onclick=history.go(-1)back/a will do as well. -igor On Fri, Mar 13, 2009 at 5:02 AM, francisco treacy francisco.tre...@gmail.com wrote: to be honest i haven't read the whole thread, but we are also trying to achieve roughly the same thing. as of wicket 1.4-m1 there is a class called PageId that you may want to consider. i created a back state holder class that holds a PageId and an IModelString for the text of the back link. so for every visited page (in the onBeforeRender - could be placed in the base page), we set a holder in the session and in our base page we call Session.get.getHolder. pretty simple really. as the PageId class is a unique identifier of the page you can use it to distinguish between pagemaps, etc. (so navigation doesn't interfere between tabs / windows) this fulfills our usecase, as this is just a helper link to go back where you were. we don't completely rely on this link because we also do keep traditional navigation links in our pages. however i still need to solve the double click problem, i.e. if a user clicks twice on a link, the last rendered page will be the same as the one he is in. thus, the back link points to the same page. it is actually quite tricky to get it right, yet i believe possible. i will definitely try to avoid the link handing over pageparams in the url like in the good old days :) i will post it once i get everything working together. francisco On Fri, Mar 13, 2009 at 10:29 AM, pixologe pixol...@mailinator.com wrote: Just a thought which I did not think about when implementing this (thus I had to change this stuff all over afterwards), perhaps it helps someone avoiding the same mistake: The latest rendered page is not neccessarily the page that lead the user to the current page. I.e. retrieving the last page this way might result in strange behavior
Re: How to get an i18n message?
Maybe Component.getString(...); Ernesto HHB wrote: Hey, How to get a message (that will be displayed in FeedbackPanel) from properties file in order to use it for info() method of Component class? Thanks. - 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://www.nabble.com/How-to-get-an-i18n-message--tp23257589p23258193.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: Native memory leak using wicket-1.2.6 / IBM JDK 1.4 / Windows 2003 Server SP1
yes you need to set the max heap and min heap. It depends on a 32-bit 4 gig machine usually it's nice to set it to 256 and 1524 to be safe. There have been problems when you set it too high on our previous implementations. i'm not really sure as it's hard to size an application properly. One thing I'm sure of though is to make sure you install websphere fix packs or you'll have classloader problems. Also upgrade jdk version.. Yes 1.3 stores it into disk. It stores that most recently visited page into the session which makes memory consumption a lot less On Mon, Apr 27, 2009 at 7:03 PM, prasun prasan.ba...@landg.com wrote: thanks for replying. I was not looking for only native code usage, which I am sure wicket does not use. I have found out that in 1.3.x wicket uses 'DiskPageStore' to store some data to disk, whereas in 1.2.x all the data are in memory, is it correct? Would help if someone explains if wicket 1.2.x does any file I/O for storing PageMap data? thanks prasun Martijn Dashorst wrote: Wicket doesn't do anything with native stuff—we're doing pure Java. Either you did something strange, or there's a bug in WebSphere or the IBM JDK you're running into. Martijn On Thu, Apr 23, 2009 at 1:37 PM, Basak, Prasan (TCS) prasan.ba...@landg.com wrote: Hi, Our web application use following configuration for development, and it frequently gives Java core dump without enough load. We contacted IBM support, who, after analysing dump file, has found that some of the html files of our app have been stored in the native memory space ( not heap memory) , presumably by wicket. Did any other user of wicket 1.2.x experience similar issues? Env: JDK = IBM JDK 1.4 OS = Windows 2003 Server SP1 Application Server = Websphere Process Server 6.0.2x Web application = Is a pure java app Wicket Version = 1.2.6 Thanks prasun ** This email (and any attachments) may contain privileged and/or confidential information. If you are not the intended recipient please do not disclose, copy, distribute, disseminate or take any action in reliance on it. If you have received this message in error please reply and tell us and then delete it. Should you wish to communicate with us by email we cannot guarantee the security of any data outside our own computer systems. For the protection of Legal General's systems and staff, incoming emails will be automatically scanned. Any information contained in this message may be subject to applicable terms and conditions and must not be construed as giving investment advice within or outside the United Kingdom. Legal General Group plc is registered in England under company number 1417162 and is a holding company. The registered office for all companies in the Legal General group is One Coleman Street London EC2R 5AA. The following subsidiary companies of Legal General Group Plc are authorised and regulated by the Financial Services Authority: Legal General Partnership Services Limited, Legal General Insurance Limited, Legal General Assurance Society Limited, Legal General (Unit Trust Managers) Limited and Legal General (Portfolio Management Services) Limited. Legal General International (Ireland) is incorporated in Ireland under company number 440141 with its registered office at Beaux Lane House, Lower Mercer Street, Dublin 2, Ireland and is authorised by the Financial Regulator in Ireland and by the Financial Services Authority for the conduct of insurance business in the UK. Full details can be found at http://www.legalandgeneralgroup.com ** -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - 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://www.nabble.com/Native-memory-leak-using-wicket-1.2.6---IBM-JDK-1.4---Windows-2003-Server-SP1-tp23195156p23253981.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: Possible to retrieve previous page from PageMap
Try this I have this method for getting the current page id and version. protected PageIDVersion getCurrentPageIDVersion() { PageIDVersion pageIDVersion = new PageIDVersion(getPageMapEntry().getNumericId(), getCurrentVersionNumber()); return pageIDVersion; } I send it to the next page by using a class PageIDVersion { private Integer pageNum; private Integer version; } I store it as an instance in next page. public class NextPage() { private pageIdVersion pageIdVersion private NextPage(PageIDVersion pageIdVersion) } this.pageIdVersion = pageIDversion; } } Then use this button to reference the previous page. package com.ccti.base.web.components.button; import org.apache.wicket.behavior.SimpleAttributeModifier; import org.apache.wicket.markup.html.link.Link; import com.ccti.base.web.utilities.PageIDVersion; /** * @author Carlo M. Camerino * */ public class BackButton extends Link { private PageIDVersion pageIDVersion; public BackButton(String id, PageIDVersion pageIDVersion) { super(id); this.pageIDVersion = pageIDVersion; add(new SimpleAttributeModifier(value, Back)); } @Override public void onClick() { setResponsePage(getPage().getPageMap().get(pageIDVersion.getId(), pageIDVersion.getVersion())); } } On Mon, Apr 27, 2009 at 10:44 PM, James Carman jcar...@carmanconsulting.com wrote: Copy/paste the code for PageReference into your code. That's what I did. I also created a factory method to create a PageReference from the currently requested page (useful for being able to go back). On Mon, Apr 27, 2009 at 10:42 AM, Daniele Dellafiore ilde...@gmail.com wrote: I have tried to find something but, given that I am using wikcket 1.3 and I do not have PageReferences, the only way I have found to recover the last page is to pass a parameter with the page name and then found the last version of that page in the HttpSession pageMap. Or to keep the reference of the last page in the session. I can do it but I expect that wicket already have that kind of mechanism. Doesn't it? On Tue, Apr 14, 2009 at 8:30 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: search this forum for pagereference -igor On Tue, Apr 14, 2009 at 9:28 AM, Daniele Dellafiore ilde...@gmail.com wrote: Here is my return to last page problem. A detail page has multiple tabs, an AjaxTabbedPanel. Swithing between tabs does not put another page in browser history, so history.back() is fine. I have also a checkbox that trigger enable/disable state of all the input of the form. Is an AjaxCheckBox that in the callback refresh the form component after changing the enable property. The history.back() works, again. But, I have a reset button that: 1. reload the old values in the fields 2. put the form in a disable state, like at the beginning. Now, to achieve this result, the Reset button actually calls a setResponsePage(getPage(), getPage().getPageParameters()) so reloads the current page with original parameters. That calls actually make the history grow, so the history.back() is no longer useful becouse, in fact, goes to the last version of the actual page instead of the previous page. Any suggestion? I should simply use a document.form.reset() making that the Reset button is not a submit button... sounds fine? In general, what is the best solution wicket-like? Is something REST-like a la gmail, that returns to the /search/myFilter ? Or something statefull, so I suppose it should be easy to recover the last rendered page with the right version and so on... On Fri, Mar 13, 2009 at 5:18 PM, francisco treacy francisco.tre...@gmail.com wrote: igor, i would agree with you if i wanted to mimic the browser back button functionality. but i do not. we intensively use panel swapping and we're only interested in registering when users click on certain pages (we can fine-tune pages which pages should be back-clickable). we actually considered using history.go(-1), but if you want your app to seriously take into account usability / user experience, it's useless -- for instance think panel swapping, or rendering links such as back to your search for ice-cream. personally i'm not someone who likes complexity just for the sake of it. francisco On Fri, Mar 13, 2009 at 3:43 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: its really a lot of work to duplicate what the back button in the browser already does. or a simple a href=# onclick=history.go(-1)back/a will do as well. -igor On Fri, Mar 13, 2009 at 5:02 AM, francisco treacy francisco.tre...@gmail.com wrote: to be honest i haven't read the whole thread, but we are also trying to achieve roughly the same thing. as of wicket 1.4-m1 there is a class called PageId that you may want to consider. i created a back state holder class that holds a
Re: Ajax timer behavior not updating component in IE, Chrome and Opera
Hello, Finally, I have been able to replicate this problem with Opera 9.64, and created a sample page with which it is almost deterministic to see it fail (although I can only replicate it consistently in Opera, and it seems to work in the rest of browsers)... Should I open a JIRA issue with this, or should I show this pages (long code) here first in case I am doing something wrong?... Regards, Daniel. 2009/4/23 Daniel Fernandez daniel.f...@gmail.com: Hello, I am sorry I am not going to be very specific here, because the error I am experiencing is not very deterministic. The scenario: I am using 1.4-rc2, and I have a page with several (six, to be precise) panels which load its contents by using a subclass of AbstractAjaxTimerBehavior, which polls the server until the data for each of them is ready and if so returns a Panel with the adequate content. I cannot use LazyLoadPanel because I need their data obtention to be concurrent, and LazyLoadPanel would serialize their requests. This page works perfectly in Firefox, but sometimes I get some weird behaviour in other browsers. The one most affected is Chrome, but Opera 9.6 also fails sometimes, and the same goes for IE7. So, I have this piece of HTML in my page: wicket:container wicket:id=rows tr wicket:id=row id=row248 wicket:panelwicket:panel td wicket:id=rowLabelITALY/td td wicket:id=rowColumnsimg wicket:id=loadingImage src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/indicator.gif//td td wicket:id=rowColumnsimg wicket:id=loadingImage src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/indicator.gif//td /wicket:panel/wicket:panel /tr /wicket:container ...being row248 a wicket-generated markup id, and of course a unique identifier in the page. I can see in the Wicket AJAX Debug window that the panel containing the data is correctly retrieved... - INFO: INFO: Initiating Ajax GET request on ?wicket:interface=:220:test2:content:rows:0:row::IActivePageBehaviorListener:0:-1amp;wicket:ignoreIfNotActive=truerandom=0.6747844972740807 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (226 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=row248 ![CDATA[tr id=row248 tdITALY/td td colspan=2spanNo data to show!/span/td /tr]]/component/ajax-response INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... INFO: Calling posponed function... INFO: last focus id was not set INFO: ...but *that tr is never updated in the page's DOM*, and I never get to see it. The symptoms are exactly the same in the three mentioned browsers, and it only happens sometimes. And I don't get any errors in the javascript console... Any clues? Thank you, Daniel. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax timer behavior not updating component in IE, Chrome and Opera
jira issue -igor On Mon, Apr 27, 2009 at 10:13 AM, Daniel Fernandez daniel.f...@gmail.com wrote: Hello, Finally, I have been able to replicate this problem with Opera 9.64, and created a sample page with which it is almost deterministic to see it fail (although I can only replicate it consistently in Opera, and it seems to work in the rest of browsers)... Should I open a JIRA issue with this, or should I show this pages (long code) here first in case I am doing something wrong?... Regards, Daniel. 2009/4/23 Daniel Fernandez daniel.f...@gmail.com: Hello, I am sorry I am not going to be very specific here, because the error I am experiencing is not very deterministic. The scenario: I am using 1.4-rc2, and I have a page with several (six, to be precise) panels which load its contents by using a subclass of AbstractAjaxTimerBehavior, which polls the server until the data for each of them is ready and if so returns a Panel with the adequate content. I cannot use LazyLoadPanel because I need their data obtention to be concurrent, and LazyLoadPanel would serialize their requests. This page works perfectly in Firefox, but sometimes I get some weird behaviour in other browsers. The one most affected is Chrome, but Opera 9.6 also fails sometimes, and the same goes for IE7. So, I have this piece of HTML in my page: wicket:container wicket:id=rows tr wicket:id=row id=row248 wicket:panelwicket:panel td wicket:id=rowLabelITALY/td td wicket:id=rowColumnsimg wicket:id=loadingImage src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/indicator.gif//td td wicket:id=rowColumnsimg wicket:id=loadingImage src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/indicator.gif//td /wicket:panel/wicket:panel /tr /wicket:container ...being row248 a wicket-generated markup id, and of course a unique identifier in the page. I can see in the Wicket AJAX Debug window that the panel containing the data is correctly retrieved... - INFO: INFO: Initiating Ajax GET request on ?wicket:interface=:220:test2:content:rows:0:row::IActivePageBehaviorListener:0:-1amp;wicket:ignoreIfNotActive=truerandom=0.6747844972740807 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (226 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=row248 ![CDATA[tr id=row248 tdITALY/td td colspan=2spanNo data to show!/span/td /tr]]/component/ajax-response INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... INFO: Calling posponed function... INFO: last focus id was not set INFO: ...but *that tr is never updated in the page's DOM*, and I never get to see it. The symptoms are exactly the same in the three mentioned browsers, and it only happens sometimes. And I don't get any errors in the javascript console... Any clues? Thank you, Daniel. - 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: custom expired page
make your ExpiredPage not require authorization/authentication -igor On Mon, Apr 27, 2009 at 12:32 PM, alec a...@distancesoftware.com wrote: We have a wicket 1.3.5 application and are having trouble redirecting to an expired page if the user clicks on a link after the session expired. in our application's init method we have the call getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class); and this works if they click on a normal link after the session has been expired, but we're also using the AuthorizeInstantiation annotations (from wicket-auth-roles) on several pages that forces a logged in user to have a certain role to access the page or be redirected to the login page. Our problem is that if the session expired then the user gets redirected to the login page because of an unauthorized instantiation instead of being redirected to the expired page. Is there some way to work around this, or is there a way to determine if the session had expired on the login page so we could display a message there? - 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: custom expired page
sorry if that sounded confusing, but it's not the expiredpage that requires authorization, it's the destination of the link that was clicked. e.g. the user clicks the link to home (which requires authorization) and instead of getting the expired page they get the login page. Igor Vaynberg wrote: make your ExpiredPage not require authorization/authentication -igor On Mon, Apr 27, 2009 at 12:32 PM, alec a...@distancesoftware.com wrote: We have a wicket 1.3.5 application and are having trouble redirecting to an expired page if the user clicks on a link after the session expired. in our application's init method we have the call getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class); and this works if they click on a normal link after the session has been expired, but we're also using the AuthorizeInstantiation annotations (from wicket-auth-roles) on several pages that forces a logged in user to have a certain role to access the page or be redirected to the login page. Our problem is that if the session expired then the user gets redirected to the login page because of an unauthorized instantiation instead of being redirected to the expired page. Is there some way to work around this, or is there a way to determine if the session had expired on the login page so we could display a message there? - 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: custom expired page
can you paste here a link that redirects to login page? -Matej On Mon, Apr 27, 2009 at 9:39 PM, alec a...@distancesoftware.com wrote: sorry if that sounded confusing, but it's not the expiredpage that requires authorization, it's the destination of the link that was clicked. e.g. the user clicks the link to home (which requires authorization) and instead of getting the expired page they get the login page. Igor Vaynberg wrote: make your ExpiredPage not require authorization/authentication -igor On Mon, Apr 27, 2009 at 12:32 PM, alec a...@distancesoftware.com wrote: We have a wicket 1.3.5 application and are having trouble redirecting to an expired page if the user clicks on a link after the session expired. in our application's init method we have the call getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class); and this works if they click on a normal link after the session has been expired, but we're also using the AuthorizeInstantiation annotations (from wicket-auth-roles) on several pages that forces a logged in user to have a certain role to access the page or be redirected to the login page. Our problem is that if the session expired then the user gets redirected to the login page because of an unauthorized instantiation instead of being redirected to the expired page. Is there some way to work around this, or is there a way to determine if the session had expired on the login page so we could display a message there? - 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: custom expired page
are you referring to the java code i write for the link? it'd be something like: add(new BookmarkablePageLink(home, Application.get().getHomePage()); it's not something special about the link which causes it to redirect to the login page, it's that the homepage class (and several others) requires the user to have a certain role to instantiate it. Matej Knopp wrote: can you paste here a link that redirects to login page? -Matej On Mon, Apr 27, 2009 at 9:39 PM, alec a...@distancesoftware.com wrote: sorry if that sounded confusing, but it's not the expiredpage that requires authorization, it's the destination of the link that was clicked. e.g. the user clicks the link to home (which requires authorization) and instead of getting the expired page they get the login page. Igor Vaynberg wrote: make your ExpiredPage not require authorization/authentication -igor On Mon, Apr 27, 2009 at 12:32 PM, alec a...@distancesoftware.com wrote: We have a wicket 1.3.5 application and are having trouble redirecting to an expired page if the user clicks on a link after the session expired. in our application's init method we have the call getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class); and this works if they click on a normal link after the session has been expired, but we're also using the AuthorizeInstantiation annotations (from wicket-auth-roles) on several pages that forces a logged in user to have a certain role to access the page or be redirected to the login page. Our problem is that if the session expired then the user gets redirected to the login page because of an unauthorized instantiation instead of being redirected to the expired page. Is there some way to work around this, or is there a way to determine if the session had expired on the login page so we could display a message there? - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: custom expired page
If you use bookmarkable link then it's proper behavior. Bookmarkable link creates new page instance. It will never give you expired error. -Matej On Mon, Apr 27, 2009 at 9:50 PM, alec a...@distancesoftware.com wrote: are you referring to the java code i write for the link? it'd be something like: add(new BookmarkablePageLink(home, Application.get().getHomePage()); it's not something special about the link which causes it to redirect to the login page, it's that the homepage class (and several others) requires the user to have a certain role to instantiate it. Matej Knopp wrote: can you paste here a link that redirects to login page? -Matej On Mon, Apr 27, 2009 at 9:39 PM, alec a...@distancesoftware.com wrote: sorry if that sounded confusing, but it's not the expiredpage that requires authorization, it's the destination of the link that was clicked. e.g. the user clicks the link to home (which requires authorization) and instead of getting the expired page they get the login page. Igor Vaynberg wrote: make your ExpiredPage not require authorization/authentication -igor On Mon, Apr 27, 2009 at 12:32 PM, alec a...@distancesoftware.com wrote: We have a wicket 1.3.5 application and are having trouble redirecting to an expired page if the user clicks on a link after the session expired. in our application's init method we have the call getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class); and this works if they click on a normal link after the session has been expired, but we're also using the AuthorizeInstantiation annotations (from wicket-auth-roles) on several pages that forces a logged in user to have a certain role to access the page or be redirected to the login page. Our problem is that if the session expired then the user gets redirected to the login page because of an unauthorized instantiation instead of being redirected to the expired page. Is there some way to work around this, or is there a way to determine if the session had expired on the login page so we could display a message there? - 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 - 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: custom expired page
Like because your expired page requires the role. Remove the role annotation. - Brill Pappin On 27-Apr-09, at 3:32 PM, alec wrote: We have a wicket 1.3.5 application and are having trouble redirecting to an expired page if the user clicks on a link after the session expired. in our application's init method we have the call getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class); and this works if they click on a normal link after the session has been expired, but we're also using the AuthorizeInstantiation annotations (from wicket-auth-roles) on several pages that forces a logged in user to have a certain role to access the page or be redirected to the login page. Our problem is that if the session expired then the user gets redirected to the login page because of an unauthorized instantiation instead of being redirected to the expired page. Is there some way to work around this, or is there a way to determine if the session had expired on the login page so we could display a message there? - 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: custom expired page
maybe i should move away from the notion of a page. is there some way to determine if the session expired then? replacing all those BookmarkablePageLink's with normal links isn't an ideal solution. it'd be enough if at the login page there was something i could check that would tell me the session had expired. Matej Knopp wrote: If you use bookmarkable link then it's proper behavior. Bookmarkable link creates new page instance. It will never give you expired error. -Matej On Mon, Apr 27, 2009 at 9:50 PM, alec a...@distancesoftware.com wrote: are you referring to the java code i write for the link? it'd be something like: add(new BookmarkablePageLink(home, Application.get().getHomePage()); it's not something special about the link which causes it to redirect to the login page, it's that the homepage class (and several others) requires the user to have a certain role to instantiate it. Matej Knopp wrote: can you paste here a link that redirects to login page? -Matej On Mon, Apr 27, 2009 at 9:39 PM, alec a...@distancesoftware.com wrote: sorry if that sounded confusing, but it's not the expiredpage that requires authorization, it's the destination of the link that was clicked. e.g. the user clicks the link to home (which requires authorization) and instead of getting the expired page they get the login page. Igor Vaynberg wrote: make your ExpiredPage not require authorization/authentication -igor On Mon, Apr 27, 2009 at 12:32 PM, alec a...@distancesoftware.com wrote: We have a wicket 1.3.5 application and are having trouble redirecting to an expired page if the user clicks on a link after the session expired. in our application's init method we have the call getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class); and this works if they click on a normal link after the session has been expired, but we're also using the AuthorizeInstantiation annotations (from wicket-auth-roles) on several pages that forces a logged in user to have a certain role to access the page or be redirected to the login page. Our problem is that if the session expired then the user gets redirected to the login page because of an unauthorized instantiation instead of being redirected to the expired page. Is there some way to work around this, or is there a way to determine if the session had expired on the login page so we could display a message there? - 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 - 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
Logging for performance analysis
We are experiencing some hard to trace performance issues (CPU pegged by JAVA). so we want to implement some logging in order to Audit the code. Any suggestions on wicket state that we can easily print out? I.E. size of page map? Etc? D/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Logging for performance analysis
turn on the request logger - it dumps a ton of data on every request. i think it's in the debug settings IIRC -- Jeremy Thomerson http://www.wickettraining.com On Mon, Apr 27, 2009 at 3:39 PM, Douglas Ferguson doug...@douglasferguson.us wrote: We are experiencing some hard to trace performance issues (CPU pegged by JAVA). so we want to implement some logging in order to Audit the code. Any suggestions on wicket state that we can easily print out? I.E. size of page map? Etc? D/ - 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: Ajax timer behavior not updating component in IE, Chrome and Opera
Finally, I was able to reproduce issues in Firefox, IE and Chrome (although these were a bit different than the one in Opera), so I explained it all here: https://issues.apache.org/jira/browse/WICKET-2246 Thanks, Daniel. 2009/4/27 Igor Vaynberg igor.vaynb...@gmail.com: jira issue -igor On Mon, Apr 27, 2009 at 10:13 AM, Daniel Fernandez daniel.f...@gmail.com wrote: Hello, Finally, I have been able to replicate this problem with Opera 9.64, and created a sample page with which it is almost deterministic to see it fail (although I can only replicate it consistently in Opera, and it seems to work in the rest of browsers)... Should I open a JIRA issue with this, or should I show this pages (long code) here first in case I am doing something wrong?... Regards, Daniel. 2009/4/23 Daniel Fernandez daniel.f...@gmail.com: Hello, I am sorry I am not going to be very specific here, because the error I am experiencing is not very deterministic. The scenario: I am using 1.4-rc2, and I have a page with several (six, to be precise) panels which load its contents by using a subclass of AbstractAjaxTimerBehavior, which polls the server until the data for each of them is ready and if so returns a Panel with the adequate content. I cannot use LazyLoadPanel because I need their data obtention to be concurrent, and LazyLoadPanel would serialize their requests. This page works perfectly in Firefox, but sometimes I get some weird behaviour in other browsers. The one most affected is Chrome, but Opera 9.6 also fails sometimes, and the same goes for IE7. So, I have this piece of HTML in my page: wicket:container wicket:id=rows tr wicket:id=row id=row248 wicket:panelwicket:panel td wicket:id=rowLabelITALY/td td wicket:id=rowColumnsimg wicket:id=loadingImage src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/indicator.gif//td td wicket:id=rowColumnsimg wicket:id=loadingImage src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/indicator.gif//td /wicket:panel/wicket:panel /tr /wicket:container ...being row248 a wicket-generated markup id, and of course a unique identifier in the page. I can see in the Wicket AJAX Debug window that the panel containing the data is correctly retrieved... - INFO: INFO: Initiating Ajax GET request on ?wicket:interface=:220:test2:content:rows:0:row::IActivePageBehaviorListener:0:-1amp;wicket:ignoreIfNotActive=truerandom=0.6747844972740807 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (226 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=row248 ![CDATA[tr id=row248 tdITALY/td td colspan=2spanNo data to show!/span/td /tr]]/component/ajax-response INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... INFO: Calling posponed function... INFO: last focus id was not set INFO: ...but *that tr is never updated in the page's DOM*, and I never get to see it. The symptoms are exactly the same in the three mentioned browsers, and it only happens sometimes. And I don't get any errors in the javascript console... Any clues? Thank you, Daniel. - 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 divbr/div - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
DefaultDataTable loses pagination after filtering
Hi, I have an issue with the DefaultDataTable, and I'm wondering if this is something that I should expect to be supported, or not. (I've found the same problem with the AjaxFallbackDefaultDataTable) I implemented filtering, with the FilterToolbar, and made a few of the columns use TextFilteredPropertyColumn I set things up roughly similar to the wicket-stuff phone book example One thing I've notices, is that if I have enough elements in the table, to force pagination initially, and then I enter filtered text in the toolbar to reduce the number of data items, such that there's only one page of data, when I then subsequently clear the filter, the full data gets restored to the data table, except that the top widgets for navigating the pagination don't display. In other words, the pagination navigation links at top right (e.g. 1 2 3 ) go away when the filtering removes the need for paginationbut then clearing the filter does not restore that top toolbar Thoughts? Thanks, Jason
Re: DefaultDataTable loses pagination after filtering
If it matters, I forgot to mention, I'm using wicket 1.4-rc2 Jason Jason Rosenberg wrote: Hi, I have an issue with the DefaultDataTable, and I'm wondering if this is something that I should expect to be supported, or not. (I've found the same problem with the AjaxFallbackDefaultDataTable) I implemented filtering, with the FilterToolbar, and made a few of the columns use TextFilteredPropertyColumn I set things up roughly similar to the wicket-stuff phone book example One thing I've noticed, is that if I have enough elements in the table, to force pagination initially, and then I enter filtered text in the toolbar to reduce the number of data items, such that there's only one page of data, when I then subsequently clear the filter, the full data gets restored to the data table, except that the top widgets for navigating the pagination don't display. In other words, the pagination navigation links at top right (e.g. 1 2 3 ) go away when the filtering removes the need for paginationbut then clearing the filter does not restore that top toolbar Thoughts? Thanks, Jason -- View this message in context: http://www.nabble.com/DefaultDataTable-loses-pagination-after-filtering-tp23267884p23267903.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: custom expired page
there is no way in j2ee spec to determine if a previous session existed. page expiration is an artifact of using wicket and if you use stateful links you can determine it. if you use bookmarkable links then you cannot. -igor On Mon, Apr 27, 2009 at 1:34 PM, alec a...@distancesoftware.com wrote: maybe i should move away from the notion of a page. is there some way to determine if the session expired then? replacing all those BookmarkablePageLink's with normal links isn't an ideal solution. it'd be enough if at the login page there was something i could check that would tell me the session had expired. Matej Knopp wrote: If you use bookmarkable link then it's proper behavior. Bookmarkable link creates new page instance. It will never give you expired error. -Matej On Mon, Apr 27, 2009 at 9:50 PM, alec a...@distancesoftware.com wrote: are you referring to the java code i write for the link? it'd be something like: add(new BookmarkablePageLink(home, Application.get().getHomePage()); it's not something special about the link which causes it to redirect to the login page, it's that the homepage class (and several others) requires the user to have a certain role to instantiate it. Matej Knopp wrote: can you paste here a link that redirects to login page? -Matej On Mon, Apr 27, 2009 at 9:39 PM, alec a...@distancesoftware.com wrote: sorry if that sounded confusing, but it's not the expiredpage that requires authorization, it's the destination of the link that was clicked. e.g. the user clicks the link to home (which requires authorization) and instead of getting the expired page they get the login page. Igor Vaynberg wrote: make your ExpiredPage not require authorization/authentication -igor On Mon, Apr 27, 2009 at 12:32 PM, alec a...@distancesoftware.com wrote: We have a wicket 1.3.5 application and are having trouble redirecting to an expired page if the user clicks on a link after the session expired. in our application's init method we have the call getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class); and this works if they click on a normal link after the session has been expired, but we're also using the AuthorizeInstantiation annotations (from wicket-auth-roles) on several pages that forces a logged in user to have a certain role to access the page or be redirected to the login page. Our problem is that if the session expired then the user gets redirected to the login page because of an unauthorized instantiation instead of being redirected to the expired page. Is there some way to work around this, or is there a way to determine if the session had expired on the login page so we could display a message there? - 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 - 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: Logging for performance analysis
Douglas Ferguson douglas at douglasferguson.us writes: We are experiencing some hard to trace performance issues (CPU pegged by JAVA). so we want to implement some logging in order to Audit the code. Any suggestions on wicket state that we can easily print out? I.E. size of page map? Etc? D/ Hi, I'm having similar problems, my setup is: Java 1.6.10, Wicket 1.3.5 and Tomcat 6 on Windows XP. Tomcat seems to need 50% CPU from time to time, and often for a very long time. Will try Jeremy's suggestion, mind to share your findings ? Cheers, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DefaultDataTable loses pagination after filtering
If I'm true, this was solved. https://issues.apache.org/jira/browse/WICKET-2175 On Tue, Apr 28, 2009 at 8:25 AM, Jason Rosenberg jbrosenb...@gmail.com wrote: If it matters, I forgot to mention, I'm using wicket 1.4-rc2 Jason Jason Rosenberg wrote: Hi, I have an issue with the DefaultDataTable, and I'm wondering if this is something that I should expect to be supported, or not. (I've found the same problem with the AjaxFallbackDefaultDataTable) I implemented filtering, with the FilterToolbar, and made a few of the columns use TextFilteredPropertyColumn I set things up roughly similar to the wicket-stuff phone book example One thing I've noticed, is that if I have enough elements in the table, to force pagination initially, and then I enter filtered text in the toolbar to reduce the number of data items, such that there's only one page of data, when I then subsequently clear the filter, the full data gets restored to the data table, except that the top widgets for navigating the pagination don't display. In other words, the pagination navigation links at top right (e.g. 1 2 3 ) go away when the filtering removes the need for paginationbut then clearing the filter does not restore that top toolbar Thoughts? Thanks, Jason -- View this message in context: http://www.nabble.com/DefaultDataTable-loses-pagination-after-filtering-tp23267884p23267903.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??
Ahh, now I know. I just need to make FormSubmittingCheckBox implements IFormSubmittingComponent and then checkBox.add(new AjaxFormSubmitBehavior(onchange)). Yippee! ** Martin 2009/2/13 Timo Rantalaiho timo.rantala...@ri.fi: On Fri, 13 Feb 2009, Martin Makundi wrote: Yes, this is what I am trying to do, but disabling and enabling a textfield ends up clearing its value too if I use AjaxFormSumitBehavior. Don't know why. Maybe a conversion error that prohibits updating the model? Though in the case of validation or conversion errors the erroneous input could be preserved... but maybe the Ajax update gets it from the model anyway? 0) raw input 1) convert - if succeeds, convertedInput 2) validate - if succeeds, model Do you have a feedback panel on the page? By debugging Form.process() you can probably see easily what's going on. I feel it is more consistent to use just plain Wicket. In a way, yes, but sometimes purely client-side stuff can be easier purely on the client-side. Best wishes, Timo - 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: how to add filter for Palette choice
Why cannot get markupid? You can determine it yourself (setMarkupId) You could also update via ajax using a textfield which sends the filtered text to server and server updates the select via ajax... I wonder if someone has made a select in which the filter is visually built into the select component? ** Martin 2009/4/28 新希望软件 -- 俞宏伟 nhsoft@gmail.com: I want to add a filter for palette choice list, because choice list have a very large HTML SELECT list. I found that there is a select filter implement( http://www.barelyfitz.com/projects/filterlist/index.php/1), but i can not get select component markupid, so filter can not init. -- H. L. Mencken http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html - It is even harder for the average ape to believe that he has descended from man. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: how to add filter for Palette choice
yes, i can setMarkupId for Palette. but now i want to filter for palette's choicesComponent. there is no public getChoicesComponent() method for choicesComponent. 2009/4/28 Martin Makundi martin.maku...@koodaripalvelut.com Why cannot get markupid? You can determine it yourself (setMarkupId) You could also update via ajax using a textfield which sends the filtered text to server and server updates the select via ajax... I wonder if someone has made a select in which the filter is visually built into the select component? ** Martin 2009/4/28 新希望软件 -- 俞宏伟 nhsoft@gmail.com: I want to add a filter for palette choice list, because choice list have a very large HTML SELECT list. I found that there is a select filter implement( http://www.barelyfitz.com/projects/filterlist/index.php/1), but i can not get select component markupid, so filter can not init. -- H. L. Mencken http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html - It is even harder for the average ape to believe that he has descended from man. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??
Actually one must hack even further to reject the submitButton=1 value being added at form submit javascript: /** * wicket-ajax: * * if (submitButton != null) { * s += Wicket.Form.encode(submitButton) + =1; * } * * @see org.apache.wicket.markup.html.form.FormComponent#getInputAsArray() */ @Override public String[] getInputAsArray() { ListString strings = Arrays.asList(super.getInputAsArray()); strings.remove(1); return strings.toArray(new String[strings.size()]); } /** * @see org.apache.wicket.markup.html.form.AbstractSingleSelectChoice#getModelValue() */ @Override public String getModelValue() { String value = super.getModelValue(); if (1.equals(value)) { throw new IllegalStateException(1 not supported because of javaScript wicket-ajax:submitForm: function(form, submitButton)); } return value; } Is there a feature request that would allow a normal component to implement IFormSubmittingComponent without adding the =1 code? wicket-ajax: // Submits a form using ajax. // This method serializes a form and sends it as POST body. submitForm: function(form, submitButton) { var body = function() { var s = Wicket.Form.serialize(form); if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } return s; } return this.request.post(body); }, ** Martin 2009/4/28 Martin Makundi martin.maku...@koodaripalvelut.com: Ahh, now I know. I just need to make FormSubmittingCheckBox implements IFormSubmittingComponent and then checkBox.add(new AjaxFormSubmitBehavior(onchange)). Yippee! ** Martin 2009/2/13 Timo Rantalaiho timo.rantala...@ri.fi: On Fri, 13 Feb 2009, Martin Makundi wrote: Yes, this is what I am trying to do, but disabling and enabling a textfield ends up clearing its value too if I use AjaxFormSumitBehavior. Don't know why. Maybe a conversion error that prohibits updating the model? Though in the case of validation or conversion errors the erroneous input could be preserved... but maybe the Ajax update gets it from the model anyway? 0) raw input 1) convert - if succeeds, convertedInput 2) validate - if succeeds, model Do you have a feedback panel on the page? By debugging Form.process() you can probably see easily what's going on. I feel it is more consistent to use just plain Wicket. In a way, yes, but sometimes purely client-side stuff can be easier purely on the client-side. Best wishes, Timo - 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: how to add filter for Palette choice
Well.. you can override newChoicesComponent ** Martin 2009/4/28 新希望软件 -- 俞宏伟 nhsoft@gmail.com: yes, i can setMarkupId for Palette. but now i want to filter for palette's choicesComponent. there is no public getChoicesComponent() method for choicesComponent. 2009/4/28 Martin Makundi martin.maku...@koodaripalvelut.com Why cannot get markupid? You can determine it yourself (setMarkupId) You could also update via ajax using a textfield which sends the filtered text to server and server updates the select via ajax... I wonder if someone has made a select in which the filter is visually built into the select component? ** Martin 2009/4/28 新希望软件 -- 俞宏伟 nhsoft@gmail.com: I want to add a filter for palette choice list, because choice list have a very large HTML SELECT list. I found that there is a select filter implement( http://www.barelyfitz.com/projects/filterlist/index.php/1), but i can not get select component markupid, so filter can not init. -- H. L. Mencken http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html - It is even harder for the average ape to believe that he has descended from man. - 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: Logging for performance analysis
I will definitely share my findings. I saw 400% CPU (we have 4 proc box), the other day! What debugging approach are you taking? Douglas -Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of Daniel Toffetti Sent: Monday, April 27, 2009 9:46 PM To: users@wicket.apache.org Subject: Re: Logging for performance analysis Douglas Ferguson douglas at douglasferguson.us writes: We are experiencing some hard to trace performance issues (CPU pegged by JAVA). so we want to implement some logging in order to Audit the code. Any suggestions on wicket state that we can easily print out? I.E. size of page map? Etc? D/ Hi, I'm having similar problems, my setup is: Java 1.6.10, Wicket 1.3.5 and Tomcat 6 on Windows XP. Tomcat seems to need 50% CPU from time to time, and often for a very long time. Will try Jeremy's suggestion, mind to share your findings ? Cheers, Daniel - 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