Minor: "cannot find component" message from p:ajax

UI Components for JSF
Post Reply
Alan
Posts: 102
Joined: 25 Oct 2010, 04:45

23 Aug 2011, 18:09

My code has a structure like this:

Code: Select all

       
            <h:form id="llForm">

                    <p:panel id="llControl">
                             (A bunch of user controls go here)
                              <p:spinner value="#{listLocations.rows}" label="Page Size"
                                           min="5" max="1000" size="6" stepFactor="5">
                                    <p:ajax update="llForm" />
                                </p:spinner>
                    </p:panel>

                    <p:dataTable  
                        id="llDataTable"
                        >

                        <p:column>
                            <f:facet name="header">
                                <h:commandLink value="Name" 
                                               actionListener='#{listLocations.addSortValue("name")}' />
                                <br/>
                                <p:inputText value="#{listLocations.filterName}"  >
                                    <p:ajax update="llForm" />
                                </p:inputText>
                            </f:facet>
                            <h:outputText value="#{loc.name}" />
                        </p:column>
The problem is in the ajax tag in the data table. It does not seem to affect the ajax tag in the panel. The code works as expected -- when the inputText field is changed I get the form update. However whenever the page renders I get the following message in the log:

Code: Select all

INFO: Cannot find component with identifier "llForm" in view.
The message repeats on partial updates. Again the updates happen as expected.

Using 3.0.M2
Netbeans 7.1, GlassFish 3.1.1, MacOS X 10.6.8, Safari, Firefox

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

23 Aug 2011, 18:12

Code: Select all

<p:ajax update=":llForm" />

Alan
Posts: 102
Joined: 25 Oct 2010, 04:45

23 Aug 2011, 18:58

ok, thanks. I wasn't aware of that form of the update parameter.
Netbeans 7.1, GlassFish 3.1.1, MacOS X 10.6.8, Safari, Firefox

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 44 guests