Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Navigation works... and it doesn't.  RSS feed

 
Guy deLyonesse
Ranch Hand
Posts: 200
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a navigation question.

I have a page that contains a PrimeFaces button to navigate to a separate view:



The problem is that when this button is clicked, the navigation works in that it initializes the target view's backing bean. (I have some debug statements in there that prove this.) The view itself does not change, however. The user is left thinking nothing has happened. The only "weirdness" on the page is a series of Dygraphs with heavy JavaScript interaction. Could that be interfering with the browser's ability to change views?

Edit: Both of these backing beans are View Scoped.
 
Guy deLyonesse
Ranch Hand
Posts: 200
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem resolved. It's unclear to me why the backing bean was being initialized, but as it happens, that bean is also the backing bean for the initial view. The reason the navigation wasn't working: no form tag.

This is why maintaining others' code is not fun.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!