cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Session:set-attribute logicsheet bug?
Date Thu, 21 Feb 2002 02:54:02 GMT
> From: Paolo Scaffardi [mailto:lavoro@arsenio.net]
> 
> I tried Cocoon 2.0.1 with an existing project of mine, and i
discovered
> that the session logicsheet has changed. In my code i have something
> like that:
> 
> 	<session:set-attribute
> name="pippo"><xsp:expr>myVar</xsp:expr></session:set-attribute>
> 
> But the logicsheet transforms it to:
> 
> 	XSPRequestHelper.setSessionAttribute (ObjectModel,
> String.valueOf("Pippo"), "MyVar" );
> 
> instead of:
> 
> 	XSPRequestHelper.setSessionAttribute (ObjectModel,
> String.valueOf("Pippo"), MyVar);
> 
> I fixed that restoring "session:set-attribute" definition to:
... 
>     <xsl:variable name="content">
>       <xsl:call-template name="get-nested-content">
>         <xsl:with-param name="content" select="."/> <!-- THIS LINE HAS
> BEEN RESTORED -->
>       </xsl:call-template>
>     </xsl:variable>
... 
> 
> I hope this will help you.

Thanks for the finding the bug. It was more to it -
<xsp-session:set-attribute
name="pippo">myLiteral</xsp-session:set-attribute> was not processed Ok
with fix proposed by you, so some other changes also was required. Try
latest CVS that it works Ok or you now.

Regards,
Vadim

> 
> ByeBye,
> Paolo Scaffardi
> Embedded Linux Developer
> 
> AIRVENT SAM S.p.A.
> via Macanno 32 - 47900 Rimini
> ITALY
> Tel. 0541 383294
> Fax. 0541 387086


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message