Help

Controls

PermLinkWikiLink

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Forum: Seam Users Forum ListTopic List
24. Jul 2008, 18:49 CET | Link

I have the need for an AJAX command button so that I can call some javascript as well as reRender a table of results. The results each have an s:link in them such that I can propagate the conversation. Unfortunately, the CID is being bumped up when I hit the commandButton.

Does any one know how to pass the current conversation ID to propagate into the a:commandButton?

3 Replies:
24. Jul 2008, 18:59 CET | Link

Have you tried this ?

<a4j:commandButton><s:conversationPropagation type="join" /></a4j:commandButton>
24. Jul 2008, 19:12 CET | Link
Just tried that but no luck.Here is my code...

 <a:commandButton id="brokerSearch"
                  value="Search for Brokers"
                  action="#{signup.findBrokers}"
                  ajaxSingle="true"
                  reRender="results"
                  data = "#{signup.brokerInfoList}"
                  oncomplete="createBrokerMarkers(data)">
                  <f:param value="#{accountId}" name="accountId"/>
                  <s:conversationPropagation type="join" />
</a:commandButton>
24. Jul 2008, 21:16 CET | Link

Hi Mark: What exactly do you want to achieve?.

To join to the current conversation by using an a:commandButton, or to have the conversation Id on the re rendered region as part of the s:link.

Also, show the code for results and createBrokerMarkers(data).

Roger.