Editable Table in JSF

Hi all,
I have a question about datatable rows changing from outputting info to allowing input!
Basically, I want to edit rows in my DataTable so that when a user clicks on a checkbox at the end of a row the values in that row change to textboxs, dropdown lists etc.
I currently have it so that the editing takes place on a different page and the info is carried over but it would be a lot easier if I could do it in the table itself.
Thanks very much for any help offered!
Illu

BalusC,
I believe I have a simlar issue could your code examples also help me?
I have a datatable that contains several columns. I have a valueChangeListener on one of my columns (itemTypesSI) that calls a method to populate the selectItems values in itemList. However, the method is populating itemList for ALL rows. I need it to populate itemList for only the ONE particular row that I change. What is the cleanest way to do so? Below is the code I created:
JSP:
<h:dataTable id="transTable" value="#{TransactionBean.transactionItems}" var="transItem" binding="#{TransactionBean.dataTable}">
<h:column>
<f:facet name="header" >
<h:outputText value="#{msg.itemType}" />
</f:facet>
<af:selectOneChoice value="#{transItem.itemTypeId}" required="true" id="itmTypId"
valueChangeListener="#{TransactionBean.itemTypeIdChanged}" onclick="submit()" immediate="true" >
<f:selectItems value="#{TransactionBean.itemTypesSI}" />
</af:selectOneChoice>
<h:message for="itmTypId" />
</h:column>
<h:column>
<f:facet name="header" >
<h:outputText value="#{msg.item}" />
</f:facet>
<af:selectOneChoice value="#{transItem.itemId}" required="true" id="itmId" rendered="true" >
<f:selectItems value="#{TransactionBean.itemList}" />
</af:selectOneChoice>
<h:message for="itmId" />
</h:column>
BACKING BEAN CODE:
public void itemTypeIdChanged(ValueChangeEvent event) {
String value = event.getNewValue().toString();
if (value != null) {
itemList = getItemsForTypeIdSI(value);
FacesContext context = FacesContext.getCurrentInstance();
context.renderResponse();
Thanks!

Similar Messages

  • How to edit database table in jsf

    Hi all!
    Can anyone give me some clue or link on editing database table in jsf, i have got the database table values shown using h:dataTable but i'm unable to edit and save them in database,i also want to perform jsf validation while editing so that illegal values may not be entered?
    Thanks in advance.

    Tougher than what? I suggest you try again. It is all there, including sample code, which is a lot more than you're ever going to get here. If you have a specific question, ask it. But just bleating that it's all too hard isn't going to get you anywhere, here as in life.

  • Inserting Rows in an Editable Table

    Application Focus: JSF with ADF/BC.
    watching Steve Muench´s Screencast on "Creating an Editable Table with a Dropdown List in Each Row" i was inspired to add a functionality to add rows.
    Lets say i have an Employee and Departments table. If i want to add three new employees in the employee editable table - that wont work - it seems that adding rows aint that simple, cause it seems not possible to commit more than one row at a time
    what i did according to forum posts and how-to´s:
    1. dropped "insert" from data control palette
    2. altered binding to from create to "CreateInsert"
    works ok, but if i press the button twice (3x, 4x) the new rows are shown, but if i commit them, only one is in the database?
    Any tips on that would be appreciated.

    I'm trying to a similar thing, create an input screen that allows you to add muliple rows at the same time some rows having a drop down list. I've read the following How to which lets me edit multiple rows but if I add a create button or a CreateInsert button it doesnt seem to give me rows to create.
    How To Create Multi Row Edit Forms in a JSP Page with Oracle JDeveloper 10g
    http://www.oracle.com/technology/products/jdev/tips/mills/JSP_Multi_Row_Edits.html

  • Help! Hit an wierd exception when edit a column in editable table

    I created a view object with 3 entities objects (3 tables) in model project and drag view object into jsf page to create as an edit table in view controller project.
    when I run this jsf page and update the value for a column of one row in the page, hit below exeception?
    I try to find the reason but failed. appreciate if anybody can help. thanks.
    The date string "2013-10-06 01:00:00.0" is for YardFixedSlotRecomm.START_DT and I didn't change this value. it seems that it is using "2013-10-06 01:00:00.0" to set YardFixedSlot.FIXED_SLOT_ID value and no idea about why ADF is doing this and I tested view object and it can work, but when it is used in web app, problem occurred.
    Root cause error code is JBO-25009. Error message parameters are {0=java.lang.Integer, 1=2013-10-06 01:00:00.0, 2=java.sql.Timestamp}
    SQL queries in View objects and row key should contains:  YardFixedSlot.FIXED_SLOT_ID,YardBlock.BLOCK_M AS BLOCK_M1, FxedSlotRecomm.FIXED_SLOT_ID AS FIXED_SLOT_ID1,YardFixedSlotRecomm.START_DT.
    SELECT YardFixedSlot.BLOCK_M,
           YardFixedSlot.BLOCK_N,
           YardFixedSlot.FIXED_SLOT_ID,
           YardFixedSlot.SECTION_N,
           YardFixedSlot.STATUS_C,
           YardFixedSlot.TERMINAL_C,
           YardBlock.BLOCK_M AS BLOCK_M1,
           YardBlock.BLOCK_N AS BLOCK_N1,
           YardBlock.DISPLAY_COLUMN_N,
           YardBlock.DISPLAY_ROW_N,
           YardBlock.DISPLAY_SLOT_OFFSET_N,
           YardBlock.LINEAR_REGION_N,
           YardBlock.LINEAR_SEQ_N,
           YardBlock.MAX_STACK_WEIGHT_Q,
           YardBlock.PATH_DATA_X,
           YardBlock.ROW_FROM_N,
      YardBlock.ROW_NUMBER_DIRECTION_C,
           YardBlock.ROW_TO_N,
      YardBlock.SECTION_N AS SECTION_N1,
           YardBlock.SLOT_FROM_N,
           YardBlock.SLOT_NUMBER_DIRECTION_C,
           YardBlock.SLOT_NUMBER_TYPE_C,
           YardBlock.SLOT_TO_N,
           YardBlock.STATUS_C AS STATUS_C1,
           YardBlock.TERMINAL_C AS TERMINAL_C1,
           YardFixedSlotRecomm.CREATE_DT,
           YardFixedSlotRecomm.END_DT,
           YardFixedSlotRecomm.FIXED_SLOT_ID AS FIXED_SLOT_ID1,
           YardFixedSlotRecomm.RECOMMENDATION_C,
           YardFixedSlotRecomm.START_DT
    FROM  CITOSADMIN.YARD_FIXED_SLOT YardFixedSlot, CITOSADMIN.YARD_BLOCK YardBlock, CITOSADMIN.YARD_FIXED_SLOT_RECOMM YardFixedSlotRecomm
    (YardFixedSlot.BLOCK_M = YardBlock.BLOCK_M(+)) AND (YardFixedSlot.FIXED_SLOT_ID = YardFixedSlotRecomm.FIXED_SLOT_ID(+))
    Exception detail:
    [2013-12-04T10:30:21.873+08:00] [DefaultServer] [ERROR] [] [oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 676653a7-bc31-46c9-ba9c-6a394c0b9ff1-000002d0,0] [APP: YPCApp] [DSID: 0000KAvRxpz5qYWFLzmJOA1IbbbH00000A] ADF_FACES-60096:Server Exception during PPR, #3[[
    oracle.jbo.domain.DataCreationException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25009. Error message parameters are {0=java.lang.Integer, 1=2013-10-06 01:00:00.0, 2=java.sql.Timestamp}
    at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:933)
    at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:112)
    at oracle.jbo.server.AttributeDefImpl.convertToJava(AttributeDefImpl.java:2515)
    at oracle.jbo.server.ViewRowSetImpl.prepKeyForFind(ViewRowSetImpl.java:5666)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5683)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5585)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5579)
    at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:12554)
    at oracle.jbo.uicli.binding.JUCtrlHierBinding.bringNodeToRangeKeyPath(JUCtrlHierBinding.java:846)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding.bringNodeToRangeKeyPath(FacesCtrlHierBinding.java:122)
    at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowKey(RowDataManager.java:131)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowKey(FacesCtrlHierBinding.java:951)
    at org.apache.myfaces.trinidad.component.UIXCollection.setRowKey(UIXCollection.java:527)
    at org.apache.myfaces.trinidad.component.UIXTable.setRowKey(UIXTable.java:760)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRendererUtils.isRowAvailable(TableRendererUtils.java:1825)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRendererUtils.processAutoPPRUpdate(TableRendererUtils.java:412)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderModelChanges(TableRenderer.java:1075)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:627)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:650)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGridLayoutRenderer.encodeCellComponent(PanelGridLayoutRenderer.java:1205)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellChildrenEncoderCallback.processComponent(CellChildrenEncoderCallback.java:38)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellChildrenEncoderCallback.processComponent(CellChildrenEncoderCallback.java:20)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:195)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:326)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:245)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellEncoderCallback.processComponent(CellEncoderCallback.java:271)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellEncoderCallback.processComponent(CellEncoderCallback.java:24)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:195)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:326)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:245)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.RowEncoderCallback.processComponent(RowEncoderCallback.java:74)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.RowEncoderCallback.processComponent(RowEncoderCallback.java:22)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:195)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:326)
    at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:291)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGridLayoutRenderer._encodeAllOrVisitChildrenForEncodingImpl(PanelGridLayoutRenderer.java:1036)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGridLayoutRenderer.encodeAll(PanelGridLayoutRenderer.java:314)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
    at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3195)
    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:275)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
    at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3195)
    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1473)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at oracle.adfinternal.view.faces.context.PartialViewContextImpl._processRender(PartialViewContextImpl.java:304)
    at oracle.adfinternal.view.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:159)
    at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:981)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
    at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:102)
    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:391)
    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
    at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:338)
    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)
    at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1104)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:303)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:208)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:225)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3367)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
    at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
    Caused by: java.lang.NumberFormatException: For input string: "2013-10-06 01:00:00.0"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:492)
    at java.lang.Integer.<init>(Integer.java:677)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at oracle.jbo.domain.TypeConvMapEntry.convert(TypeConvMapEntry.java:101)
    at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:883)
    ... 118 more
    ## Detail 0 ##
    java.lang.NumberFormatException: For input string: "2013-10-06 01:00:00.0"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:492)
    at java.lang.Integer.<init>(Integer.java:677)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at oracle.jbo.domain.TypeConvMapEntry.convert(TypeConvMapEntry.java:101)
    at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:883)
    at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:112)
    at oracle.jbo.server.AttributeDefImpl.convertToJava(AttributeDefImpl.java:2515)
    at oracle.jbo.server.ViewRowSetImpl.prepKeyForFind(ViewRowSetImpl.java:5666)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5683)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5585)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5579)
    at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:12554)
    at oracle.jbo.uicli.binding.JUCtrlHierBinding.bringNodeToRangeKeyPath(JUCtrlHierBinding.java:846)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding.bringNodeToRangeKeyPath(FacesCtrlHierBinding.java:122)
    at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowKey(RowDataManager.java:131)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowKey(FacesCtrlHierBinding.java:951)
    at org.apache.myfaces.trinidad.component.UIXCollection.setRowKey(UIXCollection.java:527)
    at org.apache.myfaces.trinidad.component.UIXTable.setRowKey(UIXTable.java:760)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRendererUtils.isRowAvailable(TableRendererUtils.java:1825)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRendererUtils.processAutoPPRUpdate(TableRendererUtils.java:412)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderModelChanges(TableRenderer.java:1075)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:627)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:650)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGridLayoutRenderer.encodeCellComponent(PanelGridLayoutRenderer.java:1205)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellChildrenEncoderCallback.processComponent(CellChildrenEncoderCallback.java:38)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellChildrenEncoderCallback.processComponent(CellChildrenEncoderCallback.java:20)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:195)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:326)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:245)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellEncoderCallback.processComponent(CellEncoderCallback.java:271)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellEncoderCallback.processComponent(CellEncoderCallback.java:24)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:195)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:326)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:245)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.RowEncoderCallback.processComponent(RowEncoderCallback.java:74)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.RowEncoderCallback.processComponent(RowEncoderCallback.java:22)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:195)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:326)
    at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:291)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGridLayoutRenderer._encodeAllOrVisitChildrenForEncodingImpl(PanelGridLayoutRenderer.java:1036)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGridLayoutRenderer.encodeAll(PanelGridLayoutRenderer.java:314)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
    at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3195)
    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:275)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
    at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3195)
    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1473)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at oracle.adfinternal.view.faces.context.PartialViewContextImpl._processRender(PartialViewContextImpl.java:304)
    at oracle.adfinternal.view.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:159)
    at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:981)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
    at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:102)
    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:391)
    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
    at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:338)
    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)
    at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1104)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:303)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:208)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:225)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3367)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
    at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)

    I am using JDeveloper 12c.
    I want to know why ADF selected input string: "2013-10-06 01:00:00.0"  for parsing? maybe it took wrong value. I just made one column: YardFixedSlot.STATUS_C ediable. input string: "2013-10-06 01:00:00.0" is a value for row key column: YardFixedSlotRecomm.START_DT.
    The row key compose of 4 columns with  respective types: [Interger,String ,Interger, Timestamp]
    YardFixedSlot.FIXED_SLOT_ID
    YardBlock.BLOCK_M AS BLOCK_M1
    FxedSlotRecomm.FIXED_SLOT_ID AS FIXED_SLOT_ID1
    YardFixedSlotRecomm.START_DT
    But error message show 3 parameters:
    Root cause error code is JBO-25009. Error message parameters are {0=java.lang.Integer, 1=2013-10-06 01:00:00.0, 2=java.sql.Timestamp}

  • ADF Master Form / Detail editable table : how to update the table ?

    Hello,
    I'm using ADF faces with entity objects.
    Here is a simple explanation of the model :
    Table DOCUMENT --> Table LINEA DOCUMENT can have 0 or several row in the LINE table. Model is quite simple.
    I'd like to create JSF pages to create and update DOCUMENT/LINE items.
    I began with the Edit one :
    In my DataControls I have something like :
    AllDocuments
    |
    +- Id
    |
    +- Name
    |
    +-> AllDocumentLines
          |
          +- IdLine
          |
          +- ValueI created a form with the "AllDocuments" items having navigation and submit button.
    I created an editable table with "AllDocumentLines" items.
    The values are correctly filled.
    My questions are :
    - Which kind of "button" I have to add at the end of each row of the table to :
    * validate the update if "Value" changes ? I tried to drag/drop the related Create button but it stays disabled.
    * delete the row
    - Which button can I put to "Add" a new row ?
    I searched the forum but can't find answers of my problem.
    Edit: I'm using JDeveloper 11.1.1.3.0
    Edited by: Christophe on Jul 2, 2010 5:12 PM

    For creating a record drag the createInsert operation and for delete drag the delete operation - just make sure to drag the operation from the right VO in the data control palette.
    The you can drag the commit and rollback operations from the AM level - and you can change the "Disabled" properties of the buttons to false.

  • 30EA3 - Edit Table/Create Table(Advanced) - Table Name, Text Box Size

    I am not sure if its the same on non-Linux versions, but in the edit table dialog, the table name text box size is tiny. Its only wide enough that you can see approx 7 chars.
    Is it possible to increase this? The size of the text box in the simple create table dialog seems like a good size. As far as I can tell, it is not tiny to conserve space for other items.
    Anyway, it's just a minor issue that wont prevent me from doing work - just think it'd be better a bit bigger. I am sure it didn't used to be this small.
    Ta,
    Trent

    oh interesting.
    are you using openJDK?
    $ /usr/lib/jvm/java-6-sun-1.6.0.22/bin/java -version
    java version "1.6.0_22"
    Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
    Ta,
    Trent

  • Not able to figure out the table index for Edit table User Properties Dialo

    Studio Edition Version 11.1.1.0.0
    Build JDEVADF_MAIN.D5PRIME_GENERIC_080403.0915.4920
    I'm trying to automate the various features in Jdeveloper dialogs. At one point I got struck with table in Edit Table Dialog.
    Right Click on New -> Database Tier-> Select APPS: Import to offline database Objects. Step 1- Step5 dialogs comes up. Click on Next till finish button comes up. After that one table along with xdf file will be shown in the Jdeveloper Tree Menu. Right click on Table, Go to Properties. Then Select User Properties in the Left Pane. On Right Side table will be shown. I want to know what is the index for this table and also I need to input certain text and select some drop downs from this table.
    Automation Tool: JFCUnit
    Could you please tell how can I put values in some of the fields and select the values from the drop downs.
    Kindly let me know if you need any more Information for the same.

    Hi,
    if you are from Oracle, please use an internal forum. If not, the JDeveloper 11 forum is at: JDeveloper and OC4J 11g Technology Preview
    Frank

  • Hiding the columns in data table in jsf

    Hi Guys,
    I have stuck one situation in my project . i.e i want to hide the columns in Data table in jsf.
    Please response this mail.
    Thanks
    Narne

    See this...
    [http://forum.java.sun.com/thread.jspa?threadID=5119514&messageID=9938606]

  • Using the enter key on an editable table

    Hi,
    I'm using 11g adf and I can't figure out how to get past this:
    When going through an editable table (with editingMode="editAll") using the enter key, it will stop after a certain number of rows, equal to the value of fetchSize. If I want to go down further, I have to scroll down another way to make it fetch the next set of rows, it won't go to the next row with the enter key. It simply won't execute the query to fetch the next rows.
    Increasing the fetchSize will just delay the problem to a row further down (and decrease the performance since the fetch operation can take quite a bit longer).
    I've tried to put a clientListener on both the table or the inputText fields to intercept the enter key, but that won't work when the table is in editable mode.
    Is there any way to fix this problem?

    Hi,
    I've tried to put a clientListener on both the table or the inputText fields to intercept the enter key, but that won't work when the table is in editable mode.
    The clientListener needs to be on the inputText fields. Then in JS you need to call a server listener which will check if the current row is already at the range end and if calls NextSet (you can provide this as a method binding). Unfortunately after this you will need to PPR the table to show the new rows. This is how I would try it.
    Frank

  • On a web page with an editable table, the delete row function no longer works (the little circle with X button)

    When you try to delete a row in an editable table using the built-in functions, it no longer works. We use this function regularly and just noticed this problem today. The "create row above" and "create row below" functions work, just not the delete. The delete column button does work however, so it's a bit baffling why this one function does not work. (The pages are located on our internal server so are not publicly accessible but the functionality is built into firefox.)

    Same problem here. I found out that when you have a table with only 1 row, it works fine, but when you have multiple rows, it doesn't work on any row.
    Micmark, do you have that too?
    P.S. I also tried this outside our CMS, by using Firebug to add a contenteditable="true" on a DIV in a normal font-end template, and that has the same problem.

  • How to create an editable table in ADF 10g??

    Hi,
    I want to create a editable table using the Jdev 10g.. so that i can do read and write on the table. Can anyone tell me how i can create it...
    thanks in advance

    Hi,
    using ADF BC and ADF, one of the options when dragging a ViewObject from the data control palette is ADF Table. This creates an updateable table
    Frank

  • ADF Faces Dependent list boxes in an editable table

    Hi,
    I'm working with JDeveloper 10.1.3.1.0.
    I saw the topic "How to build dependent list boxes with ADF II" on F. Nimphius' Blogbuster.
    There it is shown how to handle dependent list boxes in an ADF Faces form. I tried this for an editable table but it doesn't work correctly: If there is more than one row in the resultset of the table, both dependent list boxes have the same content in all the rows though the content in the database is different.
    Can anyone help me?
    Thanks.

    Ok - I will try.
    I built the listboxes like it is described in "ADF Faces: How to built dependent lists boxes with ADF and ADF Faces Part II", Frank Nimphius' Blogbuster July, 2006.
    This is the full code of my ManagedBean:
    package asdb.view.backing;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    import javax.faces.event.ValueChangeEvent;
    import javax.faces.model.SelectItem;
    import oracle.adf.model.OperationBinding;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.view.faces.component.core.input.CoreInputText;
    import oracle.binding.BindingContainer;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.client.Configuration;
    import oracle.jbo.uicli.binding.JUCtrlValueBindingRef;
    public class AktMitFktEdit {
    private BindingContainer bindings;
    public AktMitFktEdit() {
    public void kategorieWechsel(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    BindingContainer bc = this.getBindings();
    DCIteratorBinding kategorienIter = (DCIteratorBinding)
    bc.get("OrganKategIterator1");
    Row rw =
    kategorienIter.getRowAtRangeIndex(((Integer)valueChangeEvent.getNewValue()).intValue());
    String kategorie = (String)rw.getAttribute("Kategorie");
    OperationBinding opBindingOrganeLovIter = (OperationBinding)bc.get("ExecuteWithParams");
    opBindingOrganeLovIter.getParamsMap().put("kategorieParam",kategorie);
    opBindingOrganeLovIter.execute();
    public void setBindings(BindingContainer bindings)
    this.bindings = bindings;
    public BindingContainer getBindings() {
    return bindings;
    It works fine, when the user only want to update existing rows. But if he had inserted a new row and afterwards want to update existing rows, the listboxes don't show the correct contents. No error messages are displayed.

  • ADF editable table issue

    Hi, I drag and drop an expert mode updatable VO to create an ADF editable table with inputText components associated with the table columns. This table is also binded to a CoreTable object inside the backing bean of the page. I also have a "Save" button which has actionLister binded to the backing bean to handle the saving for user's input data.
    Basically, I have 2 rows and 2 columns for the editable table. I entered "ABC" for the first row and first column and entered "DEF" for the second row and first column like the following:
    | Column 1 | Column 2 |
    | ABC | |
    | DEF | |
    In the backing bean's saveChanges method, I do:
    public void saveChanges(ActionEvent actionEvent) {
    int rowCount = this.testCaseTable.getRowCount();
    for (int i=0; i<rowCount; i++) {
    JUCtrlValueBindingRef rowDef = (JUCtrlValueBindingRef)this.testCaseTable.getRowData(i);
    TestCaseRowImpl row = (TestCaseRowImpl )rowDef.getRow();
    System.out.println("Column1 Data: "+row.getColumn1());
    System.out.println("Column2 Data: "+row.getColumn2());
    I am expecting to get "ABC" for the first row column1 data and "DEF" for the second row column1 data. However, the actual result is both "DEF" (the last entered value) for both the first and second row column1 data.
    What can be the potential issues of my codes? How can I get the correct user input data?
    Thanks.

    Hi
    You can obtain this data from iterator:
    DCBindingContainer bc = getBindings()
    DCIteratorBinding iter = bc.get("YourIteratorNameIterator");
    while(iter.hasNext()){
    Row row = iter.next()
    System.out.println("Column1 Data: "+row.getAttribute("Column1"));
    System.out.println("Column2 Data: "+row.getColumn2("Column2"));
    Kuba

  • 3.0.02 EA1 - Edit table data in a grid

    Editing table data in a grid is broken in 3.0.02 EA1 under Windows XP Pro SP3
    Bug #1: When not in editing mode the cursor keys must move the focus from a cell to cell. Instead an edit mode is activated
    Bug #2: There is no way to leave cell edit mode using keyboard. Esc must cancel the edit, Return-key must confirm at switch to the next cell. Have to use mouse...

    I just tried on my VM and i don't see this behaviour on 3.0.
    What i do see is that Bug number 9201495 is still available although i reported this issue on 2.1
    Updating the columns in Data Tab - is a bit awkward

  • Theme Editor: where to change backgroundcolor of editable table cells?

    Hi all,
    I need to change the color of an editable table cell.
    I navigated to the theme editor --> tables.There is a section "Editable Tables". The preview shows an example with three columns and tree rows. I want to change the backgroundcolor of the cell in the first row, third column (in SAP standard it is lightgrey).
    The backgroundcolor of the rows beneath can be changed in section "Selected Cells", the backgroundcolor of the first two columns in the first row can be changed by "Background Color of Standard Table Cell" but I can't find the field where I can change the color of the last cell.
    Best regards,
    Sandra

    Hi,
    The blue color come from your definitions on "Labels and Fields" to read-only color of input field.
    Regards,
    F.F

Maybe you are looking for