Changeset 317

Show
Ignore:
Timestamp:
03/31/06 15:58:18
Author:
johnsa
Message:

small fix to admin client subscription action

updates to user client errors and messages

simplification to form names in edit and add events in personal client to make widgets (clock calendar) work with common code

edit event form updated to work in personal client

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r297 r317  
    11651165 <!--==== ADD EVENT ====--> 
    11661166  <xsl:template name="addEvent"> 
    1167     <form name="addEventForm" method="post" action="{$addEventUsingPage}" id="standardForm"> 
     1167    <form name="eventForm" method="post" action="{$addEventUsingPage}" id="standardForm"> 
    11681168      <input type="hidden" name="confirmationid" value="{$confId}"/> 
    11691169      <input type="hidden" name="endType" value="date"/> 
     
    15001500  <!--==== EDIT EVENT ====--> 
    15011501  <xsl:template match="formElements"> 
    1502     <form name="editEventForm" method="post" action="{$editEvent}" id="standardForm"> 
     1502    <form name="eventForm" method="post" action="{$editEvent}" id="standardForm"> 
    15031503      <input type="hidden" name="updateEvent" value="true"/> 
    15041504      <input type="hidden" name="confirmationid" value="{$confId}"/> 
     
    15081508          <th colspan="2" id="commonHeader"> 
    15091509            <div id="eventActions"> 
    1510               <xsl:variable name="subscriptionId" select="subscription/id"/> 
    1511               <xsl:variable name="calendarId" select="calendar/id"/> 
     1510              <xsl:variable name="subscriptionId" select="subscriptionId"/> 
     1511              <xsl:variable name="calendarId" select="calendarId"/> 
    15121512              <xsl:variable name="guid" select="guid"/> 
    15131513              <xsl:variable name="recurrenceId" select="recurrenceId"/> 
     
    15241524        <tr> 
    15251525          <td class="fieldname"> 
    1526             Title/Summary
     1526            Title
    15271527          </td> 
    15281528          <td class="fieldval"> 
    1529             <xsl:variable name="title" select="/bedework/eventform/form/title/input/@value"/> 
     1529            <xsl:variable name="title" select="form/title/input/@value"/> 
    15301530            <input type="text" name="editEvent.summary" size="80" value="{$title}"/> 
    15311531          </td> 
     
    15331533        <tr> 
    15341534          <td class="fieldname"> 
    1535             Start Date/Time: 
     1535            Date &amp; Time: 
    15361536          </td> 
    15371537          <td class="fieldval"> 
    1538             <xsl:copy-of select="/bedework/eventform/form/startdate/*"/> 
    1539             <span class="std-text">at  </span> 
    1540             <xsl:copy-of select="/bedework/eventform/form/starttime/*"/> 
    1541           </td> 
    1542         </tr> 
     1538            <!-- Set the timefields class for the first load of the page; 
     1539                 subsequent changes will take place using javascript without a 
     1540                 page reload. --> 
     1541            <xsl:variable name="timeFieldsClass"> 
     1542              <xsl:choose> 
     1543                <xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when> 
     1544                <xsl:otherwise>timeFields</xsl:otherwise> 
     1545              </xsl:choose> 
     1546            </xsl:variable> 
     1547            <xsl:choose> 
     1548              <xsl:when test="form/allDay/input/@checked='checked'"> 
     1549                <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="on" checked="checked"/> 
     1550                <input type="hidden" name="eventStartDate.dateOnly" value="on" id="allDayStartDateField"/> 
     1551                <input type="hidden" name="eventEndDate.dateOnly" value="on" id="allDayEndDateField"/> 
     1552              </xsl:when> 
     1553              <xsl:otherwise> 
     1554                <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="off"/> 
     1555                <input type="hidden" name="eventStartDate.dateOnly" value="off" id="allDayStartDateField"/> 
     1556                <input type="hidden" name="eventEndDate.dateOnly" value="off" id="allDayEndDateField"/> 
     1557              </xsl:otherwise> 
     1558            </xsl:choose> 
     1559            all day event<br/> 
     1560            <div class="dateStartEndBox"> 
     1561              <strong>Start:</strong> 
     1562              <div class="dateFields"> 
     1563                <span class="startDateLabel">Date </span> 
     1564                <xsl:copy-of select="form/start/month/*"/> 
     1565                <xsl:copy-of select="form/start/day/*"/> 
     1566                <xsl:choose> 
     1567                  <xsl:when test="/bedework/creating = 'true'"> 
     1568                    <xsl:copy-of select="form/start/year/*"/> 
     1569                  </xsl:when> 
     1570                  <xsl:otherwise> 
     1571                    <xsl:copy-of select="form/start/yearText/*"/> 
     1572                  </xsl:otherwise> 
     1573                </xsl:choose> 
     1574              </div> 
     1575              <script language="JavaScript" type="text/javascript"> 
     1576              <xsl:comment> 
     1577                startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', 'startDateCalWidgetCallback'); 
     1578              </xsl:comment> 
     1579              </script> 
     1580              <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>--> 
     1581              <div class="{$timeFieldsClass}" id="startTimeFields"> 
     1582                <span id="calWidgetStartTimeHider" class="show"> 
     1583                  <xsl:copy-of select="form/start/hour/*"/> 
     1584                  <xsl:copy-of select="form/start/minute/*"/> 
     1585                  <xsl:if test="form/start/ampm"> 
     1586                    <xsl:copy-of select="form/start/ampm/*"/> 
     1587                  </xsl:if> 
     1588                  <xsl:text> </xsl:text> 
     1589                  <a href="javascript:bwClockLaunch('eventStartDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a> 
     1590                </span> 
     1591              </div> 
     1592            </div> 
     1593            <div class="dateStartEndBox"> 
     1594              <strong>End:</strong> 
     1595              <xsl:choose> 
     1596                <xsl:when test="form/end/type='E'"> 
     1597                  <input type="radio" name="eventEndType" value="E" checked="checked" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 
     1598                </xsl:when> 
     1599                <xsl:otherwise> 
     1600                  <input type="radio" name="eventEndType" value="E" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 
     1601                </xsl:otherwise> 
     1602              </xsl:choose> 
     1603              Date 
     1604              <xsl:variable name="endDateTimeClass"> 
     1605                <xsl:choose> 
     1606                  <xsl:when test="form/end/type='E'">shown</xsl:when> 
     1607                  <xsl:otherwise>invisible</xsl:otherwise> 
     1608                </xsl:choose> 
     1609              </xsl:variable> 
     1610              <div class="{$endDateTimeClass}" id="endDateTime"> 
     1611                <div class="dateFields"> 
     1612                  <xsl:copy-of select="form/end/dateTime/month/*"/> 
     1613                  <xsl:copy-of select="form/end/dateTime/day/*"/> 
     1614                  <xsl:choose> 
     1615                    <xsl:when test="/bedework/creating = 'true'"> 
     1616                      <xsl:copy-of select="form/end/dateTime/year/*"/> 
     1617                    </xsl:when> 
     1618                    <xsl:otherwise> 
     1619                      <xsl:copy-of select="form/end/dateTime/yearText/*"/> 
     1620                    </xsl:otherwise> 
     1621                  </xsl:choose> 
     1622                </div> 
     1623                <script language="JavaScript" type="text/javascript"> 
     1624                <xsl:comment> 
     1625                  endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', 'endDateCalWidgetCallback'); 
     1626                </xsl:comment> 
     1627                </script> 
     1628                <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>--> 
     1629                <div class="{$timeFieldsClass}" id="endTimeFields"> 
     1630                  <span id="calWidgetEndTimeHider" class="show"> 
     1631                    <xsl:copy-of select="form/end/dateTime/hour/*"/> 
     1632                    <xsl:copy-of select="form/end/dateTime/minute/*"/> 
     1633                    <xsl:if test="form/end/dateTime/ampm"> 
     1634                      <xsl:copy-of select="form/end/dateTime/ampm/*"/> 
     1635                    </xsl:if> 
     1636                    <xsl:text> </xsl:text> 
     1637                    <a href="javascript:bwClockLaunch('eventEndDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a> 
     1638                  </span> 
     1639                </div> 
     1640              </div><br/> 
     1641              <div id="clock" class="invisible"> 
     1642                <xsl:call-template name="clock"/> 
     1643              </div> 
     1644              <div class="dateFields"> 
     1645                <xsl:choose> 
     1646                  <xsl:when test="form/end/type='D'"> 
     1647                    <input type="radio" name="eventEndType" value="D" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 
     1648                  </xsl:when> 
     1649                  <xsl:otherwise> 
     1650                    <input type="radio" name="eventEndType" value="D" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 
     1651                  </xsl:otherwise> 
     1652                </xsl:choose> 
     1653                Duration 
     1654                <xsl:variable name="endDurationClass"> 
     1655                  <xsl:choose> 
     1656                    <xsl:when test="form/end/type='D'">shown</xsl:when> 
     1657                    <xsl:otherwise>invisible</xsl:otherwise> 
     1658                  </xsl:choose> 
     1659                </xsl:variable> 
     1660                <xsl:variable name="durationHrMinClass"> 
     1661                  <xsl:choose> 
     1662                    <xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when> 
     1663                    <xsl:otherwise>shown</xsl:otherwise> 
     1664                  </xsl:choose> 
     1665                </xsl:variable> 
     1666                <div class="{$endDurationClass}" id="endDuration"> 
     1667                  <xsl:choose> 
     1668                    <xsl:when test="form/end/duration/weeks/input/@value = '0'"> 
     1669                    <!-- we are using day, hour, minute format --> 
     1670                    <!-- must send either no week value or week value of 0 (zero) --> 
     1671                      <div class="durationBox"> 
     1672                        <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')" checked="checked"/> 
     1673                        <xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/> 
     1674                        <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays"/>days 
     1675                        <span id="durationHrMin" class="{$durationHrMinClass}"> 
     1676                          <xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/> 
     1677                          <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours"/>hours 
     1678                          <xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/> 
     1679                          <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes"/>minutes 
     1680                        </span> 
     1681                      </div> 
     1682                      <span class="durationSpacerText">or</span> 
     1683                      <div class="durationBox"> 
     1684                        <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')"/> 
     1685                        <xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/> 
     1686                        <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks" disabled="true"/>weeks 
     1687                      </div> 
     1688                    </xsl:when> 
     1689                    <xsl:otherwise> 
     1690                      <!-- we are using week format --> 
     1691                      <div class="durationBox"> 
     1692                        <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')"/> 
     1693                        <xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/> 
     1694                        <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays" disabled="true"/>days 
     1695                        <span id="durationHrMin" class="{$durationHrMinClass}"> 
     1696                          <xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/> 
     1697                          <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours" disabled="true"/>hours 
     1698                          <xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/> 
     1699                          <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes" disabled="true"/>minutes 
     1700                        </span> 
     1701                      </div> 
     1702                      <span class="durationSpacerText">or</span> 
     1703                      <div class="durationBox"> 
     1704                        <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')" checked="checked"/> 
     1705                        <xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/> 
     1706                        <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks"/>weeks 
     1707                      </div> 
     1708                    </xsl:otherwise> 
     1709                  </xsl:choose> 
     1710                </div> 
     1711              </div><br/> 
     1712              <div class="dateFields" id="noDuration"> 
     1713                <xsl:choose> 
     1714                  <xsl:when test="form/end/type='N'"> 
     1715                    <input type="radio" name="eventEndType" value="N" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 
     1716                  </xsl:when> 
     1717                  <xsl:otherwise> 
     1718                    <input type="radio" name="eventEndType" value="N" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 
     1719                  </xsl:otherwise> 
     1720                </xsl:choose> 
     1721                This event has no duration / end date 
     1722              </div> 
     1723            </div> 
     1724          </td> 
     1725        </tr> 
     1726        <!--  Status  --> 
    15431727        <tr> 
    15441728          <td class="fieldname"> 
    1545             End Date/Time
     1729            Status
    15461730          </td> 
    15471731          <td class="fieldval"> 
    1548             <xsl:copy-of select="/bedework/eventform/form/enddate/*"/> 
    1549             <span class="std-text">at  </span> 
    1550             <xsl:copy-of select="/bedework/eventform/form/endtime/*"/> 
    1551           </td> 
    1552         </tr> 
    1553         <tr> 
    1554           <td class="fieldname"> 
    1555             Description: 
    1556           </td> 
     1732            <xsl:choose> 
     1733              <xsl:when test="form/status = 'TENTATIVE'"> 
     1734                <input type="radio" name="editEvent.status" value="CONFIRMED"/>confirmed <input type="radio" name="editEvent.status" value="TENTATIVE" checked="checked"/>tentative <input type="radio" name="editEvent.status" value="CANCELLED"/>cancelled 
     1735              </xsl:when> 
     1736              <xsl:when test="form/status = 'CANCELLED'"> 
     1737                <input type="radio" name="editEvent.status" value="CONFIRMED"/>confirmed <input type="radio" name="editEvent.status" value="TENTATIVE"/>tentative <input type="radio" name="editEvent.status" value="CANCELLED" checked="checked"/>cancelled 
     1738              </xsl:when> 
     1739              <xsl:otherwise> 
     1740                <input type="radio" name="editEvent.status" value="CONFIRMED" checked="checked"/>confirmed <input type="radio" name="editEvent.status" value="TENTATIVE"/>tentative <input type="radio" name="editEvent.status" value="CANCELLED"/>cancelled 
     1741              </xsl:otherwise> 
     1742            </xsl:choose> 
     1743          </td> 
     1744        </tr> 
     1745        <tr> 
     1746          <td class="fieldname">Description:</td> 
    15571747          <td class="fieldval"> 
    1558             <textarea name="editEvent.description" rows="10" cols="60"> 
    1559               <xsl:value-of select="/bedework/eventform/form/description/textarea"/> 
    1560             </textarea> 
    1561           </td> 
    1562         </tr> 
    1563         <tr> 
    1564           <td class="fieldname"> 
    1565             Location: 
    1566           </td> 
     1748            <xsl:copy-of select="/bedeworkadmin/formElements/form/desc/*"/> 
     1749          </td> 
     1750        </tr> 
     1751        <tr> 
     1752          <td class="fieldname">Location:</td> 
    15671753          <td class="fieldval" align="left"> 
    1568             <span class="std-text">choose </span> 
    1569             <xsl:copy-of select="/bedework/eventform/form/location/locationmenu/*"/
    1570             <span class="std-text"><span class="bold">or</span> add </span
    1571             <xsl:copy-of select="/bedework/eventform/form/location/locationtext/*"/
    1572           </td
    1573         </tr
    1574         <tr
    1575           <td class="fieldname"
    1576             Event Link: 
    1577           </td> 
     1754            <span class="std-text">choose: </span> 
     1755            <span id="eventFormLocationList"
     1756              <xsl:copy-of select="form/location/locationmenu/*"/
     1757            </span
     1758            <span class="std-text"> or add new: </span
     1759            <xsl:copy-of select="form/location/locationtext/*"/
     1760          </td
     1761        </tr
     1762        <tr> 
     1763          <td class="fieldname">Event Link:</td> 
    15781764          <td class="fieldval"> 
    1579             <xsl:variable name="link" select="/bedework/eventform/form/link/input/@value"/> 
     1765            <xsl:variable name="link" select="form/link/input/@value"/> 
    15801766            <input type="text" name="editEvent.link" size="80" value="{$link}"/> 
    15811767          </td> 
  • trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/errors.xsl

    r316 r317  
    2121          Please supply a title for your event (required). 
    2222      </xsl:when> 
     23      <xsl:when test="id='org.bedework.client.error.missingcalendarid'"> 
     24          Missing event's calendar id (required). 
     25      </xsl:when> 
    2326      <xsl:when test="id='org.bedework.client.error.location.referenced'"> 
    2427          Location is in use.  It cannot be deleted while referenced by an event. 
  • trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/messages.xsl

    r144 r317  
    66          Action cancelled. 
    77      </xsl:when> 
    8       <xsl:when test="id='org.bedework.client.message.added.locations'"> 
     8      <xsl:when test="id='org.bedework.client.message.locations.added'"> 
    99        <xsl:choose> 
    1010          <xsl:when test="param='1'"> 
  • trunk/calendar3/deployment/webuser/webapp/resources/demoskins/resources/bwClock.js

    r294 r317  
    4444      if (type == 'minute') { 
    4545        var fieldName = bwClockRequestedType + ".minute" 
    46         window.document.addEventForm[fieldName].value = val; 
     46        window.document.eventForm[fieldName].value = val; 
    4747        bwClockMinute = val; 
    4848      } else { 
    4949        var fieldName = bwClockRequestedType + ".hour" 
    50         window.document.addEventForm[fieldName].value = val; 
     50        window.document.eventForm[fieldName].value = val; 
    5151        bwClockHour = val; 
    5252      } 
  • trunk/calendar3/deployment/webuser/webapp/resources/demoskins/resources/includes.js

    r294 r317  
    6666    alert("You may not create an event in a previous year."); 
    6767  } else { 
    68     document.addEventForm['eventStartDate.month'].value = month; 
    69     document.addEventForm['eventStartDate.day'].value = date; 
    70     document.addEventForm['eventStartDate.year'].value = year; 
     68    document.eventForm['eventStartDate.month'].value = month; 
     69    document.eventForm['eventStartDate.day'].value = date; 
     70    document.eventForm['eventStartDate.year'].value = year; 
    7171  } 
    7272} 
     
    8282    alert("You may not create an event in a previous year."); 
    8383  } else { 
    84     document.addEventForm['eventEndDate.month'].value = month; 
    85     document.addEventForm['eventEndDate.day'].value = date; 
    86     document.addEventForm['eventEndDate.year'].value = year; 
     84    document.eventForm['eventEndDate.month'].value = month; 
     85    document.eventForm['eventEndDate.day'].value = date; 
     86    document.eventForm['eventEndDate.year'].value = year; 
    8787  } 
    8888} 
  • trunk/calendar3/webadmin/war/docs/header.jsp

    r195 r317  
    109109      <fetch><genurl:link page="/subs/fetch.do?b=de"/></fetch> 
    110110      <fetchForUpdate><genurl:link page="/subs/fetchForUpdate.do?b=de"/></fetchForUpdate> 
    111       <initAdd><genurl:link page="/subs/initAdd.rdo?b=de"/></initAdd> 
     111      <initAdd><genurl:link page="/subs/initAdd.do?b=de"/></initAdd> 
    112112      <subscribe><genurl:link page="/subs/subscribe.do?b=de"/></subscribe> 
    113113    </subscriptions> 
  • trunk/calendar3/webclient/src/org/bedework/webclient/BwAddEventAction.java

    r296 r317  
    142142    form.getEventDates().setNewEvent(form.getNewEvent(), svci.getTimezones()); 
    143143 
    144     form.getMsg().emit("org.bedework.message.added.events", 1); 
     144    form.getMsg().emit("org.bedework.client.message.added.events", 1); 
    145145 
    146146    form.refreshIsNeeded(); 
  • trunk/calendar3/webclient/war/docs/event/editEvent.jsp

    r313 r317  
    1313<page>editEvent</page> 
    1414<formElements> 
    15   <id><bean:write name="calForm" property="editEvent.id"/></id> 
     15  <subscriptionId></subscriptionId> 
     16  <calendarId><bean:write name="calForm" property="editEvent.calendar.id"/></calendarId> 
     17  <guid><bean:write name="calForm" property="editEvent.guid"/></guid> 
     18  <recurrenceId><bean:write name="calForm" property="editEvent.recurrence.recurrenceId"/></recurrenceId> 
     19 
    1620  <genurl:form action="editEvent"> 
    1721    <title> 
    1822      <html:text property="editEvent.summary"/> 
    1923    </title> 
    20     <description> 
    21       <html:textarea property="editEvent.description" rows="8" cols="55"/> 
    22     </description> 
    23     <link> 
    24       <html:text property="editEvent.link" /> 
    25     </link> 
     24    <allDay><html:checkbox property="eventStartDate.dateOnly"/></allDay> 
     25    <start> 
     26      <month> 
     27        <html:select property="eventStartDate.month"> 
     28          <html:options labelProperty="eventStartDate.monthLabels" 
     29                        property="eventStartDate.monthVals"/> 
     30        </html:select> 
     31      </month> 
     32      <day> 
     33        <html:select property="eventStartDate.day"> 
     34          <html:options labelProperty="eventStartDate.dayLabels" 
     35                        property="eventStartDate.dayVals"/> 
     36        </html:select> 
     37      </day> 
     38      <year> 
     39        <html:select property="eventStartDate.year"> 
     40          <html:options property="yearVals"/> 
     41        </html:select> 
     42      </year> 
     43      <yearText> 
     44        <html:text property="eventStartDate.year" size="4"/> 
     45      </yearText> 
     46      <hour> 
     47        <html:select property="eventStartDate.hour"> 
     48          <html:options labelProperty="eventStartDate.hourLabels" 
     49                        property="eventStartDate.hourVals"/> 
     50        </html:select> 
     51      </hour> 
     52      <minute> 
     53        <html:select property="eventStartDate.minute"> 
     54          <html:options labelProperty="eventStartDate.minuteLabels" 
     55                        property="eventStartDate.minuteVals"/> 
     56        </html:select> 
     57      </minute> 
     58      <logic:notEqual name="calForm" property="hour24" value="true" > 
     59        <ampm> 
     60          <html:select property="eventStartDate.ampm"> 
     61            <html:options property="eventStartDate.ampmLabels"/> 
     62          </html:select> 
     63        </ampm> 
     64      </logic:notEqual> 
     65    </start> 
     66    <end> 
     67      <type><bean:write name="calForm" property="eventEndType"/></type> 
     68      <dateTime> 
     69        <month> 
     70          <html:select property="eventEndDate.month"> 
     71              <html:options labelProperty="eventEndDate.monthLabels" 
     72                            property="eventEndDate.monthVals"/> 
     73          </html:select> 
     74        </month> 
     75        <day> 
     76          <html:select property="eventEndDate.day"> 
     77            <html:options labelProperty="eventEndDate.dayLabels" 
     78                          property="eventEndDate.dayVals"/> 
     79          </html:select> 
     80        </day> 
     81        <year> 
     82          <html:select property="eventEndDate.year"> 
     83            <html:options property="yearVals"/> 
     84          </html:select> 
     85          </year> 
     86        <yearText> 
     87          <html:text property="eventEndDate.year" size="4"/> 
     88        </yearText> 
     89        <hour> 
     90          <html:select property="eventEndDate.hour"> 
     91            <html:options labelProperty="eventEndDate.hourLabels" 
     92                          property="eventEndDate.hourVals"/> 
     93          </html:select> 
     94        </hour> 
     95        <minute> 
     96          <html:select property="eventEndDate.minute"> 
     97            <html:options labelProperty="eventEndDate.minuteLabels" 
     98                          property="eventEndDate.minuteVals"/> 
     99          </html:select> 
     100        </minute> 
     101        <ampm> 
     102          <logic:notEqual name="calForm" property="hour24" value="true" > 
     103            <html:select property="eventEndDate.ampm"> 
     104              <html:options property="eventEndDate.ampmLabels"/> 
     105            </html:select> 
     106          </logic:notEqual> 
     107        </ampm> 
     108      </dateTime> 
     109      <duration> 
     110        <days><html:text property="eventDuration.daysStr" size="2" /></days> 
     111        <hours><html:text property="eventDuration.hoursStr" size="2" /></hours> 
     112        <minutes><html:text property="eventDuration.minutesStr" size="2" /></minutes> 
     113        <weeks><html:text property="eventDuration.weeksStr" size="2" /></weeks> 
     114      </duration> 
     115    </end> 
     116    <desc><html:textarea property="editEvent.description"></html:textarea></desc> 
     117    <status><bean:write name="calForm" property="editEvent.status"/></status> 
     118    <link><html:text property="editEvent.link"/></link> 
    26119    <location> 
    27120      <locationmenu> 
     
    32125        </html:select> 
    33126      </locationmenu> 
    34       <locationtext> 
    35         <html:text property="laddress" /> 
    36       </locationtext> 
     127      <locationtext><html:text property="laddress" /></locationtext> 
    37128    </location> 
    38     <startdate> 
    39       <html:select property="eventStartDate.month"> 
    40        <html:options labelProperty="eventStartDate.monthLabels" 
    41                       property="eventStartDate.monthVals"/> 
    42       </html:select> 
    43       <html:select property="eventStartDate.day"> 
    44         <html:options labelProperty="eventStartDate.dayLabels" 
    45                       property="eventStartDate.dayVals"/> 
    46       </html:select> 
    47       <html:select property="eventStartDate.year"> 
    48         <html:options property="yearVals"/> 
    49       </html:select> 
    50     </startdate> 
    51     <starttime> 
    52       <html:select property="eventStartDate.hour"> 
    53         <html:options labelProperty="eventStartDate.hourLabels" 
    54                       property="eventStartDate.hourVals"/> 
    55       </html:select> 
    56       <html:select property="eventStartDate.minute"> 
    57         <html:options labelProperty="eventStartDate.minuteLabels" 
    58                       property="eventStartDate.minuteVals"/> 
    59       </html:select> 
    60       <logic:notEqual name="calForm" property="hour24" value="true" > 
    61         <html:select property="eventStartDate.ampm"> 
    62           <html:options property="eventStartDate.ampmLabels"/> 
    63         </html:select> 
    64       </logic:notEqual> 
    65     </starttime> 
    66     <enddate> 
    67       <html:select property="eventEndDate.month"> 
    68         <html:options labelProperty="eventEndDate.monthLabels" 
    69                       property="eventEndDate.monthVals"/> 
    70       </html:select> 
    71       <html:select property="eventEndDate.day"> 
    72         <html:options labelProperty="eventEndDate.dayLabels" 
    73                       property="eventEndDate.dayVals"/> 
    74       </html:select> 
    75       <html:select property="eventEndDate.year"> 
    76         <html:options property="yearVals"/> 
    77       </html:select> 
    78     </enddate> 
    79     <endtime> 
    80       <html:select property="eventEndDate.hour"> 
    81         <html:options labelProperty="eventEndDate.hourLabels" 
    82                       property="eventEndDate.hourVals"/> 
    83       </html:select> 
    84       <html:select property="eventEndDate.minute"> 
    85         <html:options labelProperty="eventEndDate.minuteLabels" 
    86                       property="eventEndDate.minuteVals"/> 
    87       </html:select> 
    88       <logic:notEqual name="calForm" property="hour24" value="true" > 
    89         <html:select property="eventEndDate.ampm"> 
    90           <html:options property="eventEndDate.ampmLabels"/> 
    91         </html:select> 
    92       </logic:notEqual> 
    93     </endtime> 
    94129  </genurl:form> 
    95130</formElements> 
  • trunk/calendar3/webcommon/src/org/bedework/webcommon/misc/UploadAction.java

    r298 r317  
    106106        return "retry"; 
    107107      } 
    108        
     108 
    109109      // Use preferred calendar 
    110110      cal = svci.getPreferredCalendar(); 
     
    128128 
    129129      InputStream is = upFile.getInputStream(); 
    130        
     130 
    131131      IcalTranslator trans = new IcalTranslator(svci.getIcalCallback(), debug); 
    132        
     132 
    133133      Collection objs = trans.fromIcal(cal, new InputStreamReader(is)); 
    134        
     134 
    135135      Iterator it = objs.iterator(); 
    136        
     136 
    137137      while (it.hasNext()) { 
    138138        Object o = it.next(); 
    139          
     139 
    140140        if (o instanceof EventInfo) { 
    141141          EventInfo ei = (EventInfo)o; 
    142142          BwEvent ev = ei.getEvent(); 
    143            
     143 
    144144          if (ei.getNewEvent()) { 
    145145            svci.addEvent(cal, ev, ei.getOverrides()); 
     
    154154    } 
    155155 
    156     form.getMsg().emit("org.bedework.message.added.events", 1); 
     156    form.getMsg().emit("org.bedework.client.message.added.events", 1); 
    157157 
    158158    return "success";