RESOLVED: Problem creating new page in Java Studio Creator 2 Update 1
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
RESOLVED: Problem creating new page in Java Studio Creator 2 Update 1  XML
Forum Index -> Tools
Author Message
mentos

Joined: 17/04/2007 00:00:00
Messages: 16
Offline


After restarting the IDE and "clean & build" it works.

Juergen


Hello,

I created my icefaces project from scratch using the option "new JSF project with Icefaces". Everything works well with the first page.

Now I would like to add a second page. From the "File" menu I used the option "New Item" with "Web Pages" and "Page" to create a new page.

I changed the beginning of the jsp code so that it looks like the first page that I created:

<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:bp="http://java.sun.com/blueprints/ui/14" 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:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
<jsp:directive.page contentType="text/html;charset=iso-8859-1" pageEncoding="UTF-8"/>
 


Now when using a link from the first page to the second page I get an execption Code:
Exception Details:  java.lang.ClassNotFoundException
 icefacewebapplication1.Familienreisebuero


But in the Java code there exists:

package icefacewebapplication1;

import com.sun.rave.web.ui.appbase.AbstractPageBean;
import com.sun.rave.web.ui.component.Body;
import com.sun.rave.web.ui.component.Form;
import com.sun.rave.web.ui.component.Head;
import com.sun.rave.web.ui.component.Html;
import com.sun.rave.web.ui.component.Link;
import com.sun.rave.web.ui.component.Page;
import javax.faces.FacesException;
import com.sun.rave.web.ui.component.Script;
import com.icesoft.faces.component.style.OutputStyle;

/**
* <p>Page bean that corresponds to a similarly named JSP page. This
* class contains component definitions (and initialization code) for
* all components that you have defined on this page, as well as
* lifecycle methods and event handlers where you may add behavior
* to respond to incoming events.</p>
*/
public class Familienreisebuero extends AbstractPageBean {
// <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
private int __placeholder;

/**
* <p>Automatically managed component initialization. <strong>WARNING:</strong>
* This method is automatically generated, so any user-specified code inserted
* here is subject to being replaced.</p>
*/
private void _init() throws Exception {
}

private Page page1 = new Page();

public Page getPage1() {
return page1;
}

public void setPage1(Page p) {
this.page1 = p;
}

private Html html1 = new Html();

public Html getHtml1() {
return html1;
}

public void setHtml1(Html h) {
this.html1 = h;
}

private Head head1 = new Head();

public Head getHead1() {
return head1;
}

public void setHead1(Head h) {
this.head1 = h;
}

private Body body1 = new Body();

public Body getBody1() {
return body1;
}

public void setBody1(Body b) {
this.body1 = b;
}

private Form form1 = new Form();

public Form getForm1() {
return form1;
}

public void setForm1(Form f) {
this.form1 = f;
}

private Script swf1 = new Script();

public Script getSwf1() {
return swf1;
}

public void setSwf1(Script s) {
this.swf1 = s;
}

private Script flash1 = new Script();

public Script getFlash1() {
return flash1;
}

public void setFlash1(Script s) {
this.flash1 = s;
}

private OutputStyle design1 = new OutputStyle();

public OutputStyle getDesign1() {
return design1;
}

public void setDesign1(OutputStyle os) {
this.design1 = os;
}

private OutputStyle iceStyle2 = new OutputStyle();

public OutputStyle getIceStyle2() {
return iceStyle2;
}

public void setIceStyle2(OutputStyle os) {
this.iceStyle2 = os;
}

// </editor-fold>


/**
* <p>Construct a new Page bean instance.</p>
*/
public Familienreisebuero() {
}
 


Is there a special wizard to create new pages?
What did I do wrong?

Jürgen
frank.ye

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


Visual Web Project depends on three views (Design View , JSP page View, Java Code backing binding beans View) synchronized .

Only change JSP page will confuse the designer API underneath the VWP project.

All the modifed in VWP project has to go through visually by changing properties or adding back bean to the JSP page.

You could at some point converting the visual project to non-visual project if you wanted to. But you will not be able to reverse back to visual project.

enjoy,
Frank
[Email]
 
Forum Index -> Tools
Go to:   
Powered by JForum 2.1.7ice © JForum Team