my dog learned polymorphism
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: 17417

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.

An IDE is no substitute for an Intelligent Developer.
Nguyen Ninh

Joined: Jan 15, 2013
Posts: 4
Thank you bro !!
I agree. Here's the link:
subject: Problem with visual web JSF !
It's not a secret anymore!