Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Action doesnt run inside a repeat kind tag  RSS feed

 
alberto vegas
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody:

I'm "JSFacing" the following problem:

I made a searcher, the searcher retreive a list of Objects and i want to dysplay them in a table, with links to open its details. The table gets populated and displayed properly, but the details link doest execute the action specified (readCaseDetails). If i take out the link from the table the action gets executed, but i need to have a table or any other repetitive form, to display the list with the results of the search. I tried with <rich:dataTable, a4j:repeat, h:dataTable, commandLink, commandButton and the result is always the same. Link or button out of the repetitive block, executes the action. Inside the repetitive block, it does not. (Aparently it just repeats the previous action, search, retreiving nothing and it displays the same page but empty).

Just to make this clear i'll put the conflictive code from the jsf page:

<rich:dataTablevalue="#{CaseDetails.searcher.listDataModelcasesFound}" var="c">
<h:column>
<f:facet name="header">
<hutputText value="MSISDN" />
</f:facet>
<h:commandLink action="#{CaseDetails.readCaseDetails}">
<hutputText value="#{c.msisdn}" />
<f:setPropertyActionListener value="#{c.msisdn}" target="#{CaseDetails.caseMSISDN}" />
</h:commandLink>
</h:column>
<h:column>
<f:facet name="header">
<hutputText value="Description" />
</f:facet>
<hutputText value="#{c.description}" />
</h:column>
</rich:dataTable>

If any of you has any idea what i'm doing wrong, i'd be very thankful.

Best regards!

Alberto
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!