This should work, as is. There must be something in your configuration file. You are using also seam? May be there is a problem.

Brian Smith wrote:
I am also having problems with PPR. I have followed every example but just can't seem to get PPR to work. I am using Facelets. I have a main template that uses a trh:body tag (required for PPR to work) to enclose my content.

Here is an example, I am trying to create dependent selectOneInput boxes. I have placed a button on the form to submit the request manually so I know the database logic is fine.

<ui:define name="content">
            <tr:form id="assignmentForm">
                <tr:panelFormLayout maxColumns="1">
                    <tr:selectOneChoice id="department_input"
label="#{messages[' Department.department']}"
                                        value="#{department}"
valueChangeListener="#{workOrder.change}"
                                        autosubmit="true">
<s:selectItems label="#{dept.departmentNumber} - #{dept.departmentName}" value="#{allDepartments.resultList}" var="dept" noSelectionLabel="(None)"/>
                    </tr:selectOneChoice>
                    <tr:selectOneChoice id="departmentSection_input"
label="#{messages['Department.section ']}"
                                        value="#{departmentSection}"
partialTriggers="department_input">
                        <s:selectItems label="#{ sect.sectionName}"
                                       value="#{sectionList}"
var="sect" noSelectionLabel="(None)"/>
                    </tr:selectOneChoice>
<h:commandButton actionListener="#{workOrder.fillSectionList}"/>
                </tr:panelFormLayout>
            </tr:form>
    </ui:define>

I have been working with Trinidad for a while now and have never been able to get PPR of any kind other than the Dialog Framework to work. I am thinking there must be something wrong with my configuration or some other issue going on.

Thanks for any help.

-Brian

ps If needed I can post my web.xml and faces-config

On 5/24/07, *Luka Surija* < [EMAIL PROTECTED] <mailto:[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.


    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
    <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?
    >


Reply via email to