[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
upload images with thin client  XML
Forum Index -> Development
Author Message
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
[WWW]
CaptainCasa

Power User
[Avatar]

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
CaptainCasa

Power User
[Avatar]

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
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
[WWW]
CaptainCasa

Power User
[Avatar]

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
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
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

...what do you mean with translate?
Björn

Björn Müller, CaptainCasa GmbH
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, ...
[WWW]
CaptainCasa

Power User
[Avatar]

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
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.





[WWW]
CaptainCasa

Power User
[Avatar]

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
kretzler

Power User

Joined: 21/11/2007 13:00:57
Messages: 73
Location: Karlsruhe
Offline

works fine, thanks
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team