voyent
inputFile randomly renders an empty iframe  XML
Forum Index -> Components
Author Message
truemmer

Joined: 06/Apr/2009 00:00:00
Messages: 24
Offline


Hi folks,

we have a file upload popup in our application which uses inputFile. However, sometimes (especially on the first time) the dialogue renders an empty iframe.

Very strange: we use a progress bar within this popup as well and the iframe was filled with the color of the progress bar. Nevertheless, when we removed the progress bar, the error still occurred but with no background color set for the iframe.

Here's the markup:

Code:
       <ice:panelGroup
             styleClass="formBorderHighlight"
             style="text-align:left">
             
             <ice:inputFile
                 id="inputFileName"
 
                 actionListener="#{documentController.upload}"
                 progressListener="#{documentController.progress}" 
                 
                 fileNamePattern="#{documentController.fileNamePattern}"
                 uploadDirectory="#{documentController.path}" 
                 uniqueFolder="true" />
 
             <ice:outputProgress
                 id="progress"
                 value="#{documentController.percent}" />
                 
             <ice:message for="inputFileName" />
 
         </ice:panelGroup>



I also attached screenshots. Can anybody help?


Thanks in advance,

- Tim Br├╝ckner
[Thumb - upload_status.jpg]
 Filename upload_status.jpg [Disk] Download
 Description
 Filesize 17 Kbytes
 Downloaded:  287 time(s)

truemmer

Joined: 06/Apr/2009 00:00:00
Messages: 24
Offline


Hi again,

I found 2 jira issues that seem to exist for the same reason:

http://jira.icefaces.org/browse/ICE-3274
and
http://jira.icefaces.org/browse/ICE-3889


Regards,

- Tim



anl_lazarev

Joined: 12/Feb/2009 00:00:00
Messages: 102
Offline


I'm not sure about that problem correlated...
I'm have something similar to your behavior with inputFile component.

But, when I'm migrate form 1.7 to 1.8, that problem no more exist.
Try to migrate.
truemmer

Joined: 06/Apr/2009 00:00:00
Messages: 24
Offline


Hi Anl_Lazarev,

we already migrated to 1.8 and the error still occurs. Sometimes the input dialogue is rendered as grey block:

this is the markup it renderes:


Code:
<iframe id="j_id11:inputFileName:uploadFrame" class="iceInpFile" height="30" frameborder="0" width="500" scrolling="no" title="Input File Frame" style="padding: 0px; border-collapse: collapse; border-spacing: 0px;" src="/XXXXXXX-webclient/block/resource/Nzc4NDIxMjc5/" name="j_id11:inputFileName:uploadFrame" marginwidth="0" marginheight="0" allowtransparency="true">
   <html>
     <head>
       <title>This page intentionally left blank</title>
     </head>
     <body bgcolor="#808080"/> 
   </html>
 </iframe>



In case it works, the following is rendered:


Code:
<iframe id="j_id11:inputFileName:uploadFrame" class="iceInpFile" height="30" frameborder="0" width="500" scrolling="no" title="Input File Frame" style="padding: 0px; border-collapse: collapse; border-spacing: 0px;" src="/XXXXXXXX-webclient/block/resource/Nzc4NDIxMjc5/" name="j_id11:inputFileName:uploadFrame" marginwidth="0" marginheight="0" allowtransparency="true">
   <html style="overflow: hidden;">
     <head>
     </head>
     <body style="overflow: hidden; background-color: transparent;">
       <form id="fileUploadForm" enctype="multipart/form-data" action="/XXXXXXXXXX-webclient/uploadHtml" method="post">
         <input type="hidden" value="j_id11:inputFileName" name="ice.component"/>
         <input type="hidden" value="1" name="ice.view"/>
         <input class="iceInpFileTxt" type="file" size="35" name="upload"/>
         <input class="iceInpFileBtn" type="submit" value="Upload"/>
       </form>
     </body>
   </html>
 </iframe>


farble1670

Joined: 13/Jan/2009 00:00:00
Messages: 66
Offline


bump.
venu_dvmr

Joined: 30/Sep/2008 00:00:00
Messages: 58
Offline


We had so many issues with input file. Can you try reloading the Iframe using javascript if the Iframe does not have HMTL FROM.

This is just a work around.
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team