• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refactor Managed Bean

 
Gallen Thomas
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I am new at JSF and I am puzzled as to why when I refactor my backing bean, my JSF doesn't work anymore. Let me explain with code.


Everything works fine. When I run it, my browser displays "Hello World!" The minute I refactor (rename) Hello class to HelloTest and change hello.world (in my beanhello.xhtml) to hellotest.world, it doesn't work when I run it again. My browser display a blank page. I stopped and started the server, rebuild, redeploy and nothing works.

What am I doing incorrectly?

Thank you in advance.

Gregg
 
Daniel Del Moral
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the new refactored Managed Bean name is HelloTest, you should call it from helloTest from the page, not hellotest. That should work.
 
Gallen Thomas
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Daniel Del Moral wrote:If the new refactored Managed Bean name is HelloTest, you should call it from helloTest from the page, not hellotest. That should work.


Ah yes, thank you Daniel! It works.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic