-
1. Re: commandLink action is not getting invoked with in dataTable.
Murali Chepuri Mar 18, 2009 1:10 AM (in response to Murali Chepuri)The reason why popup is being closed is
`
<rich:modalPanel id="somePanel"
showWhenRendered="true"
rendered="#{bean.showpopUp}">
<s:link value="Search" action ="#{bean.search}" />
<rich:dataTable>
<rich:column>
<s:link action="#{somebean.someaction}" value="#{row.someColumnName}"/>
</rich:column>
</rich:dataTable>
<rich:modalPanel>`
Notice
rendered="#{bean.showpopUp}" in above code.
so when i click on s:link showPopup is becoming false;So i made it to true somebean.someaction.But still the popup collapses and re opens if u click on search... -
2. Re: commandLink action is not getting invoked with in dataTable.
Murali Chepuri Mar 18, 2009 1:14 AM (in response to Murali Chepuri)I dont want the popup to collapse and reopen if user hits on Search.
-
3. Re: commandLink action is not getting invoked with in dataTable.
Tim Evers Mar 18, 2009 1:49 AM (in response to Murali Chepuri)In future please don't post your question twice in 2 different threads.
SEAM bean attributes do not get their values changed unless they are told to do so.
So either you have some logic bug in your code, or your SEAM bean is actually getting recreated and you are dealing with a new SEAM bean each time you do a click.
put a method in your SEAM bean and annotate it with the @Create annotation.
inside this method, log a message to your log file. See if this message is happening more then once. If it does then that would indicate that you are getting a new instance of the SEAM bean then what you were on previously.
Maybe you have a page/event scoped bean and you actually need it to be Conversation.
Please only respond to this thread, and please post your code from your bean.
-
4. Re: commandLink action is not getting invoked with in dataTable.
Murali Chepuri Mar 18, 2009 9:30 PM (in response to Murali Chepuri)Hi Tim,
Thanks a lot for the reply.One think which did not understand is why popup is collapsed when i click on s:link.
Usually it does not get collapsed if i click on h:commandLink. How ever form may be submitted...but in case of s:link popup itself closed.Why is that happening.
-
5. Re: commandLink action is not getting invoked with in dataTable.
Murali Chepuri Mar 20, 2009 2:02 AM (in response to Murali Chepuri)Can any one please help me.. regarding this.