Af:selectInputDate

In my application "af:selectInputDate" is showing wrong behavior. If i am running it from localhost then it is working fine, but if the application is deployed in other ip in internet and when i am running the application by ip , while picking the date showing wrong date and time each time i click showing different date n time.
Actually i want to pick the date and time of the client machine not the time from server also. But i am not getting why it is showing strange behavior.
Can anybody pls help me on this. My code is like that
<af:selectInputDate
                                        binding="#{bean.datePick}"
                                        id="datePick" columns="20" autoSubmit="true" >
                                        <f:convertDateTime pattern="MM/dd/yyyy hh:mm a" />
</af:selectInputDate>
I am using tomcat 5.02
thanks in advance

so, is there anyway to show that client side time??
and another question if it is showing server time , why is it showing different different date and timeif i pick for 2-3 times
thanks for replying

Similar Messages

  • How to validate values from selectInputDate in backing bean

    I have two selectInputDate fields, arrivalDate and departureDate.
    I want to validate that arrivalDate cannot be greater than departureDate.
    java.lang.ClassCastException is raised at below line in the backing bean:
    Timestamp newArrivalDate = (Timestamp)newValue;
    I tried to use below in the backing bean for arrivalDate validation.
    import java.sql.Timestamp;
    public void arrivalDateValidator(FacesContext facesContext,
    UIComponent uiComponent, Object newValue) {
    //The new value is passed into us
    try {
    Timestamp newArrivalDate = (Timestamp)newValue; --> java.lang.ClassCastException raised at this line.
    //Get the Departure Date which is already bound on this screen
    Timestamp departureDate =
    (Timestamp)ADFUtils.getBoundAttributeValue("departureDate");
    // Now compare and raise an error if the rule is broken
    if (newArrivalDate.compareTo(departureDate) > 0)
    throw new ValidatorException(JSFUtils.getMessageFromBundle
    ("Arrival Date cannot be greater than Departure Date", FacesMessage.SEVERITY_ERROR));
    } catch(Exception e) {
    System.out.println("Some exception raised");
    e.printStackTrace();
    08/12/26 13:30:08 Some exception raised
    08/12/26 13:30:08 java.lang.ClassCastException
    08/12/26 13:30:08      at opera.activity.view.backing.app.TestApp.arrivalDateValidator(ActivityMain.java:1524)
    08/12/26 13:30:08      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    08/12/26 13:30:08      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    08/12/26 13:30:08      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    08/12/26 13:30:08      at java.lang.reflect.Method.invoke(Method.java:324)
    08/12/26 13:30:08      at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXEditableValue.validateValue(UIXEditableValue.java:400)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXEditableValue.validate(UIXEditableValue.java:206)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXEditableValue._executeValidate(UIXEditableValue.java:522)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXEditableValue.processValidators(UIXEditableValue.java:302)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXShowDetail.processValidators(UIXShowDetail.java:86)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
    08/12/26 13:30:08      at javax.faces.component.UIForm.processValidators(UIForm.java:190)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
    08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
    08/12/26 13:30:08      at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:932)
    08/12/26 13:30:08      at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:362)
    08/12/26 13:30:08      at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:98)
    08/12/26 13:30:08      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
    08/12/26 13:30:08      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
    08/12/26 13:30:08      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
    08/12/26 13:30:08      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    08/12/26 13:30:08      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
    08/12/26 13:30:08      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
    08/12/26 13:30:08      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
    08/12/26 13:30:08      at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
    08/12/26 13:30:08      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    08/12/26 13:30:08      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
    08/12/26 13:30:08      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    08/12/26 13:30:08      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    08/12/26 13:30:08      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    08/12/26 13:30:08      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    08/12/26 13:30:08      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    08/12/26 13:30:08      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    08/12/26 13:30:08      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    08/12/26 13:30:08      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    08/12/26 13:30:08      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    08/12/26 13:30:08      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    08/12/26 13:30:08      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    08/12/26 13:30:08      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    08/12/26 13:30:08      at java.lang.Thread.run(Thread.java:534)
    Can someone suggest a solution?
    Thanks in advance.

    Hi user:
    Use the class oracle.jbo.domain.Date in the date component then is very easy using the compareTo Method (Returns -1 if DATE is less than date, 0 if DATE and date are equal (==), 1 if DATE is greater than date).
    Good Luck.

  • SelectInputDate component in a search form - JDev 10.1.3.0.4

    Cheers to all of you buddies in this valley of tears, have a good day
    I have a table that contains a date column, and a search form to do "query by example" and its date field is a "selectInputDate" with its date chooser.
    The date column in the table is formatted as yyyy-MM-dd (assigned in the underlying BO).
    I assigned a "convertDateTime" with a pattern yyyy-MM-dd to the selectInputDate component.
    At this point, the page works correctly. I select a date and get the appropiate results.
    The problem rised when adding a validator to the "selectInputDate" component.
    I added a "validateDatatimeRange" validator and binded the Maximum and Minimum values to two java.util.Date fields (minDate and maxDate) defined in a session managed bean named depSessionBean. The binding was done using EL as #{depSessionBean.minDate} and #{depSessionBean.maxDate}. The effect is that the date chooser only enables dates within the range (good).
    The problem arises when I click on the "Execute" action button. All I get is a lovely error complaining about date conversions.
    The attached converter returns a String that is correctly used to query the data but the validator expects a java.util.Date (it does not accept String values).
    So, am I missing something? How can I get the converter and validator to work together?
    Thanks a heap for any help.
    A.Gurisatti
    This is the error I get when executing the query (2006-08-14 is the chosen date):
    500 Internal Server Error
    oracle.adfinternal.view.faces.convert.ConvertException: Could not convert instance:2006-08-14 of type:class java.lang.String into type:class java.util.Date
         at oracle.adfinternal.view.faces.convert.GenericConverterFactory.convert(GenericConverterFactory.java:189)
         at oracle.adfinternal.view.faces.validator.DateTimeRangeValidator.validate(DateTimeRangeValidator.java:27)
         at oracle.adf.view.faces.component.UIXEditableValue.validateValue(UIXEditableValue.java:378)
         at oracle.adf.view.faces.component.UIXEditableValue.validate(UIXEditableValue.java:206)
         at oracle.adf.view.faces.component.UIXEditableValue._executeValidate(UIXEditableValue.java:522)
         at oracle.adf.view.faces.component.UIXEditableValue.processValidators(UIXEditableValue.java:302)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at javax.faces.component.UIForm.processValidators(UIForm.java:170)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:912)
         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:342)
         at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    Frank,
    Thanks for your reply and yes I'm using BC (I allways forget that important piece of information).
    Unfortunatelly I still have a few doubts:
    - I suppose that assigning a pattern to a date column in a BO is for display purposes and in some cases to have the right conversions in where clauses. In this case, choosing yyyy-MM-dd (that is the default) is a coincidence and in this case, you are right it is superfluous. But suppose we use dd/MM/yyyy. In this case, the date will be rendered with this new pattern. Even more, I suppose that in a query by example, when building the where clause, JDev expects the given date to be a string with that same pattern (dd/MM/yyyy). So, we have the first conclusion: The selected date must be a String with the given pattern. That is why I assigned a converter to the selectInputDate component.
    I did some tests and concluded: The patterns in the BO and in the converter assigned to the selectInputDate component must match or the query won't work.
    The second step is to narrow the date range. The way I found to do it is by assigning a datetime validator to the selectInputDate component. This validator expects java.util.Date values for its min and max dates, and the date chooser works well (by enabling only dates between the given range).
    The problem rises when you submit the form. At validation time you have: a date expressed as a formatted String (needed for the query) and a validator expecting a java.util.Date to perform the validation. So, you get a casting error.
    All this is what I understood and concluded about the situation and, of course I could be completelly wrong.
    If my steps for configuring the search parameters are correct, there must be a way to do the String - Date casting and avoid the error.
    If my approach is wrong then there must be a correct approach for this kind of situation.
    Thanks a lot for your help,
    A. Gurisatti

  • Linking af:selectInputDate component to other Components

    Hello All,
    Can someone offer me any advice here? I have two components on my screen. One is a SelectInputDate component and the other component is a daily schedule component. Here's my problem (bear with me, its not as easy as it first appears). When the user selects the date from the selectInputDate control, I want to call an action on my backing bean which refreshes the Schedule component. Now, I thought I could bind the Action property of the selectInputDate control to my backing Bean method but if you do that, the action to popup the calendar dialog is intercepted so you don't get the popup calendar. How can I make the selection of a date trigger another action method? I've tried the listeners, but they don't perform an action method.
    One solution was to simply add a command button next to the selectInputDate control and make the user first select the date, then press the commandButton; but as you can imagine, this is really ugly.
    It's as if I need a second Action method that I can bind to once the date has been selected, or at least implement in code the call to the Date dialog and then add my action code after it.
    Any help would, as always be greatly appreciated.
    Nigel

    Hi,
    you can use partial page triggers for this
    - open the property inspector for the selectInputDate component
    - give a value to the ID property and set the autoSubmit property to true
    - Select the component to refresh and open the property inspector
    - select the PartialTrigger property and open the dialog [...] button
    - choose the ID of the inputDate component as a value
    This will refresh the component (e.g. table, panel, etc) upon value change
    Frank

  • SelectInputDate set first day of week

    Hi all! I was trying to change the first day of week showed in the calendar (Ex. set the first day the Monday) but i dont find any results :(
    Someone know how to change it?
    Many thanks.
    Jose.

    Hi Jose, <br>
    <br>
    Unfortunately, this is not possible in JDeveloper 10.1.3<br>
    See "<a href="http://blogs.oracle.com/Didier/2007/02/26#a218"> Setting the First Day of the Week to Monday in the SelectInputDate component</a>" for more details. <br>
    <br>
    Regards, <br>
    <br>
    Didier.<br>
    <br>

  • 10.1.3 af:selectInputDate crashes Safari 2.0.3

    When the user selects either a date value OR clicks "cancel" from the af:selectInputDate pop-up window, the Safari browser crashes. Running version 10.4.3 of OS X. The widget in the pop-up is rendered correctly, and the user is able to page through various calendar months, but selecting a value and canceling do not work.
    Is Safari a supported browser for the 10.1.3 ADF JSF implementation? I was unable to locate a list of supported browsers and versions for these components.

    Yes it does. I believe it uses saxon library but don't quote me on that.

  • SelectInputDate problem in Thai environment

    I am using JSF EA17 with Thai environment (default locale is Thai) and JDeveloper 10.1.3
    In my jsf page I used following
    <af:selectInputDate binding="#{backing_application_newApplication.selectInputDate1}"
    label="Date of Birth"
    value="#{someBean.dateOfBirth}"/>
    where value of bean is defaulted to the current date.
    When I run page it is properly showing date as 23/8/2548 (according thai calendar),
    however when I press calendar icon to show Pick a data dialog it is showing date 23/8/3091 (exactly 543 year difference between gegorian and thai calendar)
    Also in case I add converDateTime and set locale to us, date shown in text field is
    23/8/2005 but in Pick a date dialog it is shown as 23/8/2548 (the same year difference).
    Is this a bug, or am I doing something wrong? If it is bug is there any simple workarround?
    Regards
    ferdo

    try adding the following to faces-config.xml <application>
       <locale-config>
         <default-locale>en</default-locale>
         <supported-locale>th</supported-locale>
       </locale-config>
    </application>

  • Af:selectInputDate  can support hour:minute:second

    hi, my current project needs a control to display yyyy/mm/dd hh:mm:ss . Does af:selectInputDate has this kind of options ?
    Thanks,

    hi, my current project needs a control to display yyyy/mm/dd hh:mm:ss . Does af:selectInputDate has this kind of options ?
    Thanks,

  • How to Set The Initial Value of selectinputdate Component

    I set the the initial value by
    public void setSelectInputDate1(CoreSelectInputDate selectInputDate1) {
    this.selectInputDate1 = selectInputDate1;
    java.util.Date v_tarih = new java.util.Date();
    this.selectInputDate1.setValue(v_tarih);
    But when I change the value of selectinputdate and refresh the page it gives the warning
    2006-11-18 19:21:35.562 WARNING JBO-25009: 25.11.2006 19:17 oracle.jbo.domain.Date object cannot be created
    2006-11-18 19:21:35.562 WARNING java.lang.IllegalArgumentException.
    What is the reason?
    Thanks...

    Hi Turhan Tekin,
    this post may be helpful for you:
    Re: setting value of select input date adf component programmaticaly
    Regards,
    Luis R.

  • Af:selectInputDate and Range Control

    I have two af:selectInputDate boxes in my page : one each for the start and end dates corresponding to a functionality.
    Once the user selects the start date(the first af:selectInputDate), i want the second af:selectInputDate to have that value as the minimum.How do i bind this with the second af:selectInputDate component?

    I seem to be doing something really silly , kindly correct me plz :
    <af:selectInputDate label="Label 1"
    binding="#{backing_AddRowPage.selectInputDate1}"
    id="selectInputDate1"
    value="#{obj.startDate}"
    chooseId="chooseStartDate">
    <af:chooseDate binding="#{backing_AddRowPage.chooseStartDate}"
    id="chooseStartDate"/>
    </af:selectInputDate>
    <af:selectInputDate label="Label 2"
    binding="#{backing_AddRowPage.selectInputDate2}"
    id="selectInputDate2"
    value="#{obj.endDate}"
    chooseId="chooseEndDate">
    <af:chooseDate binding="#{backing_AddRowPage.chooseEndDate}"
    id="chooseEndDate"
    minValue="#{backing_AddRowPage.chooseStartDate}"/>
    </af:selectInputDate>
    The End Date minValue needs to be set...

  • Af:selectInputDate should not popup and should display same window

    I am using af:selectInputDate component in my project. The af:selectInputDate component opens the popup window to select the requried date but i need it should not popup, it should be show the same window to user select the date.
    Is it posible to diable the popup window? if it is, please give me the details.
    thank you

    Hi,
    you cannot change this behavior. However, you can drop the "chooseDate" component and build this effect yourself
    Frank

  • ADF SelectInputDate skin questions

    Hi everyone,
    i'm creating a skin for my adf project and i have some questions about the selectinputdate component:
    - Can i change the navigation icons in calendar with the af|selectInputDate::nav-link selector (and how)?
    - How can i changed de background color for the window tha display the calendar component, i play with selectInputDate selectors without success.
    - How can i changed days numbers colors, i play with af|selectInputDate::content selector without success (i can change only inactives days colors).
    Thanks, Eduardo.

    Hello, Here's the answers to your questions:
    - Can i change the navigation icons in calendar with the af|selectInputDate::nav-link selector (and how)?
    The best way to change the navigation icons is with the 'icon' keys: next-icon and prev-icon. You can use an <img> or text. The default in the simple skin is text : "<" and ">". If you want to use an img instead, then you'd skin it like this:
    af|selectInputDate::next-icon {
    content: url("...");
    You could use background-image on the ::nav-link, but it is a CSS problem with making enough visual space to show up the image. For example, we have created aliases in our 11g ADF Faces components for clickable images and to make them visible, we had to add padding, etc.
    .AFClickableImageAnchor:alias {
    font-size: 14px;
    padding-right: 16px;
    margin-left: 1px;
    margin-right: 1px;
    background-repeat: no-repeat;
    background-position: bottom left;
    @agent ie {
    .AFClickableImageAnchor:alias {
    display: inline-block;
    - How can i changed de background color for the window tha display the calendar component, i play with selectInputDate selectors without success.
    You can't style a popup's background color dependent of what component is in it.
    - How can i changed days numbers colors, i play with af|selectInputDate::content selector without success (i can change only inactives days colors).
    You c an use af|sID::content A {color: aqua}.
    We don't have a hook in place that you can use that doesn't expose HTML. We'd rather you not use HTML in the selectors, but if that's all you have, then there's no way around it.
    Also, you can use Firebug and disable the content compression to help you with skinning.
    Content compression compresses the styleclasses from their full name to short names, like x10. Viewing the full name makes skinning easier, but it should only be done during skinning development because of performance reasons -- the rendered pages will be larger with content compression turned out.
    For turn off content compression in 10.1.3, you set in web.xml the
    oracle.adfinternal.view.faces.DISABLE_CONTENT_COMPRESSION to true
    - Jeanne

  • ADF FACES: EA17 selectInputDate arrows no longer display

    Hi,
    Ever since upgrading to EA17, date selectors no longer correctly render the left and right month naviagtion arrows - we just get a broken image link icon (clicking still works fine though) , I checked out the URL for the image and it is now ./adf/images/cache/null instead of a valid image URL. Used to work fine on EA15. Please advise if this is a bug
    code snippet:
    <af:selectInputDate
         styleClass="normalDate"
         label="#{messages.ipbBuySellTrade_tradeDate}"
         simple="true"                              value="#{ipbBuySellEntryController.ipbBuySellEntryBean.tradeDateObject}"
         disabled="#{ipbBuySellEntryController.guiFieldsDisabled}"/>
    Thanks
    James

    We can't reproduce this locally (and QA would certainly have caught this were it happening everywhere). The only thing I can imagine is that you might have some files that need to be cleaned up in the appserver's cache. Where that cache is depends on the appserver; in OC4J, it's inside j2ee/home/application-deployments, and in Tomcat it's inside work/Catalina/localhost.
    Look for the temporary files in there, delete 'em, and see what happens when you restart.

  • ADF Faces: selectInputDate - wrong error message on range violation

    I use ADF EA17 with MyFaces 1.0.9.m9 and InternetExplorer 6.0.
    Supported Locale "de".
    When i use the af:selectInputDate in a form following happens:
    &lt;af:selectInputDate id="expirationDate"
    value="#{myBean.expirationDate}"
    labelAndAccessKey="#{msg['expirationDate']}"
    required="true" &gt;
    &lt;af:validateDateTimeRange minimum="2005-07-21" /&gt;
    &lt;/af:selectInputDate&gt;
    If i enter "21.07.2005" i can submit the form and all is OK.
    If i enter "20.07.2005" the response was
    Expiration Date:
    The Date entered, "20.07.2005", is outside the valid range. Entered dates must be no earlier than 20.07.2005.
    But the text should be ".... Entered dates must be no earlier than 21.07.2005."
    I believe the reason is my timezone (UTC+2:00).

    There's nothing wrong with your approach at all.
    There are other ways you can do it, but that's the case for most things.
    You can put a tip on the inputText components, but if you want something to show only when the focus is set to the inputText, then you would need to use some javascript for that.
    This [link |http://www.javascriptkit.com/script/script2/formfieldhints.shtml] has a good example of it. I've done something similar before, it's quite simple and effective.
    -chris

  • Javascript error "'_jspDir' is undefined" when clicking af:selectInputDate

    I have a af:selectInputDate component inside a af:showDetailItem (af:showDetailItem is inside a af:showOneTab).
    When the attribute Disclose of the af:showDetailItem set to true. There are no probelms to pop up date picker. But if the Disclose set to false, I got the javascript error : '_jspDir' is undefined. This error only happend in IE (my version is IE7).
    Any ideas / helps?
    JDeveloper 10.1.3.3.0 (cannot upgrade to JDeveloper 11g)
    Thanks
    Joyce
    Message was edited by:
    xpp

    Hi,
    doesn't reproduce on 10.1.3.4
    Frank

Maybe you are looking for