• Post Reply Bookmark Topic Watch Topic
  • New Topic

set default bean first start page  RSS feed

 
Wittaya Bungon
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want set default bean for first start page for searh page
i have TestBean
class TestBean{
String startDate;
String endDate
}
value default change follow business Logic
startDate = 01/09/2005
endDate = 15/09/2005


i don't know to modify code ? thank you for idea
 
Tim Holloway
Bartender
Posts: 18663
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Witty BB",

We're not one of these uptight, hard-nosed sort of places where you'll get flamed if you don't do everything just right, but we do like to fool ourselves into thinking we're a bunch of professionals, so we have a set of Naming Rules.

Please follow the naming guidelines and not only will we all be happier, but you'll probably find your questions get answered faster.
<hr>

Speaking of which, JSF is an Inversion of Control framework sort of system. You initialize beans using the managed bean feature of the face-config.xml file.

It's all done in XML, rather than in Java code.

Kito Mann's JavaServer Faces In Action book (Manning publications) has some great examples.
[ December 02, 2005: Message edited by: Tim Holloway ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!