Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Tag nesting ?

 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
True/False:

Custom tags can be nested and can communicate with each other?
My Answer: False.
Tags can be nested. The inner tag can communicate with the outer tag (using getParent() or findAncestorWithClass(...) methods). However, we agreed (in someother thread here) that an outer tag doesn't know its inner tags.
Hence, I assume an outer tag cannot communicate to the inner tag.
Am I missing something.........
Thanks.
- satya
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think your correct.
-SR
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are 101% right. There is no method mentioned in the specifications to communicate to the inner tags from outer tags.

-Vamsi
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While there is no method through which outer tags can get inner tags, they can communicate...
Well, apparently my understanding is wrong (the communication part) according to the J@Whiz simulator. :roll:
- satya
 
Vamsidhar Chenepalli
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you explain us how they can communicate ? it will be helpful to others too if u can give some example.
thanks
vamsi
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you explain us how they can communicate
I don't know what they (J@Whiz) mean by "communicate". Strangely enough their example is NOT nested. This was a weird qstn and so I wanted to know what other here understand.
Okay, the inner tag can get access to the outer tag using the methods I mentioned but how can the outer tag get access to the inner tag?
communicate DUH!!!
- satya
 
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the example from Jwhiz?
 
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic