<?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: Cannot display facesMessages from custom action. in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/cannot-display-facesmessages-from-custom-action/m-p/320387#M7388</link>
    <description>&lt;P&gt;I am trying to issue a message, using Java facesMessages, to the user, from inside custom action linked to a button generated by the widget above. In this case the custom action is&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jul 2012 18:38:37 GMT</pubDate>
    <dc:creator>karl_harris_</dc:creator>
    <dc:date>2012-07-30T18:38:37Z</dc:date>
    <item>
      <title>Cannot display facesMessages from custom action.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/cannot-display-facesmessages-from-custom-action/m-p/320385#M7386</link>
      <description>&lt;P&gt;I've created a simple button widget that fires an action, passing a String to the action:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;div 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;xmlns="http://www.w3.org/1999/xhtml"
xmlns:nxthemes="http://nuxeo.org/nxthemes"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:nxu="http://nuxeo.org/nxweb/util"
xmlns:nxdir="http://nuxeo.org/nxdirectory"
xmlns:nxl="http://nuxeo.org/nxforms/layout"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:a4j="http://richfaces.org/a4j"&amp;gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;          &amp;lt;a4j:commandButton
          
          id="#{widget.id}_btn_besPMPTOT"
          value="Stop Prep"
          action="#{besPMPTOT.pmpStop('Prep')}"
          styleClass="button"&amp;gt;
        &amp;lt;/a4j:commandButton&amp;gt;			
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've used the Advanced Widget section in Studio to insert this widget into an edit view of a document.
The associated JAVA action was generated with nuxeo IDE. I changed the accept() in the generated action class method to return false so I did not see the tabs. The button works except any message generated by the JAVA actions to facesMessages is not displayed. An error of: [javax.enterprise.resource.webcontainer.jsf.lifecycle] jsf.non_displayed_message is displayed in the log file.&lt;/P&gt;
&lt;P&gt;Did setting the return value on the accept method(filter) turn off the ability to send messages to "faces" for display to the user? Do I need a different category in the action .xml file? I currently have the standard SUBVIEW_UPPER_LIST as the category. Should I be using the Nuxeo nxa4j instead of a4j in my button widget?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2012 17:36:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/cannot-display-facesmessages-from-custom-action/m-p/320385#M7386</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2012-07-20T17:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot display facesMessages from custom action.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/cannot-display-facesmessages-from-custom-action/m-p/320386#M7387</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;sorry, not sure i understood correctly what you're trying to do, but that kind of message shows that a component is not re-rendered. Adapting the corresponding attribute on the a4j link so the component with a message is rendered should do the trick&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2012 15:22:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/cannot-display-facesmessages-from-custom-action/m-p/320386#M7387</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-07-30T15:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot display facesMessages from custom action.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/cannot-display-facesmessages-from-custom-action/m-p/320387#M7388</link>
      <description>&lt;P&gt;I am trying to issue a message, using Java facesMessages, to the user, from inside custom action linked to a button generated by the widget above. In this case the custom action is&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2012 18:38:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/cannot-display-facesmessages-from-custom-action/m-p/320387#M7388</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2012-07-30T18:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot display facesMessages from custom action.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/cannot-display-facesmessages-from-custom-action/m-p/320388#M7389</link>
      <description>&lt;P&gt;Ok, you can issue a global message, or attach it to a JSF component using its id.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2012 15:44:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/cannot-display-facesmessages-from-custom-action/m-p/320388#M7389</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-07-31T15:44:59Z</dc:date>
    </item>
  </channel>
</rss>

