Ah, I can see what's going on there, a t: attribute in a non-component
(not a t: element, or no t:type attribute) is not handled correctly.
It should be an error.

On Feb 1, 2008 12:45 PM, Shing Hing Man <[EMAIL PROTECTED]> wrote:
> Thanks for the reply!
> The  exception is not caused  by
> the <html> tag spanning over to another line.
>
> It was the missed t: in front of type="PageLink".
>
> <a href="#" type="PageLink"
> t:page="test/select/inlineSource"
> target="_blank">here</a>.
>
> Tap 5.0.7 is more tolerant on the missing t: .
>
> In fact,  I have pasted the wrong
> .tml in my original email.
>
> Shing
>
> --- Jonathan Barker <[EMAIL PROTECTED]>
> wrote:
>
>
> >
> > No guarantees that this is the same thing, but I had
> > a strange issue once
> > when my html tag was split across two lines.
> >
> > I couldn't reproduce it now, so this may not be
> > relevant, but try making the
> > whole tag with namespace declaration on the same
> > line.
> >
> > Jonathan
> >
> >
> > > -----Original Message-----
> > > From: Shing Hing Man [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, January 31, 2008 4:11 PM
> > > To: tapestry Tapestry
> > > Subject: Tap 5.0.9 : Namespace prefix for URI
> > http://tapestry.apache.. not
> > > defined
> > >
> > > I have just upgraded to Tap 5.0.9 from 5.0.7.
> > > There is a RuntimeException when rendering  the
> > .tml
> > > page given below. Strangely, I do not have the
> > > exception  for other similar .tml pages.
> > >
> > > It would be appreciated if someone could show me a
> > > fix.
> > >
> > > Shing
> > >
> > >
> > >
> > >
> > > java.lang.RuntimeException
> > > Namespace prefix for URI
> > >
> >
> 'http://tapestry.apache.org/schema/tapestry_5_0_0.xsd'
> > > is not defined.
> > >
> > >
> > >
> > > Stack trace
> > >
> > >         *
> > >
> >
> org.apache.tapestry.dom.Element.toNamespacePrefix(Element.java:501)
> > >         *
> > >
> >
> org.apache.tapestry.dom.Element.toNamespacePrefix(Element.java:503)
> > >         *
> > >
> >
> org.apache.tapestry.dom.Element.toNamespacePrefix(Element.java:503)
> > >         *
> > >
> >
> org.apache.tapestry.dom.Element.toPrefixedName(Element.java:364)
> > >         *
> > >
> >
> org.apache.tapestry.dom.Element.access$000(Element.java:35)
> > >         *
> > >
> >
> org.apache.tapestry.dom.Element$Attribute.render(Element.java:58)
> > >         *
> > >
> >
> org.apache.tapestry.dom.Element.toMarkup(Element.java:311)
> > >         *
> > >
> >
> org.apache.tapestry.dom.Node.writeChildMarkup(Node.java:81)
> > >         *
> > >
> >
> org.apache.tapestry.dom.Element.toMarkup(Element.java:350)
> > >         *
> > >
> >
> org.apache.tapestry.dom.Node.writeChildMarkup(Node.java:81)
> > >         *
> > >
> >
> org.apache.tapestry.dom.Element.toMarkup(Element.java:350)
> > >         *
> > >
> >
> org.apache.tapestry.dom.Document.toMarkup(Document.java:132)
> > >         *
> > >
> >
> org.apache.tapestry.internal.services.MarkupWriterImpl.toMarkup(MarkupWrit
> > > erImpl.java:48)
> > >         *
> > >
> >
> org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageR
> > > esponse(PageResponseRendererImpl.java:61)
> > >         *
> > >
> >
> org.apache.tapestry.internal.services.PageRenderRequestHandlerImpl.handle(
> > > PageRenderRequestHandlerImpl.java:57)
> > >         *
> > >
> >
> org.apache.tapestry.internal.services.PageRenderDispatcher.dispatch(PageRe
> > > nderDispatcher.java:66)
> > >         *
> > >
> >
> org.apache.tapestry.services.TapestryModule$13.service(TapestryModule.java
> > > :924)
> > >         *
> > >
> >
> com.man.testTapestry5.services.AppModule$1.service(AppModule.java:104)
> > >
> > >
> > >
> > > <html
> > >
> >
> xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> > >     <head>
> > >             <title>Checkbox group</title>
> > >     </head>
> > >     <body>
> > >             <h1>CheckboxGroup demo</h1>
> > >
> > >             A simple example to illustrate how to
> > CheckboxGroup,
> > > ControlCheckbox and ControlledCheckbox.
> > >             <br />
> > >             <br />
> > >             <form t:type="form" t:id="myForm">
> > >
> > >                     <br />
> > >
> > >                     <t:man.CheckboxGroup>
> > >
> > >                             <table>
> > >                                     <tr>
> > >                                             <th>
> > >
> > <t:man.ControlCheckbox />
> > >                                                     Select all colours
> > >                                             </th>
> > >                                     </tr>
> > >                                     <tr t:type="loop" source="colors"
> > > value="color" >
> > >                                             <td>
> > >
> > <t:man.controlledCheckbox
> > > value="selected"/>
> > >                                                      ${color}
> > >                                             </td>
> > >                                     </tr>
> > >                             </table>
> > >                     </t:man.CheckboxGroup><!-- End of CheckBoxGroup
> > -->
> > >
> > >
> > >
> > >                     <input type="submit" value="Submit" />
> > >             </form>
> > >
> > >             <br />
> > >             <br />
> > >             <t:if test="selectedColorsAsStr">
> > >                     Yuou have selected : ${selectedColorsAsStr}
> > >             </t:if>
> > >     </body>
> > > </html>
> > >
> > >
> > > Home page : http://www.lombok.demon.co.uk/
> > >
> > >
> > >
> > >
> >
> ___________________________________________________________
> > > Support the World Aids Awareness campaign this
> > month with Yahoo! For Good
> > > http://uk.promotions.yahoo.com/forgood/
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
>
>
> Home page : http://www.lombok.demon.co.uk/
>
>
>
>       ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
> now.
> http://uk.answers.yahoo.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to