• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

custom tags doubt - TLD tag

 
Ranch Hand
Posts: 115
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ranchers,

Can anyone please tell me the scenario where we need to declare
<body-content>empty</body-content> ... in defining TLD <tag>

I feel, almost in all general applications, we need to make body-content non-empty.

Thanking you,
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could have a tag that only needs attributes. For instance, a tag that randomly picks an item from a collection and displays it:
<mine:pickOne items="${myCollection}"/>


Or you could have a tag that takes no inputs at all. For instance, it might do nothing more than spit out an icon or character that is meant to show that a particular form field is required.
<mine:required/> <input type="text" name="somethingRequired"/>
[ March 03, 2008: Message edited by: Marc Peabody ]
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the body of the tag is empty then apply
<body-content>empty</body-content>
or
<body-content>scriptless</body-content>

Ex: <abc:text screen="hi" section="as" />
So the above tag doesnt have any body ,it takes two attributes
so this is the example for "empty" bodycontent

Ex:<abc:button>Submit</abc:button>

here the body of the tag is containing some text,now apply the
body content as "scriptless"


Ex:<abc:section screen="dsad">
<input type="text" id="dhyusdg" name="dfd"/>
</abc:section>

for the above example apply the body content as "JSP"




with regards
praveen CH
mail id: praveenkumar.ch@cognizant.com




Originally posted by Devisri Nanubala:
Hi Ranchers,

Can anyone please tell me the scenario where we need to declare
<body-content>empty</body-content> ... in defining TLD <tag>

I feel, almost in all general applications, we need to make body-content non-empty.

Thanking you,

 
Devi Sri
Ranch Hand
Posts: 115
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Marc. I got it.
 
Clowns were never meant to be THAT big! We must destroy it with this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic