| 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.
|
 |
 |
|
|
subject: Refactor Managed Bean
|
|
|