Re: logging the page class name
On Tue, Nov 29, 2011 at 12:23 PM, fachhoch fachh...@gmail.com wrote: I want to log all the pages users are viewing without any much detail just the page class name . is there any way I can get this without adding my own log statements in code ? Override on Application#init(): getRequestLoggerSettings().setRequestLoggerEnabled(true); and put the logger org.apache.wicket.protocol.http.RequestLogger to debug. -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] where is JPA 2.0 API spec in maven?
On Wed, Sep 8, 2010 at 9:35 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Sorry to spam but I am wondering where the JPA 2.0 Spec are cant find it in maven... groupIdorg.apache.geronimo.specs/groupId artifactIdgeronimo-jpa_2.0_spec/artifactId version1.1/version -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket 1.4 : Link with no model
On Mon, Nov 16, 2009 at 6:23 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Two things: 1 - use LinkVoid foo = new LinkVoid or a shorter Link? foo = new LinkVoid -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Factory for Components
Use it then. Inject the factory via @SpringBean. On Fri, Apr 24, 2009 at 9:56 AM, cretzel mailinglists...@gmail.com wrote: We are using Spring. Liam Clarke-Hutchinson-3 wrote: Are you using an IoC container at all? On 4/24/09, Nick Wiedenbrück mailinglists...@googlemail.com wrote: Hi, I'm having many Components (DropDowns, ChoiceRenderers, ...) that are reused in different places in my application. For example I have one ChoiceRenderer for persons, one for accounts and so on. I want to centralize the creation of these components in a factory in order to decople the clients. For example I'm thinking about a ChoiceRendererFactory with methods createPersonChoiceRenderer() and createAccountChoiceRenderer(). Now, my question is where to put this factory. I need a central place, where the can find the factory. Is it a good idea to have a method createChoiceRendererFactory() on my Application class? Regards, Nick - 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/Factory-for-Components-tp23212875p23216937.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 -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WebApp Freezes
(TransactionAspectSupport.java:262) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(Tr ansactionInterceptor.java:101) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflect iveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPro xy.java:204) at $Proxy37.findById(Unknown Source) at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxy Factory.java:416) at org.apache.wicket.proxy.$Proxy2.findById(Unknown Source) at xx at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachable Model.java:119) at xx at sun.reflect.GeneratedConstructorAccessor61.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java :151) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java :89) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.new Page(BookmarkablePageRequestTarget.java:306) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.get Page(BookmarkablePageRequestTarget.java:321) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.pro cessEvents(BookmarkablePageRequestTarget.java:234) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(Abstra ctRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:119 2) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterI nternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF ilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164 ) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.jav a:90) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter .java:417) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http 11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) === - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Marcelo Morales
Re: AutoCompleteTextField and accentuated characters
This may be a stupid answer, but every time I hear something like this, I turn to the usual suspect: bad enconding on source files or the web page itself. Make sure EVERYTHING is properly encoded UTF-8 and not Mac Roman or ISO-8859-1 and not a mix. On Mon, Mar 23, 2009 at 11:33 AM, Thierry Leveque tleve...@gmail.com wrote: Using Wicket 1.3.5? Mmmm, I will have to get the source code and check what is happening. Maybe it have something to do with the fact that I am under Mac OS X? But if it was the case, why all other fields are ok? I think I will also try with another ajax component. Thierry Sent from: Montreal Quebec Canada. On Mon, Mar 23, 2009 at 11:07, Michael Sparer michael.spa...@gmx.at wrote: i can't reproduce your problem, if I send café up to the server caf%C3%A9 gets send and I receive café at the end of the line ... tleveque wrote: The problem is that with any other form fields, what is saved in my models is fine. All the accentuated characters are fine. If I output (in a log file for example) the content of a string field, I can see the accentuated character. But with the AutocompleteTextField, if I try to do that in the getChoice method, the input parameter output is still encoded. So I am unable to compare the string with what I have in my db. You say that it is actually UTF-8 in the request. Good that is what I thought first, but why in the java code it is not interpreted correctly? From what I remember, Java string are always in UTF-8. No? Thierry On Mon, Mar 23, 2009 at 10:30, Michael Sparer michael.spa...@gmx.at wrote: it isn't the 'wrong character' it's é in UTF8 which is perfectly fine -so you end up with an é at the end of the line - so what's the problem again? :-) regards, Michael tleveque wrote: Hi, I have a problem AutoCompleteTextField and accentuated characters. When I type characters within the us-ascii set, there is no problem, but as soon as I use other characters (like 'é'), it doesn't work. The wrong character is received. With the Ajax debugger I can see that what is sent is wrong (or maybe encoded?). For a 'é', it sends is '%C3%A9'. That what is received as the parameter of the getChoices method. Is there something I can do about that? I am using Wicket 1.3.5 Thanks... - Michael Sparer http://techblog.molindo.at -- View this message in context: http://www.nabble.com/AutoCompleteTextField-and-accentuated-characters-tp22637037p22661278.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 - Michael Sparer http://techblog.molindo.at -- View this message in context: http://www.nabble.com/AutoCompleteTextField-and-accentuated-characters-tp22637037p22662019.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 -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AutoCompleteTextField and accentuated characters
Thierry Meta tags?, don't know about that. Have you seen the Content-type header on the HTTP response? What about the choices source for your autocompleter?. Is it in proper UTF-8 encoded?. What about -encoding flag passed to javac or encodingUTF-8/encoding on artifactIdmaven-compiler-plugin/artifactId? On Mon, Mar 23, 2009 at 1:05 PM, Thierry Leveque tleve...@gmail.com wrote: Thanks. I think everything is fine. At least on the markup side. ... meta http-equiv=Content-Type content=text/html; charset=UTF-8 / ... form id=form1 wicket:id=form1 name=form1 method=post action= enctype=UTF-8 Is there something I need to set on the code side? Thierry Sent from: Montreal Quebec Canada. On Mon, Mar 23, 2009 at 12:00, Marcelo Morales marcelomorales.name@ gmail.com wrote: This may be a stupid answer, but every time I hear something like this, I turn to the usual suspect: bad enconding on source files or the web page itself. Make sure EVERYTHING is properly encoded UTF-8 and not Mac Roman or ISO-8859-1 and not a mix. On Mon, Mar 23, 2009 at 11:33 AM, Thierry Leveque tleve...@gmail.com wrote: Using Wicket 1.3.5? Mmmm, I will have to get the source code and check what is happening. Maybe it have something to do with the fact that I am under Mac OS X? But if it was the case, why all other fields are ok? I think I will also try with another ajax component. Thierry Sent from: Montreal Quebec Canada. On Mon, Mar 23, 2009 at 11:07, Michael Sparer michael.spa...@gmx.at wrote: i can't reproduce your problem, if I send café up to the server caf%C3%A9 gets send and I receive café at the end of the line ... tleveque wrote: The problem is that with any other form fields, what is saved in my models is fine. All the accentuated characters are fine. If I output (in a log file for example) the content of a string field, I can see the accentuated character. But with the AutocompleteTextField, if I try to do that in the getChoice method, the input parameter output is still encoded. So I am unable to compare the string with what I have in my db. You say that it is actually UTF-8 in the request. Good that is what I thought first, but why in the java code it is not interpreted correctly? From what I remember, Java string are always in UTF-8. No? Thierry On Mon, Mar 23, 2009 at 10:30, Michael Sparer michael.spa...@gmx.at wrote: it isn't the 'wrong character' it's é in UTF8 which is perfectly fine -so you end up with an é at the end of the line - so what's the problem again? :-) regards, Michael tleveque wrote: Hi, I have a problem AutoCompleteTextField and accentuated characters. When I type characters within the us-ascii set, there is no problem, but as soon as I use other characters (like 'é'), it doesn't work. The wrong character is received. With the Ajax debugger I can see that what is sent is wrong (or maybe encoded?). For a 'é', it sends is '%C3%A9'. That what is received as the parameter of the getChoices method. Is there something I can do about that? I am using Wicket 1.3.5 Thanks... - Michael Sparer http://techblog.molindo.at -- View this message in context: http://www.nabble.com/AutoCompleteTextField-and-accentuated-characters-tp22637037p22661278.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 - Michael Sparer http://techblog.molindo.at -- View this message in context: http://www.nabble.com/AutoCompleteTextField-and-accentuated-characters-tp22637037p22662019.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 -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AutoCompleteTextField and accentuated characters
BTW it still may be a stupid answer. On Mon, Mar 23, 2009 at 2:25 PM, Marcelo Morales marcelomorales.n...@gmail.com wrote: Thierry Meta tags?, don't know about that. Have you seen the Content-type header on the HTTP response? What about the choices source for your autocompleter?. Is it in proper UTF-8 encoded?. What about -encoding flag passed to javac or encodingUTF-8/encoding on artifactIdmaven-compiler-plugin/artifactId? On Mon, Mar 23, 2009 at 1:05 PM, Thierry Leveque tleve...@gmail.com wrote: Thanks. I think everything is fine. At least on the markup side. ... meta http-equiv=Content-Type content=text/html; charset=UTF-8 / ... form id=form1 wicket:id=form1 name=form1 method=post action= enctype=UTF-8 Is there something I need to set on the code side? Thierry Sent from: Montreal Quebec Canada. On Mon, Mar 23, 2009 at 12:00, Marcelo Morales marcelomorales.name@ gmail.com wrote: This may be a stupid answer, but every time I hear something like this, I turn to the usual suspect: bad enconding on source files or the web page itself. Make sure EVERYTHING is properly encoded UTF-8 and not Mac Roman or ISO-8859-1 and not a mix. On Mon, Mar 23, 2009 at 11:33 AM, Thierry Leveque tleve...@gmail.com wrote: Using Wicket 1.3.5? Mmmm, I will have to get the source code and check what is happening. Maybe it have something to do with the fact that I am under Mac OS X? But if it was the case, why all other fields are ok? I think I will also try with another ajax component. Thierry Sent from: Montreal Quebec Canada. On Mon, Mar 23, 2009 at 11:07, Michael Sparer michael.spa...@gmx.at wrote: i can't reproduce your problem, if I send café up to the server caf%C3%A9 gets send and I receive café at the end of the line ... tleveque wrote: The problem is that with any other form fields, what is saved in my models is fine. All the accentuated characters are fine. If I output (in a log file for example) the content of a string field, I can see the accentuated character. But with the AutocompleteTextField, if I try to do that in the getChoice method, the input parameter output is still encoded. So I am unable to compare the string with what I have in my db. You say that it is actually UTF-8 in the request. Good that is what I thought first, but why in the java code it is not interpreted correctly? From what I remember, Java string are always in UTF-8. No? Thierry On Mon, Mar 23, 2009 at 10:30, Michael Sparer michael.spa...@gmx.at wrote: it isn't the 'wrong character' it's é in UTF8 which is perfectly fine -so you end up with an é at the end of the line - so what's the problem again? :-) regards, Michael tleveque wrote: Hi, I have a problem AutoCompleteTextField and accentuated characters. When I type characters within the us-ascii set, there is no problem, but as soon as I use other characters (like 'é'), it doesn't work. The wrong character is received. With the Ajax debugger I can see that what is sent is wrong (or maybe encoded?). For a 'é', it sends is '%C3%A9'. That what is received as the parameter of the getChoices method. Is there something I can do about that? I am using Wicket 1.3.5 Thanks... - Michael Sparer http://techblog.molindo.at -- View this message in context: http://www.nabble.com/AutoCompleteTextField-and-accentuated-characters-tp22637037p22661278.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 - Michael Sparer http://techblog.molindo.at -- View this message in context: http://www.nabble.com/AutoCompleteTextField-and-accentuated-characters-tp22637037p22662019.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 -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Marcelo Morales -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Uppercasing inputs
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 -- View this message in context: http://www.nabble.com/Uppercasing-inputs-tp22332360p22354741.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 -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Link with proxy server: wrong hostname
Hi I am not a fan of reverse proxying. I would not vote for it if runs. If your servlet container supports it, you may try the AJP protocol. It works on tomcat at least. AJP is better than just using a http reverse proxy because: a) you get the right client IP address then asking the servlet API, b) isSecure() and getScheme() will work as expected, and c) the container becomes aware of the changed context root. On Fri, Feb 27, 2009 at 6:14 AM, harri.temo...@nokia.com wrote: Hi all, I have problem when Wicket 1.3.5 application is installed behind proxy server. Application it showing Index page in url https://www.mycompany.com/pls/myapp/ When clicking link (pointing into same Index page), browser is going to url http://server:/pls/myapp/ Any ideas about to solve this? Details listed below. Best Regards Harri ==Index.html= html xmlns:wicket=http://wicket.apache.org/; body a wicket:id = linkIndexIndex/a /body /html ==Index.java= public class Index extends WebPage { public Index() { Link linkToAnchor = new Link(linkIndex) { public void onClick() { setResponsePage(Index.class); } }; add(linkToAnchor); } } ==MyApplication.java= public class MyApplication extends WebApplication { �...@override public Class getHomePage() { return Index.class; } } ==web.xml ?xml version = '1.0' encoding = 'windows-1252'? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; descriptionEmpty web.xml file for Web Application/description filter filter-nameWicketApplication/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.mycompany.app.MyApplication/param-value /init-param /filter filter-mapping filter-nameWicketApplication/filter-name url-pattern/*/url-pattern /filter-mapping session-config session-timeout35/session-timeout /session-config mime-mapping extensionhtml/extension mime-typetext/html/mime-type /mime-mapping mime-mapping extensiontxt/extension mime-typetext/plain/mime-type /mime-mapping /web-app === My infra stack is: Alteon SSL Aaccelerator url: https://www.mycompany.com/pls/myapp/ Apache Proxy url: http://webserver:80/pls/myapp/ Httpd.conf: ProxyPass /pls http://server:/pls/myapp/ ProxyPassReverse /pls http://server:/pls/myapp/ Oracle Application Server url: http://server:/pls/myapp/ -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GSoC ideas for 09
You've got 86 unresolved enhancements and 32 feature requests on issues.apache.org. The leaders might want to umbrella a couple of related ones and have them coded on GSoC. Also, there might be a couple of orphaned projects on wicketstuff and elsewhere that could get into the main distribution. wicket-auth-roles appears lower quality than the rest of wicket. On Wed, Feb 25, 2009 at 4:26 AM, C. Bergström cbergst...@netsyncro.com wrote: Hi Everyone! A year ago I bugged dashorst about why Wicket didn't participate in the 08 GSoC.. This year I've been brainstorming on ideas and want to see what others think could be useful projects for Wicket. Thanks ./Christopher - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What IDE best fits with Wicket?
I am a NetBeans user, and I have been for a long time. The maven integration in NetBeans is excelent. Works with profiles, downloads sources and javadoc, quickstart is right there when creating a new project, code-completes the pom.xml including dependency names and keywords (like compile or runtime), hyperlinks the urls on the pom, has builtin macros for common tasks like adding a new dependency, excluding a transitive dependency, you can edit the settings.xml from whithin the IDE, you can browse the sources on the SCM system of any dependency (when properly defined), etc. Just a couple of months ago the wicket plugin was the cause of uncomfortable bugs on NetBeans. They were corrected but I've never gave it another shot. It provides templates for pages, borders, and panels. It can parse a html to find wicket components. Hope it helps. 2009/2/23 Pierre Goupil goupilpie...@gmail.com: +1, I like Wicket Bench. And with M2Eclipse, you have the full sources JavaDoc just by adding Wicket as a dependency, which is very convenient. But don't expect Wicket Bench to do too much, it's just a small, useful tool. Pierre Hi, I use Eclipse with Wicket Bench plugin and it works very fine. -- Sans amis était le grand maître des mondes, Eprouvait manque, ce pour quoi il créa les esprits, Miroirs bienveillants de sa béatitude. Mais au vrai, il ne trouva aucun égal, Du calice du royaume total des âmes Ecume jusqu'à lui l'infinité. (Schiller, l'amitié) -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Application.CONFIGURATION
I am using tomcat. I just append -Dwicket.configuration=development on the start script. Perhaps you can append it to the jetty start as well. On Tue, Feb 24, 2009 at 8:35 AM, Eyal Golan egola...@gmail.com wrote: Hi, It's been a long time since I've written in this mailing list. Here's my question: I was looking for a way to set the mode to DEVELOPMENT in the Jetty starter while setting DEPLOYMENT in the web.xml. I encountered the following thread: http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--td13364304.html#a13364498 In there there is this line: System.setProperty(wicket.configuration, development); I am using Wicket 1.3.4 Wicket Application class has a static filed called CONFIGURATION, which is without the 'wicket' part. Why doesn't it have a static 'wicket.configuration' ? Wouldn't it be better? Thanks Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What IDE best fits with Wicket?
On Tue, Feb 24, 2009 at 12:55 PM, Brill Pappin br...@pappin.ca wrote: If your on Netbeans, I think Maven will generate Netbeans project files for you as well (it will do so for eclipse), so you could actually flip back and forth if you wanted. Netbeans does NOT need any other project files. It just need the pom.xml. After personalizing, you'll might find a couple of extra files like nbactions.xml, profiles.xml, that you can safely ignore on your SCM. You can checkout the wicket source from SVN and just open it up with netbeans. Nothing else is necessary -- Marcelo Morale - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Application.CONFIGURATION
On Tue, Feb 24, 2009 at 11:49 AM, Eyal Golan egola...@gmail.com wrote: Thanks Marcelo and James. I still prefer the solution we have come to: In the web.xml put deployment and in the Jetty plugin (StartWebServer) put the development. Thats a best practice AFAIK My question was why Application.java doesn't have 'wicket.configuration' as a static field. Wouldn't it be nice? What do you mean? there is! public static final String CONFIGURATION = configuration; (Application.java line 119 on 1.3.5) BTW, there is a getConfigurationType() method in WebApplication, which should not be static. -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What IDE best fits with Wicket?
Even NetBeans is not that straitforward, but it is less problematic than eclipse IMHO. There are ways to acomplish what you ask. NetBeans will copy content under 'webapp/WEB-INF' to 'target' on changes, but not under 'java'. Bad NetBeans Bad. I will give it a shot in a couple of days and let you know. Don't like ant, don't want to go back to ant, is too much programming on xml for my taste. Suggest maven any day of the week. On Tue, Feb 24, 2009 at 9:18 PM, Eduardo Nunes esnu...@gmail.com wrote: I deal directly with HTML coders and I want to bring to them an easy of use project build / run. I don't want to be called every time a new HTML join to the project team because he doesn't have the setup of the project. I think that maven help me a lot with it but I'm a little bit afraid of the build, for example: A HTML coder change some HTML, he needs to re-build the entire system to see the change, it isn't a good thing. Is it possible to define something on maven to just copy the HTML files to the deployment directory? I wondering to use ant as build because with it I have all flexibility necessary to do this kind of thing. What is your opinion? Thanks, Eduardo S. Nunes On Tue, Feb 24, 2009 at 3:17 PM, Marcelo Morales marcelomorales.n...@gmail.com wrote: On Tue, Feb 24, 2009 at 12:55 PM, Brill Pappin br...@pappin.ca wrote: If your on Netbeans, I think Maven will generate Netbeans project files for you as well (it will do so for eclipse), so you could actually flip back and forth if you wanted. Netbeans does NOT need any other project files. It just need the pom.xml. After personalizing, you'll might find a couple of extra files like nbactions.xml, profiles.xml, that you can safely ignore on your SCM. You can checkout the wicket source from SVN and just open it up with netbeans. Nothing else is necessary -- Marcelo Morale - 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 -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SSL pages and links
Only a cent: security-constraint on web.xml can work only on certain URIs security-constraint display-nameSSL/display-name web-resource-collection web-resource-nameMake sure login path is secured/web-resource-name descriptionWe like ssl web services/description url-pattern/sec/*/url-pattern /web-resource-collection web-resource-collection web-resource-nameWeb Services/web-resource-name descriptionWe like ssl web services/description url-pattern/ws/*/url-pattern /web-resource-collection user-data-constraint description/ transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint In this application, my LoginPage is mounted under /sec/ Once logged in though, There is no way back from https to http. Marcelo On Fri, Feb 20, 2009 at 7:04 PM, novotny novo...@gridsphere.org wrote: Hi, I need to secure some pages as well as providing a login link that uses HTTPS. I read thru the document http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html but it seems there are several approaches and various source code some of which doesn't compile. I am using wicket 1.4 with generics support. Can someone please share with me there working configuration for setting secure links and pages? Also this is such a critical piece of functionality for any enterprise site that maybe one of the wicket gurus could cleanup the documentation or even provide classes as part of the core wicket code to do this kind of thing. For the record, I tried the very last approach Edit (Wicket 1.3.x) alternative:, but it seems to ignore my components that are not pages that are annotated with @RequireSSL (e.g. I created a SecureBookmarkablePageLink that extends BookmarkablePageLink and has the annotation at the top) Thanks, Jason -- View this message in context: http://www.nabble.com/SSL-pages-and-links-tp22130162p22130162.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 -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: propertycolumn - date column, checkbox column
I've been using this on 1.3. You could generify to 1.4. public class DateTimePropertyColumn extends PropertyColumn { private DateFormat df; /* ... Constructors */ @Override protected IModel createLabelModel(IModel itemModel) { Date date = (Date) PropertyResolver.getValue(getPropertyExpression(), itemModel.getObject()); if (date == null) { return new Model(-); } return new Model(df.format(date)); } } On Sat, Feb 14, 2009 at 3:32 PM, Christoph Grün chris...@gmx.at wrote: Hi all, columns.add(new PropertyColumn(new ModelString(Title), title, title )); How can I have such a property column that displays java.util.dates? I would also need the same for checkboxes or true/false values. Thanks a lot, Christoph -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to handle this exception properly
On Tue, Feb 10, 2009 at 5:00 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: the status code and the error page are orthogonal. you should still see the standard error page, its just that it is returned with status 500. ... with a proper browser (a cent) -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: making a HTTP request directly in Wicket
It can connect and stall forever. People restart firewalls you know. I must insist on using at least setReadTimeout(int). On Fri, Feb 6, 2009 at 3:15 AM, Swinsburg, Stephen s.swinsb...@lancaster.ac.uk wrote: I was just going to do it in a different thread, make a void function then it can take as long as it needs without having timeouts. Might still have a timeout just in case though ;) cheers. -Original Message- From: Erik van Oosten [mailto:e.vanoos...@grons.nl] Sent: Fri 2/6/2009 5:40 AM To: users@wicket.apache.org Subject: Re: making a HTTP request directly in Wicket Thanks Peter, Marcelo, Still learning every day... Regards, Erik. Marcelo Morales wrote: Don't forget setReadTimeout(int) Also very important. On Thu, Feb 5, 2009 at 11:42 AM, Peter Ertl pe...@gmx.org wrote: Please use commons HttpClient, with the standard Java client you have no control over timeouts potentially hanging your application. Is this still true? I found that at least in Java 6 there is URLConnection.setConnectTimeout(int) -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: making a HTTP request directly in Wicket
Don't forget setReadTimeout(int) Also very important. On Thu, Feb 5, 2009 at 11:42 AM, Peter Ertl pe...@gmx.org wrote: Please use commons HttpClient, with the standard Java client you have no control over timeouts potentially hanging your application. Is this still true? I found that at least in Java 6 there is URLConnection.setConnectTimeout(int) Cheers Peter Am 05.02.2009 um 14:12 schrieb Erik van Oosten: Its probably not there; Wicket is a server side framework after all. Please use commons HttpClient, with the standard Java client you have no control over timeouts potentially hanging your application. Regards, Erik. Steve Swinsburg wrote: Hi all, just wondering if there is any API in Wicket that wraps up making a HTTP POST request directly (ie given a URL and some data etc) or whether I should just drop back to using the standard Java HTTPClient stuff? cheers, Steve -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Iam getting Errors while starting the Tomcat 5.5 server
Hi Check the other log. Usually there are two logs on vanilla tomcat, catalina-* and localhost-* On Wed, Feb 4, 2009 at 5:18 PM, Swapna Rachamalla swapna.rachama...@gmail.com wrote: Hi I Have developed HelloWorld example using Apache Wicket which is given http://wicket.apache.org/examples.html. I have compiled the java files Successfully. But while starting the tomcat 5.5 web server iam getting the following error. org.apache.catalina.core.StandardContext start SEVERE: Error filterStart org.apache.catalina.core.StandardContext start SEVERE: Context [/WicketApp] startup failed due to previous errors Please can u help me out in resoving this issue. Thanks Swapna -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Iam getting Errors while starting the Tomcat 5.5 server
SEVERE: Exception starting filter HelloWorldApplication On Wed, Feb 4, 2009 at 1:22 PM, Marcelo Morales marcelomorales.name@ gmail.com wrote: Hi Check the other log. Usually there are two logs on vanilla tomcat, catalina-* and localhost-* On Wed, Feb 4, 2009 at 5:18 PM, Swapna Rachamalla swapna.rachama...@gmail.com wrote: Hi I Have developed HelloWorld example using Apache Wicket which is given http://wicket.apache.org/examples.html. I have compiled the java files Successfully. But while starting the tomcat 5.5 web server iam getting the following error. org.apache.catalina.core.StandardContext start SEVERE: Error filterStart org.apache.catalina.core.StandardContext start SEVERE: Context [/WicketApp] startup failed due to previous errors Please can u help me out in resoving this issue. Thanks Swapna -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Iam getting Errors while starting the Tomcat 5.5 server
Is is definitely there: $ jar tf slf4j-api-1.5.5.jar |grep org/slf4j/LoggerFactory org/slf4j/LoggerFactory.class $ try shared/lib on tomcat instalation. Try finding something on http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html and ask tomcat forums On Wed, Feb 4, 2009 at 8:04 PM, Swapna Rachamalla swapna.rachama...@gmail.com wrote: Hi i have tried with these jars also. Thanks Swapna On Wed, Feb 4, 2009 at 4:01 PM, Marcelo Morales marcelomorales.name@ gmail.com wrote: you will need 3 jars if want log4j slf4j-api.jar slf4j-log4j12 log4j.jar On Wed, Feb 4, 2009 at 5:45 PM, Swapna Rachamalla swapna.rachama...@gmail.com wrote: Hi I have looked into those log files. I have put the following jar files in my app and tmocat/commons/lib wicket-1.4-rc1.jar wicket-auth-roles-1.4-rc1.jar wicket-datetime-1.4-rc1.jar wicket-extensions-1.4-rc1.jar wicket-guice-1.4-rc1.jar wicket-ioc-1.4-rc1.jar wicket-jmx-1.4-rc1.jar wicket-objectsizeof-agent-1.4-rc1.jar wicket-spring-1.4-rc1.jar wicket-velocity-1.4-rc1.jar Do i need to update any other jar files to resolve this. it is saying that java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory.. *the log file is like the following* Feb 4, 2009 11:38:21 AM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] Feb 4, 2009 11:38:21 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Feb 4, 2009 11:38:21 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Feb 4, 2009 11:38:22 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Feb 4, 2009 11:38:22 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Feb 4, 2009 11:38:30 AM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter HelloWorldApplication java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.apache.wicket.protocol.http.WicketFilter.clinit(WicketFilter.java:97) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:210) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:77) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke
Re: Deploy problem
) at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.5.23.jar.so) at org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.23.jar.so) at org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.23.jar.so) at org.apache.catalina.core.StandardContextValve.invoke(catalina-5.5.23.jar.so) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.23.jar.so) at org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.23.jar.so) at org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.23.jar.so) at org.apache.catalina.core.StandardEngineValve.invoke(catalina-5.5.23.jar.so) at org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.23.jar.so) at org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.23.jar.so) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.23.jar.so) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.23.jar.so) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.23.jar.so) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.23.jar.so) at java.lang.Thread.run(libgcj.so.7rh) 22-déc-08 4:46:40 org.apache.catalina.core.StandardContext start SEVERE: Error filterStart -- Marcelo Morales
Re: What is your experience on the time of development ?
Hello I worked on a JSF project last year. This year I worked on a wicket project. Both were approximately the same size and complexity. Granted. You learn from experience. The second time around you do something (or something quite similar), you do it much, much better. AND I had previous experience with JSF (Nearly two years worth) and not with Wicket. AND I had good expertise on HTML/JavaScript, which I could leverage on Wicket, but not on JSF. It took half the time. I truly believe that JSF was meant to sell tools to developers, whereas wicket seems more from programmer to programmer you know... pragmatic. I am yet to see how the new application performs on production. But, as far as I see, I am about to become a Wicket advocate. I think I am seeing the light. On Fri, Dec 12, 2008 at 5:55 AM, Martin Sachs sachs.mar...@gmail.com wrote: I'm looking for a little comparison of the development-time for Applications in Wicket against other Technologies. I think the development with Wicket is two times faster than Struts. But what are your experiences on JSF, Rails/Grails, SpringMVC/SpringWebFlow. Anyone you know the development-time from experience ? (P.S.: The applications must use AJAX and many custom components or tags in JSP, not just a hello world sample) -- View this message in context: http://www.nabble.com/What-is-your-experience-on-the-time-of-development---tp20971605p20971605.html Sent from the Wicket - User mailing list archive at Nabble.com. -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Questions about wicket features
Thank you all Marcelo Morales On Thu, Aug 7, 2008 at 2:44 AM, Erik van Oosten [EMAIL PROTECTED] wrote: Hello Marcelo, 1. No. The flip side of having full control of the HTML is that you need to write it yourself. 2. In Wicket it is trivial to keep state (read the conversation state) on the server, local to the dialog/panel you are working with. No official conversation support is therefore needed. 3. Yes. See WicketTester. 4. Yes. See mailing list for earlier answers. There are more hardening options such as encrypting urls. Regards, Erik. Marcelo Morales wrote: Hello I've browsed over the wicket documentation and examples. There are a couple of things I don't seem able to determine. So I would really appreciate your input on this questions. 1 Can I write a web application without coding any HTML whatsoever?... I mean, is there some kind of html or whole page component which renders an entire HTML page? 2 Is there a way to work on dialogs (also known as conversations) as opposed to sessions?... maybe this question is nonsense and I didn't understand the whole page version management mechanism. 3 Does it come with some kind of integration testing? 4 Is it possible (or feasible) to implement some kind of page hardening? I am seeking something to protect victims of CSRF attacks from other sites. A input name randomizer comes to mind (which would make it impossible to selenium test it) Regads Marcelo Morales - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - 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]
Questions about wicket features
Hello I've browsed over the wicket documentation and examples. There are a couple of things I don't seem able to determine. So I would really appreciate your input on this questions. 1 Can I write a web application without coding any HTML whatsoever?... I mean, is there some kind of html or whole page component which renders an entire HTML page? 2 Is there a way to work on dialogs (also known as conversations) as opposed to sessions?... maybe this question is nonsense and I didn't understand the whole page version management mechanism. 3 Does it come with some kind of integration testing? 4 Is it possible (or feasible) to implement some kind of page hardening? I am seeking something to protect victims of CSRF attacks from other sites. A input name randomizer comes to mind (which would make it impossible to selenium test it) Regads Marcelo Morales - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]