Re: did <br> change....?
Re: did <br> change....?
- Subject: Re: did <br> change....?
- From: Guido Neitzer <email@hidden>
- Date: Sat, 2 Feb 2008 22:37:40 -0700
On 02.02.2008, at 22:12, Theodore Petrosky wrote:
ok I was playing around tonight and doing some
tests... So I typed in
<p>Hello World<br>
Hello World<br>
Hello World<br>Hello World<br>
Hello World</p>
I got an error....
Error:
com.webobjects.appserver.parser.woml.WOMLTemplateParserException
exception
Reason:
com.webobjects.appserver.parser.woml.WOMLTemplateParserException:
Main: 14:14: The element type "br" must be terminated
by the matching end-tag "</br>".
Did I miss something.... Or did I miss setting
something?
You did miss something. The new template parser requires valid xml
which means you have to write <br /> instead of just plain <br>.
And, pretty dumb - the new template parser is used as soon as you have
an empty wod or no wod at all. So, to solve your issue: write correct
xhtml and declare it as such (if you don't you don't create valid html
on your page) or place an old style (wod definition) dummy WOString
element on your component that does nothing at all if your component
does not have any entry in the wod but you want to old style parser.
Btw: note, that the new parser will also eat your doctype definition
and xml header. So, create your page wrapper component (look & feel or
how you might name it) with standard wod style.
And be aware that some things just don't work with the new parser. At
least they don't work as explained in the documentation.
cug
--
Real-World WebObjects class at the Big Nerd Ranch
March 2008, Frankfurt, Germany
http://www.bignerdranch.com/classes/webobjects.shtml
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden