Re: Prettyfaces + Hibernate + Spring lazy initialization

Splash Forums PrettyFaces Users Prettyfaces + Hibernate + Spring lazy initialization Re: Prettyfaces + Hibernate + Spring lazy initialization

#22553

fabio.patricio
Participant

Hi,

Perfect.

Is there a design example of how an application should work PrettyFaces, urls, configuration, eg for a crud?

What would be good practice.

When the User clicks the edit button:

pretty: edit

Directs to the url: / user/edit/5

In the bean is loaded object 5 is shown to the User.

It changes some information and clicks the save button: pretty: update

Upon arriving at this object bean must be reloaded to avoid the lazy? And after copying the properties of the filled object on the screen?

What would best solution?

Best Regards,