[ https://issues.apache.org/jira/browse/OFBIZ-4669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259685#comment-13259685 ]
Daniel Riquelme commented on OFBIZ-4669: ---------------------------------------- I guess it's because freemarker.ext.servlet.HttpSessionHashModel and freemarker.ext.servlet.HttpRequestHashModel are only intended to work in ftl. org.ofbiz.widget.screen.ScreenRenderer has the following: line: 240 // these ones are FreeMarker specific and will only work in FTL templates, mainly here for backward compatibility BeansWrapper wrapper = BeansWrapper.getDefaultInstance(); context.put("sessionAttributes", new HttpSessionHashModel(session, wrapper)); context.put("requestAttributes", new HttpRequestHashModel(request, wrapper)); > 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