Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PPR and af:InputFile Double Browse

705898Jun 16 2009 — edited Jun 18 2009
Hi All,

Background: I have an application that uses PPR to upload a file and display the file's content in a textarea.
Problem: Performing consecuitive uploads causes a javascript error.

Upload 1) Uploads a file successfully,
Upload 2) results in a javascript error.

We think this may be a AJAX issue as debugging seems to suggest that the function _uixspu (from the PPR) is to blame.

Javascript inserted in webpage after Upload 2 by ADF:

var _pprUpdateMode=false;
function _uixspu(f,v,e,s,pt,p,o){
_pprUpdateMode=true;
if(!o)
o=new Object();
o.event=(e)?e:'update';
if(s)
o.source=s;
if(p){
o.partial='true';
if(pt)
o.partialTargets=pt;
_submitPartialChange(f,v,o);
}
else
submitForm(f,v,o);
}

The onclick action on the Upload Button:
uixspu('id3',1,0,'uploadButton',0,1,0);return false;

Any help would be great

Cheers
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 16 2009
Added on Jun 16 2009
2 comments
521 views