Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending #with: to a WACompound serializes it twice #469

Closed
GoogleCodeExporter opened this issue Mar 25, 2015 · 2 comments
Closed

Sending #with: to a WACompound serializes it twice #469

GoogleCodeExporter opened this issue Mar 25, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

GoogleCodeExporter commented Mar 25, 2015

The problem is, when rendering the date input field, it displays itself twice 
(see the html at the 
end of this message) 

These are some portions of the code:

ContactView>>renderContentOn: html
       html form:
               [ self
                       renderNameOn: html;
                       renderEmailOn: html;
                       renderGenderOn: html;
                       renderSendUpdatesOn: html;
                       renderDateOn: html;
                       renderSaveOn: html ].


ContactView>>renderDateOn: html
       html text: 'Date of birth: '.
       html dateInput
               callback: [ :value | self contact birthdate: value ];
               with: self contact birthdate.
       html break.

This is after the refactoring suggested in section 11.5 of the book, but the 
problem always 
occurred, from the first time the date input field was introduced.
It is using Pharo image 10448 (bet the problem existed long before that) - I 
don't know how to 
check the Seaside revision, but I suspect it is 2.8? or maybe 2.9 - it came 
with the Pharo image 
downloaded from the Pharo website on 2009-08-19. Any help would be appreciated.

Here is the html produced:


 <br/>Date of birth:
 <select name="13">
   <option value="14">January</option>
   <option value="15">February</option>
   <option value="16">March</option>
   <option value="17">April</option>
   <option value="18">May</option>
   <option value="19">June</option>
   <option value="20">July</option>
   <option value="21">August</option>
   <option value="22" selected="selected">September</option>
   <option value="23">October</option>
   <option value="24">November</option>
   <option value="25">December</option>
 </select>&nbsp;
 <input value="13" name="26" size="2" maxlength="2" type="text" class="text"/>&nbsp;
 <input value="2009" name="27" size="4" maxlength="4" type="text" class="text"/>
 <input name="28" type="hidden" class="hidden"/>
 <select name="29">
   <option value="30">January</option>
   <option value="31">February</option>
   <option value="32">March</option>
   <option value="33">April</option>
   <option value="34">May</option>
   <option value="35">June</option>
   <option value="36">July</option>
   <option value="37">August</option>
   <option value="38" selected="selected">September</option>
   <option value="39">October</option>
   <option value="40">November</option>
   <option value="41">December</option>
 </select>&nbsp;
 <input value="13" name="42" size="2" maxlength="2" type="text" class="text"/>&nbsp;
 <input value="2009" name="43" size="4" maxlength="4" type="text" class="text"/>
 <input name="44" type="hidden" class="hidden"/>
 <br/>

Original issue reported on code.google.com by renggli on 20 Sep 2009 at 7:25

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 25, 2015

The problem can be fixed in a similar way to how this is done with 
WASubmitButton, WATextInputTag or 
WATextAreaTag.

Original comment by renggli on 20 Sep 2009 at 7:26

  • Added labels: BiteSize
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 25, 2015

Fixed with Seaside-Canvas-obi.73

Original comment by obi...@gmail.com on 26 Oct 2009 at 6:23

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant