This discussion is archived
3 Replies Latest reply: Nov 30, 2008 11:03 PM by Dilini RSS

[SOLVED] [ADF] Problem with Table PPR

563977 Newbie
Currently Being Moderated
Hi,

In my project i have a jspx page and inside I define a table like this:
<af:panelCollection inlineStyle="width:100%; height:100%;">
                      <af:table value="#{bindings.ProveedoresActividades1View1.collectionModel}"
                                var="row"
                                rows="#{bindings.ProveedoresActividades1View1.rangeSize}"
                                first="#{bindings.ProveedoresActividades1View1.rangeStart}"
                                emptyText="#{bindings.ProveedoresActividades1View1.viewable ? 'No rows yet.' : 'Access Denied.'}"
                                fetchSize="#{bindings.ProveedoresActividades1View1.rangeSize}"
                                filterModel="#{bindings.ProveedoresActividades1View1Query.queryDescriptor}"
                                queryListener="#{bindings.ProveedoresActividades1View1Query.processQuery}"
                                selectedRowKeys="#{bindings.ProveedoresActividades1View1.collectionModel.selectedRow}"
                                selectionListener="#{bindings.ProveedoresActividades1View1.collectionModel.makeCurrent}"
                                rowSelection="single" columnStretching="last"
                                varStatus="vs">
                        <af:column sortProperty="Codi" filterable="true"
                                   sortable="true"
                                   headerText="#{bindings.ProveedoresActividades1View1.hints.Codi.label}">
                          <af:outputText value="#{row.Codi}">
                            <af:convertNumber groupingUsed="false"
                                              pattern="#{bindings.ProveedoresActividades1View1.hints.Codi.format}"/>
                          </af:outputText>
                        </af:column>
                        <af:column sortProperty="TipoActividad"
                                   filterable="true" sortable="true"
                                   headerText="#{bindings.ProveedoresActividades1View1.hints.TipoActividad.label}">
                          <af:outputText value="#{row.TipoActividad}"/>
                        </af:column>
                        <af:column sortProperty="Homologado" filterable="true"
                                   sortable="true"
                                   headerText="#{bindings.ProveedoresActividades1View1.hints.Homologado.label}">
                          <af:outputText value="#{row.Homologado}"/>
                        </af:column>
                        <af:column sortProperty="FechaHomolog" filterable="true"
                                   sortable="true"
                                   headerText="#{bindings.ProveedoresActividades1View1.hints.FechaHomolog.label}">
                          <f:facet name="filter">
                            <af:inputDate value="#{vs.filterCriteria.FechaHomolog}"/>
                          </f:facet>
                          <af:outputText value="#{row.FechaHomolog}">
                            <af:convertDateTime pattern="#{bindings.ProveedoresActividades1View1.hints.FechaHomolog.format}"/>
                          </af:outputText>
                        </af:column>
                        <af:column sortProperty="CodiProv" filterable="true"
                                   sortable="true"
                                   headerText="#{bindings.ProveedoresActividades1View1.hints.CodiProv.label}">
                          <af:outputText value="#{row.CodiProv}"/>
                        </af:column>
                      </af:table>
                      <f:facet name="toolbar">
                        <af:toolbar>
                          <af:commandToolbarButton text="Crear nuevo proveedor"/>
                          <af:commandToolbarButton text="Ver/Modificar proveedor"/>
                          <af:commandToolbarButton actionListener="#{bindings.Delete.execute}"
                                                   text="Delete"
                                                   disabled="#{!bindings.Delete.enabled}"/>
                        </af:toolbar>
                      </f:facet>
                    </af:panelCollection>
When I execute this page, I try to select anything of this table (rows or buttons), it generates a PPR error. The print stack error is:

23-oct-2007 17:25:04 oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator handleError
GRAVE: Server Exception during PPR, #1
javax.el.PropertyNotFoundException: Target Unreachable, identifier 'vs' resolved to null
     at com.sun.el.parser.AstValue.getTarget(AstValue.java:66)
     at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:125)
     at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:230)
     at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:416)
     at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.wasSubmitted(EditableValueRenderer.java:359)
     at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.decodeInternal(EditableValueRenderer.java:116)
     at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputDateRenderer.decodeInternal(SimpleInputDateRenderer.java:73)
     at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.decodeInternal(LabeledInputRenderer.java:54)
     at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:233)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1058)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:683)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:784)
     at org.apache.myfaces.trinidad.component.UIXEditableValue.processDecodes(UIXEditableValue.java:236)
     at org.apache.myfaces.trinidad.component.UIXCollection.processComponent(UIXCollection.java:919)
     at org.apache.myfaces.trinidad.component.TableUtils$1.process(TableUtils.java:238)
     at org.apache.myfaces.trinidad.component.ChildLoop.runAlways(ChildLoop.java:55)
     at org.apache.myfaces.trinidad.component.TableUtils.__processFacets(TableUtils.java:232)
     at org.apache.myfaces.trinidad.component.TableUtils$2.process(TableUtils.java:261)
     at org.apache.myfaces.trinidad.component.ChildLoop.runAlways(ChildLoop.java:55)
     at org.apache.myfaces.trinidad.component.ChildLoop.runAlways(ChildLoop.java:48)
     at org.apache.myfaces.trinidad.component.TableUtils.__processColumnFacets(TableUtils.java:253)
     at org.apache.myfaces.trinidad.component.UIXTable.processFacetsAndChildren(UIXTable.java:306)
     at org.apache.myfaces.trinidad.component.UIXCollection.decodeChildrenImpl(UIXCollection.java:196)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:925)
     at org.apache.myfaces.trinidad.component.UIXCollection.processDecodes(UIXCollection.java:190)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1128)
     at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:987)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:137)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:137)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:647)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
     at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:647)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:296)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:174)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:171)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
     at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:135)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:284)
     at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:69)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:284)
     at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:74)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:284)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
     at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:611)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:362)
     at com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:915)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:821)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:626)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:599)
     at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:383)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:161)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:142)
     at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
     at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:878)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
     at java.lang.Thread.run(Thread.java:595)


Any suggestion for this problem??

Thanks at all.

XerX
  • 1. Re: [ADF] Problem with Table PPR
    436787 Newbie
    Currently Being Moderated
    The following line in your code appears to be incorrect. Comment the facet out and see if the fixes the issue.
        
                          <f:facet name="filter">
                                <af:inputDate value="#{vs.filterCriteria.FechaHomolog}"/>
                              </f:facet>
    --Ric                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
  • 2. Re: [ADF] Problem with Table PPR
    563977 Newbie
    Currently Being Moderated
    Thanks a lot Ric! It works now!

    XerX
  • 3. ADF table with "Select one choice" header
    Dilini Newbie
    Currently Being Moderated
    hi

    I create read only table. now I want change one colum header label to "Select one choice- LOV". When select value in colum header, want to filter table data according to selected value in LOV. How can I achive this?