This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with visual web JSF !

 
Nguyen Ninh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!
I'm newbie in visual web Jsf and I've tried something like http://www.javaguicodexample.com/javavisualwebjsfnetbeans3.html.

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
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Nguyen Ninh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you bro !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic