This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 144874 - Calendar in Woodstock table component
Summary: Calendar in Woodstock table component
Status: RESOLVED INCOMPLETE
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Mark Dey
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-22 15:23 UTC by nicolasgaudin
Modified: 2009-03-17 11:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nicolasgaudin 2008-08-22 15:23:51 UTC
Hi Winston, All

Environment:
Woodstock 4.3 build 5
Glassfish v2UR2 final

ISSUE:
Adding Woodstock Calendar component to the table component renders the calendar component only on first row of the table.
More when picking up a date from this only visible calendar, the date is applied to all rows.

After some research, I found out that is was due to wrongly generated IDs for the datePicker facet.
Indeed, it puts the same id to all rows i.e the ID of the first row calendar + _"datePicker"..
(I did as follows:
=> Editing the source of the page, full copy and paste of html code in new html page.
=> Modifying directly in html, the id of each datePicker to the id of its corresponding calendar +_DatePicker)
=> Launch this new html page in web application

and guess what...
all rocks perfectly ! ;-)

BUGGED HTML CODE: noticed as !!!!!!!HERE!!!!!!!!!!!

<tr id="form1:table1:tableRowGroup1:0">
<td id="form1:table1:tableRowGroup1:0:tableColumn1" class="TblTdLyt_sun4" align="left"><span id="j_id2"><script
type="text/javascript">woodstock4_3.widget.common.createWidget('j_id2',{"id":"form1:table1:tableRowGroup1:0:tableColumn1:calendar1","valid":true,"readOnly":false,"widgetType":"calendarField","autoValidate":false,"visible":true,"autoComplete":false,"value":"","required":false,"disabled":false,
!!!!!!!HERE!!!!!!!!!!!"calendar":{"id":"form1:table1:tableRowGroup1:0:tableColumn1:calendar1:_datePicker","widgetType":"calendar","maxDate":"22/08/2108","minDate":"22/08/1908","dateFormat":"dd/MM/yyyy","todayDateMsg":"Aujourd'hui
: 22 août 2008"},"size":20});</script></span></td></tr>

<tr id="form1:table1:tableRowGroup1:1">
<td id="form1:table1:tableRowGroup1:1:tableColumn1" class="TblTdLyt_sun4" align="left"><span id="j_id3"><script
type="text/javascript">woodstock4_3.widget.common.createWidget('j_id3',{"id":"form1:table1:tableRowGroup1:1:tableColumn1:calendar1","valid":true,"readOnly":false,"widgetType":"calendarField","autoValidate":false,"visible":true,"autoComplete":false,"value":"","required":false,"disabled":false,
!!!!!!!HERE!!!!!!!!!!!"calendar":{"id":"form1:table1:tableRowGroup1:0:tableColumn1:calendar1:_datePicker","widgetType":"calendar","maxDate":"22/08/2108","minDate":"22/08/1908","dateFormat":"dd/MM/yyyy","todayDateMsg":"Aujourd'hui
: 22 août 2008"},"size":20});</script></span></td></tr>

<tr id="form1:table1:tableRowGroup1:2">
<td id="form1:table1:tableRowGroup1:2:tableColumn1" class="TblTdLyt_sun4" align="left"><span id="j_id4"><script
type="text/javascript">woodstock4_3.widget.common.createWidget('j_id4',{"id":"form1:table1:tableRowGroup1:2:tableColumn1:calendar1","valid":true,"readOnly":false,"widgetType":"calendarField","autoValidate":false,"visible":true,"autoComplete":false,"value":"","required":false,"disabled":false,
!!!!!!!HERE!!!!!!!!!!!"calendar":{"id":"form1:table1:tableRowGroup1:0:tableColumn1:calendar1:_datePicker","widgetType":"calendar","maxDate":"22/08/2108","minDate":"22/08/1908","dateFormat":"dd/MM/yyyy","todayDateMsg":"Aujourd'hui
: 22 août 2008"},"size":20});</script></span></td></tr>


Hoping this can be fixed shortly
Best regards
Nicolas
Comment 1 Jayashri Visvanathan 2008-08-25 18:48:02 UTC
Woodstock 4.3 is not supported on 6.1. It may work with 6.5 but it has not gone through complete testing. My
recommendation would be to use the woodstock bits that come bundled in NetBeans. Both 6.1 and 6.5 use Woodstock 4.2. So
please try with that version and see if you are able to reproduce the issue.

This blog may also be useful though this is based on Creator it may still apply
http://blogs.sun.com/winston/entry/adding_calendar_to_table
thanks


Marking incomplete until the reporter confirms that the issue exists with Woodstock thats bundled in NetBeans...
Comment 2 nicolasgaudin 2008-08-26 08:22:27 UTC
This issue also exists with Woodstock thats bundled in NetBeans.
It repeat in all versions of netbeans starting from 5.5 (6.0,6.0.1..)

I upgraded bundled Woodstock to 4.3 build 5 mainly to get rid of this issue...but still persits

More, this issue has been reported many time by users on Winston blog at the url you mentioned (that was by the way one
of my reference point)

regards
Nicolas
Comment 3 Mark Dey 2008-08-27 15:04:10 UTC
This problem is similar to an issue filed on java.net:

https://woodstock.dev.java.net/issues/show_bug.cgi?id=1265

which may be fixed in Woodstock 4.3 build 7. This build still needs to be vetted but we are trying push the bits to java.net so that folks have access to the 
latest bugfixes.

Comment 4 Mark Dey 2008-08-29 14:47:38 UTC
Woodstock 4.3 build 7 has been pushed to java.net:

https://woodstock.dev.java.net/Download.htm

The latest entry still says Build 6 (typo) but it's really build 7. Note that this distribution has *not* been vetted by QA.

Nicholas, can you try this build to see if it fixes your problem?


Comment 5 Sergey Petrov 2009-03-17 11:50:58 UTC
incomplete for a long time, may be fixed long time ago, no verification yet, also for me one not properly working
component isn't p1 for visualweb module.