Re: Jetty, Wicket and getting live JavaScript changes?
Create a new application using the Quickstart guide: http://wicket.apache.org/start/quickstart.html Run the Start.java application right from Eclipse in debug mode. Hot code replacement from src/main/webapp/* should work now. Best regards / Met vriendelijke groet, Kees van Dieren Squins IT Solutions BV Oranjestraat 30 2983 HS Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com Chamber of commerce Rotterdam: 24435103 2014-02-15 16:12 GMT+01:00 Igor Vaynberg : > Make sure wicket is running in development mode. It will scan resources for > changes. A refresh in the browser will load the latest version. > > -igor > On Feb 14, 2014 3:59 PM, "tertioptus" wrote: > > > I use Jetty, maven and Eclipse. > > > > *What's the best way for me to have Jetty pick up my changes from a > > JavaScript file not in the war project?* > > > > Currently, I have clean install both projects and then restart jetty to > see > > changes. > > > > I am assuming this is common among Wicket users with the advent of > > component > > bound resources. > > > > -- > > View this message in context: > > > http://apache-wicket.1842946.n4.nabble.com/Jetty-Wicket-and-getting-live-JavaScript-changes-tp4664472.html > > Sent from the Users forum mailing list archive at Nabble.com. > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > >
Re: Page rendering from quartz job
Is it an option to use an http client library to call your own webapp / wicket page, fetch contents? Also makes it easier to test it in the browser. Best regards / Met vriendelijke groet, Kees van Dieren Squins IT Solutions BV Oranjestraat 30 2983 HS Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com Chamber of commerce Rotterdam: 24435103 2014-05-20 7:06 GMT+02:00 Ernesto Reinaldo Barreiro : > The question is: why introduce another template engine to generate HTML if > you already have a wonderful one in place? You are not making your task > depend on wicket you are rolling out a task that uses wicket to generate > HTML. This is not going to be different if you use velocity as you > suggested before: you just replace wicket by velocity. > > > On Tue, May 20, 2014 at 5:40 AM, Paul Borș wrote: > > > I'm not sure you want to have you scheduled task/alerts depend on Wicket. > > They should be stand alone services in In their own processes IMOP. > > > > Have a great day, > > Paul Bors > > > > > On May 19, 2014, at 7:42 AM, Martin Grigorov > > wrote: > > > > > > See > > > > > > https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/util/string/ComponentRenderer.java#L46for > > > inspiration. > > > > > > Martin Grigorov > > > Wicket Training and Consulting > > > > > > > > >> On Mon, May 19, 2014 at 2:30 PM, Sandor Feher > > wrote: > > >> > > >> Ok. Let's say I get the reference. How can I render the page then ? > > >> Where should I put it ? > > >> > > >> > > >> > > >> -- > > >> View this message in context: > > >> > > > http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665933.html > > >> Sent from the Users forum 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 > > > > > > > -- > Regards - Ernesto Reinaldo Barreiro >
Is wicket:message tag escape behaviour customizable?
Hi, We need the wicket:message tag to be able to escape its messages . One of our applications uses wicket:message with an escape attribute, e.g. A search gives a related wicket Jira issue which was resolved years ago: https://issues.apache.org/jira/browse/WICKET-369 However in Wicket 6 the escape attribute seems to be not in use any more; adding this attribute does not affect escaping. Is there still a way to customize escaping of wicket:message strings? Thanks in advance! Best Regards, Kees
Re: Is wicket:message tag escape behaviour customizable?
Hi, Resource retrieved using wicket:message values are not escaped (verified with Wicket 6.13). We have build our own custom mini-cms to allow system administrators to alter texts. Those texts are stored in database, and loaded with a custom ComponentStringResourceLoader. Those texts are sometimes resolved using a wicket Label with a ResourceModel, and sometimes with wicket:message. Label by default escapes model strings, wicket:message not. We would like to be able to escape wicket:message resource keys as well, if possible. Any suggestion / workaround is welcome. Thanks. Best regards / Met vriendelijke groet, Kees van Dieren Squins IT Solutions BV Oranjestraat 30 2983 HS Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com Chamber of commerce Rotterdam: 24435103 2014-10-29 9:39 GMT+01:00 Martin Grigorov : > Hi, > > I'm not sure why the ticket says "Fixed" but there was never such attribute > for tag. > I think the default is to escape HTML. > What is the issue you try to solve ? > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Wed, Oct 29, 2014 at 10:01 AM, Kees van Dieren > > wrote: > > > Hi, > > > > We need the wicket:message tag to be able to escape its messages . > > > > One of our applications uses wicket:message with an escape attribute, > e.g. > > > > > > > > A search gives a related wicket Jira issue which was resolved years ago: > > https://issues.apache.org/jira/browse/WICKET-369 > > > > However in Wicket 6 the escape attribute seems to be not in use any more; > > adding this attribute does not affect escaping. > > > > Is there still a way to customize escaping of wicket:message strings? > > > > Thanks in advance! > > > > Best Regards, > > > > Kees > > >
Re: Is wicket:message tag escape behaviour customizable?
Finally found time for it. https://issues.apache.org/jira/browse/WICKET-5771 Thanks for looking into it. 2014-10-29 13:35 GMT+01:00 Martin Grigorov : > On Wed, Oct 29, 2014 at 1:59 PM, Kees van Dieren wrote: > > > Hi, > > > > Resource retrieved using wicket:message values are not escaped (verified > > with Wicket 6.13). > > > > We have build our own custom mini-cms to allow system administrators to > > alter texts. Those texts are stored in database, and loaded with a > > custom ComponentStringResourceLoader. > > > > Those texts are sometimes resolved using a wicket Label with a > > ResourceModel, and sometimes with wicket:message. > > > > Label by default escapes model strings, wicket:message not. > > > > We would like to be able to escape wicket:message resource keys as well, > if > > possible. > > > > Any suggestion / workaround is welcome. > > > > Please create a ticket with a quickstart attached. > Thanks! > > > > > > Thanks. > > > > > > Best regards / Met vriendelijke groet, > > > > Kees van Dieren > > Squins IT Solutions BV > > Oranjestraat 30 > > 2983 HS Ridderkerk > > The Netherlands > > Mobile: +31 (0)6 30413841 > > www.squins.com > > Chamber of commerce Rotterdam: 24435103 > > > > 2014-10-29 9:39 GMT+01:00 Martin Grigorov : > > > > > Hi, > > > > > > I'm not sure why the ticket says "Fixed" but there was never such > > attribute > > > for tag. > > > I think the default is to escape HTML. > > > What is the issue you try to solve ? > > > > > > Martin Grigorov > > > Wicket Training and Consulting > > > https://twitter.com/mtgrigorov > > > > > > On Wed, Oct 29, 2014 at 10:01 AM, Kees van Dieren < > > keesvandie...@gmail.com > > > > > > > wrote: > > > > > > > Hi, > > > > > > > > We need the wicket:message tag to be able to escape its messages . > > > > > > > > One of our applications uses wicket:message with an escape attribute, > > > e.g. > > > > > > > > > > > > > > > > A search gives a related wicket Jira issue which was resolved years > > ago: > > > > https://issues.apache.org/jira/browse/WICKET-369 > > > > > > > > However in Wicket 6 the escape attribute seems to be not in use any > > more; > > > > adding this attribute does not affect escaping. > > > > > > > > Is there still a way to customize escaping of wicket:message strings? > > > > > > > > Thanks in advance! > > > > > > > > Best Regards, > > > > > > > > Kees > > > > > > > > > >
Re: Is wicket:message tag escape behaviour customizable?
Also fixed the issue: wicket:message tag now supports escape attribute. Patch attached to the issue. 2014-11-20 21:02 GMT+01:00 Kees van Dieren : > Finally found time for it. > > https://issues.apache.org/jira/browse/WICKET-5771 > > Thanks for looking into it. > > 2014-10-29 13:35 GMT+01:00 Martin Grigorov : > >> On Wed, Oct 29, 2014 at 1:59 PM, Kees van Dieren wrote: >> >> > Hi, >> > >> > Resource retrieved using wicket:message values are not escaped (verified >> > with Wicket 6.13). >> > >> > We have build our own custom mini-cms to allow system administrators to >> > alter texts. Those texts are stored in database, and loaded with a >> > custom ComponentStringResourceLoader. >> > >> > Those texts are sometimes resolved using a wicket Label with a >> > ResourceModel, and sometimes with wicket:message. >> > >> > Label by default escapes model strings, wicket:message not. >> > >> > We would like to be able to escape wicket:message resource keys as >> well, if >> > possible. >> > >> > Any suggestion / workaround is welcome. >> > >> >> Please create a ticket with a quickstart attached. >> Thanks! >> >> >> > >> > Thanks. >> > >> > >> > Best regards / Met vriendelijke groet, >> > >> > Kees van Dieren >> > Squins IT Solutions BV >> > Oranjestraat 30 >> > 2983 HS Ridderkerk >> > The Netherlands >> > Mobile: +31 (0)6 30413841 >> > www.squins.com >> > Chamber of commerce Rotterdam: 24435103 >> > >> > 2014-10-29 9:39 GMT+01:00 Martin Grigorov : >> > >> > > Hi, >> > > >> > > I'm not sure why the ticket says "Fixed" but there was never such >> > attribute >> > > for tag. >> > > I think the default is to escape HTML. >> > > What is the issue you try to solve ? >> > > >> > > Martin Grigorov >> > > Wicket Training and Consulting >> > > https://twitter.com/mtgrigorov >> > > >> > > On Wed, Oct 29, 2014 at 10:01 AM, Kees van Dieren < >> > keesvandie...@gmail.com >> > > > >> > > wrote: >> > > >> > > > Hi, >> > > > >> > > > We need the wicket:message tag to be able to escape its messages . >> > > > >> > > > One of our applications uses wicket:message with an escape >> attribute, >> > > e.g. >> > > > >> > > > >> > > > >> > > > A search gives a related wicket Jira issue which was resolved years >> > ago: >> > > > https://issues.apache.org/jira/browse/WICKET-369 >> > > > >> > > > However in Wicket 6 the escape attribute seems to be not in use any >> > more; >> > > > adding this attribute does not affect escaping. >> > > > >> > > > Is there still a way to customize escaping of wicket:message >> strings? >> > > > >> > > > Thanks in advance! >> > > > >> > > > Best Regards, >> > > > >> > > > Kees >> > > > >> > > >> > >> > >
Hide component when instantiating component not authorized to
Hi all, We would like to hide a Panel marked with @AuthorizeInstantiation("RoleNotAuthorizedTo"); The default behaviour is that wicket sends AccessDeniedPage. We are using wicket 1.3.7. I implemented the desired solution by duplicating the complete org.apache.wicket.authentication.AuthenticatedWebApplication class in our source tree, and changing the onUnauthorizedInstantiation method to: public final void onUnauthorizedInstantiation(final Component component) { // If there is a sign in page class declared, and the unauthorized // component is a page, but it's not the sign in page if (component instanceof Page) { if (!AuthenticatedWebSession.get().isSignedIn()) { // Redirect to intercept page to let the user sign in throw new RestartResponseAtInterceptPageException(getSignInPageClass()); } else { onUnauthorizedPage((Page)component); } } else { // Kees / IOO change: delegate to new onUnAuthorizedComponent onUnautorizedComponent(component); } } /** * Kees / IOO change: created delegate method * @param component *a (non-page) component that user is not authorized to to construct. */ protected void onUnautorizedComponent(final Component component) { // The component was not a page, so throw an exception throw new UnauthorizedInstantiationException(component.getClass()); } Our WicketApplication subclass overrides the onUnautorizedComponent with: protected void onUnautorizedComponent(final Component component) { component.setVisible(false); } Is this the only way to achieve this? I'd like to not duplicate the complete class, but some kind of hook where I can implement this in. Is that possible? Thanks in advance! Best regards, Kees van Dieren -- Squins | IT, Honestly Oranjestraat 23 2983 HL Ridderkerk The Netherlands Phone: +31 (0)180 414520 Mobile: +31 (0)6 30413841 www.squins.com Chamber of commerce Rotterdam: 22048547
Re: VTD XML for wicket
Its licenced GPL so wicket cannot depend on it. Best regards / Met vriendelijke groet, Kees van Dieren Squins | IT, Honestly Oranjestraat 23 2983 HL Ridderkerk The Netherlands Phone: +31 (0)180 415559 Mobile: +31 (0)6 30413841 www.squins.com http://twitter.com/keesvandieren Chamber of commerce Rotterdam: 24435130 Boeken voor school en werk bestel je op studieboekencenter.nl 2012/5/17 kamiseq > anyway VDT-XML outperforms any existing SAXlike or DOM technologies. I > just want to let you know. > > take care > > pozdrawiam > Paweł Kamiński > > kami...@gmail.com > pkaminski@gmail.com > __ > > > On 17 May 2012 07:08, Igor Vaynberg wrote: > > xml is parsed only the first time a page/panel is accessed. broken > > down into a collection of chunks optimized for wicket's consumption. > > and cached. > > > > -igor > > > > On Wed, May 16, 2012 at 9:49 PM, kamiseq wrote: > >> hej, > >> have you ever consider using http://vtd-xml.sourceforge.net/ as xml > >> parsing library?? > >> I ve already successfully used this in quite big project and for sure > >> it is worth checking as I suspect wicket spends some time parsing html > >> on each request, right? > >> > >> pozdrawiam > >> Paweł Kamiński > >> > >> kami...@gmail.com > >> pkaminski@gmail.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 > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: java pojo/Bean to generate html (textfield, dropdown,radio buttons)
Stackoverflow post about wicket scaffolding: http://stackoverflow.com/questions/9997688/scaffolding-in-wicket Best regards / Met vriendelijke groet, Kees van Dieren Squins | IT, Honestly Oranjestraat 23 2983 HL Ridderkerk The Netherlands Phone: +31 (0)180 415559 Mobile: +31 (0)6 30413841 www.squins.com http://twitter.com/keesvandieren Chamber of commerce Rotterdam: 24435130 Boeken voor school en werk bestel je op studieboekencenter.nl 2012/7/4 venkatnsm > hi, > > how to generate html page from java POJO. > > Suppose in pogo i have name & age, for these fields i want to generate text > field automatically in HTML with validations. > > Thanks in advance. > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/java-pojo-Bean-to-generate-html-textfield-dropdown-radio-buttons-tp4650359.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: The Apache Software Foundation Announces Apache Wicket™ 6.0.0
Congratulations and thanks for all the effort! Best regards / Met vriendelijke groet, Kees van Dieren Squins | IT, Honestly Oranjestraat 23 2983 HL Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com http://twitter.com/keesvandieren Chamber of commerce Rotterdam: 24435130 Boeken voor school en werk bestel je op studieboekencenter.nl 2012/9/5 Martijn Dashorst > "With great pleasure we announce the availability of Apache Wicket 6.0.0" > -- Martijn Dashorst, Vice President, Apache Wicket > > Apache Wicket v6.0.0 is the 6th major release of the popular open > source Java web framework. Numerous enhancements make Apache Wicket > v6.0.0 a solid choice for web development: > > - Out-of-the box JQuery integration > - Complete control over AJAX requests > - Improved event registration in browsers > - Support for large datasets in components > - Dependency management for client side javascript libraries > - Experimental support for websockets > > Additional features include a customizable client-side API, improved > feedback messages, correct packaging for OSGi compatibility and > improved initialization of plugins. Highlights include: > > Java 6 required -This release moves the minimum required Java version > to Java 6. This means that Wicket applications running on earlier Java > versions meaning to upgrade, also need to upgrade their Java runtime. > > Revamped Wicket AJAX now leverages JQuery - Wicket's custom AJAX > JavaScript library has been re-implemented using JQuery. This makes it > easier to integrate JQuery plugins into Wicket applications. With the > new AJAX implementation it is possible to provide your own version of > JQuery should the need arise, or even to replace the whole Wicket > client side AJAX implementation. > > AJAX Attributes - With the new and improved AJAX implementation, you > can alter any aspect of an AJAX request through AjaxRequestAttributes. > For example you can specify that the request should be executed using > POST instead of GET, or that the AJAX request should be multi-part, > etc. See the migration guide or the JavaDoc of AjaxRequestAttributes > for all possible options. > > Browser event registration replaces inline events - Wicket now uses > JavaScript event registration instead of inline attributes for AJAX > components. This enables multiple event listeners to be attached to a > markup tag, cleans up the rendered markup considerably and reduces the > amount of generated markup. > > IDataProvider now uses long instead of int - The IDataProvider > interface and implementations now use long instead of int for index > and size parameters to better line up with the Java Persistence API > and other persistency frameworks. Big data is now possible with > Wicket! > > ${label} replaces ${input} in feedback messages - Previous Wicket > versions used the input that was provided by users in error messages > when validations failed. This led to error messages like "1234a is not > a valid number". In Wicket 6 the feedback messages use the label of > the invalid form component instead. You can set the label by calling > setLabel() on the form component. If no label is provided, Wicket > defaults to displaying the component identifier. This changes the > error message to "Phonenumber is not a valid number". > > Resources can declare dependencies - It is now much easier to create > resource contributions with dependencies, for example a JQuery plugin > can declare a dependency on JQuery and other resources such as > embedded style sheets. Users of such resources don’t have to provide > these dependencies themselves, and the dependencies are linked in the > appropriate order. > > Packaged resources will use minimized version automatically - When a > minimized JavaScript resource is available (filename.min.js – add the > .min part to the filename before the extension), Wicket will > automatically use the minimized version when running in deployment > mode, while using the non-minimized version for development mode. > > OSGi compatible packaging - Wicket's packaging has been made > compatible with OSGi bundles by moving some classes to different > packages. The full list can be found in our migration guide. This > makes it much easier to deploy Wicket applications in an OSGi > environment. > > Experimental websocket implementations - This release also includes > two experimental websocket implementations: one using Atmosphere as a > bridge for browsers and containers that don't support websockets > natively and one for containers and browsers that have native > websocket support. > > The complete set of changes is available in the migration guide at > http://s.apache.org/wicke
What replaces Wicket 1.4 AbortException in Wicket 6.x?
Hi, We have some code that returns zip output (e.g. downloads a file) in an onsubmit of a wicket form. We used to do this (with Wicket 1.4): Get the WebResponse Fill it with the ZIP contents throw new AbortException(); The ZIP contents to be returned depends on the contents filled in by the user in a wicket form. However, AbortException does not exists any more. What is the best way to do it on Wicket 6? Thanks in advance! -- Best regards / Met vriendelijke groet, Kees van Dieren Squins | IT, Honestly Oranjestraat 23 2983 HL Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com http://twitter.com/keesvandieren Chamber of commerce Rotterdam: 24435130 Boeken voor school en werk bestel je op studieboekencenter.nl
Re: What replaces Wicket 1.4 AbortException in Wicket 6.x?
Found something that might help: org.apache.wicket.markup.html.link.DownloadLink.onClick() Will look at this, some tips still welcome :) 2012/11/19 Kees van Dieren > Hi, > > We have some code that returns zip output (e.g. downloads a file) in an > onsubmit of a wicket form. > > We used to do this (with Wicket 1.4): > > Get the WebResponse > Fill it with the ZIP contents > > throw new AbortException(); > > The ZIP contents to be returned depends on the contents filled in by the > user in a wicket form. > > However, AbortException does not exists any more. > > What is the best way to do it on Wicket 6? > > > Thanks in advance! > > -- > Best regards / Met vriendelijke groet, > > Kees van Dieren > Squins | IT, Honestly > Oranjestraat 23 > 2983 HL Ridderkerk > The Netherlands > Mobile: +31 (0)6 30413841 > www.squins.com > http://twitter.com/keesvandieren > Chamber of commerce Rotterdam: 24435130 > Boeken voor school en werk bestel je op studieboekencenter.nl > > -- Best regards / Met vriendelijke groet, Kees van Dieren Squins | IT, Honestly Oranjestraat 23 2983 HL Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com http://twitter.com/keesvandieren Chamber of commerce Rotterdam: 24435130 Boeken voor school en werk bestel je op studieboekencenter.nl
Re: What replaces Wicket 1.4 AbortException in Wicket 6.x?
Found the solution for it. Basically it comes to this: On the place where binary content needs to be returned, use something like this: @Override protected void onSubmit() { throw new ReplaceHandlerException(new IRequestHandler() { @Override public void respond(IRequestCycle requestCycle) { sendBinaryContents((WebResponse) requestCycle.getResponse()); } @Override public void detach(IRequestCycle requestCycle) { // nothing to detach. } }, false); } private void sendBinaryContents(WebResponse response) { response.reset(); response.setAttachmentHeader("somefilename.zip"); response.setContentType("application/zip"); response.write(getZipData()); } Best regards, Kees 2012/11/19 Kees van Dieren > Found something that might help: > org.apache.wicket.markup.html.link.DownloadLink.onClick() > > Will look at this, some tips still welcome :) > > > > 2012/11/19 Kees van Dieren > >> Hi, >> >> We have some code that returns zip output (e.g. downloads a file) in an >> onsubmit of a wicket form. >> >> We used to do this (with Wicket 1.4): >> >> Get the WebResponse >> Fill it with the ZIP contents >> >> throw new AbortException(); >> >> The ZIP contents to be returned depends on the contents filled in by the >> user in a wicket form. >> >> However, AbortException does not exists any more. >> >> What is the best way to do it on Wicket 6? >> >> >> Thanks in advance! >> >> -- >> Best regards / Met vriendelijke groet, >> >> Kees van Dieren >> Squins | IT, Honestly >> Oranjestraat 23 >> 2983 HL Ridderkerk >> The Netherlands >> Mobile: +31 (0)6 30413841 >> www.squins.com >> http://twitter.com/keesvandieren >> Chamber of commerce Rotterdam: 24435130 >> Boeken voor school en werk bestel je op studieboekencenter.nl >> >> > > > -- > Best regards / Met vriendelijke groet, > > Kees van Dieren > Squins | IT, Honestly > Oranjestraat 23 > 2983 HL Ridderkerk > The Netherlands > Mobile: +31 (0)6 30413841 > www.squins.com > http://twitter.com/keesvandieren > Chamber of commerce Rotterdam: 24435130 > Boeken voor school en werk bestel je op studieboekencenter.nl > > -- Best regards / Met vriendelijke groet, Kees van Dieren Squins | IT, Honestly Oranjestraat 23 2983 HL Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com http://twitter.com/keesvandieren Chamber of commerce Rotterdam: 24435130 Boeken voor school en werk bestel je op studieboekencenter.nl
Re: what is Wicket 2.x?
We are using Wicket 6 .0 on OC4j 10.1.3.5. This is a Servlet 2.4 container with support of some Servlet api 2.5 features. Work well here. The quickstart application works on OC4J ( http://wicket.apache.org/start/quickstart.html). (some slight modification is needed when using Wicket via a web.xml Filter). If you are familiar with Maven, using the quickstart archetype it is quite easy to give it a try :). 2012/12/11 Joachim Schrod > Martijn Dashorst wrote: > > On Mon, Dec 10, 2012 at 4:39 PM, Joachim Schrod wrote: > >> I'd like to add my voice to Martijn's comment that there are still > >> people out there who have no choice but to use 1.4. Typically guys > >> who have to support Wicket apps on app servers with no servlet-2.5-api. > > > > I'm not 100% sure, but did you try running a newer wicket (1.5) on ye > > old container? > > Actually, no. The relase notes said "you need to have servlet api > 2.5" and I believed them. > > Joachim > > -- > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Joachim Schrod, Roedermark, Germany > Email: jsch...@acm.org > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Best regards / Met vriendelijke groet, Kees van Dieren Squins | IT, Honestly Oranjestraat 23 2983 HL Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com http://twitter.com/keesvandieren Chamber of commerce Rotterdam: 24435130 Boeken voor school en werk bestel je op studieboekencenter.nl
Re: documentation
Sorry for that, some good articles that might help you : http://www.devproof.org/why_choose_apache_wicket http://www.devproof.org/wicket_best_practice 2013/1/22 Philippe Demaison > Hi All, > > As Gabor Friedrich from the FAO, we are in my company, L'Oreal, comparing > different web frameworks. > Apache Wicket may be the best framework, may be usefull for my company, I > don't know. > I don't know because there is no clear documentation for a good evaluation. > > In fact the documentation is not good. > > The documentation is not up to date, not to say obsolete, not well > organized and definitely not sexy. > Sorry to being rude, I know this is difficult to do, but this is a major > drawback when company and people evaluate Wicket. > > Some articles are for 1.4 or 1.5, not many for 6 > Some articles are redundant. > > I am sure the folowing structure could be improved : > https://cwiki.apache.org/WICKET/framework-documentation.html is > https://cwiki.apache.org/WICKET/index.html > https://cwiki.apache.org/WICKET/documentation-index.html > > The http://wicket.apache.org/ layout is good. > Why not reorganize the documentation with this layout ? > > Managers want to see benefits, developpers want to learn fast(and have > fun). > > > I tested the mentionned blogs on http://wicket.apache.org/meet/blogs.html > > Here is what I found : > > Chillenious! - Eelco Hillenius - http://chillenious.wordpress.com/ > last update : 2008 > > Here be beasties - Al Maw - http://herebebeasties.com/ > last update : 2009 > > Codierspiel - Nathan Hamblen (runs on Wicket) - > http://code.technically.us/ > no a single wicket post > > Antwerkz - Justin Lee - http://antwerkz.com/wp/ > empty > > Geertjan - Geertjan Wielenga - http://blogs.sun.com/geertjan > http 404 ! > > Mystic Coders - Andrew Lombardi and > Wicket by Example - Community driven are pointing to the same address : > http://www.mysticcoders.com/blog/ > > > For a wider adoption of Wicket, > Best regards to all of you > > Philippe Demaison > -- Best regards / Met vriendelijke groet, Kees van Dieren Squins IT Solutions BV Oranjestraat 30 2983 HS Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com Chamber of commerce Rotterdam: 24435103
Re: Why does my "HelloWorldPage" not work?
Add http://repo1.maven.org/maven2/commons-lang/commons-lang/2.6/commons-lang-2.6.jarto you WEB-INF/lib Best regards / Met vriendelijke groet, Kees van Dieren Squins IT Solutions BV Oranjestraat 30 2983 HS Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com Chamber of commerce Rotterdam: 24435103 2013/2/18 mike.hua > "java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils" is > continued after remove velocity.jar! > > Thank you for your continous help! > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656492.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: How to unit test AttributeModifier
Another option is to use the TagTester: TagTester tester = wicketTester.getTagByWicketId("containerId"); tester.getAttribute("name"); // returns: "anyDynamicValue" Best regards / Met vriendelijke groet, Kees van Dieren Squins IT Solutions BV Oranjestraat 30 2983 HS Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com Chamber of commerce Rotterdam: 24435103 2013/5/8 Martin Grigorov > Also check AttributeModifierTest in wicket-core/src/test/java/.. > > > On Tue, May 7, 2013 at 5:31 PM, Igor Vaynberg >wrote: > > > attribute modifiers are behaviors, so use > > component.getbehavior(AttributeModifier.class) to get it. > > > > -igor > > > > On Tue, May 7, 2013 at 8:24 AM, Dmitriy Neretin > > wrote: > > > Hello, > > > > > > Is it possible to unit test an AttributeModifier? > > > > > > I have a simple component: > > > > > > WebMarkupContainer container = new WebMarkupContainer("containerId"); > > > container.add(new AttributeModifier("name", "anyDynamicValue")); > > > > > > In the unit test: > > > > > > WebMarkupContainer container = (WebMarkupContainer) > > > tester.getComponentFromLastRenderedPage("containerId"); > > > > > > Is it possible to get the modifier above? I can see it in the object > > state > > > (while debugging) but I have no idea how to get it to test an > > > anyDynamicValue... > > > > > > Any ideas? > > > > > > Regards, > > > > > > Dmitriy > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > -- > Martin Grigorov > Wicket Training & Consulting > http://jWeekend.com <http://jweekend.com/> >
Re: WicketTester - asserting on HTML
You could use the TagTester for that. Example: // hello world TagTester tester = wicketTester.getTagByWicketId("myLabel"); assertTrue(tester.getAttributeContains("class", "one-class")); assertTrue(tester.getAttributeContains("class", "another-class")); assertFalse(tester.getAttributeContains("class", "not-this-class")); Best regards / Met vriendelijke groet, Kees van Dieren Squins IT Solutions BV Oranjestraat 30 2983 HS Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com Chamber of commerce Rotterdam: 24435103 2013/11/21 Martin Makundi > assertContains > > > 2013/11/21 Nick Pratt > > > Is it possible to to make assertions on the rendered HTML of a Wicket > page? > > > > Im trying to make assertions on element attributes (class contents > > specifically). Is this possible with WicketTester? > > > > N > > >