voyent
Messages posted by: bcantu  XML
Profile for bcantu -> Messages posted by bcantu [44] Go to Page: 1, 2, 3 Next 
Author Message
The issue has been resolved. The problem was related to the encoding/Decoding of the blob used to store the image in the database. The encode / decode was not used and the blob only contained the raw image which was the problem.
Sorry for the late response - I need a little time to make something available. Likely another 5 - 10 days.
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>
 



Additionally, I have the following error messages from WildFly:

Code:
 15:45:09,462 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,462 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_wZHWPHMjho.xhtml FOR SCOPE+session
 15:45:09,463 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,463 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_uLkOOWLHjf.xhtml FOR SCOPE+session
 15:45:09,465 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,465 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_XfsxNhFjhx.xhtml FOR SCOPE+session
 15:45:09,466 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,466 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_nFUeYgTDLF.xhtml FOR SCOPE+session
 15:45:09,467 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,467 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_JTeDmSoyDW.xhtml FOR SCOPE+session
 15:45:09,468 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,468 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_iAwehfUdFg.xhtml FOR SCOPE+session
 15:45:09,469 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,469 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_ahUWtTJZbc.xhtml FOR SCOPE+session
 15:45:09,470 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,470 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_ktpiLjCatX.xhtml FOR SCOPE+session
 15:45:09,471 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,471 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_oudfyaWbiV.xhtml FOR SCOPE+session
 15:45:09,472 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,472 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_MDYYawSQgd.xhtml FOR SCOPE+session
 15:45:09,474 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,474 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) just getting the string representation
 15:45:09,474 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,474 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) just getting the string representation
 15:45:09,474 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,475 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:Home:ScrImgHome.xhtml FOR SCOPE+session
 15:45:09,475 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,475 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) just getting the string representation
 15:45:09,475 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,475 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) just getting the string representation
 15:45:13,864 DEBUG [io.undertow.request.io] (default I/O-5) Error reading request: java.io.IOException: Connection reset by peer
 	at sun.nio.ch.FileDispatcherImpl.read0(Native Method) [rt.jar:1.8.0_91]
 	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) [rt.jar:1.8.0_91]
 	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) [rt.jar:1.8.0_91]
 	at sun.nio.ch.IOUtil.read(IOUtil.java:192) [rt.jar:1.8.0_91]
 	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) [rt.jar:1.8.0_91]
 	at org.xnio.nio.NioSocketConduit.read(NioSocketConduit.java:282) [xnio-nio-3.3.0.Final.jar:3.3.0.Final]
 	at org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:127) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
 	at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:130)
 	at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:108)
 	at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:49)
 	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
 	at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
 	at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88) [xnio-nio-3.3.0.Final.jar:3.3.0.Final]
 	at org.xnio.nio.WorkerThread.run(WorkerThread.java:539) [xnio-nio-3.3.0.Final.jar:3.3.0.Final]
 


So I'm thinking that the connection is being terminated from the client and the images are either too many in number or too big. The last image in the listed GraphicImage Messages above is a screenshot (1680x105 ) the other images are smaller... So I'm guessing the client is giving up and the connection is failing... Can I correct this some way?
Any help would be extremely appreciated

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

Does anyone have the same issue using Chrome on the MAC (latest versions of Browser and El Captain). I have the below an example index.xhtml page that works fine in Safari and Firfox but not in Chrome. Can anyone help?

Chrome is throwing the following errors in the java console that look, well not good... The offending line is highlighted, the message is "UncaughtReferenceError: jsf is not defined" - In Console:
Code:
viewmanager.js.xhtml?ln=org.icefaces.component.viewmanager&v=4_1_1_160226:371 Uncaught ReferenceError: jsf is not defined:


im.viewManager = {
showView: function(view, event){
//ice.log.debug(ice.log, 'showView(' + view + ') current');
var currentView = getCurrentView();
if( view == currentView ){
return;
}
var views = document.querySelectorAll('.mobi-vm-view'),
toNode = getNodeForView(view),
toIndex = indexOfView(view),
fromNode = getNodeForView(currentView),
fromIndex = indexOfView(currentView);
if (viewHistory.indexOf(view) > -1){
viewHistory.splice(viewHistory.indexOf(view));
}
viewHistory.push(view);
if( toNode && fromNode ){
setTimeout(updateViews, 0, fromNode, toNode, toIndex < fromIndex);
}
else if( toNode ){
toNode.setAttribute('data-selected', 'true');
}
document.getElementById("mobi_vm_selected").value = view;
if( isClientSide() ){
im.resizeAllContainers();
}
else{
jsf.ajax.request(proxyFormId,event,{execute:'@form', render:'@all'});
}

return false;
},



Code:
<html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:ace="http://www.icefaces.org/icefaces/components"
       xmlns:mobi="http://www.icesoft.com/icefaces/mobile/component">
 
     <h:head>
     </h:head>
 
     <h:body>              
         <mobi:viewManager title="Tomato Salsa - Test Automation">
             <mobi:view id="view1" title="Discovered Components">
                 <ace:panel id="dummy" header="test">
                     Blaa-1
                 </ace:panel>
             </mobi:view>
 
             <mobi:view id="view2" title="Documentation">
                 <ace:panel id="dummy2" header="test">
                     Blaa-2
                 </ace:panel>
             </mobi:view>
         </mobi:viewManager>
     </h:body>
 </html>
Hi Judy, I found the issue, looks like the documentation only says to replace the icemobi:commandButton with the h:command button BUT the type needs to be removed in cases where the mobi:commandButton type=BUTTON. This is a "gottya" that could be included as a note in the doco.

The latest problem I'm having is related to the <mobi:outputList and the <mobi:outputListItem>'s which come without the ">" on the right hand side of every outputListItem.

The second problem is that the <ace:dialog components when included in the body of a <mobi:pagePanel <f:facet name="Body" is semi translucent and the background of the underlying "Body"shows through. Only on mobile devices. On desktops the dialog works as expected. Additionally on the mobile devices I can scroll but cannot close the button on the dialog. I tried moving the ace:Dialog outside of the mobi:panel but this also doesn't work...

Why are the pages no longer formatted to look like the device they are on. ICEMobile would use css to represent the components as though they were part of a native app. The panels too would have the font sizes and spacing such that the web pages looked like they were an extension of the mobile device. Why is this the styling no longer applied in this way?

My whole app is looking terrible, worse on a mobile device - apple or android...


Sorry Judy, The smallView and largeViews are working... I previously was using the split panels and substituted this with other tags that had errors in them so no surprises for my large screens. I need to replace the erroneous page with one that works - for another day...

However on the small screen I haven't the same mechanism as for the big screen (no split screen). So everything should work on the smallView...

But the action processor for my <h:commandButtons are not firing on the smallViews... i was using <mobi:commandButton previously but now that I'm using the <h:commandButton when clicked on the iPhone4 & iPhone6 Xcode simulator it doesn't work...(no other devices checked in smallView) -

However on the iPad in LargeView the <mobi:commandButtons that have also been replaced with <h:command buttons work...?

You asked me to supply the userAgent (for the iPhone4), it is:

Mozilla/5.0 (iPhone; CPU iPhone OS 8_4 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H141 Safari/600.1.4

Many Thanks Judy
Hello Judy,

Seems like the next issue seems to be that the ui:includes are now not working. That is the first include that uses a fixed url seems to work but the second include that is supplied from a bean is not rendered. Any ideas?

Is there any JSF requirements with ICEfaces that may have changed in this regard? I think I remember coming across something that was related either to the VIEW or INCLUDE that we needed to be careful of but could not find it...

Thank you Judy

I have just restarted the whole environment and now the geolocations are populated but the subsequent pages not...

I feel like Forrest Gump looking at his box of chocolates and making the analogy about "Life being like a box of Chocolates" but I'm looking at the app thinking I wonder what I get this time...

I will look at thinks further to see what I can find out about the current problem... BUT I will restart before adding anything else to the forum...

Many thanks Judy :)

---- old message written before the above ----
Before I run through the suggested approach of testing I need to explain that the development is taking place on my MAC Book Pro. The Simulators used were both the iPhone and iPad Simulators in Xcode. iOS Simulator version Version 8.4 (SimulatorApp-565.9) is associated with Xcode version Version 6.4 (6E35b). At no time was I simulating this using the ICEsoft simulators.

The very same app was working without problems with Mobile version 1.3, Jboss 7.1.1-Final and developed using Netbeans 7.3 or 7.4 (I don't have that here with me at the moment).

So the coded pages should as they previously had. I did some reading and nothing has changed other than ICSfaces 4.0 now contains the mobile components (most of them) that were in ICEMobile 1.3.

I have again attached the page responsible for determining the geo location and the pages to include for smallViews and largeViews. I have also included the index.xhtml and the Welcome.xhtml page that is opened the first time the user enters the application. I have also included the largeView Landing.xhtml page that is loaded the after the Welcome.xhtml. The Landing.xhtml page will only load if the naviBean used in the Welcome.xhtml determines that the geo-coordinates are no equal to Lat:0 Long:0. Also on the iPad Simulator (iOS) that I was asked if the application could use my location, which I said yes too.

Note I had to remove the smallView tags and its contents because duplicate identifies would be otherwise loaded. I have kept the smallView tags in the index.xhtml for completeness.

I will attempt to see if the issue is related to the ui:include statements or the f:view. Although these statements were working before - perhaps something has changed or I have made a mistake... And this would not explain why the welcome page works but the geolocation is not updated... on the Welcome Page no matter how many times I refresh the page...

Many thanks in Advance. I will try and apply your suggestions today and will update this if I have had success.

Cheers
Hello Judy
I have made the changes you suggested and removed all the other attempts/projects used to try to make things work. Although the to the ice.ace issue has seemed to disappear at some stage don't ask me why, Im not sure if it will return...

Here is the basic summary and status of the migration from ICEMobile 1.3 to IceFaces 4.0;

I have attempted to migrate from:
1) Netbeans 7.4, JBoss 7.1.1 Final, JSF 1.2 to
2) Netbeans 8.0, Wildfly 8.2.0 Final, and JSF 2.2.7

I have spent considerable time on attempting to remove the problems associated with the ice.ace javascript not loading/ not being found.
It appears that this problem has “disappeared” however the migration has been less than easy.
Numerous components that I had used in ICEmobile that are no longer available using the Mobile Tags aren’t SIMPLY interchangeable using ACE components in ICEfaces 4.0.0.

Is a redesign now necessary to differentiate between Desktop, Large and Small Mobile devices? Previously I only differentiated between Large and Small Mobile Devices using the <mobile:smallView and <mobil:largeView and this was enough to use the largeView pages on the desktop.

I cannot understand why the <mobi:smallView> does not disregard all the code found between its tags when the page is displayed on a large screen like a desktop. In-fact when tested on an iPhone Simulator the <mobi:largeView> has no effect and its contents are displayed although they shouldn’t.

<mobi:geolocation is also not working and returns 0 co-ordinates all the time on the desktop where as previously I didn't need to make the distinction between Mobile Devices and Desktop...

Any help would be appreciated, Many thanks in advance.
Hello Judy,
I have tried to check my config and all looks good - using in the Web.xml the:
<context-param>
<param-name>org.icefaces.mandatoryResourceConfiguration</param-name>
<param-value>all</param-value>
</context-param>

and also tried to use the:

<icecore:config mandatoryResource='all' />

in the index.xhtml

but still the same error ice.ace not found...

NOTE: I have installed the sample application that comes with the download of ICEfaces but can't get this to work. The application will not deploy for some reason.
Hi Judy,
I have removed all my javascript from the app but still have the same errors as I reported before. I think either the javascript (ice.ace) cannot be found, doesn't exist or cannot be loaded. I tried to find the javascript but had not luck... I believe javascript is being loaded so that can't be it.

Where can I find the ice.ace javascript? And how it loaded? or When?
I'm not sure where to start with this ice.onLoad... The js that I included has worked well up to now and only was there as per the ice faces doc. To control the throwing the popups when the session timed out for example. Has that changed in this release? how do i use the ice.onLoad?
Hello all, I am continuing my endless journey to migrate my app from ICEmobile 1.3 to ICEfaces version 4.0. I'm using Netbeans 8 and the Wildfly 8.2 but ICEfaces have been plagued with problems. The last of which, I hope is resolving the "Uncaught ReferenceError: ice is not defined" coming from the browser log. The same error is related to any of the ACE components that need to create events or render dynamic content... e.g.

<script>var widget_j_idt5 = ice.ace.create("Panel",["j_idt5",{"visible":true}]);</script>

Uncaught ReferenceError: ice is not defined...

It could be that my installation is not correct or I have missed something related to the JSF libraries but I have double checked everything without success...

I have also created a new demo app but it too suffers from the same issues and the same ICE related problem...

I have attached a snapshot of the one of the errors I have...

Has anybody any suggestions?

Hi Judy, Thanks for your reply, unfortunately I could not find the problem and created a new project from start and slowly copied across the code. Which worked BUT only partly...

I replaced my mobile components, where necessary with, ACE components but now I have the issue for instance that the <mobi:geolocation tag is not working and the :

<ace:dialog id="MessagePopup"
visible="#{naviBean.tryAgain}"
modal="true"
draggable="false"
showEffect="clip"
hideEffect="fade"
width="360"
height="360"
header="#{msg.welcomeMessageErrorMessageTitle}">
...</ace:dialog>

also does not popup...

I'm at a total lose because i also coded the ace:dialog into the welcomeicefaces.xhtml page that was created in the new project, but this too fails to popup...

I also have the javascript error in the browser (when inspecting the source code: ReferenceError: Can't find variable: ice global code

in the source this error points to the dialog code that follows:
</form></div><script type="text/javascript">ice.ace.lazy.registry['MessagePopup'] = function(){ return ice.ace.lazy("Dialog",["MessagePopup",{"isVisible":true,"minHeight":0,"setFocus":"","width":360,"height":360,"draggable":false,"modal":true,"show":"clip","hide":"fade","title":"Whoops, False Start...","ariaEnabled":true}],"MessagePopup");};ice.ace.instance('MessagePopup').show();</script></div></div><div class="mobi-pagePanel-footer ui-widget-content ui-footer-fixed" id="j_idt10_pgPnlFtr"><div class="mobi-pagePanel-ctr">



I presume its looking for some java script? (ice or the ice.ace.lazy.registry...)

Could it have anything to do with the javascript I added globally to control error message popups??? (I don't thik so...) see below:


//Assign error handling function to a variable
var iceErrorCallback = function iceHandleError(statusCode, responseTxt, responseDOM) {
//Handle all errors by redirecting to an error page
window.location.href = "./internalError.xhtml";
}

//Check if ICEfaces is available
if (ice) {
//Turn off the popups as we plan to handle this ourselves
ice.configuration.disableDefaultIndicators = true;

//Register your error handler as a callback
ice.onServerError(iceErrorCallback);
}


So the big question why is the <mobi:geolocation tag and the <ace:dialog tags not working... Any ideas?...
Many thanks in advance...

 
Profile for bcantu -> Messages posted by bcantu [44] Go to Page: 1, 2, 3 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team