Re: HTML comments and WebObjects
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