You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Daniel Alonso Sanchez <da...@oc.mde.es> on 2008/09/25 10:56:44 UTC

Tags not being closed by t5. W3C Accesibility Fails :(

Hi everybody, I'm in a hurry because we have to develop an application that
respects w3c accesibility. The thing is that our pages have this header:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

And in a specific tml file, we have this tag:

<input t:type="TextField" t:id="nif" t:value="afiliados.nif"/>		

After requesting the page, the html code that we get looks like this:

<meta content="no-cache" http-equiv="cache-control">
<meta content="no-cache" http-equiv="pragma">

...........
...........
<input id="numAfiliado"
	name="numAfiliado" type="text">

These "not-closed tags" are making fail the w3c accessibilty test, so... is
there anyway to close them? Any tapestry core class may be rewrite by my
team to solve this? In that case... wich of them?

Thanks in advance for the support.
-- 
View this message in context: http://www.nabble.com/Tags-not-being-closed-by-t5.-W3C-Accesibility-Fails-%3A%28-tp19665554p19665554.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tags not being closed by t5. W3C Accesibility Fails :(

Posted by Daniel Alonso Sanchez <da...@oc.mde.es>.


Filip S. Adamsen-2 wrote:
> 
> Hi,
> 
> You don't need to have the <?xml version="1.0" encoding="UTF-8"?> bit at 
> the beginning of your pages - UTF-8 is the default encoding for XML 
> files, so it should - and does - work without it.
> 
> Besides, (older versions of) Internet Explorer tends to trip on it.
> 
> -Filip
> 
> On 2008-09-25 12:44, Daniel Alonso Sanchez wrote:
>> Wow, it works! Thanks so much, i didn't know anything about that but,
>> there
>> is another problem. 
>> 
>> That solution is great for closing the tags, but it introduce this piece
>> of
>> code at the begining of the page
>> 
>> <?xml version="1.0" encoding="UTF-8"?>
>> 
>> 
>> this <?xml version="1.0" encoding="UTF-8"?> is causing a wrong placing of
>> our divs. On the other hand, placing <?xml version="1.0"
>> encoding="UTF-8"?>
>> into the <head> section makes everything ok. 
>> 
>> Is there any solution for this misplacing? Something like a meta charset
>> tag? Thank you so much again
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 


Yeah, that's right, but after following the tutorial given by Kristian, i
get that piece of code in every page. I'm not inserting anything consciusly
and i want to avoid that line. Thank you so much for your response, but I
think it's not the solution... :-(


-- 
View this message in context: http://www.nabble.com/Tags-not-being-closed-by-t5.-W3C-Accesibility-Fails-%3A%28-tp19665554p19667812.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tags not being closed by t5. W3C Accesibility Fails :(

Posted by "Filip S. Adamsen" <fs...@fsadev.com>.
Hi,

You don't need to have the <?xml version="1.0" encoding="UTF-8"?> bit at 
the beginning of your pages - UTF-8 is the default encoding for XML 
files, so it should - and does - work without it.

Besides, (older versions of) Internet Explorer tends to trip on it.

-Filip

On 2008-09-25 12:44, Daniel Alonso Sanchez wrote:
> Wow, it works! Thanks so much, i didn't know anything about that but, there
> is another problem. 
> 
> That solution is great for closing the tags, but it introduce this piece of
> code at the begining of the page
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> 
> this <?xml version="1.0" encoding="UTF-8"?> is causing a wrong placing of
> our divs. On the other hand, placing <?xml version="1.0" encoding="UTF-8"?>
> into the <head> section makes everything ok. 
> 
> Is there any solution for this misplacing? Something like a meta charset
> tag? Thank you so much again

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tags not being closed by t5. W3C Accesibility Fails :(

Posted by Daniel Alonso Sanchez <da...@oc.mde.es>.
Wow, it works! Thanks so much, i didn't know anything about that but, there
is another problem. 

That solution is great for closing the tags, but it introduce this piece of
code at the begining of the page

<?xml version="1.0" encoding="UTF-8"?>


this <?xml version="1.0" encoding="UTF-8"?> is causing a wrong placing of
our divs. On the other hand, placing <?xml version="1.0" encoding="UTF-8"?>
into the <head> section makes everything ok. 

Is there any solution for this misplacing? Something like a meta charset
tag? Thank you so much again
-- 
View this message in context: http://www.nabble.com/Tags-not-being-closed-by-t5.-W3C-Accesibility-Fails-%3A%28-tp19665554p19667115.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tags not being closed by t5. W3C Accesibility Fails :(

Posted by Kristian Marinkovic <kr...@porsche.co.at>.
hi, 

please read http://wiki.apache.org/tapestry/Tapestry5HowToXhtml

g,
kris




Daniel Alonso Sanchez <da...@oc.mde.es> 
25.09.2008 10:56
Bitte antworten an
"Tapestry users" <us...@tapestry.apache.org>


An
users@tapestry.apache.org
Kopie

Thema
Tags not being closed by t5. W3C Accesibility Fails :(








Hi everybody, I'm in a hurry because we have to develop an application 
that
respects w3c accesibility. The thing is that our pages have this header:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

And in a specific tml file, we have this tag:

<input t:type="TextField" t:id="nif" t:value="afiliados.nif"/>  

After requesting the page, the html code that we get looks like this:

<meta content="no-cache" http-equiv="cache-control">
<meta content="no-cache" http-equiv="pragma">

...........
...........
<input id="numAfiliado"
                 name="numAfiliado" type="text">

These "not-closed tags" are making fail the w3c accessibilty test, so... 
is
there anyway to close them? Any tapestry core class may be rewrite by my
team to solve this? In that case... wich of them?

Thanks in advance for the support.
-- 
View this message in context: 
http://www.nabble.com/Tags-not-being-closed-by-t5.-W3C-Accesibility-Fails-%3A%28-tp19665554p19665554.html

Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org