Author |
Message |
12/11/2008 11:56:15
|
kretzler
Power User
Joined: 21/11/2007 13:00:57
Messages: 73
Location: Karlsruhe
Offline
|
Hello,
on our application the user should have the possibility to upload a picture from himself.
Therefore we need the option to do a upload. Is this possible?
Thanks,
Ralph
|
|
|
12/11/2008 21:02:51
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
...added your request to our dev. plan... Should be available quite short term.
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
17/11/2008 05:44:27
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
...first version is available with next update (Tu this week)...
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
21/11/2008 12:25:35
|
kretzler
Power User
Joined: 21/11/2007 13:00:57
Messages: 73
Location: Karlsruhe
Offline
|
Hello,
thanks for implementing this feature.
I checked the example but I have still problems. When I click the upload button ... "HTTP Status 404 - /userselfservice/jsp/fileupload.fileupload" appears.
In the demo folder I cannot find any file what seems to match.
Any ideas?
Thanks,
ralph
|
|
|
21/11/2008 21:58:48
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi,
I forgot to mention: please check the update web_template.xml - there is a new servlet that you need to register.
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
25/11/2008 10:31:20
|
kretzler
Power User
Joined: 21/11/2007 13:00:57
Messages: 73
Location: Karlsruhe
Offline
|
Ok, I added the FileUploadServlet to the web.xml file. This works fine.
The last problem is, that I have to translate the content of the fileupload popup. Is this possible?
Thanks,
Ralph
|
|
|
25/11/2008 13:29:41
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
...what do you mean with translate?
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
25/11/2008 13:39:10
|
kretzler
Power User
Joined: 21/11/2007 13:00:57
Messages: 73
Location: Karlsruhe
Offline
|
I mean the text within the popup. For example
-Selektieren Sie zunächst die Datei:
-Das Fenster wird nach erfoglreichem Upload geschlossen.
-...
This text I have to translate into english, french, ...
|
|
|
25/11/2008 13:53:46
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
...the text is already in resource file etc.
We'll check + correct.
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
25/11/2008 15:28:19
|
kretzler
Power User
Joined: 21/11/2007 13:00:57
Messages: 73
Location: Karlsruhe
Offline
|
Hello again,
I found the resource files under ... eclntjsfserver.jar\org\eclnt\jsfserver\i18n\resources\
When I change the language from e.g. german to english I use the following code ... FacesContext.getCurrentInstance().getViewRoot().setLocale(locale);
But the language in the popup is still german.
|
|
|
25/11/2008 15:31:49
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
...yes, this is exactly what the situation is! ;-)
The "problem" is: the popup page is not a JSF page but a normal servlet page. For uploding there is certain protocol which we did not want to mix with the normal http between components and the server.
This is the reason, why the document root is not really available here. The problem is alreday solved in the dev. version, so no problem at all.
Thanks anyway!
Björn
PS: this wee's update will (hopefully happen in some hours...)
|
Björn Müller, CaptainCasa GmbH |
|
|
27/11/2008 18:27:27
|
kretzler
Power User
Joined: 21/11/2007 13:00:57
Messages: 73
Location: Karlsruhe
Offline
|
works fine, thanks
|
|
|
|