Changeset 379

Show
Ignore:
Timestamp:
04/14/06 14:03:50
Author:
johnsa
Message:

added calendar management code to personal client; clean-up to follow. It builds and displays.

Files:

Legend:

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

    r378 r379  
    3939  <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/> 
    4040  <xsl:variable name="setSelection" select="/bedework/urlPrefixes/setSelection"/> 
    41   <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/> 
    4241  <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/setViewPeriod"/> 
    4342  <xsl:variable name="eventView" select="/bedework/urlPrefixes/eventView"/> 
     
    5958  <xsl:variable name="initUpload" select="/bedework/urlPrefixes/initUpload"/> 
    6059  <xsl:variable name="upload" select="/bedework/urlPrefixes/upload"/> 
    61  
     60  <!-- calendars --> 
     61  <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/> 
     62  <xsl:variable name="calendar-fetch" select="/bedework/urlPrefixes/calendar/fetch/a/@href"/><!-- used --> 
     63  <xsl:variable name="calendar-fetchDescriptions" select="/bedework/urlPrefixes/calendar/fetchDescriptions/a/@href"/><!-- used --> 
     64  <xsl:variable name="calendar-initAdd" select="/bedework/urlPrefixes/calendar/initAdd/a/@href"/><!-- used --> 
     65  <xsl:variable name="calendar-delete" select="/bedework/urlPrefixes/calendar/delete/a/@href"/> 
     66  <xsl:variable name="calendar-fetchForDisplay" select="/bedework/urlPrefixes/calendar/fetchForDisplay/a/@href"/> 
     67  <xsl:variable name="calendar-fetchForUpdate" select="/bedework/urlPrefixes/calendar/fetchForUpdate/a/@href"/><!-- used --> 
     68  <xsl:variable name="calendar-update" select="/bedework/urlPrefixes/calendar/update/a/@href"/><!-- used --> 
     69  <!-- subscriptions --> 
    6270  <xsl:variable name="subscriptions-fetch" select="/bedework/urlPrefixes/subscriptions/fetch/a/@href"/> 
    6371  <xsl:variable name="subscriptions-fetchForUpdate" select="/bedework/urlPrefixes/subscriptions/fetchForUpdate/a/@href"/> 
     
    139147                  <xsl:apply-templates select="/bedework/subscriptions"/> 
    140148                </xsl:when> 
    141                 <xsl:when test="/bedework/page='calendars'"> 
     149                <xsl:when test="/bedework/page='calendarList' or 
     150                                /bedework/page='calendarDescriptions' or 
     151                                /bedework/page='displayCalendar' or 
     152                                /bedework/page='modCalendar' or 
     153                                /bedework/page='deleteCalendarConfirm' or 
     154                                /bedework/page='calendarReferenced'"> 
    142155                  <xsl:apply-templates select="/bedework/calendars"/> 
    143156                </xsl:when> 
     157                <!--deprecated: <xsl:when test="/bedework/page='calendars'"> 
     158                  <xsl:apply-templates select="/bedework/calendars"/> 
     159                </xsl:when>--> 
    144160                <xsl:when test="/bedework/page='other'"> 
    145161                  <!-- show an arbitrary page --> 
     
    288304    </ul> 
    289305 
    290     <h3><img alt="manage calendars" src="{$resourcesRoot}/resources/glassFill-icon-menuButton.gif" width="12" height="11" border="0"/> calendars</h3> 
     306    <h3> 
     307      <a href="{$calendar-fetch}"> 
     308        <img alt="manage calendars" src="{$resourcesRoot}/resources/glassFill-icon-menuButton.gif" width="12" height="11" border="0"/> calendars 
     309      </a> 
     310    </h3> 
    291311    <ul class="calendarTree"> 
    292312      <xsl:apply-templates select="/bedework/myCalendars/calendars/calendar" mode="myCalendars"/> 
     
    18641884  </xsl:template> 
    18651885 
     1886  <!--+++++++++++++++ Calendars ++++++++++++++++++++--> 
     1887  <xsl:template match="calendars"> 
     1888    <table id="calendarTable"> 
     1889      <tr> 
     1890        <td class="cals"> 
     1891          <h3>Public calendars</h3> 
     1892          <ul id="calendarTree"> 
     1893            <xsl:choose> 
     1894              <xsl:when test="/bedework/page='calendarDescriptions' or 
     1895                              /bedework/page='displayCalendar'"> 
     1896                <xsl:apply-templates select="calendar" mode="listForDisplay"/> 
     1897              </xsl:when> 
     1898              <xsl:otherwise> 
     1899                <xsl:apply-templates select="calendar" mode="listForUpdate"/> 
     1900              </xsl:otherwise> 
     1901            </xsl:choose> 
     1902          </ul> 
     1903        </td> 
     1904        <td class="calendarContent"> 
     1905          <xsl:choose> 
     1906            <xsl:when test="/bedework/page='calendarList' or 
     1907                            /bedework/page='calendarReferenced'"> 
     1908              <xsl:call-template name="calendarList"/> 
     1909            </xsl:when> 
     1910            <xsl:when test="/bedework/page='calendarDescriptions'"> 
     1911              <xsl:call-template name="calendarDescriptions"/> 
     1912            </xsl:when> 
     1913            <xsl:when test="/bedework/page='displayCalendar'"> 
     1914              <xsl:apply-templates select="/bedework/currentCalendar" mode="displayCalendar"/> 
     1915            </xsl:when> 
     1916            <xsl:when test="/bedework/page='deleteCalendarConfirm'"> 
     1917              <xsl:apply-templates select="/bedework/currentCalendar" mode="deleteCalendarConfirm"/> 
     1918            </xsl:when> 
     1919            <xsl:when test="/bedework/creating='true'"> 
     1920              <xsl:apply-templates select="/bedework/currentCalendar" mode="addCalendar"/> 
     1921            </xsl:when> 
     1922            <xsl:otherwise> 
     1923              <xsl:apply-templates select="/bedework/currentCalendar" mode="modCalendar"/> 
     1924            </xsl:otherwise> 
     1925          </xsl:choose> 
     1926        </td> 
     1927      </tr> 
     1928    </table> 
     1929  </xsl:template> 
     1930 
     1931  <xsl:template match="calendar" mode="listForUpdate"> 
     1932    <xsl:variable name="id" select="id"/> 
     1933    <xsl:variable name="itemClass"> 
     1934      <xsl:choose> 
     1935        <xsl:when test="calendarCollection='false'">folder</xsl:when> 
     1936        <xsl:otherwise>calendar</xsl:otherwise> 
     1937      </xsl:choose> 
     1938    </xsl:variable> 
     1939    <li class="{$itemClass}"> 
     1940      <a href="{$calendar-fetchForUpdate}&amp;calId={$id}" title="update"> 
     1941        <xsl:value-of select="name"/> 
     1942      </a> 
     1943      <xsl:if test="calendarCollection='false'"> 
     1944        <xsl:text> </xsl:text> 
     1945        <a href="{$calendar-initAdd}&amp;calId={$id}" title="add a calendar or folder"> 
     1946          <img src="{$resourcesRoot}/resources/calAddIcon.gif" width="13" height="13" alt="add a calendar or folder" border="0"/> 
     1947        </a> 
     1948      </xsl:if> 
     1949      <xsl:if test="calendar"> 
     1950        <ul> 
     1951          <xsl:apply-templates select="calendar" mode="listForUpdate"> 
     1952            <!--<xsl:sort select="title" order="ascending" case-order="upper-first"/>--> 
     1953          </xsl:apply-templates> 
     1954        </ul> 
     1955      </xsl:if> 
     1956    </li> 
     1957  </xsl:template> 
     1958 
     1959  <xsl:template match="calendar" mode="listForDisplay"> 
     1960    <xsl:variable name="id" select="id"/> 
     1961    <xsl:variable name="itemClass"> 
     1962      <xsl:choose> 
     1963        <xsl:when test="calendarCollection='false'">folder</xsl:when> 
     1964        <xsl:otherwise>calendar</xsl:otherwise> 
     1965      </xsl:choose> 
     1966    </xsl:variable> 
     1967    <li class="{$itemClass}"> 
     1968      <a href="{$calendar-fetchForDisplay}&amp;calId={$id}" title="display"> 
     1969        <xsl:value-of select="name"/> 
     1970      </a> 
     1971      <xsl:if test="calendar"> 
     1972        <ul> 
     1973          <xsl:apply-templates select="calendar" mode="listForDisplay"> 
     1974            <!--<xsl:sort select="title" order="ascending" case-order="upper-first"/>--> 
     1975          </xsl:apply-templates> 
     1976        </ul> 
     1977      </xsl:if> 
     1978    </li> 
     1979  </xsl:template> 
     1980 
     1981  <xsl:template match="currentCalendar" mode="addCalendar"> 
     1982    <h3>Add Calendar / Folder</h3> 
     1983    <form name="addCalForm" action="{$calendar-update}"> 
     1984      <table class="eventFormTable"> 
     1985        <tr> 
     1986          <th>Name:</th> 
     1987          <td> 
     1988            <xsl:variable name="curCalName" select="name"/> 
     1989            <input name="calendar.name" value="{$curCalName}" size="40"/> 
     1990          </td> 
     1991        </tr> 
     1992        <tr> 
     1993          <th>Summary:</th> 
     1994          <td> 
     1995            <xsl:variable name="curCalSummary" select="summary"/> 
     1996            <input type="text" name="calendar.summary" value="{$curCalSummary}" size="40"/> 
     1997          </td> 
     1998        </tr> 
     1999        <tr> 
     2000          <th>Description:</th> 
     2001          <td> 
     2002            <textarea name="calendar.description" cols="40" rows="4"> 
     2003              <xsl:value-of select="desc"/> 
     2004            </textarea> 
     2005          </td> 
     2006        </tr> 
     2007        <tr> 
     2008          <th>Calendar/Folder:</th> 
     2009          <td> 
     2010            <xsl:choose> 
     2011              <xsl:when test="calendarCollection='true'"> 
     2012                <input type="radio" value="true" name="calendarCollection" checked="checked"/> Calendar 
     2013                <input type="radio" value="false" name="calendarCollection"/> Folder 
     2014              </xsl:when> 
     2015              <xsl:otherwise> 
     2016                <input type="radio" value="true" name="calendarCollection"/> Calendar 
     2017                <input type="radio" value="false" name="calendarCollection" checked="checked"/> Folder 
     2018              </xsl:otherwise> 
     2019            </xsl:choose> 
     2020          </td> 
     2021        </tr> 
     2022      </table> 
     2023 
     2024      <table border="0" id="submitTable"> 
     2025        <tr> 
     2026          <td> 
     2027            <input type="submit" name="addCalendar" value="Add Calendar/Folder"/> 
     2028            <input type="submit" name="cancelled" value="Cancel"/> 
     2029            <input type="reset" value="Clear"/> 
     2030          </td> 
     2031        </tr> 
     2032      </table> 
     2033    </form> 
     2034  </xsl:template> 
     2035 
     2036  <xsl:template match="currentCalendar" mode="modCalendar"> 
     2037    <xsl:choose> 
     2038      <xsl:when test="calendarCollection='true'"> 
     2039        <h3>Modify Calendar</h3> 
     2040      </xsl:when> 
     2041      <xsl:otherwise> 
     2042        <h3>Modify Folder</h3> 
     2043      </xsl:otherwise> 
     2044    </xsl:choose> 
     2045    <form name="modCalForm" action="{$calendar-update}"> 
     2046      <table class="eventFormTable"> 
     2047        <tr> 
     2048          <th>Path:</th> 
     2049          <td> 
     2050            <xsl:value-of select="path"/> 
     2051          </td> 
     2052        </tr> 
     2053        <tr> 
     2054          <th>Name:</th> 
     2055          <td> 
     2056            <xsl:value-of select="name"/> 
     2057          </td> 
     2058        </tr> 
     2059        <tr> 
     2060          <th>Mailing List ID:</th> 
     2061          <td> 
     2062            <xsl:value-of select="mailListId"/> 
     2063          </td> 
     2064        </tr> 
     2065        <tr> 
     2066          <th>Summary:</th> 
     2067          <td> 
     2068            <xsl:variable name="curCalSummary" select="summary"/> 
     2069            <input type="text" name="calendar.summary" value="{$curCalSummary}" size="40"/> 
     2070          </td> 
     2071        </tr> 
     2072        <tr> 
     2073          <th>Description:</th> 
     2074          <td> 
     2075            <textarea name="calendar.description" cols="40" rows="4"> 
     2076              <xsl:value-of select="desc"/> 
     2077            </textarea> 
     2078          </td> 
     2079        </tr> 
     2080        <tr> 
     2081          <th>Calendar/Folder:</th> 
     2082          <td> 
     2083            <xsl:choose> 
     2084              <xsl:when test="calendarCollection='true'"> 
     2085                <input type="radio" value="true" name="calendarCollection" checked="checked"/> Calendar 
     2086                <input type="radio" value="false" name="calendarCollection"/> Folder 
     2087              </xsl:when> 
     2088              <xsl:otherwise> 
     2089                <input type="radio" value="true" name="calendarCollection"/> Calendar 
     2090                <input type="radio" value="false" name="calendarCollection" checked="checked"/> Folder 
     2091              </xsl:otherwise> 
     2092            </xsl:choose> 
     2093          </td> 
     2094        </tr> 
     2095      </table> 
     2096 
     2097      <table border="0" id="submitTable"> 
     2098        <tr> 
     2099          <td> 
     2100            <xsl:choose> 
     2101              <xsl:when test="calendarCollection='true'"> 
     2102                <input type="submit" name="updateCalendar" value="Update Calendar"/> 
     2103              </xsl:when> 
     2104              <xsl:otherwise> 
     2105                <input type="submit" name="updateCalendar" value="Update Folder"/> 
     2106              </xsl:otherwise> 
     2107            </xsl:choose> 
     2108            <input type="submit" name="cancelled" value="Cancel"/> 
     2109            <input type="reset" value="Reset"/> 
     2110          </td> 
     2111          <td align="right"> 
     2112            <xsl:choose> 
     2113              <xsl:when test="calendarCollection='true'"> 
     2114                <input type="submit" name="delete" value="Delete Calendar"/> 
     2115              </xsl:when> 
     2116              <xsl:otherwise> 
     2117                <input type="submit" name="delete" value="Delete Folder"/> 
     2118              </xsl:otherwise> 
     2119            </xsl:choose> 
     2120          </td> 
     2121        </tr> 
     2122      </table> 
     2123    </form> 
     2124  </xsl:template> 
     2125 
     2126  <xsl:template name="calendarList"> 
     2127    <h3>Manage Calendars</h3> 
     2128    <ul> 
     2129      <li>Select an item from the calendar list on the left to modify 
     2130      a calendar or folder.</li> 
     2131      <li>Select the 
     2132      <img src="{$resourcesRoot}/resources/calAddIcon.gif" width="13" height="13" alt="true" border="0"/> 
     2133      icon to add a new calendar or folder to the tree. 
     2134        <ul> 
     2135          <li>Folders may only contain calendars and subfolders.</li> 
     2136          <li>Calendars may only contain events (and other calendar items).</li> 
     2137          <li> 
     2138            If a calendar is empty, it may be converted to a folder and vice 
     2139            versa.  If a calendar or folder are not empty, it may not be 
     2140            converted. 
     2141          </li> 
     2142        </ul> 
     2143      </li> 
     2144    </ul> 
     2145  </xsl:template> 
     2146 
     2147  <xsl:template name="calendarDescriptions"> 
     2148    <h2>Calendar Information</h2> 
     2149    <ul> 
     2150      <li>Select an item from the calendar tree on the left to view all information 
     2151      about that calendar or folder.  The tree on the left represents the calendar 
     2152      heirarchy.</li> 
     2153    </ul> 
     2154 
     2155    <p><strong>All Calendar Descriptions:</strong></p> 
     2156    <table id="flatCalendarDescriptions" cellspacing="0"> 
     2157      <tr> 
     2158        <th>Name</th> 
     2159        <th>Description</th> 
     2160      </tr> 
     2161      <xsl:for-each select="//calendar"> 
     2162        <xsl:variable name="descClass"> 
     2163          <xsl:choose> 
     2164            <xsl:when test="position() mod 2 = 0">even</xsl:when> 
     2165            <xsl:otherwise>odd</xsl:otherwise> 
     2166          </xsl:choose> 
     2167        </xsl:variable> 
     2168        <tr class="{$descClass}"> 
     2169          <td> 
     2170            <xsl:value-of select="name"/> 
     2171          </td> 
     2172          <td> 
     2173            <xsl:value-of select="desc"/> 
     2174          </td> 
     2175        </tr> 
     2176      </xsl:for-each> 
     2177    </table> 
     2178  </xsl:template> 
     2179 
     2180  <xsl:template match="currentCalendar" mode="displayCalendar"> 
     2181    <h2>Calendar Information</h2> 
     2182    <table class="eventFormTable"> 
     2183      <tr> 
     2184        <th>Name:</th> 
     2185        <td> 
     2186          <xsl:value-of select="name"/> 
     2187        </td> 
     2188      </tr> 
     2189      <tr> 
     2190        <th>Path:</th> 
     2191        <td> 
     2192          <xsl:value-of select="path"/> 
     2193        </td> 
     2194      </tr> 
     2195      <tr> 
     2196        <th>Summary:</th> 
     2197        <td> 
     2198          <xsl:value-of select="summary"/> 
     2199        </td> 
     2200      </tr> 
     2201      <tr> 
     2202        <th>Description:</th> 
     2203        <td> 
     2204          <xsl:value-of select="desc"/> 
     2205        </td> 
     2206      </tr> 
     2207    </table> 
     2208  </xsl:template> 
     2209 
     2210  <xsl:template match="currentCalendar" mode="deleteCalendarConfirm"> 
     2211    <xsl:choose> 
     2212      <xsl:when test="calendarCollection='true'"> 
     2213        <h3>Delete Calendar</h3> 
     2214        <p> 
     2215          The following calendar will be deleted.  Continue? 
     2216        </p> 
     2217      </xsl:when> 
     2218      <xsl:otherwise> 
     2219        <h3>Delete Folder</h3> 
     2220        <p> 
     2221          The following folder <em>and all its contents</em> will be deleted. 
     2222          Continue? 
     2223        </p> 
     2224      </xsl:otherwise> 
     2225    </xsl:choose> 
     2226 
     2227    <form name="delCalForm" action="{$calendar-delete}"> 
     2228      <table class="eventFormTable"> 
     2229        <tr> 
     2230          <th>Path:</th> 
     2231          <td> 
     2232            <xsl:value-of select="path"/> 
     2233          </td> 
     2234        </tr> 
     2235        <tr> 
     2236          <th>Name:</th> 
     2237          <td> 
     2238            <xsl:value-of select="name"/> 
     2239          </td> 
     2240        </tr> 
     2241        <tr> 
     2242          <th>Summary:</th> 
     2243          <td> 
     2244            <xsl:value-of select="summary"/> 
     2245          </td> 
     2246        </tr> 
     2247        <tr> 
     2248          <th>Description:</th> 
     2249          <td> 
     2250            <xsl:value-of select="desc"/> 
     2251          </td> 
     2252        </tr> 
     2253      </table> 
     2254 
     2255      <table border="0" id="submitTable"> 
     2256        <tr> 
     2257          <td> 
     2258            <input type="submit" name="cancelled" value="Cancel"/> 
     2259          </td> 
     2260          <td align="right"> 
     2261            <xsl:choose> 
     2262              <xsl:when test="calendarCollection='true'"> 
     2263                <input type="submit" name="delete" value="Yes: Delete Calendar!"/> 
     2264              </xsl:when> 
     2265              <xsl:otherwise> 
     2266                <input type="submit" name="delete" value="Yes: Delete Folder!"/> 
     2267              </xsl:otherwise> 
     2268            </xsl:choose> 
     2269          </td> 
     2270        </tr> 
     2271      </table> 
     2272    </form> 
     2273 
     2274  </xsl:template> 
     2275 
    18662276  <!--+++++++++++++++ Subscriptions ++++++++++++++++++++--> 
    18672277  <xsl:template match="subscriptions"> 
  • trunk/calendar3/webclient/war/WEB-INF/struts-config.xml

    r376 r379  
    188188    </action> 
    189189 
    190     <action    path="/fetchPublicCalendars" 
    191                type="org.bedework.webclient.BwAction" 
    192                name="calForm" 
    193                scope="session" 
    194                validate="false"> 
    195       <forward name="success" path="/showPublicCals.rdo" redirect="true" /> 
    196     </action> 
    197  
    198     <action    path="/fetchCalendars" 
    199                type="org.bedework.webclient.BwAction" 
    200                name="calForm" 
    201                scope="session" 
    202                validate="false"> 
    203       <forward name="success" path="/showCals.rdo" redirect="true" /> 
    204     </action> 
    205  
    206190    <action    path="/setSelection" 
    207191               type="org.bedework.webcommon.misc.SetSelectionAction" 
     
    353337    </action> 
    354338 
     339    <!-- =============================================================== 
     340                         Calendar Actions 
     341         =============================================================== --> 
     342 
     343    <!-- ........... public and personal for viewing and selecting ...... --> 
     344 
     345    <action    path="/fetchPublicCalendars" 
     346               type="org.bedework.webclient.BwAction" 
     347               name="calForm" 
     348               scope="session" 
     349               validate="false"> 
     350      <forward name="success" path="/showPublicCals.rdo" redirect="true" /> 
     351    </action> 
     352 
     353    <action    path="/fetchCalendars" 
     354               type="org.bedework.webclient.BwAction" 
     355               name="calForm" 
     356               scope="session" 
     357               validate="false"> 
     358      <forward name="success" path="/showCals.rdo" redirect="true" /> 
     359    </action> 
     360 
     361    <!-- ........... personal only for modifying calendars .............. --> 
     362 
     363    <action    path="/calendar/showCalendar" 
     364               type="org.bedework.webclient.BwRenderAction" 
     365               name="calForm" 
     366               scope="session" 
     367               validate="false"> 
     368      <forward name="success" path="/docs/calendar/displayCalendar.jsp"/> 
     369    </action> 
     370 
     371 
     372    <action    path="/calendar/showReferenced" 
     373               type="org.bedework.webclient.BwRenderAction" 
     374               name="calForm" 
     375               scope="session" 
     376               validate="false"> 
     377      <forward name="success" path="/docs/calendar/referenced.jsp"/> 
     378    </action> 
     379 
     380    <action    path="/calendar/showModForm" 
     381               type="org.bedework.webclient.BwRenderAction" 
     382               name="calForm" 
     383               scope="session" 
     384               validate="false"> 
     385      <forward name="success" path="/docs/calendar/modCalendar.jsp"/> 
     386    </action> 
     387 
     388    <action    path="/calendar/showDescriptionList" 
     389               type="org.bedework.webclient.BwRenderAction" 
     390               name="calForm" 
     391               scope="session" 
     392               validate="false"> 
     393      <forward name="success" path="/docs/calendar/calendarDescriptions.jsp"/> 
     394    </action> 
     395 
     396    <action    path="/calendar/showUpdateList" 
     397               type="org.bedework.webclient.BwRenderAction" 
     398               name="calForm" 
     399               scope="session" 
     400               validate="false"> 
     401      <forward name="success" path="/docs/calendar/calendarList.jsp"/> 
     402    </action> 
     403 
     404    <action    path="/calendar/showDeleteConfirm" 
     405               type="org.bedework.webclient.BwRenderAction" 
     406               name="calForm" 
     407               scope="session" 
     408               validate="false"> 
     409      <forward name="cancelled" path="/calendar/showUpdateList.rdo" redirect="true" /> 
     410      <forward name="success" path="/docs/calendar/deleteConfirm.jsp" /> 
     411    </action> 
     412 
     413    <action    path="/calendar/initAdd" 
     414               type="org.bedework.webcommon.calendars.InitAddCalendarAction" 
     415               name="calForm" 
     416               scope="session" 
     417               validate="false"> 
     418      <forward name="continue" path="/calendar/showModForm.rdo" redirect="true" /> 
     419    </action> 
     420 
     421    <action    path="/calendar/delete" 
     422               type="org.bedework.webcommon.calendars.DeleteCalendarAction" 
     423               name="calForm" 
     424               scope="session" 
     425               validate="false"> 
     426      <forward name="inUse" path="/calendar/showReferenced.rdo" redirect="true" /> 
     427      <forward name="notFound" path="/calendar/showUpdateList.rdo" redirect="true" /> 
     428      <forward name="cancelled" path="/calendar/showUpdateList.rdo" redirect="true" /> 
     429      <forward name="continue" path="/calendar/showUpdateList.rdo" redirect="true" /> 
     430    </action> 
     431 
     432    <action    path="/calendar/fetchForDisplay" 
     433               type="org.bedework.webcommon.calendars.FetchCalendarAction" 
     434               name="calForm" 
     435               scope="session" 
     436               validate="false"> 
     437      <forward name="notFound" path="/admin/showMain.rdo" redirect="true" /> 
     438      <forward name="continue" path="/calendar/showCalendar.rdo" redirect="true" /> 
     439    </action> 
     440 
     441    <action    path="/calendar/fetchForUpdate" 
     442               type="org.bedework.webcommon.calendars.FetchCalendarAction" 
     443               name="calForm" 
     444               scope="session" 
     445               validate="false"> 
     446      <forward name="notFound" path="/admin/showUpdateList.rdo" redirect="true" /> 
     447      <forward name="continue" path="/calendar/showModForm.rdo" redirect="true" /> 
     448    </action> 
     449 
     450    <action    path="/calendar/update" 
     451               type="org.bedework.webcommon.calendars.UpdateCalendarAction" 
     452               name="calForm" 
     453               scope="session" 
     454               validate="false"> 
     455      <forward name="continue" path="/calendar/showUpdateList.rdo" redirect="true" /> 
     456      <forward name="cancelled" path="/calendar/showUpdateList.rdo" redirect="true" /> 
     457      <forward name="retry" path="/calendar/showModForm.rdo" redirect="true" /> 
     458      <forward name="delete" path="/calendar/showDeleteConfirm.rdo" redirect="true" /> 
     459    </action> 
     460 
    355461    <!-- ....................... system stats .......................... --> 
    356462 
     
    454560               scope="session" 
    455561               validate="false"> 
     562      <forward name="noAccess" path="/subs/showSubs.rdo" redirect="true"/> 
    456563      <forward name="cancelled" path="/subs/showSubs.rdo" redirect="true"/> 
    457564      <forward name="success" path="/subs/showModForm.rdo" redirect="true" /> 
  • trunk/calendar3/webclient/war/docs/header.jsp

    r348 r379  
    123123    <eventView><genurl:rewrite action="eventView.do"/></eventView> 
    124124    <initEvent><genurl:rewrite action="initEvent.do"/></initEvent> 
     125    <addEvent><genurl:rewrite action="addEvent.do"/></addEvent> 
     126    <addEventUsingPage><genurl:rewrite action="addEventUsingPage.do"/></addEventUsingPage> 
     127    <mailEvent><genurl:rewrite action="mailEvent.do"/></mailEvent> 
     128    <showPage><genurl:rewrite action="showPage.do"/></showPage> 
     129 
     130    <export><genurl:rewrite action="export.do"/></export> 
     131    <stats><genurl:rewrite action="stats.do?be=d"/></stats> 
     132 
    125133    <fetchPublicCalendars><genurl:rewrite action="fetchPublicCalendars"/></fetchPublicCalendars> 
    126134    <fetchCalendars><genurl:rewrite action="fetchCalendars"/></fetchCalendars> 
    127     <addEvent><genurl:rewrite action="addEvent.do"/></addEvent> 
    128     <addEventUsingPage><genurl:rewrite action="addEventUsingPage.do"/></addEventUsingPage> 
    129     <editEvent><genurl:rewrite action="editEvent.do"/></editEvent> 
    130     <delEvent><genurl:rewrite action="delEvent.do"/></delEvent> 
    131     <mailEvent><genurl:rewrite action="mailEvent.do"/></mailEvent> 
    132     <showPage><genurl:rewrite action="showPage.do"/></showPage> 
    133     <manageLocations><genurl:rewrite action="manageLocations.do"/></manageLocations> 
    134     <addLocation><genurl:rewrite action="addLocation.do"/></addLocation> 
    135     <editLocation><genurl:rewrite action="editLoc.do"/></editLocation> 
    136     <delLocation><genurl:rewrite action="delLocation.do"/></delLocation> 
    137     <subscriptions> <!-- only those listed are used here (no need to clean up) --> 
    138       <fetch><genurl:link page="/subs/fetch.do?b=de"/></fetch> 
    139       <fetchForUpdate><genurl:link page="/subs/fetchForUpdate.do?b=de"/></fetchForUpdate> 
    140       <initAdd><genurl:link page="/subs/initAdd.do?b=de"/></initAdd> 
    141       <subscribe><genurl:link page="/subs/subscribe.do?b=de"/></subscribe> 
    142     </subscriptions> 
    143     <export><genurl:rewrite action="export.do"/></export> 
    144  
    145     <initEventAlarm><genurl:rewrite action="initEventAlarm.do"/></initEventAlarm> 
    146     <setAlarm><genurl:rewrite action="setAlarm.do"/></setAlarm> 
    147     <addEventRef><genurl:rewrite action="addEventRef.do"/></addEventRef> 
    148     <upload><genurl:rewrite action="upload.do"/></upload> 
    149     <stats><genurl:rewrite action="stats.do?be=d"/></stats> 
     135 
     136    <!-- The following URLs are used only in the personal client --> 
     137    <logic:equal name="calForm" property="guest" value="false"> 
     138      <editEvent><genurl:rewrite action="editEvent.do"/></editEvent> 
     139      <delEvent><genurl:rewrite action="delEvent.do"/></delEvent> 
     140 
     141      <calendar> 
     142        <fetch><genurl:link page="/calendar/showUpdateList.rdo?b=de"/></fetch><!-- keep --> 
     143        <fetchDescriptions><genurl:link page="/calendar/showDescriptionList.rdo?b=de"/></fetchDescriptions><!-- keep --> 
     144        <initAdd><genurl:link page="/calendar/initAdd.do?b=de"/></initAdd><!-- keep --> 
     145        <delete><genurl:link page="/calendar/delete.do?b=de"/></delete> 
     146        <fetchForDisplay><genurl:link page="/calendar/fetchForDisplay.do?b=de"/></fetchForDisplay> 
     147        <fetchForUpdate><genurl:link page="/calendar/fetchForUpdate.do?b=de"/></fetchForUpdate><!-- keep --> 
     148        <update><genurl:link page="/calendar/update.do?b=de"/></update><!-- keep --> 
     149      </calendar> 
     150 
     151      <subscriptions> <!-- only those listed are used here (no need to clean up) --> 
     152        <fetch><genurl:link page="/subs/fetch.do?b=de"/></fetch> 
     153        <fetchForUpdate><genurl:link page="/subs/fetchForUpdate.do?b=de"/></fetchForUpdate> 
     154        <initAdd><genurl:link page="/subs/initAdd.do?b=de"/></initAdd> 
     155        <subscribe><genurl:link page="/subs/subscribe.do?b=de"/></subscribe> 
     156      </subscriptions> 
     157 
     158      <manageLocations><genurl:rewrite action="manageLocations.do"/></manageLocations> 
     159      <addLocation><genurl:rewrite action="addLocation.do"/></addLocation> 
     160      <editLocation><genurl:rewrite action="editLoc.do"/></editLocation> 
     161      <delLocation><genurl:rewrite action="delLocation.do"/></delLocation> 
     162 
     163      <initEventAlarm><genurl:rewrite action="initEventAlarm.do"/></initEventAlarm> 
     164      <setAlarm><genurl:rewrite action="setAlarm.do"/></setAlarm> 
     165      <addEventRef><genurl:rewrite action="addEventRef.do"/></addEventRef> 
     166      <upload><genurl:rewrite action="upload.do"/></upload> 
     167    </logic:equal> 
    150168  </urlPrefixes><%-- 
    151169        actionUrlPrefixes are used to generate appropriately encoded urls for 
     
    221239    <filter></filter> <%-- unimplemented --%> 
    222240  </selectionState> 
    223    
     241 
    224242  <%-- List of views for menuing --%> 
    225243  <views> 
     
    237255      the following code should not be produced in the public client 
    238256     **************************************************************** --%> 
    239   <logic:equal name="calForm" property="publicView" value="false"> 
     257  <logic:equal name="calForm" property="guest" value="false"> 
    240258    <myCalendars> 
    241259      <jsp:include page="/docs/calendar/emitCalendars.jsp"/>