Dear Seasiders,<br>I followed Ramon's Blog of porting seaside to postgreSQL using Glorp. <br>I have now created 2 components. In one, you can enter the details of the form (which are in the form of textInput and textArea) and are registered upon submitting a button. This part works well.
<br><br>Now, in the second component, I want to edit(update) the entries I have created earlier. I use textInput and textArea again for this, and when I edit and submit using a button (register the model) , the update doesnt seem to work.
<br><br>I have observed one thing here, the update doesnt seem to work in textInput value: callback:<br><br>A snippet is code is here.(which doesnt update the title)<br><br><br>self session<br> commit: [temp := self session
<br> readOneOf: BlogPost<br> where: [:each | each title = '1'].<br> html textInput value: temp title;<br> callback: [:value | temp title: value].
<br> self session register: temp]<br><br><br><br>A snippet which uses simple setter technique and is updated.<br><br>self session<br>
commit: [temp := self session<br>
readOneOf: BlogPost<br>
where: [:each | each title = '1'].<br>
temp title: 'some Title'.<br> self session register: temp].<br><br><br><br>Anticipating your help <br><br><br><br clear="all"><br>-- <br>Rajeev Lochan<br><br>
Co-founder, AR-CAD.com<br><br><a href="http://www.ar-cad.com">http://www.ar-cad.com</a><br>+91 9243468076 (Bangalore)<br>080 65355873