dev@woodstock.java.net

Re: Calendar do not work in a table

From: Liviu Delureanu <liviudelureanu_at_yahoo.com>
Date: Thu, 5 Jun 2008 23:56:42 -0700 (PDT)

YAHOO.Shortcuts.hasSensitiveText = true;
YAHOO.Shortcuts.sensitivityType = ["adult"];
YAHOO.Shortcuts.doUlt = false;
YAHOO.Shortcuts.location = "us";
YAHOO.Shortcuts.document_id = 0;
YAHOO.Shortcuts.document_type = "";
YAHOO.Shortcuts.document_title = "Re: [Issue 1239] Calendar do not work in a table";
YAHOO.Shortcuts.document_publish_date = "";
YAHOO.Shortcuts.document_author = "liviudelureanu_at_yahoo.com";
YAHOO.Shortcuts.document_url = "";
YAHOO.Shortcuts.document_tags = "";
YAHOO.Shortcuts.document_language = "english";
YAHOO.Shortcuts.annotationSet = {"lw_1212735370_0":{"text":"danl_at_dev.java.net","extended":0,"startchar":567,"endchar":583,"start":567,"end":583,"extendedFrom":"","predictedCategory":"","predictionProbability":"0","weight":1,"type":["shortcuts:\/us\/instance\/identifier\/email_address"],"category":["IDENTIFIER"],"context":"is binded to a database table. Thanks! --- On Mon, 6\/2\/08, danl_at_dev.java.net wrote: From: danl_at_dev.java.net Subject: [Issue 1239] Calendar
 do","metaData":{"visible":"true"},"ult":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=AgVIw_wSKLuIONUkFrHwu5Fjk70X","ult_hover":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=AhLO7M1MFBU0WbUgvKXi1N5jk70X"},"lw_1212735370_1":{"text":"liviudelureanu_at_dev.java.net","extended":0,"startchar":842,"endchar":868,"start":842,"end":868,"extendedFrom":"","predictedCategory":"","predictionProbability":"0","weight":1,"type":["shortcuts:\/us\/instance\/identifier\/email_address"],"category":["IDENTIFIER"],"context":"Issue 1239] Calendar do not work in a table To: liviudelureanu_at_dev.java.net Date: Monday, June 2, 2008, 10:23 PM https:\/\/woodstock.dev.java.net\/issues\/show_bug.cgi?id=1239 User
 danl","metaData":{"visible":"true"},"ult":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=ApJtyjOtPRzJwPvtee9u8XNjk70X","ult_hover":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=Ak0MeOfqTbkw97v8Z0ITGI5jk70X"},"lw_1212735370_2":{"text":"https:\/\/woodstock.dev.java.net\/issues\/show_bug.cgi?id=1239","extended":0,"startchar":922,"endchar":979,"start":922,"end":979,"extendedFrom":"","predictedCategory":"","predictionProbability":"0","weight":1,"type":["shortcuts:\/us\/instance\/identifier\/URL"],"category":["IDENTIFIER"],"context":"table To: liviudelureanu_at_dev.java.net Date: Monday, June 2, 2008, 10:23 PM https:\/\/woodstock.dev.java.net\/issues\/show_bug.cgi?id=1239 User danl changed the following: What |Old value |New
 value","metaData":{"visible":"true"},"ult":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=Alrwel3Ulja.gZSQb.ZuY_Rjk70X","ult_hover":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=Aq5YJI9UohHNvGeANKDWnbZjk70X"},"lw_1212735370_3":{"text":"Iterate","extended":0,"startchar":1821,"endchar":1827,"start":1821,"end":1827,"extendedFrom":"","predictedCategory":"","predictionProbability":"0","weight":0.708243,"type":["shortcuts:\/concept"],"category":["CONCEPT"],"context":"can: 1. Call the getValue(FieldKey fieldKey, RowKey rowKey) API. 2. Iterate over each data row and call your getDate() method.
 The","metaData":{"visible":"true"},"ult":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=AivQffmVQZF9wy5PK69i_LFjk70X","ult_hover":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=AnFtyIt.MybS.rs3z75sabRjk70X"},"lw_1212735370_4":{"text":"HashMap","extended":0,"startchar":2566,"endchar":2572,"start":2566,"end":2572,"extendedFrom":"","predictedCategory":"","predictionProbability":"0","weight":0.995983,"type":["shortcuts:\/concept"],"category":["CONCEPT"],"context":"DataProvider. You can store dates and other values using a HashMap, if you prefer. (Woodstock uses a class, named TableSelectPhaseListener, to","metaData":{"visible":"true"},"ult":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=AvWSEx.oGm206B8d0tZXsgNjk70X","ult_hover":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=AjAiVHAM5Vas21EOaTTeHDdjk70X"}};







I've tried to use your suggestion but it do not work. I'll appreciate if you have a full example of a page which :
&nbsp;
1. have a column in&nbsp; which all&nbsp;cells are a calendar component
2. the table component is updatable&nbsp;and is binded to a database table.
&nbsp;
Thanks!

--- On Mon, 6/2/08, Dan Labrecque &lt;Dan.Labrecque_at_Sun.COM&gt; wrote:

From: Dan Labrecque &lt;Dan.Labrecque_at_Sun.COM&gt;
Subject: Re: Calendar do not work in a table
To: dev_at_woodstock.dev.java.net
Date: Monday, June 2, 2008, 10:20 PM


This is not a Woodstock bug. The blog example simply does not show how to obtain values. I've added comments to the blog and will close this issue.

Dan

Liviu Delureanu wrote:
If you think the Issue #: 1239 is a real bug please vote for this on




Votes for issue 1239:


&nbsp;&nbsp;&nbsp;Vote for this issue
Liviu Delureanu &lt;liviudelureanu_at_yahoo.com&gt; wrote:
I've opened an issue for this problem:
Issue #: 1239


Liviu Delureanu &lt;liviudelureanu_at_yahoo.com&gt; 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 -&gt; Travel -&gt; 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
 
&lt;ui:tableColumn binding="#{Page1.tableColumn3}" headerText="DEPDATE"
id="tableColumn3" &gt;
  &lt;ui:calendar binding="#{Page1.calendar1}" id="calendar1"/&gt;
&lt;/ui:tableColumn&gt;


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