Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue with setPropertyActionListener tag in jsf core taglib

 
Deepak Kr
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have multiple href links in a page (orders.jsp), if some click is made on somelink, it takes user to another page (orderdetails.jsp) , but when user tries to click on another link (VIA using the browser BACK button from details page and clicking another link), it doesn't work properly.... instead it takes to older details page.

Problem here is that, whichever link (to orderdetails.jsp page) is first hit after order.jsp page is loaded, it works fine, but if any other link is tried on the orders.jsp page, after coming from orderdetails.jsp page via browser BACK button, then it ALWAYS takes to the orderdetails page of the first hit link.

Code snippet of the orders.jsp
<t:dataList var="item" value="#{value}" rowIndexVar="i" layout="simple">
<h:commandLink action="#{opRead.query}" >
<hutputText value="#{item}" />
<f:setPropertyActionListener target="#{params[attr.addlInfo]}" value="#{item}"/>
</h:commandLink>
</t:dataList>

Looks like an issue with the setPropertyActionListener tag, as it creates the hidden input field to the html form, do you know the solution here...?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic