This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Problem with visual web JSF ! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with visual web JSF !" Watch "Problem with visual web JSF !" New topic

Problem with visual web JSF !

Nguyen Ninh

Joined: Jan 15, 2013
Posts: 4
I'm newbie in visual web Jsf and I've tried something like

So could you explain for me somethings.

So how to call it in java class. I've try to defined it as com.sun.webui.jsf.component.TextField but i can't link it to jsp Page.

Is something wrong in my code?
Please help me. Thanks!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951

JSF is very different from the stand-along GUI frameworks like Swing. For one thing, it's based on the idea that the Model (backing bean) is mostly synced with the View automatically. So you don't obtain a View control and push data into it, you expose POJO properties on the Model and the Controllers that are built into JSF will handle setting and getting Model values into the View.

So, for example, in your case, the action method would set the value of a property named "name" and JSF would invoke getName() to get the value to display.

Customer surveys are for companies who didn't pay proper attention to begin with.
Nguyen Ninh

Joined: Jan 15, 2013
Posts: 4
Thank you bro !!
It is sorta covered in the JavaRanch Style Guide.
subject: Problem with visual web JSF !
Similar Threads
Tomcat 7 compile error for simple JSP/Class
JSF check if message is empty
everything I put between <h:xxx> is invisible :0
problem on JSF application
Problem with visual web JSF !