voyent
ace:fileEntry Bugs  XML
Forum Index -> Development Build Feedback
Author Message
arrowwind

Joined: 23/Dec/2008 00:00:00
Messages: 12
Offline


Hi,

I am using Icefaces 4 beta, with JSF2.2 glassfish4.0

For ace:fileEntry:
1. Three buttons vertical position are not the same, you can see in the pics attached.
2. After clicking the start upload, the header's and the ouput texts become ???. I find that the response encoding is set to null after the file upload.

BTW, Is it possible to change the text on the buttons for some other words?
[Thumb - bug2.png]
 Filename bug2.png [Disk] Download
 Description after clicking
 Filesize 13 Kbytes
 Downloaded:  924 time(s)

[Thumb - bug.png]
 Filename bug.png [Disk] Download
 Description before clicking start upload
 Filesize 17 Kbytes
 Downloaded:  936 time(s)

artzambrano

Joined: 21/Mar/2007 00:00:00
Messages: 175
Offline


Hello arrowwind,

I just deployed our component showcase application, using the latest 4.0 code, and this is what I observe.

* Issue #1 seems to be resolved in the latest code. All buttons are aligned now.
* I couldn't reproduce issue #2. I created files whose names contained Asian characters, and those characters displayed well both before and after the upload. You can try this in the ace:fileEntry demo of our component showcase app.
* As for your last point, unfortunately, at the moment the only way to change the labels seems to require that you build from source, instead of using the already-compiled jar files. You would have to modify the file ace/component/src/org/icefaces/ace/resources/messages.properties and modify the entries listed below with your own values. In theory, you should be able to override these values by simply configuring them in your application's resource bundle. However, I tried this, and it didn't work. we'll review it before the final 4.0 release.

Code:
 org.icefaces.ace.component.fileEntry.ADD_FILES
 org.icefaces.ace.component.fileEntry.ADD_FILES_detail
 org.icefaces.ace.component.fileEntry.START_UPLOAD
 org.icefaces.ace.component.fileEntry.START_UPLOAD_detail
 org.icefaces.ace.component.fileEntry.CANCEL_UPLOAD
 org.icefaces.ace.component.fileEntry.CANCEL_UPLOAD_detail
 

Art Zambrano
ICEsoft Technologies Inc.
artzambrano

Joined: 21/Mar/2007 00:00:00
Messages: 175
Offline


This JIRA was created to investigate this issue:

http://jira.icesoft.org/browse/ICE-10111

Art Zambrano
ICEsoft Technologies Inc.
artzambrano

Joined: 21/Mar/2007 00:00:00
Messages: 175
Offline


It is already possible to override the default ace:fileEntry button labels by following these three steps:

Step 1. Create a properties file somewhere in your classpath. For example, in the ICEfaces Showcase app, create a file named 'fileEntryMessages.properties' in the 'org.icefaces.samples.showcase.view.resources' package.

Step 2. Populate that file, defining values for the appropriate ace:fileEntry button labels keys. For example...

Code:
 org.icefaces.ace.component.fileEntry.ADD_FILES = Custom Add Files
 org.icefaces.ace.component.fileEntry.ADD_FILES_detail = Custom Add Files
 org.icefaces.ace.component.fileEntry.START_UPLOAD = Custom Start Upload
 org.icefaces.ace.component.fileEntry.START_UPLOAD_detail = Custom Start Upload
 org.icefaces.ace.component.fileEntry.CANCEL_UPLOAD = Custom Cancel Upload
 org.icefaces.ace.component.fileEntry.CANCEL_UPLOAD_detail = Custom Cancel Upload
 


It is advised to define the same value for the '_detail' keys when overriding the default values.

Step 3. In your application's faces-config.xml file, add a <message-bundle> tag under the <application> tag, containing the package and name of your custom messages files (without including the '.properties' file extension). For our example above, this would look as follows:

Code:
 	<application>
 		<message-bundle>
 			org.icefaces.samples.showcase.view.resources.fileEntryMessages
 		</message-bundle>
 	</application>
 

Art Zambrano
ICEsoft Technologies Inc.
 
Forum Index -> Development Build Feedback
Go to:   
Powered by JForum 2.1.7ice © JForum Team