Hi Fernando,

 

If you will look into the homework assignment again,

It says that you should have two .jsp files and two separate .java files
(one of them will be named HobbyBean.java. In this file you will create
HobbyBean class and setters and getter for hobby).

 

Then you will set a value as HobbyBean.hobby in Hobby.jsp:

 

<h:inputText id="hobby" value="#{HobbyBean.hobby}"/>

 

Regards,

Moria.

 

________________________________

From: java-ee-j2ee-programming-with-passion@googlegroups.com
[mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On
Behalf Of fernando pardo
Sent: Wednesday, December 09, 2009 10:12 AM
To: java-ee-j2ee-programming-with-passion@googlegroups.com
Subject: [java ee programming] Question about LAB4101

 

hello all:
anyone help me please?

Im doing the course j2ee java programming the homework that belongs to
lab4101(lab#13)(JSFHelloworld)but i have the following problem,

on the two last lines mark of the following file: class,interface or
enum expected


I have the following  UserBean.java file :

package com.corejsf;

public class UserBean {
   private String name;
   private String password;
   private String hobbie;
   // PROPERTY: name
   public String getName() { return name; }
   public void setName(String newValue) { name = newValue; }
   
   // PROPERTY: password
   public String getPassword() { return password; }
   public void setPassword(String newValue) { password = newValue; }
}
   public String getHobbie() { return hobbie; }
   public void setHobbie(String newValue) { hobbie = newValue;}
   }
   
what can i do?



-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=
en?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to