• 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: Converting to self-closing webobject tags
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting to self-closing webobject tags


  • Subject: Re: Converting to self-closing webobject tags
  • From: Lachlan Deck <email@hidden>
  • Date: Wed, 16 Apr 2008 10:09:08 +1000

AFAIK, you still need old-style tags when your wo tags are within quotes.
e.g., <sometag somebinding="<webobject name=Blah></webobject>"...>


On 15/04/2008, at 6:17 AM, John Huss wrote:
I thought I would convert a bunch of old WOBuilder-made components to use
the shorter and more readable self-closing webobjects tags, so


<webobject name="SomeString"></webobject>

becomes

<webobject name="SomeString"/>

You can replace all occurances of this if you do a project-wide search and
replace in Eclipse with these regular expression parameters:


Find in *.html:
<webobject ([^>]+)></webobject>

Replace:
<webobject $1/>

Note: I give no guarantees that this will work correctly - make sure you
test it out first and back up your work beforehand.


John
_______________________________________________
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

with regards, --

Lachlan Deck



_______________________________________________
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


  • Follow-Ups:
    • Re: Converting to self-closing webobject tags
      • From: "Mr. Pierre Frisch" <email@hidden>
References: 
 >Converting to self-closing webobject tags (From: "John Huss" <email@hidden>)

  • Prev by Date: Re: Tomcat Woes :)
  • Next by Date: It's still alive again still forever!! :-)
  • Previous by thread: Converting to self-closing webobject tags
  • Next by thread: Re: Converting to self-closing webobject tags
  • Index(es):
    • Date
    • Thread