• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem implementing commenting system in jsf and java  RSS feed

 
Victor Ade
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just one question ive been battling with the whole time as i struggle to set the value of testBean.msqlN from testBean class to editorView.thread with <f:setPropertyActionListener /> however tomcat log still tells me thread is null!
here's testBean.java



EditorView.java




and here's what my view look like


attached PNG is tomcat log in netbean
smss.PNG
[Thumbnail for smss.PNG]
 
Tim Holloway
Bartender
Posts: 18775
74
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any time your code sample cannot fit on someone's monitor screen completely, the chances of getting an answer go way down. No one here gets paid to do this, so no one has much incentive to read through a lot of stuff. Try and keep your examples as brief as possible. Also, copy/paste text is better than a screenshot. Your code sample is too long, but the information in the screenshot is too short!

A superficial look at what you posted did ring some basic alarms.

1. Use ViewScoped or SessionScoped. One of the fundamental rules of JSF is that in JSF Request Scope is almost 100% useless. It loses critical data when postbacks are done.

2. A JSF backing bean needs a no-element constructor. The JSF bean factory cannot supply arguments to constructors.

Hope that is of some help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!