I wrote a small tag that represents an
faq
<mt:getFAQ>
<mt:getQuestion/>
<mt:getAnswer/>
</mt:getFAQ>
the GetFAQTag is of type
BodySupportTag.
the execution goes like this
getFAQTag::init()
pointer = 0;
getFAQTag::doStartTag()
pointer++
( to load the first QA object in pageScope, only called
once. )
..question
..answer
getFAQTag::doAfterBody()
pointer++
if pointer<=size
EVAL_BODY_TAG
else SKIP_BODY
my problem is that in getFAQTag::doAfterBody the
pointer is still 0, and I cannot figure out why.
Can anyone shed some light on this?
Johan
|