Re: Upload file
ExternalLink works great with relative path (/DownloadedFiles/file1) and I was able to access the context path using getServletContext().getRealPath("/") in Application.init Thanks Pierre Nino.Martinez wrote: > > > > > folder.getFiles()[1].toURL() should give the direct url for the file, now > if you want to serve if through wicket then you got to use resources.. > Otherwise just create some externalLinks and that should be it.. > > > -- View this message in context: http://www.nabble.com/Upload-file-tp15849850p15868265.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]
Re: Upload file
Thanks Nino, Sorry, I dont understand. Please be more detailed. I try to use Folder from util.file package uploadFolder = new Folder(?, "DownloadedFiles"); then can I use the folder as resource ? how ? I still dont have any idea how to have my uploadFolder in the context Nino.Martinez wrote: > > Theres file in utils package.. Producing a url for that could be > mounting a resource and using the urlfor... > > Pierre Gilquin wrote: >> I try to modify the upload example >> (http://www.wicket-library.com/wicket-examples/upload/single) for my own >> need. >> I would like to be able to upload the file in a directory under my >> context (ie. tomcat_install/webapps/MyApp/DownloadedFiles) and generate >> the corresponding internet url for the files (ie. >> http://localhost:8080/MyApp/DownloadedFiles/file1) >> >> How can I get the local and internet paths from my appli. ? >> >> Thanks in advance >> >> >> Pierre >> > > -- > -Wicket for love > -Jme for fun > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Upload-file-tp15849850p15852279.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]
Bug WICKET-1265
Hi all, The solution for the bug WICKET-1265 (Close ModalWindow in IE with scrollbars scrolls to bottom) is not added in last version 1.3.1. I try to make the change in my jars without success. With the original, on close of the ModalWindow, the page scrolls to bottom . With the recommended patch, the page scrolls to top !!! Please help me to keep this page not moving Thanks in advance Pierre -- View this message in context: http://www.nabble.com/Bug-WICKET-1265-tp15609571p15609571.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]
Re: Multi buttons in ajax form
Sorry for the noise, I was able to do it with 2 AjaxButton added on the form. Pierre Pierre G wrote: > > hi all, > > I try to have to have 2 buttons in a form. This form is used in an ajax > window. > > in html, they are 2 standards buttons > > > > In the panel of the ajax window, I have an AjaxFormSubmitBehavior: > > form.add(new AjaxFormSubmitBehavior("onsubmit") { > protected void onSubmit(AjaxRequestTarget target) { > doTask1(); > //doTask2(); > modal.close(target); > } > protected void onError(AjaxRequestTarget target) { > > > When one button is clicked, the onSubmit method is executed. What can I do > to distinct which button was used ? > > In some circumstance, I need one button to be invisible or disabled, I try > to make it a real wicket object without > success the following way : > form.add(new WebComponent("button1").add AjaxFormSubmitBehavior( > > Thank in advance for your help. > > Pierre > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Multi-buttons-in-ajax-form-tp15586379p15586949.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]
Re: International char
Thanks Johan, I add the doctype : http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml";> and now accentued char are directly displayed. Pierre Johan Compagner wrote: > > i guess if you the output side is correct that then something goes wrong > in > the input > So the files are read as something else, what is the default encoding of > the > server itsef? > Where does java read its file in with? > > An xml/xhtml reader doesn't look at meta tag i think. Those only look at > the > doctype tag > > On Feb 11, 2008 8:55 AM, Pierre G <[EMAIL PROTECTED]> wrote: > >> >> Hello Landry, >> >> Merci for your help. >> >> I can be wrong but Apache in not involved in deployment on www.eatj.com. >> It's only Tomcat. The funny thing is if I access the html directly( >> serve >> by Tomcat), the chars are correctly displayed. But as a Wicket >> componants, >> something goes wrong. >> >> I am still in the dark ... >> >> Pierre >> >> >> Landry Soules-2 wrote: >> > >> > Hello Pierre, >> > >> > I think your problem is due to an Apache mis configuration. This link >> > should help you solve it : >> > >> http://aide.sivit.fr/index.php?2007/04/21/185-apache2-probleme-de-charset-pages-en-utf-8-vers-iso-8859-1astuce >> > It's in french, but i think it won't bother you ;-) >> > >> > Bon courage ! >> > >> > >> > >> > Pierre Gilquin a écrit : >> >> Hi all, >> >> >> >> I have legacy html files, I trying to insert in a Wicket app. >> >> >> >> The charset is iso-8859-1 >> >> >> >> >> >> The special character (French and German) and not html coded in theses >> >> files. >> >> Everything work perfectly on my dev machine. I have try to deploy on a >> >> www.eatj.com account and I get garbage for theses chars. >> >> >> >> What can be possibly wrong ? >> >> >> >> Thanks in advance >> >> >> >> >> >> >> >> Pierre Gilquin >> >> >> >> NB: >> >> >> >> I have in my WebApplication : >> >> >> >> public void init() { >> >> >> >> getRequestCycleSettings().setResponseRequestEncoding("iso-8859-1"); >> >> >> >> } >> >> >> >> >> > >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/International-char-tp15353258p15406958.html >> Sent from the Wicket - User mailing list archive at >> Nabble.com<http://nabble.com/> >> . >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/International-char-tp15353258p15410950.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]
Re: International char
I guess everything is UTF-8 on the server. I wait for the eatJ support for confirmation. I am not sure to have understood your question but the legacy html files are included in WebPage components. So reading from Wicket ... Johan Compagner wrote: > > i guess if you the output side is correct that then something goes wrong > in > the input > So the files are read as something else, what is the default encoding of > the > server itsef? > Where does java read its file in with? > > An xml/xhtml reader doesn't look at meta tag i think. Those only look at > the > doctype tag > > On Feb 11, 2008 8:55 AM, Pierre G <[EMAIL PROTECTED]> wrote: > >> >> Hello Landry, >> >> Merci for your help. >> >> I can be wrong but Apache in not involved in deployment on www.eatj.com. >> It's only Tomcat. The funny thing is if I access the html directly( >> serve >> by Tomcat), the chars are correctly displayed. But as a Wicket >> componants, >> something goes wrong. >> >> I am still in the dark ... >> >> Pierre >> >> >> Landry Soules-2 wrote: >> > >> > Hello Pierre, >> > >> > I think your problem is due to an Apache mis configuration. This link >> > should help you solve it : >> > >> http://aide.sivit.fr/index.php?2007/04/21/185-apache2-probleme-de-charset-pages-en-utf-8-vers-iso-8859-1astuce >> > It's in french, but i think it won't bother you ;-) >> > >> > Bon courage ! >> > >> > >> > >> > Pierre Gilquin a écrit : >> >> Hi all, >> >> >> >> I have legacy html files, I trying to insert in a Wicket app. >> >> >> >> The charset is iso-8859-1 >> >> >> >> >> >> The special character (French and German) and not html coded in theses >> >> files. >> >> Everything work perfectly on my dev machine. I have try to deploy on a >> >> www.eatj.com account and I get garbage for theses chars. >> >> >> >> What can be possibly wrong ? >> >> >> >> Thanks in advance >> >> >> >> >> >> >> >> Pierre Gilquin >> >> >> >> NB: >> >> >> >> I have in my WebApplication : >> >> >> >> public void init() { >> >> >> >> getRequestCycleSettings().setResponseRequestEncoding("iso-8859-1"); >> >> >> >> } >> >> >> >> >> > >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/International-char-tp15353258p15406958.html >> Sent from the Wicket - User mailing list archive at >> Nabble.com<http://nabble.com/> >> . >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/International-char-tp15353258p15410689.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]
Re: International char
Hello Landry, Merci for your help. I can be wrong but Apache in not involved in deployment on www.eatj.com. It's only Tomcat. The funny thing is if I access the html directly( serve by Tomcat), the chars are correctly displayed. But as a Wicket componants, something goes wrong. I am still in the dark ... Pierre Landry Soules-2 wrote: > > Hello Pierre, > > I think your problem is due to an Apache mis configuration. This link > should help you solve it : > http://aide.sivit.fr/index.php?2007/04/21/185-apache2-probleme-de-charset-pages-en-utf-8-vers-iso-8859-1astuce > It's in french, but i think it won't bother you ;-) > > Bon courage ! > > > > Pierre Gilquin a écrit : >> Hi all, >> >> I have legacy html files, I trying to insert in a Wicket app. >> >> The charset is iso-8859-1 >> >> >> The special character (French and German) and not html coded in theses >> files. >> Everything work perfectly on my dev machine. I have try to deploy on a >> www.eatj.com account and I get garbage for theses chars. >> >> What can be possibly wrong ? >> >> Thanks in advance >> >> >> >> Pierre Gilquin >> >> NB: >> >> I have in my WebApplication : >> >> public void init() { >> >> getRequestCycleSettings().setResponseRequestEncoding("iso-8859-1"); >> >> } >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/International-char-tp15353258p15406958.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]
Re: End of page after Ajax Form
Thanks to Ken Tong who finds the solution : It's a bug in IE. It works fine in Firefox. There is actually a bug report on this: https://issues.apache.org/jira/browse/WICKET-1265 Pierre G wrote: > > Hi all, > > I am a newbie and never use AJAX before. I try to make an update of a row > of a table with a Ajax form : > > Form form = new Form("modifUser", new CompoundPropertyModel(user)); > form.add(new AjaxFormSubmitBehavior("onsubmit") { > protected void onSubmit(AjaxRequestTarget target) { > // modify some data > target.addComponent(compToUpdate); // le component to refresh on the > original page > modal.close(target); > } > protected void onError(AjaxRequestTarget target) { > } > protected IAjaxCallDecorator getAjaxCallDecorator() { > return new AjaxCallDecorator() { > public CharSequence decorateScript(CharSequence script) { > return script+"return false;"; > } > }; > } > }); > > Everything woks fine except when the Ajax window close, the original page > has the focus at the end of page. > I think it should go the modify component (true ?). What can be possibly > wrong ? > > Thanks in advance for any help > > > Pierre > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/End-of-page-after-Ajax-Form-tp14685891p14738117.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]