[JBoss JIRA] Created: (RF-5177) fileUpload: validator attribute doesn't work.
by Mikhail Vitenkov (JIRA)
fileUpload: validator attribute doesn't work.
---------------------------------------------
Key: RF-5177
URL: https://jira.jboss.org/jira/browse/RF-5177
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: IE6, IE7, FF 3.1.3, Safari 3.1, Opera 9.62(3.3.0.BETA1)
Reporter: Mikhail Vitenkov
Assignee: Nick Belaevski
#1. Create class that implements Validator class.
#2. Override validate method, like this:
public void validate(FacesContext context, UIComponent component,
Object value) throws ValidatorException {
File f = (File)value;
if(f.getName().toString().contains("emo")){
throw new ValidatorException(new FacesMessage("Test validator: no 'emo' should present in file name!"));
}
}
#3. Pass method from previous step to "validator" component's attribute: validator="#{fileUpload.validate}".
#4. Navigate to page.
#5. Add & upload any file with 'emo' substring.
Actual behavior:
validate method wasn't called.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years
[JBoss JIRA] Created: (RF-8536) fileUpload does not always complete in IE8
by Andrew May (JIRA)
fileUpload does not always complete in IE8
------------------------------------------
Key: RF-8536
URL: https://jira.jboss.org/jira/browse/RF-8536
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.3.2.SR1
Environment: Windows XP IE8 - probably all versions of Windows with IE8
Reporter: Andrew May
Using fileUpload in IE8 sometimes (perhaps 1 out of every 10 times) fails to complete uploads. The file is uploaded but the progress bar is still displayed and the onuploadcomplete event is not triggered.
The browser status bar shows
"Waiting for http://localhost:8080/finreq/purchase/edit.jsf?_richfaces_upload_uid=0.54..."
but when using Fiddler to examine the requests, this request has successfully completed.
Using the script debugger in IE8 and using "Break All" when the error occurs the method highlighted is this:
3.3.2.SR1org.ajax4jsf.javascript.PrototypeScript line 17:
return __method.apply(object,args.concat($A(arguments)))
I wonder whether this could be related to one of the IE8 incompatibilities in Prototype 1.6.0.3 that have been fixed in Prototype 1.6.1.
Testing in IE7 and IE6 there were no similar problems seen.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years
[JBoss JIRA] Created: (RF-9886) toolBar: refactoring names
by Ilya Shaikovsky (JIRA)
toolBar: refactoring names
--------------------------
Key: RF-9886
URL: https://jira.jboss.org/browse/RF-9886
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-output
Affects Versions: 4.0.0.Milestone5
Reporter: Ilya Shaikovsky
we still have time to do some renaiming for that component. actually it should not use camel case in name as it's single word.
So please refactor:
classes names
attributes and css classes names if exist with that word
tag names.
...
All that names should be toolbar and not toolBar
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years