Image file upload with Easy FCKEditor
Hi All, I posted a question some time ago regarding getting image uploads to work correctly with FCKEditor, but was pulled off onto another project and therefore unable to follow up, please accept my apologies. [previous posts on http://tapestry.1045711.n5.nabble.com/Image-file-upload-with-Easy-FCKEditor-td3277128.html ] I have revisited this and I am still getting the same problem. Starting with a clean directory structure and having deleted the Maven .m2 cache to ensure that I did not pick anything up by mistake, I followed the process on http://tapestry.apache.org/creating-the-skeleton-application.html to get an up-to-date and clean Pom, and confirm that it worked with Jetty. I then used the instructions from http://t5-easy-fckeditor.kenai.com/Installing.html working from the Installing, Getting Started and Supporting File uploads sections (I skipped the Configuring section as this seems to only be dealing with the custom JavaScript configuration of the editor's look and feel). The only changes from the detailed instructions given on these web pages were: A. I used a different groupId and artifactId (and therefore package name) for the project B. I changed the version of the dependency for t5-easy-fckeditor to 1.0.5 as I believe that this is the current version From my Pom file, Tapestry version is 5.2.5 Maven-Jetty-Plugin is 6.1.16 T5-easy-fckeditor is 1.0.5 Java is 1.6.0_21-b06 To replicate the problem, click on the image button, the dialog opens, select the Upload tab, browse the local file system and find an image file (I used a 23k JPG file). Click on Send it to the Server. In Firefox, I get a dialog box informing me that I have chosen to open upload.php - and what do I want to do with it? Selecting Cancel, I'm back to the Image Properties box, and can close it. In IE 8, the Image Properties box displays an animated bar, presumably to indicate that the upload is taking place - and then becomes unresponsive (i.e. I cannot close the Image Properties box) the only way forward is to close the browser. I'm sure that this is as Ville pointed out back on the previous message thread, that FCK Editor is falling back to php as its default backend. Can anyone help with what I am missing for getting this configuration to work? Regards, Alex C - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: Image file upload with Easy FCKEditor
Hi Thiago, Yes, I have - there's a bit of a oops there ... I forgot one other change that I made - that is the local path that the files can be saved to - I have changed this in both the SimpleFckEditorPathServiceImpl class and in the contextHandler section of the Pom file. Other than that, the details are the same. I am running Jetty from the command line, and I have tested that I can read and write files and folders in the directory that I created (I am presuming that on Windows XP Jetty is not changing the user id that it is running under). Regards, Alex C -Original Message- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: 09 June 2011 17:44 To: Tapestry users Subject: Re: Image file upload with Easy FCKEditor On Thu, 09 Jun 2011 13:25:47 -0300, Alex W. Croton acro...@linkfinancial.eu wrote: Hi All, Hi! In Firefox, I get a dialog box informing me that I have chosen to open upload.php - and what do I want to do with it? Selecting Cancel, I'm back to the Image Properties box, and can close it. Have you followed the steps in http://t5-easy-fckeditor.kenai.com/FileUploads.html? If yes, it looks like a bug to me. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Image file upload with Easy FCKEditor
Hi All, I cannot work out how to get images to upload using the Easy FCKEditor component in Tapestry. I have created a fresh project, just to test this, using Tapestry 5.2.4,Easy FCK Editor 1.0.5 and the server is Tomcat 6.0.26 [currently being run from Eclipse Helios]. To set this up, I have [almost] followed the instructions on http://t5-easy-fckeditor.kenai.com/Installing.html with the exception of setting the version number to 1.0.4 Following through the above site's very clear tutorials, in the section on 'Supporting File Uploads', as soon as I try and do anything like upload a file or browse the server, I get error messages (The server didn't reply with a proper XML data) or my browser asking me what to do with this PHP file that it's been given. I have never been treated to the error message that is illustrated on the page. Apologies if this has been answered before - on searching, I can find a few questions, but no answers that make any sense to me. Regards, Alex C - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Early steps getting Tapestry and Hibernate working via DAO
Hi, I am a real newbie when it comes to Tapestry and even worse than that when it comes to Hibernate. I am using Tapestry 5.1.0 and Hibernate 3.3.1 - talking to a MySQL database. I've got the code from the Tapestry5HowToUseTapestryHibernate working fine, but in the application that I am putting together I want/need to be able to use DAO to interface between the various components of the application. After 3 days of various Googling, I'm far more confused than when I started - it seems that the examples that I have been able to find are either for a different version of Tapestry - or appear to be using some form of magic that my environment is lacking :-) Can anyone offer any pointers to get me going on what 'bits' I need where please? Regards, Alex C
RE: Early steps getting Tapestry and Hibernate working via DAO
Having now had two replies directing to the same page - which I've looked at _so many_ times over the last few days that I ought to have my own page counter - I'm coming to the conclusion that I must be brain dead and looking through the obvious! Thanks for the replies - I'll set a new Eclipse project up and have a play with just this code from fresh. Regards, Alex After 3 days of various Googling, I'm far more confused than when I started - it seems that the examples that I have been able to find are either for a different version of Tapestry - or appear to be using some form of magic that my environment is lacking :-) See http://tapestry.apache.org/tapestry5.1/tapestry-hibernate/userguide.html. ;) Cheers! -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: Early steps getting Tapestry and Hibernate working via DAO
So, working through the code; I've built my own Person entity (and created it in the db) and have got the first stage of the example code working - I'm now getting to the 'Commiting Changes' part of the example. This has the following: @InjectPage Private PersonIndex personIndex; So ... what is this class (i.e. PersonIndex) and what does it need to do? It's obviously pretty critical, as it is the return from the onSuccess() method. Is this part of a larger example that I've not stumbled on? Sorry if this is totally obvious, but I'm just not getting it - and hey ... I haven't even got on to the DAO bit of the code yet! Regards, Alex Having now had two replies directing to the same page - which I've looked at _so many_ times over the last few days that I ought to have my own page counter - I'm coming to the conclusion that I must be brain dead and looking through the obvious! Thanks for the replies - I'll set a new Eclipse project up and have a play with just this code from fresh. See http://tapestry.apache.org/tapestry5.1/tapestry- hibernate/userguide.html. ;)
RE: RE: Early steps getting Tapestry and Hibernate working via DAO
Doh! Obviously looking for complexity ... and ignoring what the return value of onSuccess() is used for. Alex -Original Message- From: Josh Canfield [mailto:joshcanfi...@gmail.com] Sent: 01 October 2010 17:18 To: Tapestry users Subject: Re: RE: Early steps getting Tapestry and Hibernate working via DAO PersonIndex is a page, probably listing all the people... On Oct 1, 2010 8:51 AM, Alex W. Croton acro...@linkfinancial.eu wrote: So, working through the code; I've built my own Person entity (and created it in the db) and have got the first stage of the example code working - I'm now getting to the 'Commiting Changes' part of the example. This has the following: @InjectPage Private PersonIndex personIndex; So ... what is this class (i.e. PersonIndex) and what does it need to do? It's obviously pretty critical, as it is the return from the onSuccess() method. Is this part of a larger example that I've not stumbled on? Sorry if this is totally obvious, but I'm just not getting it - and hey ... I haven't even got on to the DAO bit of the code yet! Regards, Alex Having now had two replies directing to the same page - which I've looked at _so many_ times over the last few days that I ought to have my own page counter - I'm coming to the conclusion that I must be brain dead and looking through the obvious! Thanks for the replies - I'll set a new Eclipse project up and have a play with just this code from fresh. See http://tapestry.apache.org/tapestry5.1/tapestry- hibernate/userguide.html. ;) - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org