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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to