[Zope] Getting an Error that I don't understand
Mark Gibson
mark at kaivo.com
Wed Apr 28 12:43:35 EDT 2004
Here's your problem:
<input type="text" name="userid" tal:attributes="value result/userid"
tal:content="result/userid">
tal:content makes no sense in this context, since an input tag doesn't
contain content. For example: <div>content</div> <span>content</span>
<td>content</td> - all of these tags have content, and you could use
tal:content when defining them.. An input tag does not.
Mark
Laura McCord wrote:
> Here is what the code looks like:
>
> <html>
> <body tal:define="userid request/userid | nothing">
> <form tal:condition="userid">
> <table repeat="result python: context.qUser(userid=userid)">
> <tr>
> <td>
> <input type="text" name="userid" tal:attributes="value result/userid"
> tal:content="result/userid">
> </td>
> </tr>
> </table>
> </form>
> </body>
> </html>
>
>
> Thanks,
> Laura
>
>
>
>
>
>
>
>
> ----Original Message-----
> From: Mark Gibson [mailto:mark at kaivo.com]
> Sent: Wednesday, April 28, 2004 11:32 AM
> To: Laura McCord
> Cc: zope at zope.org
> Subject: Re: [Zope] Getting an Error that I don't understand
>
>
> I'm only guessing - an empty html tag would be somthing like a <br> or
> <hr>. Putting a tal:content within such a tag doesn't make any
> sense, becuase these tags don't surround content.
>
> If this doesn't help, post the source of the page template that's
> producing this error.
>
> Mark
>
> Laura McCord wrote:
>
>>Could someone tell me what this means and what is the resolution.
>>
>>Compilation failed
>>TAL.TALDefs.TALError: empty HTML tags cannot use tal:content: 'input',
>
>
>>at line 7, column 1
>>
>>I tried googling it but couldn't find an explaination or resolution.
>>
>>Thanks,
>> Laura
>>
>>_______________________________________________
>>Zope maillist - Zope at zope.org
>>http://mail.zope.org/mailman/listinfo/zope
>>** No cross posts or HTML encoding! **
>>(Related lists -
>> http://mail.zope.org/mailman/listinfo/zope-announce
>> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
More information about the Zope
mailing list