voyent
Design view of ICEfaces pages not rendering in Netbeans 6.5  XML
Forum Index -> Woodstock to ICEfaces Migration
Author Message
mkat

Joined: 16/Oct/2008 00:00:00
Messages: 96
Offline


So, I have a project in Netbeans 6.5 with Woodstock. I followed the instructions for Migration exactly. Installed the Netbeans plugins. I added the Visual ICEfaces in project properties. At that point it automatically generated an Icefaces page. I ran my project and as I expected, only the .ifaces pages ran, and my Woodstock pages were blank. I could see the ICEfaces page in the Design view fine at this point.

Ok. I then followed the instruction on another post to get both my /faces/*.jsp Woodstock pages and my /*.iface ICEfaces pages to run by switching to "Just ICEfaces" jar.
-I went to project properties-> build-> packaging and removed the "ICEfaces" I saw there. I then Added the "Just ICEfaces" to replace it.
-I went to project-properties-> libraries and (without changing what was already there) added the "Just ICEfaces".

I ran my project and I could then run both my .iface and Woodstock .jsp pages fine.

BUT, when I look at an ICEfaces page in design view, it says there is a component error and says that ICEfaces requires the Persistent faces context, check your web.xml, etc. (Note, that from the start I made NO changes to my web.xml file(from what ICEfaces automatically added).

What's strange is that I can create a new ICEfaces page, edit the jsp instead of design view, and it runs fine.

Any ideas what to do?

Thanks.
frank.ye

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


add Visual Web ICEfaces to existing Woodstock project will set the property environments in design time and run time.

Is this working for you? ie when clean and build just-ice.jar in the war file at dist folder.
[Email]
mkat

Joined: 16/Oct/2008 00:00:00
Messages: 96
Offline


frank.ye wrote:
add Visual Web ICEfaces to existing Woodstock project will set the property environments in design time and run time.

Is this working for you?  


I did that. That resulted in ICEfaces pages running but not Woodstock pages. At that point ICEfaces pages rendered fine in design view.

frank.ye wrote:
ie when clean and build just-ice.jar in the war file at dist folder.  


When I switched to "Just ICEfaces" in the project properties, the ICEfaces pages and Woodstock pages ran fine, but ICEfaces pages no longer render in design view.
frank.ye

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


Two separated libraries in the Visual Web Project:

In the project property:
Libraries --> Compile (ICEfaces JSF 1.2 Design-Time 1.7.2 without checkbox on Package)
(Just ICE could not in Compile category)

Build--> Packaging (Just ICE)

the above will change in 1.8 use a single library instead.

But using add Visual Web ICEfaces will give the correct setting to start with. Why you need to change it manually?

Can you add Visual Web ICEfaces Framework to your existing project and send me the zip file of your project folder?
attach to here.

thanks,
Frank
[Email]
mkat

Joined: 16/Oct/2008 00:00:00
Messages: 96
Offline


frank.ye wrote:
Two separated libraries in the Visual Web Project:

In the project property:
Libraries --> Compile (ICEfaces JSF 1.2 Design-Time 1.7.2 without checkbox on Package)
(Just ICE could not in Compile category)

Build--> Packaging (Just ICE)

the above will change in 1.8 use a single library instead.

But using add Visual Web ICEfaces will give the correct setting to start with. Why you need to change it manually?

 


Just now, I tried making a completely new web project, doing the exact same thing I did with my other main web project. In the new one, all I did was add the Visual ICEfaces as usual, but when I looked back at the project properties, it said "Just ICEfaces"! On my main project, when I did that, it said "ICEfaces" (which is why I had to go change it)! I didn't do anything differently. The only difference between the two, is my main project was originally created in Netbeans 6.1. Could that be why?
frank.ye

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


Migration part is done at Netbeans 6.5 level, not at Netbeans 6.1.
[Email]
mkat

Joined: 16/Oct/2008 00:00:00
Messages: 96
Offline


frank.ye wrote:
Migration part is done at Netbeans 6.5 level, not at Netbeans 6.1. 


I know. I'm just saying I originally created that project in 6.1, but I've been working with it in 6.5 for a while and attempted Migration in 6.5.
mkat

Joined: 16/Oct/2008 00:00:00
Messages: 96
Offline


Oh wow I think I figured it out. I looked at the libraries of my new app, and the libraries of the old.

While the old app uses Woodstock components, the Woodstock jsf lib was not in the Compile list. It was automatically added when I created the new app.

So, I added that Woodstock lib to a copy of my original app. THEN I added the "Visual ICEfaces" framework. When I went back to build-> packaging, the proper "Just ICEfaces" that I wanted was already there!

How very strange.
 
Forum Index -> Woodstock to ICEfaces Migration
Go to:   
Powered by JForum 2.1.7ice © JForum Team