[
https://jira.jboss.org/jira/browse/RF-4187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12452673#action_12452673
]
Daniel Ku commented on RF-4187:
-------------------------------
Replacing code in FileUploadRendererBase (richfaces-ui) was right. But 3 new
problems occoured:
1.) Sometimes parts of a page will not be shown after a file was uploaded (AJAX
request) - workaround: whole page must be reloaded.
2.) Without a page reload, "Add" button will not work again (mentioned in forum
post). Perhaps the same root problem like 1.?
3.) In IE7 (perhaps also another IE version, not tested), a JS-Error occoured,
because of null value in swfobjects.js. But i do not know why this JS code was
loaded anyway, becuase i have configured rich:fileUpload with
allowFlash="false". But exactly this message will be shown each time component
will be loaded:
J.parentNode is null or not an object
Workaround: I have removed all content from swfobjects.js, becuase i need no
flash in my rich:fileUpload component.
Another question is why rich:fileUpload do not make use of HTML input parameter
"accept", but thats another tale :)
> rich:fileUpload to support portal environment
> ---------------------------------------------
>
> Key: RF-4187
> URL: https://jira.jboss.org/jira/browse/RF-4187
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.1
> Environment: JBoss Portal 2.6.5, JBoss AS 4.2.2, PortletBridge
> 1.0.0.B3, Seam 2.0.2.SP1, JSF RI 1.2, Facelets 1.1.14
> Reporter: egor kolesnikov
> Assignee: Nick Belaevski
> Fix For: 3.3.1
>
> Attachments: testportletbridge.war.tar.gz
>
>
> FileUpload.js' submitForm() method rewrites form action url, violating the
> JSR-168 specification.
> parentForm.action = this.actionUrl + (/\?/.test(this.actionUrl) ?
> '&_richfaces_upload_uid' : '?_richfaces_upload_uid') + '=' +
> encodeURI(entry.uid) + "&id=" + this.id +
> "&_richfaces_upload_file_indicator=true";
> Evaluation of this expression leads to Servlet URL, not Portlet Action URL
> which expected.
> Possible solution would be initializing "this.actionUrl" to
> "parentForm.action" value.
--
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
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues