Meaningless Drivel is fun!*
The moose likes JSF and the fly likes buttons problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "buttons problem" Watch "buttons problem" New topic
Author

buttons problem

Kant P.
Greenhorn

Joined: Apr 12, 2005
Posts: 11
hi,
I have 4 buttons in a form. Each has its own logic. But after pressing them for awhile; they started not working any more. As I press them, no logics were executed...

I'm struggling trying to find out the cause..!! Can you tell me what's the problem here?

Thank you for your time and assistance..!
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

If you aren't debugging properly sometimes what will happen is your logic is what is not working anymore and an Exception is being thrown that you cannot see. So then everytime you press the button after that initial exception it just keeps on throwing it and it would appear the buttons aren't working when in reality it's your logic that blew up.

That's all I can think of with the tiny bit of information you have provided.


GenRocket - Experts at Building Test Data
Kant P.
Greenhorn

Joined: Apr 12, 2005
Posts: 11
Thank you for replying...

I'm using RAD6
Tomcat 4.127
JDK 1.4.2*
JSF 1.1

I heard that, JSF 1.1 has a problem with buttons.
I looked up here: http://forum.java.sun.com/thread.jspa?threadID=532214&messageID=2567252
which describe my problem too. One of them said, because the page backing bean doesn't have setter for its variables, so that cause the jsf life cycle to end prematurely.

I added all setters on every page, but the problem still persists....Any thought?

Thanks again
srikanth koppisetty
Greenhorn

Joined: Feb 14, 2005
Posts: 20
Did you see if there is navigation rule in your faces-config.xml file

<navigation-rule>
<from-view-id>/pages/Page1.jsp</from-view-id>
<navigation-case>
<from-outcome>sucess</from-outcome>
<to-view-id>/pages/Page2.jsp</to-view-id>
<redirect />
</navigation-case>
</navigation-rule>
 
 
subject: buttons problem