You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Denis McCarthy <dm...@annadaletech.com> on 2006/08/18 13:44:26 UTC
Can you always have valid html with tapestry templates?
Hi,
I have tables that are populated by a @ForEach component in my html. The
html template is like this
<table>
<tr><td>blah blah</td></tr>
<span jwcid="leftMenu@Foreach ...>
<tr> - stuff iterated over by the foreach </tr>
</span
</table>
Now I recently upgraded to eclipse callisto using the Web tools project,
and the html validator is complaining that the above is not valid html
(which, in fairness it isn't, as the span occurs within a table but not
within a td). Is there some html-compliant way to structure this, or
will I have to live with my tapestry templates being non-html compliant?
TIA
Denis
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Can you always have valid html with tapestry templates?
Posted by Denis McCarthy <dm...@annadaletech.com>.
That works! Thanks
andyhot wrote:
> Use:
> <table>
> <tr><td>blah blah</td></tr>
>
> <tr jwcid="leftMenu@Foreach" elemente="tr"...>
> stuff iterated over by the foreach
> </tr>
>
> </table>
>
> Denis McCarthy wrote:
>> Hi,
>> I have tables that are populated by a @ForEach component in my html.
>> The html template is like this
>> <table>
>> <tr><td>blah blah</td></tr>
>>
>> <span jwcid="leftMenu@Foreach ...>
>> <tr> - stuff iterated over by the foreach </tr>
>> </span
>> </table>
>>
>> Now I recently upgraded to eclipse callisto using the Web tools
>> project, and the html validator is complaining that the above is not
>> valid html (which, in fairness it isn't, as the span occurs within a
>> table but not within a td). Is there some html-compliant way to
>> structure this, or will I have to live with my tapestry templates
>> being non-html compliant?
>> TIA
>> Denis
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Can you always have valid html with tapestry templates?
Posted by andyhot <an...@di.uoa.gr>.
There are issues with the namespace approach as well.
For instance, how about informal parameters?
If you want to go with the valid XHTML approach for templates,
you'd have to indeed use a namespace, allow tapestry:jwcid
for all elements and specify all additional parameters (required,
formal, informal)
in your jwc or with annotation.
But anyway, more important to me is having the generated code pass
validation.
I think there was a similar discussion a year ago in this list - if you
can search
for it, you might find more info :)
Xiaoshu Wang wrote:
> I don't see that as a valid HTML yet. The jwcid attribute is not specified
> in HTML. Maybe Tapestry should put up a namespace for its tag. So, we can
> use
>
> <span tapestry:jwcid="leftMenu@For" tapestry:element="tr" ...
>
> It will make it at least an XHTML document.
>
> Xiaoshu
>
>> Use:
>> <table>
>> <tr><td>blah blah</td></tr>
>>
>> <tr jwcid="leftMenu@Foreach" elemente="tr"...> stuff iterated
>> over by the foreach </tr>
>>
>> </table>
>>
>> Denis McCarthy wrote:
>>
>>> Hi,
>>> I have tables that are populated by a @ForEach component in my html.
>>> The html template is like this
>>> <table>
>>> <tr><td>blah blah</td></tr>
>>>
>>> <span jwcid="leftMenu@Foreach ...>
>>> <tr> - stuff iterated over by the foreach </tr> </span </table>
>>>
>>> Now I recently upgraded to eclipse callisto using the Web tools
>>> project, and the html validator is complaining that the
>>>
>> above is not
>>
>>> valid html (which, in fairness it isn't, as the span occurs
>>>
>> within a
>>
>>> table but not within a td). Is there some html-compliant way to
>>> structure this, or will I have to live with my tapestry templates
>>> being non-html compliant?
>>> TIA
>>> Denis
>>>
>>>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>>
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>> --
>> Andreas Andreou - andyhot@apache.org -
>> http://andyhot.di.uoa.gr Tapestry / Tacos developer Open
>> Source / J2EE Consulting
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: Can you always have valid html with tapestry templates?
Posted by Xiaoshu Wang <wa...@musc.edu>.
I don't see that as a valid HTML yet. The jwcid attribute is not specified
in HTML. Maybe Tapestry should put up a namespace for its tag. So, we can
use
<span tapestry:jwcid="leftMenu@For" tapestry:element="tr" ...
It will make it at least an XHTML document.
Xiaoshu
> Use:
> <table>
> <tr><td>blah blah</td></tr>
>
> <tr jwcid="leftMenu@Foreach" elemente="tr"...> stuff iterated
> over by the foreach </tr>
>
> </table>
>
> Denis McCarthy wrote:
> > Hi,
> > I have tables that are populated by a @ForEach component in my html.
> > The html template is like this
> > <table>
> > <tr><td>blah blah</td></tr>
> >
> > <span jwcid="leftMenu@Foreach ...>
> > <tr> - stuff iterated over by the foreach </tr> </span </table>
> >
> > Now I recently upgraded to eclipse callisto using the Web tools
> > project, and the html validator is complaining that the
> above is not
> > valid html (which, in fairness it isn't, as the span occurs
> within a
> > table but not within a td). Is there some html-compliant way to
> > structure this, or will I have to live with my tapestry templates
> > being non-html compliant?
> > TIA
> > Denis
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Andreas Andreou - andyhot@apache.org -
> http://andyhot.di.uoa.gr Tapestry / Tacos developer Open
> Source / J2EE Consulting
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Can you always have valid html with tapestry templates?
Posted by andyhot <an...@di.uoa.gr>.
Use:
<table>
<tr><td>blah blah</td></tr>
<tr jwcid="leftMenu@Foreach" elemente="tr"...>
stuff iterated over by the foreach
</tr>
</table>
Denis McCarthy wrote:
> Hi,
> I have tables that are populated by a @ForEach component in my html.
> The html template is like this
> <table>
> <tr><td>blah blah</td></tr>
>
> <span jwcid="leftMenu@Foreach ...>
> <tr> - stuff iterated over by the foreach </tr>
> </span
> </table>
>
> Now I recently upgraded to eclipse callisto using the Web tools
> project, and the html validator is complaining that the above is not
> valid html (which, in fairness it isn't, as the span occurs within a
> table but not within a td). Is there some html-compliant way to
> structure this, or will I have to live with my tapestry templates
> being non-html compliant?
> TIA
> Denis
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org