Re: Custom Component Question
Re: Custom Component Question
- Subject: Re: Custom Component Question
- From: James Cicenia <email@hidden>
- Date: Wed, 2 May 2007 13:24:30 -0500
Chuck
I guess I still don't quite understand the whole RR thing totally.
Where would I put string.replace() ?
I certainly wouldn't want to replace anything within the tags... I just
don't want any white space, line feeds, etc that are between my
webobjects tags.
i.e.
I want this syntax:
<webobject name="node">some html content </webobject>
and this syntax:
<webobject name="node">
some html content
</webobject>
generate:
var v215426= new YAHOO.widget.HTMLNode('<a href="http://
www.yyy.com">my test</a>', root, false, true);
and never:
var v215426= new YAHOO.widget.HTMLNode('
<a href="http://www.yyy.com">my test</a>
', root, false, true);
Ideas?
Thanks
James
On May 1, 2007, at 10:36 PM, Chuck Hill wrote:
On May 1, 2007, at 8:26 PM, James Cicenia wrote:
Thanks...
Simpler than I thought.
:-) With WO, the far too simple solution is usually the right one.
Chuck
On May 1, 2007, at 10:12 PM, Chuck Hill wrote:
A guess based on rather few details :-)
public void appendToResponse(WOResponse aResponse, WOContext
aContext) {
aResponse.appendContentString("opening tag stuff here");
super. appendToResponse(aResponse, aContext);
aResponse.appendContentString("closing tag stuff here");
}
This answers, I think, your need rather than your question.
Although it does indirectly answer your question.
Chuck
On May 1, 2007, at 7:28 PM, James Cicenia wrote:
Hello -
I am trying to write my own variant of say JSWindow.
How to access what is between the <webobject name="mytag"> tags
</webobject> ?
I want to create custom opening and closing tags to wrap "tags"
above.
Thanks
James Cicenia
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve
specific problems.
http://www.global-village.net/products/practical_webobjects
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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