NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
CathyS
Joined: 26 May 2011 Posts: 2
|
Posted: Thu May 26, 2011 5:39 pm Post subject: Webuijsf calendar in NetBeans application |
|
|
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
|
Posted: Thu May 26, 2011 7:09 pm Post subject: Re: Webuijsf calendar in NetBeans application |
|
|
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
|
Posted: Thu May 26, 2011 8:36 pm Post subject: Webuijsf Calendar in Netbeans Application |
|
|
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
|
Posted: Sat May 28, 2011 4:24 pm Post subject: Re: Webuijsf calendar in NetBeans application |
|
|
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 |
|
 |
|
|
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
|
|
|
|