users@woodstock.java.net

Re: Calendar inside Table component

From: Dan Labrecque <Dan.Labrecque_at_Sun.COM>
Date: Fri, 14 Dec 2007 11:10:39 -0500

janir wrote:
> Should i do something in Java code her; or should the JSP take care of this ?
> TableColumn JSP code:
> "
> <webuijsf:calendar binding="#{DataEntry.calendar2}" id="calendar2"
> selectedDate="#{currentRow.value['finishDate']}"/>
> "
>

Using id="calendar2" should be enough. Like I said, the table should
create a fully qualified client id for each row. However, there appears
to be another issue with calendar.

Venky, I added a calendar to the Woodstock table example. I can see that
each calendarField widget has a unique id, based on the current table
row index. However, the calendar property has the same id property for
all. As a result, I suspect that each calendar is being overridden by
the next.

webui.suntheme.widget.common.createWidgetOnLoad("j_id54",{
    "id": "form1:table1:rowGroup1:1:col2:startDate",
    "calendar": {
        "id": "form1:table1:rowGroup1:0:col2:startDate:_datePicker",
    ...

Dan