Ticket #1047 (new defect)

Opened 2 years ago

Last modified 2 months ago

Bugs with Calendar Editor

Reported by: rudolf.mayer@… Owned by:
Priority: high Milestone:
Component: View-JSP taglib Version: 0.7
Keywords: Cc:

Description

There are two small bugs with the calendar editor

a.) it expects the date input to have 3 fields day, month, year, but it should also work if there is only a combination of month & year. maybe other combinations are also useful, but for day & month alone, which are drop-downs, it seems rather useless. thus, in those cases, the calendar editor shall not appear.

b.) if there are repeated forms in the page, the calendar editor objects all have the same name, thus always the first one is changed. Adding a simple counter that is increased for input names seems like a solution.

Change History

Changed 2 years ago by rudolf.mayer@…

(In reply to comment #0)

There are two small bugs with the calendar editor

a.) it expects the date input to have 3 fields day, month, year, but it should
also work if there is only a combination of month & year. maybe other
combinations are also useful, but for day & month alone, which are drop-downs,
it seems rather useless. thus, in those cases, the calendar editor shall not
appear.

b.) if there are repeated forms in the page, the calendar editor objects all
have the same name, thus always the first one is changed. Adding a simple
counter that is increased for input names seems like a solution.


issue a.) is fixed, if there are not all year, month & day present the calendar does not make sense, so it is not displayed then.

b.) is fixed by giving IDs to the forms that are unique inside the page. this is done by setting a pageContext variable.
this works for all cases except those when pages (jsp) include other pages, in which case the IDs are unique only within each .jsp file, and still issues may occur. there, we might need to pass on the counting variable to included pages.

Changed 2 months ago by manuel@…

  • milestone 0.7 deleted

Changed 2 months ago by manuel@…

  • owner makumba-devel@… deleted
Note: See TracTickets for help on using tickets.