Re: [Wicket-user] Wicket 1.2.1 available
Perhaps it should be a FAQ? On Mon, 2006-07-24 at 11:12 -0700, Igor Vaynberg wrote: are you in development mode? if so this is a debug feature to help you find potential problems when your app will run clustered. it checks your component graphs to make sure everything is serializable as it has to be for clustering if you are not going to cluster you can turn this off by doing getDebugSettings() in your application.init() in deployment mode this setting is turned off by default -Igor On 7/24/06, samyem [EMAIL PROTECTED] wrote: As soon as upgrading to the new version, I am getting these types of errors all over the place: WicketMessage: Internal error cloning object. Make sure all dependent objects implement Serializable. Class: com.wsi.mm.ui.shippingrates.ShippingRateGroupPage Root cause: java.io.NotSerializableException: com.wsi.mm.ui.shippingrates.ShippingRateGroupSideBarPanel$2 at java.io.ObjectOutputStream.writeObject0 (ObjectOutputStream.java:1075) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) ... at wicket.protocol.http.HttpSessionStore.setAttribute (HttpSessionStore.java:57) at wicket.Session.setAttribute(Session.java:926) at wicket.PageMap.put(PageMap.java:526) at wicket.Session.touch(Session.java:714) at wicket.Page.renderPage(Page.java :422) at wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226) ... Complete stack: wicket.WicketRuntimeException: Internal error cloning object. Make sure all dependent objects implement Serializable. Class: com.wsi.mm.ui.shippingrates.ShippingRateGroupPage at wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:63) at wicket.Session.setAttribute (Session.java:926) It works fine with Wicket 1.2 release, but no more with 1.2.1. Please help! -- View this message in context: http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472531 Sent from the Wicket - User forum at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.2.1 available
And on wicketframework.org... Perhaps some links between them? On Mon, 2006-07-24 at 22:09 +0200, Eelco Hillenius wrote: Yeah, that would make sense. We have one on the WIKI don't we? Eelco On 7/24/06, Frank Bille Jensen [EMAIL PROTECTED] wrote: Perhaps it should be a FAQ? On Mon, 2006-07-24 at 11:12 -0700, Igor Vaynberg wrote: are you in development mode? if so this is a debug feature to help you find potential problems when your app will run clustered. it checks your component graphs to make sure everything is serializable as it has to be for clustering if you are not going to cluster you can turn this off by doing getDebugSettings() in your application.init() in deployment mode this setting is turned off by default -Igor On 7/24/06, samyem [EMAIL PROTECTED] wrote: As soon as upgrading to the new version, I am getting these types of errors all over the place: WicketMessage: Internal error cloning object. Make sure all dependent objects implement Serializable. Class: com.wsi.mm.ui.shippingrates.ShippingRateGroupPage Root cause: java.io.NotSerializableException: com.wsi.mm.ui.shippingrates.ShippingRateGroupSideBarPanel$2 at java.io.ObjectOutputStream.writeObject0 (ObjectOutputStream.java:1075) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) ... at wicket.protocol.http.HttpSessionStore.setAttribute (HttpSessionStore.java:57) at wicket.Session.setAttribute(Session.java:926) at wicket.PageMap.put(PageMap.java:526) at wicket.Session.touch(Session.java:714) at wicket.Page.renderPage(Page.java :422) at wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226) ... Complete stack: wicket.WicketRuntimeException: Internal error cloning object. Make sure all dependent objects implement Serializable. Class: com.wsi.mm.ui.shippingrates.ShippingRateGroupPage at wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:63) at wicket.Session.setAttribute (Session.java:926) It works fine with Wicket 1.2 release, but no more with 1.2.1. Please help! -- View this message in context: http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472531 Sent from the Wicket - User forum at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Controlling 'class' parameter for a link element
link.add(new SimpleAttributeModifier(class, YOUR-CLASS-NAME)); Frank On Mon, 2006-07-24 at 11:20 -0700, Pierre-Yves wrote: hi, I am struggling with a new problem : I need to programmatically set the class attribute of a html link ( element). I tried to extends the Link element, but unfortunately, the onComponentTag method is final. (For some reasons, I cannot use another clickable element). Any idea ? Thanks, Pierre-Yves - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to programatically link to a css or a script ?
Hey On Sun, 2006-07-23 at 08:38 -0700, Peewhy wrote: add(new StyleSheetReference(menucss, getClass(), menu.css)); is getClass() returning the correct class which is in the same package as menu.css? To be sure you could instead use MyPageWhichIsInTheSamePackage.class or something like that. add(new StyleSheetReference(menucss, new ResourceReference(menu.css))); This looks for menu.css in the same package as your MyApplication. Use the format above instead. BTW, I am posting this from Nable since my mail was refused by the list server because I have no posmaster address in my domain. This is not very practical ! http://sourceforge.net/docs/C04/en/#s_no_postmaster Regards Frank Bille - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket search engine
Hey all Wicket lovers! The last week or so, I have been working on a Wicket resource search engine. It is a little application which indexes Wicket related sites for a more dedicated search: http://woogle.billen.dk/ It started of as a simple research project of Lucene Nutch[1], but I quickly started using it my self for finding help on different Wicket subjects. After some positive feedback on IRC, I decided to make it public. SO now the source is ASL2 and available from my local SF installation[2]. The state of the application is of course still beta. Not the Wicket application; I think it fairly much do what it's supposed to. But the indexed material only count the sites listed in the FAQ[3], and not all the great blog entries etc. all around. The problem is that I haven't figured out the best way to index the blog entries without getting all the private/off-topic entries as well. If anyone has any ideas please write me (or reply to this). Regards Frank Bille [1]: http://lucene.apache.org/nutch [2]: http://sf.billen.dk/sf/projects/woogle [3]: http://woogle.billen.dk/search/faq - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket search engine
On Sat, 2006-07-22 at 08:30 -0700, Igor Vaynberg wrote: what i want to know is why that version of sf.net is soo much better looking then the crap on sf.net? Well I can't really tell you WHY it look better, but it's basically not the same software as SF.net. It's JAVA based where SF.net is php/whatever based: http://www.sourceforge.net/powerbar/sfee/ Frank - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket search engine
On Sat, 2006-07-22 at 09:31 -0400, Aníbal Rojas wrote: I am an absolut begginer to Wicket, but in RuyCorner.com (which is a Blog Directory and not a Vertical Search engine) people suscribe and register their blogs, and we try to enforce that people use their Ruby/Rails specific feeds that most CMS can provide without a problem. Just an idea... That might be an idea. I have been looking for feeds like that, but people are using all kinds of different cms systems which I don't know are capable of generating category/tag specific feeds for. And then people have to retag there blog entries. I don't know. Perhaps I just add the pages one by one, starting with the ones which helps the most. :) Frank - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket search engine
On Sat, 2006-07-22 at 13:51 -0400, Aníbal Rojas wrote: That might be an idea. I have been looking for feeds like that, but people are using all kinds of different cms systems which I don't know are capable of generating category/tag specific feeds for. And then people have to retag there blog entries. Most modern Blog CMS generate Category/Tag feed by default, but it depends on people using this categories/tags, that's right. I would suggest picking by and the bes feeds, and adding a simple filter where the word wicket should be present in the entry to be included in the search database, that should do it. That was one of my last solutions, cause I'm still quite noob on this Nutch crawler. I have only managed to get it to crawl in the console and not by using java. But I guess it could be done if only I got some more skills :) Frank - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax the wiki
Try checking out the AJAX examples: http://www.wicket-library.com/wicket-examples/ajax I think they are really useful. Frank On Mon, 2006-07-17 at 11:12 -0700, Scott Swank wrote: I want to take my first dive into Ajax with Wicket. Can anyone point me to a useful page on the wiki... or elsewhere. Alternately, I've read through the example code and a simple pointer toward one example or another as best practices would be swell. Many thanks, Scott - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket-Template
Nice. I like the mvn approach better, than having a large quickstart including libraries. Any reason why you are using org.grlea.log and friends instead of basic apache log commons? They are not in maven repository, so it's not straight forward to use. Frank On Fri, 2006-07-14 at 11:34 +0100, Gwyn Evans wrote: I've added a Wicket Template module/package to Wicket-Stuff - (http://sourceforge.net/project/showfiles.php?group_id=134391package_id=197274) Nothing too dramatic - basically a cut-down version of Quickstart, leaving the Maven2 pom.xml together with a (very) basic WicketApp. It uses the Maven2 recommended folder layout and allows the creation of a standalone WAR or the running of the web-app via the mvn jetty6:run embedded server. It does assume that the user's happy to use Maven2 and download the support jars, but it takes the package size down to 31KB. What it doesn't have is any specific Eclipse settings (as I don't use it, so can't verify what could be transferred across from QS) but if someone wants to add some settings to the SVN folder, I could do a new version of the package... For IntelliJ IDEA, mvn idea:idea *does* appear to work correctly with IDEA 5, so there's no need to include IDEA-specific files. /Gwyn - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket-Template
On Fri, 2006-07-14 at 14:02 +0100, Gwyn Evans wrote: Opps - they are in the repo! (Somewhat simplified) there's a typo in the pom regarding one of the adapters - it should be simple-log-slf4j rather than simple-log-sl4j (i.e. a missing 'f'). Yeah that helped a lot :) mvn eclipse:eclipse generates eclipse project just fine. Don't you think that all the quickstart packages should just be removed? Frank - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket-Template
Sorry I didn't explain myself properly. I meant the wicket.quickstart package inside your template zip file. It's dublicate of the wicket.myproject and it isn't used as far as what I can see. Frank On Fri, 2006-07-14 at 16:58 +0100, Gwyn Evans wrote: Well, the problem has been that the use of the QS package has drifted away from it's core 'requirement', which is to provide a basic Wicket development environment in a single package, which should be usable without needing any more/other downloads. The idea of the Template package is to try provide for what I see an a use cases thats emerged since then, i.e. a base project for starting projects, maybe for demoing problems among users in a position to use Maven2 and network access. As such, I think there's still a good case to be made for the original QuickStart, while allowing the Wicket Template to cater for those who don't need all the jars bundled. (If someone wants to add an Ant build.xml to Template then they're welcome to, but it'll need to assume it's dependancies are present...) /Gwyn On 14/07/06, Frank Bille Jensen [EMAIL PROTECTED] wrote: On Fri, 2006-07-14 at 14:02 +0100, Gwyn Evans wrote: Opps - they are in the repo! (Somewhat simplified) there's a typo in the pom regarding one of the adapters - it should be simple-log-slf4j rather than simple-log-sl4j (i.e. a missing 'f'). Yeah that helped a lot :) mvn eclipse:eclipse generates eclipse project just fine. Don't you think that all the quickstart packages should just be removed? Frank - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Proxessing uncaught exceptions
Yes, take a look at IApplicationSettings.setInternalErrorPage(). Frank Bille On Tue, 2006-07-11 at 09:46 +0300, Tymur Porkuyan wrote: Is it possible to override standard Wicket exception page? I would like to throw exceptions on lower levels and have a generic error page that will display messages from custom exceptions and something like internal error for system exception. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Proxessing uncaught exceptions
If you want to get hold on the actual exception that has been thrown you need to override the ExceptionResponseStrategy in DefaultWebRequestCycleProcessor. Do something like this: In you WebApplication extended class: @Override protected IRequestCycleProcessor newRequestCycleProcessor() { return new MyDefaultWebRequestCycleProcessor(); } MyDefaultWebRequestCycleProcessor.java: public class MyDefaultWebRequestCycleProcessor extends DefaultWebRequestCycleProcessor { @Override protected IExceptionResponseStrategy newExceptionResponseStrategy() { return new IExceptionResponseStrategy() { public void respond(RequestCycle requestCycle, RuntimeException e) { requestCycle.setResponsePage(new MyExceptionPage(e)); } }; } } And then you can have your exception page: public class MyExceptionPage extends WebPage { private static final long serialVersionUID = 1L; public MyExceptionPage(Throwable throwable) { add(new Label(title, throwable.getMessage())); // and whatever you like } @Override protected void configureResponse() { super.configureResponse(); getWebRequestCycle().getWebResponse().getHttpServletResponse() .setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } @Override public boolean isErrorPage() { return true; } @Override public boolean isVersioned() { return false; } } Regards Frank Bille On Tue, 2006-07-11 at 09:30 +0200, Frank Bille Jensen wrote: Yes, take a look at IApplicationSettings.setInternalErrorPage(). Frank Bille On Tue, 2006-07-11 at 09:46 +0300, Tymur Porkuyan wrote: Is it possible to override standard Wicket exception page? I would like to throw exceptions on lower levels and have a generic error page that will display messages from custom exceptions and something like internal error for system exception. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Loading ...
Yes, try taking a look at IAjaxIndicatorAware API and the example implementation in Wicket extensions. Regards Frank On Fri, 2006-07-07 at 14:21 +0200, Paolo Di Tommaso wrote: Is there a way in Wicket to display something like a Loading ... Google red label on Ajax call? Thank you. Paolo Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Images to button
What do you mean? Like the entire button is just your image or that you both have text and an icon? Try taking a look at: http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/ImageButton.html Regards Frank On Thu, 2006-07-06 at 16:00 +0530, [EMAIL PROTECTED] wrote: Hi All I want to add external images to button . Regards Gangadhar Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] about base path
Sry.. I meant of course WEB-INF/pc/images - images. Why doesn't email clients just send what I think and not what I write ;) Frank On Sun, 2006-07-02 at 23:23 -0700, Igor Vaynberg wrote: afaik servlet containers do not allow direct access to WEB-INF, so if you want to store images there youd have to map apache or something else to do that, but be careful, you dont want people getting access to your config/classes files that also live in WEB-INF, i wouldnt recommend doing it that way -Igor On 7/2/06, Frank Bille Jensen [EMAIL PROTECTED] wrote: Can't you just store your images in WEB-INF/images? You don't need to store them in something similar to the URL mapping. Else take a look at the base HTML tag which goes into head: http://www.htmlhelp.com/reference/html40/head/base.html Regards Frank Bille Avaleo On Sun, 2006-07-02 at 20:05 -0700, R.A wrote: Hi all. I have a base path question. I set my WebApplication class in web.xml as follows. lt;servletgt; lt;servlet-namegt;MyApplicationlt;/servlet-namegt; lt;servlet-classgt;wicket.protocol.http.WicketServletlt;/servlet-classgt; lt;init-paramgt; lt;param-namegt;applicationClassNamelt;/param-namegt; lt;param-valuegt;pc.MyApplicationlt;/param-valuegt; lt;/init-paramgt; lt;load-on-startupgt;2lt;/load-on-startupgt; lt;/servletgt; lt;servlet-mappinggt; lt;servlet-namegt;MyApplicationlt;/servlet-namegt; lt;url-patterngt;/pc/*lt;/url-patterngt; lt;/servlet-mappinggt; I store image files at WEB-INF/pc/images. If I set image tag in html file, img src=pc/images/abc.jpg, work fine. But I'd like to set image tag, img src=images/abc.jpg. Is it possible to set base path, /pc, in wicket java source? Regards, R.A Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] about base path
On Mon, 2006-07-03 at 00:46 -0700, R.A wrote: How do I set this path in base tag? In html: base wicket:id=baseTag / In java: WebComponent baseTag = new WebComponent(baseTag); baseTag.add(new SimpleAttributeModifier(href, path)); add(baseTag); Frank Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] about base path
Can't you just store your images in WEB-INF/images? You don't need to store them in something similar to the URL mapping. Else take a look at the base HTML tag which goes into head: http://www.htmlhelp.com/reference/html40/head/base.html Regards Frank Bille Avaleo On Sun, 2006-07-02 at 20:05 -0700, R.A wrote: Hi all. I have a base path question. I set my WebApplication class in web.xml as follows. lt;servletgt; lt;servlet-namegt;MyApplicationlt;/servlet-namegt; lt;servlet-classgt;wicket.protocol.http.WicketServletlt;/servlet-classgt; lt;init-paramgt; lt;param-namegt;applicationClassNamelt;/param-namegt; lt;param-valuegt;pc.MyApplicationlt;/param-valuegt; lt;/init-paramgt; lt;load-on-startupgt;2lt;/load-on-startupgt; lt;/servletgt; lt;servlet-mappinggt; lt;servlet-namegt;MyApplicationlt;/servlet-namegt; lt;url-patterngt;/pc/*lt;/url-patterngt; lt;/servlet-mappinggt; I store image files at WEB-INF/pc/images. If I set image tag in html file, img src=pc/images/abc.jpg, work fine. But I'd like to set image tag, img src=images/abc.jpg. Is it possible to set base path, /pc, in wicket java source? Regards, R.A Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket emailaddress validation incorrect
On Thu, 2006-06-22 at 06:47 +0200, jan_bar wrote: just in the case, do you take IDN (International Domain Names) into consideration? Allowed characters for .de domain are listed here: http://www.denic.de/en/domains/idns/liste.html. It's not me who have created the RFC 822 compliant regex. But it should implement all specs from the RFC. So if the RFC says that IDN domains can be used, then they are validated. http://www.mädchen.de (doesn't work but is registered) I have added a test case (patch attached to this email; igor?) which matches a email from that domain ([EMAIL PROTECTED]) as valid. So yes: IDN domain names are validated as valid. :) Regards Frank Bille Avaleo Index: /home/fb/Workspaces/Wicket/wicket-extensions-1.2/src/test/wicket/extensions/markup/html/form/validation/RfcCompliantEmailValidatorTest.java === --- /home/fb/Workspaces/Wicket/wicket-extensions-1.2/src/test/wicket/extensions/markup/html/form/validation/RfcCompliantEmailValidatorTest.java (revision 6223) +++ /home/fb/Workspaces/Wicket/wicket-extensions-1.2/src/test/wicket/extensions/markup/html/form/validation/RfcCompliantEmailValidatorTest.java (working copy) @@ -45,7 +45,9 @@ my @email.com, my@ email.com, \John Doe\@email.com, -[EMAIL PROTECTED] }; +[EMAIL PROTECTED], +[EMAIL PROTECTED], +[EMAIL PROTECTED]}; for (int i = 0; i validEmails.length; i++) { All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket emailaddress validation incorrect
On Thu, 2006-06-22 at 11:25 -0400, Michael Day wrote: None of these regexp are perfect, by the way. Email addresses are not allowed to begin with hyphens and underscores =). According to whom ;-) At least in the RFC email addresses may start with _ and -. Regards Frank Bille Avaleo Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket emailaddress validation incorrect
On Tue, 2006-06-20 at 08:42 -0700, Igor Vaynberg wrote: i wonder how big the created state machine is for this beast :) It's quite big. I just tried to profile it and compare it to the regex, which Michael Korthuis provided. If I can calculate correctly it is over 100 times larger than Michaels regex. Attached is the memory tables for the Pattern object in the to different tests. Regards Frank Bille Avaleo monster_emailvalidation_pattern.png Description: PNG image small_emailvalidation_pattern.png Description: PNG image ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket emailaddress validation incorrect
On Wed, 2006-06-21 at 12:23 -0700, Igor Vaynberg wrote: if you attach one to sf.net tracker or an email i will happily put it into extensions. Yeah, why not :) I'll brew something together when I have a spare moment. - fb All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket emailaddress validation incorrect
On Wed, 2006-06-21 at 21:27 +0200, Frank Bille Jensen wrote: On Wed, 2006-06-21 at 12:23 -0700, Igor Vaynberg wrote: if you attach one to sf.net tracker or an email i will happily put it into extensions. Yeah, why not :) I'll brew something together when I have a spare moment. And that time was now ;-) http://sourceforge.net/tracker/index.php?func=detailaid=1510238group_id=119783atid=684977 - fb All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket emailaddress validation incorrect
Thats right.. In our company we use the (crazy) regex pattern taken from http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html String emailPattern = (?:(?:\\r\\n)?[ \\t])*(?:(?:(?:[^()@,;:\\\.\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t] + )+|\\Z|(?=[\\[\()@,;:\\\.\\[\\]]))|\(?:[^\r]|.|(?:(?:\\r\\n)?[ \\t]))*\(?:(?: + \\r\\n)?[ \\t])*)(?:\\.(?:(?:\\r\\n)?[ \\t])*(?:[^()@,;:\\\.\\[\\] \\000-\\031]+(?:(?:( + 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: [Wicket-user] wicket emailaddress validation incorrect
Yeah I know. The regex is really frightening to most people (my self included), but AFAIK it should actually be the only one which truly validates the full RFC; for what it's worth. Regards Frank Bille Avaleo On Tue, 2006-06-20 at 10:37 +0200, Michiel Korthuis wrote: I am currently working on my graduation(project) @ Topicus with another student (Ronald Hemmink). We are new to Wicket and before we saw the wicket-build-in validator we came up with our own expression: ^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)[EMAIL PROTECTED](\ \.[A-Za-z0-9-]+)*((\\.[A-Za-z]{2,}){1}$) the Wicket expression: ^[_a-z0-9-]+(\\.[_a-z0-9-]+)[EMAIL PROTECTED](\\.[a-z0-9-]+)*(\ \.[a-z]{2,3})$ almost identical, but 'large TLD compatible' (the pattern in wicket has the argument 'Pattern.CASE_INSENSITIVE ' and therefore they don't need to define the upper-case charcters). your pattern looks a bit too complicated for the job :P Michiel On 6/20/06, Frank Bille Jensen [EMAIL PROTECTED] wrote: Thats right.. In our company we use the (crazy) regex pattern taken from http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html String emailPattern = [...] Would anyone in the wicket team like to use this as the emailvalidation pattern instead, I would be happy to submit a patch (for both 1.2 or 2.0 if thats the case). Regards Frank Bille Avaleo On Tue, 2006-06-20 at 10:08 +0200, Michiel Korthuis wrote: hi, In wicket.markup.html.form.validation.EmailAddressPatternValidator.java the validation-expression is incorrect. the regular expression reads: ^[_a-z0-9-]+(\\.[_a-z0-9-]+)[EMAIL PROTECTED](\\.[a-z0-9-]+)*(\ \.[a-z]{2,3})$ According to this expression the TLD is 2 or 3 characters, but that's incorrect. Nowadays it can exceed the limit of 3 characters (for example: .aero or .travel. Source: http://www.iana.org/gtld/gtld.htm ). Michiel ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Inheritance and wicket:child / inside a tag with wicket:id
Hi I'm having a problem with the following html markup (example): Parent.html: ... div wicket:id=weConfigureTheStyleAttributeOnThis wicket:child / /div ... Parent.java ... public class Parent extends Panel { public Parent() { WebMarkupContainer styleFrame = new WebmarkupContainer(weConfigureTheStyleAttributeOnThis); styleFrame.add(new SimpleAttributeModifier(style, SOME STYLESHEET DEFINITIONS)); add(styleFrame); } } Child.html: ... wicket:extend span wicket:id=nameName/span /wicket:extend ... Child.java: ... public class Child extends Parent { public Child() { add(new Label(name, SOME NAME)); } } ... I get the Unable to find component with id 'name'... exception. If I move the name component up to Parent (only in java; not in html) and add it to styleFrame, it works fine. But that is not what I wanted. Any ideas on how to model what I'm trying to do? Regards Frank Bille ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Binding package resources recursively
On Wed, 2006-06-07 at 21:12 -0700, Aaron Hiniker wrote: OK, so what could cause this to not work?? I have an image sitting in my war dir, I try to access it using the url scheme you provided, and I get this: 19:32:05,723 ERROR [SharedResourceRequestTarget] shared resource com.mysite.MyPage/images/arrow_connect_left.jpg not found Have you tried to move to image into the same package as MyPage? The resource path will then become: /mysite/resources/us.mysite.MyPage/image.jpg Regards Frank Bille ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user