dev@woodstock.java.net

Re: Calendar do not work in a table

From: Liviu Delureanu <liviudelureanu_at_yahoo.com>
Date: Mon, 2 Jun 2008 13:13:54 -0700 (PDT)

If you think the Issue #: 1239 is a real bug please vote for this on
Votes for issue 1239:
                Vote for this issue
Liviu Delureanu <liviudelureanu_at_yahoo.com> wrote: I've opened an issue for this problem:
Issue #: 1239


Liviu Delureanu <liviudelureanu_at_yahoo.com> wrote: Hi!
I'm new with Woodstock and web technology and I've tried to get the calendar component placed in the table after followed the

steps:

http://blogs.sun.com/winston/entry/adding_calendar_to_table

1 Create a Project
2 Drag and drop Table Component on to the design surface
3 Drag and drop the JDBC table Data Sources -> Travel -> Trip on to the Table
Component.
4 Optional: Using table layout remove the TRIPID and TRIPTYPEID
5 Using Table layout set the
 Pagination of the table and page size 5.
6 Drag and drop a Calendar component on to the design surface (not on the table
component)
7 Edit the JSP page and move the Calendar Tag to the Table Column Corresponding
to DEPDATE
8 From the outline Panel remove the extra StaticText component in the DEPDATE
column.
 
9 Do not remove it in the JSP
10 Remove the style attribute from the Calendar Tag
Now the DEPDATE tablecolumn tag in JSP should look like
 
<ui:tableColumn binding="#{Page1.tableColumn3}" headerText="DEPDATE"
id="tableColumn3" >
  <ui:calendar binding="#{Page1.calendar1}" id="calendar1"/>
</ui:tableColumn>


However, during runtime it always refer to ROW No 1 whenever I select a date
from the calendar component.
The calendar button show only on row 1 and if I choose from that a date all
rows of the table is changed.
Can tell me what I'm doing wrong?
Any Ideea ?
  

I've used NetBeans 6.1 and 6.0.1 and Woodstock 4.3