Re: Image Bundler For Apache Wicket
> > My suggestions and optimalization notes: > 1. In some cases there is no necessary to create an anonymous class > for each ImageItem (using AbstractImageItem). When @ImageBundle > interface has not locale specified, then SimpleImageItem(String > imageSrc, String imageStyle) can be used. > > 2. The call: > String locale = RequestCycle.get().getSession().getLocale().toString(); > does not look very good for me :). Now you cannot call any method > outside of a Wicket thread. > > Maybe for methods returning an ImageItem a Locale should be a method > argument (but only if image is locale relative). So: > // for not locale relative images > ImageItem getSomeImage(); > // for locale related > ImageItem getSomeImage(Locale locale); > > Then implementation will be more clear: > > @Override > public ImageItem a(Locale locale) { > if ((locale != null) && "ta_IN".equals(locale.toString()) { >return new SimpleImageItem("images/clear.gif", " background-image > :url(resources/org.imagebundler.wicket.examples.SampleImageBundle > /SampleImageBundle_ta_IN.png) ; background-position:-50px -0px; > width:25px; height:25px; ") ; >} >// default >return new SimpleImageItem("images/clear.gif", "background-image > > :url(resources/org.imagebundler.wicket.examples.SampleImageBundle/SampleImageBundle.png) > ; background-position:-48px -0px; width:24px; height:24px; ") ; > } > > > Another solution is to add a Locale argument to getStyle() method (but > then maybe getSrc() should also have a Locale argument, so maybe the > first option with "ImageItem getSomeImage(Locale locale);" is better). > > The first option looks good. I will add it (may be tomorrow). > For methods returning Image component maybe it would be better to get > Locale during the rendering, not when creating an Image. So maybe it > should be a special AttributeModifier which calculates a proper style > in eg. beforeRender() method? > For now when user changes a locale in application and images are not > recreated (eg. page will be not created again, but only refreshed in a > non-bookmarkable request), they will be still using a style from an > old locale (assigned in creation time). > > I am not sure how to handle this. Anantha Kumaran(http://ananthakumaran.github.com)
Re: Image Bundler For Apache Wicket
http://ananthakumaran.github.com/imagebundler-wicket/ version 1.2 released * localization support added * style and src of the image is available through the ImageItem interface your comments are welcome Anantha Kumaran(http://ananthakumaran.github.com)
Re: AjaxSubmitLink not calling the onsubmit event handler
https://issues.apache.org/jira/browse/WICKET-2807 On Sat, Mar 27, 2010 at 11:50 AM, Igor Vaynberg wrote: > open an rfe > > -igor > > On Fri, Mar 26, 2010 at 11:12 PM, Richard Nichols > wrote: > > Yeah, maybe one of the wicket devs could comment on whether this is > > expected behaviour? > > > > In any case, I have built a workaround as part of my open source > > http://code.google.com/p/visural-wicket/ project. > > > > See - > http://code.google.com/p/visural-wicket/source/browse/trunk/visural-wicket/src/com/visural/wicket/util/InvokeClientSideFormSubmitHandlerDecorator.java > > > > This AjaxCallDecorator will invoke the form's onsubmit handler prior > > to invoking the ajax call. > > > > So you can: > > > > add(new AjaxSubmitLink("blah") { > >@Override > >protected IAjaxCallDecorator getAjaxCallDecorator() { > >return new > InvokeClientSideFormSubmitHandlerDecorator(MyForm.this); > >} > > }); > > > > And have any ajax submission work the same as SubmitLink / SubmitButton. > > > > On 26 March 2010 19:51, Anantha Kumaran > wrote: > >> Did you get a resolution to this issue? I have the same problem. > >> > >> > >>currently i am using this techniques to do the my stuff.But it > >> breaks when the user press return key. > >> > >> // save this so we can call it later > >> var wicketOnClick = ajaxSubmitLink.onclick; > >> ajaxSubmitLink.onclick = function() { > >> // do your stuff > >> return wicketOnClick(); > >> }; > >> > >> Is this expected behavior I wonder, or a bug? > >> > >>> > >>> SubmitLink will call the 's onsubmit='???' handler, > >>> AjaxSubmitLink does not. > >>> > >>> > >> AFAIK AjaxSubmitLink doesn't fire the submit event. Is serializes the > form > >> data and then makes a post call. I guess this > >> can't be fixed easily because wicket is using *inline event > registration > >> model*. > >> > >> > >> > >> > >>> On 4 January 2010 23:05, Anantha Kumaran > wrote: > >>> > hi pieter > >>> > > >>> > my problem is that the AjaxSubmitLink is not behaving like the > SubmitLink > >>> > which calls the onsubmit before submitting > >>> > the form.currently i am using the mousedown(can't use onclick) of the > >>> > AjaxSubmitLink to do the validation stuffs but it breaks when the > user > >>> > submit the form by pressing the return. > >>> > > >>> > > >>> > > >>> > > >>> > On Mon, Jan 4, 2010 at 12:03 AM, Pieter Degraeuwe < > >>> > pieter.degrae...@systemworks.be> wrote: > >>> > > >>> >> If you want to do some additional stuff, you can do it in the form a > a > >>> >> Behaviour.. I did use such behaviour to ask a javascript confirm. If > >>> user > >>> >> does not confirm, the form is not submitted. > >>> >> > >>> >> new AttributeModifier("onclick", true, new Model("if > >>> (!confirm('" + > >>> >> msg + "')) { /* do some additional stuff if not confirmed*/return;} > else > >>> { > >>> >> /*do some stuff beform submitting the form*/}")) { > >>> >>@Override > >>> >>protected String newValue(String currentValue, String > >>> >> replacementValue) { > >>> >>return replacementValue + currentValue; > >>> >>} > >>> >>}; > >>> >> > >>> >> On Mon, Jan 4, 2010 at 5:30 AM, Anantha Kumaran < > >>> ananthakuma...@gmail.com > >>> >> >wrote: > >>> >> > >>> >> > is there any way to do this on the client side.I want to do some > >>> client > >>> >> > side > >>> >> > stuff before submitting the form. > >>> >> > > >>> >> > On Sun, Jan 3, 2010 at 9:36 AM, Mathias Nilsson < > >>> >> > wicket.program...@gmail.com > >>> >> > > wrote: > >>> >> > > >>> >> > > >
Re: AjaxSubmitLink not calling the onsubmit event handler
Did you get a resolution to this issue? I have the same problem. currently i am using this techniques to do the my stuff.But it breaks when the user press return key. // save this so we can call it later var wicketOnClick = ajaxSubmitLink.onclick; ajaxSubmitLink.onclick = function() { // do your stuff return wicketOnClick(); }; Is this expected behavior I wonder, or a bug? > > SubmitLink will call the 's onsubmit='???' handler, > AjaxSubmitLink does not. > > AFAIK AjaxSubmitLink doesn't fire the submit event. Is serializes the form data and then makes a post call. I guess this can't be fixed easily because wicket is using *inline event registration model*. > On 4 January 2010 23:05, Anantha Kumaran wrote: > > hi pieter > > > > my problem is that the AjaxSubmitLink is not behaving like the SubmitLink > > which calls the onsubmit before submitting > > the form.currently i am using the mousedown(can't use onclick) of the > > AjaxSubmitLink to do the validation stuffs but it breaks when the user > > submit the form by pressing the return. > > > > > > > > > > On Mon, Jan 4, 2010 at 12:03 AM, Pieter Degraeuwe < > > pieter.degrae...@systemworks.be> wrote: > > > >> If you want to do some additional stuff, you can do it in the form a a > >> Behaviour.. I did use such behaviour to ask a javascript confirm. If > user > >> does not confirm, the form is not submitted. > >> > >> new AttributeModifier("onclick", true, new Model("if > (!confirm('" + > >> msg + "')) { /* do some additional stuff if not confirmed*/return;} else > { > >> /*do some stuff beform submitting the form*/}")) { > >> @Override > >>protected String newValue(String currentValue, String > >> replacementValue) { > >>return replacementValue + currentValue; > >>} > >>}; > >> > >> On Mon, Jan 4, 2010 at 5:30 AM, Anantha Kumaran < > ananthakuma...@gmail.com > >> >wrote: > >> > >> > is there any way to do this on the client side.I want to do some > client > >> > side > >> > stuff before submitting the form. > >> > > >> > On Sun, Jan 3, 2010 at 9:36 AM, Mathias Nilsson < > >> > wicket.program...@gmail.com > >> > > wrote: > >> > > >> > > > >> > > form.add ( new AjaxSubmitLink(){ > >> > > > >> > > protected void onSubmit(AjaxRequestTarget target, Form form){ > >> > > // Add feedback and do ajax stuff. > >> > > } > >> > > > >> > > protected void onError(AjaxRequestTarget target, Form form){ > >> > > // Add FeedbackPanel here > >> > > target.add( feedback ); > >> > > }}); > >> > > -- > >> > > View this message in context: > >> > > > >> > > >> > http://old.nabble.com/AjaxSubmitLink-not-calling-the-onsubmit-event-handler-tp2718p27002962.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 > >> > > > >> > > > >> > > >> > >> > >> > >> -- > >> Pieter Degraeuwe > >> Systemworks bvba > >> Belgiëlaan 61 > >> 9070 Destelbergen > >> GSM: +32 (0)485/68.60.85 > >> Email: pieter.degrae...@systemworks.be > >> visit us at http://www.systemworks.be > >> > > > > > > -- > Richard Nichols :: http://www.visural.com/ :: > http://www.richardnichols.net/ > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Anantha Kumaran(http://ananthakumaran.github.com)
Re: Wicket in the industry
http://www.breakitdownblog.com/apache-wicket-powers-mobile-walmart-com/ On Mon, Mar 15, 2010 at 1:50 PM, Mynhardt Vlok wrote: > Hey community > > I'm testing / using wicket at the moment and have to convince my company to > use the framework. > I really enjoy wicket and it's ease of use. Thing is my company has asked > me > two valid questions > which I hope the community can answer. > > 1. How is wicket's stress load? For example could you use the framework for > example as an interface to a banking system >that handles hundreds of requests at the same time? > > 2. And i think this question relates to the first one, is wicket being > adopted by big businesses? Do they use it for their >web interfaces? > > If anyone can answer these questions I would appreciate it as I would like > to convince them to use this framework. > -- Anantha Kumaran(http://ananthakumaran.github.com)
Re: Wicket allow multiple Spring context files?
i am also splitting the config files into many files and i have no problems yet. perhaps you might follow different method On Tue, Mar 9, 2010 at 7:01 PM, David Chang wrote: > When I did my Spring web applications, I split Spring context files into a > few smaller ones (example: one for web beans, one for DAO beans, one for > Service beans, etc). > > I would like to follow the same approach in my Wicket application, but I > notice a few odd things: > > 1. The order of these Context files in web.xml plays a role. If not right, > Tomcat will not start and report wicket "WebApplication" cannot be found. > > 2. Service beans specified through the following: > > @SpringBean > private SupportService supportService; > > result in runtime error that the bean of type SuppportService cannot be > found if a service bean is specified in a different context file other than > that of wicket "WebApplication". > > Any of you had similar experience. Any fix? > > Regards. > > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Anantha Kumaran(http://ananthakumaran.github.com)
Re: FileUploadField selection event
On Tue, Feb 9, 2010 at 3:22 AM, dpmihai wrote: > > What I really want is that after file selection automatically set the text > of > another TextField (inside my form) with a string derived from selected file > name. > > > > > > - > 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://old.nabble.com/FileUploadField-selection-event-tp27512780p27513776.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 > > -- Anantha Kumaran
Re: FileUploadField selection event
This may help http://old.nabble.com/Where-is-the-full-client-filename-during-FileUpload--p27439835.html On Tue, Feb 9, 2010 at 1:51 AM, Mihai Dinca wrote: > Is there any way to see when user selects a file through the browse button? > I want that after selection , to get the text from text field. > > Mike > > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Anantha Kumaran
Re: Where is the full client filename during FileUpload?
Technically you cann't get the full path of the file using javascript. you are allowed the access the relative name of the file only.it is also read only (security reason). otherwise you could upload a file without the knowledge of the user. see http://www.cs.tut.fi/~jkorpela/forms/file.html for reference 2010/2/3 Nicola Tucci > Hi all, > I'm using a FIleUpload form component in order to save the full client > filename (path + filename, i.e. > /home/jdoe/myfiles/MyUploadableDocument.pdf), but for what I can see, I can > retrieve only the filename using FileItem.getName(). > I've tried to deeply debug wicket code to find the full path, but I only > find client filename, server temp name, content-type, size. > > Someone on this forum states that browsers often send only the filename, > not > the full path (security reason??), but how can servers bind the source file > without the full name? It must be somewhere, maybe in the servlet > request... > > Besides, there is a smarter way to retrieve the full name (the one that > appears in the input component!) without perform the upload? My use case > oblige me to use FileUpload form component because the user use browser's > popup search dialog. > > Thanks to all, > BYE! > -- Anantha Kumaran
Re: DatePicker css
this may work .yui-skin-sam .yui-calendar td.calcell.today a { background-color : #mycolor !important; } On Wed, Feb 3, 2010 at 2:32 AM, Stefan Lindner wrote: > Hi nino, > > no it did not work. My Firebug tells me that the css rules of datepicker's > css are always allied AFTER my css rules. Even if my CSS is the last one in > header section. > I was able to customize some things where no explicit rules are defined in > datepicker's CSS but I was unable to e.g. change the background of today's > box rule > >.yui-skin-sam .yui-calendar td.calcell.today a { >background-color : #mycolor; > } > > Stefan > > -Ursprüngliche Nachricht- > Von: nino martinez wael [mailto:nino.martinez.w...@gmail.com] > Gesendet: Mittwoch, 3. Februar 2010 11:13 > An: users@wicket.apache.org > Betreff: Re: DatePicker css > > but you should still be able todo it via class's > > > > container datepicker{ > color:red; > } > > should work and should override: > > datepicker{ > color:blue; > } > > Something like that. > > > > 2010/2/3 Stefan Lindner > > > That did not work in my case. Yes, it's normal CSS but it is applied in > an > > unusal way through the internal styling mechanism of yui. This means that > a > > css rule defined at the end of the section i.e. the last css rule > at > > all does not override a css rule in the internal css of YUI-DatePicker > from > > wicket-datetime package. > > > > Stefan > > > > -Ursprüngliche Nachricht- > > Von: nino martinez wael [mailto:nino.martinez.w...@gmail.com] > > Gesendet: Mittwoch, 3. Februar 2010 09:51 > > An: users@wicket.apache.org > > Betreff: Re: DatePicker css > > > > it's just ordinary css, so you should be able to override it. Try using > > firebug and change the css there. Then make a new css and apply that :) > > > > 2010/2/2 Martin Makundi > > > > > Lol.. let me know if you find a good trick for that. We worked around > > > it by changing the surroundings' relative properties. > > > > > > ** > > > Martin > > > > > > 2010/2/2 wic...@geofflancaster.com : > > > > Is it possible to edit the datepicker css? the datepicker is > displaying > > > > behind some other components on my page and i'd like to set the > z-index > > > so > > > > it display on top of everything. > > > > > > > > > > > > mail2web - Check your email from the web at > > > > http://link.mail2web.com/mail2web > > > > > > > > > > > > > > > > - > > > > 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 > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Anantha Kumaran
Re: Image Bundler For Apache Wicket
Thanks for the Reply. I will look into it. On Tue, Jan 26, 2010 at 12:59 PM, Jeremy Thomerson < jer...@wickettraining.com> wrote: > Looks cool - but rather than generating a static string, why don't you > generate a string that includes a call to urlFor(Class, imageName) so that > you can allow for internationalization? (Wicket will generate the proper > internationalized URL for you this way)... > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Tue, Jan 26, 2010 at 8:42 AM, Anantha Kumaran > wrote: > > > http://ananthakumaran.github.com/imagebundler-wicket > > >
Re: Image Bundler For Apache Wicket
i will try to put it in the google appspot later. Here is the source code of a sample http://github.com/ananthakumaran/imagebundler-wicket On Tue, Jan 26, 2010 at 7:20 AM, Riyad Kalla wrote: > Very cool Anantha, do you have a site online that uses the bundler that we > could take a peek at as a running example? > > On Tue, Jan 26, 2010 at 7:42 AM, Anantha Kumaran > wrote: > > > http://ananthakumaran.github.com/imagebundler-wicket > > >
Image Bundler For Apache Wicket
http://ananthakumaran.github.com/imagebundler-wicket
Re: AjaxSubmitLink not calling the onsubmit event handler
hi pieter my problem is that the AjaxSubmitLink is not behaving like the SubmitLink which calls the onsubmit before submitting the form.currently i am using the mousedown(can't use onclick) of the AjaxSubmitLink to do the validation stuffs but it breaks when the user submit the form by pressing the return. On Mon, Jan 4, 2010 at 12:03 AM, Pieter Degraeuwe < pieter.degrae...@systemworks.be> wrote: > If you want to do some additional stuff, you can do it in the form a a > Behaviour.. I did use such behaviour to ask a javascript confirm. If user > does not confirm, the form is not submitted. > > new AttributeModifier("onclick", true, new Model("if (!confirm('" + > msg + "')) { /* do some additional stuff if not confirmed*/return;} else { > /*do some stuff beform submitting the form*/}")) { >@Override >protected String newValue(String currentValue, String > replacementValue) { >return replacementValue + currentValue; >} >}; > > On Mon, Jan 4, 2010 at 5:30 AM, Anantha Kumaran >wrote: > > > is there any way to do this on the client side.I want to do some client > > side > > stuff before submitting the form. > > > > On Sun, Jan 3, 2010 at 9:36 AM, Mathias Nilsson < > > wicket.program...@gmail.com > > > wrote: > > > > > > > > form.add ( new AjaxSubmitLink(){ > > > > > > protected void onSubmit(AjaxRequestTarget target, Form form){ > > > // Add feedback and do ajax stuff. > > > } > > > > > > protected void onError(AjaxRequestTarget target, Form form){ > > > // Add FeedbackPanel here > > > target.add( feedback ); > > > }}); > > > -- > > > View this message in context: > > > > > > http://old.nabble.com/AjaxSubmitLink-not-calling-the-onsubmit-event-handler-tp2718p27002962.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 > > > > > > > > > > > > -- > Pieter Degraeuwe > Systemworks bvba > Belgiëlaan 61 > 9070 Destelbergen > GSM: +32 (0)485/68.60.85 > Email: pieter.degrae...@systemworks.be > visit us at http://www.systemworks.be >
Re: AjaxSubmitLink not calling the onsubmit event handler
is there any way to do this on the client side.I want to do some client side stuff before submitting the form. On Sun, Jan 3, 2010 at 9:36 AM, Mathias Nilsson wrote: > > form.add ( new AjaxSubmitLink(){ > > protected void onSubmit(AjaxRequestTarget target, Form form){ > // Add feedback and do ajax stuff. > } > > protected void onError(AjaxRequestTarget target, Form form){ > // Add FeedbackPanel here > target.add( feedback ); > }}); > -- > View this message in context: > http://old.nabble.com/AjaxSubmitLink-not-calling-the-onsubmit-event-handler-tp2718p27002962.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 > >
AjaxSubmitLink not calling the onsubmit event handler
Is it possible to add a onsubmit event to a form that is submitted using AjaxSubmitLink? if not so is there any other way to handle validation stuffs..
Re: client-and-server-validation
2009/12/6 Anantha Kumaran > > hi i have two doubts in client-and-server-validation > > 1. When i tried to add two validation behavior like > ClientAndServerExactLengthValidatingBehavior and > ClientAndServerLengthBetweenValidatingBehavior > the validation.js file get added twice in the header . ie the same > validation.js file is get added once for each class. ?? > > 2. During client side validation if the user corrects some of the > errors(not all) the feedback panel is not getting updated after the first > time. > it shows the previous errors until user corrects all the errors.
client-and-server-validation
hi i have two doubts in client-and-server-validation 1. When i tried to add two validation behavior like ClientAndServerExactLengthValidatingBehavior and ClientAndServerLengthBetweenValidatingBehavior the validation.js file get added twice in the header . ie the same validation.js file is get added once for each class. ?? 2. During client side validation if the user corrects some of the mistakes(not all) the feedback panel is not getting updated after the
Re: Maven eclipse plugin
hi i found the problem it is due to some corrupted jar in the maven repo i cleared that and now working properly On Thu, Sep 24, 2009 at 8:35 AM, Anantha Kumaran wrote: > Hi i followed the same guide and all went nicely till the project creation > I cann't create the eclipse descriptor using " mvn eclipse:eclipse " > command > > What do you mean "after created the pom"? If you're following the guide >> here, >> >> http://cwiki.apache.org/WICKET/windows-guide-to-installing-wicket-on-eclipse-with-maven.html >> , >> you shouldn't have to create the pom manually. The "mvn >> archetype:create" >> command will do that for you. >> >> Dane >> >> On Wed, Sep 23, 2009 at 8:00 AM, Anantha Kumaran >> wrote: >> >> > hi i am new to eclipse and maven >> > i followed the wicket wiki to create a new wicket project >> > >> > after created the pom i try to create the project using the eclipse >> plugin >> > (mvn eclipse:eclipse) >> > i got the following error >> > >> > [INFO] Scanning for projects... >> > [INFO] >> > >> > [INFO] Building quickstart >> > [INFO]task-segment: [eclipse:eclipse] >> > [INFO] >> > >> > [INFO] Preparing eclipse:eclipse >> > [INFO] No goals needed for project - skipping >> > [INFO] [eclipse:eclipse {execution: default-cli}] >> > [FATAL ERROR] org.apache.maven.plugin.eclipse.EclipsePlugin#execute() >> > caused >> > a l >> > inkage error (java.lang.NoClassDefFoundError) and may be out-of-date. >> Check >> > the >> > realms: >> > [FATAL ERROR] Plugin realm = >> > app0.child-container[org.apache.maven.plugins:maven >> > -eclipse-plugin:2.5.1] >> > urls[0] = >> > file:/C:/Users/Ananth/.m2/repository/org/apache/maven/plugins/maven-ec >> > lipse-plugin/2.5.1/maven-eclipse-plugin-2.5.1.jar >> > urls[1] = >> > file:/C:/Users/Ananth/.m2/repository/org/codehaus/plexus/plexus-archiv >> > er/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar >> > urls[2] = >> > file:/C:/Users/Ananth/.m2/repository/org/codehaus/plexus/plexus-utils/ >> > 1.4.5/plexus-utils-1.4.5.jar >> > urls[3] = >> > file:/C:/Users/Ananth/.m2/repository/org/codehaus/plexus/plexus-intera >> > ctivity-jline/1.0-alpha-5/plexus-interactivity-jline-1.0-alpha-5.jar >> > urls[4] = >> > file:/C:/Users/Ananth/.m2/repository/jline/jline/0.9.1/jline-0.9.1.jar >> > >> > urls[5] = >> > file:/C:/Users/Ananth/.m2/repository/org/apache/maven/maven-archiver/2 >> > .2/maven-archiver-2.2.jar >> > urls[6] = >> > file:/C:/Users/Ananth/.m2/repository/org/codehaus/plexus/plexus-resour >> > ces/1.0-alpha-4/plexus-resources-1.0-alpha-4.jar >> > urls[7] = >> > file:/C:/Users/Ananth/.m2/repository/biz/aQute/bndlib/0.0.145/bndlib-0 >> > .0.145.jar >> > urls[8] = >> > file:/C:/Users/Ananth/.m2/repository/org/apache/maven/shared/maven-osg >> > i/0.2.0/maven-osgi-0.2.0.jar >> > urls[9] = >> > file:/C:/Users/Ananth/.m2/repository/org/eclipse/core/resources/3.3.0- >> > v20070604/resources-3.3.0-v20070604.jar >> > [FATAL ERROR] Container realm = plexus.core >> > urls[0] = file:/D:/Program Files/Apache Software >> > Foundation/apache-maven-2.2.0/l >> > ib/maven-2.2.0-uber.jar >> > [INFO] >> > >> > [ERROR] FATAL ERROR >> > [INFO] >> > >> > [INFO] org/eclipse/core/internal/localstore/SafeChunkyInputStream >> > org.eclipse.core.internal.localstore.SafeChunkyInputStream >> > [INFO] >> > >> > [INFO] Trace >> > java.lang.NoClassDefFoundError: >> > org/eclipse/core/internal/localstore/SafeChunkyI >> > nputStream >> >at >> > org.apache.maven.plugin.eclipse.EclipsePlugin.getWorkspaceConfigurati >> > on(EclipsePlugin.java:1473) >> >at >> > org.apache.maven.plugin.eclipse.EclipsePlugin.fillDefaultClasspathCon >> > tainers(EclipsePlugin.java:1222) >> >at >> > org.apache.maven.plugin.eclipse.EclipsePlugin.setup(EclipseP
Re: Maven eclipse plugin
Hi i followed the same guide and all went nicely till the project creation I cann't create the eclipse descriptor using " mvn eclipse:eclipse " command > What do you mean "after created the pom"? If you're following the guide > here, > > http://cwiki.apache.org/WICKET/windows-guide-to-installing-wicket-on-eclipse-with-maven.html > , > you shouldn't have to create the pom manually. The "mvn > archetype:create" > command will do that for you. > > Dane > > On Wed, Sep 23, 2009 at 8:00 AM, Anantha Kumaran > wrote: > > > hi i am new to eclipse and maven > > i followed the wicket wiki to create a new wicket project > > > > after created the pom i try to create the project using the eclipse > plugin > > (mvn eclipse:eclipse) > > i got the following error > > > > [INFO] Scanning for projects... > > [INFO] > > > > [INFO] Building quickstart > > [INFO]task-segment: [eclipse:eclipse] > > [INFO] > > > > [INFO] Preparing eclipse:eclipse > > [INFO] No goals needed for project - skipping > > [INFO] [eclipse:eclipse {execution: default-cli}] > > [FATAL ERROR] org.apache.maven.plugin.eclipse.EclipsePlugin#execute() > > caused > > a l > > inkage error (java.lang.NoClassDefFoundError) and may be out-of-date. > Check > > the > > realms: > > [FATAL ERROR] Plugin realm = > > app0.child-container[org.apache.maven.plugins:maven > > -eclipse-plugin:2.5.1] > > urls[0] = > > file:/C:/Users/Ananth/.m2/repository/org/apache/maven/plugins/maven-ec > > lipse-plugin/2.5.1/maven-eclipse-plugin-2.5.1.jar > > urls[1] = > > file:/C:/Users/Ananth/.m2/repository/org/codehaus/plexus/plexus-archiv > > er/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar > > urls[2] = > > file:/C:/Users/Ananth/.m2/repository/org/codehaus/plexus/plexus-utils/ > > 1.4.5/plexus-utils-1.4.5.jar > > urls[3] = > > file:/C:/Users/Ananth/.m2/repository/org/codehaus/plexus/plexus-intera > > ctivity-jline/1.0-alpha-5/plexus-interactivity-jline-1.0-alpha-5.jar > > urls[4] = > > file:/C:/Users/Ananth/.m2/repository/jline/jline/0.9.1/jline-0.9.1.jar > > > > urls[5] = > > file:/C:/Users/Ananth/.m2/repository/org/apache/maven/maven-archiver/2 > > .2/maven-archiver-2.2.jar > > urls[6] = > > file:/C:/Users/Ananth/.m2/repository/org/codehaus/plexus/plexus-resour > > ces/1.0-alpha-4/plexus-resources-1.0-alpha-4.jar > > urls[7] = > > file:/C:/Users/Ananth/.m2/repository/biz/aQute/bndlib/0.0.145/bndlib-0 > > .0.145.jar > > urls[8] = > > file:/C:/Users/Ananth/.m2/repository/org/apache/maven/shared/maven-osg > > i/0.2.0/maven-osgi-0.2.0.jar > > urls[9] = > > file:/C:/Users/Ananth/.m2/repository/org/eclipse/core/resources/3.3.0- > > v20070604/resources-3.3.0-v20070604.jar > > [FATAL ERROR] Container realm = plexus.core > > urls[0] = file:/D:/Program Files/Apache Software > > Foundation/apache-maven-2.2.0/l > > ib/maven-2.2.0-uber.jar > > [INFO] > > > > [ERROR] FATAL ERROR > > [INFO] > > > > [INFO] org/eclipse/core/internal/localstore/SafeChunkyInputStream > > org.eclipse.core.internal.localstore.SafeChunkyInputStream > > [INFO] > > > > [INFO] Trace > > java.lang.NoClassDefFoundError: > > org/eclipse/core/internal/localstore/SafeChunkyI > > nputStream > >at > > org.apache.maven.plugin.eclipse.EclipsePlugin.getWorkspaceConfigurati > > on(EclipsePlugin.java:1473) > >at > > org.apache.maven.plugin.eclipse.EclipsePlugin.fillDefaultClasspathCon > > tainers(EclipsePlugin.java:1222) > >at > > org.apache.maven.plugin.eclipse.EclipsePlugin.setup(EclipsePlugin.jav > > a:753) > >at > > org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractId > > eSupportMojo.java:483) > >at > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi > > nManager.java:483) > >at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > > ultLifecycleExecutor.java:678) > >at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone > > Goal(DefaultLifecycleExecutor.java:553) > >
Maven eclipse plugin
java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL oader.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal m.java:255) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal m.java:274) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader. java:214) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 23 more [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Wed Sep 23 20:26:08 IST 2009 [INFO] Final Memory: 6M/11M [INFO] please help me to fix the problem.. Thanks Anantha Kumaran
Re: jetty hot deployment
hi johannes i tried using mvn jetty:run but i am getting the following error Configuring Jetty for project: jqms Webapp source directory = E:\Netbeans\MyProjects\maven\jqms\src\main\webapp Reload Mechanic: automatic web.xml file = E:\Netbeans\MyProjects\maven\jqms\src\main\webapp\WEB-INF\web.xml Classes = E:\Netbeans\MyProjects\maven\jqms\target\classes 2009-08-08 23:51:47.251::INFO: Logging to STDERR via org.mortbay.log.StdErrLog Context path = /jqms Tmp directory = determined at runtime Web defaults = org/mortbay/jetty/webapp/webdefault.xml Web overrides = none Webapp directory = E:\Netbeans\MyProjects\maven\jqms\src\main\webapp Starting jetty 6.1.14 ... 2009-08-08 23:51:47.581::INFO: jetty-6.1.14 2009-08-08 23:51:48.145::INFO: No Transaction manager found - if your webapp requires one, please configure one. 2009-08-08 23:51:48.196::WARN: Failed startup of context org.mortbay.jetty.plugin.jetty6pluginwebappcont...@1270107 {/jqms,E:\Netbeans\MyProjects\maven\jqms\src\main\webapp} java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:114) at java.util.jar.JarFile.(JarFile.java:133) at java.util.jar.JarFile.(JarFile.java:97) at org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp(TagLibConfiguration.java:168) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1231) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460) at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:124) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) But when i run the application using the start.java file i works perfectly and as i stated earlier hot deployment is not working On Sat, Aug 8, 2009 at 10:30 PM, Johannes Schneider wrote: > Hi, > > I strongly suggest starting Jetty using Maven > > mvn jetty:run > > I add the following configuration > > > > > >org.mortbay.jetty >maven-jetty-plugin > > 1 > manual > > > > > > > Reloading is triggered manually from the console. I like that behviour > (so I can recompile/copy resources without restarting). > > > Regards, > > Johannes Schneider > > > Anantha Kumaran wrote: > > hi > > currently i am using ant and tomcat server (netbeans) to build my wicket > > application. > > The deployment and testing is taking lot of time.so i created a wicket > > project using > > the wicket-quickstart archetype.The problem is that i cannot view the > > changes > > made by me without restarting the jetty server. > > > > then i googled the net and found that i have to add scanIntervals and > some > > other settings. > > but i donn't know where to add this in the start.java file. > > > > > > it will be helpful if anyone post the modified start.java file which > support > > the hot deployment > > > > > > > > thanks > > Anantha Kumaran > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: jetty hot deployment
hi martin i tried it but no luck On Sat, Aug 8, 2009 at 7:24 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Hi! > > My jetty works like that by default, all I need is web-xml: > > >configuration > development > > > Development mode scans, deployment mode doesn't. AND better even to > run in DEBUG mode (=eclipse) and it will reflect code changes too. > > ** > Martin > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
jetty hot deployment
hi currently i am using ant and tomcat server (netbeans) to build my wicket application. The deployment and testing is taking lot of time.so i created a wicket project using the wicket-quickstart archetype.The problem is that i cannot view the changes made by me without restarting the jetty server. then i googled the net and found that i have to add scanIntervals and some other settings. but i donn't know where to add this in the start.java file. it will be helpful if anyone post the modified start.java file which support the hot deployment thanks Anantha Kumaran
Submit form using timer
hi i want to submit a form using a timer i there any other way other then using abstractajaxtimebehaviour because i don't want to use ajax in that form ?? thanks AnanthaKumaran
Re: Apache Tomcat & CSS
hi Tomáš Mihok i guess you are keeping your image and css file in the source package folder if this is the case then put your images and css file in the web folder. i will work
css and dreamweaver problem
hi I am using netbeans and dreamweaver to develop my wicket app The problem is dreamweaver expects the stylesheets and the html in the same folder . But in wicket app the stylesheets will be in web folder and the html files will be in pakage along with the java file Is there anyway to fix this by change any setting in dreamweaver.. currently i am keeping a copy of all files in the web folder in the package for preview.But it is annoying as i have to copy the file to web folder everytime when i change something using dreamweaver.. Thanks Anantha Kumaran