Hi all
I have a simple, bodyless custom tag that uses Resource.getLocalContentNode()
in doEndTag() method.
Then I have a paragraph template which uses this tag.
On the page I create 2 pieces of content (/test/pc-ccol/0, /test/pc-ccol/00)
using same paragraph
but when the tag executes the content node obtained is always the same...The
node from the first paragraph...
However, if I use this same method in a paragraph template scriptlet and do:
<jsp:scriptlet>
<![CDATA[
Content node = Resource.getLocalContentNode();
System.out.println("lcn: " + node.getHandle());
]]>
</jsp:scriptlet>
I get the both paragraph nodes one after another...
The question is how do I force a Resource.getLocalContentNode() in my tag to
act the why it works in the scriptlet?
I would appreciate if someone could help?
Regards
Amir
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------