Re: Problem with webobjects - tag occurred before another tag
Re: Problem with webobjects - tag occurred before another tag
- Subject: Re: Problem with webobjects - tag occurred before another tag
- From: Gavin Eadie <email@hidden>
- Date: Mon, 21 Jul 2008 17:43:03 -0400
On Jul 21, 2008, at 5:16 PM, Guido Neitzer wrote:
On 21.07.2008, at 15:04, Lachlan Deck wrote:
I have just switched my environment from 10.4 tiger with web
objects 5.2.4 to 10.5 leopard (mac intel) with webobjects 5.4.2
and I'm getting a lot of tag errors such as </TABLE> occurred
before </TR>, </TD> occurred before </FONT>, </TR> occurred before
</WOB-Tokenizer> and so on...its is about 115 messages and so hard
to fix because we use nested tags. Does anyone know how to fix
these errors easily? Any help would be greatly appreciated.
Try hitting cmd+shift+f in Eclipse component editor
Uppercase tags (I think) are a thing of the past. 5.4.x, by
default, requires xml compliant tags AFAIK
No, only the WO 5.4 inline tag parser does. What he probably sees
are errors from the HTML
validation. These should get fixed nevertheless. Things like this:
<wo:if condition="$foo"><tr></wo:if>
...
<wo:if condition="$foo"></tr></wo:if>
(Inline tags for better understanding) might work with the old-style
parser but will never work with inline bindings, either WOOgnl or WO
itself. It's just just bad style to write things like that. I fear,
Mersida meant that by "nested tags". Or, even worse, stuff like that:
<div class = "<webobject name=ClassString />">
which are even uglier and should be forbidden by international
law ... And it's really not that hard to fix. Even for 115 error
messages - some of them might be fixed by just fixing ONE tag ...
cug
... my experience was, with well over a thousand such complaints in an
old application brought froward into the modern era, it only took a
couple of hours to bring the count to zero. The first 80% were things
like changing "<br>" to "<br/>" (for which I just fed the entire
*.html collection to an editor), the next 15% required a little
examination (often revealing that the original coding was actually
wrong!), and the last 5% needing a little new work (mostly usages
that, cough, "ought to forbidden by international law") ...
... also, as noted, formatting in Eclipse is your friend! It lower-
cases where required and converts <webobjects name=wodstuff> into
<webobjects name="wodstuff">; those quotes are also a requirement ...
Gav
_______________________________________________
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