sorry
It was a typo in my code resultQurey, and should be change to resultQuery,
but even I correct this, the problem is still remained.

what is the following attribute in the example:

valueChangeListener="#{pprExampleBean.testValueChangeListener}"

do I need to have such action in the backend? if yes, what code should I put
there?

On 2/17/07, Mohammad Norouzi <[EMAIL PROTECTED]> wrote:

Hi Gerald
yes I added submit(this)

here is my code:
-------------
          <f:view>
            <h:form id="resultQuery">
                    <s:fieldset legend="FieldSet">
                    <h:panelGrid bgcolor="#cccccc" columns="4" >
                    <h:selectOneMenu id="rowPerPageOption" value="#{
searchResult.rowPerPage}" onchange="submit(this);"
                        >
                        <f:selectItem itemLabel="5" itemValue="5"/>
                        <f:selectItem itemLabel="10" itemValue="10"/>
                        <f:selectItem itemLabel="20" itemValue="20"/>
                        <f:selectItem itemLabel="30" itemValue="30"/>
                        <f:selectItem itemLabel="40" itemValue="40"/>
                        <f:selectItem itemLabel="50" itemValue="50"/>
                        <f:selectItem itemLabel="100" itemValue="100"/>
                        <f:selectItem itemLabel="200" itemValue="200"/>

                    </h:selectOneMenu>
                    </h:panelGrid>
                    </s:fieldset>

              <h:panelGroup id="resultGroup1" style="text-align:center ">
              <s:pprPanelGroup id="resultDataTable"
partialTriggers="resultQuery:rowPerPageOption"
                            inlineLoadingMessage="Loading...">
                    <t:dataTable id="resultQureyTable" value="#{
searchResult.dataModel}"

 sortAscending="#{ascending}"

 sortColumn="#{sortColumn}"
                                                     preserveSort="false"
                                                     border="1"
rowOnMouseOver="this.style.backgroundColor='#cccccc '" rowOnMouseOut="
this.style.backgroundColor=''"

 preserveDataModel="false"
                                                     cellspacing="0"
cellpadding="0" rows="#{ searchResult.rowPerPage}"
                                                     width="80%"
rowIndexVar="rowIndex"

 style="text-align:center" rowClasses="rowTable1, rowTable2"

 columnClasses="columnTable" rules="groups"

 headerClass="headerTable" footerClass="headerTable"

 styleClass="borderTable" captionClass="titleTable"
                                                     var="result"
first="0" >
                <t:columns id="columns" value="#{
searchResult.columnHeaders}" var="columnHeader" >
                    <f:facet name="header">
                            <h:outputText value="#{ columnHeader.label}"
/>
                    </f:facet>
                    <!-- row is also available -->
                    <h:outputText rendered="true" value="#{result[
columnHeader.index-1 ]}" />
                </t:columns>
                                <f:facet name="footer">
                                     <h:panelGroup id="mainPanel2"
border="0" columns="20" width="100%"  rendered='#{
searchResult.sizeOfQuery>=0}'>
                                                        <t:dataScroller
                                                            id="pager"
dir="ltr" style="text-align:left"

for="resultQureyTable"

pageCountVar="pageCount"

pageIndexVar="pageIndex"

rowsCountVar="rowsCount"

firstRowIndexVar="firstRowIndex"

displayedRowsCountVar="displayedRowsCount"
                                                            fastStep="10"

paginator="true"

paginatorMaxPages="3"

paginatorActiveColumnStyle="font-weight:bold;">
                                                               <f:facet
name="first" ><h:graphicImage border="0" alt="first"
url="/images/btn_first_16.gif"/></f:facet>
                                                               <f:facet
name="last"><h:graphicImage border="0" alt="last"
url="/images/btn_last_16.gif"/></f:facet>
                                                               <f:facet
name="previous"><h:graphicImage alt="previous" border="0"
url="/images/btn_prev_16.gif"/></f:facet>
                                                               <f:facet
name="next"><h:graphicImage border="0" alt="next"
url="/images/btn_next_16.gif"/></f:facet>

<h:outputLabel id="recordnumber" for="name" value="total:">

<h:outputText  id="sizeOfOtherProviders"  styleClass="textOutput"  value="
#{ searchResult.sizeOfQuery}" />

</h:outputLabel>

<h:outputText value=" | " />

<h:outputLabel id="timedurationlabel" for="name" value="time:">

<h:outputText  id="timeDuration"  styleClass="textOutput"  value="   #{
searchResult.searchTimeDuration} milliseconds" />

</h:outputLabel>
                                                               <f:param
value="#{rowsCount}/" />
                                                               <f:param
value="#{displayedRowsCount}" />
                                                               <f:param
value="#{firstRowIndex}" />
                                                               <f:param
value="#{lastRowIndex}" />
                                                               <f:param
value="#{pageIndex}" />
                                                               <f:param
value="#{pageCount}" />

</t:dataScroller>
                                    </h:panelGroup>
                                </f:facet>
                    </t:dataTable>
                </s:pprPanelGroup>
                      </h:panelGroup>


-------------

On 2/15/07, Gerald Müllan <[EMAIL PROTECTED]> wrote:
>
> Have you added the onchange="submit(this);"? You have to do a submit
> in order to get the interceptor fired.
>
> Please post the corresponding view- and src-code if this doesn`t help.
>
> On 2/15/07, Mohammad Norouzi < [EMAIL PROTECTED]> wrote:
> > Thank Gerald,
> > yes I have looked the link you sent, and I think everything is right
> in my
> > code.
> > you know, I have a combo box (selectOneMenu) and I want when user
> change it
> > (it displays possible rows per page for my dataTable) the dataTable
> > panelGroup get updated.
> > when I change the box, nothing happens, when I change again, it shows
> a box
> > with message
> > the proccess has been started already or something like this,
> >
> > it seems it is waiting for response from server, I am not sure.
> >
> > the thing I didnt add to my code is valueChangeListeer property for
> > selectOneMenu because I just want the dataTable being updated.
> >
> >
> > On 2/15/07, Gerald Müllan <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > the three resource loading errors should not matter, they are a
> > > "common" log statement since a few months. Did you have a look at
> our
> > > examples-page?
> > >
> > >
> > http://example.irian.at/example-sandbox-20070215/pprPanelGroup.jsf
> > >
> > > It works there without any problems. Any description of the problem
> > > with more details?  Maybe also the included source code helps.
> > >
> > > cheers,
> > >
> > > Gerald
> > >
> > > On 2/15/07, Mohammad Norouzi <[EMAIL PROTECTED]> wrote:
> > > > Hi all
> > > > I have latest version of sandbox 1.1.5 and I need to use
> > <s:pprPanelGroup>
> > > > but when the page loads the following error will be displayed and
> it
> > wont
> > > > work properly:
> > > >
> > > > ----
> > > > ERROR Unable to find resource src/dom/__package__.js for component
> > > > dojo.DojoResourceLoader . Check that this fi
> > > > le is available in the classpath in sub-directory /resource of the
>
> > > > package-directory.
> > > > ERROR Unable to find resource src/__package__.js for component
> > > > dojo.DojoResourceLoader . Check that this file i
> > > > s available in the classpath in sub-directory /resource of the
> > > > package-directory.
> > > > ERROR Unable to find resource __package__.js for component
> > > > dojo.DojoResourceLoader . Check that this file is av
> > > > ailable in the classpath in sub-directory /resource of the
> > > > package-directory.
> > > > ---
> > > >
> > > > I am using latest version of facelets as well and I added the
> following
> > tag
> > > > to sandbox.taglib.xml:
> > > >
> > > >     <tag>
> > > >         <tag-name>pprPanelGroup</tag-name>
> > > >        <component>
> > > >
> > > > <component-type> org.apache.myfaces.PPRPanelGroup
> > </component-type>
> > > >
> > <renderer-type>org.apache.myfaces.PPRPanelGroup
> > > > </renderer-type>
> > > >        </component>
> > > >    </tag>
> > > >
> > > > ----
> > > >
> > > > please help me out, I surfed web but found nothing.
> > > >
> > > > Thanks
> > > >
> > > > --
> > > > Regards,
> > > > Mohammad
> > >
> > >
> > > --
> > > http://www.irian.at
> > >
> > > Your JSF powerhouse -
> > > JSF Consulting, Development and
> > > Courses in English and German
> > >
> > > Professional Support for Apache MyFaces
> > >
> >
> >
> >
> > --
> > Regards,
> > Mohammad
>
>
> --
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>



--
Regards,
Mohammad




--
Regards,
Mohammad

Reply via email to