voyent
Messages posted by: ryandawson  XML
Profile for ryandawson -> Messages posted by ryandawson [13]
Author Message
I bet it's the case of the name of your file. Under windows it's case insensitive.
In testing our application on 1.8RC2 we occasionally get an error stating the user session has expired. I set up a load test of 10 users consistently over 5 hours and found that this does seem to occur intermittently.

I plugged 1.7.2 back into the application and re-ran the same load test and never see this expiry problem. Does anybody have any ideas what could cause this? Do I need to change some configuration?
I've been doing this with the facelets mentioned above and it seems to work fine for me on 1.6.1.
I figured this out in the end. See http://www.icefaces.org/JForum/posts/list/3369.page#32011

My problem turned out to be a bug with selectInputText, caused by a line in ice-extras.js. Line 4931 builds an invalid url as it has a double forward-slash ('//'). This causes IE_6 to treat the iframe as though it had no source and thus it gives security warning. I'd suggest amending this line to:

new Insertion.After(this.update,"<iframe id=\""+this.update.id+"_iefix\" title=\"IE6_Fix\" "+"style=\"display:none;position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);\" "+"src=\""+configuration.connection.context+"xmlhttp/blank\" frameborder=\"0\" scrolling=\"no\"></iframe>");

The bug has been raised before but the fix that got into the current production code does not work without the change above.
The DOMResponseWriter seems to have changed for version 1.6 but the bug is still there. Any suggestions on how to apply the fix for the newer version? Can this fix still work?
I have the same issue with selectInputText but when I view the source for the page I can't find an iframe without a src attribute set. This happens in the ICEFaces component showcase under 1.6.1 and 1.6.2 (i.e. the latest production build).

Does the Async HTTP Server work with any versions of WebSphere Application Server?

I've also noticed that if I change:

<h:commandButton id="#{allTimeZone.mapCommandButtonId}" image="#{allTimeZone.imagePath}" actionListener="#{timeZoneBean.listen}" style="border: 0px;"/>

To:

<ice:commandButton id="#{allTimeZone.mapCommandButtonId}" image="#{allTimeZone.imagePath}" actionListener="#{timeZoneBean.listen}" style="border: 0px;"/>


Then I get this error:

http://www.icefaces.org/JForum/posts/list/5792.page

However, joy_bond's solution doesn't work for me.

I should say that the identical project runs perfect in WAS 6.1.0.

I get the same thing in 1.5.3. I must be missing something here.

I would switch to 1.6 but I can't get the showcase to run with that version. I think that one is a WAS problem but I've no choice but to use WAS 6.0.2.21.
I took it from the sample directory. Timezone7. My project structure is attached.

The offending page is below:

<f:view xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:fn="http://java.sun.com/jsp/jstl/functions">
<html>
<head><title>ICEfaces: TimeZone Sample Application</title></head>
<link rel="stylesheet" type="text/css" href="./timezone_style.css"/>
<body bgcolor="white">
<ui:include src="/header.xhtml">
<ui:param name="sectionName" value="header"/>
</ui:include>
<div id="timeZonePanel">

<ice:form partialSubmit="true">
<h:panelGrid columns="2" rowClasses="floatingDialogHeader, , " width="100%">
<h:outputText value="Server Time Zone"/>
<h:outputText value="Time Zone Selected from Map"/>
<h:outputText styleClass="formLabel" value="#{timeZoneBean.serverTimeZoneName}"/>
<h:outputText styleClass="formLabel" value="#{timeZoneBean.selectedTimeZoneName}"/>
<h:outputText value="#{timeZoneBean.serverTime}"/>
<h:outputText value="#{timeZoneBean.selectedTime}"/>
</h:panelGrid>
<h:panelGrid columns="#{fn:length(timeZoneBean.allTimeZoneList)}" width="100%" cellpadding="0" cellspacing="0">
<c:forEach var="allTimeZone" items="#{timeZoneBean.allTimeZoneList}">
<h:commandButton id="#{allTimeZone.mapCommandButtonId}" image="#{allTimeZone.imagePath}" actionListener="#{timeZoneBean.listen}" style="border: 0px;"/>
</c:forEach>
<c:forEach var="allTimeZone" items="#{timeZoneBean.allTimeZoneList}">
<ice:selectBooleanCheckbox id="#{allTimeZone.checkboxId}" required="false" immediate="true" value="#{allTimeZone.currentlyShowing}" valueChangeListener="#{timeZoneBean.timeZoneChanged}" autocomplete="off"/>
</c:forEach>
</h:panelGrid>
<h:dataTable id="timezoneDataTable" value="#{timeZoneBean.checkedTimeZoneList}" var="checkedTimeZone" headerClass="tableHeader" width="100%" columnClasses="checkedDisplayName,checkedLocation,checkedUseDaylightTime,checkedInDaylightTime,checkedTime">
<f:facet name="header"><h:outputText styleClass="tableHeaderTitle" value="Checked Time Zones"/></f:facet>
<h:column>
<f:facet name="header"><h:outputText value="Time Zone"/></f:facet>
<h:outputText value="#{checkedTimeZone.displayName}"/>
</h:column>
<h:column>
<f:facet name="header"><h:outputText value="Location"/></f:facet>
<h:outputText value="#{checkedTimeZone.location}"/>
</h:column>
<h:column>
<f:facet name="header"><h:outputText value="Uses DST"/></f:facet>
<h:outputText value="#{checkedTimeZone.useDaylightTime}"/>
</h:column>
<h:column>
<f:facet name="header"><h:outputText value="In DST"/></f:facet>
<h:outputText value="#{checkedTimeZone.inDaylightTime}"/>
</h:column>
<h:column>
<f:facet name="header"><h:outputText value="Time"/></f:facet>
<h:outputText styleClass="formLabel" value=" #{checkedTimeZone.time} "/>
</h:column>
</h:dataTable>
</ice:form>

</div>
</body>
</html>
</f:view>
I'm trying to get the timezone app running. I page renders far enough to display the time and this keeps refreshing. But I don't get a map or any controls. And in my console I get this exception on every refresh:

[28/11/07 17:52:49:826 GMT] 00000072 D2DFaceletVie E com.icesoft.faces.facelets.D2DFaceletViewHandler renderResponse Problem in renderResponse: Missing Form - the UIComponent of type [class javax.faces.component.html.HtmlCommandButton] requires a containing form.
java.lang.NullPointerException: Missing Form - the UIComponent of type [class javax.faces.component.html.HtmlCommandButton] requires a containing form.
at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.validateParameters(DomBasicRenderer.java:484)
at com.icesoft.faces.renderkit.dom_html_basic.ButtonRenderer.encodeBegin(ButtonRenderer.java:104)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java(Compiled Code))
at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:339)
at com.icesoft.faces.renderkit.dom_html_basic.GridRenderer.encodeChildren(GridRenderer.java:197)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:743)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:531)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:273)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:149)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:239)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)
at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.render(PersistentFacesState.java:180)
at com.icesoft.faces.async.render.RunnableRender.run(RunnableRender.java:89)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:643)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668)
at java.lang.Thread.run(Thread.java:568)


I'm using icefaces 1.5.1 and websphere application server 6.0.2.21.

 
Profile for ryandawson -> Messages posted by ryandawson [13]
Go to:   
Powered by JForum 2.1.7ice © JForum Team