This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes JSF and the fly likes Question about constructor? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Question about constructor?" Watch "Question about constructor?" New topic
Author

Question about constructor?

Popescu Ion
Ranch Hand

Joined: Jan 14, 2011
Posts: 33
Hi guys,

In the index.xhtml page i have:


The bean is :


When i display the index.jsp page I get only Folder ID is :, without folderId value, why? Doesn't the constructor executes before and sets the folderId to "33" ?
Please explain me someone what is wrong ? Thnx in advance.


Sorry for my English, it is not my first language.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17143
    
  27

Your "Constructor" is named "QuizBean", but your class is named "Test". Oops!


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about constructor?
 
It's not a secret anymore!