NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Webuijsf calendar in NetBeans application

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
CathyS



Joined: 26 May 2011
Posts: 2

PostPosted: Thu May 26, 2011 5:39 pm    Post subject: Webuijsf calendar in NetBeans application Reply with quote

Can someone please help me?

I have a JSP page that is completely made up of webuijsf components. I have two calendars on the page.

<webuijsf:calendar binding="#{Page2.creationFromDate}" id="calendar1" style="font-family: 'Times New Roman','Times',serif; font-size: 12px; left: 168px; top: 96px; position: absolute"/>

<webuijsf:calendar binding="#{Page2.creationToDate}" id="calendar2" style="left: 384px; top: 96px; position: absolute"/>


Within the Java code for Page2, I have the following definitions, getters, and setters:

private Calendar creationFromDate = new Calendar();

public Calendar getCreationFromDate() {
return creationFromDate;
}

public void setCreationFromDate(Calendar c) {
this.creationFromDate = c;
}
private Calendar creationToDate = new Calendar();

public Calendar getCreationToDate() {
return creationToDate;
}

public void setCreationToDate(Calendar c) {
this.creationToDate = c;
}


What else do I need for this calendar to take the selected dates and place them into the text boxes? The dates are only being placed into the text boxes one time out of 10 or 20 tries. I keep clicking away; and, most of the time, nothing changes in the text boxes.

I tried adding a ValueChangeListener event, but it did not like this. The error I received was that it was not appropriate for the Calendar tag.

I have searched the internet and found other problems with the Woodstock calendar, but nothing that states that the dates are not being populated into the text boxes.
Back to top
jyeary



Joined: 21 Oct 2008
Posts: 610
Location: Simpsonville, SC

PostPosted: Thu May 26, 2011 7:09 pm    Post subject: Re: Webuijsf calendar in NetBeans application Reply with quote

Hello Cathy,

What browser is causing the issue? Have you tried it on multiple browsers? Is there different behavior between browsers? Also check to see if the Calendar you are expecting is the Woodstock Calendar class and not the java.util.Calendar version.

John

On Thu, May 26, 2011 at 1:39 PM, CathyS <address-removed ([email]address-removed[/email])> wrote:
Quote:
Can someone please help me?

I have a JSP page that is completely made up of webuijsf components.
Back to top
CathyS



Joined: 26 May 2011
Posts: 2

PostPosted: Thu May 26, 2011 8:36 pm    Post subject: Webuijsf Calendar in Netbeans Application Reply with quote

I tried this in the Firefox browser. I am not able to get it to populate the text boxes even once in that browser.

It is definitely the Woodstock calendar and not the java.util calendar.

Just grasping at straws, but could it have something to do with the popup calendar overlaying other things on the screen that could be causing interference?
Back to top
jyeary



Joined: 21 Oct 2008
Posts: 610
Location: Simpsonville, SC

PostPosted: Sat May 28, 2011 4:24 pm    Post subject: Re: Webuijsf calendar in NetBeans application Reply with quote

I realized that you are binding a java.util.Calendar to a component that binds to java.util.Date objects.

I published a blog post on how to use it and it includes an example application.

http://javaevangelist.blogspot.com/2011/05/woodstock-visual-jsf-calendar-binding.html

John

On Thu, May 26, 2011 at 1:39 PM, CathyS <address-removed ([email]address-removed[/email])> wrote:
Quote:
Can someone please help me?

I have a JSP page that is completely made up of webuijsf components.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo