Hi John, The quoted javadoc seems a bit off. I've never seen an object passed as a request attribute or even parameter. Generally only the object ID or surrogate key is passed around. As Gilberto has said you then lift the entity and set it on the Form. Once an enity has been set HibernateForm uses two HiddenFields to pass the Entity ID and Entity class between posts. The Form will automatically load the Entity from Hibernate Session when getValueObject is called.
Since you are new to both Click and Hibernate it might be worth considering using just a normal Form when you find you are struggling with HibernaterForm. When using a Form you essentially need to use a HiddenField to pass the entity ID (or a surrogate ID) between posts. HibernateForm also adds limited validation to it's Fields based on Entity meta data supplied by Hibernate. For example if the db column does't allow null, the Field will be required. Kind regards Bob On 26/11/2010 08:57, johnfilo wrote: > > Hi Gilberto, > > Your a champ! Thanks for the help and quick response. I tried this out and > it now populates the form as expected. > > I have another issue now around the Transaction Manager used by hibernate > and WebSphere, but I will open a new topic if I can't figure that out > > Thanks again! > > John
