• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem implementing commenting system in jsf and java

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
So you made a portal in time and started grabbing people. This tiny ad thinks that's rude:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic