You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2012/04/22 21:57:32 UTC

[jira] [Commented] (OFBIZ-4669) sessionAttributes doesn't work from screen widget

    [ https://issues.apache.org/jira/browse/OFBIZ-4669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259233#comment-13259233 ] 

Jacques Le Roux commented on OFBIZ-4669:
----------------------------------------

BTW it seems that this is known for a moment, also for requestAttributes. 

<!-- TODO/NOTE DEJ20070223: for some reason this isn't working, doing an assign within the FTL file which does work: <set field="productCategoryLink" from-field="requestAttributes.productCategoryLink"/> -->

They are both represented by a freemarker.ext.servlet.HttpSessionHashMode
sessionAttributes = freemarker.ext.servlet.HttpSessionHashModel@4559a 
requestAttributes = freemarker.ext.servlet.HttpRequestHashModel@902aea

                
> sessionAttributes doesn't work from screen widget
> -------------------------------------------------
>
>                 Key: OFBIZ-4669
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4669
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 11.04, SVN trunk
>            Reporter: Kiran Gawde
>
> In the screen widget, add a set action that refers to sessionAttributes, it doesn't work. 
> e.g: Following doesn't work:
> <set field="titleProperty" value="${sessionAttributes.autoName}"/>
> Following works:
>  <set field="titleProperty" from-field="autoName" from-scope="user"/>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira