Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Command Link not working after navigating to other pages

 
Subash Karuppiah
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey am a newbie to JSF. I got a mainpage, where there are several links to different pages (Command Links), i have a corresponding rules in faces-config. The thing is when i login and click on any link it navigates to the page, but when i come back to home and click on link again it does not navigate. Clicking the home link again makes the links work. Can someone get me the answer for this asap. Thanks!!
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18012
47
Android Eclipse IDE Linux
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, Subash!

commandLinks do not execute if the form that contains them has invalid control properties. An easy way to check for this is to put a "h:messages" tag on the page and see if any validation error messages display.
 
Subash Karuppiah
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, Thanks Tim!! i was able for find the errors and fix it. It works fine now!! Thz....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic