<div dir="ltr">Hello All<br><br>I am slowly working my way through Squeak and Seaside using "An Introduction to Seaside" and the Seaside examples as my learning guides. I have come across an issue which I don't understand, and I am hoping someone could enlighten me as to what is going wrong. The two methods below are called by <span style="font-family: arial,helvetica,sans-serif;">MLHeadDataModelView>>renderContentOn:, </span> with MLHeadDataModelView>>renderCompanyTextInputOn: resulting in a MessageNotUnderstood: WARenderCanvas>>value: error.<br>
<br>The instance methods are:<br><br>MLHeadDataModelView>>renderCompanyTextInputOn: "This method generates the 'MessageNotUnderstood: WARenderCanvas>>value:' error"<br><span style="font-family: courier new,monospace;">self </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> renderLabel: 'Company Name: '</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> input: [</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> html textInput;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> value: self headDataModelView companyName;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> callback: [:value | self headDataModelView companyName: value]]</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> output: self headDataModelView companyName</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> on: html.</span><br><br>MLHeadDataModelView>>renderEmployeeTextInputOn:<br><span style="font-family: courier new,monospace;">self</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> renderLabel: 'Employee Name: '</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> input: [</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> html textInput setFocus;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> value: self headDataModelView employeeName;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> callback: [:value | self headDataModelView employeeName: value]]</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> output: self headDataModelView employeeName</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> on: html.</span><br><br>MLHeadDataModelView>>initialize<br><span style="font-family: courier new,monospace;">initialize</span><br> <span style="font-family: courier new,monospace;"> super initialize.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> self headDataModelView: MLHeadDataModel new.</span><br><br>I don't get any error messages if I use the <span style="font-family: courier new,monospace;">on:of:</span> style, but not sure what exact difference or benefits are between the two.<br>
<br style="font-family: courier new,monospace;">MLHeadDataModelView>>renderCompanyTextInputOn:<br><span style="font-family: courier new,monospace;">renderCompanyTextInputOn: html<br>self </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> renderLabel: 'Company Name: '</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> input: [</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> html textInput on: #companyName of: self headDataModelView]</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> output: self headDataModelView companyName</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> on: html.</span><br><br>MLHeadDataModelView>>renderEmployeeTextInputOn:<br><span style="font-family: courier new,monospace;">renderEmployeeTextInputOn: html</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">self </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> renderLabel: 'Employee Name: '</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> input: [</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> html textInput on: #employeeName of: self headDataModelView]</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> output: self headDataModelView employeeName</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> on: html.</span><br>
<br>Thanks in advance for any feedback.<br><br>Regards<br>Adrian<br></div>