commandLink inside dataTable issue - Urgent.

I have some weird issue using commandLInk inside dataTable.

Here is my code

/***********************************************

<h:dataTable id="productTable" var="productBean"

value="#{productSearch.searchResult}" rendered="#{!empty productSearch.searchResult}" >

<h:column>

<h:commandLink id="searchtitle"

value="#{productBean.productName}" action="#{productSearch.productDetail}" />

</h:column>

</h:dataTable>

******************************************************/

when i click the commandLink always productSearch.searchResult method is being called and commandLink action productSearch.productDetail method is not being executed atALL.

How do i forice to execute action here?

[789 byte] By [mraja] at [2007-11-27 5:25:38]
# 1

Likely the datatable value is out of the scope while the JSF enters the invocation phase. If the managed bean is put in the request scope, then change to session scope. Big chance if it works. If this is true, then you may need to rearrange your data loading logic for the datatable if you want to keep the managed bean in the request scope.

BalusCa at 2007-7-12 14:45:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
u have to use <h:commandLink actionListener="#{yourBBean.action}">and use action to redicrect to your page.let me know if u need furher info.ThanksSrikanth
srikanthga at 2007-7-12 14:45:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Explain in detail why actionListener should work.
BalusCa at 2007-7-12 14:45:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
I have changed to session scope and works fine.Thanks to all.
mraja at 2007-7-12 14:45:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...