Well I got my problem figured out.  Simple stupid mistake that took 2 days
to notice.  In my previous example I did not have the correct capitalization
of autoSubmit.  I spelled it "autosubmit" instead of "autoSubmit".  Once
fixed, all is well.

-Brian

On 5/24/07, noah <[EMAIL PROTECTED]> wrote:

On 5/24/07, Luka Surija <[EMAIL PROTECTED]> wrote:
> your partial trigger is set to refresh the tr:panelBox, that means, only
> components inside tr:panelBox and the tr:panelBox will be updated. If
> you put partialTriggers="preview" in tr:form, then the text will be also
> updated.
>

I understand that. I don't want the text to be updated, and it isn't.
The rendering is exactly what I expected.  It is how the rendering is
being delivered that
behavior seems "wrong" because it appears to be a full page refresh.
I don't see a point to using PPR if the whole page gets refreshed for
every action, so I assume that this isn't the way it is supposed to
behave.

>
> noah wrote:
> > Maybe I just don't understand how PPR is supposed to work.
> >
> > I have this page (Facelets, 1.2-07-apr-SNAPSHOT, 1.2 RI, FF 2):
> > <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:c="http://java.sun.com/jstl/core";
> > xmlns:tr="http://myfaces.apache.org/trinidad";
> > xmlns:h="http://java.sun.com/jsf/html"; title="Trinidad Test">
> > <tr:form >
> >
> > <tr:panelBox background="transparent" partialTriggers="preview">
> > <h:outputText escape="false" value="#{pageFlowScope.text}" />
> > </tr:panelBox>
> >
> > <tr:inputText value="#{pageFlowScope.text}" columns="100" rows="25"/>
> >
> > <tr:commandButton id="preview" partialSubmit="true" text="Preview" />
> >
> > Text='#{pageFlowScope.text}'
> >
> > </tr:form>
> > </tr:document>
> >
> > Now I get the expected rendering. I get Text='' (i.e. no update) and
> > the panelBox is updated, but it's happening as a normal POST with full
> > page refresh. Have I done something wrong or is this the expected
> > behavior?
> >
>
>
> --
> Luka Ĺ urija
> [EMAIL PROTECTED]
> +385 98 434 061
>
> I.Y. tim d.o.o.
> www.iytim.hr
> [EMAIL PROTECTED]
>
>
>

Reply via email to