voyent
Partial rendering of GraphicImage  XML
Forum Index -> Components
Author Message
bcantu

Joined: 02/Nov/2009 00:00:00
Messages: 45
Offline


I having extreme problems trying to view an image that is displayed in a dialog ,which sometimes only partially renders. I have used the Graphic image on the "Main Screen" without issue. However when the image is used in a resizable/or fixed size dialog then the image sometimes does not render fully. I have tried to add in varialbes to the form ID and style to refresh the dom and hopefully give the rendering process a bit of a "Kick" but that hasn't helped either.

Code:
<ace:dialog id="ScreenShot"
                     visible="#{discoveryBean.showScreenShot}"
                     header="#{msg.DiscoveryWebSiteDetailsScreenShotDialogHeader}"
                     closable="true"
                     modal="false"
                     draggable="true"
                     resizable="true"
                     minHeight="325"
                     minWidth="475"
                     height="460"
                     width="730">
 
             <ace:ajax event="close" listener="#{discoveryBean.hideScreenShotDialog}" render="@all" />
             <h:form id="#{discoveryBean.selectedPageAlias}">
                 <ace:graphicImage id="ScrImg#{discoveryBean.selectedPageAlias}" mimeType="image/png" 
                                   style="max-width:99.5%;height:100%;#{discoveryBean.rdm}:#{discoveryBean.rdm};border: 1px solid #9a9898;"
                                   styleClass="graphicImage"
                                   value="#{empty discoveryBean.screenShot ? '/HaystackWorks.png' : discoveryBean.screenShot}" />
             </h:form>
         </ace:dialog>
 


also the menu that is used to open the dialog is as follows to also try and "render the dialog again "

Code:
 <ace:menuItem id="ViewPage" 
                                   style="font-size:16px;"
                                   value="#{msg.MenuViewPage}" 
                                   actionListener="#{discoveryBean.showScreenShotDialog}"
                                   action="home" >
                         <ace:ajax event="activate" execute="@this" render="@all #{discoveryBean.selectedPageAlias}:ScrImg#{discoveryBean.selectedPageAlias}"/>
                     </ace:menuItem>
 


Any help would be extremely appreciated

[Thumb - Screen Shot 2017-02-08 at 6.45.51 AM.png]
 Filename Screen Shot 2017-02-08 at 6.45.51 AM.png [Disk] Download
 Description
 Filesize 29 Kbytes
 Downloaded:  894 time(s)

 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team