RE: Any solution for the context problem with the relative links of BookmarkablePageLink?
I'll explain the problem in detail. I think it's similar to the link I provided but maybe not: I have a site whose home page that is rendered via: www.mysite.com/content/home/pName/pValue but obviously the users will get their via: www.mysite.com I want the home page to be serviced via a forward to www.mysite.com/content/home/pName/pValue so that the search engines don't have to experience a 301 redirect. (where pName/pValue are required parameters that can be passed to any page) I forward via: RequestDispatcher rd = servletContext. getRequestDispatcher("www.mysite.com/content/home/pName/pValue"); rd.forward(req, res); I don't mind if all subsequent pages a user visits use the full form of the URL and these full URLs appear in the browser address bar. Eg., www.mysite.com/content/contactUs/pName/pValue www.mysite.com/content/products/pName/pValue www.mysite.com/content/home/pName/pValue The forward works fine but any links on that page don't work because the context of the wicket web app is 'content' - a separate servlet is used to 'catch' URL's of the form www.mysite.com and redirects to the wicket app. All my BookmarkablePageLinks are constructed assuming the 'content' context. I can change that so they work from www.mysite.com but then when the pages with www.mysite.com/content/blah... are visited those same links do not work. >-Original Message- >From: Jeremy Thomerson [mailto:jer...@wickettraining.com] >Sent: Saturday, 8 May 2010 10:53 AM >To: users@wicket.apache.org >Subject: Re: Any solution for the context problem with the relative links >of BookmarkablePageLink? > >That wasn't a problem - it was someone configuring the proxy incorrectly. > What (specifically) are you encountering? > >-- >Jeremy Thomerson >http://www.wickettraining.com > > > >On Fri, May 7, 2010 at 7:44 PM, Chris Colman >wrote: > >> I was just wondering if there has been any developments on the problem >> outlined in this post because I'm having the same problem but wanted to >> avoid the Index link solution: >> >> http://apache-wicket.1842946.n4.nabble.com/BookmarkablePageLink-relative >> -path-Dilemma-td1933044.html >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket & DataGrid
those are the examples. here's the source: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/inmethod-grid-parent/inmethod-grid-examples/ -- Jeremy Thomerson http://www.wickettraining.com On Sat, May 8, 2010 at 12:38 AM, Douglas Ferguson < doug...@douglasferguson.us> wrote: > Are there code examples for these: > > http://wicketstuff.org/grid-examples/tree-grid/simple.4 > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Wicket & DataGrid
Are there code examples for these: http://wicketstuff.org/grid-examples/tree-grid/simple.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Any solution for the context problem with the relative links of BookmarkablePageLink?
That wasn't a problem - it was someone configuring the proxy incorrectly. What (specifically) are you encountering? -- Jeremy Thomerson http://www.wickettraining.com On Fri, May 7, 2010 at 7:44 PM, Chris Colman wrote: > I was just wondering if there has been any developments on the problem > outlined in this post because I'm having the same problem but wanted to > avoid the Index link solution: > > http://apache-wicket.1842946.n4.nabble.com/BookmarkablePageLink-relative > -path-Dilemma-td1933044.html > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Any solution for the context problem with the relative links of BookmarkablePageLink?
I was just wondering if there has been any developments on the problem outlined in this post because I'm having the same problem but wanted to avoid the Index link solution: http://apache-wicket.1842946.n4.nabble.com/BookmarkablePageLink-relative -path-Dilemma-td1933044.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Components with dynamically defined child components
A lot of our pages are dynamically defined like you require. We make extensive use of the component resolver interface to define our own component resolvers. We have even added a 'parameterization' feature which allows us to add a variety of components that use the same definition but display different data based on a parameter. The parameter is actually embedded into the component id in a rather sly and, most likely, worst practice way... but it works (except we do have problems when embedding dynamically defined children in enclosures in recent releases - still using 1.4.2 for this reason) Our resolver strips off everything from the first '?' and so sees 'menuPanel' as the component name and the treats the remainder as parameters so that the same panel can be used with different data - all defined by the markup writer, not the programmer. Regards, Chris Colman Step Ahead Software >-Original Message- >From: Mikkel Lauritsen [mailto:ren...@tala.dk] >Sent: Saturday, 8 May 2010 12:21 AM >To: users@wicket.apache.org >Subject: Components with dynamically defined child components > > >Hi all, > >I'm evaluating webapp frameworks in order to determine what to use >when rewriting a large-ish application. Wicket is a serious con- >testant, but there's one thing that I haven't been able to figure >out how to do properly: how do I create components that have a >dynamic list of child components, each child being an instance of >any subclass of Component (or WebMarkupContainer)? > >Basically what I need is to obtain HTML like > > > markup from first child > markup from second child > ... > > >Based on the documentation of the RepeatingView class I have tried >just adding the children to a RepeatingView with > as markup, expecting that I would >get each child rendered inside a div element, but that doesn't >work - possibly because the markup doesn't contain elements that >refer to the id's of the child components. It works fine with labels, >but for example Buttons are not shown at all. > >My problem seems to be the same as discussed in >http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg18712. html >but I unfortunately haven't been able to get further from there. > >Any comments and suggestions that you may have are much appreciated. > >Best regards & thanks, > Mikkel Lauritsen > >- >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: SEVERE:Pagemap null is still locked by: Thread
version 1.4.6 on windows vista running on tomcat 6.0.26 On Wed, May 5, 2010 at 5:43 PM, Johan Compagner wrote: > hmm > > looking at the stack of the of that thread that has the lock on the page > map > then it seems to me that that shouldnt happen, because that thread is doing > nothing anymore if the stack dump of that thread is really the right one. > > Because that just seems to be in a waiting state in a tomcat pool > > So then it is more that there is some exception in front of that maybe that > somehow didnt release the pagemap > What version of wicket do you use? > > > On Tue, May 4, 2010 at 23:40, Ayodeji Aladejebi > wrote: > > > SEVERE: org.apache.wicket.WicketRuntimeException: After 1 minute the > > Pagemap > > null is still locked by: Thread[http-8084-7,5,main], giving up trying to > > get > > the page for path: 2 > >Begin of stack trace of Thread[http-8084-7,5,main] > >java.lang.Object.wait(Native Method) > >java.lang.Object.wait(Object.java:485) > > > > > org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1511) > > > > org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1536) > >java.lang.Thread.run(Thread.java:619) > >End of stack trace of Thread[http-8084-7,5,main] > > org.apache.wicket.protocol.http.request.InvalidUrlException: > > org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null > > is > > still locked by: Thread[http-8084-7,5,main], giving up trying to get the > > page for path: 2 > >Begin of stack trace of Thread[http-8084-7,5,main] > >java.lang.Object.wait(Native Method) > >java.lang.Object.wait(Object.java:485) > > > > > org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1511) > > > > org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1536) > >java.lang.Thread.run(Thread.java:619) > >End of stack trace of Thread[http-8084-7,5,main] > > > > -- Any tips > > > > I > > >
CSS Templating
All, I've been exploring the use of TextTemplateHeaderContributor.forCss method to build a CSS template for multiple application. Take for example: IModel> model = new AbstractReadOnlyModel>(){ private static final long serialVersionUID = 1L; @Override public Map getObject() { HashMap map = new HashMap(); map.put("body-bgcolor", "red"); return map; } }; add(TextTemplateHeaderContributor.forCss(WelcomePage.class, "Template.css", model)); with CSS template: body{ background-color: ${body-bgcolor}; } The output works. However, the template is contributing to the header in the form of: which is unacceptable. Is there a way to generate a .css file to be used by the application ? Thank you -- Sent by Eric Hamel
Re: Javascript templating? Removing java code mixed with js
Did you look at the JavaScriptTemplate class? On Fri, May 7, 2010 at 2:31 PM, Anthony DePalma wrote: > I recently developed a component that can be added to any form to put > a character countdown div next to any textarea. Just for some > background, the component constructor is: > CharacterCountdownPanel(String id, TextArea textArea, int charLimit). > > The textarea is necessary because the countdown panel needs to know > the id of the generated markup (Although while typing this, I realize > it might be useful for textfields as well, so that may change). But > one issue I often encounter with components like these is the need to > generate highly dynamic javascript, and I really dislike mixing up > java string concatenation with multiline js functions. > > Does anyone do anything to reduce this language mismatch? One idea I > had was to pull the entire javascript function into its own file, and > use something similar to Wicket's property file handling, and have a > model pull all the dynamic values into the script. I could use a > regular property file, but I don't know if it makes sense to put the > entire js function as a single property in one giant line. Any > suggestions? > > - > 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
Javascript templating? Removing java code mixed with js
I recently developed a component that can be added to any form to put a character countdown div next to any textarea. Just for some background, the component constructor is: CharacterCountdownPanel(String id, TextArea textArea, int charLimit). The textarea is necessary because the countdown panel needs to know the id of the generated markup (Although while typing this, I realize it might be useful for textfields as well, so that may change). But one issue I often encounter with components like these is the need to generate highly dynamic javascript, and I really dislike mixing up java string concatenation with multiline js functions. Does anyone do anything to reduce this language mismatch? One idea I had was to pull the entire javascript function into its own file, and use something similar to Wicket's property file handling, and have a model pull all the dynamic values into the script. I could use a regular property file, but I don't know if it makes sense to put the entire js function as a single property in one giant line. Any suggestions? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + security, what are the best options? Spring Security reached almost all the way...
I recently updated the spring-security module for Brix to SS 3.0.1. There's probably some nibbles in there for some of the more advanced kinds of security situations (like component-based authorizations against SS 3). http://code.google.com/p/brix-cms-plugins/source/browse/#svn/trunk/examples/example-springsecurity is the browsable source for the example project. Check out Brix while you are there! :B On May 7, 2010, at 8:48 AM, PDiefent wrote: > > I have also problems integrating security into my Wicket project. I wanted to > use simple authentication form the application server as I used many times > before with JSF applications, but it didn't work. > > Spring security sounds very good, but since I don't use spring in my Wicket > application I didn't manage to get the examples form above to work. > > It would be nice, if anyone could post a little example application as a > kick start especially with Wicket 1.4.x > > Thanks, Peter > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-security-what-are-the-best-options-Spring-Security-reached-almost-all-the-way-tp2068415p2134111.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: wicketstuff-minis status?
No problem. If you at somepoint discover a tooltip that are upto date or more close to the core of a jslib (yui, dojo or jquery, mootools) that are integrative with wicket please write this list. -Nino 2010/5/7 nmetzger : > > Yes, they changed the mootools a lot. I haven't had time to look into it, nor > search for something else as I'm approaching my deadline. So I'm probably > just going to go with the old mootools 1.1, as this already works. > > Thanks for checking, though! > > Natalie > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/wicketstuff-minis-status-tp1867557p2134155.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: CheckGroup and ListView
QuickStart project added. BTW thanks for the instructions for creating the quick start. If any one else needs the instructions then they can be found at: http://www.jeremythomerson.com/blog/2008/11/wicket-quickstart-tutorial/#more-99 Well, I hope the quick start works for others too. Thanks again. http://n4.nabble.com/file/n2134528/wicket-quickstart-checkgroup.zip wicket-quickstart-checkgroup.zip -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-and-ListView-tp1886879p2134528.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: Call Ajax on Parent Page from Popup page.
add a WindowClosedCallback. Then you can make the refresh to your parent page. On Fri, May 7, 2010 at 8:45 AM, Serban Balamaci wrote: > Hello. > > I have a case where I'm trying to refresh the parent page from a popup > page. > > On the parent page I have: > >AbstractDefaultAjaxBehavior clientSideCallingBehavior = >new AbstractDefaultAjaxBehavior() { >protected void respond(AjaxRequestTarget target) { >System.out.println("Refreshing ..."); >} >}; > >Label lblCallback = new Label("refreshJS", new > LoadableDetachableModel() { > >protected Object load() { >String callbackScript = "var callRefresh = function(value) { > wicketAjaxGet('" >+ clientSideCallingBehavior.getCallbackUrl(false) >+ "', null, null, function() {return true;}); return > false;}"; >return callbackScript; >} >}); >lblCallback.add(clientSideCallingBehavior); >lblCallback.setEscapeModelStrings(false); >add(lblCallback); > > > In the popup page I have on a link call the callRefresh method: >AjaxLink cancel = new AjaxLink("cancel") { >public void onClick(AjaxRequestTarget target) { >target.appendJavascript("window.opener.callRefresh();"); >} >}; > > org.apache.wicket.protocol.http.request.InvalidUrlException: > org.apache.wicket.WicketRuntimeException: component > right-content-panel-container:right-content-panel-id:details-panel:tabs:panel:refreshJS > not found on page com.asf.ufe.web.pages.evaluation.AccountEvaluationPage[id > = 2], listener interface = [RequestListenerInterface name=IBehaviorListener, > method=public abstract void > org.apache.wicket.behavior.IBehaviorListener.onRequest()] >at > org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:262) >at org.apache.wicket.RequestCycle.step(RequestCycle.java:1310) >at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) >at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) >at > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) >at > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) >at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) > Caused by: org.apache.wicket.WicketRuntimeException: component > right-content-panel-container:right-content-panel-id:details-panel:tabs:panel:refreshJS > not found on page com.asf.ufe.web.pages.evaluation.AccountEvaluationPage[id > = 2], listener interface = [RequestListenerInterface name=IBehaviorListener, > method=public abstract void > org.apache.wicket.behavior.IBehaviorListener.onRequest()] >at > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:426) >at > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:471) >at > org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:144) >... 26 more > > If I do make the call to callRefresh from the Parent Page(the same page > where the behaviour is located) with onclick="callRefresh();return false;" > it works. > > Do you have any ideeas? Does it have to be the last page in the PageMap for > ajax to work? > Thanks. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: how to query in dataTable?
look at the wicket examples [1] and see the data table examples. you will need to implement an IDataProvider http://wicketstuff.org/wicket/repeater/ -- Jeremy Thomerson http://www.wickettraining.com 2010/5/7 cleverpig > Hello everybody! > > I am a beginner of wicket. Now I meet a problem:"how to query inside > dataTable?" > > I found some information that can use IDataProvider implemented class > to resolve it, but can find complete code for reference. > > I don't know if you are not experiencing the same problem, so ask for > help and teach. > thanks~ > > -- > cleverpig(Dan) > Location: Beijing > Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China > Zipcode: 100031 > MSN: great_liu...@hotmail.com > QQ: 149291732 > Skype: cleverpigatmatrix > Facebook ID:cleverpig > Blog: cleverpig.name/dan/ > Tags: del.icio.us/cleverpig > Twitter: twitter.com/cleverpig > 新浪微博: t.sina.com.cn/cleverpig > Organization: www.beijing-open-party.org > or...@facebook: http://www.facebook.com/group.php?gid=8159558294 > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
images as resources
Hi, I would like to have all images in a folder under resources and access them in different panels, which are in the package com.web.panels; What is the best way to do this and how to define the relative path? Thanks, Christoph
Re: Call Ajax on Parent Page from Popup page.
First thing I would try would be: get rid of that label. You don't need it. Just add a behavior directly to the page or panel that adds the necessary JS function: add(new AbstractDefaultAjaxBehavior() { private static final long serialVersionUID = 1L; @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.renderJavascript("function callMeFromSomewhere() { " + super.getCallbackScript() + "};", "callMeFromSomewhere"); } @Override protected void respond(AjaxRequestTarget target) { System.out.println("I did something on the server side."); target.appendJavascript("alert('" + new Date().toString() + "');"); } }); -- Jeremy Thomerson http://www.wickettraining.com On Fri, May 7, 2010 at 6:45 AM, Serban Balamaci wrote: > Hello. > > I have a case where I'm trying to refresh the parent page from a popup > page. > > On the parent page I have: > >AbstractDefaultAjaxBehavior clientSideCallingBehavior = >new AbstractDefaultAjaxBehavior() { >protected void respond(AjaxRequestTarget target) { >System.out.println("Refreshing ..."); >} >}; > >Label lblCallback = new Label("refreshJS", new > LoadableDetachableModel() { > >protected Object load() { >String callbackScript = "var callRefresh = function(value) { > wicketAjaxGet('" >+ clientSideCallingBehavior.getCallbackUrl(false) >+ "', null, null, function() {return true;}); return > false;}"; >return callbackScript; >} >}); >lblCallback.add(clientSideCallingBehavior); >lblCallback.setEscapeModelStrings(false); >add(lblCallback); > > > In the popup page I have on a link call the callRefresh method: >AjaxLink cancel = new AjaxLink("cancel") { >public void onClick(AjaxRequestTarget target) { >target.appendJavascript("window.opener.callRefresh();"); >} >}; > > org.apache.wicket.protocol.http.request.InvalidUrlException: > org.apache.wicket.WicketRuntimeException: component > right-content-panel-container:right-content-panel-id:details-panel:tabs:panel:refreshJS > not found on page com.asf.ufe.web.pages.evaluation.AccountEvaluationPage[id > = 2], listener interface = [RequestListenerInterface name=IBehaviorListener, > method=public abstract void > org.apache.wicket.behavior.IBehaviorListener.onRequest()] >at > org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:262) >at org.apache.wicket.RequestCycle.step(RequestCycle.java:1310) >at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) >at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) >at > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) >at > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) >at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) > Caused by: org.apache.wicket.WicketRuntimeException: component > right-content-panel-container:right-content-panel-id:details-panel:tabs:panel:refreshJS > not found on page com.asf.ufe.web.pages.evaluation.AccountEvaluationPage[id > = 2], listener interface = [RequestListenerInterface name=IBehaviorListener, > method=public abstract void > org.apache.wicket.behavior.IBehaviorListener.onRequest()] >at > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:426) >at > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:471) >at > org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:144) >... 26 more > > If I do make the call to callRefresh from the Parent Page(the same page > where the behaviour is located) with onclick="callRefresh();return false;" > it works. > > Do you have any ideeas? Does it have to be the last page in the PageMap for > ajax to work? > Thanks. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: convert wicket pages html to excel
Well, in my case, it was difficult, because the users wanted to be able to turn *any* page in our application into a spreadsheet representation. Having to maintain two different versions of each page would be a maintenance nightmare, IMHO. On Fri, May 7, 2010 at 11:57 AM, Jeremy Thomerson wrote: > It sounds very brittle to take HTML output from an old HTML-generating > servlet, cleaning it with a parser, making it valid XML, and then > transforming it into different XML which will represent a spreadsheet. Is > it really that difficult to obtain the data from the DB, push it into either > a) clean xml representing the spreadsheet, or b) directly into jexcel or poi > api? > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Fri, May 7, 2010 at 8:56 AM, fachhoch wrote: > >> >> well I will clean my html using htmlparsers and make it well formed xml >> , >> are there any example of using xslt to create excel out of xml ? >> >> -- >> View this message in context: >> http://apache-wicket.1842946.n4.nabble.com/convert-wicket-pages-html-to-excel-tp2131919p2134216.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: convert wicket pages html to excel
It sounds very brittle to take HTML output from an old HTML-generating servlet, cleaning it with a parser, making it valid XML, and then transforming it into different XML which will represent a spreadsheet. Is it really that difficult to obtain the data from the DB, push it into either a) clean xml representing the spreadsheet, or b) directly into jexcel or poi api? -- Jeremy Thomerson http://www.wickettraining.com On Fri, May 7, 2010 at 8:56 AM, fachhoch wrote: > > well I will clean my html using htmlparsers and make it well formed xml > , > are there any example of using xslt to create excel out of xml ? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/convert-wicket-pages-html-to-excel-tp2131919p2134216.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: convert wicket pages html to excel
I would perhaps try reverse-engineering it (that's what I did). You can save a spreadsheet as "XML Spreadsheet" and look at the XML (it's not pretty). On Fri, May 7, 2010 at 9:56 AM, fachhoch wrote: > > well I will clean my html using htmlparsers and make it well formed xml , > are there any example of using xslt to create excel out of xml ? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/convert-wicket-pages-html-to-excel-tp2131919p2134216.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: Components with dynamically defined child components
Hi Cemal, You wrote: > You will find more information than you have explicitly asked for here > [1][2] but there is interesting and instructive material to look at, > especially if you are new to Wicket and evaluating it for your > project. Many thanks for your prompt response - judging from a quick glance at the pages you refer to they look exactly like what I need, so I'll get hacking right away :-) Best regards, Mikkel Lauritsen > [1] http://jweekend.com/dev/ArticlesPage > [2] see the Bean Editor movie on > http://code.google.com/p/londonwicket/downloads > > On 7 May 2010 15:21, Mikkel Lauritsen wrote: >> >> Hi all, >> >> I'm evaluating webapp frameworks in order to determine what to use >> when rewriting a large-ish application. Wicket is a serious con- >> testant, but there's one thing that I haven't been able to figure >> out how to do properly: how do I create components that have a >> dynamic list of child components, each child being an instance of >> any subclass of Component (or WebMarkupContainer)? >> >> Basically what I need is to obtain HTML like >> >> >> markup from first child >> markup from second child >> ... >> >> >> Based on the documentation of the RepeatingView class I have tried >> just adding the children to a RepeatingView with >> as markup, expecting that I would >> get each child rendered inside a div element, but that doesn't >> work - possibly because the markup doesn't contain elements that >> refer to the id's of the child components. It works fine with labels, >> but for example Buttons are not shown at all. >> >> My problem seems to be the same as discussed in >> http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg18712.html >> but I unfortunately haven't been able to get further from there. >> >> Any comments and suggestions that you may have are much appreciated. >> >> Best regards & thanks, >> Mikkel Lauritsen >> >> - >> 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: Components with dynamically defined child components
Mikkel, You will find more information than you have explicitly asked for here [1][2] but there is interesting and instructive material to look at, especially if you are new to Wicket and evaluating it for your project. Regards - Cemal jWeekend OO & Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://jweekend.com/dev/ArticlesPage [2] see the Bean Editor movie on http://code.google.com/p/londonwicket/downloads On 7 May 2010 15:21, Mikkel Lauritsen wrote: > > Hi all, > > I'm evaluating webapp frameworks in order to determine what to use > when rewriting a large-ish application. Wicket is a serious con- > testant, but there's one thing that I haven't been able to figure > out how to do properly: how do I create components that have a > dynamic list of child components, each child being an instance of > any subclass of Component (or WebMarkupContainer)? > > Basically what I need is to obtain HTML like > > > markup from first child > markup from second child > ... > > > Based on the documentation of the RepeatingView class I have tried > just adding the children to a RepeatingView with > as markup, expecting that I would > get each child rendered inside a div element, but that doesn't > work - possibly because the markup doesn't contain elements that > refer to the id's of the child components. It works fine with labels, > but for example Buttons are not shown at all. > > My problem seems to be the same as discussed in > http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg18712.html > but I unfortunately haven't been able to get further from there. > > Any comments and suggestions that you may have are much appreciated. > > Best regards & thanks, > Mikkel Lauritsen > > - > 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
Components with dynamically defined child components
Hi all, I'm evaluating webapp frameworks in order to determine what to use when rewriting a large-ish application. Wicket is a serious con- testant, but there's one thing that I haven't been able to figure out how to do properly: how do I create components that have a dynamic list of child components, each child being an instance of any subclass of Component (or WebMarkupContainer)? Basically what I need is to obtain HTML like markup from first child markup from second child ... Based on the documentation of the RepeatingView class I have tried just adding the children to a RepeatingView with as markup, expecting that I would get each child rendered inside a div element, but that doesn't work - possibly because the markup doesn't contain elements that refer to the id's of the child components. It works fine with labels, but for example Buttons are not shown at all. My problem seems to be the same as discussed in http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg18712.html but I unfortunately haven't been able to get further from there. Any comments and suggestions that you may have are much appreciated. Best regards & thanks, Mikkel Lauritsen - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: convert wicket pages html to excel
well I will clean my html using htmlparsers and make it well formed xml , are there any example of using xslt to create excel out of xml ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/convert-wicket-pages-html-to-excel-tp2131919p2134216.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: wicketstuff-minis status?
Yes, they changed the mootools a lot. I haven't had time to look into it, nor search for something else as I'm approaching my deadline. So I'm probably just going to go with the old mootools 1.1, as this already works. Thanks for checking, though! Natalie -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketstuff-minis-status-tp1867557p2134155.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: convert wicket pages html to excel
Can you use the XML spreadsheet format? If so, you could perhaps (if your html is clean enough) use XSLT. On Fri, May 7, 2010 at 9:03 AM, fachhoch wrote: > > I also have some servlets whose html is created dynamically based on user > input, its basically a form engine which creates forms dynamically > ,developed several years before , > its a servlet which writes to response reading form data from database, > now I want to read the same servlet and create an excel, I donot have data > to create excel using any api, I just have html > and that I wan to convert to excel. > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/convert-wicket-pages-html-to-excel-tp2131919p2134129.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: convert wicket pages html to excel
I also have some servlets whose html is created dynamically based on user input, its basically a form engine which creates forms dynamically ,developed several years before , its a servlet which writes to response reading form data from database, now I want to read the same servlet and create an excel, I donot have data to create excel using any api, I just have html and that I wan to convert to excel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/convert-wicket-pages-html-to-excel-tp2131919p2134129.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: Wicket + security, what are the best options? Spring Security reached almost all the way...
I have also problems integrating security into my Wicket project. I wanted to use simple authentication form the application server as I used many times before with JSF applications, but it didn't work. Spring security sounds very good, but since I don't use spring in my Wicket application I didn't manage to get the examples form above to work. It would be nice, if anyone could post a little example application as a kick start especially with Wicket 1.4.x Thanks, Peter -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-security-what-are-the-best-options-Spring-Security-reached-almost-all-the-way-tp2068415p2134111.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
Call Ajax on Parent Page from Popup page.
Hello. I have a case where I'm trying to refresh the parent page from a popup page. On the parent page I have: AbstractDefaultAjaxBehavior clientSideCallingBehavior = new AbstractDefaultAjaxBehavior() { protected void respond(AjaxRequestTarget target) { System.out.println("Refreshing ..."); } }; Label lblCallback = new Label("refreshJS", new LoadableDetachableModel() { protected Object load() { String callbackScript = "var callRefresh = function(value) { wicketAjaxGet('" + clientSideCallingBehavior.getCallbackUrl(false) + "', null, null, function() {return true;}); return false;}"; return callbackScript; } }); lblCallback.add(clientSideCallingBehavior); lblCallback.setEscapeModelStrings(false); add(lblCallback); In the popup page I have on a link call the callRefresh method: AjaxLink cancel = new AjaxLink("cancel") { public void onClick(AjaxRequestTarget target) { target.appendJavascript("window.opener.callRefresh();"); } }; org.apache.wicket.protocol.http.request.InvalidUrlException: org.apache.wicket.WicketRuntimeException: component right-content-panel-container:right-content-panel-id:details-panel:tabs:panel:refreshJS not found on page com.asf.ufe.web.pages.evaluation.AccountEvaluationPage[id = 2], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:262) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1310) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) Caused by: org.apache.wicket.WicketRuntimeException: component right-content-panel-container:right-content-panel-id:details-panel:tabs:panel:refreshJS not found on page com.asf.ufe.web.pages.evaluation.AccountEvaluationPage[id = 2], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:426) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:471) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:144) ... 26 more If I do make the call to callRefresh from the Parent Page(the same page where the behaviour is located) with onclick="callRefresh();return false;" it works. Do you have any ideeas? Does it have to be the last page in the PageMap for ajax to work? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket, IntelliJ and xml resource bundles
Tom, Write to IntelliJ guys to improve support for wicket. Their XML definition files don't allow a lot of the syntax even in HTML. They are behind on a bunch of stuff for wicket. But they are usually good about listening to end users. I've had them fix a bunch of stuff in the past. They have forums which are read by their developers daily! They gotta try... otherwise it's eclipse for IntelliJ (yak ,yak, yak). - Alex -Original Message- From: Thomas Götz [mailto:t...@richmountain.de] Sent: Thursday, May 06, 2010 1:33 PM To: users@wicket.apache.org Subject: Re: Wicket, IntelliJ and xml resource bundles You are right, I just thought there might be a solution for this anyway, some plugin that I don't know yet maybe (be it Wicket specific or for general use with IntelliJ/I18N/xml-files). -Tom James Carman schrieb: > Then the stuff you're seeing doesn't have anything to do with Wicket. > It's IntelliJ's "I18N for Java" plugin, I believe. I wouldn't expect > it to understand wicket-specific stuff. > > On Thu, May 6, 2010 at 12:26 PM, Thomas Götz wrote: >> No, I'm not currently using any Wicket plugin. >> >>-Tom >> >> >> Nick Heudecker schrieb: >>> The Wicket plugin for IDEA doesn't support XML property bundles. >>> >>> On Thu, May 6, 2010 at 8:32 AM, James Carman >>> wrote: >>> Are you using a Wicket plugin? On Thu, May 6, 2010 at 10:06 AM, Thomas Götz wrote: > Any IntelliJ users out there that use Wicket and xml resource > bundle files? > I have the problem, that whenever I use something like: > >
Troubles with AjaxEditableLabel
Hi! Any hints to point me in the right direction? Here is the end bit of the Ajax request (from the Wicket Ajax Debug panel): evaluate>evaluate> But getting this error immediately after: INFO: Response parsed. Now invoking steps... ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: TypeError: el is null So, the html doesn't get updated and my editable label is not editable. The error message is not helping, and even after some digging, I've run out of ideas... Can post more info if necessary. Thanks! =David - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket training this weekend - voucher for subscribers to this list.
James, Congratulations on the new job (did you show them your genetic algorithms? ;-) . Ping me when you're in London. We have good Wicket developers working on our projects (full and part-time) and others looking for interesting Java/Wicket roles. Your company can contact someone here using our web-site [1] and we'll see if we can get them connected with people we know interested in a permanent position. Regards - Cemal jWeekend OO & Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://jweekend.com/dev/ContactUs On 7 May 2010 11:10, James Perry wrote: > Hey Cemal, > > Do you know of any Wicket developers that are looking for work? I am > leaving my current employer, CPG, to work for an investment bank in a > front office. CPG are struggling to find any Wicket developers and I > thought that you may know a few good Wicket people. > > Hope all is well on your side. > > Best, > James. > > On 7 May 2010 11:03, Cemal Bayramoglu wrote: >> You can use this voucher [1] for a 33% discount on bookings [2] >> completed today, using Google Checkout, for this weekend's Wicket >> course [3] in London for subscribers to this list and friends. >> >> Regards - Cemal >> jWeekend >> OO & Java Technologies, Wicket >> Consulting, Development, Training >> http://jWeekend.com >> >> [1] WU_MAY0809_EXP0608 >> [2] http://jweekend.com/dev/BookingPage >> [3] http://jweekend.com/dev/JW703 >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > Best, > James. > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket training this weekend - voucher for subscribers to this list.
Hey Cemal, Do you know of any Wicket developers that are looking for work? I am leaving my current employer, CPG, to work for an investment bank in a front office. CPG are struggling to find any Wicket developers and I thought that you may know a few good Wicket people. Hope all is well on your side. Best, James. On 7 May 2010 11:03, Cemal Bayramoglu wrote: > You can use this voucher [1] for a 33% discount on bookings [2] > completed today, using Google Checkout, for this weekend's Wicket > course [3] in London for subscribers to this list and friends. > > Regards - Cemal > jWeekend > OO & Java Technologies, Wicket > Consulting, Development, Training > http://jWeekend.com > > [1] WU_MAY0809_EXP0608 > [2] http://jweekend.com/dev/BookingPage > [3] http://jweekend.com/dev/JW703 > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Best, James. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket training this weekend - voucher for subscribers to this list.
You can use this voucher [1] for a 33% discount on bookings [2] completed today, using Google Checkout, for this weekend's Wicket course [3] in London for subscribers to this list and friends. Regards - Cemal jWeekend OO & Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] WU_MAY0809_EXP0608 [2] http://jweekend.com/dev/BookingPage [3] http://jweekend.com/dev/JW703 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Inline Javascript comments
Hello, Working on integration of a wicket portlet in the upcoming Liferay 6, I am currently facing a problem with the way Wicket encapsulates inline javascript. Looking at my page header I see that type of thing (the id have been shortened to avoid line breaks): ]]>*/ The thing is that Liferay now strips out the carriage returns on embedded javascript, so the sequence became (shortened): */ The javascript is then not executed. Seeing this, I am wondering if the comment added by Wicket is correct. It seems there is not a good match between /* and */ so that would explain that the code is considered as beeing commented out and so not executed... Any thought on this? Regards, -- Jérôme - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org