2 Replies Latest reply: May 30, 2012 1:26 PM by Tshifhiwa RSS

    not able to create and save record in my UI

    Tshifhiwa
      Hi am not able to create and save records in my userInterface ,but when i test my business services i dont have a problem my xml is
      <?xml version='1.0' encoding='UTF-8'?>
      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
      xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
      <af:document title="sms9300.jspx" id="d1">
      <af:messages id="m1"/>
      <af:form id="f1">
      <af:decorativeBox theme="dark" id="db1">
      <f:facet name="center">
      <af:panelCollection id="pc1" inlineStyle="color:Black;">
      <f:facet name="menus"/>
      <f:facet name="toolbar">
      <af:toolbar id="t2">
      *<af:commandButton actionListener="#{bindings.CreateInsert.execute}"*
      text="CreateInsert" disabled="#{!bindings.CreateInsert.enabled}"
      id="cb1"/>
      *<af:commandButton actionListener="#{bindings.Commit.execute}" text="Save" id="cb2"/>*
      <af:commandButton text="ResertPassword" id="cb3"/>
      </af:toolbar>
      </f:facet>
      <f:facet name="statusbar"/>
      <af:table value="#{bindings.sms_users.collectionModel}" var="row"
      rows="#{bindings.sms_users.rangeSize}"
      emptyText="#{bindings.sms_users.viewable ? 'No data to display.' : 'Access Denied.'}"
      fetchSize="#{bindings.sms_users.rangeSize}" rowBandingInterval="0" id="t1"
      partialTriggers="::cb1">
      <af:column sortProperty="#{bindings.sms_users.hints.Fax.name}" sortable="false"
      headerText="#{bindings.sms_users.hints.Fax.label}" id="c1">
      <af:inputText value="#{row.bindings.Fax.inputValue}"
      label="#{bindings.sms_users.hints.Fax.label}"
      required="#{bindings.sms_users.hints.Fax.mandatory}"
      columns="#{bindings.sms_users.hints.Fax.displayWidth}"
      maximumLength="#{bindings.sms_users.hints.Fax.precision}"
      shortDesc="#{bindings.sms_users.hints.Fax.tooltip}" id="it1">
      <f:validator binding="#{row.bindings.Fax.validator}"/>
      </af:inputText>
      </af:column>
      <af:column sortProperty="#{bindings.sms_users.hints.Initials.name}" sortable="false"
      headerText="#{bindings.sms_users.hints.Initials.label}" id="c2">
      <af:inputText value="#{row.bindings.Initials.inputValue}"
      label="#{bindings.sms_users.hints.Initials.label}"
      required="#{bindings.sms_users.hints.Initials.mandatory}"
      columns="#{bindings.sms_users.hints.Initials.displayWidth}"
      maximumLength="#{bindings.sms_users.hints.Initials.precision}"
      shortDesc="#{bindings.sms_users.hints.Initials.tooltip}" id="it2">
      <f:validator binding="#{row.bindings.Initials.validator}"/>
      </af:inputText>
      </af:column>
      <af:column sortProperty="#{bindings.sms_users.hints.Name.name}" sortable="false"
      headerText="#{bindings.sms_users.hints.Name.label}" id="c3">
      <af:inputText value="#{row.bindings.Name.inputValue}"
      label="#{bindings.sms_users.hints.Name.label}"
      required="#{bindings.sms_users.hints.Name.mandatory}"
      columns="#{bindings.sms_users.hints.Name.displayWidth}"
      maximumLength="#{bindings.sms_users.hints.Name.precision}"
      shortDesc="#{bindings.sms_users.hints.Name.tooltip}" id="it3">
      <f:validator binding="#{row.bindings.Name.validator}"/>
      </af:inputText>
      </af:column>
      <af:column sortProperty="#{bindings.sms_users.hints.Phone.name}" sortable="false"
      headerText="#{bindings.sms_users.hints.Phone.label}" id="c4">
      <af:inputText value="#{row.bindings.Phone.inputValue}"
      label="#{bindings.sms_users.hints.Phone.label}"
      required="#{bindings.sms_users.hints.Phone.mandatory}"
      columns="#{bindings.sms_users.hints.Phone.displayWidth}"
      maximumLength="#{bindings.sms_users.hints.Phone.precision}"
      shortDesc="#{bindings.sms_users.hints.Phone.tooltip}" id="it4">
      <f:validator binding="#{row.bindings.Phone.validator}"/>
      </af:inputText>
      </af:column>
      <af:column sortProperty="#{bindings.sms_users.hints.Surname.name}" sortable="false"
      headerText="#{bindings.sms_users.hints.Surname.label}" id="c6">
      <af:inputText value="#{row.bindings.Surname.inputValue}"
      label="#{bindings.sms_users.hints.Surname.label}"
      required="#{bindings.sms_users.hints.Surname.mandatory}"
      columns="#{bindings.sms_users.hints.Surname.displayWidth}"
      maximumLength="#{bindings.sms_users.hints.Surname.precision}"
      shortDesc="#{bindings.sms_users.hints.Surname.tooltip}" id="it6">
      <f:validator binding="#{row.bindings.Surname.validator}"/>
      </af:inputText>
      </af:column>
      <af:column sortProperty="#{bindings.sms_users.hints.Title.name}" sortable="false"
      headerText="#{bindings.sms_users.hints.Title.label}" id="c7">
      <af:inputText value="#{row.bindings.Title.inputValue}"
      label="#{bindings.sms_users.hints.Title.label}"
      required="#{bindings.sms_users.hints.Title.mandatory}"
      columns="#{bindings.sms_users.hints.Title.displayWidth}"
      maximumLength="#{bindings.sms_users.hints.Title.precision}"
      shortDesc="#{bindings.sms_users.hints.Title.tooltip}" id="it7">
      <f:validator binding="#{row.bindings.Title.validator}"/>
      </af:inputText>
      </af:column>
      <af:column sortProperty="#{bindings.sms_users.hints.UserId.name}" sortable="false"
      headerText="#{bindings.sms_users.hints.UserId.label}" id="c8">
      <af:inputText value="#{row.bindings.UserId.inputValue}"
      label="#{bindings.sms_users.hints.UserId.label}"
      required="#{bindings.sms_users.hints.UserId.mandatory}"
      columns="#{bindings.sms_users.hints.UserId.displayWidth}"
      maximumLength="#{bindings.sms_users.hints.UserId.precision}"
      shortDesc="#{bindings.sms_users.hints.UserId.tooltip}" id="it8">
      <f:validator binding="#{row.bindings.UserId.validator}"/>
      </af:inputText>
      </af:column>
      </af:table>
      </af:panelCollection>
      </f:facet>
      </af:decorativeBox>
      </af:form>
      </af:document>
      </f:view>
      </jsp:root>

      my business service xml is
      <?xml version="1.0" encoding="windows-1252" ?>
      <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
      <!---->
      <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="sms_users"
      Version="11.1.2.60.81"
      BindingStyle="OracleName"
      CustomQuery="true"
      RowClass="sms9300.sms_usersRowImpl"
      ComponentClass="sms9300.sms_usersImpl"
      DefClass="sms9300.sms_usersDefImpl"
      PageIterMode="Full"
      UseGlueCode="false"
      RowInterface="sms9300.common.sms_usersRow"
      ClientRowProxyName="sms9300.client.sms_usersRowClient">
      <DesignTime>
      <Attr Name="_codeGenFlag2" Value="Access|Def|Coll|Prog|VarAccess"/>
      <Attr Name="_isExpertMode" Value="true"/>
      <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
      <Properties>
      <SchemaBasedProperties>
      <LABEL
      ResId="sms9300.sms_users_LABEL"/>
      </SchemaBasedProperties>
      </Properties>
      <SQLQuery><![CDATA[SELECT SmsUsersEO.FAX,
             SmsUsersEO.ID,
             SmsUsersEO.INITIALS,
             SmsUsersEO.NAME,
             SmsUsersEO.PHONE,
             SmsUsersEO.PWD,
             SmsUsersEO.SURNAME,
             SmsUsersEO.TITLE,
             SmsUsersEO.USER_ID
      FROM SMS_USERS SmsUsersEO]]></SQLQuery>
      <EntityUsage
      Name="SmsUsersEO"
      Entity="Entity.SmsUsersEO"/>
      <ViewAttribute
      Name="Fax"
      PrecisionRule="true"
      EntityAttrName="Fax"
      EntityUsage="SmsUsersEO"
      AliasName="FAX"/>
      <ViewAttribute
      Name="Id"
      IsQueriable="false"
      IsNotNull="true"
      PrecisionRule="true"
      EntityAttrName="Id"
      EntityUsage="SmsUsersEO"
      AliasName="ID"/>
      <ViewAttribute
      Name="Initials"
      PrecisionRule="true"
      EntityAttrName="Initials"
      EntityUsage="SmsUsersEO"
      AliasName="INITIALS"/>
      <ViewAttribute
      Name="Name"
      IsNotNull="true"
      PrecisionRule="true"
      EntityAttrName="Name"
      EntityUsage="SmsUsersEO"
      AliasName="NAME"/>
      <ViewAttribute
      Name="Phone"
      PrecisionRule="true"
      EntityAttrName="Phone"
      EntityUsage="SmsUsersEO"
      AliasName="PHONE"/>
      <ViewAttribute
      Name="Pwd"
      PrecisionRule="true"
      EntityAttrName="Pwd"
      EntityUsage="SmsUsersEO"
      AliasName="PWD"/>
      <ViewAttribute
      Name="Surname"
      IsNotNull="true"
      PrecisionRule="true"
      EntityAttrName="Surname"
      EntityUsage="SmsUsersEO"
      AliasName="SURNAME"/>
      <ViewAttribute
      Name="Title"
      PrecisionRule="true"
      EntityAttrName="Title"
      EntityUsage="SmsUsersEO"
      AliasName="TITLE"/>
      <ViewAttribute
      Name="UserId"
      IsUnique="true"
      PrecisionRule="true"
      EntityAttrName="UserId"
      EntityUsage="SmsUsersEO"
      AliasName="USER_ID"/>
      <ResourceBundle>
      <PropertiesBundle
      PropertiesFile="SmsFrontService.SmsFrontServiceBundle"/>
      </ResourceBundle>
      </ViewObject>

      Edited by: Tshifhiwa on 2012/05/01 2:20 AM