Forums Register Login

Problem with attributes backing bean

+Pie Number of slices to send: Send
You see, I have the following exceptions


This is the bean



faces-config.xml



The values that print in console are:

user: null
pass: null

As you can see, the fields of backing bean are null even though the xhtml page I put some value on them


What do you think is the problem?

+Pie Number of slices to send: Send
You are getting the NullPointerException because you are attempting to invoke the equals() method on something that you already know is a null string (since you just printed it).

Normally, I'd expect the fields to be set to empty strings as part of the JSF request process, but you didn't include the actual page definition, so I can't tell whether you have your page form setup properly.

Aside from that, the technical name for "user-defined login" is Security Hole.
+Pie Number of slices to send: Send
The values you are entering in the GUI are not getting stored in the variables you defined in the backing bean
Put up some log statements and work in that direction to see why the values are not getting entered in the variables of JSF backing bean
best of luck
Arthur, where are your pants? Check under this tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 6159 times.
Similar Threads
How to Reterive Row Data in JSF
javax.el.PropertyNotFoundException: Objetivo inalcanzable - JSF - Facelet - method-signature
Blank page on backing bean exception
[JBoss 6.0.0 M2 (soon)] EJB 3.1 and JSF : NoInterfaceProxy error
JSF managed bean not created error
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:34:02.