Problem with EntityHome's update
maxseam Dec 7, 2008 11:38 PMHello!
I have a problem with update and persist method of EntityHome object. I have a class, which is called Tuser. Now I want, that the user is able to change his data in a form. But if the user is going to save data, nothing happens and the old values are still displayed. I have no error messages in my log file and only select statements and no DML functions.
Here is my code:
<s:div id="editPersonal" rendered="#{edit.equals('personal')}"> <div style="text-align:right"> <s:link action="#{tuserHome.persist}" value="speichern" > <f:param name="edit" value="none"/> </s:link> </div> <s:decorate template="layout/edit.xhtml"> <ui:define name="label"> Vorname </ui:define> <h:inputText id="tfirstname" value="#{tuserHome.instance.tfirstname}" > <a:support event="onblur" reRender="tskilllevelField" bypassUpdates="true" ajaxSingle="true" /> </h:inputText> </s:decorate> <s:decorate template="layout/edit.xhtml"> <ui:define name="label"> Nachname </ui:define> <h:inputText id="tlastname" value="#{tuserHome.instance.tlastname}" > <a:support event="onblur" reRender="tskilllevelField" bypassUpdates="true" ajaxSingle="true" /> </h:inputText> </s:decorate> <s:decorate template="layout/edit.xhtml"> <ui:define name="label"> Geschlecht </ui:define> <rich:inplaceSelect id="tgender" defaultLabel="#{tuserHome.instance.tgender=='m' ? 'männlich' : 'weiblich'}" value="#{tuserHome.instance.tgender}"> <f:selectItem itemValue="m" itemLabel="männlich"/> <f:selectItem itemValue="w" itemLabel="weiblich"/> </rich:inplaceSelect> </s:decorate> <s:decorate template="layout/edit.xhtml"> <ui:define name="label"> Verein </ui:define> <h:inputText id="tclub" value="#{tuserHome.instance.tclub.tname}" > <a:support event="onblur" reRender="tskilllevelField" bypassUpdates="true" ajaxSingle="true" /> </h:inputText> </s:decorate> <div style="clear:both"> </div> </s:div> </rich:panel>
This is the part of the richpanel where I want to make the update. I write the data in the tuserHome object and if somebody clicks on the link called speichern
I want to update the data. But if I return to my page, the old data is still shown. I don't know what the problem is and why the update method of EntityHome object is not called or does nothing.
What do you think?
Thanks!
regards,
max.