• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

buttons problem

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..!
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Kant P.
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Whoever got anywhere by being normal? Just ask this exceptional tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic