• 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: Custom Component Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom Component Question


  • Subject: Re: Custom Component Question
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 2 May 2007 11:57:05 -0700


On May 2, 2007, at 11:24 AM, James Cicenia wrote:

Chuck

I guess I still don't quite understand the whole RR thing totally.

Where would I put string.replace() ?

Ah, Grasshopper. :-P

I've not had to do this, but this is what I would try:

public void appendToResponse(WOResponse aResponse, WOContext aContext) {
    aResponse.appendContentString("opening tag stuff here");

    WOResponse content = new WOResponse();
    super. appendToResponse(content, aContext);
    aResponse.appendContentString(content.contentString().trim());

    aResponse.appendContentString("closing tag stuff here");
}


Chuck



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









--

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


References: 
 >Custom Component Question (From: James Cicenia <email@hidden>)
 >Re: Custom Component Question (From: Chuck Hill <email@hidden>)
 >Re: Custom Component Question (From: James Cicenia <email@hidden>)
 >Re: Custom Component Question (From: Chuck Hill <email@hidden>)
 >Re: Custom Component Question (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: Custom Component Question
  • Next by Date: Re: First Deployment Help
  • Previous by thread: Re: Custom Component Question
  • Next by thread: Odd MacOSClassPath.txt
  • Index(es):
    • Date
    • Thread