Thought I'd post this before creating a JIRA issue, in case I've
overlooked something.  I just now produced this with 1.2.1 but I think
I've seen it in 1.0.x before.

In the following page, clicking the link correctly updates 'Foo=' to
'Foo=1' but it renders the paragraph twice. Clicking again updates
-both- paragraphs to 'Foo=2' and adds a third. Click again for a 4th,
and Foo=3, and so on.

Using an h:outputText instead of inline EL keeps the text from being
repeated, but additional paragraph elements are added with each click.

<tr:document xmlns="http://www.w3.org/1999/xhtml";
  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:tr="http://myfaces.apache.org/trinidad";>
 <tr:form>
     <tr:panelHeader partialTriggers="foo">
        <p>Foo=#{pageFlowScope.foo}</p>
     </tr:panelHeader>
     <tr:commandLink id="foo" partialSubmit="true" text="Do it!">
        <f:setPropertyActionListener value="#{pageFlowScope.foo + 1}"
target="#{pageFlowScope.foo}" />
     </tr:commandLink>
  </tr:form>
</tr:document>

Environment: Facelets 1.1.12 + RI 1.2_04-p02

Reply via email to