aspose file tools*
The moose likes JSF and the fly likes Refactor Managed Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Refactor Managed Bean" Watch "Refactor Managed Bean" New topic
Author

Refactor Managed Bean

Gallen Thomas
Greenhorn

Joined: Aug 15, 2010
Posts: 13
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

Joined: May 24, 2008
Posts: 32
If the new refactored Managed Bean name is HelloTest, you should call it from helloTest from the page, not hellotest. That should work.


SCJP 5, SCWCD 5
Gallen Thomas
Greenhorn

Joined: Aug 15, 2010
Posts: 13
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Refactor Managed Bean