• 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
Re: HTML comments and WebObjects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTML comments and WebObjects


  • Subject: Re: HTML comments and WebObjects
  • From: Guido Neitzer <email@hidden>
  • Date: Fri, 22 Jun 2007 10:48:20 -0600

On 22.06.2007, at 10:18, Edgar Ra. Klein wrote:

I would like to comment a line of code (using <!-- CODE -->) containing a webobject tag. WO seems not to ignore this line and therefore it becomes a problem since the component contains some comments by itself, therefore the program doesn't work properly. Is there a way how to comment lines so that WO really ignores the commented lines?

Do a call to:

setIncludeCommentsInResponses(true) in your Application initialization and see whether that helps.
There was a problem in the past with that, that WO didn't create a correct response in that case. I solved that by getting the HTML content string from the component I want to render in the comment and add a WOString that had a value binding to a method like that:




public WOComponent htmlStringForComment () {

  return "<!-- " + whatEverGoesInHere + " -->";

}

cug


_______________________________________________ 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
References: 
 >HTML comments and WebObjects (From: "Edgar Ra. Klein" <email@hidden>)

  • Prev by Date: Re: creating tables on the fly with webobjects
  • Next by Date: Re: creating tables on the fly with webobjects
  • Previous by thread: HTML comments and WebObjects
  • Next by thread: Anyone want 4.5.1?
  • Index(es):
    • Date
    • Thread