Datefield Issue in UIX

Hello,
I am using JDev 10.1.2 to build an ADF UIX web application, and I am having trouble formatting a datefield. Basically, I am using an LOV to populate a datefield, which will (onSubmit) be placed into a bean for later use. Another team member is using a Java date object to store the value, but the problem is that Java does not seem to like the default date format of "yyyy-MM-dd" that the LOV uses.
I tried editing the datefield to change the display with this:
<dateField model="${uix.current.SubmitDt}" readOnly="true" name="pattern">
<onSubmitValidater>
<date pattern="DD-MON-YYYY"/>
</onSubmitValidater>
</dateField>
Unfortunately, neither this nor any other pattern/dateStyle had any effect on the date output. I also tried editing the SQL query manually to have it output the date in my preferred format. It worked fine using the application module test, but if I do this, the dates will not display on the page at all. Even if I change the <dateField> tag to a normal <textInput> tag. Any ideas? Any help? Thanks so much in advance.
John Repsher

Okay, I think I have found a work around. Thanks anyways guys!
Regards,
John

Similar Messages

  • Issue with UIX Editable Table

    Hi,
    I have created a Master-Detail-Detail page using UIX. I want to make the last detail table editable. I have tried the tip mentioned in the following page to make the table editable.
    http://www.oracle.com/technology/products/jdev/tips/jacobi/edittable/tip_adfuixtable_edit.html
    But, the condition in switcher ${uix.current.EmployeeId.inputValue == bindings.EmployeeId.inputValue is always returning false. This is because, the ${bindings.xxxxx} is returning null for all columns.
    Could anyone help me in resolve this issue Please?
    Here is the uix file I am using:
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title=""/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0">
    <contents>
    <pageLayout>
    <about/>
    <copyright/>
    <corporateBranding/>
    <end/>
    <globalButtons/>
    <pageButtons/>
    <pageHeader/>
    <privacy/>
    <productBranding/>
    <start/>
    <tabs/>
    <contents>
    <stackLayout>
    <contents>
    <header text="Master">
    <contents>
    <table model="${bindings.SyPohdrAckView1}" id="SyPohdrAckView17" partialRenderMode="multiple" partialTargets="_uixState">
    <contents>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'OfdaFileId')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.OfdaFileId}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'AcknowledgmentNumber')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgmentNumber}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'PoNumber')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.PoNumber}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnFormat cellNoWrapFormat="true"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'PlannedDeliveryDate')}"/>
    </columnHeader>
    <contents>
    <dateField model="${uix.current.PlannedDeliveryDate}" readOnly="true">
    <onSubmitValidater>
    <date pattern="yyyy-MM-dd"/>
    </onSubmitValidater>
    </dateField>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'PoOrdTotal')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.PoOrdTotal}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'AcknowledgeStatus')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgeStatus}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'AcknowledgeInfo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgeInfo}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnFormat cellNoWrapFormat="true"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'AcknowledgeDate')}"/>
    </columnHeader>
    <contents>
    <dateField model="${uix.current.AcknowledgeDate}" readOnly="true">
    <onSubmitValidater>
    <date pattern="yyyy-MM-dd"/>
    </onSubmitValidater>
    </dateField>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'AcknowledgeByCtIdNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgeByCtIdNo}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    </contents>
    <tableSelection>
    <singleSelection model="${bindings.SyPohdrAckView1Iterator}" text="Select and ">
    <primaryClientAction>
    <firePartialAction targets="detail6 detail12 _uixState" source="SyPohdrAckView17" event="select"/>
    </primaryClientAction>
    </singleSelection>
    </tableSelection>
    </table>
    </contents>
    </header>
    <header text="Detail" id="detail6">
    <contents>
    <table model="${bindings.SyPolineAckView2}" id="SyPolineAckView28" partialRenderMode="multiple" partialTargets="_uixState">
    <contents>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'OfdaFileId')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.OfdaFileId}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'AcknowledgmentNumber')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgmentNumber}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'PoNumber')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.PoNumber}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'LineItemNumber')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.LineItemNumber}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'SpecItemNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.SpecItemNo}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'Quantity')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.Quantity}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'Cost')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.Cost}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnFormat cellNoWrapFormat="true"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'PlannedDeliveryDate')}"/>
    </columnHeader>
    <contents>
    <dateField model="${uix.current.PlannedDeliveryDate}" readOnly="true">
    <onSubmitValidater>
    <date pattern="yyyy-MM-dd"/>
    </onSubmitValidater>
    </dateField>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'AcknowledgeStatus')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgeStatus}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'AcknowledgeInfo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgeInfo}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnFormat cellNoWrapFormat="true"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'AcknowledgeDate')}"/>
    </columnHeader>
    <contents>
    <dateField model="${uix.current.AcknowledgeDate}" readOnly="true">
    <onSubmitValidater>
    <date pattern="yyyy-MM-dd"/>
    </onSubmitValidater>
    </dateField>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'AcknowledgeByCtIdNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgeByCtIdNo}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'RowID')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.RowID}" columns="10" readOnly="true"/>
    </contents>
    </column>
    </contents>
    <tableSelection>
    <singleSelection model="${bindings.SyPolineAckView2Iterator}" text="Select and ">
    <primaryClientAction>
    <firePartialAction targets="detail12 _uixState" source="SyPolineAckView28" event="select"/>
    </primaryClientAction>
    </singleSelection>
    </tableSelection>
    </table>
    </contents>
    </header>
    </contents>
    </stackLayout>
    <stackLayout>
    <contents>
    <header text="Detail" id="detail12">
    <contents>
    <table nameTransformed="false" model="${bindings.PoLineView2}" id="PoLineView214" partialRenderMode="multiple" partialTargets="_uixState" formSubmitted="true">
    <contents>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'PoNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.PoNo}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'LineNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.LineNo}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'ItemNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.ItemNo}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'ItemStyle')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.ItemStyle}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'VendorNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.VendorNo}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'VendorItemNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.VendorItemNo}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'QtyOrd')}"/>
    </columnHeader>
    <contents>
    <switcher childName="${uix.current.PoNo.inputValue == bindings.PoNo.inputValue ? 'selected' : 'notselected'}">
    <case name="selected">
    <textInput model="${bindings.QtyOrd}" columns="10" readOnly="false">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </case>
    <case name="notselected">
    <textInput model="${uix.current.QtyOrd}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </case>
    </switcher>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'UnitPrice')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.UnitPrice}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'LineAmt')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.LineAmt}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnFormat cellNoWrapFormat="true"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'DateCreated')}"/>
    </columnHeader>
    <contents>
    <dateField model="${uix.current.DateCreated}" readOnly="true">
    <onSubmitValidater>
    <date pattern="yyyy-MM-dd"/>
    </onSubmitValidater>
    </dateField>
    </contents>
    </column>
    <column>
    <columnFormat cellNoWrapFormat="true"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'DueDate')}"/>
    </columnHeader>
    <contents>
    <dateField model="${uix.current.DueDate}" readOnly="true">
    <onSubmitValidater>
    <date pattern="yyyy-MM-dd"/>
    </onSubmitValidater>
    </dateField>
    </contents>
    </column>
    <column>
    <contents>
    <submitButton text="Commit" model="${bindings.Commit}" id="Commit15" event="action" disabled="false"/>
    </contents>
    </column>
    </contents>
    <tableSelection>
    <singleSelection model="${bindings.PoLineView2Iterator}" text="Select and ">
    <primaryClientAction>
    <firePartialAction targets="_uixState PoLineView214" source="PoLineView214" event="select" formSubmitted="true"/>
    </primaryClientAction>
    </singleSelection>
    </tableSelection>
    </table>
    </contents>
    </header>
    </contents>
    </stackLayout>
    </contents>
    </pageLayout>
    <formValue name="${bindings.statetokenid}" value="${bindings.statetoken}" id="_uixState"/>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    <event name="goto sort" source="SyPohdrAckView17">
    <invoke method="handleTableUiEvent" javaType="oracle.cabo.adf.rt.AdfUtils">
    <parameters>
    <parameter javaType="oracle.adf.model.binding.DCIteratorBinding" value="${bindings.SyPohdrAckView1Iterator}"/>
    <parameter javaType="oracle.cabo.servlet.expl.ControllerImplicitObject" value="${uix}"/>
    </parameters>
    </invoke>
    </event>
    <event name="select" source="SyPohdrAckView17">
    <set target="${bindings.SyPohdrAckView1Iterator}" property="currentRowIndexInRange" value="${ui:tableSelectedIndex(uix, 'SyPohdrAckView17')}"/>
    </event>
    <event name="goto sort" source="SyPolineAckView28">
    <invoke method="handleTableUiEvent" javaType="oracle.cabo.adf.rt.AdfUtils">
    <parameters>
    <parameter javaType="oracle.adf.model.binding.DCIteratorBinding" value="${bindings.SyPolineAckView2Iterator}"/>
    <parameter javaType="oracle.cabo.servlet.expl.ControllerImplicitObject" value="${uix}"/>
    </parameters>
    </invoke>
    </event>
    <event name="select" source="SyPolineAckView28">
    <set target="${bindings.SyPolineAckView2Iterator}" property="currentRowIndexInRange" value="${ui:tableSelectedIndex(uix, 'SyPolineAckView28')}"/>
    </event>
    <event name="goto sort" source="SyPolineAckView213">
    <invoke method="handleTableUiEvent" javaType="oracle.cabo.adf.rt.AdfUtils">
    <parameters>
    <parameter javaType="oracle.adf.model.binding.DCIteratorBinding" value="${bindings.SyPolineAckView2Iterator}"/>
    <parameter javaType="oracle.cabo.servlet.expl.ControllerImplicitObject" value="${uix}"/>
    </parameters>
    </invoke>
    </event>
    <event name="select" source="SyPolineAckView213">
    <set target="${bindings.SyPolineAckView2Iterator}" property="currentRowIndexInRange" value="${ui:tableSelectedIndex(uix, 'SyPolineAckView213')}"/>
    </event>
    <event name="goto sort" source="PoLineView214">
    <invoke method="handleTableUiEvent" javaType="oracle.cabo.adf.rt.AdfUtils">
    <parameters>
    <parameter javaType="oracle.adf.model.binding.DCIteratorBinding" value="${bindings.PoLineView2Iterator}"/>
    <parameter javaType="oracle.cabo.servlet.expl.ControllerImplicitObject" value="${uix}"/>
    </parameters>
    </invoke>
    </event>
    <event name="select" source="PoLineView214">
    <set target="${bindings.PoLineView2Iterator}" property="currentRowIndexInRange" value="${ui:tableSelectedIndex(uix, 'PoLineView214')}"/>
    </event>
    <event name="action" source="Commit15">
    <invoke method="doIt" javaType="oracle.jbo.uicli.binding.JUCtrlActionBinding" instance="${bindings.Commit}"/>
    </event>
    </handlers>
    </page>

    hi all,
        it looks this where clause not filter with 'N'  data ,Please help me ,how to solve this or help me on this

  • DATE issue in UIX page

    Dear All,
    I am having a weird date related issue while loading a date value. We show date values in Uix pages, all the Oracle.sql.Date (which in turn convered to java.sql.Data)are displayed a day less in the UIX. The dates are shown in <textInput> or <messageTextInput> or <formattedText> fields. For ex: if the DB date is 05/11/2004, it is shown as 04/11/2004 in the screens. The dates stored and the retreived in the java middle tier are same, but the value printed in the UIX is a day less. The server time maintained is EST and this application is used by the clients in US.
    The things work fine when run on the local machines pointing to the same database. But, when a server is accessed from the same client machine the problem is simulated.
    This is a production issue which needs to be addressed immediately.
    Please send your inputs on this.
    Thanking in advance.
    Girish S C

    There were a couple of bugs related to the date lag problem that you reported. These should have been fixed in latest releases of UIX (The last such bug identified has been fixed in version 2.2.12, the latest as of date being 2.2.16). You would have to wait until this is publicly available and upgrade to this version.

  • DateField component in UIX  is rendering wrong date

    Hi,
    After the DST has ended, our bc4j:uix component is rendering wrong date values for alle the dates prior to 25.10.2009.
    We have following configuration
    UIX version: 2.2.24.2
    Jdev: 10.1.2.2.0 (build 1929)
    Our UIX application is deployed to a Linux server with the uix libraries comes with 2.2.24.2
    We have tried to upgrade to Uix version 2.2.24.5 as mentioned in the Bug 7631416 but it didn't solve the problem.
    Any help appreciated.
    Regards
    Mayu

    Okay, I think I have found a work around. Thanks anyways guys!
    Regards,
    John

  • Uix:dateField inside struts html:form

    this renders calendar:
    <uix:form name="f8">
    <uix:dateField name="e2" />
    </uix:form>
    this not:
    <html:form styleId="f3" action="showsth.do">
    <uix:dateField name="e2" />
    </html:form>
    where html:form is struts form
    why?
    what am I doing wrong?
    I thing use uix and struts together would be amazing but ...

    Unfortunately, we do not support uix elements inside struts form element.

  • Question with uix:dateField tag

    hi,
    I am trying to use the dateField tag of uix. when we write the dateField tag as <uix:dateField /> it creates a calender. but when I click on the calender nothing shows up. In the tag Itself there are various attribs like the destination, minValue, maxValue etc probably the destination takes us to the calender!! I do have a script that opens up the calender but i suppose the dateField does that for us and If I want to validate the field a client side vadilation also is available
    http://otn.oracle.com/jdeveloper/help/ under <uix:date>
    but how do i use it in my context
    this is the normal HTML code with script that will show the calender and set the value of the datebox(the one I am using now)
    <input type="text" name="datebox" >
    <a href="javascript:show_calendar('protletForm.datebox');
    onmouseover="window.status='Date Picker';return true;"
    onmouseout="window.status='';
    return true; ">
    <img src="/avegaPortlets/cabo/images/cache/c-dp.gif" width=20 height=24 border=0>
    </a>
    how do i get to it with the <uix:datefield> tag along with the validation?? can anybody please help me on this !!!
    thanks,
    vasanth

    hi,
    thanks so much. ::::)
    It did work with the <uix:form name = "something"> tag.
    could you tell me what is the equivalant to the <form action = "something here"> in the <uix:form> tag???? like is it <uix:form destination = "some java class">?? will this work??
    when I hit submit I want to form to be submitted and the values in the form read by my "something here" java class.
    regards,
    vasanth

  • UIX 2.2.8: rendered attribute for onBlurValidater and onSubmitValidater?

    Hi, i want to create onBlurValidater and / or onSubmitValidater in my subclassed ui:dateField based on a new attribute.
    In UIX 2.2.8 there is no rendered attribute on the onXxValidator tags.
    Any idea how i can achive something like
    <ui:dateField>
      <onBlurValidater
           rendered="${uix.rootAttr.validatorType == 'blur'}">
        <date pattern="${uix.rootAttr.formatPattern}"/>
      </onBlurValidater>
      <onSubmitValidater
           rendered="${uix.rootAttr.validatorType == 'submit'}">
        <date pattern="${uix.rootAttr.formatPattern}"/>
      </onSubmitValidater>
    </ui:dateField>Thanks, Markus

    ping

  • BC4J/UIX Multi Entity insert/update

    Hi!
    Problem
    Is it possible to insert simultaneously both master and detail BC4J row with single UIX page? I would like to use standard UIX if possible with minimal java, but examples with java would be also helpful.
    Example
    This seems to be a very simple situation. Has anybody solved it?
    In my case I have one generic Document table and additional attributes tables for different kinds of documents like for instance LicenseDocument. Those tables are connected with Document table with 1 to 0..1 relationship and their foreign key to the Document table is also their primary key.
    I like the way that BC4J Tester works and I don't know how to make UIX work the same way.
    When I use BC4J Tester it assigns the Document table inserted but not yet committed rows primary key (DBSequence) column temporary negative values and I can insert child records that are associated with it. After commit the Document primary key is fetched from the database sequence and all the foreign keys in other tables get updated accordingly.
    When I use UIX I don't get those temporary IDs and so I can't create child records before the master record is committed. This is not good as I can't roll back the whole creation of the LicenceDocument.
    References
    I started by posting this topic to UIX forum (BC4J Multi Entity insert/update but maybe someone here knows the solution.
    Thanks in advance!
    Mihkel N�ges
    [email protected]

    I managed to workaround the issue in UIX by not using DBSequence type but fetching the sequence value in EntityImpl create method (as in Steve Muench's Techiniques demo project http://radio.weblogs.com/0118231/stories/2003/07/11/codeSampleIllustratingVariousBc4jProgrammingTechniques.html ):
    DocumentImpl.java:
    protected void create(AttributeList attributeList)
         super.create(attributeList);
         // Do this last so we don't waste any sequence numbers unnecessarily
         SequenceImpl seq = new SequenceImpl("DOCUMENT_ID_SEQ",getDBTransaction());
         setId(seq.getSequenceNumber());
    For some reason the sequence gets asked twice for every row creation. Thats not a big problem, but in the SequenceImpl javadoc this is discussed and as I understand it should not happen.

  • Client validator message with dateField

    Hello all,
    I use a dateField in my UIX page, with an onSubmitValidator (date - shortish). The validation fires, but the javascript error message displayed is
    Value xyz in "" is not a date formatted .....
    i.e. the label for the dateField does not get generated.
    Is there a way to make this work, except using messageXYZ beans?
    TIA,
    Bijesh

    You will have to use messageDataField, and either of 'prompt'/'labeledNodeId' attributes should be used. Reason is, if you do not use either of these attributes, end users will have no way of correlating validation errors to a particular form field, end users do not see id/name.

  • Sample UIX XML requested for standard functionality

    I am learning UIX XML.
    Using scott's emp and dept tables, I have used the wizards to generate a UIX XML application using BC4J.
    I would like to enhance the generated UIX XML.
    For example...
    1. The UIX XML pages that allow inserts/updates to the EMP view object. I would like to have a LOV on the dept_no field so user can use this. Typically any foreign key field to have a LOV with a lookup on the master table.
    2. Also I am having some difficulty with radio groups, list items etc that are based on hardcoded values or data in the database. Have you any complete example code. The on-line documentation shows examples but not the whole code working together. Have you got a complete sample app that shows these features?
    3. Have you any UIX XML examples that use FORMS containing text input items, lists, radio groups etc that ARE NOT based on BC4J...then have the event logic access BC4J and do the inserts/updates.
    Thanks,
    Paul.

    Paul,
    Like you I have been learing using the scott schema.
    I too have struggled with this LOV issue in UIX-XML and UIX-JSP and BC4J-JSP. UIX-JSP can allow for a drop down list based upon custom properties in the VO and a "custom" Java class. The HOW-TO Page has an excellent example that when followed (with some tweaks to get what I wanted) the drop down list worked. I know it's not an LOV (like in Forms) but for small FK lookups drop down lists seem to be the requests of most users. But these drop down lists will not happen in UIX-XML or BC4J-JSP. Seems aierd to me but hey, I'm just learning too.
    My point is that I too have asked question after question on this forum about UIX-XML or about implementing fearures of UIX-XML in other frameworks (like coulmn sorting) and have gotten zero helpful repsonses. There were some comments about how 9.0.3 would soleve some of these issues, but no one seems to be able to explain a way to show a "broken" example so that I will be elated when 9.0.3 comes out and works.
    If you get an answer or some helpful pointers pelase forward them to me at [email protected]
    And I apologize for making your heart get all a flutter when you saw the reply count grow by "1" only to find that it's just another loser who can't make the simple things in this IDE work.
    Ed.

  • Disabling calendar icon from a date field

    Hi
    The DateField control in UIX creates a text field for entering dates and a button for picking dates from a calendar. Is there a way I could disable the calendar icon selectively, when I do not want my user to pick up a new date?
    Patrick

    Patrick,
    You can set attribute readOnly="true", or if you want to do this dynamic, you can data-bind it: data:readOnly="<some boolean value from some dataObject>".
    Steven Davelaar

  • Issues upgrading a Jhs 10.1.2 UIX BC application to Jhs 10.1.3 JSPX BC

    Greetings,
    I'm trying to upgrade a JHeadstart 10.1.2 UIX and Business Components (BC) application to 10.1.3 ADF BC - JSPX (Using Jdev 10.1.3)
    After reading and following the Jheadstart Release Notes upgrade guide and after a couple of issues, I managed to get it compiled without errors.
    Now, when I try to run it, it wont run :|... It shows the initial screen (a table) without data and the following error 5 times: Missing IN or OUT parameter at index:: 1
    My first screen has as data source a VO/Data Collection which has several bind parameters (:1,:2,...,:5).
    In version 10.1.2, I think, passing values to a VO was done ONLY (is this correct?) by the Struts-config.xml using a iterator.
    something like this:
    <action path="/S2EpisodiosTable" input="/WEB-INF/page/S2EpisodiosTable.uix" type="..." className="..." parameter="/WEB-INF/page/S2EpisodiosTable.uix" name="DataForm">
    <set-property property="bindParams" value="${bindings.S2EpisodiosId_Processo},${bindings.S2EpisodiosId_Processo},${bindings.S2EpisodiosId},${bindings.S2EpisodiosId},${bindings.S2EpisodiosId_Processo};newLookupConcelhoIterator=${bindings.S2EpisodiosDcfDistrito};"/>
    </action>
    a) Is this correct ?
    Now, after the upgrade, all the view objects bind parameters are missing.
    If I set them in the App. Definition Editor - Query Bind Parameters statically, for example to "0,0,0,0,0", it will run but not with the correct values.
    b) How do I "migrate" <set-property property="bindParams" value="${bindings.S2EpisodiosId_Processo}... to AFD BC bindings ?
    c) If query values are set statically, when selecting a first level menu entry, along the application, I get this errors:
    c.1 )
    500 Internal Server Error
    java.lang.ClassCastException: oracle.jbo.domain.Number
         at oracle.adfinternal.view.faces.renderkit.uix.SelectItemSupport._addUIXSelectItem(SelectItemSupport.java:349)
         at oracle.adfinternal.view.faces.renderkit.uix.SelectItemSupport.getSelectItems(SelectItemSupport.java:88)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.SimpleSelectOneRenderer.encodeAllAsElement(SimpleSelectOneRenderer.java:235)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.FormElementRenderer.encodeAll(FormElementRenderer.java:48)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.delegateRenderer(CoreRenderer.java:271)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.InputLabelAndMessageRenderer.renderFieldCellContents(InputLabelAndMessageRenderer.java:115)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.LabelAndMessageRenderer._renderFieldCell(LabelAndMessageRenderer.java:293)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.LabelAndMessageRenderer.encodeAll(LabelAndMessageRenderer.java:163)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.InputLabelAndMessageRenderer.encodeAll(InputLabelAndMessageRenderer.java:94)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:159)
         at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
    and this other one
    c.2 )
    500 Internal Server Error
    javax.faces.el.ReferenceSyntaxException: bindings.S2SitSocioProfissionais2newLookupSituaçãoProfissional.rangeSet
         at com.sun.faces.application.ApplicationImpl.checkSyntax(ApplicationImpl.java:749)
         at com.sun.faces.application.ApplicationImpl.createValueBinding(ApplicationImpl.java:291)
         at oracle.adfinternal.view.faces.taglib.ForEachTag.createValueBinding(ForEachTag.java:311)
         at oracle.adfinternal.view.faces.taglib.ForEachTag._resolveObject(ForEachTag.java:479)
         at oracle.adfinternal.view.faces.taglib.ForEachTag.doStartTag(ForEachTag.java:102)
         at _web_2d_inf._page._S2SitSocioProfissionais2_jspx._jspService(_S2SitSocioProfissionais2_jspx.java:687)
         [WEB-INF/page/S2SitSocioProfissionais2.jspx]
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    Could you please give me some directions on how to solve this issues ?
    Thanks,
    Best regards

    Buondi,
    Can you please post separate threads for each issue?
    Lets's keep this thread for your first issue: You can generate query bind params in 10.1.3, by setting the Query Bind Parameters property against your group in the APplication Definition Editor. This property already existed in 10.1.2, and is migrated as well, so it looks like in 10.1.2 the struts action was modified post-generation.
    Anyway, you can enter the comma-delimited list of bind params in the group-property Query Bind Parameters, you only need to replace "${" with "#{" to get JSF EL expressions.
    Can you also upgrade to JHeadstart Service Update 1? This fixes a bug that caused MISSING IN OR OUT PARAMETER error.
    Steven Davelaar,
    JHeadstart Team.

  • CFINPUT with datefield type issue

    I have a personal information form that has a hire date entry
    field. I would like to make the field optional, yet I have to enter
    a hire date as I get an error if I dont. The database autofills the
    hire date field with the word "null" so if I submit the form
    without entering a date, I get an error message saying: "Error
    "null" is an invalud date or time string."
    Also, in my database, I have Hire Date as a type DATE, null
    is selected, and default is 0000-00-00. On a side note, even though
    I have 0000-00-00 entered as the default, the word "null" still
    populates the hire date field on the page.
    Here is my code:
    <cfformgroup type="horizontal" visible="yes" enabled="yes"
    style="marginLeft:-74;" >
    <cfinput type="Datefield" name="HireDate" label="Hire
    Date:" width="80" bind="{contactList.selectedItem.HireDate}"
    onchange="UpdateSelect(HireDate, selectYear1);"/>
    <cfselect name="selectYear1" width="80" label=""
    onchange="setStartYear(HireDate, selectYear1);">
    <cfoutput>
    <option value="">Pick Year</option>
    <cfloop index="i" from="1935" to="#thisyear#">
    <option value="#i#">#i#</option>
    </cfloop>
    </cfoutput>
    </cfselect>
    </cfformgroup>
    Any help with this problem would be much appreciated.
    Thanks,
    Nick Butler

    Hi Nick,
    I am not sure which insert method you are using for inserting
    your form information into the database. I prefer to insert
    my
    form information via a <cfquery>.
    Below is the code I use in my forms and have not encountered
    any issues with blank date fields being inserted into a DB.
    <cfquery name="qry_name" datasource="yourdatasource">
    Insert Into tbl_name (
    db_field,
    hiredate,
    db_field)
    Values(
    nullif(<cfqueryparam cfsqltype="CF_SQL_VARCHAR"
    value="#form.form_field#">,''),
    nullif(<cfqueryparam cfsqltype="CF_SQL_DATE"
    value="#form.hiredate#">,''),
    nullif(<cfqueryparam cfsqltype="CF_SQL_VARCHAR"
    value="#form.form_field#">,'')
    </cfquery>
    With the above code, should the person leave the hire date
    field blank, it will
    insert a null value into the db field. If the person enters a
    date, it will insert the
    date into the db field formatted as yyyy-mm-dd.
    Leonard B

  • UIX dateField validation Question

    Hi,
    I am using a UIX <dateField> tag on my forms and I am having some trouble with the validation. Here is an example
    <dateField required="no" name="cberReceivedDt" model="${bindings.CberReceivedDt}" columns="37">
    <onSubmitValidater>
    <date dateStyle="long" pattern="dd-MMM-yyyy"/>
    </onSubmitValidater>
    </dateField>
    It works fine, except when a user enters a date that does not match the pattern of "dd-MMM-yyyy." The UIX properly detects that the date is invalid, but the error it displays is not correct. It says:
    'Value "01-Jan-111" is not a date formatted as ""'
    Is there a reason why the error message does not contain the proper format string? Is there an attribute that I must set so that the user sees something other than two quotes? Thanks very much in advance.
    John

    Hi,
    I am having the same problem where my error messages is appearing as Date xx/xx/xx in "" is not formatted as "".
    My UIX is
    <dateField name="dateNonProd"
    value="${uix.data.getWorkSlotDateTimes.NONPRODSTARTDATE}">
    <onSubmitValidater>
    <date
    pattern="dd-MMM-yyyy"/>
    </onSubmitValidater>
    How do I get the blanks filled in the error messages.
    Thanks

  • UIX dateField

    Hi
    We're developing an app using Struts, toplink and UIX. We're using jsp pages and UIX jsp tags to create the UI. I want to use the <uix:dataField .../> tag to allow the user to enter a date. However, this causes javascript errors on my jsp page. I've deployed the BC4J application that provides all the underlying UIX functionality on my OC4J server, but the dateField still errors.
    When I click on the date picker button on the page, I get the follow error:
    'document.forms[...]' is null or not an object
    Does anyone know how to solve this problem?

    This likely means that you've omitted <uix:form>,
    so the dateField isn't inside of a form.

Maybe you are looking for