Re: [studs-user] Recursive psp template insert
Status: Beta
Brought to you by:
mojavelinux
|
From: Earnie B. <ea...@us...> - 2006-12-01 13:21:30
|
Quoting Juan Carlos Rey Anaya <jc...@um...>: > Earnie Boyd wrote: >> I'm not sure what the correct fix would be. I'm thinking the issue is >> the ContentMapStack::pop($this->pageContext) command in the doEndTag of >> the TemplateInsertTag.php file. That doEndTag also returns a >> Tag::EVAL_PAGE and maybe should return Tag::EVAL_BODY_AGAIN instead? > > I'm been reading TagSupport.php, TemplateGetTag.php, ContentMapStack > and NestedBeanStack. > I see nothing 'suspicious'. > Read my statement again; I suggested the problem was in TemplateInsertTag.php. > I'm been revising Java definition of TagSupport and I have not seen > nothing about doAfterBody() event. > I changed return value of TemplateGetTag::doStartTag() to > EVAL_BODY_AGAIN and happens the same. > I changed return value of TemplateGetTag::doStartTag() to: > EVAL_BODY_AGAIN when direct is not set and SKIP_BODY when direct is > not set and nothing new. > I have redefined TemplateGetTag::doAfterBody() to EVAL_BODY_AGAIN and > nothing new happens. > > Uhmmm I suppose the issue is in pageContext->doInclude()... I haven't > had time to look for it... > :-( > The issue is caused by the insert within the get. The insert is properly parsed but the insert code doesn't allow for the nesting scenario you have given. Earnie Boyd -- Please post responsibly: * Use text posts instead of html; many list members just trash mail with html. * Do not use multipart mime to send both text and html versions. * Do not top post replies; post inline with the parts you are responding to. * Trim the post replies; remove irrelevant information from the quoted article. * Original posters: ** Provide small complete examples of the problem. ** Provide the full command that produced errors. ** Provide the versions of the software used. -- ****************************************************************************** * The user of this server has agreed to allow the use of a trailer in the * * mail that he sends for advertising purposes. This advertisment is added * * by the server and is not in the control of the user of our services. * ****************************************************************************** Save on your shoes, socks and other needs: http://give-me-an-offer.com/store/shoes Save on your baby gift needs: http://give-me-an-offer.com/offers/products/baby |