This discussion is archived
6 Replies Latest reply: Dec 8, 2012 1:12 AM by adf009 RSS

adftable loading as readonly

adf009 Explorer
Currently Being Moderated
hi my table columns are loading as disable even if i create table as not read only,i what my table to be in insert mode when page load,even if i click create button the next row come being disable am not able to enter new values am in jdeveloper 11.1.1.6.0,am using a bean not a VO
<af:table value="#{bindings.ocompanyofficerdetails1.collectionModel}"
                                      var="row"
                                      rows="#{bindings.ocompanyofficerdetails1.rangeSize}"
                                      emptyText="#{bindings.ocompanyofficerdetails1.viewable ? 'No data to display.' : 'Access Denied.'}"
                                      fetchSize="#{bindings.ocompanyofficerdetails1.rangeSize}"
                                      rowBandingInterval="0"
                                      selectedRowKeys="#{bindings.ocompanyofficerdetails1.collectionModel.selectedRow}"
                                      selectionListener="#{bindings.ocompanyofficerdetails1.collectionModel.makeCurrent}"
                                      rowSelection="single" id="t1"
                                      columnStretching="last" width="820"
                                      partialTriggers="cb1 cb2"
                                      columnSelection="single">
                              <af:column sortProperty="name" sortable="false"
                                         headerText="#{bindings.ocompanyofficerdetails1.hints.name.label}"
                                         id="c1" width="110">
                                <af:inputText value="#{row.bindings.name.inputValue}"
                                              label="#{bindings.ocompanyofficerdetails1.hints.name.label}"
                                              required="#{bindings.ocompanyofficerdetails1.hints.name.mandatory}"
                                              columns="#{bindings.ocompanyofficerdetails1.hints.name.displayWidth}"
                                              maximumLength="#{bindings.ocompanyofficerdetails1.hints.name.precision}"
                                              shortDesc="#{bindings.ocompanyofficerdetails1.hints.name.tooltip}"
                                              id="it10">
                                  <f:validator binding="#{row.bindings.name.validator}"/>
                                </af:inputText>
                              </af:column>
                              <af:column sortProperty="surname" sortable="false"
                                         headerText="#{bindings.ocompanyofficerdetails1.hints.surname.label}"
                                         id="c2" width="110">
                                <af:inputText value="#{row.bindings.surname.inputValue}"
                                              label="#{bindings.ocompanyofficerdetails1.hints.surname.label}"
                                              required="#{bindings.ocompanyofficerdetails1.hints.surname.mandatory}"
                                              columns="#{bindings.ocompanyofficerdetails1.hints.surname.displayWidth}"
                                              maximumLength="#{bindings.ocompanyofficerdetails1.hints.surname.precision}"
                                              shortDesc="#{bindings.ocompanyofficerdetails1.hints.surname.tooltip}"
                                              id="it8">
                                  <f:validator binding="#{row.bindings.surname.validator}"/>
                                </af:inputText>
                              </af:column>
                              <af:column sortProperty="contactnumber"
                                         sortable="false"
                                         headerText="#{bindings.ocompanyofficerdetails1.hints.contactnumber.label}"
                                         id="c4" width="110">
                                <af:inputText value="#{row.bindings.contactnumber.inputValue}"
                                              label="#{bindings.ocompanyofficerdetails1.hints.contactnumber.label}"
                                              required="#{bindings.ocompanyofficerdetails1.hints.contactnumber.mandatory}"
                                              columns="#{bindings.ocompanyofficerdetails1.hints.contactnumber.displayWidth}"
                                              maximumLength="#{bindings.ocompanyofficerdetails1.hints.contactnumber.precision}"
                                              shortDesc="#{bindings.ocompanyofficerdetails1.hints.contactnumber.tooltip}"
                                              id="it6">
                                  <f:validator binding="#{row.bindings.contactnumber.validator}"/>
                                </af:inputText>
                              </af:column>
                              <af:column sortProperty="emailaddress"
                                         sortable="false"
                                         headerText="#{bindings.ocompanyofficerdetails1.hints.emailaddress.label}"
                                         id="c5" width="110">
                                <af:inputText value="#{row.bindings.emailaddress.inputValue}"
                                              label="#{bindings.ocompanyofficerdetails1.hints.emailaddress.label}"
                                              required="#{bindings.ocompanyofficerdetails1.hints.emailaddress.mandatory}"
                                              columns="#{bindings.ocompanyofficerdetails1.hints.emailaddress.displayWidth}"
                                              maximumLength="#{bindings.ocompanyofficerdetails1.hints.emailaddress.precision}"
                                              shortDesc="#{bindings.ocompanyofficerdetails1.hints.emailaddress.tooltip}"
                                              id="it7">
                                  <f:validator binding="#{row.bindings.emailaddress.validator}"/>
                                </af:inputText>
                              </af:column>
                              <af:column sortProperty="ownership"
                                         sortable="false"
                                         headerText="#{bindings.ocompanyofficerdetails1.hints.ownership.label}"
                                         id="c3" width="67">
                                <af:selectBooleanCheckbox value="#{row.bindings.ownership.inputValue}"
                                                          label="#{row.bindings.ownership.label}"
                                                          shortDesc="#{bindings.ocompanyofficerdetails1.hints.ownership.tooltip}"
                                                          id="sbc1"/>
                              </af:column>
                              <af:column sortProperty="accountingofficer"
                                         sortable="false"
                                         headerText="#{bindings.ocompanyofficerdetails1.hints.accountingofficer.label}"
                                         id="c6" width="85">
                                <af:selectBooleanCheckbox value="#{row.bindings.accountingofficer.inputValue}"
                                                          label="#{row.bindings.accountingofficer.label}"
                                                          shortDesc="#{bindings.ocompanyofficerdetails1.hints.accountingofficer.tooltip}"
                                                          id="sbc2"/>
                              </af:column>
                              <af:column id="c7" width="174">
                                <af:panelFormLayout id="pfl1" rows="1"
                                                    maxColumns="2">
                                  <af:commandButton actionListener="#{bindings.Delete.execute}"
                                                    text="Delete"
                                                    disabled="#{!bindings.Delete.enabled}"
                                                    id="cb2"/>
                                  <af:commandButton actionListener="#{bindings.Create.execute}"
                                                    text="Create"
                                                    disabled="#{!bindings.Create.enabled}"
                                                    id="cb1"/>
                                </af:panelFormLayout>
                              </af:column>
                            </af:table>
Edited by: adf0994 on 2012/12/06 1:27 PM

Edited by: adf0994 on 2012/12/06 1:30 PM

Edited by: adf0994 on 2012/12/06 1:33 PM

Edited by: adf0994 on 2012/12/06 1:36 PM

Edited by: adf0994 on 2012/12/06 1:38 PM

Edited by: adf0994 on 2012/12/06 1:47 PM

Edited by: adf0994 on 2012/12/06 1:49 PM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points