users@woodstock.java.net

Re: Calendar inside Table component

From: Venkatesh Babu <Venkatesh.M_at_Sun.COM>
Date: Fri, 14 Dec 2007 15:10:01 +0530

Do you see any javascript erros when the page is rendered?
Also make sure you assign an "id" to all the calendar components that
you have in your table.

-Venky
janir wrote:
> Hi!
> Have trouble getting this to work; the "Calendar button" is only showing on
> the first row. And if i select a date in the control; the date is copied to
> all rows.
>
> Here is part JSP:
> <webuijsf:tableColumn binding="#{DataEntry.tableColumnFinish}"
> headerText="FinishDate" id="tableColumnFinish" width="217">
> <webuijsf:calendar binding="#{DataEntry.calendar2}" id="calendar2"
> selectedDate="#{currentRow.value['finishDate']}"/>
>
> Here is part of the mapped data.
> private Date finishDate;
>
> public Date getFinishDate() {
> return finishDate;
> }
>
> public void setFinishDate(Date FinishDate) {
> this.finishDate = new java.sql.Date(FinishDate.getTime());
> }
>
> Any ideas?
> Thanks,janir
>