voyent
Messages posted by: achimNick  XML
Profile for achimNick -> Messages posted by achimNick [6]
Author Message
Hi I definetly not use the context-param javax.faces.CONFIG_FILES.

I found the solution for my problem: I used the firebug extension YSlow. This extension sends another request to the server. I deactivated this extension in my firefox. Now my problem is solved.
I tested 1.8.1 with one of my applications. It seems to me, that request scoped beans are instantiated two times when the request bean is called by a normal post request [http://someserver/my_application/start.iface]. The problem occurs when I use concurrentDOMViews (set to true).

I found a jira entry (http://jira.icefaces.org/browse/ICE-4459) that is marked as fixed for 1.8.1. From my point of view, this issue is not fixed.
I have problems with renderedOnUserRole in ICEfaces-1.8. It seems that the users role are initialized after the rendering of the first request. With ICEfaces-1.7.2-SP-1 the code works fine.

I got the follwing stack trace:

java.lang.NullPointerException
java.util.ArrayList.<init>(ArrayList.java:131)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.inRole(SessionDispatcher.java:148)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.access$300(SessionDispatcher.java:29)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher$2.isUserInRole(SessionDispatcher.java:98)
com.icesoft.faces.context.BridgeExternalContext.isUserInRole(BridgeExternalContext.java:203)
com.icesoft.faces.component.ext.taglib.Util.isRenderedOnUserRole(Util.java:112)
com.icesoft.faces.component.ext.HtmlCommandButton.isRendered(HtmlCommandButton.java:314)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:505)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:282)
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
com.icesoft.faces.context.View$2$1.respond(View.java:47)
com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:197)
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
com.icesoft.faces.context.View$2.serve(View.java:72)
com.icesoft.faces.context.View.servePage(View.java:133)
com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:55)
com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

Any help is appreciated.
Sorry,

I solved my "problem": I tried to reset a paginator (with gotoFirstPage()) that is not actually used on my page and lives only in my backing bean.
I have the same problem, when I use gotoFirstPage() in the backing bean. I must use gotoFirstPage() because the data in the underlying data table changed and the paginator should start (for new data) at the first page. In 1.7.1 everything worked.
Hello,

I'm playing around with the outputChart component and discovered, that there is a problem, when you want to use an actionListener. In this case an image map is rendered. Unfortunately the http attribute gets the value Code:
return false;
. I think what had been intended was to invalidate this link. This could be done by using Code:
javascript;
.
To make a proof of concept I patched the code of com.icesoft.faces.component.outputchart.OutputChart in the method generateClientSideImageMap.

The new method.

Code:
    
 void generateClientSideImageMap(DOMContext domContext, Element map) {
         if (isClientSideImageMap()) {
             Iterator area = getGeneratedImageMapArea().values().iterator();
             while (area.hasNext()) {
                 ImageMapArea areaMap = (ImageMapArea) area.next();
                 Text areaNode = domContext.createTextNode(areaMap.toHTML(
                         "title ='" + areaMap.getLengendLabel() +
                         getParentFormId() + "']['" + ICE_CHART_COMPONENT +
                         "'].value='" + getClientId(getFacesContext()) +
                         "id-key" + areaMap.hashCode() +
                         "';iceSubmitPartial(document.forms['" +
                         getParentFormId() + "'],this,event); return false;\""));
                 map.appendChild(areaNode);
             }
         } else {
             //logging client side image Map was not enabled
         }
     }
 
 


I hope this helps and the code can be used in the next release.

Greetings,

Achim.
 
Profile for achimNick -> Messages posted by achimNick [6]
Go to:   
Powered by JForum 2.1.7ice © JForum Team