You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Galam <ga...@gmail.com> on 2006/05/29 04:32:56 UTC

Does Tapestry work with XHTML?

Hi all,

Does Tapestry work with XHTML?

I renamed "Home.html" to "Home.xhtml" in my test application, but I got an
exception saying that

"Could not find template for page Home in locale en_US."


-----------

org.apache.hivemind.ApplicationRuntimeException Could not find template for
page Home in locale en_US. component: $Home_17@b65a68[Home]  location:
context:/WEB-INF/Home.page,
line 4, column 55
  1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE page-specification
PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 3 "
http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd"> 4 <page-specification
class="com.ttdev.HelloWorld.Home"> 5 <component id="subject" type="Insert">
6 <binding name="value" value="greetingSubject"/> 7 </component> 8
</page-specification>



Thanks!

Re: Does Tapestry work with XHTML?

Posted by Jesse Kuhnert <jk...@gmail.com>.
Yes, you may be wasting your time in general...

http://alex.dojotoolkit.org/?p=498

On 5/29/06, Todd Orr <to...@gmail.com> wrote:
>
> Yet, not all of Tapestry's components produce compliant xhtml, so you
> may be wasting your time going through these measures.
>
> On 5/29/06, Paul Cantrell <ca...@pobox.com> wrote:
> > Right. And just to be clear: the ".xhtml" is not necessary for XHTML,
> > not just for Tapestry, but in *any* content -- and I don't think the
> > "text/xml" mime type is necessary either. It's the DOCTYPE that has
> > the last word.
> >
> > Use the W3C validator when in doubt! Use it when not in doubt, too.
> >
> > Cheers,
> >
> > Paul
> >
> >
> > On May 29, 2006, at 2:11 AM, Kristian Marinkovic wrote:
> >
> > > hi,
> > >
> > > to use XHTML it is NOT necessary to rename the .html file
> > > to .xhtml. all
> > > you
> > > have to do is to add the dtd and the <?xml....>. the only reason i
> > > could
> > > imagine you want to rename it to .xhtml is because you could configure
> > > your webserver to set the correct mime-type (text/xml). but if you
> > > do so
> > > IE6 (and before) won't be able to display your document correctly.
> > >
> > > btw. if you put <?xml version="1.0" encoding="UTF-8"?> into
> > > your document IE6 will run in quirksmode and not in standard compliant
> > > mode! this may cause some misbehaviours when using css :)
> > > (boxmodel...)
> > >  although it is not absolutly correct you may omit
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > completly (or you generate it depending on the current
> > > browser :)).
> > >
> > >
> > > regards,
> > > kris
> > >
> > >
> > >
> > >
> > >
> > >              Galam
> > >              <galam.ny@gmail.c
> > >
> > > om>                                                        An
> > >                                         "Tapestry users"
> > >              29.05.2006 04:32           <us...@tapestry.apache.org>
> > >                                                                      K
> > > opie
> > >
> > >               Bitte
> > > antworten                                        Thema
> > >                     an                  Does Tapestry work with XHTML?
> > >              "Tapestry users"
> > >              <users@tapestry.a
> > >                 pache.org>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi all,
> > >
> > > Does Tapestry work with XHTML?
> > >
> > > I renamed "Home.html" to "Home.xhtml" in my test application, but I
> > > got an
> > > exception saying that
> > >
> > > "Could not find template for page Home in locale en_US."
> > >
> > >
> > > -----------
> > >
> > > org.apache.hivemind.ApplicationRuntimeException Could not find
> > > template for
> > > page Home in locale en_US. component: $Home_17@b65a68[Home]  location:
> > > context:/WEB-INF/Home.page,
> > > line 4, column 55
> > >   1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE page-
> > > specification
> > > PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//
> > > EN" 3 "
> > > http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd"> 4
> > > <page-specification
> > > class="com.ttdev.HelloWorld.Home"> 5 <component id="subject"
> > > type="Insert">
> > > 6 <binding name="value" value="greetingSubject"/> 7 </component> 8
> > > </page-specification>
> > >
> > >
> > >
> > > Thanks!
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> > _________________________________________________________________
> > Piano music podcast: http://inthehands.com
> > Other interesting stuff: http://innig.net
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>


-- 
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.

Re: Does Tapestry work with XHTML?

Posted by Galam <ga...@gmail.com>.
Thanks everyone for the tips and advices. I'll stick with HTML then.



On 5/29/06, Todd Orr <to...@gmail.com> wrote:
>
> Yet, not all of Tapestry's components produce compliant xhtml, so you
> may be wasting your time going through these measures.
>
> On 5/29/06, Paul Cantrell <ca...@pobox.com> wrote:
> > Right. And just to be clear: the ".xhtml" is not necessary for XHTML,
> > not just for Tapestry, but in *any* content -- and I don't think the
> > "text/xml" mime type is necessary either. It's the DOCTYPE that has
> > the last word.
> >
> > Use the W3C validator when in doubt! Use it when not in doubt, too.
> >
> > Cheers,
> >
> > Paul
> >
> >
> > On May 29, 2006, at 2:11 AM, Kristian Marinkovic wrote:
> >
> > > hi,
> > >
> > > to use XHTML it is NOT necessary to rename the .html file
> > > to .xhtml. all
> > > you
> > > have to do is to add the dtd and the <?xml....>. the only reason i
> > > could
> > > imagine you want to rename it to .xhtml is because you could configure
> > > your webserver to set the correct mime-type (text/xml). but if you
> > > do so
> > > IE6 (and before) won't be able to display your document correctly.
> > >
> > > btw. if you put <?xml version="1.0" encoding="UTF-8"?> into
> > > your document IE6 will run in quirksmode and not in standard compliant
> > > mode! this may cause some misbehaviours when using css :)
> > > (boxmodel...)
> > >  although it is not absolutly correct you may omit
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > completly (or you generate it depending on the current
> > > browser :)).
> > >
> > >
> > > regards,
> > > kris
> > >
> > >
> > >
> > >
> > >
> > >              Galam
> > >              <galam.ny@gmail.c
> > >
> > > om>                                                        An
> > >                                         "Tapestry users"
> > >              29.05.2006 04:32           <us...@tapestry.apache.org>
> > >                                                                      K
> > > opie
> > >
> > >               Bitte
> > > antworten                                        Thema
> > >                     an                  Does Tapestry work with XHTML?
> > >              "Tapestry users"
> > >              <users@tapestry.a
> > >                 pache.org>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi all,
> > >
> > > Does Tapestry work with XHTML?
> > >
> > > I renamed "Home.html" to "Home.xhtml" in my test application, but I
> > > got an
> > > exception saying that
> > >
> > > "Could not find template for page Home in locale en_US."
> > >
> > >
> > > -----------
> > >
> > > org.apache.hivemind.ApplicationRuntimeException Could not find
> > > template for
> > > page Home in locale en_US. component: $Home_17@b65a68[Home]  location:
> > > context:/WEB-INF/Home.page,
> > > line 4, column 55
> > >   1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE page-
> > > specification
> > > PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//
> > > EN" 3 "
> > > http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd"> 4
> > > <page-specification
> > > class="com.ttdev.HelloWorld.Home"> 5 <component id="subject"
> > > type="Insert">
> > > 6 <binding name="value" value="greetingSubject"/> 7 </component> 8
> > > </page-specification>
> > >
> > >
> > >
> > > Thanks!
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> > _________________________________________________________________
> > Piano music podcast: http://inthehands.com
> > Other interesting stuff: http://innig.net
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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: Does Tapestry work with XHTML?

Posted by Todd Orr <to...@gmail.com>.
Yet, not all of Tapestry's components produce compliant xhtml, so you
may be wasting your time going through these measures.

On 5/29/06, Paul Cantrell <ca...@pobox.com> wrote:
> Right. And just to be clear: the ".xhtml" is not necessary for XHTML,
> not just for Tapestry, but in *any* content -- and I don't think the
> "text/xml" mime type is necessary either. It's the DOCTYPE that has
> the last word.
>
> Use the W3C validator when in doubt! Use it when not in doubt, too.
>
> Cheers,
>
> Paul
>
>
> On May 29, 2006, at 2:11 AM, Kristian Marinkovic wrote:
>
> > hi,
> >
> > to use XHTML it is NOT necessary to rename the .html file
> > to .xhtml. all
> > you
> > have to do is to add the dtd and the <?xml....>. the only reason i
> > could
> > imagine you want to rename it to .xhtml is because you could configure
> > your webserver to set the correct mime-type (text/xml). but if you
> > do so
> > IE6 (and before) won't be able to display your document correctly.
> >
> > btw. if you put <?xml version="1.0" encoding="UTF-8"?> into
> > your document IE6 will run in quirksmode and not in standard compliant
> > mode! this may cause some misbehaviours when using css :)
> > (boxmodel...)
> >  although it is not absolutly correct you may omit
> > <?xml version="1.0" encoding="UTF-8"?>
> > completly (or you generate it depending on the current
> > browser :)).
> >
> >
> > regards,
> > kris
> >
> >
> >
> >
> >
> >              Galam
> >              <galam.ny@gmail.c
> >
> > om>                                                        An
> >                                         "Tapestry users"
> >              29.05.2006 04:32           <us...@tapestry.apache.org>
> >                                                                      K
> > opie
> >
> >               Bitte
> > antworten                                        Thema
> >                     an                  Does Tapestry work with XHTML?
> >              "Tapestry users"
> >              <users@tapestry.a
> >                 pache.org>
> >
> >
> >
> >
> >
> >
> >
> > Hi all,
> >
> > Does Tapestry work with XHTML?
> >
> > I renamed "Home.html" to "Home.xhtml" in my test application, but I
> > got an
> > exception saying that
> >
> > "Could not find template for page Home in locale en_US."
> >
> >
> > -----------
> >
> > org.apache.hivemind.ApplicationRuntimeException Could not find
> > template for
> > page Home in locale en_US. component: $Home_17@b65a68[Home]  location:
> > context:/WEB-INF/Home.page,
> > line 4, column 55
> >   1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE page-
> > specification
> > PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//
> > EN" 3 "
> > http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd"> 4
> > <page-specification
> > class="com.ttdev.HelloWorld.Home"> 5 <component id="subject"
> > type="Insert">
> > 6 <binding name="value" value="greetingSubject"/> 7 </component> 8
> > </page-specification>
> >
> >
> >
> > Thanks!
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
> _________________________________________________________________
> Piano music podcast: http://inthehands.com
> Other interesting stuff: http://innig.net
>
>
>
> ---------------------------------------------------------------------
> 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: Does Tapestry work with XHTML?

Posted by Paul Cantrell <ca...@pobox.com>.
Right. And just to be clear: the ".xhtml" is not necessary for XHTML,  
not just for Tapestry, but in *any* content -- and I don't think the  
"text/xml" mime type is necessary either. It's the DOCTYPE that has  
the last word.

Use the W3C validator when in doubt! Use it when not in doubt, too.

Cheers,

Paul


On May 29, 2006, at 2:11 AM, Kristian Marinkovic wrote:

> hi,
>
> to use XHTML it is NOT necessary to rename the .html file  
> to .xhtml. all
> you
> have to do is to add the dtd and the <?xml....>. the only reason i  
> could
> imagine you want to rename it to .xhtml is because you could configure
> your webserver to set the correct mime-type (text/xml). but if you  
> do so
> IE6 (and before) won't be able to display your document correctly.
>
> btw. if you put <?xml version="1.0" encoding="UTF-8"?> into
> your document IE6 will run in quirksmode and not in standard compliant
> mode! this may cause some misbehaviours when using css :)  
> (boxmodel...)
>  although it is not absolutly correct you may omit
> <?xml version="1.0" encoding="UTF-8"?>
> completly (or you generate it depending on the current
> browser :)).
>
>
> regards,
> kris
>
>
>
>
>
>              Galam
>              <galam.ny@gmail.c
>               
> om>                                                        An
>                                         "Tapestry users"
>              29.05.2006 04:32           <us...@tapestry.apache.org>
>                                                                      K 
> opie
>
>               Bitte  
> antworten                                        Thema
>                     an                  Does Tapestry work with XHTML?
>              "Tapestry users"
>              <users@tapestry.a
>                 pache.org>
>
>
>
>
>
>
>
> Hi all,
>
> Does Tapestry work with XHTML?
>
> I renamed "Home.html" to "Home.xhtml" in my test application, but I  
> got an
> exception saying that
>
> "Could not find template for page Home in locale en_US."
>
>
> -----------
>
> org.apache.hivemind.ApplicationRuntimeException Could not find  
> template for
> page Home in locale en_US. component: $Home_17@b65a68[Home]  location:
> context:/WEB-INF/Home.page,
> line 4, column 55
>   1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE page- 
> specification
> PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0// 
> EN" 3 "
> http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd"> 4
> <page-specification
> class="com.ttdev.HelloWorld.Home"> 5 <component id="subject"  
> type="Insert">
> 6 <binding name="value" value="greetingSubject"/> 7 </component> 8
> </page-specification>
>
>
>
> Thanks!
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

_________________________________________________________________
Piano music podcast: http://inthehands.com
Other interesting stuff: http://innig.net



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


RE: Does Tapestry work with XHTML?

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

to use XHTML it is NOT necessary to rename the .html file to .xhtml. all
you
have to do is to add the dtd and the <?xml....>. the only reason i could
imagine you want to rename it to .xhtml is because you could configure
your webserver to set the correct mime-type (text/xml). but if you do so
IE6 (and before) won't be able to display your document correctly.

btw. if you put <?xml version="1.0" encoding="UTF-8"?> into
your document IE6 will run in quirksmode and not in standard compliant
mode! this may cause some misbehaviours when using css :) (boxmodel...)
 although it is not absolutly correct you may omit
<?xml version="1.0" encoding="UTF-8"?>
completly (or you generate it depending on the current
browser :)).


regards,
kris




                                                                           
             Galam                                                         
             <galam.ny@gmail.c                                             
             om>                                                        An 
                                        "Tapestry users"                   
             29.05.2006 04:32           <us...@tapestry.apache.org>        
                                                                     Kopie 
                                                                           
              Bitte antworten                                        Thema 
                    an                  Does Tapestry work with XHTML?     
             "Tapestry users"                                              
             <users@tapestry.a                                             
                pache.org>                                                 
                                                                           
                                                                           
                                                                           




Hi all,

Does Tapestry work with XHTML?

I renamed "Home.html" to "Home.xhtml" in my test application, but I got an
exception saying that

"Could not find template for page Home in locale en_US."


-----------

org.apache.hivemind.ApplicationRuntimeException Could not find template for
page Home in locale en_US. component: $Home_17@b65a68[Home]  location:
context:/WEB-INF/Home.page,
line 4, column 55
  1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE page-specification
PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 3 "
http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd"> 4
<page-specification
class="com.ttdev.HelloWorld.Home"> 5 <component id="subject" type="Insert">
6 <binding name="value" value="greetingSubject"/> 7 </component> 8
</page-specification>



Thanks!



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