ConvertDateTime problem

Hello
I am using convertDateTime but having some problems..
<t:inputText id="endDate" value="#{editSurvey.endDate}" forceId="true">
     <f:convertDateTime pattern="dd/MM/yyyy" />
</t:inputText>Value for endDate in database is 30/11/2006.
Value for endDate in editSurvey bean is the same.
But on the page, convertDateTime prints it as 29/11/2006. Whatever the date is, convertDateTime prints the day before.
Is this a bug, or am I doing something wrong?
I am using MyFaces Impl - version 1.1.4
Thanks for your help
Yusuf.

Hello,
Just 2 hints... something like this happened to me.
1) reading a date from database (resultSet) requires to get the value into
java.sql.Date, and not into java.util.Date. I don't remember the exact effect
of not using the right one.
2) From client's side, your browser probably understands that you do
not live in US. (I may guess that because, like me, you prefer
day/month/year format :-) ).
But if you don't configure manually your tomcat server with the correctLocale,
maybe he wants to translate your value into US time.
It's a nonsense but the same milliseconds quantity is displayed differently
if the timezone is different. (And then you will have a problem with your
birthdate passport at US frontier...)
To be short, and just for testing, maybe you could try to give the locale
name in your tag? Example:
     <t:inputText id="endDate" value="#{editSurvey.endDate}" forceId="true">
          <f:convertDateTime pattern="dd/MM/yyyy" locale="Locale.SPAIN" />
     </t:inputText>

Similar Messages

  • ConvertDateTime: problems with year conversion

    In my application I want the user to enter a date into an input field following the pattern "d.MM.yyyy". Here's my code (where myDate is of type java.util.Date):
    <h:inputText value="#{contentHandler.myDate}">
    <f:convertDateTime type="date" pattern="d.MM.yyyy" />
    </h:inputText>
    Everything works fine until someone enters a date with a two-digit year, for example "12.08.05". This input is converted to "12.08.0005" but I'd rather have it converted to "12.08.2005". Any ideas or suggestions?

    use d.MM.yy
    It can accept 12.08.2005 n 12.08.05
    and the year it will be 2005 for both

  • ConvertDateTime problem in MyFaces

    Hi All.
    I have used the <f:convertDateTime> to covert the date in input text field and its always displays one day back if time part of date is 00:00:00.
    While i update the date in DB i converted the date using the DateFormat, to get the date field only. Because i am using DB2 and it accepts dates only with the time part of date is 00:00:00.
    So when it comes to display ,it displays one day back . your swift response on this is highly apprceiated.
    regards
    Sivakumar,

    For JSF 1.2 based frameworks you need el-api.jar and el-ri.jar.

  • Problem with f:convertDateTime

    Hi ,
    I am having a problem with f:convertDateTime tag.
    Here is the code that I wrote.
    <h:inputText id="txtCollDate" value="#{FormData.dateObtained}">
    <f:convertDateTime pattern="MMdd"/>
    </h:inputText>
    Let me explain you my scenario. I have a Date object in my managed bean "FormData". But in the front-end I just want to show the month(MM) & day(dd) in the InputText field. Till now it is working fine.
    When I submit the form, it is taking the year as 1970 & updating the database with that.
    Please reply back to me if you guys have any idea.
    Thanks in advance for you time.
    Vasu.

    Hi Chris,
    Let's say the user is entering date (mmDD) for the first time, I will assign the current year. IF the date has been already entered then it should take the already existing year. But when I use this f:convertDateTime it is not giving me the year for the already entered dates.
    Can you suggest me how can I created my own converted?
    Thanks,
    Vasu.

  • Problems with f:convertDateTime and f:convertNumber

    Hi,
    My code is as follows.
         <h:outputText value=" #{orderBean.order.dateTimeOfOrder}" style= "font-size: 1.0em">
         <f:convertDateTime type="date" pattern="dd.MM.yyyy HH:mm"  />
         <h:outputText value=" #{orderBean.order.totalCostIncGST}" style= "font-size: 1.0em">
                     <f:convertNumber pattern="###0,00%"/>But it ignores the conversion completely. The dateTimeOfOrder is Java Date object. I tried giving different dateStyle, but no use.
    Any help appreciated.

    Thans for your reply.
    Pls ignore my previous message.
    This is my code
    <h:outputText value="#{order.date}">
    <f:convertDateTime dateStyle="short"/>
    </h:outputText>In order.date, I have a method to get the today's date using new Date(). When I dont use <f:convertDateTime dateStyle="short"/> in the above code, it displays the today's date and time correctly. But when I use the line <f:convertDateTime dateStyle="short"/>, it displays the time by adding 2 hours to the current time.
    I want to display the order.date (which is today's date and current time as in the following format. That's what I'm trying to do. Also it ignores the AM/PM indicator.
    2/2/09 6:20 PM
    (dont' need the seconds)

  • Problem with Date fields in Search panel

    Hi all,
    I use TP2 and in my jspx page I have a search panel with two date fields and table where the results is displayed. But there is a problem with these date fields, because when I search dates the results is nothing even I retype the date from table. Also I have other pages where this problem exist with same structure.
    Could somebody help me with some advice?
    Thanks in advance!

    Hi Frank,
    Thanks for the answer.
    I use the standart method to make search panel with drag and drop the data control to the page. The other search panel fileds work fine, only the date fileds are problem. Maybe something in view object doesn't work properly.
    Here I post the code from my page.
    <table border="1" style="margin:5px;">
    <tr>
    <td>
    <af:showDetailHeader text="ТЪРСЕНЕ" disclosed="true"
    inlineStyle="width:780px;">
    <table cellspacing="2" cellpadding="3" border="0">
    <tr align="left">
    <td align="right">
    <af:outputLabel value="#{bindings.EGN.hints.label}"/>
    </td>
    <td align="left">
    <af:inputText value="#{bindings.EGN.inputValue}"
    label="#{bindings.EGN.hints.label}"
    columns="#{bindings.EGN.hints.displayWidth}"
    maximumLength="#{bindings.EGN.hints.precision}"
    simple="true"/>
    </td>
    <td align="right">
    <af:outputLabel value="#{bindings.LNC.hints.label}"/>
    </td>
    <td align="left">
    <af:inputText value="#{bindings.LNC.inputValue}"
    label="#{bindings.LNC.hints.label}"
    columns="#{bindings.LNC.hints.displayWidth}"
    maximumLength="#{bindings.LNC.hints.precision}"
    simple="true"/>
    </td>
    <td align="right">
    <af:outputLabel value="#{bindings.AccPersonID.hints.label}"/>
    </td>
    <td align="left">
    <af:inputText value="#{bindings.AccPersonID.inputValue}"
    label="#{bindings.AccPersonID.hints.label}"
    columns="#{bindings.AccPersonID.hints.displayWidth}"
    maximumLength="#{bindings.AccPersonID.hints.precision}"
    simple="true"/>
    </td>
    </tr>
    <tr align="left">
    <td align="right">
    <af:outputLabel value="#{bindings.PersonName.hints.label}"/>
    </td>
    <td align="left" colspan="5">
    <af:inputText value="#{bindings.PersonName.inputValue}"
    label="#{bindings.PersonName.hints.label}"
    columns="#{bindings.PersonName.hints.displayWidth}"
    maximumLength="#{bindings.PersonName.hints.precision}"
    simple="true"/>
    </td>
    </tr>
    <tr align="left">
    <td align="right">
    <af:outputLabel value="#{bindings.DateFrom.hints.label}"/>
    </td>
    <td align="left">
    <af:inputDate value="#{bindings.DateFrom.inputValue}"
    label="#{bindings.DateFrom.hints.label}"
    simple="true">
    <af:convertDateTime pattern="#{bindings.DateFrom.format}"/>
    </af:inputDate>
    </td>
    <td align="right">
    <af:outputLabel value="#{bindings.DateTo.hints.label}"/>
    </td>
    <td align="left">
    <af:inputDate value="#{bindings.DateTo.inputValue}"
    label="#{bindings.DateTo.hints.label}"
    simple="true">
    <af:convertDateTime pattern="#{bindings.DateTo.format}"/>
    </af:inputDate>
    </td>
    </tr>
    <tr>
    <td align="right">
    <af:commandButton actionListener="{bindings.Execute.execute}"
    text="#{bundle.FindBtn_LABEL}"
    disabled="#{!bindings.Execute.enabled}"
    icon="/images/find.png"/>
    </td>
    <td align="left">
    <af:commandButton text="#{bundle.FindClearBtn_LABEL}"
    icon="/images/find_clear.png"
    action="#{PeopleBean.onClearVCBtn}"/>
    </td>
    </tr>
    </table>
    </af:showDetailHeader>
    </td>
    </tr>
    </table>
    Also I have a result table for the search panel, but I don't believe the problem can be there because it works fine when I search in fields different by inputDate.
    Do you have any suggestions?

  • Problem in date functions

    Using:
    Jdev 11.1.1.5.0-adfbc
    problem description:
    problem in function not properly working
    Resource:
    this is my vo query which is based on one eo
    SELECT LegalDocDetailsEO.LDD_BE,
           LegalDocDetailsEO.LDD_UNIT,
           LegalDocDetailsEO.LDD_SUPLR_ID,
           LegalDocDetailsEO.LDD_CUST_ID,
           LegalDocDetailsEO.LDD_EMP_ID,
           LegalDocDetailsEO.LDD_DOC_ID,
           LegalDocDetailsEO.LDD_DOC_NO,
           LegalDocDetailsEO.LDD_ISSUED_AT,
           LegalDocDetailsEO.LDD_ISSUED_ON,
           LegalDocDetailsEO.LDD_VALID_FRQ,
           LegalDocDetailsEO.LDD_VALID_DUR,
    (case when LDD_VALID_FRQ='D'  then LDD_ISSUED_ON +  LDD_VALID_DUR                       //D-Date
          when LDD_VALID_FRQ='M'   then add_months(LDD_ISSUED_ON,LDD_VALID_DUR)        //M -Month  //Y-Year
          else add_months(LDD_ISSUED_ON,LDD_VALID_DUR*12)
    end ) as  LDD_EXP_ON,
           LegalDocDetailsEO.LDD_STATUS,
           LegalDocDetailsEO.LDD_SL_FLG,
           LegalDocDetailsEO.LDD_VEHICLE_ID,
           LegalDocDetailsEO.LDD_BFCRY_TYPE,
           LegalDocDetailsEO.LDD_EMPDEPNT_NO,
           LegalDocDetailsEO.LDD_ASSET_ID,
           LegalDocDetailsEO.LDD_PROD_UNIT,
           LegalDocDetailsEO.LDD_PROD_ID,
           LegalDocDetailsEO.LDD_PROD_REV,
           LegalDocDetailsEO.LDD_CRE_BY,
           LegalDocDetailsEO.LDD_CRE_DATE,
           LegalDocDetailsEO.LDD_UPD_BY,
           LegalDocDetailsEO.LDD_UPD_DATE,
           LegalDocDetailsEO.ROWID
    FROM LEGAL_DOC_DETAILS LegalDocDetailsEO
    WHERE LegalDocDetailsEO.LDD_BE = :pbuthis vo exposed as af:table
    <af:panelBox
                           binding="#{backingBeanScope.cfg0060.pb18}" id="pb18"
                           showDisclosure="false">
                <f:facet name="toolbar">
                  <af:group binding="#{backingBeanScope.cfg0060.g6}" id="g6">
                    <af:toolbar binding="#{backingBeanScope.cfg0060.t19}" id="t19">
                      <af:commandToolbarButton actionListener="#{bindings.CreateInsert13.execute}"
                                               text="Insert"
                                               disabled="#{!bindings.CreateInsert13.enabled}"
                                               binding="#{backingBeanScope.cfg0060.ctb90}"
                                               id="ctb90"/>
                      <af:commandToolbarButton
                                               text="Save"
                                               binding="#{backingBeanScope.cfg0060.ctb91}"
                                               id="ctb91"
                                               action="#{backingBeanScope.cfg0060.*ctb91_action2*}"
                                               partialTriggers="pc5:t18"/>
                      <af:commandToolbarButton text="Clear"
                                               binding="#{backingBeanScope.cfg0060.ctb92}"
                                               id="ctb92" icon="/icons/clear.png"/>
                     <af:commandToolbarButton text="Rollback"
                                               binding="#{backingBeanScope.cfg0060.ctb94}"
                                               id="ctb94"
                                             icon="/icons/rollback.png"/>
                      <af:commandToolbarButton text="Additional Details"
                                               binding="#{backingBeanScope.cfg0060.ctb95}"
                                               id="ctb95"/>
                      <af:commandToolbarButton text="Activate"
                                               binding="#{backingBeanScope.cfg0060.ctb96}"
                                               id="ctb96"
                                               icon="/icons/confirm.png"/>
                    </af:toolbar>
                  </af:group>
                </f:facet>
                <af:panelCollection binding="#{backingBeanScope.cfg0060.pc5}"
                                    id="pc5" styleClass="AFStretchWidth">
                  <f:facet name="menus"/>
                  <f:facet name="toolbar"/>
                  <f:facet name="statusbar"/>
                  <af:table value="#{bindings.LegalDocDetails1VO2.collectionModel}"
                            var="row"
                            rows="#{bindings.LegalDocDetails1VO2.rangeSize}"
                            emptyText="#{bindings.LegalDocDetails1VO2.viewable ? 'No data to display.' : 'Access Denied.'}"
                            fetchSize="#{bindings.LegalDocDetails1VO2.rangeSize}"
                            rowBandingInterval="0"
                            filterModel="#{bindings.LegalDocDetails1VO2Query.queryDescriptor}"
                            queryListener="#{bindings.LegalDocDetails1VO2Query.processQuery}"
                            filterVisible="true" varStatus="vs"
                            selectedRowKeys="#{bindings.LegalDocDetails1VO2.collectionModel.selectedRow}"
                            selectionListener="#{bindings.LegalDocDetails1VO2.collectionModel.makeCurrent}"
                            rowSelection="single"
                            binding="#{backingBeanScope.cfg0060.t18}" id="t18"
                            partialTriggers=":::ctb90">
                    <af:column sortProperty="LddDocId" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddDocId.label}"
                               id="c19">
                      <af:inputText value="#{row.bindings.LddDocId.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddDocId.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddDocId.mandatory}"
                                    columns="#{bindings.LegalDocDetails1VO2.hints.LddDocId.displayWidth}"
                                    maximumLength="#{bindings.LegalDocDetails1VO2.hints.LddDocId.precision}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddDocId.tooltip}"
                                    id="it144">
                        <f:validator binding="#{row.bindings.LddDocId.validator}"/>
                      </af:inputText>
                    </af:column>
                    <af:column sortProperty="LdDocIdDesc" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.label}"
                               id="c22">
                      <af:inputText value="#{row.bindings.LdDocIdDesc.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.mandatory}"
                                    columns="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.displayWidth}"
                                    maximumLength="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.precision}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.tooltip}"
                                    id="it145">
                        <f:validator binding="#{row.bindings.LdDocIdDesc.validator}"/>
                      </af:inputText>
                    </af:column>
                    <af:column sortProperty="LddDocNo" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.label}"
                               id="c21">
                      <af:inputText value="#{row.bindings.LddDocNo.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.mandatory}"
                                    columns="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.displayWidth}"
                                    maximumLength="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.precision}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.tooltip}"
                                    id="it146">
                        <f:validator binding="#{row.bindings.LddDocNo.validator}"/>
                      </af:inputText>
                    </af:column>
                    <af:column sortProperty="LddIssuedAt" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.label}"
                               id="c15">
                      <af:inputText value="#{row.bindings.LddIssuedAt.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.mandatory}"
                                    columns="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.displayWidth}"
                                    maximumLength="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.precision}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.tooltip}"
                                    id="it147">
                        <f:validator binding="#{row.bindings.LddIssuedAt.validator}"/>
                      </af:inputText>
                    </af:column>
                    <af:column sortProperty="LddIssuedOn" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddIssuedOn.label}"
                               id="c17">
                      <f:facet name="filter">
                        <af:inputDate value="#{vs.filterCriteria.LddIssuedOn}"
                                      binding="#{backingBeanScope.cfg0060.id7}"
                                      id="id7"/>
                      </f:facet>
                      <af:inputDate value="#{row.bindings.LddIssuedOn.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddIssuedOn.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddIssuedOn.mandatory}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddIssuedOn.tooltip}"
                                    id="id10">
                        <f:validator binding="#{row.bindings.LddIssuedOn.validator}"/>
                        <af:convertDateTime pattern="#{bindings.LegalDocDetails1VO2.hints.LddIssuedOn.format}"/>
                      </af:inputDate>
                    </af:column>
                    <af:column sortProperty="LddValidFrq" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddValidFrq.label}"
                               id="c20">
                      <af:selectOneChoice value="#{row.bindings.LddValidFrq.inputValue}"
                                          label="#{row.bindings.LddValidFrq.label}"
                                          required="#{bindings.LegalDocDetails1VO2.hints.LddValidFrq.mandatory}"
                                          shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddValidFrq.tooltip}"
                                          id="soc12" autoSubmit="true">
                        <f:selectItems value="#{row.bindings.LddValidFrq.items}"
                                       id="si13"/>
                      </af:selectOneChoice>
                    </af:column>
                    <af:column sortProperty="LddValidDur" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.label}"
                               id="c18">
                      <af:inputText value="#{row.bindings.LddValidDur.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.mandatory}"
                                    columns="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.displayWidth}"
                                    maximumLength="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.precision}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.tooltip}"
                                    id="it148" autoSubmit="true"
                                    partialTriggers="soc12">
                        <f:validator binding="#{row.bindings.LddValidDur.validator}"/>
                        <af:convertNumber groupingUsed="false"
                                          pattern="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.format}"/>
                      </af:inputText>
                    </af:column>
                    <af:column sortProperty="LddExpOn" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddExpOn.label}"
                               id="c16">
                      <f:facet name="filter">
                        <af:inputDate value="#{vs.filterCriteria.LddExpOn}"
                                      binding="#{backingBeanScope.cfg0060.id8}"
                                      id="id8"/>
                      </f:facet>
                      <af:inputDate value="#{row.bindings.LddExpOn.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddExpOn.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddExpOn.mandatory}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddExpOn.tooltip}"
                                    id="id9" partialTriggers="it148">
                        <f:validator binding="#{row.bindings.LddExpOn.validator}"/>
                        <af:convertDateTime pattern="#{bindings.LegalDocDetails1VO2.hints.LddExpOn.format}"/>
                      </af:inputDate>
                    </af:column>
                    <af:column sortProperty="LddStatus" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddStatus.label}"
                               id="c14">
                      <af:selectOneChoice value="#{row.bindings.LddStatus.inputValue}"
                                          label="#{row.bindings.LddStatus.label}"
                                          required="#{bindings.LegalDocDetails1VO2.hints.LddStatus.mandatory}"
                                          shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddStatus.tooltip}"
                                          id="soc13">
                        <f:selectItems value="#{row.bindings.LddStatus.items}"
                                       id="si12"/>
                      </af:selectOneChoice>
                    </af:column>
                  </af:table>
                </af:panelCollection>
              </af:panelBox>
        public String ctb91_action2() {
            BindingContainer bindings = getBindings();
            DCIteratorBinding dciter2;
            dciter2 = (DCIteratorBinding) bindings.get("LegalDocDetails1VO2Iterator");
            ViewObject vo2 = dciter2.getViewObject();
            vo2.clearCache();
            vo2.executeQuery();
            //dciter2.executeQuery();
            OperationBinding operationBinding = bindings.getOperationBinding("Commit");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
        }this is my save button code.
    while pressing save button date,month,year increment operation takes place.
    i did like this:
    date issued : 3/10/1999
    validtiy type : months /days /years in select one choice
    validty time : 1 if i give 1 means
    date expires on : *4*/10/1999 it should be generates by pressing save button.
    by my issues:
    first time pressing button
    date expires on : *23*/10/1999 wrongly generated. each every first time default adding 10 to date. i dont have default value. why it's happening
    eventhough used clearcache. but it's not perforing correctly in first time
    by second time or third time... n tmes means
    date expires on : *4*/10/1999 it correctly generating.
    see pics.
    inputdate: 2/18/2012:
    wrongly generating : http://imageshack.us/photo/my-images/210/testttt.png/ in this pics see expires on : 2/28/2012
    correctly generating : http://imageshack.us/photo/my-images/341/testtsds.png/ in this pics see expires on : 2/20/2012
    i followed one of my thread: JDeveloper and ADF
    Edited by: subu123 on Feb 24, 2012 6:27 AM

    thank you sir. for visting my thread. i understood. how can i over come that?
    SELECT LegalDocDetailsEO.LDD_BE,
           LegalDocDetailsEO.LDD_UNIT,
           LegalDocDetailsEO.LDD_SUPLR_ID,
           LegalDocDetailsEO.LDD_CUST_ID,
           LegalDocDetailsEO.LDD_EMP_ID,
           LegalDocDetailsEO.LDD_DOC_ID,
           LegalDocDetailsEO.LDD_DOC_NO,
           LegalDocDetailsEO.LDD_ISSUED_AT,
           LegalDocDetailsEO.LDD_ISSUED_ON,
           LegalDocDetailsEO.LDD_VALID_FRQ,
           LegalDocDetailsEO.LDD_VALID_DUR,
    (case when LDD_VALID_FRQ='D'  then LDD_ISSUED_ON +  LDD_VALID_DUR                       //D-Date
          when LDD_VALID_FRQ='M'   then add_months(LDD_ISSUED_ON,LDD_VALID_DUR)        //M -Month  //Y-Year
          else add_months(LDD_ISSUED_ON,LDD_VALID_DUR*12)
    end ) as  LDD_EXP_ON,
           LegalDocDetailsEO.LDD_STATUS,
           LegalDocDetailsEO.LDD_SL_FLG,
           LegalDocDetailsEO.LDD_VEHICLE_ID,
           LegalDocDetailsEO.LDD_BFCRY_TYPE,
           LegalDocDetailsEO.LDD_EMPDEPNT_NO,
           LegalDocDetailsEO.LDD_ASSET_ID,
           LegalDocDetailsEO.LDD_PROD_UNIT,
           LegalDocDetailsEO.LDD_PROD_ID,
           LegalDocDetailsEO.LDD_PROD_REV,
           LegalDocDetailsEO.LDD_CRE_BY,
           LegalDocDetailsEO.LDD_CRE_DATE,
           LegalDocDetailsEO.LDD_UPD_BY,
           LegalDocDetailsEO.LDD_UPD_DATE,
           LegalDocDetailsEO.ROWID
    FROM LEGAL_DOC_DETAILS LegalDocDetailsEO
    WHERE LegalDocDetailsEO.LDD_BE = :pbui want to excute this vo. by pressing button. so only wrote like that.
    why am going excutes means?
    if am entering date and choosing select one choice means. by pressing button the button excutes vo and prorbably i get my output.
    is there any other way??? to attain my target..
    Edited by: subu123 on Mar 8, 2012 7:45 AM

  • Master-Detail Problem SESSION & REQUEST

    I'd really appreciate some help with this:
    I got a very simple master detail application, with a data table in the master page that gets it's data from a spring-hibernate bean, pretty straightforward.
    My business requirement indicates that at first the list will be empty, and after selecting a few criteria values, the list should return with the results(query results).....
    I'm using one of the columns with a commandLink tag as usual, to go to the detail page like any number of applications you have seen.
    Now the problem arises in that, if my backing bean for my list and criteria is set as a SESSION, everything works fine. However if i set the backing bean in REQUEST scope navigation doesn't ocurr acording to the action and it just redisplays an empty list in the same page (the master list page).....
    I changed everything back and forth between sun and apache's releases and nothing...tried a bunch of different things and nothing either...the log doesn't show any exceptions or anything...
    Anybody have a clue on this?????
    public class PersonList {
    private PersonManager personManager;
    private List    personsData;
    private String  inputTextEmpId;
    private String  inputTextJobCode;
    private String  inputTextFirstName;
    private String  inputTextLastName;
    private boolean initialFlag = true;
       public void setPersonManager(PersonManager personManager) {
           this.personManager = personManager;
       public PersonManager getPersonManager() {
          return personManager;
      public List getPersonsData() {
           List results = (personManager.getAllPersonsQuery(
             initialFlag,
           inputTextEmpId, 
           inputTextJobCode,
           inputTextFirstName,
           inputTextLastName);
          initialFlag = true;
          if (results == null) return new ArrayList();
          else return results;
    public void setPersonsData(List personsData) {
         this.personsData = personsData;
    public String getInputTextEmpId() {
         return inputTextEmpId;
    public void setInputTextEmpId(String inputTextEmpId) {
         this.inputTextEmpId = inputTextEmpId;
    public String getInputTextFirstName() {
         return inputTextFirstName;
    public void setInputTextFirstName(String inputTextFirstName) {
         this.inputTextFirstName = inputTextFirstName;
    public String getInputTextLastName() {
         return inputTextLastName;
    public void setInputTextLastName(String inputTextLastName) {
         this.inputTextLastName = inputTextLastName;
       public void queryGenerator (ActionEvent event) {
            setInitialFlag(false);
       public boolean isInitialFlag() {
            return initialFlag;
       public void setInitialFlag(boolean initialFlag) {
            this.initialFlag = initialFlag;
    <%@ include file="/taglibs.jsp"%>
    <h:form id="personX">
    <h:messages layout="table" styleClass="conversionError"/>
    <h:panelGrid styleClass="data-table-column-header" columns="9">
      <h:outputText value="#{messages.personEmpId}"/>
      <h:outputText value="#{messages.personJobCode}"/>
      <h:outputText value="#{messages.personFirstName}"/>
      <h:outputText value="#{messages.personLastName}"/>
      <h:inputText value="#{personList.inputTextEmpId}" size="4" styleClass="data-table-column-text"/>
      <h:selectOneMenu value="#{personList.inputTextJobCode}" styleClass="data-table-column-text">
           <f:selectItem itemValue="%"  itemLabel="ALL"/>
           <f:selectItem itemValue="AA" itemLabel="AA"/>
           <f:selectItem itemValue="BB" itemLabel="BB"/>
           <f:selectItem itemValue="OT" itemLabel="OT"/>
      </h:selectOneMenu>
      <h:inputText value="#{personList.inputTextFirstName}" size="9" styleClass="data-table-column-text"/>
      <h:inputText value="#{personList.inputTextLastName}" size="9"  styleClass="data-table-column-text"/>
    </h:panelGrid>
      <t:dataTable
        value             =  "#{personList.personsData}"
        var               =  "person"
        id                =  "personDataList"
        border            =  "0"
        columnClasses     =  "rightAlign,centerAlign,leftAlign,leftAlign,rightAlign,
                              centerAlign,centerAlign,centerAlign,centerAlign"
        rowClasses        =  "data-table-row-odd,data-table-row-even"
        styleClass        =  "data-table"
        headerClass       =  "data-table-header"
        footerClass       =  "boldLeft" >
       <f:facet name="header">
        <h:outputText value="#{messages.personList}"/>
       </f:facet>
       <h:column>
         <t:commandLink action="personform" immediate="true" >
            <h:outputText value="#{person.id}" />
            <t:updateActionListener property="#{personForm.id}" value="#{person.id}" />
         </t:commandLink>
       </h:column>
       <h:column><h:outputText value="#{person.jobCode}"/></h:column>
       <h:column><h:outputText value="#{person.firstName}"/></h:column>
       <h:column><h:outputText value="#{person.lastName}"/></h:column>
      </t:dataTable>
    <h:commandButton value="Generate Report" actionListener="#{personList.queryGenerator}" styleClass="button"/>
    </h:form>

    What is the meaning of initialFlag?
    If the bean in request scope, when firstly invoking
    getPersonData()
    the flag is true because queryGenerator() is not
    invoked yet in the request.
    If the bean in session scope, the value of
    initialFlag may hold to be false
    since invoking queryGenerator() in the previous
    request.initialFlag is just something I use to bring back an empty list
    when the action is performed....
    However my problem is not displaying the list correctly, is actually Jumping to the detail form (a different JSP) from the commandLink on the datatable results....,
    instead it just re-renders the same page (just like if there was a conversion or validation error)
    Fragment: From DAO..
         public List getAllPersonsQuery(
                   boolean initialFlag,               
                   String empId,
                   String jobCode,
                   String firstName, String lastName)
    if (initialFlag) return new ArrayList();
    else {
      String status = "A";
      return getHibernateTemplate().find("from Person person where person.employmentStatus=(?) " +
    getNormalClause(empId,            " person.empId "  )+
    getNormalClause(jobCode,          " person.jobCode ")+
    getNormalClause(firstName,        " person.firstName ")+
    getNormalClause(lastName,         " person.lastName ")+
    " order by person.lastName, person.firstName" , status);
      <navigation-rule>
       <from-view-id>/persons.jsp</from-view-id>
       <navigation-case>
          <from-outcome>personform</from-outcome>
          <to-view-id>/personForm.jsp</to-view-id>
        </navigation-case>
      </navigation-rule>
    <%@ include file="/taglibs.jsp"%>
    <h:messages layout="table" styleClass="error"/>
    <h:form id="personForm">
    <h:inputHidden value="#{personForm.person.id}"/>
    <h:inputHidden value="#{personForm.id}"/>
    <h:inputHidden value="#{personForm.person.empId}" binding="#{personForm.empId}"/>
    <h:inputHidden value="#{personForm.person.jobCode}" binding="#{personForm.jobCode}"/>
    <h:inputHidden value="#{personForm.person.firstName}" binding="#{personForm.firstName}"/>
    <h:inputHidden value="#{personForm.person.lastName}" binding="#{personForm.lastName}"/>
    <h:inputHidden value="#{personForm.person.createdUser}" binding="#{personForm.createdUser}"/>
    <h:inputHidden value="#{personForm.person.createdTime}" binding="#{personForm.createdTime}">
      <f:convertDateTime pattern="MM/dd/yyyy"/>
    </h:inputHidden>
    <h:inputHidden value="#{personForm.person.lastUpdateUser}" binding="#{personForm.lastUpdateUser}"/>
    <h:inputHidden value="#{personForm.person.lastUpdateTime}" binding="#{personForm.lastUpdateTime}">
      <f:convertDateTime pattern="MM/dd/yyyy"/>
    </h:inputHidden>
      <h:panelGrid columns="2" columnClasses="exclusions-column-text,exclusions-column-text-green">
        <h:outputText value="Employee#:"/>
        <h:outputText value="#{personForm.empId.value}"/>
        <h:outputText value="Job Title:"/>
        <h:outputText value="#{personForm.jobCode.value}"/>
        <h:outputText value="First Name:"/>
        <h:outputText value="#{personForm.firstName.value}"/>
        <h:outputText value="Last Name:"/>
        <h:outputText value="#{personForm.lastName.value}"/>
       </h:panelGrid>
    </h:panelGrid>
    <h:panelGrid columns="4" style="width:300px" headerClass="exclusions-table-header" styleClass="exclusions-table">
      <f:facet name="header">
        <h:outputText value="Record Control"/>
      </f:facet>
      <h:outputText value="Created By:" styleClass="bold"/>
      <h:outputText value="#{personForm.createdUser.value}"/>
      <h:outputText value="Created On:" styleClass="bold"/>
      <h:outputText value="#{personForm.createdTime.value}">
        <f:convertDateTime pattern="MM/dd/yyyy"/>
      </h:outputText>
      <h:outputText value="Modified By:" styleClass="bold"/>
      <h:outputText value="#{personForm.lastUpdateUser.value}"/>
      <h:outputText value="Updated On:" styleClass="bold"/>
      <h:outputText value="#{personForm.lastUpdateTime.value}">
        <f:convertDateTime pattern="MM/dd/yyyy"/>
      </h:outputText>
    </h:panelGrid>
    </h:panelGrid>
    </h:panelGrid>
    <h:panelGrid columns="2">
    <h:commandButton value="Save Record" action="#{personForm.save}" id="savePerson" styleClass="button"/>
    <h:commandButton value="Query Screen" action="#{personList.cleanData}" immediate="true" id="cancelPerson"  
       styleClass="button"/>
    </h:panelGrid>
    </h:form>

  • Problem with conversion failed

    I have two inputDate control, one for start_date, the other for end_date.
    Each inputDate has a convertDateTime and a validator that check whether start_date is smaller than end_date.
    First, I input the valid date data, all thing is OK.
    Then, I input a invalid string such as "a" in end_date and start_date, the error messages displayed.
    Then, I input a valid date data in end_date. After the conversion complete, the validation is executing.
    When I want to get the start_date value, the value is not the "a" but the valid value before.
    How can I get the failed data or failed status ? Or skip the validation when one input conversion failed?
    Thanks.

    I think the problem is a spelling error: you named your structure "structs" and then you refer to it as "struct".
    You have to choose one between the two (or a better one if you can find it).
    About File content conversion I suggest you to see the following links:
    Content Conversion (Pattern/Random content in input file)
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    File Content Conversion for Unequal Number of Columns
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    How to send a flat file with fixed lengths to XI 3.0 using a Central File Adapter
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    Content Conversion ( The Key Field Problem )
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    Solution to the problem encountered using Variable Substitution with XI-SP12
    /people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
    I hope this will be helpfull.
    Regards,
    Salvatore

  • Display Date format problem - 'dd/mm/yyyy'

    Hi All,
    I want to display the date in this format dd/mm/yyyy. Below is the code which i declared in the JSPX.
    <af:selectInputDate value="#{bindings.poRequestedDateH.inputValue}" id="poRequestedDateH" required="true"
    binding="#{backing_POMasterDetail.poRequestedDateH}"
    validator="#{backing_POMasterDetail.assignedDateValidator}">
    <af:validator binding="#{bindings.poRequestedDateH.validator}"/>
    <af:convertDateTime pattern='dd/mm/yyyy'/>
    </af:selectInputDate>
    but when i select the date from the component its displaying like this .
    For Example : "09/47/2008", if i reload the page again and selecting the date its displaying some junk values in month column.
    Please anyone help me to fix the problem.
    Thanks & Regards
    Vimalan Balan

    Hi Vimalan,
    I just replied to the comment you posted on my blog:
    "How To Specify a Second Date Pattern in ConvertDateTime"
    http://blogs.oracle.com/Didier/2007/02/01#a213
    Your pattern is incorrect.
    In 'dd/mm/yyyy', 'mm' represents the minutes, not the months, represented by 'MM'.
    You can check it with the following pattern: "dd/MM/yyyy HH:mm:ss" that will display the months and the minutes:
    f.ex. "16/04/2008 16:47:08"
    So just change your pattern to "dd/MM/yyyy" and it will work.
    Please note that my blog was about adding a second pattern to convertDateTime.
    If your aim is to use one (and only one) pattern "dd/MM/yyyy", I would specify it at the ADF Business Components level, in the "Control Hints" tab of the date attribute, in "Format".
    Regards,
    Didier.

  • Oracle ADF inputText refreshing problem in subform

    Hi guys.
    There are inputText, outputText and inputDate components in the form's of in a pop-up window(twitter bootstrap).
    This components is in a subform.
    The current values of the outputText and inputDate components (in managed bean) are reflected value in partial update. However the current values of the inputText components (in managed bean) aren't reflected value in partial update.
    Components appear to be empty.
    My code:
    <af:panelFormLayout partialTriggers="::i1:DetailButton1 ::i2:DetailButton2 ::i3:DetailButton3">
    <af:panelLabelAndMessage rendered="#{null != sessionScope.userID}" label="#{viewcontrollerBundle[&apos;lang.baslik&apos;]}">
    <af:inputText value="#{detailBean.title}" columns="65" contentStyle="font-size:10pt" simple="true"
    shortDesc="#{viewcontrollerBundle[&apos;lang.baslik&apos;]}" id="it2"/>
    </af:panelLabelAndMessage>
    <af:message for="it2"/>
    <af:inputDate value="#{detailBean.createDate}" readOnly="true" id="id1" contentStyle="font-size:10pt;"
    label="#{viewcontrollerBundle[&apos;lang.olusturulmaTarihi&apos;]}">
    <af:convertDateTime pattern="dd/MM/yyyy"/>
    </af:inputDate>
    <af:inputDate value="#{detailBean.editDate}" contentStyle="font-size:10pt" readOnly="true" id="id2"
    label="#{viewcontrollerBundle[&apos;lang.degistirilmeTarihi&apos;]}">
    <af:convertDateTime pattern="dd/MM/yyyy"/>
    </af:inputDate>
    <af:inputText label="#{viewcontrollerBundle[&apos;lang.goruntulenme&apos;]}" contentStyle="font-size:10pt"
    value="#{detailBean.totalView}" readOnly="true" id="it4" />
    <af:panelLabelAndMessage rendered="#{null == sessionScope.userID}" label="#{viewcontrollerBundle[&apos;lang.icerik&apos;]}">
    <af:outputText value="#{detailBean.content}" inlineStyle="font-size:10pt"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage rendered="#{null != sessionScope.userID}" label="#{viewcontrollerBundle[&apos;lang.icerik&apos;]}">
    <af:inputText value="#{detailBean.content}" shortDesc="#{viewcontrollerBundle[&apos;lang.icerik&apos;]}"
    columns="67" rows="10" id="ot9" contentStyle="font-size:10pt" simple="true" />
    </af:panelLabelAndMessage>
    <af:message for="ot9"/>
    </af:panelFormLayout>
    My jDev version 11.1.2.3.0
    What is the reason for this problem?
    Edited by: hakdogan on Nov 22, 2012 2:59 PM

    I can see partialTriggers only on the parent component i.e panelFormLayout .. can you try puttin them on individual inputTexts which won't refresh and check ?

  • InputDate Column Filter Date Format Problem

    Hi,
    I have an af:table with filterable columns and some of these columns are based on Timestamp VO attributes.
    When I enter a date filter - either manually or from the associated date picker, the filter is applied correctly using a date format of dd/MM/yyyy.
    However, when the table is subsequently refreshed, the filter value is still present but has been re-formatted to "yyyy-MM-dd hh:mi:ss" format (default format for a Timestamp datatype?). The an error appears in the column filter component - "Error: The date is not in the correct format".
    If I want to retain the filter value across queries, how can this be achieved?
    My table column is defined as follows:
    <af:column sortProperty="#{bindings.ViewDataVO1.hints.LastReadingDate.name}"
                                                   filterable="true" sortable="true"
                                                   headerText="#{bindings.ViewDataVO1.hints.LastReadingDate.label}"
                                                   id="c59"
                                                   rendered='#{bindings.ViewDataVO1.hints.LastReadingDate.displayHint != "Hide"}'
                                                   displayIndex="#{bindings.ViewDataVO1.hints.LastReadingDate.displayHeight}">
                                            <f:facet name="filter">
                                                <af:inputDate value="#{vs.filterCriteria.LastReadingDate}" id="id4">
                                                    <af:convertDateTime
                                                                        pattern="#{bindings.ViewDataVO1.hints.LastReadingDate.format}"/>
                                                </af:inputDate>
                                            </f:facet>
                                            <af:outputText value="#{row.LastReadingDate}" id="ot59">
                                                <af:convertDateTime pattern="#{bindings.ViewDataVO1.hints.LastReadingDate.format}"/>
                                            </af:outputText>
                                        </af:column>I've tried messing with the properties of the af:convertDateTime component, but I'm thinking the problem is in the population of the filter facet inputDate with the vs.filterCriteria.LastReadingDate value. This does not appear to be re-formatted for display - but I don't know how to manipulate this value...
    Or is there a better way? This seems more complicated than it should be...?
    By the way, I am using JDeveloper 11.1.2.1.0 for my development.
    Thanks.

    Does it work fine if you change the pattern for convertDateTime?
    I.e
    change
    <f:facet name="filter">
                                                <af:inputDate value="#{vs.filterCriteria.LastReadingDate}" id="id4">
                                                    <af:convertDateTime
                                                                        pattern="#{bindings.ViewDataVO1.hints.LastReadingDate.format}"/>
                                                </af:inputDate>
                                            </f:facet>to
    <f:facet name="filter">
                                                <af:inputDate value="#{vs.filterCriteria.LastReadingDate}" id="id4">
                                                    <af:convertDateTime
                                                                        pattern="dd/MM/yyyy"/>
                                                </af:inputDate>
                                            </f:facet>-Arun

  • Problem in refreshing popup

    ADF11g :
    I have problem in refreshing popup.
    On main page there is one table and in one column of that table i put commandImageLink .on click of that image i supposed to open one popup where i am displaying info result.
    on first click of that image i am able to show result correctly but if i change the row and try to click image again i am not able to show new result .it is showing old one.Onclick i checked new result values are retrived by server but not reflecting on popup.
    One more thing which i observerd is that at first time when i click image it goes to action method and then open popup but at next click it opens popup fisrt and then call action method.
    <af:column sortable="false" headerText="Actions"
    rendered="true" width="50">
    <af:panelGroupLayout layout="horizontal">
    <af:commandImageLink icon="/image/info.jpg"
    shortDesc="Info"
    partialSubmit="true" action="#{IssueActionBean.refresh_ContentRevisionInfo1}"
    launchListener="#{IssueActionBean.getRevisionLauncherListener}">
    <af:showPopupBehavior popupId="::popupinfo"
    triggerType="click"/>
    </af:commandImageLink>
    <af:commandImageLink icon="/image/checkinout.jpeg"
    shortDesc="Check in/out">
    <af:showPopupBehavior popupId="::popupMenu"
    triggerType="action"
    align="beforeStart"/>
    </af:commandImageLink>
    </af:panelGroupLayout>
    </af:column>
    </af:table>
    <af:popup id="popupinfo" popupFetchListener="#{IssueActionBean.getfetchRevisionLauncherListener}">
    <af:panelWindow title="Content Information"
    inlineStyle="width:600px; height:500px;">
    <af:table value="#{bindings.documentRevisions.collectionModel}"
    var="row" id="popupinfo1"
    rows="#{bindings.documentRevisions.rangeSize}"
    emptyText="#{bindings.documentRevisions.viewable ? 'No rows yet.' : 'Access Denied.'}"
    fetchSize="#{bindings.documentRevisions.rangeSize}"
    selectedRowKeys="#{bindings.documentRevisions.collectionModel.selectedRow}"
    selectionListener="#{bindings.documentRevisions.collectionModel.makeCurrent}"
    rowSelection="single"
    inlineStyle="width:750px; height:250px; margin:20px;">
    <af:column sortProperty="revLable" sortable="true"
    headerText="#{res['contentInformation.revision']}">
    <af:outputText value="#{row.revLable}">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.documentRevisions.hints.revLable.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="releaseDate"
    sortable="true"
    headerText="#{res['contentInformation.rDate']}">
    <af:outputText value="#{row.releaseDate}">
    <af:convertDateTime pattern="#{bindings.documentRevisions.hints.releaseDate.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="expirationDate"
    sortable="true"
    headerText="#{res['contentInformation.eDate']}">
    <af:outputText value="#{row.expirationDate}">
    <af:convertDateTime pattern="#{bindings.documentRevisions.hints.expirationDate.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="status" sortable="true"
    headerText="#{res['contentInformation.status']}">
    <af:outputText value="#{row.status}"/>
    </af:column>
    <af:column sortProperty="did" sortable="true"
    headerText="#{ res['contentInformation.did']}">
    <af:outputText value="#{row.did}">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.documentRevisions.hints.did.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="docName" sortable="true"
    headerText="#{res['contentInformation.docName']}">
    <af:goLink destination="#{row.docURL}" text="#{row.docName}"
    targetFrame="_blank"/>
    </af:column>
    <af:column sortProperty="docURL" sortable="true"
    headerText="#{bindings.documentRevisions.hints.docURL.label}">
    <af:outputText value="#{row.docURL}"/>
    </af:column>
    </af:table>
    <af:panelFormLayout>
    </af:panelFormLayout>
    </af:panelWindow>
    </af:popup>
    public String refresh_ContentRevisionInfo1() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("getContentRevisionInfo");
    Object result = operationBinding.execute();
    bindings.refresh();
    DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBind= (DCIteratorBinding)dcBindings.get("documentRevisionsIterator");
    iterBind.executeQuery();
    iterBind.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED);
    return null;
    public void getRevisionLauncherListener(LaunchEvent launchEvent) {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("getContentRevisionInfo");
    Object result = operationBinding.execute();
    bindings.refresh();
    DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBind= (DCIteratorBinding)dcBindings.get("documentRevisionsIterator");
    iterBind.executeQuery();
    iterBind.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED);
    Thanks for all Help.
    Jaydeep

    You are in the wrong forum. This is the the forum for the [Application Express development tool|http://apex.oracle.com]. You want a JDeveloper/ADF forum.

  • JDev 11 - Date problem in executeWithParams form who rans fine in Jdev 10

    Hello everybody,
    Here is my case :
    I have a viewObject, here is its SQL code :
    select *
    from
      select req.*, ROW_NUMBER() OVER(ORDER BY 1) num
      from
        select distinct rvmage.mage_seq, mpr.nom||' '||mpr.prenom as medecin, mpr.nom, mpr.prenom, rvmage.ag_date, rvmage.heure, sst.lib_1, spr.spr
        from rvsexa, rvsexa_rvsnag, rvslag, spr, mpr, rvmage, rvsnag, sst
        where rvsexa.mnemo = rvsexa_rvsnag.rvsexa_mnemo
        and rvsexa_rvsnag.rvsnag_code = rvslag.rvsnag_code
        and rvsexa_rvsnag.rvsnag_code = rvsnag.code
        and rvsnag.rvsnag_sst like sst.sst
        and sst.lib_1 like '%' || :p_site || '%'
        and rvslag.spr_spr = spr.spr
        and rvsexa.lib_1 not like 'SERVICE%'          
        and spr.rsm = :p_rsm
        and rvsexa.lib_1 like :p_libExamChoisi
        and mpr.mpr = spr.mpr
        and rvmage.rvslag_lag = rvslag.lag
        and rvmage.etat = 1
        and mpr.nom||' '||mpr.prenom like '%' || :p_medecin || '%'
        and ((rvmage.ag_date) - to_date(:p_dateDeb)) >= 0
        order by rvmage.ag_date, rvmage.heure
      ) req
    where num between ( (:p_pos-1)* :p_nb)+1 and  (:p_pos*:p_nb)I have an executeWithParams form, here is a part of the code :
    // many parameters can ben modified
    <tr:inputDate         value="#{bindings['p_dateDeb'].inputValue}"
                                label="Date"
                                required="#{bindings['p_dateDeb'].mandatory}"
                                chooseId="choosedDate"
                                autoSubmit="true">
                                             <f:validator binding="#{bindings['p_dateDeb'].validator}"/>
                                             <f:convertDateTime pattern="#{bindings['p_dateDeb'].format}" dateStyle="shortish"/>
    </tr:inputDate>
    <tr:chooseDate id="choosedDate"
                                   minValue="#{backing_main.dateDemain}"
                                   maxValue="#{backing_main.dateLimite}" />
    <tr:commandLink        actionListener="#{bindings.ExecuteWithParams.execute}"
                                    text="Rechercher"
                                    disabled="#{!bindings.ExecuteWithParams.enabled}"/>
    // rest of the code is mainly a trinidad read-only table associated to my viewObjectIn the JDeveloper 10 version it was ok. Here I'm able to change the value of all my parameters except the date. I can enter any date, result stay already the same ignoring the date.
    If someone knows this problem..
    Valéry.
    Edited by: valery.s on 05-mai-2009 14:31

    I found my problem :
    the date is initialized in the viewObject executeQuery's method like this:
            Date d = getp_dateDeb();
            if(d==null)
                Date demain = new Date();
                demain = (Date)demain.getCurrentDate();
                demain.addJulianDays(1,1);
                setp_dateDeb(demain);
            }problem is that getp_dateDeb(); return always null. Thus I always execute my VO with the date of tomorow.
    Is there another way to see if the date parameter is call for the first time ?

  • Extending af:convertDateTime (and binding property)

    Hello,
    I have an <af:convertDateTime> in the page:
    <af:inputDate id="IDATE" value="#{row.bindings.Date.inputValue}">
        <af:convertDateTime pattern="#{bindings.TABLE.hints.Date.format}"/>
    </af:inputDate>I want to customize the converter, but there is no "binding" property as with other components.
    From our tests, the method "format" in the bean pointed by "pattern" seems to return a null String.
    By googling we discovered that the class behind the converter is oracle.adf.rich.DateTime.
    My question are:
    1. Is it true that, in the case of a null String returned by "format", the converter acts internally by checking the current locale and providing a coherent format for the locale?
    2. Why is not oracle.adf.rich.DateTime availble publicly and why is there no binding property?
    3. What is the best approach to extend the converter?
    Thanks.

    Thanks for your answer, but I'll try to be more precise about my problem.
    What we would really like to know is how that af:convertDateTime works internally and extend it's behaviour by custom providing a bean to "pattern" which behaves the following way, depending on the situation:
    1. either return the same pattern String the converter would use internally by default
    2. or return a custom String
    but again, why isn't oracle.adf.rich.Date available?

Maybe you are looking for

  • Runtime Error in Test Client after Transport

    Hello SDNers, I did enhancements to standard SAP component ICCMP_BP_SEARCH in developement system in client XXX of system SSS. I wanted to test the functionality in client YYY so used SCC1 transaction to transport from client XXX to client YYY. But w

  • Trouble transfering phonebook via bluetooth to Alpine Blackbird B200 GPS

    I recently purchased the Alpine Blackbird PMD-B200 and the first thing I did was to pair it up with my blackberry curve to check out the bluetooth.  It paired fine and a test call worked.  Then I tried to transfer the phonebook from the curve and it

  • Weird Hyperlinks Issue - Position-related?

    I have a PDF I'm trying to create which has 1 email and 1 web URL per page. I select the option in Acrobat to make urls from text. It reports 58 links created; this is correct...2 per page, 29 pages = 59 instances. However, not all of the links work,

  • INBOUND DELFOR02 Idoc Split

    Hi, I got a requirement for an inbound idoc Idoc type : DELFOR02 message type : DELINS User exit functional module : IDOC_INPUT_DELINS My actual reqirement is....... The DELFOR02 Idoc sent from the subsystem to SAP will have to be split into multiple

  • Abstract class reference itself

    How do I reference an abstract class to itself. public abstract class SomeClass {    public static SomeType SomeMethod(){          SomeClass mine = new SomeClass();    }It gives me an error saying it can not instantiate the class.