• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF debugging  RSS feed

 
naveen gupta
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anybody give me some ideas about debugging JSF method binding

i have a java bean, which also contains a method which will email to me

and i am calling this method in my JSF using method binding
and i have a print statement in my method, which doesn't print in the console
which means this method itself is not getting called

i have included this java bean in configuration file

what else do i need to make sure and any other debugging ideas ?

- Naveen
 
Dhananjay Inamdar
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Naveen,

In JSF's life cycle Conversion and validation happens in the very biggining. If there is any problem in any of these steps and you have not attached message to your input boxes then the error will not get displayed on the page. But the next method calls will not happen as per expectation.

So add messages to most of your input boxes and then check.

Cheers
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"DJDON",

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

It appears you had a valid display name and have changed it. Please change back immediately or your account will be closed.

Please edit your profile and correct your display name.

thanks,
Dave
 
naveen gupta
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i found solution to my problem and i opened the forum to check responses for my post. You were right DJ, you said exactly where i was going wrong

I had a Date field in my JSF, for which i didn't do conversion, which is a must, which i learnt reading the book. You need to do conversion for all non String displays. And i didn't include error messages too. So really had a tough time finding it.

Once i did the conversion for the Date field, everything worked fine

thanks for your reply too

Lesson learnt :- read...read...read and do some sample examples
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!