Hi,
i develope a webapp with OrbeonForms. They provide a ServerSide XForms-Engine and work mainly with xhtml or sometimes JSP. The whole project is written in Java.
They also support the FCK Editor for entering html-data and save them in xml.
While i use the FCK not only for html-text but in some cases the whole html-content it would be very usefull to get the uploadmanager working, but until now i was not very succesfull as none of the integrated filemanger-connector were very useful And i'm afraid i have no idea how to develope an own to get this working
(
Hopefully there might be someone, that has some hints or just developed an own solution or could point me to another solution? Every help is very appreciated!
Thanks a lot, Marcus
Wed, 06/13/2007 - 19:24
#1
RE: HOWTO Use Uploadmanager w. OrbeonForms /
I have the samples working. I have been playing around with developing a "dynamic directory" feature (already available for php and asp as I understand it..) which allows the upload manager to see a unique "directory" for a given "user or instance".
We need this feature for several products we are working on..
I would be willing to work on this with you if you are interested..
John..
RE: HOWTO Use Uploadmanager w. OrbeonForms /
Hi,
( I use OrbeonForms to develope my
While OPS
(
and i don't know where i can change that 
i tried just to reply with my mailclient until i noticed that seems to be impossible
So i copy you my last postings ones more...
1.Mail:
--------
Hi John,
thanks for your offering, but to be honest, i have no clue at the moment,
what exactly you are talking about
webapp within tomcat, and as far as i know, OPS uses only Java, Javascript
and JSP may be a further possibilty!
When creating forms, the provide the possibilty to use the
mediatype="text/html" on the xforms:input and xforms:output. When using it
with the input, the FCK Editor is loaded and i'm able to use all html-tags
as well to format my texts! As i use that option also for create the content
of a whole page (cause the people i'm developing for have no clue on html
itself!) they should be able to uplaod some pictures as well to integrate
them into their page-content. Does that make sence?
As the standard FCK in OPS doesn't show the "Insert Picture" or
"Uploadmanager" i had to add it the icon-bar myself, just to recognize that
this one doesn't work there, because of the "connector" thing
doesnt support asp, asp.net, php, perl, py and i don't know what cfm or
lasso are, i could not make this thing work until know
So, ANY HELP is very welcome and appreciated! If you have any suggestions, i
would be very pleased to accept your offer!
2.Mail:
--------
Hi John,
ok, here is how far i got:
I tried to use the FCKEditor.java:
* Downloaded it
* Copied the JAR to my libs
* Added the lines for using the servlet
* Added the servlet mapping
* Changed the fckconfig.js file to use the jsp-connector
Now i have to problmes left!
1. The servlet creates a folder to the root of my webapp /UserFilesImages/,
but i need to creat them under WEB-INF/resources/apps/images/Userfiles/
2. The second and more important problem is, that i cannot upload any file,
while i'm getting the error-message "Error on file uplaod. Error number:
203"
What does that mean???
Hope you can help me with that! Thanks a lot!
Marcus
RE: HOWTO Use Uploadmanager w. OrbeonForms /
This I can not teach you here.. (time and space does not permit). You either need to train yourself, or hire someone that does understand these things help you.
Specific replies:
Mail 1 - Sounds link you need to study the settings.. The icon bar is NOT auto configure.. You need to configure it and then in your call to FCKeditor, tell it which menu bar to use.
Mail 2 - Again sounds like a configuration issue.. Here is a snippit of what I think are the critical settings in my configuration if that helps.. (BasePath is set in the JSP call)
FCKConfig.LinkBrowser = true ;
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/jsp/connector" ;
FCKConfig.ImageBrowser = true ;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector" ;
FCKConfig.LinkUpload = true ;
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/simpleuploader?Type=File' ;
FCKConfig.LinkUploadAllowedExtensions = "" ; // empty for all
FCKConfig.LinkUploadDeniedExtensions = ".(html|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|com|dll|vbs|js|reg|cgi|htaccess|asis)$" ; // empty for no one
FCKConfig.ImageUpload = true ;
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/simpleuploader?Type=Image' ;
FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp)$" ; // empty for all
FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one
Sadly you have to know enough of how this is working to tweak it to your needs. I spent hours walking the code to figure this out. Unfortunately, what I need, may not be what you need..<sigh>
Hope that helps a bit..
John..
RE: HOWTO Use Uploadmanager w. OrbeonForms /
OK,
looking at the logfile i got following errors, but i don't know how to deal with them!
Perhaps someone could help me with that?
Regards, Marcus
2007-06-13 17:57:39,336 Thread-1 ERROR [localhost].[/kkbib] - StandardWrapper.Throwable
java.lang.NullPointerException
at java.util.StringTokenizer.<init>(Unknown Source)
at java.util.StringTokenizer.<init>(Unknown Source)
at com.fredck.FCKeditor.FCKeditorConfigurations.contentTypeMappingToMap(FCKeditorConfigurations.java:163)
at com.fredck.FCKeditor.FCKeditorConfigurations.initContextConfigurations(FCKeditorConfigurations.java:129)
at com.fredck.FCKeditor.FCKeditorConfigurations.getContextConfigurationsInstance(FCKeditorConfigurations.java:83)
at com.fredck.FCKeditor.uploader.SimpleUploaderServlet.init(SimpleUploaderServlet.java:72)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2007-06-13 17:57:39,342 Thread-1 ERROR [localhost].[/kkbib] - Servlet /kkbib threw load() exception
java.lang.NullPointerException
at java.util.StringTokenizer.<init>(Unknown Source)
at java.util.StringTokenizer.<init>(Unknown Source)
at com.fredck.FCKeditor.FCKeditorConfigurations.contentTypeMappingToMap(FCKeditorConfigurations.java:163)
at com.fredck.FCKeditor.FCKeditorConfigurations.initContextConfigurations(FCKeditorConfigurations.java:129)
at com.fredck.FCKeditor.FCKeditorConfigurations.getContextConfigurationsInstance(FCKeditorConfigurations.java:83)
at com.fredck.FCKeditor.uploader.SimpleUploaderServlet.init(SimpleUploaderServlet.java:72)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
RE: HOWTO Use Uploadmanager w. OrbeonForms /
FCKeditorConfigurations.contentTypeMappingToMap(...)
Did you customize it..?? Or..???
There are only to methods:
getUrlParams(..)
encodeConfig(...)
and one constructor..
John..
RE: HOWTO Use Uploadmanager w. OrbeonForms /
Hi again,
OK, without the patch, but where i save the files doesn't matter very much!
so the pictures i insert aren't found when displaying the page 

after i figured out how the examples work, and that i had to build the whole classes first, i copied them to my app and now there it is
Now i have to figure out another problem, but that belongs to OrbeonForms, which don't work correct with relativ paths
But thanks a lot in the meantime!
Sometimes the main problem is, that most of the documantations are not very explicit or missleading for newbies!
Have a nice day, best regards,
Marcus
RE: HOWTO Use Uploadmanager w. OrbeonForms /
Can someone tell me, where the <img>-tag is build, when i choose an uploaded picture to insert?
It would be very helpfull, so i could change the src-path by hand for my webapp.
I tried to find the code, but no chance for me
Regards, Marcus