You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Stephane Decleire <sd...@cariboo-networks.com> on 2008/10/23 14:14:25 UTC
T5 : Jira TAP5-290 not entirely resolved
The correction linked to Jira TAP5-290 defines the namespaces as needed
but the tag generated is not the same in a full and in a partial render :
In my sample, the <div> tag printed during a full page rendering :
<div class="msg">
<div>...</div>
</div>
becomes an <ns0> tag :
<ns0:div class="msg" xmlns:ns0="http://www.w3.org/1999/xhtml" xmlns:ns1="">
<div>...</div>
</ns0:div>
and my class="msg" css information is no more applied.
Stephane
Re: T5 : Jira TAP5-290 not entirely resolved
Posted by Hugo Palma <hu...@gmail.com>.
Actually it is.
By declaring you style like:
div.msg {
}
Your saying that this style will be applied to every div tags with the class
msg. So if the tag isn't a div this style won't be applied.
Still, i think Howard's fix shouldn't change the rendered tag. This can
cause problems like yours and one will have to change the css declarations
because of this, it shouldn't have to be done.
Maybe the issue should be reopened ?
On Thu, Oct 23, 2008 at 6:11 PM, Stephane Decleire <
sdecleire@cariboo-networks.com> wrote:
> ok
> so my css is not hooked to the tag, it's hooked to the class.
>
> FYI
> p.msg, div.msg, td.msg {
> background-color : #ffffff;
> color : #707070;
> font-family : verdana,arial;
> font-size : 11px;
> border : 1px solid #cccccc;
> padding: 6px 6px 6px 6px;
> margin : 4px 0px 4px 0px;
>
> }
>
> Stephane
>
> Hugo Palma a écrit :
>
>> I mean defining in your css something like this:
>>
>> div {
>> ....
>> }
>>
>> That style is applied to all div tags and in that case after the partial
>> update it wouldn't be applied anymore.
>>
>> Stephane Decleire wrote:
>>
>>> What do you mean by "hooked to the tag" ?
>>>
>>> Stephane
>>>
>>> Hugo Palma a écrit :
>>>
>>>> Are you sure your css isn't hooked to the tag instead of the class ?
>>>>
>>>> I still haven't tried this fix, but it seems weird that the msg class
>>>> isn't
>>>> applied when it's declared in the class attribute of the tag.
>>>>
>>>> On Thu, Oct 23, 2008 at 1:14 PM, Stephane Decleire <
>>>> sdecleire@cariboo-networks.com> wrote:
>>>>
>>>>
>>>>
>>>>> The correction linked to Jira TAP5-290 defines the namespaces as needed
>>>>> but
>>>>> the tag generated is not the same in a full and in a partial render :
>>>>>
>>>>> In my sample, the <div> tag printed during a full page rendering :
>>>>>
>>>>> <div class="msg">
>>>>> <div>...</div>
>>>>> </div>
>>>>>
>>>>> becomes an <ns0> tag :
>>>>>
>>>>> <ns0:div class="msg" xmlns:ns0="http://www.w3.org/1999/xhtml"
>>>>> xmlns:ns1="">
>>>>> <div>...</div>
>>>>> </ns0:div>
>>>>>
>>>>> and my class="msg" css information is no more applied.
>>>>>
>>>>> Stephane
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
Re: T5 : Jira TAP5-290 not entirely resolved
Posted by Hugo Palma <hu...@gmail.com>.
Just a note, i took the liberty of reopening the issue with comments
regarding this situation.
On Thu, Oct 23, 2008 at 6:11 PM, Stephane Decleire <
sdecleire@cariboo-networks.com> wrote:
> ok
> so my css is not hooked to the tag, it's hooked to the class.
>
> FYI
> p.msg, div.msg, td.msg {
> background-color : #ffffff;
> color : #707070;
> font-family : verdana,arial;
> font-size : 11px;
> border : 1px solid #cccccc;
> padding: 6px 6px 6px 6px;
> margin : 4px 0px 4px 0px;
>
> }
>
> Stephane
>
> Hugo Palma a écrit :
>
>> I mean defining in your css something like this:
>>
>> div {
>> ....
>> }
>>
>> That style is applied to all div tags and in that case after the partial
>> update it wouldn't be applied anymore.
>>
>> Stephane Decleire wrote:
>>
>>> What do you mean by "hooked to the tag" ?
>>>
>>> Stephane
>>>
>>> Hugo Palma a écrit :
>>>
>>>> Are you sure your css isn't hooked to the tag instead of the class ?
>>>>
>>>> I still haven't tried this fix, but it seems weird that the msg class
>>>> isn't
>>>> applied when it's declared in the class attribute of the tag.
>>>>
>>>> On Thu, Oct 23, 2008 at 1:14 PM, Stephane Decleire <
>>>> sdecleire@cariboo-networks.com> wrote:
>>>>
>>>>
>>>>
>>>>> The correction linked to Jira TAP5-290 defines the namespaces as needed
>>>>> but
>>>>> the tag generated is not the same in a full and in a partial render :
>>>>>
>>>>> In my sample, the <div> tag printed during a full page rendering :
>>>>>
>>>>> <div class="msg">
>>>>> <div>...</div>
>>>>> </div>
>>>>>
>>>>> becomes an <ns0> tag :
>>>>>
>>>>> <ns0:div class="msg" xmlns:ns0="http://www.w3.org/1999/xhtml"
>>>>> xmlns:ns1="">
>>>>> <div>...</div>
>>>>> </ns0:div>
>>>>>
>>>>> and my class="msg" css information is no more applied.
>>>>>
>>>>> Stephane
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
Re: T5 : Jira TAP5-290 not entirely resolved
Posted by Stephane Decleire <sd...@cariboo-networks.com>.
ok
so my css is not hooked to the tag, it's hooked to the class.
FYI
p.msg, div.msg, td.msg {
background-color : #ffffff;
color : #707070;
font-family : verdana,arial;
font-size : 11px;
border : 1px solid #cccccc;
padding: 6px 6px 6px 6px;
margin : 4px 0px 4px 0px;
}
Stephane
Hugo Palma a écrit :
> I mean defining in your css something like this:
>
> div {
> ....
> }
>
> That style is applied to all div tags and in that case after the
> partial update it wouldn't be applied anymore.
>
> Stephane Decleire wrote:
>> What do you mean by "hooked to the tag" ?
>>
>> Stephane
>>
>> Hugo Palma a écrit :
>>> Are you sure your css isn't hooked to the tag instead of the class ?
>>>
>>> I still haven't tried this fix, but it seems weird that the msg
>>> class isn't
>>> applied when it's declared in the class attribute of the tag.
>>>
>>> On Thu, Oct 23, 2008 at 1:14 PM, Stephane Decleire <
>>> sdecleire@cariboo-networks.com> wrote:
>>>
>>>
>>>> The correction linked to Jira TAP5-290 defines the namespaces as
>>>> needed but
>>>> the tag generated is not the same in a full and in a partial render :
>>>>
>>>> In my sample, the <div> tag printed during a full page rendering :
>>>>
>>>> <div class="msg">
>>>> <div>...</div>
>>>> </div>
>>>>
>>>> becomes an <ns0> tag :
>>>>
>>>> <ns0:div class="msg" xmlns:ns0="http://www.w3.org/1999/xhtml"
>>>> xmlns:ns1="">
>>>> <div>...</div>
>>>> </ns0:div>
>>>>
>>>> and my class="msg" css information is no more applied.
>>>>
>>>> Stephane
>>>>
>>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
Re: T5 : Jira TAP5-290 not entirely resolved
Posted by Hugo Palma <hu...@gmail.com>.
I mean defining in your css something like this:
div {
....
}
That style is applied to all div tags and in that case after the partial
update it wouldn't be applied anymore.
Stephane Decleire wrote:
> What do you mean by "hooked to the tag" ?
>
> Stephane
>
> Hugo Palma a écrit :
>> Are you sure your css isn't hooked to the tag instead of the class ?
>>
>> I still haven't tried this fix, but it seems weird that the msg class
>> isn't
>> applied when it's declared in the class attribute of the tag.
>>
>> On Thu, Oct 23, 2008 at 1:14 PM, Stephane Decleire <
>> sdecleire@cariboo-networks.com> wrote:
>>
>>
>>> The correction linked to Jira TAP5-290 defines the namespaces as
>>> needed but
>>> the tag generated is not the same in a full and in a partial render :
>>>
>>> In my sample, the <div> tag printed during a full page rendering :
>>>
>>> <div class="msg">
>>> <div>...</div>
>>> </div>
>>>
>>> becomes an <ns0> tag :
>>>
>>> <ns0:div class="msg" xmlns:ns0="http://www.w3.org/1999/xhtml"
>>> xmlns:ns1="">
>>> <div>...</div>
>>> </ns0:div>
>>>
>>> and my class="msg" css information is no more applied.
>>>
>>> Stephane
>>>
>>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5 : Jira TAP5-290 not entirely resolved
Posted by Stephane Decleire <sd...@cariboo-networks.com>.
What do you mean by "hooked to the tag" ?
Stephane
Hugo Palma a écrit :
> Are you sure your css isn't hooked to the tag instead of the class ?
>
> I still haven't tried this fix, but it seems weird that the msg class isn't
> applied when it's declared in the class attribute of the tag.
>
> On Thu, Oct 23, 2008 at 1:14 PM, Stephane Decleire <
> sdecleire@cariboo-networks.com> wrote:
>
>
>> The correction linked to Jira TAP5-290 defines the namespaces as needed but
>> the tag generated is not the same in a full and in a partial render :
>>
>> In my sample, the <div> tag printed during a full page rendering :
>>
>> <div class="msg">
>> <div>...</div>
>> </div>
>>
>> becomes an <ns0> tag :
>>
>> <ns0:div class="msg" xmlns:ns0="http://www.w3.org/1999/xhtml"
>> xmlns:ns1="">
>> <div>...</div>
>> </ns0:div>
>>
>> and my class="msg" css information is no more applied.
>>
>> Stephane
>>
>>
>
>
Re: T5 : Jira TAP5-290 not entirely resolved
Posted by Hugo Palma <hu...@gmail.com>.
Are you sure your css isn't hooked to the tag instead of the class ?
I still haven't tried this fix, but it seems weird that the msg class isn't
applied when it's declared in the class attribute of the tag.
On Thu, Oct 23, 2008 at 1:14 PM, Stephane Decleire <
sdecleire@cariboo-networks.com> wrote:
> The correction linked to Jira TAP5-290 defines the namespaces as needed but
> the tag generated is not the same in a full and in a partial render :
>
> In my sample, the <div> tag printed during a full page rendering :
>
> <div class="msg">
> <div>...</div>
> </div>
>
> becomes an <ns0> tag :
>
> <ns0:div class="msg" xmlns:ns0="http://www.w3.org/1999/xhtml"
> xmlns:ns1="">
> <div>...</div>
> </ns0:div>
>
> and my class="msg" css information is no more applied.
>
> Stephane
>
Re: T5 : Jira TAP5-290 not entirely resolved
Posted by Hugo Palma <hu...@gmail.com>.
Cool, i hadn't noticed it.
Still the bigger problem remains with the tag name.
On Fri, Oct 24, 2008 at 5:46 PM, Howard Lewis Ship <hl...@gmail.com> wrote:
> I noticed the blank string namespaces, and fixed it last night.
>
> On Thu, Oct 23, 2008 at 5:14 AM, Stephane Decleire
> <sd...@cariboo-networks.com> wrote:
> > The correction linked to Jira TAP5-290 defines the namespaces as needed
> but
> > the tag generated is not the same in a full and in a partial render :
> >
> > In my sample, the <div> tag printed during a full page rendering :
> >
> > <div class="msg">
> > <div>...</div>
> > </div>
> >
> > becomes an <ns0> tag :
> >
> > <ns0:div class="msg" xmlns:ns0="http://www.w3.org/1999/xhtml"
> xmlns:ns1="">
> > <div>...</div>
> > </ns0:div>
> >
> > and my class="msg" css information is no more applied.
> >
> > Stephane
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: T5 : Jira TAP5-290 not entirely resolved
Posted by Howard Lewis Ship <hl...@gmail.com>.
I noticed the blank string namespaces, and fixed it last night.
On Thu, Oct 23, 2008 at 5:14 AM, Stephane Decleire
<sd...@cariboo-networks.com> wrote:
> The correction linked to Jira TAP5-290 defines the namespaces as needed but
> the tag generated is not the same in a full and in a partial render :
>
> In my sample, the <div> tag printed during a full page rendering :
>
> <div class="msg">
> <div>...</div>
> </div>
>
> becomes an <ns0> tag :
>
> <ns0:div class="msg" xmlns:ns0="http://www.w3.org/1999/xhtml" xmlns:ns1="">
> <div>...</div>
> </ns0:div>
>
> and my class="msg" css information is no more applied.
>
> Stephane
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org