Some more findings on this
We further drilled down and identified that the objects set using
<tr:setActionListener > is not accessible within the method of
ActionListener attribute
However accessible in the method of Action attribute
In JSF 1.1 the objects were accessible by methods of both ActionListener
and Action attributes . below code works fine with JSF 1.1
<tr:commandLink id="p_803_chooseGroupPopupId8" text="#{row.name}"
actionListener="#{sampleBean.selectGroup}" >
<tr:setActionListener from="#{row}"
to="#{pageFlowScope.selectedGroupName}" />
</tr:commandLink>
Is this an expected behavior with JSF 1.2 or a bug?
Thanks,
Sabitha
________________________________
From: Sabitha Gopal Pandit [mailto:[email protected]]
Sent: Tuesday, September 01, 2009 3:43 PM
To: MyFaces Development; MyFaces Discussion
Subject: Issues with <tr:SetActionListener> tag after upgrading to JSF
1.2
Hi All,
we have recently upgraded to JSF 1.2 for which the myfaces and Trinidad
jars have been upgraded to
myfaces-api-1.2.6.jar,
myfaces-impl-1.2.6.jar,
trinidad-impl-1.2.11.jar and
trinidad-api-1.2.11.jar
previously we were using
myfaces-api-1.1.5.jar
myfaces-impl-1.1.5.jar
trinidad-api-1.0.10.jar
trinidad-impl-1.0.10.jar
After the Upgrade below code snippet is not working on the upgraded
environment
On a parent page by clicking a button opens a pop-up window and the
window lists all the Groups (java bean objects), below code is doing
that functionality
<tr:table var="row" id="id11" emptyText="sample" width="100%"
rows="#{sampleBean.pageSize}"
binding="#{createNewUserBackingBean.groupsTableForDialog}"
value="#{sampleBean.groupsList}" rendered="#{sampleBean.groupsList !=
null}">
<tr:column width="15%" >
<f:facet name="header">
<tr:outputText id="id12" value="groupName"/>
</f:facet>
<tr:commandLink id="p_803_chooseGroupPopupId8" text="#{row.name}"
actionListener="#{sampleBean.selectGroup}" >
<tr:setActionListener from="#{row}"
to="#{pageFlowScope.selectedGroupName}" />
</tr:commandLink>
</tr:column>
</tr:table>
in the above code, setting of 'row' in to the 'pageFlowScope' is not
working and if i try to retrieve that value in the action listener
method(sampleBean.selectGroup) it is returning the NULL value.
below is the code retrieving the objec from the pageflowscope :
Object obj=
RequestContext.getCurrentInatance().getPageFlowScope().get("selectedGrou
pName");
obj is a null value.
the same code is working fine with my old environment
i would really appreciate if you could help me in solving this problem.