<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calling a JSF Bean setter via AJAX in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/calling-a-jsf-bean-setter-via-ajax/m-p/203777#M156907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;me again, giving a short status update. I think I got it now, why there is not a SetCommand implemented yet. I upgraded the AjaxServlet and added a SetCommand very similar to the GetCommand call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now this is the problem, best done as a use-case, so you know, what I want to do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Login as usual&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/ajax/set/DetailBean.addTag?tag=WEBTAG" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/ajax/set/DetailBean.addTag?tag=WEBTAG&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;3. &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/ajax/invoke/DetailBean.saveTag" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/ajax/invoke/DetailBean.saveTag&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;4. &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/ajax/get/EditMediaDetailBean.tags" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/ajax/get/EditMediaDetailBean.tags&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should be quite a clear example. First we login, then we add a set and call DetailBean.setTag("WEBTAG") and third we call saveTag() in the bean. Last but not least we use the getTags method to check our results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem with all of the calls is, that I get a different FacesContext for each of these calls, leaving me with no changes whatsoever. There are two possible workarounds to this problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Put a persistence logic in every setter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Get back the right FacesContext&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course I would love to stick with solution number, but I am not really sure whether this is possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for help and have a nice day&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2009 16:52:20 GMT</pubDate>
    <dc:creator>alr</dc:creator>
    <dc:date>2009-01-26T16:52:20Z</dc:date>
    <item>
      <title>Calling a JSF Bean setter via AJAX</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calling-a-jsf-bean-setter-via-ajax/m-p/203776#M156906</link>
      <description>HiIf I got it right, it is right now only possible to call a getter of a JSF Bean with the help of the ajax servlet as mentioned in http://wiki.alfresco.com/wiki/AJAX_Support. Is it also possible to create POST request where I call a certain setter with an argument?After reading the AjaxServlet clas</description>
      <pubDate>Mon, 26 Jan 2009 13:17:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calling-a-jsf-bean-setter-via-ajax/m-p/203776#M156906</guid>
      <dc:creator>alr</dc:creator>
      <dc:date>2009-01-26T13:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a JSF Bean setter via AJAX</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calling-a-jsf-bean-setter-via-ajax/m-p/203777#M156907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;me again, giving a short status update. I think I got it now, why there is not a SetCommand implemented yet. I upgraded the AjaxServlet and added a SetCommand very similar to the GetCommand call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now this is the problem, best done as a use-case, so you know, what I want to do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Login as usual&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/ajax/set/DetailBean.addTag?tag=WEBTAG" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/ajax/set/DetailBean.addTag?tag=WEBTAG&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;3. &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/ajax/invoke/DetailBean.saveTag" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/ajax/invoke/DetailBean.saveTag&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;4. &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/ajax/get/EditMediaDetailBean.tags" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/ajax/get/EditMediaDetailBean.tags&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should be quite a clear example. First we login, then we add a set and call DetailBean.setTag("WEBTAG") and third we call saveTag() in the bean. Last but not least we use the getTags method to check our results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem with all of the calls is, that I get a different FacesContext for each of these calls, leaving me with no changes whatsoever. There are two possible workarounds to this problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Put a persistence logic in every setter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Get back the right FacesContext&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course I would love to stick with solution number, but I am not really sure whether this is possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for help and have a nice day&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 16:52:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calling-a-jsf-bean-setter-via-ajax/m-p/203777#M156907</guid>
      <dc:creator>alr</dc:creator>
      <dc:date>2009-01-26T16:52:20Z</dc:date>
    </item>
  </channel>
</rss>

