voyent
duplicate com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl when adding icefaces framework  XML
Forum Index -> Woodstock to ICEfaces Migration Go to Page: 1, 2 Next 
Author Message
autozoom

Joined: 28/Dec/2007 00:00:00
Messages: 80
Offline


I am trying to integrate the 2 frameworks.
Netbeans 6.5 and Icefaces 1.8 RC 1

When you add the icefaces framework to a woodstock 4.2 project, the resulting war includes both appbase.jar (from woodstock) and wyswyg-appbase.jar (from icefaces)

So which ViewHandlerImpl (declared in faces-config.xml) is going to be used? it exists in both jars.

If you drop the woodstock one, you get some bad behaviours in the woodstock pages, while if you delete the icefaces one some icefaces components (namely trees) work bad.

What can I do?

thanks
frank.ye

Joined: 26/Oct/2004 00:00:00
Messages: 709
Offline


If you want the full control and change the behavior of lifecycle, you could include the Delegating VIewHandler as well as lifecycle listener in your project source code directory.

At RC2, I am working on right now will change as described in
http://jira.icefaces.org/browse/ICE-4129

At RC2 bundle, It will change to a USER PROJECT configuration with faces-config.xml and web.xml instead.

let me know if you have any further questions.

enjoy,
Frank
[Email]
autozoom

Joined: 28/Dec/2007 00:00:00
Messages: 80
Offline


thanks but I don't understand...
it's not that I *want* full control, it's just that it's not working this way.

What should I do? 1.8 RC 2 version of Netbeans integration is not available yet, so could you please tell me what to do in the meanwhile?

My problem is that everything seemed to work fine, but when I started trying to power-use the dynamically created icefaces tree, they simply don't work.

The same page in a pure-icefaces project works fine.

We are migrating our already-in-production woodstock project to icefaces, so this is a very big adoption-blocker for us

thanks
frank.ye

Joined: 26/Oct/2004 00:00:00
Messages: 709
Offline


while in your case, please list the problems that use wyswyg-appbase.jar with some bad behaviours in the woodstock pages? ie, a project to duplicate the exceptions. and attach to the forum.
[Email]
autozoom

Joined: 28/Dec/2007 00:00:00
Messages: 80
Offline


Here is the project; you see 2 wrong behaviuors:
1)
Navigating to ProvaTreeWoodIce/faces/Page1.jsp leads to an error (it's an empty page)

2)
If you go to ProvaTreeWoodIce/IcePage1.iface you get an icefaces tree but it doesn't work fine: this is directly based in your showcase tree example.
Clicking on the parent nodes ("testo nodo 1" and so on) an OutputText is updated with the clicked value; but when you expand a branch and click on the leaf, the branch is wrongly collapsed and the outputtext is not updated (it should)

Thanks a lot
 Filename ProvaTreeWoodIce.zip [Disk] Download
 Description
 Filesize 28 Kbytes
 Downloaded:  571 time(s)

frank.ye

Joined: 26/Oct/2004 00:00:00
Messages: 709
Offline


RC 2 is available. give it a try.
one of situation failed is related to Error Handling failed.
ie,
#1. if go a a wrong url or servlet mapping
#2. go to a faces/Page1.jsp

a jira is created for the above situation:
http://jira.icefaces.org/browse/ICE-4257

it failed here. if work flow correctly, it works fine.


[Email]
autozoom

Joined: 28/Dec/2007 00:00:00
Messages: 80
Offline


I am not sure what you mean when you say "one of situation failed is related to Error Handling failed".
I will give it a try
autozoom

Joined: 28/Dec/2007 00:00:00
Messages: 80
Offline


I've just tried the new RC2, but no luck.
You now get the old woodstock page to work at least, but the icefaces page with tree still is not working properly.

The very same page works if deployed on a icefaces-only project.

I was hoping to be able to start my production project from woodstock to icefaces with version 1.8, but now I am starting to change my mind.

Given this situation, when I have an issue on a icefaces page I never know whether it's my problem or a framework issue (this tree page explains it well)
autozoom

Joined: 28/Dec/2007 00:00:00
Messages: 80
Offline


I did further tries. I attach the resulting built project.
I replaced just-ice.jar with icefaces.jar and now my icefaces tree works fine.
But when you go to http://localhost:8080/ProvaWIRC2/faces/Page1.jsp you get this error:

Code:
 Exception Details:  java.lang.IllegalStateException
   FacesContext not instance of BridgeFacesContext
 
 Possible Source of Error:
    Class Name: com.icesoft.faces.application.ViewRootStateManagerImpl
    File Name: ViewRootStateManagerImpl.java
    Method Name: saveView
    Line Number: 145
 
 com.icesoft.faces.application.ViewRootStateManagerImpl.saveView(ViewRootStateManagerImpl.java:145)
 com.sun.faces.extensions.avatar.application.DeferredStateManager.saveView(DeferredStateManager.java:69)
 com.sun.faces.application.ViewHandlerImpl$WriteBehindStateWriter.flushToWriter(ViewHandlerImpl.java:930)
 com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:205)
 com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
 org.icefaces.netbeans.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:296)
 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.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.render(PartialTraversalLifecycle.java:106)
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
 org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
 org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 java.lang.Thread.run(Thread.java:619)
 



this is really unusable for me at the moment
 Filename ProvaWIRC2.war.zip [Disk] Download
 Description
 Filesize 7636 Kbytes
 Downloaded:  212 time(s)

frank.ye

Joined: 26/Oct/2004 00:00:00
Messages: 709
Offline


In the co-existing Project, must use just-ice.jar. icefaces.jar is only for ICEfaces stand alone project. also,web.xml has to be compatible as well.

I have to say, it is rather confusing with so many options here. so in order to make it clear, I attach your sample project. give it a try and let me know if you have any problem with it.

enjoy,
Frank
 Filename ProvaTreeWoodIce.jar [Disk] Download
 Description co-existing project
 Filesize 29 Kbytes
 Downloaded:  334 time(s)

[Email]
autozoom

Joined: 28/Dec/2007 00:00:00
Messages: 80
Offline


If I am not wrong this is one of the projects I sent to the forum.
The icefaces tree doesn't work properly.

To make it work, you have to set com.icesoft.faces.standardRequestScope to false in web.xml

This is another issue: the netbeans icefaces plugin sets this wrongly to true.
frank.ye

Joined: 26/Oct/2004 00:00:00
Messages: 709
Offline


yes, this is your project, but tree is not working properly?
Could you elaborate more about why tree is not working?
tried com.icesoft.faces.standardRequestScope with true or false. it seems fne.

/home/fye/java_utils/jboss/jboss-4.2.3.GA
Let me know if I could duplicate the tree problem?
[Email]
autozoom

Joined: 28/Dec/2007 00:00:00
Messages: 80
Offline


when you click on the 1st level links, a label is updated:OK
then you expand a branch, and click on the leaf; the label is supposed to be updated in the same way, but instead the branch is collapsed and the label disappears: WRONG

when you switch the parameter from TRUE to FALSE, it works fine

does this happen to you as well?
frank.ye

Joined: 26/Oct/2004 00:00:00
Messages: 709
Offline


At application level, the back beans value is associate with different scopes, if using request scope, the value is cleaned in requestParameterMap. So taking advantage of ICEfaces, you have to use standardRequestScope=false.

Using your sample, it works fine in the above case as well as compatible with Woodstock.

In the final 1.8.0 bundle release, it will use standardRequestScope false as default value.

thanks,
Frank
[Email]
autozoom

Joined: 28/Dec/2007 00:00:00
Messages: 80
Offline


I am sorry but I still have issues.
After adding the icefaces 1.8 rc2 framework to my production woodstock application, I have problems like action handler not being called anymore and ajax transactions giving javascript errors.

This is very tricky to reproduce as I would have to send you my huge project, and I cannot.

I cannot proceed this way, I have to rethink about my next step
 
Forum Index -> Woodstock to ICEfaces Migration Go to Page: 1, 2 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team