John Tannel wrote:
Inside of your faces-config.xml do you have a navigation rule from index-pers.xhtml to modificar.xhtml for the action 'modificar'?
Inside the bean, change private UIData data =new UIData(); to private UIData data; (I don't think this is a problem, but I know 100% that it works the second way).
MAKE SURE that data is a managed property of PersonalBean. I think this may be your problem.
Here is some managed property info: http://mkblog.exadel.com/2009/08/learning-jsf2-managed-beans/
Read the part about "Dependency Injection"
John Tannel wrote:Cesar,
I'm sorry. I gave you wrong info and didn't realize it until I saw your code. data should NOT be a managed property, I'm sorry. The data property is bound to the data in the h:dataTable from the code there. You can remove that managed property from faces-config.
John Tannel wrote:
As for what is not working, I'm not sure at the moment. I'm in the middle of something right now but in an hour I'll look over again and see if I can find the error. Do you get any errors printed at all, even in the tomcat logs? Or does it just hang on that page and do nothing? Try adding in some print statements to debug to make sure all the code executes.
Clowns were never meant to be THAT big! We must destroy it with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|