File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 16537

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 !