Re: [OT] wicket users around the world
Vienna, Austria Martijn Dashorst wrote: Amersfoort, Netherlands On Fri, Dec 26, 2008 at 2:15 PM, Francisco Diaz Trepat - gmail francisco.diaztre...@gmail.com wrote: Buenos Aires, Argentina. On Fri, Dec 26, 2008 at 9:57 AM, Mathias P.W Nilsson math...@snyltarna.sewrote: Munkedal, Sweden. I used wicket for 2 intranet projects and one external project. http://www.boardstore.se http://www.boardstore.se http://www.eddyemery.com http://www.eddyemery.com They both run the same wicket code. -- View this message in context: http://www.nabble.com/-OT--wicket-users-around-the-world-tp20962108p21174081.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: Functional testing tools comparison
I've selenium tests running from maven here... basically it's easy to setup. Better Builds With Maven suggests several ways to do functional tests, they'd prefer to put the functional integration tests in a separate module, but I had to keep them together in one module, so I followed the approach from Apache Shale, marking all selenium tests by putting them into a gui package. Then I excluded this gui package for the test phase using: plugin artifactIdmaven-surefire-plugin/artifactId configuration excludes exclude**/gui/**/exclude /excludes /configuration /plugin for my default builds Finally I created a profile in my root pom like this one (http://host:port/context-root to be replaced with the url where the to be tested app is deployed, that's a system property I read in my selenium tests). profile idguiTest/id build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId executions execution idsurefire-it/id phaseintegration-test/phase goals goaltest/goal /goals configuration excludes excludenone/exclude /excludes includes include**/gui/**/include /includes systemProperties property nameselenium.target.url/name valuehttp://host:port/context-root/value /property /systemProperties /configuration /execution /executions /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdselenium-maven-plugin/artifactId executions execution phasepre-integration-test/phase goals goalstart-server/goal /goals configuration backgroundtrue/background /configuration /execution /executions /plugin /plugins /build /profile So far I've not tried to integrate coverage reports, by merging e.g. the cobertura ser files, but that should be possible with some tricks, too. Hope that helps, Tom Frank Bille schrieb: no, I run them manually, from command line. I haven't got that thing set up, though one of my colleagues have created something that integrated into maven for work (I think). We can see if selenium is the best fit for us, and then I can try to integrate it into maven. It is doable, since we have them running at work. Frank On Thu, Jul 3, 2008 at 10:23 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Do you have them running from maven? Could we RC them onto our build server? Martijn On Thu, Jul 3, 2008 at 10:20 AM, Frank Bille [EMAIL PROTECTED] wrote: Hi, I have a test suite for selenium for the wicket examples, which I use to test with when releasing (or testing your release). In that way I can quickly test on IE6, IE7 (using vmware (2 pcs unfortunatly)), Firefox etc. I can wrap them up and put them somewhere. Frank On Wed, Jul 2, 2008 at 6:30 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: All, I'm trying to discover which functional testing tool suits Wicket development best. My options are: - Canoo webtest - Selenium - Watir I'd like some folks to create a couple of functional tests for our wicket examples in one of these tools so that we get a complete overview of all three testing platforms. I've created one test for Canoo webtest, and I like the output of the tool. The XML stuff is not that great though. Fortunately it also supports groovy scripts. I intend to create some more tests and hope that someone will be able to translate those tests to selenium and watir so that we can compare these tools. Anyone interested? Martijn -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now:
Re: wicket servlet mapping to subdirectory
Thanks Igor ! I removed the filter init params, tried with a fresh 1.3.x from subversion, still did not work. But :-), it's not wicket's fault, it's f* oc4j. The redirect after the login page (I am using the acegi+wicket approach from the wiki) is not handled right.. oc4j does a redirect with a relative url the wrong way, it's relative to the webapp context, but not including the servlet path. I am playing around to find a workaround, if I am lucky I'll post the solution here, in case other unlucky oc4j users are out there :-). Thanks again, Tom Igor Vaynberg schrieb: interesting 1) you can remove filter init params, when wicket servlet is used the path can be determined from servletrequest 2) can you try with wicket-1.3.x branch to see if we have already fixed it 3) if its still broken file a jira issue -igor On Fri, Jun 20, 2008 at 5:19 AM, Thomas Lutz [EMAIL PROTECTED] wrote: Hi again ! I've tried to solve my issue, but had no luck so far. Here is the web.xml snippet I use: servlet servlet-nameACSWebapp/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationFactoryClassName/param-name param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value /init-param init-param param-namefilterPath/param-name param-valueapp/*/param-value /init-param init-param param-namefilterMappingUrlPattern/param-name param-valueapp/*/param-value /init-param load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameACSWebapp/servlet-name url-pattern/app/*/url-pattern /servlet-mapping I am not sure if I need the filterPath and filterMappingUrlPattern init parameters, but I left them in. My application is deployed with an application.xml containing module web web-uriACS.war/web-uri context-rootACS/context-root /web /module When I call http://ip:port/ACS/app/ I am redirected to http://ip:port/ACS/;jsessionid=d5a0c3193157101e4c749c214a05985eb6afb0ce6bc9.e34RaxuNah4Rai0LahqTaNuRa34Te6fznA5Pp7ftolbGmkTy?wicket:bookmarkablePage=%3Aat.schnirkel.acs.MySignInPage which of course does not work. Mapping the servlet to /* works, but then my Acegi filter is not invoked, because OC4J seems to ignore urls without a page in front of the ?, although I've configured the filter with a /* Any ideas on this ? Thanks a lot, Tom My environment is OC4J, java 4 and wicket 1.3.3. Mattom schrieb: Hi ! No, sorry, maybe i was not precise enough, when i have the /app/* mapping, i can access my HomePage directly, but all links from the HomePage as well as the style sheet link and some image links (all within wicket:link) don't work, as the /app/ part is missing. The only images working are the one from the tree I use as menu. Basically I don't need the /app/ subdirectory, but servlet filters in oc4j seem to be rather buggy, and they are not called, if you don't have either a page or a directory, just ip:port/context/?... does not work, as the filters are not called. So I tried to trick the filter (acegi) by adding a subdirectory... I guess I have to add some filterPath or filterMappingPath flag to the init-params of the servlet, but so far nothing worked. I'll dig into the sources deeper tomorrow. Thanks ! Tom Original-Nachricht Datum: Thu, 19 Jun 2008 21:42:45 +0100 Von: Gwyn Evans [EMAIL PROTECTED] An: users@wicket.apache.org Betreff: Re: wicket servlet mapping to subdirectory When you say I always get redirected to the root of the webapp, do you mean when first trying to access your app, you have to go via a redirect or some such that takes you to http://www.mysite.com/; or similar? The 'traditional' trick was to have an index.html that redirected to app/ as below - any uise? html head meta http-equiv=Refresh content=0; url=app /head /html /Gwyn On Thu, Jun 19, 2008 at 5:30 PM, Thomas Lutz [EMAIL PROTECTED] wrote: Hi list ! I am forced to use the wicket servlet (1.3.3) instead of the filter because of oc4j. I mapped the servlet to servlet-mapping servlet-nameWicket Webapp/servlet-name url-pattern/app/*/url-pattern /servlet-mapping This does not work, I always get redirected to the root of the webapp, and therefore none of my pages shows up. If I map to /*, everything works fine, but then my acegi filters to not work... Is there any parameter I need to set to tell wicket about the different location ? Or, is it possible to configure some fake name in front of the request strings ? ? Thanks a lot, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: wicket servlet mapping to subdirectory
I searched the list, but I guess nobody tried to map to a subdirectory so far... or combine it with acegi. I've made some progress, though, basically the only solution yet was removing the filter, and handle the filter stuff in my customized wicket session. not very beautiful, but it works. More detailed in case anybody has the same problem: I followed http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html but removed HttpSessionContextIntegrationFilter and remebered the SecurityContext in the wicket session. Thanks for your help, and thanks for this great framework, Tom Igor Vaynberg schrieb: hmm, i remember some people were complaining about oracle server before as well. you might want to search the mailing list. -igor On Mon, Jun 23, 2008 at 4:48 AM, Thomas Lutz [EMAIL PROTECTED] wrote: Thanks Igor ! I removed the filter init params, tried with a fresh 1.3.x from subversion, still did not work. But :-), it's not wicket's fault, it's f* oc4j. The redirect after the login page (I am using the acegi+wicket approach from the wiki) is not handled right.. oc4j does a redirect with a relative url the wrong way, it's relative to the webapp context, but not including the servlet path. I am playing around to find a workaround, if I am lucky I'll post the solution here, in case other unlucky oc4j users are out there :-). Thanks again, Tom Igor Vaynberg schrieb: interesting 1) you can remove filter init params, when wicket servlet is used the path can be determined from servletrequest 2) can you try with wicket-1.3.x branch to see if we have already fixed it 3) if its still broken file a jira issue -igor On Fri, Jun 20, 2008 at 5:19 AM, Thomas Lutz [EMAIL PROTECTED] wrote: Hi again ! I've tried to solve my issue, but had no luck so far. Here is the web.xml snippet I use: servlet servlet-nameACSWebapp/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationFactoryClassName/param-name param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value /init-param init-param param-namefilterPath/param-name param-valueapp/*/param-value /init-param init-param param-namefilterMappingUrlPattern/param-name param-valueapp/*/param-value /init-param load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameACSWebapp/servlet-name url-pattern/app/*/url-pattern /servlet-mapping I am not sure if I need the filterPath and filterMappingUrlPattern init parameters, but I left them in. My application is deployed with an application.xml containing module web web-uriACS.war/web-uri context-rootACS/context-root /web /module When I call http://ip:port/ACS/app/ I am redirected to http://ip:port/ACS/;jsessionid=d5a0c3193157101e4c749c214a05985eb6afb0ce6bc9.e34RaxuNah4Rai0LahqTaNuRa34Te6fznA5Pp7ftolbGmkTy?wicket:bookmarkablePage=%3Aat.schnirkel.acs.MySignInPage which of course does not work. Mapping the servlet to /* works, but then my Acegi filter is not invoked, because OC4J seems to ignore urls without a page in front of the ?, although I've configured the filter with a /* Any ideas on this ? Thanks a lot, Tom My environment is OC4J, java 4 and wicket 1.3.3. Mattom schrieb: Hi ! No, sorry, maybe i was not precise enough, when i have the /app/* mapping, i can access my HomePage directly, but all links from the HomePage as well as the style sheet link and some image links (all within wicket:link) don't work, as the /app/ part is missing. The only images working are the one from the tree I use as menu. Basically I don't need the /app/ subdirectory, but servlet filters in oc4j seem to be rather buggy, and they are not called, if you don't have either a page or a directory, just ip:port/context/?... does not work, as the filters are not called. So I tried to trick the filter (acegi) by adding a subdirectory... I guess I have to add some filterPath or filterMappingPath flag to the init-params of the servlet, but so far nothing worked. I'll dig into the sources deeper tomorrow. Thanks ! Tom Original-Nachricht Datum: Thu, 19 Jun 2008 21:42:45 +0100 Von: Gwyn Evans [EMAIL PROTECTED] An: users@wicket.apache.org Betreff: Re: wicket servlet mapping to subdirectory When you say I always get redirected to the root of the webapp, do you mean when first trying to access your app, you have to go via a redirect or some such that takes you to http://www.mysite.com/; or similar? The 'traditional' trick was to have an index.html that redirected to app/ as below - any uise? html head meta http-equiv=Refresh content=0; url=app /head /html /Gwyn On Thu, Jun 19, 2008 at 5:30 PM, Thomas Lutz [EMAIL PROTECTED] wrote: Hi list ! I am forced to use the wicket servlet (1.3.3) instead of the filter
Re: wicket servlet mapping to subdirectory
Hi again ! I've tried to solve my issue, but had no luck so far. Here is the web.xml snippet I use: servlet servlet-nameACSWebapp/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationFactoryClassName/param-name param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value /init-param init-param param-namefilterPath/param-name param-valueapp/*/param-value /init-param init-param param-namefilterMappingUrlPattern/param-name param-valueapp/*/param-value /init-param load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameACSWebapp/servlet-name url-pattern/app/*/url-pattern /servlet-mapping I am not sure if I need the filterPath and filterMappingUrlPattern init parameters, but I left them in. My application is deployed with an application.xml containing module web web-uriACS.war/web-uri context-rootACS/context-root /web /module When I call http://ip:port/ACS/app/ I am redirected to http://ip:port/ACS/;jsessionid=d5a0c3193157101e4c749c214a05985eb6afb0ce6bc9.e34RaxuNah4Rai0LahqTaNuRa34Te6fznA5Pp7ftolbGmkTy?wicket:bookmarkablePage=%3Aat.schnirkel.acs.MySignInPage which of course does not work. Mapping the servlet to /* works, but then my Acegi filter is not invoked, because OC4J seems to ignore urls without a page in front of the ?, although I've configured the filter with a /* Any ideas on this ? Thanks a lot, Tom My environment is OC4J, java 4 and wicket 1.3.3. Mattom schrieb: Hi ! No, sorry, maybe i was not precise enough, when i have the /app/* mapping, i can access my HomePage directly, but all links from the HomePage as well as the style sheet link and some image links (all within wicket:link) don't work, as the /app/ part is missing. The only images working are the one from the tree I use as menu. Basically I don't need the /app/ subdirectory, but servlet filters in oc4j seem to be rather buggy, and they are not called, if you don't have either a page or a directory, just ip:port/context/?... does not work, as the filters are not called. So I tried to trick the filter (acegi) by adding a subdirectory... I guess I have to add some filterPath or filterMappingPath flag to the init-params of the servlet, but so far nothing worked. I'll dig into the sources deeper tomorrow. Thanks ! Tom Original-Nachricht Datum: Thu, 19 Jun 2008 21:42:45 +0100 Von: Gwyn Evans [EMAIL PROTECTED] An: users@wicket.apache.org Betreff: Re: wicket servlet mapping to subdirectory When you say I always get redirected to the root of the webapp, do you mean when first trying to access your app, you have to go via a redirect or some such that takes you to http://www.mysite.com/; or similar? The 'traditional' trick was to have an index.html that redirected to app/ as below - any uise? html head meta http-equiv=Refresh content=0; url=app /head /html /Gwyn On Thu, Jun 19, 2008 at 5:30 PM, Thomas Lutz [EMAIL PROTECTED] wrote: Hi list ! I am forced to use the wicket servlet (1.3.3) instead of the filter because of oc4j. I mapped the servlet to servlet-mapping servlet-nameWicket Webapp/servlet-name url-pattern/app/*/url-pattern /servlet-mapping This does not work, I always get redirected to the root of the webapp, and therefore none of my pages shows up. If I map to /*, everything works fine, but then my acegi filters to not work... Is there any parameter I need to set to tell wicket about the different location ? Or, is it possible to configure some fake name in front of the request strings ? ? Thanks a lot, Tom - 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]
PatternValidation on timestamp / RawInputPatternValidator
hi list ! In my form model bean I've got an attribute of type java.sql.Timestamp. Unfortunately I've got to perform a regular expression validation on the input. Adding a PatternValidator does not work, as first the converter is called, and afterwards the validators. Within the validator interface there is no chance to access the raw input, so no chance in implementing my own validator, and .. too much finals to tweak it in :-). Is there a way to integrate a raw input pattern validator ? Thanks ! Tom p.s.: wicket 1.3.3 and no chance to upgrade, need to stay with java 1.4 for another year :-/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PatternValidation on timestamp / RawInputPatternValidator
As a workaround I've implemented a form validator, as this was a way to access the raw input. in case anybody is interested, find the source below. I am pretty sure, that there are others out there, that need to validate the rawinput, before any conversion is applied, and do not want to mix converters with validators, so what about a FormComponenet.addRawInputValidator ? Cheers, Tom source package at.schnirkel.wicket.validator; import org.apache.wicket.markup.html.form.validation.IFormValidator; import org.apache.wicket.markup.html.form.validation.AbstractFormValidator; import org.apache.wicket.markup.html.form.FormComponent; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.validation.validator.PatternValidator; public class RawInputFormValidator extends AbstractFormValidator implements IFormValidator { FormComponent[] formComponents = new FormComponent[1]; PatternValidator patternValidator; public RawInputFormValidator(FormComponent formComponent, String pattern) { this.formComponents[0] = formComponent; patternValidator = new PatternValidator(pattern); } public FormComponent[] getDependentFormComponents() { return formComponents; } public void validate(Form form) { FormComponent formComponent = formComponents[0]; String rawInput = formComponent.getRawInput(); if (!patternValidator.getPattern().matcher(rawInput).matches()) { error(formComponent); } } } /source Thomas Lutz schrieb: hi list ! In my form model bean I've got an attribute of type java.sql.Timestamp. Unfortunately I've got to perform a regular expression validation on the input. Adding a PatternValidator does not work, as first the converter is called, and afterwards the validators. Within the validator interface there is no chance to access the raw input, so no chance in implementing my own validator, and .. too much finals to tweak it in :-). Is there a way to integrate a raw input pattern validator ? Thanks ! Tom p.s.: wicket 1.3.3 and no chance to upgrade, need to stay with java 1.4 for another year :-/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket cannot work on OC4J (ias 10g)?
Which version of oc4j are you using ? I (am forced to run :-) ) run a 1.3.2 on a oc4j 10.1.2.2.0 without any problems. It's rather small, just a viewer and no editing, but it's working with WicketFilter. regards, tom Igor Vaynberg schrieb: from what i remember, filter support is broken in oracle app server. dont quote me on that though, but do search this list... -igor On Wed, Apr 16, 2008 at 10:15 PM, xdirewolfx [EMAIL PROTECTED] wrote: Thank you for your prompt reply. It s working well now igor.vaynberg wrote: try using wicketservlet instead of wicketfilter -igor On Wed, Apr 16, 2008 at 8:46 PM, xdirewolfx [EMAIL PROTECTED] wrote: I can deploy the application can kick up and the first page can be shown but the rest of the stuff do not work as normal: - forms lost validations - buttons do not work etc.. wicket 1.3.1 -- View this message in context: http://www.nabble.com/Wicket-cannot-work-on-OC4J-%28ias-10g%29--tp16738242p16738242.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Wicket-cannot-work-on-OC4J-%28ias-10g%29--tp16738242p16739041.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: comunication between panels
Mazzanti Luca schrieb: i don't understand your phrase: 'why are you shouting' please repeate. writing uppercase - shouting have a look at http://www.dtcc.edu/cs/rfc1855.html and search for shouting... regards, tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]