JSF Calendar Component JS error

Hi everyone,
I have problem with JSF Calendar component. JSP version is 1.2 so we are using com.sun.rave.web.ui.component.Calendar class.
When HTML code is generated some id missing. For example:
JavaScript tries to find subForm:startCalendar:_datePicker:row5, but there is only subForm:startCalendar:_datePicker:row4.
This cause JS error at line 249 in calendar.js:
this.lastRow = document.getElementById(rowId);
this.lastRow.style.display = "none"; //error is here this.lastRow is nullAfter few reloads and manual date change calendar seem to work fine for a while, but it can stop at anytime. There are no errors in Tomcat logs (we are using Tomcat 5.5, but we have same error with Glassfish 2).
Here is JSP code:
<ui:calendar binding="#{Index.startCalendar}" dateFormatPattern="dd.MM.yyyy" id="startCalendar" style="position: absolute; left: 120px; top: 96px"/>

I had observed that the code for UI:Calendar Component looks up defaulttheme.jar file which will be avaialble with Sun studio creator or with UI tag jars ...... for its JS files, Images and style sheets etc .
I tried seeing the contents in the JS files and there is a JS file specifically for Calendar Component ie calendar.js ... editing the same i came to see this
// This does not work for August (08) and September (09) but it works
// for all the other months????
function ui_Calendar_setCurrentValue() {
    var curDate = this.field.value;
    var matches = true;
but cant see Feb month there...
It the problem with the code in teh JS file that they are using to generate the component...
sooo the only solution would be to get the latest jars fixing that issue (defaulttheme.jar)
I tried googling out for teh latest jars for the same i coudnt find any such...
This is my investigation on this issue.Hope only code fix kills the flaw
If any one gets a solution or workaround pls post ASAP to help us.+
Edited by: Shivaji. on Feb 3, 2009 4:44 AM

Similar Messages

  • JSF Calendar Component Selection Issue

    Hi,
    I have design a JSF Page using two calendar components, ie
    Start Date
    End Date
    Both of these dates field allow user input but only one of them are on compulsory basis.
    Start Date is a compulsory , whereas End Date is not. What I notice was if the user did not select the End Date , upon clicking submit button, no action would be follow , if the End date was somehow selected , the JSF page perform normally.
    My question is how to resolve this issue as sometime it is not practical to preselect an End date in advance especially if a big project is undertaken, the logic here is , upon completion , the user could either input the date manually or via programme auto update.
    Could anyone provide any hints and solution please
    Thank

    Hi,
    I have design a JSF Page using two calendar
    components, ie
    Start Date
    End Date
    Both of these dates field allow user input but only
    one of them are on compulsory basis.
    Start Date is a compulsory , whereas End Date is
    not. What I notice was if the user did not select
    the End Date , upon clicking submit button, no
    action would be follow , if the End date was
    somehow selected , the JSF page perform normally.
    My question is how to resolve this issue as sometime
    it is not practical to preselect an End date in
    advance especially if a big project is undertaken,
    the logic here is , upon completion , the user could
    either input the date manually or via programme auto
    update.
    Could anyone provide any hints and solution please
    ThankBy "compulsory" I'm guessing you mean the "required" attribute has been set. I think one problem with the built-in calendar is that there isn't a way to specify the value "no-date-was-selected". Maybe you can simulate it by initially setting the value to the maximum date and telling the user to igore this value. Not a good solution. There is a newer popup calendar that I have been working on that has been checked into the bpcatalog tree on java.net which fixes these problems. Unfortunately, it needs to be packaged up as a complib and downloadable some where. I hope to do this soon.
    -Edwin
    http://blogs.sun.com/edwingo/

  • Calendar Component and validation errors

    Hi,
    For the first time I am trying to use the Calendar component to insert a date field in my SQL Server db.
    The problem: I can insert a date column only if its of type java.sql.Timestamp.
    As Timestamp extends the date object..
    I tried to bind the selectedDate field as <Timestamp> Object[refractored in my class file] and when i tried to update by DB it throwing a Validation error.
    If I bind it as a Date Object directly I am getting an EvaluvationException
    as date objects cannot be inserted directly
    Am i missing something here or is there a proper way of implementing it.

    Its a fairly direct question about object conversion problem in creator
    Basically the selectedDate parameter of the JSC Calendar component
    needs to be pointed to a Date Object
    If we need to insert that date information to a SQL Server column the equivalent data type should be java.sql.Timestamp which extends Date.
    So if we point the selectedDate parameter as a Timestamp object the creator throws an illegal argument exception.
    Can some one clarify how to resolve this issue?

  • JSF Declarative Component

    hi every body
    i am using Oracle Jdeveloper 11g release 2
    i wanted to create a Calendar Component
    for this i used JSF Declarative Component
    i added a RichInputText to page and a Button for opening calendar Dialog
    when for first time i open Calendar Dialog and select a day ,
    value of this day return to RichInputText truly but
    when i wanna to open it for second time that has an error
    error is:
    Error:dateValue is Read only
    i have to tell you dateValue is name of Attribute on JSF Declarative Component
    can anybody help me?

    i found a solution for this problem
    thanks

  • Tutorial - Calendar Component

    Hi,
    I'm trying to add the Calendar component to a Page fragment but I 'm getting the following error:
    java.lang.IllegalStateException: Not nested inside a form
    So, I added the h:form as in the following sample:
    <?xml version="1.0" encoding="UTF-8"?>
    <div style="-rave-layout: grid" xmlns:a="http://www.sun.com/creator/addons" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
    <p>Included Content Here</p>
    <h:form>
    <a:calendar binding="#{expense$final$incidentArea.calendar1}" id="calendar1" style="left: 48px; top: 72px; position: absolute"/>
    </h:form>
    </div>
    But now, one of the two things are happing:
    a) I got a "The prefix for element "h" is not bounded
    b) Or, I don't get the above message, but the calendar isn;t reder. In his place, there is a "Red" box.
    Question: Is valid add tags like "h" in a page fragment? If yes, how can one bound the correct xmlns to the prefix since one can't use jsp:root?
    Thanks.

    Thanks for the information. But I have a question on Calendar component . I want the Calendar component to be open when user wants to enter a date. Otherwie it looks akward in a page to keep the component visible all the time. How do I do that? What I am thinking is, i want to make this small and upon clicking it will open the calendar and select date. Thanks for your help in advance.
    About Fileupload
    Do I have to copy any jar file from MyFaces. I am using SUN Studio Creator. Do I have to import anything?

  • Calendar component in CQ 5.5, "Recursive invocation. Not further handling status 404(No form found)"

    Hi,
    we have upgraded our CQ 5.4 installation to CQ 5.5. After the upgrade, we are facing an error with the Calendar component. The following error is logged when trying to create a new calendar event:
    20.11.2012 11:01:23.139 *ERROR* [10.62.45.10 [1353405682764] POST /content/hm/NewsroomSection/en/NewsRoom/test/_jcr_content/par/calendar_3dd7/calendars/def ault/2012/11/22/.form.create.html/libs/collab/calendar/content/eventform HTTP/1.1] org.apache.sling.servlets.resolver.internal.SlingServletResolver handleError: Recursive invocation. Not further handling status 404(No form found)
    We will try increasing the log level to possibly get a more detailed error message, just checking if anyone has encountered this issue?
    Thanks,
    Joakim

    "No form found" means the form chooser that's used here ("form" selector) to find the form to show/edit the event did not find one under the given path /libs/collab/cale ndar/content/eventform (the suffix). It contains a space, maybe it's just a typo.

  • Jsf datatable component + java.sql.SQLException

    I get the following error when implementing a JSF DataTable component using
    JDeveloper 10.1.3.1.
    javax.faces.FacesException: java.sql.SQLException: Io exception: Socket closed
    I am able to follow the article in this link:
    http://www.oracle.com/technology/oramag/oracle/06-jan/o16jsf.html
    I can get the table generated, but it occurred to me that the example in this article does not include logic to close the statement, resultset, and connection. Sure enough, I jumped out to the database and there were numerous inactive connections hanging around from my application.
    I added the following code before the return null statement from the article:
    finally {
    try {
    rs.close();
    stmt.close();
    c.close();
    catch (Exception e) {
    System.out.println("after close");
    So I need to know the proper procedure to closing the resultset, statement, and connection using a jsf datatable component.

    You need to make sure you're using the Oracle9i JDBC driver, or using the Oracle 8.1.7.2 JDBC driver as I mentioned above.
    If you are using JDeveloper9i release 9.0.2 or 9.0.3, the driver you need is in <jdevhome>\jdbc\lib
    Otherwise, you can also download the drivers from OTN.

  • Calendar component not found

    There is no calendar component in the "JSF Standard Component" of Standard tag of Palette.
    How do I display it.
    Best regards
    Bernard

    The calendar component is under the "basic" components.
    -David

  • Pojo/List/ManagedBean/ADF RF component yeilds error "Target Unreachable", J

    Hello JDevelopers;
    (Pojo/List/ManagedBean/ADF RF component yields error "Target Unreachable", JSF component does not.)
    I am attempting to convert a page with jsf/html components to a page with ADF RF components.
    I am using a pojo that returns a List.
    The pojo is registered as a ManagedBean in adfc-config file.
    I am not using a data control.
    It all works fine with jsf/html components.
    The following <h:inputText> works fine when using jsf/html component.
         <h:inputText value="#{taskRnDController.task.taskNum}" required="true" </h:inputText>
    Changing it to an <af:inputText component and running the app produces the error listed below;
         <af:inputText value="#{taskRnDController.task.taskNum}" id="it1" label="Label 1" required="true"/>
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.el.PropertyNotFoundException: Target Unreachable, 'task' returned null
         at com.sun.el.parser.AstValue.getTarget(Unknown Source)
         at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
         at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
    this is the adfc-config file
    <managed-bean id="__3">
    <managed-bean-name id="__2">taskRnDController</managed-bean-name>
    <managed-bean-class id="__1">com.myorg.facade.TaskRnDController<;/managed-bean-class>
    <managed-bean-scope id="__4">session</managed-bean-scope>
    </managed-bean>
    I need an <af:form> and an <af:table> components on the same page so that when a user
    inserts a new record on the form and presses save btn it is immediately displayed
    within the <af:table>.
    I am stuck and any help is much appreciated.
    Edited by: 848693 on Jun 15, 2011 4:28 PM

    you just want to bind your input text to backing bean .then why you are using list ?
    It is very simple just use any variable and bind with your UI component
    Thanks
    Prateek

  • Web-Calendar component in Wiki get lost after Open Directory installation

    if I change my Lion Server to use opendirectory and not work in standalone mode, I lose the ability of the server for web-calendar for example at the wiki-webpage.
    servername/webcal
    The error-message tells me, the service calendar is deaktivated and I should activate it at Server App.
    But at Server App:
    a) iCal Service IS ACTIVE
    b) I find NO OPTION for activating the Web-Calender function under iCal like at the Mail-Service (one above) -> activate Webmail
    So, HOW I can BRING the web calendar component BACK TO MY WIKI?
    I wanted to use it in company, but now I not touch this "open directory activation" anymore, because I will lose. Without opendirectory the webcalendar working!
    I tried to find that function with Server - Admin, but this programm is much limited to what it was at the Snow Leopard Server and there I cannot select the iCal Service anymore. It's same with the new Airport Utility 6.0. Terrible reduced and I just installed back 5.6 and this is good working for my needs.

    I found the solution: Like with the PPTP-VPN problem it depends on the certificate. If you BUY an official public certificate (yes spend money for your Server more than the server price!), at once the Webcalender and the PPTP-VPN working!
    If in other way you fight through your selfsigned certificate problems and rebuild it, at once you will get all your problems again. So, not wonder why Apple at once mention in the help-line, that you need to buy a certificate. This, they mean true! You should support the certificate system of the new IPv6 and vanishing IPv4 world (I mean the IBM VeriSystem) for the new TRANSACTION orientated usage-fee-world. And not forget in this new Internet 2 world: E-Mail will become a service that get paid per transaction and 19% VAT tax (Germany) on top of it and 1 Cent communication tax (like the energy cent we pay today for each unit of energy source) for the EU. This, they realy plan to realize next years. So, why we wonder about this strange certificate issue it such transactions need be identified unique? In April in greater region Hannover-Braunschweig they will change the bankingcards for the new cashfree-system (GiroGo). And who wonders: cash-transfers will get transaction fees. They tell: Only 1 Cent / 5 Euro, only 2 Cent for 10 Euro, only 15 cent for 15 Euro. So, you understand what this new transaction and veriSigned world in real means? It is a change from a pocessing-free-world into a usage-fee-world. And you realy think that 2013 we still will speak from a banking crisis under such new conditions? They will get billions each day cash-transaction-fees. With NFC-iPhone 5 no problem (NCF -> look at Near field communications). The people will say: Oh, it's only 1, 2, 3 Cent but so practical not change money coins anymore. You will see how good this transaction usage-fee money-machine will work. And the EU will get billions transaction-communication-tax each day from the emails, there will be no discussion about Greek, Irland, Portugal, Spain (PIGS) ... economic-crisis anymore. You will see, such will happen! No banking crisis with Internet 2, no economic crisis with Internet 2. All will be solved by us, the people. Oh, our Merkel, when she come back from a G20 meeting already said: "We decided that each economic member and part need be 100% in focus in future and not uncontrolled anymore."
    If somebody more interested at this plan, you can watch this docu movie "one mainframe to rule the world" that describes deeper the issue of certification, identification, verification of people or things. The near world we drive directly into. And this certification system is ruled by whom?
    http://www.youtube.com/watch?v=uXTwS_T-CvM
    When I at least go to the Apple-Center I found the teacher with a Microsoft-T-Shirt of certification and wonderd very much. Than he told me, that the only groupware that is true for a good usage together with Apple is Exchange Server. And the more he told the more I wonder because he is Apple-Highgraded. But I not so much wonder anymore. Understand the game this companies play with us. It's a licence crisis and it can be described as: Microsoft is a the one end of the coordination system with x = price and y = pieces sold. Apple is exaclty at the opposite. Look what MS does, look what Apple does and at the end it's not difficult to see, that they moving to eachother to meet. And the missing 3d coordinate z in this new room is IBM with it's VeriSystem.
    So, a perfect xyz-combination for all giants.
    How Google, Linux ... matches inside this "new computer world order"?
    I will mention that much IT-professionals at the moment going to such new curses and explain that 2013 they will change all hardware to "certified hardware" that NEED BE used in businesses and for example Linux will not be part of this new "certified world".

  • JSF calendar makes IE7 extremely slow

    When using the Calendar component in a datatable I notice that IE7 is extremely slow. Clicking on anything in IE (scrollbars, menus, even the X to close it) we experience a 3-5 second delay to get the focus. If we remove the columns with the calendar components, IE is more responsive. There is no delay at all when using Firefox. Has anyone else experienced this? I've read IE has problems with javascript, is this the problem here? Possible solutions? thanks in advance

    The core JSF components are from http://java.sun.com/jsf/core and are listed here: [http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/tlddocs/index.html].
    I am not sure, but according to the taglib it look like part of Woodstock. Check [http://woodstock.dev.java.net]. It may be good to know that this project was almost dead for more than one year and that they stopped development since january this year and that all users are recommended to migrate to RichFaces or IceFaces.

  • Day View in calendar Component showing the next at times not everytime!

    Day View in calendar Component showing the next at times not everytime! My question is when we go to Day view which day does it show? is it Server day where the application reside or the machine time zone day ?

    I think you want to know, days & time picked by which machine, locally or from server? It does take from server where the application is running.

  • Format calendar component times to  "hh:mm a"

    Hi all,
    I would like to format the calendar component time slots  to "hh:mm a" (Example 01:30 AM), Is it possible? By default, caldendar component shows  times in hh:mm (Example 24:00) format.
    regards,
    Jhon

    Hi,
    You mean the Choose date Component or Input Date Component ?
    For InputDate Component its' possible
    Put InputDate Component , Then put a ConverDateTime Component to it.
    Change its TimeStyle to Short  and Type to Time on rules.
    Regards
    Nalin

  • JSF custom component

    Hi
    I have created a JSF cutom component , which has some javascript files. If i use the component within the same project my path for accessing the JS files is :- js/task.js (Its in public/html folder) .
    My problem is that when I use this custom component in some other project i am not able to access the js file ( Js file are deployed with other source file in ADF Library Jar) . As I have to hard code the path of JS files in the render can any one please tell me what will be the path for accessing the JS files.
    i heard ADFLibraryFilter is used for the purpose. Anyone please shed more light on it.

    Thanx Frank for your help .
    I am generating html from the rendererm, in the encodeBegin method i have now written <script type="text/javascript" src="adflibResources/js/task.js"></script>
    But still the script isn't loading on the page
    I added the following code in web.xml but Jdeveloper (Studio Edition Version 11.1.1.1.0) is complaining that "refernce oracle.adf.library.webapp.LibraryFilter and oracle.adf.library.webapp.ResourceServlet not found. I am using Fusion Web Application (ADF) as the application template.
    <filter>
    <filter-name>ADFLibraryFilter</filter-name>
    <filter-class>oracle.adf.library.webapp.LibraryFilter</filter-class>
    <init-param>
    <param-name>provider-lazy-inited</param-name>
    <param-value>true</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>ADFLibraryFilter</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <servlet>
    <servlet-name>adflibResources</servlet-name>
    <servlet-class>oracle.adf.library.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>adflibResources</servlet-name>
    <url-pattern>/adflib/*</url-pattern>
    </servlet-mapping>

  • Calendar Component

    HI Guys,
    I have a small query; which relates o the use of Calendar COmponent in xcelsius. I have to use this and filter my data accrding to the selection made. How can this be achieved?
    Selection - 04-Jul-2009
    Data -
    Date                               Column_Name
    01-Jul-2009                   D1
    01-Jul-2009                   D2 
    04-Jul-2009                   D3
    04-Jul-2009                   D4 
    04-Jul-2009                   D5
    Result should be:-
    04-Jul-2009                   D3
    04-Jul-2009                   D4 
    04-Jul-2009                   D5
    Regards,
    Pratik

    Hi Anil
    You can use the filtered summary property of a ComboBox to achieve it.  No index/match formula are needed, just a simple if statement.
    Want me to send the file?
    Regards
    [Charles|http://www.reportex.co.uk/xc_waterfallchart.html]

Maybe you are looking for

  • Airport Express Playing Audio From Front Row

    Can AE be directed to play the audio through Front Row. Obviously it would be nice when playing Itunes through the Front Row Interface, but I was more interested in getting the Full sound while playing movies through Front Row.

  • Add the days to a particular date

    Hi all , I got a date in my internal table . I got a integer which holds certain no. of days . I need to add that integer to the date . like i got 10.10.08 integer is 5. i have to get 15.10.08 pls let ,me know regards Raj

  • My computer is just not working

    I went on my computer and it was being slow and teh fast forward,backward, and play buttons were not working. I have tried to shut it down,sleep,and restart but it is not responding. It will also not let me open any applications except for chrome. Pl

  • Parallax scrolling involved with HTML

    Good evening, Have a parallax scrolling involved with HTML. However, now each function is disabled. Horizontal and vertical wipe will not work ... someone has an idea? Thank you!

  • I can not edit or delete events in ios calendar app

    iPhone 5s.  iOS7.  I have synched my google calendar with my iphone using caldv.  The calendars appear just fine.  I can add events, but when I attempt to edit them, they go back to the original event (prior to edit) after a few seconds.  Also, if I