function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
EmsEms 

Why aren't my command links updating parameters correctly?

I have a datatable  with a column of command links - each link sets a parameter that I want to use to drive a data source for a different datatable on the page (basically select the category should drive what items display).

 

For some reason ALL of the parameters show up as whatever the first selection is!

 

Mind - if you insert the category parameter in the URL everything works fine - I'd just rather do this without refreshing the page every time.

 

... <apex:form> <apex:datatable value="{!Categories}" var="cat" > <apex:column headerValue="Categories"> <apex:commandLink action="{!selectCategory}" value="{!cat}" rerender="goodstuff"> <apex:param name="ctgry" value="{!cat}"/> </apex:commandLink> </apex:column> </apex:datatable> </apex:form> <apex:outputPanel id="goodstuff"> ...other data table showing items here...

 

Thank you community!