Page is a not externally linkable
Fotiman - 2:09 pm on Oct 24, 2011 (gmt 0)
I don't know much about JSF, but from what I can tell the output of this:
<s:link styleClass="link-color" action="#{searchAction.getAllDetails}" value="#{result.transactionCode}" />
Will be something like this:
<a class="link-color" href="#{result.transactionCode}" ...
Where {result.transactionCode} is some dynamic value. The problem is that you're relying on the hash character to provide uniqueness. I think you'll find this is unreliable. If this was using a unique query string value instead, then it might work as you expected (as long as result.transactionCode was unique to each row item). For example:
href="#123" and href="#124" both point to the same resource (which happens to be whatever the current page is), with both referring to some anchor location on that page. Using a querystring instead, you might have:
href="?transactionCode=123" and href="?transactionCode=124", in which case the browser will see these as 2 different resources.
Note, for future reference, you are better off pasting in the HTML source rather than the JSF source, since it's the HTML that ultimately matters, not the JSF.