Add Background image to Modal Window
hi all, I have been looking for means to customize modal window background. How can this be achieved? -- Ajayi S . Yinka +2348022684477
Re: Add Background image to Modal Window
Thanks Martin, I am actually using Panel as content. I have added to the code modalWindow.setCssClassName(css/modal.css); But this seems to have no effect. Do I have to do any other thing? Appreciate a nice response from you. On 29 September 2014 09:09, Martin Grigorov mgrigo...@apache.org wrote: Hi, ModalWindow sets CSS classes for its main panel, the title, the content, etc. If you use a Panel as content then you will need to add custom CSS rule to set the background image. If you use a Page as content then set the background image in your page's CSS. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 29, 2014 at 9:43 AM, Ajayi Yinka iamstyaj...@googlemail.com wrote: hi all, I have been looking for means to customize modal window background. How can this be achieved? -- Ajayi S . Yinka +2348022684477 -- Ajayi S . Yinka +2348022684477
Re: Add Background image to Modal Window
Thanks Martin, I added the following code to my Panel in the modalwindow; @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.render(CssHeaderItem.forCSS(.myModal {background-image:'images/logo.png'; background-color:#A1; }, null)); } This seems to add the color 'A1' to the border alone, but the content background is not transparent. The background is still raw white. The content background color is what I want to change to an image. I will appreciate your assistance. On 29 September 2014 10:13, Martin Grigorov mgrigo...@apache.org wrote: Hi, modalWindow.setCssClassName(myModal); in some #renderHead(IHeaderResponse) in your page do: response.render(CssHeaderItem.forCss(.myModal {background-image: 'the/path/to/the/image.png'} )) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 29, 2014 at 11:08 AM, Ajayi Yinka iamstyaj...@googlemail.com wrote: Thanks Martin, I am actually using Panel as content. I have added to the code modalWindow.setCssClassName(css/modal.css); But this seems to have no effect. Do I have to do any other thing? Appreciate a nice response from you. On 29 September 2014 09:09, Martin Grigorov mgrigo...@apache.org wrote: Hi, ModalWindow sets CSS classes for its main panel, the title, the content, etc. If you use a Panel as content then you will need to add custom CSS rule to set the background image. If you use a Page as content then set the background image in your page's CSS. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 29, 2014 at 9:43 AM, Ajayi Yinka iamstyaj...@googlemail.com wrote: hi all, I have been looking for means to customize modal window background. How can this be achieved? -- Ajayi S . Yinka +2348022684477 -- Ajayi S . Yinka +2348022684477 -- Ajayi S . Yinka +2348022684477
Re: clicking Ajax SubmitLink button called submit method twice
Martin, I have logged the issue in Jira with a quick start project. the ticket id is WICKET-5707 https://issues.apache.org/jira/browse/WICKET-5707. I do not like the work-around as it makes the code messy. Thanks you in anticipation of a quick fix. On 21 September 2014 20:06, Ajayi Yinka iamstyaj...@googlemail.com wrote: Thank you Martin, I change the implementation to below and its working fine now. Add this to Html div wicket:id=panel /div change the add(form) to add(new Panel(panel, object)); the modal window is implemented in panel For the purpose of checking, I will create the quickstart how it was implemented before as you requested. On 21 September 2014 16:45, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Sun, Sep 21, 2014 at 10:48 AM, Ajayi Yinka iamstyaj...@googlemail.com wrote: Hello everyone, submit method called more than one time trigering two modalWindows to open at the same time. See snippet below. If I put the just only modal.show(target) in the onsubmit method and others in Page constuctor, the problem still persist. I am using version 6.16. What am I doing wrong here? I will appreciate better way of doing this. AjaxSubmitLink addButton = new AjaxSubmitLink(addButton) { @Override public void onSubmit(AjaxRequestTarget target, Form form) { // your stuff if (target != null) { target should be always non-null here Object obj= new Object(); Object Panel panel = new ObjectPanel(modalWindow.getContentId(), object); modalWindow.setContent(panel); modalWindow.setTitle(New Object); //modalWindow.setEnabled(true); //modalWindow.showUnloadConfirmation(true); modalWindow.show(target); System.out.println(\n\nI am called 111 + target.getLastFocusedElementId()); } } }; Form form = new Form(form); form.add(modalWindow); form.add(addButton); The code looks OK to me. It shouldn't submit twice. Please create a quickstart app that we can debug and attach it to JIRA. Thank you. -- Ajayi S . Yinka +2348022684477 -- Ajayi S . Yinka +2348022684477 -- Ajayi S . Yinka +2348022684477
clicking Ajax SubmitLink button called submit method twice
Hello everyone, submit method called more than one time trigering two modalWindows to open at the same time. See snippet below. If I put the just only modal.show(target) in the onsubmit method and others in Page constuctor, the problem still persist. I am using version 6.16. What am I doing wrong here? I will appreciate better way of doing this. AjaxSubmitLink addButton = new AjaxSubmitLink(addButton) { @Override public void onSubmit(AjaxRequestTarget target, Form form) { // your stuff if (target != null) { Object obj= new Object(); Object Panel panel = new ObjectPanel(modalWindow.getContentId(), object); modalWindow.setContent(panel); modalWindow.setTitle(New Object); //modalWindow.setEnabled(true); //modalWindow.showUnloadConfirmation(true); modalWindow.show(target); System.out.println(\n\nI am called 111 + target.getLastFocusedElementId()); } } }; Form form = new Form(form); form.add(modalWindow); form.add(addButton); Thank you. -- Ajayi S . Yinka +2348022684477
Re: clicking Ajax SubmitLink button called submit method twice
Thank you Martin, I change the implementation to below and its working fine now. Add this to Html div wicket:id=panel /div change the add(form) to add(new Panel(panel, object)); the modal window is implemented in panel For the purpose of checking, I will create the quickstart how it was implemented before as you requested. On 21 September 2014 16:45, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Sun, Sep 21, 2014 at 10:48 AM, Ajayi Yinka iamstyaj...@googlemail.com wrote: Hello everyone, submit method called more than one time trigering two modalWindows to open at the same time. See snippet below. If I put the just only modal.show(target) in the onsubmit method and others in Page constuctor, the problem still persist. I am using version 6.16. What am I doing wrong here? I will appreciate better way of doing this. AjaxSubmitLink addButton = new AjaxSubmitLink(addButton) { @Override public void onSubmit(AjaxRequestTarget target, Form form) { // your stuff if (target != null) { target should be always non-null here Object obj= new Object(); Object Panel panel = new ObjectPanel(modalWindow.getContentId(), object); modalWindow.setContent(panel); modalWindow.setTitle(New Object); //modalWindow.setEnabled(true); //modalWindow.showUnloadConfirmation(true); modalWindow.show(target); System.out.println(\n\nI am called 111 + target.getLastFocusedElementId()); } } }; Form form = new Form(form); form.add(modalWindow); form.add(addButton); The code looks OK to me. It shouldn't submit twice. Please create a quickstart app that we can debug and attach it to JIRA. Thank you. -- Ajayi S . Yinka +2348022684477 -- Ajayi S . Yinka +2348022684477
Re: Another Wicket Site
No doubt of a nicer alpha version. Keep it up. On Tue, May 18, 2010 at 4:54 PM, Ayodeji Aladejebi aladej...@gmail.comwrote: Hi all, just to announce another wicket project I am working on. we just launched the beta version http://www.nelexnigeria.com -- Aladejebi Ayodeji A., DabarObjects Solutions Phone: +234 9 875 1763 Mobile: +234 803 589 1780 Email: d...@dabarobjects.com Web: www.dabarobjects.com -- Ajayi S . Yinka +2348022684477
Re: Just launched - www.onmydoorstep.com.au
good job. On Tue, May 18, 2010 at 4:49 AM, Jeremy Thomerson jer...@wickettraining.com wrote: I concur - very nice. -- Jeremy Thomerson http://www.wickettraining.com On Mon, May 17, 2010 at 8:43 PM, Cristi Manole cristiman...@gmail.com wrote: cool site! I like it! congrats. On Mon, May 17, 2010 at 9:31 PM, Richard Nichols r...@visural.com wrote: Hey all, Just thought fellow Wicketeers might be interested to take a look at a site I have just launched built 100% with Wicket - http://www.onmydoorstep.com.au/ The site is a community portal for people living in Victoria, Australia and displays government data about every suburb, city and town in the state. It also allows users to find government services and business nearby and submit community events/festivals and ask questions of other users. It integrates Wicket with Facebook Connect, Google Maps, Google Charts, Google's Weather API, plus on the backend, warp-persist, Guice and Hibernate/JPA. I also made extensive use of http://code.google.com/p/visural-wicket Anyhow - happy to answer any questions about the above technologies and the experience of building the site with Wicket. Also welcome feedback criticism should you have some :) cheers, Richard. -- Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Cristi Manole Nova Creator Software www.novacreator.com -- Ajayi S . Yinka +2348022684477
Re: Wicket in Php
I have gone through both symphony and resins. I am afraid resins will me both cash and time to get a fast development. I think I would rather stick to php for the project. Thanks to all for contribution Ajayi On Thu, May 21, 2009 at 12:36 PM, pkcinna pkci...@gmail.com wrote: I used quercus for a medium size project and it works great for accessing java packages since its implemented with a java servlet. My experience was the php.ini/configuration is limited and Quercus doesn't implement every method for every native php module. Also not sure about the licensing but if you grab a trial version of resin you can take the quercus.jar and run it from tomcat. Performance was very good and in some ways better than native PHP. For the most part Quercus worked good and if you run into a feature of your php app that is not support you can implement it as a java class. martin-g wrote: Hi Ajayi, Take a look at http://www.caucho.com/ Their web container (Resin) has an addon for PHP (Quercus). I have never use them but maybe you could mix the both apps ;-) El mié, 20-05-2009 a las 16:39 +0100, Ajayi Yinka escribió: Hi, Can anyone give me an insight on how I can integrate wicket into php project. I already have an application that is written in php. I will like to upgrade the application with some new features in which I prefer to use wicket. I am afraid if this is possible? - 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/Wicket-in-Php-tp23638080p23651726.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
Wicket in Php
Hi, Can anyone give me an insight on how I can integrate wicket into php project. I already have an application that is written in php. I will like to upgrade the application with some new features in which I prefer to use wicket. I am afraid if this is possible?
Re: Wicket in Php
Thanks May I get the description on how to do the integration. I may not mind the integration, provided it can handle my session for me (As in if a user log in through a wicket page, we can use this same log in instance to manage the wicket page). regards, yinka On Wed, May 20, 2009 at 4:45 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Wicket is written in Java. You would need to build an application in Java, running in a servlet container. Perhaps you could do an integration and have some pages running in PHP and some in Java, but you are looking at a complex project. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 20, 2009 at 10:39 AM, Ajayi Yinka iamstyaj...@googlemail.com wrote: Hi, Can anyone give me an insight on how I can integrate wicket into php project. I already have an application that is written in php. I will like to upgrade the application with some new features in which I prefer to use wicket. I am afraid if this is possible? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Fwd: NewBie question :Implementation of Collapsible Link
-- Forwarded message -- From: Ajayi Yinka iamstyaj...@googlemail.com Date: Tue, Mar 31, 2009 at 9:01 AM Subject: Re: NewBie question :Implementation of Collapsible Link To: users@wicket.apache.org Thanks so much. I want a tree view (What I really want to implement is a collapsible list, whereby a click on a link will display sublinks.) I am afraid if you understand what I am trying to do now. I guess the following html will give better insight. ul liItem 1/li liItem 2/li liItem 3 ul liItem 3.1/li liItem 3.2 ul liItem 3.2.1/li liItem 3.2.2/li liItem 3.2.3/li /ul /li liItem 3.3/li /ul /li liItem 4 ul liItem 4.1/li liItem 4.2 ul liItem 4.2.1/li liItem 4.2.2/li /ul /li /ul /li liItem 5/li /ul I will appreate your good indulgence concerning my request. Thanks Reagard, Yinka On Tue, Mar 31, 2009 at 3:30 AM, Jeremy Thomerson jer...@wickettraining.com wrote: More details necessary. An accordion panel or tree view? Etc... -- Jeremy Thomerson http://www.wickettraining.com On Mon, Mar 30, 2009 at 3:19 AM, Ajayi Yinka iamstyaj...@googlemail.com wrote: I am trying to see if i can implement collapsible link in my page. i had tried to use Link Tree, but I was getting error which I could not even trace or decipher the cause. Please, can anyone give me insight on the best way to implement the collapsible link Thanks. Yinka
Re: NewBie question :Implementation of Collapsible Link
I think what I want to do is on this page http://www.wicket-library.com/wicket-examples/ajax/tree/table/editable.1 Thanks for your indulgence. On Tue, Mar 31, 2009 at 5:44 PM, James Carman jcar...@carmanconsulting.comwrote: Are you looking for a menu system? On Tue, Mar 31, 2009 at 4:04 AM, Ajayi Yinka iamstyaj...@googlemail.com wrote: -- Forwarded message -- From: Ajayi Yinka iamstyaj...@googlemail.com Date: Tue, Mar 31, 2009 at 9:01 AM Subject: Re: NewBie question :Implementation of Collapsible Link To: users@wicket.apache.org Thanks so much. I want a tree view (What I really want to implement is a collapsible list, whereby a click on a link will display sublinks.) I am afraid if you understand what I am trying to do now. I guess the following html will give better insight. ul liItem 1/li liItem 2/li liItem 3 ul liItem 3.1/li liItem 3.2 ul liItem 3.2.1/li liItem 3.2.2/li liItem 3.2.3/li /ul /li liItem 3.3/li /ul /li liItem 4 ul liItem 4.1/li liItem 4.2 ul liItem 4.2.1/li liItem 4.2.2/li /ul /li /ul /li liItem 5/li /ul I will appreate your good indulgence concerning my request. Thanks Reagard, Yinka On Tue, Mar 31, 2009 at 3:30 AM, Jeremy Thomerson jer...@wickettraining.com wrote: More details necessary. An accordion panel or tree view? Etc... -- Jeremy Thomerson http://www.wickettraining.com On Mon, Mar 30, 2009 at 3:19 AM, Ajayi Yinka iamstyaj...@googlemail.com wrote: I am trying to see if i can implement collapsible link in my page. i had tried to use Link Tree, but I was getting error which I could not even trace or decipher the cause. Please, can anyone give me insight on the best way to implement the collapsible link Thanks. Yinka - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
NewBie question :Implementation of Collapsible Link
I am trying to see if i can implement collapsible link in my page. i had tried to use Link Tree, but I was getting error which I could not even trace or decipher the cause. Please, can anyone give me insight on the best way to implement the collapsible link Thanks. Yinka
Re: Newbie -How to Implement LinkTree
(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) HTML part: wicket:panel div id=doc-side-menu h2Menu/h2 ul wicket:id=node1 li wicket:id=link1Link 1/li !-- li wicket:id=link2Link 2/li li wicket:id=link3Link 3/li -- /ul /div /wicket:panel The codes are pasted below. TPListTreeModelNode linkNodes=new TPListTreeModelNode(linkRoot); //start adding child node linkNodes.addNodes(link1, 1); // linkNodes.addNodes(link2, 2); // linkNodes.addNodes(link3, 2); tree = new LinkTree(node1, new TPListTreeModel(linkNodes, true)) { @Override protected Component newNodeComponent(String id, IModel model) { return new LinkIconPanel(id, model, this) { @Override protected void onNodeLinkClicked(TreeNode node, BaseTree tree, AjaxRequestTarget target) { tree.getTreeState().selectNode(node, !tree.getTreeState().isNodeSelected(node)); onClicked(node, tree, target); } @Override protected Component newContentComponent(String componentId, BaseTree tree, IModel model) { return new Label(componentId, getNodeTextModel(model)); } }; } protected void onClicked(TreeNode node, BaseTree tree, AjaxRequestTarget target) { if (!node.isLeaf()) { if (tree.getTreeState().isNodeExpanded(node)) { collapseAll(node); } else { expandAll(node); } tree.updateTree(target); } else { System.out.println(Arrays .toString(((DefaultMutableTreeNode) node) .getUserObjectPath())); } } protected void collapseAll(final TreeNode treeNode) { tree.getTreeState().collapseNode(treeNode); for (final Enumeration e = treeNode.children();e.hasMoreElements();) { collapseAll((TreeNode) e.nextElement()); } } protected void expandAll(final TreeNode treeNode) { tree.getTreeState().expandNode(treeNode); for (final Enumeration e = treeNode.children();e.hasMoreElements();) { expandAll((TreeNode) e.nextElement()); } } }; public class TPListTreeModelNode extends DefaultMutableTreeNode { Object ObjectNode; String tree=; public TPListTreeModelNode(Object ObjectNode) { super(ObjectNode); this.ObjectNode=ObjectNode; } public TPListTreeModelNode() { super(); this.ObjectNode=new DefaultMutableTreeNode(); tree=default; } public void addNodes(String childName, int grandChildNumber) { IModel newNode=new Model(childName); DefaultMutableTreeNode child =new DefaultMutableTreeNode((Object)newNode); // DefaultMutableTreeNode grandChild; add(child); /* for(int grandChildIndex=0; grandChildIndexgrandChildNumber; grandChildIndex++) { grandChild = new DefaultMutableTreeNode(childName+. +grandChildNumber); child.add(grandChild); } */ } @Override public String toString(){ return tree; } } -- Ajayi Yinka, Itex Integrated Services, Nig. +2348022684477
Re: Need Wicket Examples
Download the wicket plugin for netbeans(Go to tools- Plugins, and select available plugins) and create a new wicket project after this. Yinka On Thu, Mar 26, 2009 at 7:43 AM, Philippe Marzouk p...@ozigo.org wrote: On Thu, Mar 26, 2009 at 12:06:23AM -0700, FaRHaN wrote: I have Wicket in Action book but those examples are being explained in Ant/Maven and not in netbeans IDE. Are there any examples which are also executable in netbeans IDE ? In Netbeans, install the Maven plugin and create a new Maven project using an existing pom.xml. Philippe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Ajayi Yinka, Itex Integrated Services, Nig. +2348022684477
Fwd: Question on LinkTree implementation
I found out that if no node is added to the node1, The onclick method works as supposed. But if I try to add one sub-node to it, I begin to have the same type of error as below. I am sure there is a problem somewhere that I have not been able to trace (I am a new to wicket framework). Could anyoen help me out. Thanks -- Forwarded message -- From: Ajayi Yinka iamstyaj...@googlemail.com Date: Thu, Mar 26, 2009 at 8:34 AM Subject: Question on LinkTree implementation To: users@wicket.apache.org hi all, I am having problems in implementing LinkTree in my page. I use to get the component not found exception ( WicketMessage: close tag not found for tag: ul id=node11 wicket:id=node1. Component: [MarkupContainer [Component id = node1]] Root cause: org.apache.wicket.markup.MarkupException: close tag not found for tag: ul id=node11 wicket:id=node1. Component: [MarkupContainer [Component id = node1]] at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:121) at org.apache.wicket.Component.renderComponent(Component.java:2480) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1297) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1476) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:639) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:112) at org.apache.wicket.Component.renderComponent(Component.java:2480) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1297) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1427) at org.apache.wicket.Page.onRender(Page.java:1470) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.Page.renderPage(Page.java:904) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:231) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218) at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:460) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180
Fwd: Question on LinkTree implementation
i will appreciate anyone that can help me look into this problem. I think I lack the knowledge on proper implementation on ListTree. I had surfed the net, I couldn't find something that could be of help. Please, could anyone help me out. -- Forwarded message -- From: Ajayi Yinka iamstyaj...@googlemail.com Date: Thu, Mar 26, 2009 at 9:32 AM Subject: Fwd: Question on LinkTree implementation To: users@wicket.apache.org I found out that if no node is added to the node1, The onclick method works as supposed. But if I try to add one sub-node to it, I begin to have the same type of error as below. I am sure there is a problem somewhere that I have not been able to trace (I am a new to wicket framework). Could anyoen help me out. Thanks -- Forwarded message -- From: Ajayi Yinka iamstyaj...@googlemail.com Date: Thu, Mar 26, 2009 at 8:34 AM Subject: Question on LinkTree implementation To: users@wicket.apache.org hi all, I am having problems in implementing LinkTree in my page. I use to get the component not found exception ( WicketMessage: close tag not found for tag: ul id=node11 wicket:id=node1. Component: [MarkupContainer [Component id = node1]] Root cause: org.apache.wicket.markup.MarkupException: close tag not found for tag: ul id=node11 wicket:id=node1. Component: [MarkupContainer [Component id = node1]] at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:121) at org.apache.wicket.Component.renderComponent(Component.java:2480) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1297) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1476) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:639) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:112) at org.apache.wicket.Component.renderComponent(Component.java:2480) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1297) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1427) at org.apache.wicket.Page.onRender(Page.java:1470) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.Page.renderPage(Page.java:904) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:231) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218) at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:460) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
Re: Wicket error in GlassFish
I think you are having something in your web.xml file like welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list if you have it, you may remove it. 2008/12/16 Daniel lia...@gmail.com Hi, I'm an newbie in Wicket. When I create my first hello world wicket program, strange error encounted. The hello world program is just to show 'Hello World' through Label. The web.xml is as below, servlet servlet-nameHelloWorldApplication/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationClassName/param-name param-valuecom.example.helloworld.HelloWorldApplication/param-value /init-param /servlet servlet-mapping servlet-nameHelloWorldApplication/servlet-name url-pattern/helloWorld/*/url-pattern /servlet-mapping In Tomcat env, when I call the URL : http://localhost:8080/WicketExamples/helloWorld/. http://localhost:8080/WicketExamples/helloWorld/Everything goes well. When I use the URL: http://localhost:8080/WicketExamples/, show 404 error. But the same program runs in GlassFish env. when I call the same URL, error comes as below 2008-12-16 17:32:00 org.apache.catalina.core.ApplicationContext log 严重: WebModule[/WicketExamples]StandardWrapper.Throwable org.apache.wicket.WicketRuntimeException: Unable to create application of class com.example.helloworld.HelloWorldApplication at org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:82) at org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:666) at org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:209) at javax.servlet.GenericServlet.init(GenericServlet.java:270) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1198) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:863) at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:369) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) Caused by: java.lang.ClassNotFoundException: com.example.helloworld.HelloWorldApplication at
Re: Wicket error in GlassFish
From the error log, it seems glass fish could not load the webApplication class. Make sure your webApplication class is in the correct class path (com.example.helloworld.HelloWorldApplication) And the webApplcation class is in the correct format. or and may change your web.xml file to be in this format: filter filter-nameHelloWorldApplication/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.example.helloworld.HelloWorldApplication/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param /filter 2008/12/16 Daniel lia...@gmail.com Hi, I'm an newbie in Wicket. When I create my first hello world wicket program, strange error encounted. The hello world program is just to show 'Hello World' through Label. The web.xml is as below, servlet servlet-nameHelloWorldApplication/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationClassName/param-name param-valuecom.example.helloworld.HelloWorldApplication/param-value /init-param /servlet servlet-mapping servlet-nameHelloWorldApplication/servlet-name url-pattern/helloWorld/*/url-pattern /servlet-mapping In Tomcat env, when I call the URL : http://localhost:8080/WicketExamples/helloWorld/. http://localhost:8080/WicketExamples/helloWorld/Everything goes well. When I use the URL: http://localhost:8080/WicketExamples/, show 404 error. But the same program runs in GlassFish env. when I call the same URL, error comes as below 2008-12-16 17:32:00 org.apache.catalina.core.ApplicationContext log 严重: WebModule[/WicketExamples]StandardWrapper.Throwable org.apache.wicket.WicketRuntimeException: Unable to create application of class com.example.helloworld.HelloWorldApplication at org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:82) at org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:666) at org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:209) at javax.servlet.GenericServlet.init(GenericServlet.java:270) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1198) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:863) at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:369) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at
Re: FeedbackPanel and page refresh (f5) after submit
Hurray, i have got over it. The problem I was having is that, I forgort to implement the cleanupFeedbackMessages() method which I declare in my session class. I called the method but forgot to put the codes therein. thanks so much. Now, i can continue with my app. I will appreciate it if anyone can give me a simplest way of implement jasper report with wicket. Regards, Yinka. On Thu, Sep 11, 2008 at 9:26 PM, Igor Vaynberg [EMAIL PROTECTED]wrote: here is how it works: if the message is reported against session it is held until rendered, if the message is reported against a component it is held only during the request in which it has been reported. wicket is smart enough to look at the render strategy and not clear messages during the redirect between post and get, so i am not sure why this is not working for you as it is working fine in the forminput wicket example. if you want to change this behavior you can override session.cleanupFeedbackMessages() and implement whatever behavior you wish. by the way, this is all very apparent from the code. i suggest you learn your ide and useful ide tools such as call hieararchy, ctrl+click to follow, etc. -igor On Thu, Sep 11, 2008 at 8:43 PM, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Thu, 11 Sep 2008, Ajayi Yinka wrote: Thomas Lutz wrote: I've a form with some validation added, nothing special (Required, Email check). When I submit the form I get the validation messages in the FeedbackPanel as expected, but :-), hitting f5 for a page refresh after the submit removes them (don't ask why refresh after submit... users of my webapp do stuff like this :-)). The form is not submitted, only redisplayed, but the validation messages are missing. Is there something I can do about this ? I think that what happens is that a) the normal POST b) the redirect to GET after POST [1] c) feedback messages are cleared from session on detaching the request [2] d) refresh does the GET again, and the flash feedback messages cannot be displayed, because they are already cleared from the session The solution is left as an exercise for the reader ;) Because now I must get going... Best wishes, Timo [1] http://en.wikipedia.org/wiki/Post/Redirect/Get [2] http://fisheye6.atlassian.com/browse/wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/RequestCycle.java?r=645227#l1058 -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Components render problem
Thanks for your concern. I added it (check the LoginForm class, you will see the onSubmit method). I used the default form submit button. I tried the wicket button before, but the same problem persist. On Thu, Sep 11, 2008 at 5:33 AM, Serkan Camurcuoglu [EMAIL PROTECTED]wrote: how do you submit the form? it seems like you do not add a submit button or submit link into the form.. Ajayi Yinka wrote: Hi, This problem still persist till now. I can really figure out the cause of the problem. Could anyone help me out? This is one of the pages in my application. I have searched all the texts I have on wicket to get the cause of the problem but I coudn't find one. I appreciate any asisstance anyone can render on this. Thanks in advance. package web.page; import web.UserSession; import web.component.MainNavigationComponent; import pojo.User; import services.TouchPayService; import java.util.List; import org.apache.wicket.Session; import org.apache.wicket.injection.web.InjectorHolder; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.PasswordTextField; import org.apache.wicket.markup.html.form.TextField; import org.apache.wicket.markup.html.panel.FeedbackPanel; import org.apache.wicket.model.Model; import org.apache.wicket.spring.injection.annot.SpringBean; /** * * @author AJAYI YINKA */ public final class Login extends AbstractConsoleWebPage { Form form; private TextField userId; private PasswordTextField userPassword; ListUser users; @SpringBean TouchPayService touchpay; private static final long serialVersionUID = 1L; public Login() { InjectorHolder.getInjector().inject(this); org.apache.wicket.Component mainNavigation; mainNavigation = new MainNavigationComponent(mainNavigation, null); userId = new TextField(userId, new Model( )); userId.setRequired(true); userPassword = new PasswordTextField(userPassword, new Model( )); userPassword.setRequired(true); form = new LoginFormComponent(f); add(new FeedbackPanel(errorMsg)); form.add(userId); form.add(userPassword); add(form); add(mainNavigation); } public void setUser(User user) { ((UserSession) getSession()).setCurrentUser(user); } @Override public String getTitle() { return Login Page; } class LoginFormComponent extends Form { public LoginFormComponent(String id) { super(id); } @Override public void onError(){ setResponsePage(Login.class); } @Override public void onSubmit() { String userId = (String) Login.this.getUserId(); String userPassword = (String) Login.this.getPassword(); User user = null; users = touchpay.findAllUsers(); for (User userInDB : users) { if ((userInDB.getUsername().equals(userId)) (userInDB.getPassword().equals(userPassword))) { user = userInDB; } } if (user == null) { // not yet implemented } else { setUser(user); Session.get().info(You have logged in successfully); if (!continueToOriginalDestination()) { setResponsePage(HomePage.class); } } } } /** Helper methods to retrieve the userId and the password **/ protected String getUserId() { return userId.getModelObjectAsString(); } protected String getPassword() { return userPassword.getModelObjectAsString(); } } On Wed, Sep 10, 2008 at 6:18 AM, Ajayi Yinka [EMAIL PROTECTED] wrote: hi guys, I have try to get over the problem by calling Login.class in onError method. this seems to cover this bugs, but I am not satistify as the error message is still redisplaying in the next page. I think what i really need is the problems that are associated with validation. On Wed, Sep 10, 2008 at 4:58 AM, Ajayi Yinka [EMAIL PROTECTED] wrote: I thought as much, it seems I am missing something out in validation process. Please help me check out from this snippet of my codes userId = new TextField(userId, new Model()); userId.setRequired(true); userPassword = new PasswordTextField(userPassword, new Model()); userPassword.setRequired(true); form.add(userId); form.add(userPassword); add(form); add(new FeedbackPanel(errorMsg)); thanks. On Wed, Sep 10, 2008 at 4:06 AM, Serkan Camurcuoglu [EMAIL PROTECTED] wrote: if onSubmit is not called and the form is redisplayed with the values that you've last entered, it seems like the form is not validated successfully.. Ajayi Yinka wrote: Hi guys, I am a newbie in wicket. I am presently developpng
Re: Reporting Engine on Wicket 1.3.4
thanks, I will try that yinka On Thu, Sep 11, 2008 at 6:00 AM, Edvin Syse [EMAIL PROTECTED] wrote: The freemarker-version is something like this: The user has created a template using the .fo format with Freemarker, a (too) simple example could be: http://tornado.no/template/show?template=global.fop (Notice the list-directive to iterate over articles in this case, since it is a CMS). Then, in the Wicket page I do: byte[] b = FopUtils.createPDF(aStringWithTheMarkup); RequestCycle.get().setRequestTarget(new ResourceStreamRequestTarget( new ByteArrayResourceStream(b, contentType)).setFileName(page.getTitle() + .pdf)); (contentType is application/pdf). The FopUtils class is like this: public class FopUtils { private static FopFactory fopFactory = FopFactory.newInstance(); public static byte[] createPDF(String foMarkup) throws IOException, FOPException, TransformerException { ByteArrayOutputStream out = new ByteArrayOutputStream(); FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out); // Setup JAXP using identity transformer TransformerFactory factory = TransformerFactory.newInstance(); javax.xml.transform.Transformer transformer = factory.newTransformer(); // identity transformer // Setup input stream Source src = new StreamSource(new StringInputStream(foMarkup)); // Resulting SAX events (the generated FO) must be piped through to FOP Result res = new SAXResult(fop.getDefaultHandler()); // Start XSLT transformation and FOP processing transformer.transform(src, res); // Result processing FormattingResults foResults = fop.getResults(); out.close(); return out.toByteArray(); } } .. and you get a simple PDF served in milliseconds :) -- Edvin Ajayi Yinka skrev: Hi, could you shed more lights on how you achieve this? Thanks in advance. Yinka On Thu, Sep 11, 2008 at 3:56 AM, Edvin Syse [EMAIL PROTECTED] wrote: We use Apache XmlGraphhics/FOP to create PDF successfully in our Wicket-applications. Some places I use an external XML-datasource and convert using XSLT, and other times I use Freemarker to generate the .fo directly. It's extremely fast, and the markup is easy to understand and easy to change/style. Actually, in our Wicket-based CMS, the users can change templates so that the same article can output HTML, RSS/XML or even PDF through Apache FOP :) -- Edvin David R Robison skrev: We use Jasper reports. We took what had been started and made some modifications and have it working in Wicket. It works well for us. David Eyal Golan wrote: reiern70: Could you please elaborate on how you included BIRT as the part of the application? You can mail directly to me if you feel it is out of Wicket's scope. Thanks On Tue, Sep 9, 2008 at 2:19 PM, reiern70 [EMAIL PROTECTED] wrote: Hi, Actually there is no deed to have BIRT in a separated WAR: in our project we have included it as a (singleton) runtime which is part of the application. We also have some kind of WEB interface to manage report parameters... We found BIRT quite useful for generating reports thought we had some problems when migrating to new versions (sometimes things that were working perfectly with one version got terrible unfixed when moving to the next). With BIRT you get for free the ability to produce Excel, Word, etc... In our project we went a bit further and built a machinery that allows to combine BIRT (and non BIRT) PDF reports into books: BIRT reports are very good in summarizing information but you are on your own when you have to combine them... This tool allows you to build a tree like structure (a book) where the nodes are BIRT reports. The tool will help in collecting all the bookmarks into a table of contents, generate combined bookmarks and so on... For simpler use cases I have used iText, JFreeChart, JExcelAPI, OpenCSV... Best, Ernesto egolan74 wrote: Hi, We use BIRT as a report engine. A freelancer has created the prototype BIRT project, and now we took over it. 1. BIRT gives you all your needs. 2. I don't like it very much actually. 3. It is a different project than Wicket. (different WAR) 4. I plan to check how to integrate it to be in the same project / WAR of our main web application. Our integration: We don't like the way BIRT implemented the parameters window so we wanted to make our own. We found out that it would be much easier to develop it with Wicket than to customize it in BIRT. So: 1. We have a page that has an IFrame (inline frame). 2. For each report (in the BIRT project) there's a Wicket's popup modal window to select parameters. I am very happy with the module we built for that. It is very easy to create new parameters window. 3. When the user chooses
Re: Components render problem
When I debugged the codes, it wasn't getting to the onSubmit method. Maybe you try to do this with the code, don't enter value when the page is first rendered and click the submit button. After that, enter values nto the textfields and click the submit button and check if the onSubmit method is executed. If this works for you, then something is wrong in my code that I don't know about. Thanks so much, yinka On Thu, Sep 11, 2008 at 6:33 AM, Serkan Camurcuoglu [EMAIL PROTECTED]wrote: turning your code into a quickstart project works for me, onSubmit is successfully called.. Did you debug and see the return value of continueToOriginalDestination() ? Ajayi Yinka wrote: Thanks for your concern. I added it (check the LoginForm class, you will see the onSubmit method). I used the default form submit button. I tried the wicket button before, but the same problem persist. On Thu, Sep 11, 2008 at 5:33 AM, Serkan Camurcuoglu [EMAIL PROTECTED] wrote: how do you submit the form? it seems like you do not add a submit button or submit link into the form.. Ajayi Yinka wrote: Hi, This problem still persist till now. I can really figure out the cause of the problem. Could anyone help me out? This is one of the pages in my application. I have searched all the texts I have on wicket to get the cause of the problem but I coudn't find one. I appreciate any asisstance anyone can render on this. Thanks in advance. package web.page; import web.UserSession; import web.component.MainNavigationComponent; import pojo.User; import services.TouchPayService; import java.util.List; import org.apache.wicket.Session; import org.apache.wicket.injection.web.InjectorHolder; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.PasswordTextField; import org.apache.wicket.markup.html.form.TextField; import org.apache.wicket.markup.html.panel.FeedbackPanel; import org.apache.wicket.model.Model; import org.apache.wicket.spring.injection.annot.SpringBean; /** * * @author AJAYI YINKA */ public final class Login extends AbstractConsoleWebPage { Form form; private TextField userId; private PasswordTextField userPassword; ListUser users; @SpringBean TouchPayService touchpay; private static final long serialVersionUID = 1L; public Login() { InjectorHolder.getInjector().inject(this); org.apache.wicket.Component mainNavigation; mainNavigation = new MainNavigationComponent(mainNavigation, null); userId = new TextField(userId, new Model( )); userId.setRequired(true); userPassword = new PasswordTextField(userPassword, new Model( )); userPassword.setRequired(true); form = new LoginFormComponent(f); add(new FeedbackPanel(errorMsg)); form.add(userId); form.add(userPassword); add(form); add(mainNavigation); } public void setUser(User user) { ((UserSession) getSession()).setCurrentUser(user); } @Override public String getTitle() { return Login Page; } class LoginFormComponent extends Form { public LoginFormComponent(String id) { super(id); } @Override public void onError(){ setResponsePage(Login.class); } @Override public void onSubmit() { String userId = (String) Login.this.getUserId(); String userPassword = (String) Login.this.getPassword(); User user = null; users = touchpay.findAllUsers(); for (User userInDB : users) { if ((userInDB.getUsername().equals(userId)) (userInDB.getPassword().equals(userPassword))) { user = userInDB; } } if (user == null) { // not yet implemented } else { setUser(user); Session.get().info(You have logged in successfully); if (!continueToOriginalDestination()) { setResponsePage(HomePage.class); } } } } /** Helper methods to retrieve the userId and the password **/ protected String getUserId() { return userId.getModelObjectAsString(); } protected String getPassword() { return userPassword.getModelObjectAsString(); } } On Wed, Sep 10, 2008 at 6:18 AM, Ajayi Yinka [EMAIL PROTECTED] wrote: hi guys, I have try to get over the problem by calling Login.class in onError method. this seems to cover this bugs, but I am not satistify as the error message is still redisplaying in the next page. I think what i really need is the problems that are associated with validation. On Wed, Sep 10, 2008 at 4:58 AM, Ajayi Yinka [EMAIL PROTECTED] wrote: I thought as much, it seems I am missing something out in validation process. Please help me check out from this snippet of my codes userId = new
Re: Components render problem
Thanks so much, I appreciate this, Now help me remove the onError method from the LoginForm class so that Login.class is not called. Do the same thing again and check the result. check if the page in the setResponsePage is redered. Actually, I am confussed with this problem. thanks so much yinka On Thu, Sep 11, 2008 at 6:57 AM, Serkan Camurcuoglu [EMAIL PROTECTED]wrote: when I try, it works as expected, onError is called whenever data is not entered, and onSubmit is called when I enter both values.. Ajayi Yinka wrote: When I debugged the codes, it wasn't getting to the onSubmit method. Maybe you try to do this with the code, don't enter value when the page is first rendered and click the submit button. After that, enter values nto the textfields and click the submit button and check if the onSubmit method is executed. If this works for you, then something is wrong in my code that I don't know about. Thanks so much, yinka On Thu, Sep 11, 2008 at 6:33 AM, Serkan Camurcuoglu [EMAIL PROTECTED] wrote: turning your code into a quickstart project works for me, onSubmit is successfully called.. Did you debug and see the return value of continueToOriginalDestination() ? Ajayi Yinka wrote: Thanks for your concern. I added it (check the LoginForm class, you will see the onSubmit method). I used the default form submit button. I tried the wicket button before, but the same problem persist. On Thu, Sep 11, 2008 at 5:33 AM, Serkan Camurcuoglu [EMAIL PROTECTED] wrote: how do you submit the form? it seems like you do not add a submit button or submit link into the form.. Ajayi Yinka wrote: Hi, This problem still persist till now. I can really figure out the cause of the problem. Could anyone help me out? This is one of the pages in my application. I have searched all the texts I have on wicket to get the cause of the problem but I coudn't find one. I appreciate any asisstance anyone can render on this. Thanks in advance. package web.page; import web.UserSession; import web.component.MainNavigationComponent; import pojo.User; import services.TouchPayService; import java.util.List; import org.apache.wicket.Session; import org.apache.wicket.injection.web.InjectorHolder; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.PasswordTextField; import org.apache.wicket.markup.html.form.TextField; import org.apache.wicket.markup.html.panel.FeedbackPanel; import org.apache.wicket.model.Model; import org.apache.wicket.spring.injection.annot.SpringBean; /** * * @author AJAYI YINKA */ public final class Login extends AbstractConsoleWebPage { Form form; private TextField userId; private PasswordTextField userPassword; ListUser users; @SpringBean TouchPayService touchpay; private static final long serialVersionUID = 1L; public Login() { InjectorHolder.getInjector().inject(this); org.apache.wicket.Component mainNavigation; mainNavigation = new MainNavigationComponent(mainNavigation, null); userId = new TextField(userId, new Model( )); userId.setRequired(true); userPassword = new PasswordTextField(userPassword, new Model( )); userPassword.setRequired(true); form = new LoginFormComponent(f); add(new FeedbackPanel(errorMsg)); form.add(userId); form.add(userPassword); add(form); add(mainNavigation); } public void setUser(User user) { ((UserSession) getSession()).setCurrentUser(user); } @Override public String getTitle() { return Login Page; } class LoginFormComponent extends Form { public LoginFormComponent(String id) { super(id); } @Override public void onError(){ setResponsePage(Login.class); } @Override public void onSubmit() { String userId = (String) Login.this.getUserId(); String userPassword = (String) Login.this.getPassword(); User user = null; users = touchpay.findAllUsers(); for (User userInDB : users) { if ((userInDB.getUsername().equals(userId)) (userInDB.getPassword().equals(userPassword))) { user = userInDB; } } if (user == null) { // not yet implemented } else { setUser(user); Session.get().info(You have logged in successfully); if (!continueToOriginalDestination()) { setResponsePage(HomePage.class); } } } } /** Helper methods to retrieve the userId and the password **/ protected String getUserId() { return userId.getModelObjectAsString(); } protected String getPassword() { return userPassword.getModelObjectAsString(); } } On Wed, Sep 10, 2008 at 6:18 AM, Ajayi Yinka [EMAIL PROTECTED] wrote: hi guys, I have try
Re: FeedbackPanel and page refresh (f5) after submit
this is exacltly the same problem I am having. Could anyone render any solution to this. Thanks Yinka. On Thu, Sep 11, 2008 at 7:40 AM, kayce [EMAIL PROTECTED] wrote: Did you find a solution for this? Thanks Thomas Lutz wrote: I've a form with some validation added, nothing special (Required, Email check). When I submit the form I get the validation messages in the FeedbackPanel as expected, but :-), hitting f5 for a page refresh after the submit removes them (don't ask why refresh after submit... users of my webapp do stuff like this :-)). The form is not submitted, only redisplayed, but the validation messages are missing. Is there something I can do about this ? Thanks in advance, Tom -- View this message in context: http://www.nabble.com/FeedbackPanel-and-page-refresh-%28f5%29-after-submit-tp14413642p19436382.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Components render problem
Thanks, I have downloaded the code, but it seems your application structure is somehow different from mine. I will try to figure this out. On Thu, Sep 11, 2008 at 7:53 AM, Serkan Camurcuoglu [EMAIL PROTECTED]wrote: I can't help that much but I've uploaded my quickstart project here http://www.nabble.com/file/p19436483/ajaylogin.zip ajaylogin.zip , you can run it using mvn -Dmaven.test.skip=true jetty:run and see for yourself.. Good luck.. Ajayi Yinka wrote: Thanks so much, I appreciate this, Now help me remove the onError method from the LoginForm class so that Login.class is not called. Do the same thing again and check the result. check if the page in the setResponsePage is redered. Actually, I am confussed with this problem. thanks so much yinka On Thu, Sep 11, 2008 at 6:57 AM, Serkan Camurcuoglu [EMAIL PROTECTED]wrote: when I try, it works as expected, onError is called whenever data is not entered, and onSubmit is called when I enter both values.. Ajayi Yinka wrote: When I debugged the codes, it wasn't getting to the onSubmit method. Maybe you try to do this with the code, don't enter value when the page is first rendered and click the submit button. After that, enter values nto the textfields and click the submit button and check if the onSubmit method is executed. If this works for you, then something is wrong in my code that I don't know about. Thanks so much, yinka On Thu, Sep 11, 2008 at 6:33 AM, Serkan Camurcuoglu [EMAIL PROTECTED] wrote: turning your code into a quickstart project works for me, onSubmit is successfully called.. Did you debug and see the return value of continueToOriginalDestination() ? -- View this message in context: http://www.nabble.com/Components-render-problem-tp19411126p19436483.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Components render problem
Hi guys, I am a newbie in wicket. I am presently developpng an application using wicket framework. I am having problem in submitting my forms. The form submissionis actually working whenever I enter a value but if no value is put in the textbox, feedback panel will display the error message (I think this is good). The problem is that if I now enter values in the textboxes, the onsubmit method is not executed. I dont know what is causing this. I need a prompt response as this is delaying the progress of my job. Thanks. Yinka.
Re: Components render problem
I thought as much, it seems I am missing something out in validation process. Please help me check out from this snippet of my codes userId = new TextField(userId, new Model()); userId.setRequired(true); userPassword = new PasswordTextField(userPassword, new Model()); userPassword.setRequired(true); form.add(userId); form.add(userPassword); add(form); add(new FeedbackPanel(errorMsg)); thanks. On Wed, Sep 10, 2008 at 4:06 AM, Serkan Camurcuoglu [EMAIL PROTECTED]wrote: if onSubmit is not called and the form is redisplayed with the values that you've last entered, it seems like the form is not validated successfully.. Ajayi Yinka wrote: Hi guys, I am a newbie in wicket. I am presently developpng an application using wicket framework. I am having problem in submitting my forms. The form submissionis actually working whenever I enter a value but if no value is put in the textbox, feedback panel will display the error message (I think this is good). The problem is that if I now enter values in the textboxes, the onsubmit method is not executed. I dont know what is causing this. I need a prompt response as this is delaying the progress of my job. Thanks. Yinka. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Components render problem
hi guys, I have try to get over the problem by calling Login.class in onError method. this seems to cover this bugs, but I am not satistify as the error message is still redisplaying in the next page. I think what i really need is the problems that are associated with validation. On Wed, Sep 10, 2008 at 4:58 AM, Ajayi Yinka [EMAIL PROTECTED]wrote: I thought as much, it seems I am missing something out in validation process. Please help me check out from this snippet of my codes userId = new TextField(userId, new Model()); userId.setRequired(true); userPassword = new PasswordTextField(userPassword, new Model()); userPassword.setRequired(true); form.add(userId); form.add(userPassword); add(form); add(new FeedbackPanel(errorMsg)); thanks. On Wed, Sep 10, 2008 at 4:06 AM, Serkan Camurcuoglu [EMAIL PROTECTED]wrote: if onSubmit is not called and the form is redisplayed with the values that you've last entered, it seems like the form is not validated successfully.. Ajayi Yinka wrote: Hi guys, I am a newbie in wicket. I am presently developpng an application using wicket framework. I am having problem in submitting my forms. The form submissionis actually working whenever I enter a value but if no value is put in the textbox, feedback panel will display the error message (I think this is good). The problem is that if I now enter values in the textboxes, the onsubmit method is not executed. I dont know what is causing this. I need a prompt response as this is delaying the progress of my job. Thanks. Yinka. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]