• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Feature or Bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Feature or Bug?


  • Subject: Feature or Bug?
  • From: Q <email@hidden>
  • Date: Wed, 25 Feb 2009 16:19:05 +1000

I just ran into an interesting feature/bug of the WO parser.

The following generates an error when NoSuchString is not in the wod:

<!-- <webobject name = "NoSuchString" -->

this doesn't

<!-- > <webobject name = "NoSuchString" -->

(There can be anything you like at the beginning of the comment, the import bit is that there is a '>' before the first WO tag)

If you make NoSuchString not error, the content is removed from the output unless you call setIncludeCommentsInResponses(true), in which case the first example is replaced with dynamic content but the second version is not. In order for commented wotags to be replaced with dynamic content the first '>' within the comment must belong to a WO tag, in which case all wotags within the comment will be parsed and rendered.

Is this a feature or a bug?
If this is a feature, isn't that what WOHTMLCommentString is for?
Should it be fixed? If so, what is the expected behaviour?
Should WOLips validate components using this same logic, continue to validate all wotags commented or not, or not validate wotags in comments at all?

-- 

Seeya...Q


Quinton Dolan - email@hidden

Gold Coast, QLD, Australia (GMT+10)

Ph: +61 419 729 806




 _______________________________________________
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

  • Follow-Ups:
    • Re: Feature or Bug?
      • From: Lachlan Deck <email@hidden>
    • Re: Feature or Bug?
      • From: Q <email@hidden>
  • Prev by Date: Re: Hibernate
  • Next by Date: Re: Feature or Bug?
  • Previous by thread: Re: Eclipse not finding Wonder frameworks
  • Next by thread: Re: Feature or Bug?
  • Index(es):
    • Date
    • Thread