jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajaqu...@apache.org
Subject svn commit: r627260 [2/4] - in /incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default: ./ admin/ editors/ images/ skins/OrderedList/ skins/OrderedList/images/ skins/PlainVanilla 1024x768/ skins/PlainVanilla/ skins/Smart/ skins...
Date Wed, 13 Feb 2008 06:13:37 GMT
Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/LoginContent.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/LoginContent.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/LoginContent.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/LoginContent.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,197 @@
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ page import="com.ecyrd.jspwiki.auth.*" %>
+<%@ page errorPage="/Error.jsp" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ page import="javax.servlet.jsp.jstl.fmt.*" %>
+<fmt:setBundle basename="templates.default"/>
+
+<%
+    String postURL = "";
+    WikiContext ctx = WikiContext.findContext( pageContext );
+    AuthenticationManager mgr = ctx.getEngine().getAuthenticationManager();
+
+    if( mgr.isContainerAuthenticated() )
+    {
+        postURL = "j_security_check";
+    }
+    else
+    {
+        String redir = (String)ctx.getVariable("redirect");
+        if( redir == null ) redir = ctx.getEngine().getFrontPage();
+        postURL = ctx.getURL( WikiContext.LOGIN, redir );
+    }
+
+    boolean supportsCookieAuthentication = mgr.allowsCookieAuthentication();
+%>
+<wiki:TabbedSection defaultTab="${param.tab}">
+
+<%-- Login functionality --%>
+<wiki:UserCheck status="notauthenticated">
+<wiki:Tab id="logincontent" title='<%=LocaleSupport.getLocalizedMessage(pageContext, "login.tab")%>'>
+<%--<wiki:Include page='LoginTab.jsp'/>--%>
+
+<form action="<%=postURL%>"
+          id="login"
+       class="wikiform"
+    onsubmit="return Wiki.submitOnce(this);"
+      method="post" accept-charset="<wiki:ContentEncoding />" >
+
+<div class="center">
+
+  <h3><fmt:message key="login.heading.login"><fmt:param><wiki:Variable var="applicationname" /></fmt:param></fmt:message></h3>
+
+  <div class="formhelp"><fmt:message key="login.help"></fmt:message></div>
+
+  <table>
+    <tr>
+      <td colspan="2" class="formhelp">
+        <wiki:Messages div="error" topic="login"
+                    prefix='<%=LocaleSupport.getLocalizedMessage(pageContext,"login.errorprefix")%>' />
+      </td>
+    </tr>
+    <tr>
+      <td><label for="j_username"><fmt:message key="login.login"/></label></td>
+      <td><input type="text" size="24" value="<wiki:Variable var='uid' default='' />"
+                 name="j_username" id="j_username" /></td>
+    </tr>
+    <tr>
+      <td><label for="j_password"><fmt:message key="login.password"/></label></td>
+      <td><input type="password" size="24"
+                 name="j_password" id="j_password" /></td>
+    </tr>
+    <% if( supportsCookieAuthentication ) { %>
+    <tr>
+      <td><label for="j_remember"><fmt:message key="login.remember"/></label></td>
+      <td><input type="checkbox"
+                 name="j_remember" id="j_remember" /></td>
+    </tr>
+    <% } %>
+    <tr>
+      <td>&nbsp;</td>
+      <td>
+        <input type="hidden" name="redirect" value="<wiki:Variable var='redirect' default='' />" />
+        <input type="submit" name="submitlogin" value="<fmt:message key='login.submit.login'/>" />
+      </td>
+    </tr>
+    </table>
+
+    <div class="formhelp">
+      <fmt:message key="login.lostpw"/>
+      <a href="#" onclick="$('menu-lostpassword').fireEvent('click');"
+                    title="<fmt:message key='login.lostpw.title'/>" >
+        <fmt:message key="login.lostpw.getnew"/>
+      </a>
+    </div>
+    <div class="formhelp">
+      <fmt:message key="login.nopassword"/>
+      <a href="#" onclick="$('menu-profile').fireEvent('click');"
+                    title="<fmt:message key='login.registernow.title'/>" >
+        <fmt:message key="login.registernow">
+          <fmt:param><wiki:Variable var="applicationname" /></fmt:param>
+        </fmt:message>
+      </a>
+    </div>
+
+</div>
+</form>
+
+</wiki:Tab>
+
+<%-- Lost pasword functionality --%>
+<wiki:Tab id="lostpassword" title='<%=LocaleSupport.getLocalizedMessage(pageContext, "login.lostpw.tab")%>'>
+
+<div class="center">
+<form action="<wiki:Link jsp='LostPassword.jsp' format='url'><wiki:Param name='tab' value='lostpassword'/></wiki:Link>"
+          id="lostpw"
+       class="wikiform"
+    onsubmit="return Wiki.submitOnce(this);"
+      method="post" accept-charset="<wiki:ContentEncoding />" >
+
+  <h3><fmt:message key="login.lostpw.heading" /></h3>
+
+  <c:choose>
+  <c:when test="${passwordreset == 'done' }">
+      <wiki:Messages div="information" topic="resetpw" prefix="" />
+      <p>
+        <fmt:message key="login.lostpw.reset.login">
+          <fmt:param><a href="<wiki:Link jsp='Login.jsp' />"><fmt:message key="login.lostpw.reset.clickhere"/></a></fmt:param>
+        </fmt:message>
+      </p>
+  </c:when>
+  <c:otherwise>
+
+  <div class="formhelp"><fmt:message key="login.lostpw.help"></fmt:message></div>
+
+  <table>
+    <c:if test="${param.tab eq 'lostpassword'}" >
+    <tr>
+      <td colspan="2" class="formhelp">
+        <wiki:Messages div="error" topic="resetpw"
+                    prefix='<%=LocaleSupport.getLocalizedMessage(pageContext,"login.errorprefix")%>' />
+      </td>
+    </tr>
+    </c:if>
+    <tr>
+      <td><label for="name"><fmt:message key="login.lostpw.name"/></label></td>
+      <td><input type="text" size="24" name="name" id="name" /></td>
+    </tr>
+    <tr>
+      <td>&nbsp;</td>
+      <td>
+        <input type="hidden" name="action" value="resetPassword"/>
+        <input type="submit" name="Submit" value="<fmt:message key='login.lostpw.submit'/>" />
+      </td>
+    </tr>
+  </table>
+
+  <div class="formhelp">
+    <fmt:message key="login.invite"/>
+    <a href="#" onclick="$('menu-logincontent').fireEvent('click');"
+                  title="<fmt:message key='login.title'/>" >
+      <fmt:message key="login.heading.login"><fmt:param><wiki:Variable var="applicationname" /></fmt:param></fmt:message>
+    </a>
+  </div>
+  <div class="formhelp">
+    <fmt:message key="login.nopassword"/>
+    <%--<a href="UserPreferences.jsp?tab=profile">--%>
+    <a href="#" onclick="$('menu-profile').fireEvent('click');"
+                  title="<fmt:message key='login.registernow.title'/>" >
+      <fmt:message key="login.registernow">
+        <fmt:param><wiki:Variable var="applicationname" /></fmt:param>
+      </fmt:message>
+    </a>
+  </div>
+
+  </c:otherwise>
+  </c:choose>
+
+</form>
+</div>
+
+</wiki:Tab>
+</wiki:UserCheck>
+
+<%-- Register new user profile --%>
+<wiki:Permission permission='editProfile'>
+<wiki:Tab id="profile" title='<%=LocaleSupport.getLocalizedMessage(pageContext, "login.register.tab")%>' >
+  <wiki:Include page='ProfileTab.jsp'/>
+</wiki:Tab>
+</wiki:Permission>
+
+<wiki:Tab id="loginhelp" title='<%=LocaleSupport.getLocalizedMessage(pageContext,"login.tab.help")%>' >
+  <wiki:InsertPage page="LoginHelp" />
+
+  <wiki:NoSuchPage page="LoginHelp">
+  <div class="error">
+    <fmt:message key="login.loginhelpmissing">
+       <fmt:param><wiki:EditLink page="LoginPageHelp">LoginHelp</wiki:EditLink></fmt:param>
+    </fmt:message>
+  </div>
+  </wiki:NoSuchPage>
+
+</wiki:Tab>
+
+</wiki:TabbedSection>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/NewGroupContent.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/NewGroupContent.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/NewGroupContent.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/NewGroupContent.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,89 @@
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ page import="java.security.Principal" %>
+<%@ page import="java.util.Arrays" %>
+<%@ page import="java.util.ResourceBundle" %>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ page import="com.ecyrd.jspwiki.auth.PrincipalComparator" %>
+<%@ page import="com.ecyrd.jspwiki.auth.authorize.Group" %>
+<%@ page import="com.ecyrd.jspwiki.auth.authorize.GroupManager" %>
+<%@ page errorPage="/Error.jsp" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<%@ page import="javax.servlet.jsp.jstl.fmt.*" %>
+<fmt:setBundle basename="templates.default"/>
+
+<%
+  // Extract the group name and members
+  String name = request.getParameter( "group" );
+
+  Group group = (Group)pageContext.getAttribute( "Group",PageContext.REQUEST_SCOPE );
+  Principal[] members = null;
+
+  if ( group != null )
+  {
+    name = group.getName();
+    members = group.members();
+    Arrays.sort( members, new PrincipalComparator() );
+  }
+
+  // FIXME : find better way to i18nize default group name
+  if ( "MyGroup".equals(name) )
+  {
+	  name = LocaleSupport.getLocalizedMessage(pageContext, "newgroup.defaultgroupname");
+  }
+
+  name = TextUtil.replaceEntities(name);
+%>
+
+<wiki:TabbedSection defaultTab="${param.tab}">
+  <wiki:Tab id="logincontent" title='<%=LocaleSupport.getLocalizedMessage(pageContext, "newgroup.heading.create")%>'>
+
+<h3><fmt:message key="newgroup.heading.create"/></h3>
+
+<wiki:Messages div='error' topic='<%=GroupManager.MESSAGES_KEY%>' prefix='<%=LocaleSupport.getLocalizedMessage(pageContext,"newgroup.errorprefix")%>' />
+
+  <form id="createGroup" action="<wiki:Link format="url" jsp="NewGroup.jsp"/>"
+    method="POST" accept-charset="UTF-8">
+
+  <div class="formhelp">
+     <fmt:message key="newgroup.instructions.start"/>
+  </div>
+
+  <table class="wikitable">
+    <!-- Name -->
+    <tr>
+      <th><label><fmt:message key="newgroup.name"/></label></th>
+      <td><input type="text" name="group" size="30" value="<%=name%>" />
+      <div class="formhelp">
+        <fmt:message key="newgroup.name.description"/>
+      </div>
+      </td>
+    </tr>
+
+    <!-- Members -->
+    <%
+      StringBuffer s = new StringBuffer();
+      for ( int i = 0; i < members.length; i++ )
+      {
+        s.append( members[i].getName().trim() );
+        s.append( '\n' );
+      }
+    %>
+    <tr>
+      <th><label><fmt:message key="group.members"/></label></th>
+      <td><textarea id="members" name="members" rows="20" cols="40"><%=TextUtil.replaceEntities(s.toString())%></textarea>
+      <div class="formhelp">
+        <fmt:message key="newgroup.members.description"/>
+      </div>
+      </td>
+    </tr>
+    </table>
+    <input type="submit" name="ok" value="<fmt:message key="newgroup.creategroup"/>" />
+    <input type="hidden" name="action" value="save" />
+    <div class="formhelp">
+         <fmt:message key="newgroup.instructions.end"/>
+    </div>
+  </form>
+
+
+</wiki:Tab>
+</wiki:TabbedSection>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageActionsBottom.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageActionsBottom.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageActionsBottom.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageActionsBottom.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,47 @@
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<fmt:setBundle basename="templates.default"/>
+<%
+  WikiContext c = WikiContext.findContext(pageContext);
+  WikiPage wikipage = c.getPage();
+%>
+<wiki:CheckRequestContext context='view|diff|edit|upload|info'>
+<div id='actionsBottom' class="pageactions"> 
+  <wiki:PageExists>  
+
+    <a href="#top" 
+      class="action quick2top" 
+      title="<fmt:message key='actions.gototop'/>" >&laquo;</a>
+
+    <wiki:CheckVersion mode="latest">
+       <fmt:message key="info.lastmodified">
+          <fmt:param><wiki:PageVersion /></fmt:param>
+          <fmt:param><wiki:DiffLink version="latest" newVersion="previous"><wiki:PageDate format='${prefs["DateFormat"]}'/></wiki:DiffLink></fmt:param>
+          <fmt:param><wiki:Author /></fmt:param>
+       </fmt:message>
+    </wiki:CheckVersion>
+
+    <wiki:CheckVersion mode="notlatest">
+      <fmt:message key="actions.publishedon">
+         <fmt:param><wiki:PageDate format='${prefs["DateFormat"]}'/></fmt:param>
+         <fmt:param><wiki:Author /></fmt:param>
+      </fmt:message>
+    </wiki:CheckVersion>
+
+    <a href="<wiki:Link format='url' jsp='rss.jsp'>
+               <wiki:Param name='page' value='<%=wikipage.getName()%>'/>
+               <wiki:Param name='mode' value='wiki'/>
+             </wiki:Link>"
+      title="<fmt:message key='info.rsspagefeed.title'>
+               <fmt:param><wiki:PageName /></fmt:param>
+             </fmt:message>" >
+      <img src="<wiki:Link jsp='images/xml.png' format='url'/>" alt="[RSS]"/>
+    </a>
+  
+  </wiki:PageExists>
+
+  <wiki:NoSuchPage><fmt:message key="actions.notcreated"/></wiki:NoSuchPage> 
+</div>
+</wiki:CheckRequestContext>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageActionsTop.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageActionsTop.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageActionsTop.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageActionsTop.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,90 @@
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<fmt:setBundle basename="templates.default"/>
+<%
+  //WikiContext c = WikiContext.findContext(pageContext);
+  //String frontpage = c.getEngine().getFrontPage(); 
+%>
+
+<div id="actionsTop" class="pageactions"> 
+  <form class="wikiform" method="get" action="" >
+  <ul>
+
+  <wiki:CheckRequestContext context='view|info|diff|upload'>
+    <wiki:Permission permission="edit">
+	<li>
+        <wiki:PageType type="page">
+          <a href="<wiki:EditLink format='url' />" accesskey="e"  class="action edit"
+            title="<fmt:message key='actions.edit.title'/>" ><fmt:message key='actions.edit'/></a>
+        </wiki:PageType>
+        <wiki:PageType type="attachment">
+          <a href="<wiki:BaseURL/>Edit.jsp?page=<wiki:ParentPageName />" accesskey="e" class="action edit"
+            title="<fmt:message key='actions.editparent.title'/>" ><fmt:message key='actions.editparent'/></a>
+        </wiki:PageType>
+    </li>
+    </wiki:Permission>
+  </wiki:CheckRequestContext>
+
+  <%-- more actions dropdown -- converted to popup by javascript 
+       so all basic actions are accessible even if js is not avail --%>
+  <li>
+  <select name="actionsMore" id="actionsMore"
+      onchange="if ((this.selectedIndex != 0) &amp;&amp; (!this.options[this.selectedIndex].disabled)) location.href=this.form.action=this.options[this.selectedIndex].value; this.selectedIndex = 0;">
+    <option class="actionsMore" value="" selected='selected'><fmt:message key="actions.more"/></option>
+
+    <wiki:CheckRequestContext context='view|info|diff|upload'>
+    <wiki:PageExists>  
+    <wiki:Permission permission="comment">
+      <wiki:PageType type="page">
+        <option class="action comment" value="<wiki:CommentLink format='url' />" 
+          title="<fmt:message key='actions.comment.title' />"><fmt:message key="actions.comment" />
+		</option>
+      </wiki:PageType>
+      <wiki:PageType type="attachment">
+         <option class="action comment" value="<wiki:BaseURL/>Comment.jsp?page=<wiki:ParentPageName />"
+           title="<fmt:message key='actions.comment.title' />"><fmt:message key="actions.comment" />
+		</option>
+      </wiki:PageType>
+    </wiki:Permission>
+    </wiki:PageExists>  
+    </wiki:CheckRequestContext>
+    
+    <wiki:CheckRequestContext context='view|info|diff|upload|edit|comment|preview' >
+    <option class="action rawpage" value="<wiki:Link format='url' ><wiki:Param name='skin' value='raw'/></wiki:Link>"
+       title="<fmt:message key='actions.rawpage.title' />"><fmt:message key='actions.rawpage' />
+    </option>
+    </wiki:CheckRequestContext>
+  
+    <wiki:CheckRequestContext context='!workflow'>
+    <wiki:UserCheck status="authenticated">
+      <option class="action workflow" value="<wiki:Link jsp='Workflow.jsp' format='url' />" 
+        title="<fmt:message key='actions.workflow.title' />"><fmt:message key='actions.workflow' />
+      </option>
+    </wiki:UserCheck>
+    </wiki:CheckRequestContext>
+
+    <wiki:Permission permission="createGroups">
+      <option class="action creategroup" value="<wiki:Link jsp='NewGroup.jsp' format='url' />" 
+        title="<fmt:message key='actions.creategroup.title' />"><fmt:message key='actions.creategroup' />
+      </option>
+    </wiki:Permission>
+
+  </select>
+  </li>
+  <li id="morebutton" style="display:none">
+    <a href="#" class="action more"><fmt:message key="actions.more"/></a>
+    <div id="moremenu" >
+      <wiki:InsertPage page="MoreMenu" />
+    </div>
+  </li>
+<%--
+  <li>
+    <a class="action quick2bottom" href="#footer" title="<fmt:message key='actions.gotobottom' />" >&raquo;</a>
+  </li>
+--%>
+  </ul>
+
+  </form>
+</div>

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageContent.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageContent.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageContent.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageContent.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,46 @@
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ page import="com.ecyrd.jspwiki.attachment.*" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<%@ page import="javax.servlet.jsp.jstl.fmt.*" %>
+<fmt:setBundle basename="templates.default"/>
+
+<%
+  WikiContext c = WikiContext.findContext( pageContext );
+  int attCount = c.getEngine().getAttachmentManager().listAttachments(c.getPage()).size();
+  String attTitle = LocaleSupport.getLocalizedMessage(pageContext, "attach.tab");
+  if( attCount != 0 ) attTitle += " (" + attCount + ")";
+%>
+
+<wiki:TabbedSection defaultTab='${param.tab}' >
+
+  <wiki:Tab id="pagecontent" title='<%=LocaleSupport.getLocalizedMessage(pageContext, "view.tab")%>' accesskey="v">
+    <wiki:Include page="PageTab.jsp"/>
+    <wiki:PageType type="attachment">
+      <div class="information">
+	    <fmt:message key="info.backtoparentpage" >
+	      <fmt:param><wiki:LinkToParent><wiki:ParentPageName/></wiki:LinkToParent></fmt:param>
+        </fmt:message>
+      </div>
+      <div style="overflow:hidden;">
+        <wiki:Translate>[<%= c.getPage().getName()%>]</wiki:Translate>
+      </div>
+    </wiki:PageType>    
+  </wiki:Tab>
+
+  <wiki:PageExists>
+
+  <wiki:PageType type="page">
+  <wiki:Tab id="attach" title="<%= attTitle %>" accesskey="a">
+    <wiki:Include page="AttachmentTab.jsp"/>
+  </wiki:Tab>
+  </wiki:PageType>
+    
+  <wiki:Tab id="info" title='<%=LocaleSupport.getLocalizedMessage(pageContext, "info.tab")%>'
+           url="<%=c.getURL(WikiContext.INFO, c.getPage().getName())%>"
+           accesskey="i" >
+  </wiki:Tab>
+    
+  </wiki:PageExists>
+
+</wiki:TabbedSection>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageTab.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageTab.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageTab.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PageTab.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,88 @@
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<%@ page import="javax.servlet.jsp.jstl.fmt.*" %><%--CHECK why is this needed --%>
+<fmt:setBundle basename="templates.default"/>
+
+<%
+	WikiContext c = WikiContext.findContext( pageContext );
+   	WikiPage p = c.getPage();
+	String pagename = p.getName();
+
+	/* check possible permalink (blogentry) pages */
+	String blogcommentpage="";
+	String mainblogpage="";
+	if( pagename.indexOf("_blogentry_") != -1 )
+	{
+		blogcommentpage = TextUtil.replaceString( pagename, "blogentry", "comments" );
+		mainblogpage = pagename.substring(0, pagename.indexOf("_blogentry_"));
+	}
+%>
+
+<%-- If the page is an older version, then offer a note and a possibility
+     to restore this version as the latest one. --%>
+<wiki:CheckVersion mode="notlatest">
+  <form action="<wiki:Link format='url' jsp='Wiki.jsp'/>" 
+        method="get"  accept-charset='UTF-8'>
+
+    <input type="hidden" name="page" value="<wiki:Variable var='pagename' />" />     
+    <div class="warning">
+      <fmt:message key="view.oldversion">
+        <fmt:param>
+          <%--<wiki:PageVersion/>--%>
+          <select id="version" name="version" onchange="this.form.submit();" >
+<% 
+   int latestVersion = c.getEngine().getPage( pagename, WikiProvider.LATEST_VERSION ).getVersion();
+   int thisVersion = p.getVersion();
+
+   if( thisVersion == WikiProvider.LATEST_VERSION ) thisVersion = latestVersion; //should not happen
+     for( int i = 1; i <= latestVersion; i++) 
+     {
+%> 
+          <option value="<%= i %>" <%= ((i==thisVersion) ? "selected='selected'" : "") %> ><%= i %></option>
+<%
+     }    
+%>
+          </select>
+        </fmt:param>
+      </fmt:message>  
+      <br />
+      <wiki:LinkTo><fmt:message key="view.backtocurrent"/></wiki:LinkTo>&nbsp;&nbsp;
+      <wiki:EditLink version="this"><fmt:message key="view.restore"/></wiki:EditLink>
+    </div>
+
+  </form>
+</wiki:CheckVersion>
+
+<%-- Inserts no text if there is no page. --%>
+<wiki:InsertPage />
+
+<%-- Inserts blogcomment if appropriate 
+<% if( !blogpage.equals("") ) { %>
+--%>
+
+<% if( ! mainblogpage.equals("") ) { %>
+<wiki:PageExists page="<%= mainblogpage%>">
+
+  <% if( ! blogcommentpage.equals("") ) { %>
+  <wiki:PageExists page="<%= blogcommentpage%>">
+	<div class="weblogcommentstitle"><fmt:message key="blog.commenttitle"/></div>
+    <div class="weblogcomments"><wiki:InsertPage page="<%= blogcommentpage%>" /></div>
+  </wiki:PageExists>
+  <% }; %>
+  <div class="information">	
+	<wiki:Link page="<%= mainblogpage %>"><fmt:message key="blog.backtomain"/></wiki:Link>&nbsp; &nbsp;
+	<wiki:Link context="comment" page="<%= blogcommentpage%>" ><fmt:message key="blog.addcomments"/></wiki:Link>
+  </div>
+
+</wiki:PageExists>
+<% }; %>
+
+<wiki:NoSuchPage>
+  <%-- FIXME: Should also note when a wrong version has been fetched. --%>
+  <div class="information" >
+  <fmt:message key="common.nopage">
+    <fmt:param><wiki:EditLink><fmt:message key="common.createit"/></wiki:EditLink></fmt:param>
+  </fmt:message>
+  </div>
+</wiki:NoSuchPage>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PreferencesContent.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PreferencesContent.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PreferencesContent.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PreferencesContent.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,32 @@
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ page import="com.ecyrd.jspwiki.ui.*" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<%@ page import="javax.servlet.jsp.jstl.fmt.*" %>
+<fmt:setBundle basename="templates.default"/>
+<% 
+   WikiContext context = WikiContext.findContext( pageContext ); 
+  TemplateManager.addResourceRequest( context, "script", "scripts/jspwiki-prefs.js" );
+%>
+
+<wiki:TabbedSection defaultTab="${param.tab}">
+
+  <wiki:Tab id="prefs" title='<%=LocaleSupport.getLocalizedMessage(pageContext, "prefs.tab.prefs")%>' accesskey="p" >
+     <wiki:Include page="PreferencesTab.jsp" />
+  </wiki:Tab>
+
+  <wiki:UserCheck status="authenticated">
+  <wiki:Permission permission="editProfile">
+  <wiki:Tab id="profile" title='<%=LocaleSupport.getLocalizedMessage(pageContext, "prefs.tab.profile")%>' accesskey="o" >
+     <wiki:Include page="ProfileTab.jsp" />
+  </wiki:Tab>
+  </wiki:Permission>
+  </wiki:UserCheck>
+  
+  <wiki:Permission permission="createGroups"> <!-- FIXME check right permissions -->
+  <wiki:Tab id="group" title='<%=LocaleSupport.getLocalizedMessage(pageContext, "group.tab")%>' accesskey="g" >
+    <wiki:Include page="GroupTab.jsp" />
+  </wiki:Tab>
+  </wiki:Permission>
+
+</wiki:TabbedSection>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PreferencesTab.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PreferencesTab.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PreferencesTab.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PreferencesTab.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,274 @@
+<%@ page errorPage="/Error.jsp" %>
+<%@ page import="java.util.*" %>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ page import="com.ecyrd.jspwiki.ui.*" %>
+<%@ page import="com.ecyrd.jspwiki.preferences.*" %>
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<%@ page import="javax.servlet.jsp.jstl.fmt.*" %>
+<fmt:setBundle basename="templates.default"/>
+<%
+  /* see commonheader.jsp */
+  String prefDateFormat = Preferences.getPreference(pageContext,"DateFormat");
+  String prefTimeZone   = Preferences.getPreference(pageContext,"TimeZone");
+
+  WikiContext c = WikiContext.findContext( pageContext );
+  pageContext.setAttribute( "skins", c.getEngine().getTemplateManager().listSkins(pageContext, c.getTemplate() ) );
+%>
+
+<h3><fmt:message key="prefs.heading"><fmt:param><wiki:Variable var="applicationname"/></fmt:param></fmt:message></h3>
+
+<c:if test="${param.tab eq 'prefs'}" >
+  <div class="formhelp">
+    <wiki:Messages div="error" topic="prefs" prefix='<%=LocaleSupport.getLocalizedMessage(pageContext,"prefs.errorprefix.prefs")%>'/>
+  </div>
+</c:if>
+
+<form action="<wiki:Link jsp='UserPreferences.jsp' format='url'><wiki:Param name='tab' value='prefs'/></wiki:Link>" 
+       class="wikiform" 
+          id="setCookie"
+      method="post" accept-charset="<wiki:ContentEncoding />"
+    onsubmit="Wiki.savePrefs(); return Wiki.submitOnce(this);" >
+<table>
+
+  <tr>
+  <td><label for="assertedName"><fmt:message key="prefs.assertedname"/></label></td>
+  <td> 
+  <input type="text" id="assertedName" name="assertedName" size="20" value="<wiki:UserProfile property='wikiname' />" />
+  <%-- CHECK THIS
+  <input type="text" id="assertedName" name="assertedName" size="20" value="<wiki:UserProfile property='loginname'/>" />
+  --%>
+  </td>
+  </tr>
+  <wiki:UserCheck status="anonymous">
+  <tr>
+  <td>&nbsp;</td>
+  <td>
+  <div class="formhelp">
+    <fmt:message key="prefs.assertedname.description">
+      <fmt:param><wiki:Variable var="applicationname" /></fmt:param>
+      <fmt:param>
+        <a href="<wiki:Link jsp='Login.jsp' format='url'><wiki:Param name='tab' value='register'/></wiki:Link>">
+          <fmt:message key="prefs.assertedname.create"/>
+        </a>
+      </fmt:param>
+    </fmt:message>
+  </div>
+  </td>
+  </tr>
+  </wiki:UserCheck>
+
+  <tr>
+  <td><label for="editor"><fmt:message key="edit.chooseeditor"/></label></td>
+  <td>
+    <select id="editor" name="editor">
+      <wiki:EditorIterator id="edt">
+        <option <%=edt.isSelected()%> value="<%=edt.getName()%>"><%=edt.getName()%></option>
+      </wiki:EditorIterator>
+  </select>
+  </td>
+  </tr>
+  
+  <tr>
+  <td><label for="prefSkin"><fmt:message key="prefs.user.skin"/></label></td>
+  <td>
+  <select id="prefSkin" name="prefSkin">
+    <c:forEach items="${skins}" var="i">
+      <option value='<c:out value='${i}'/>' <c:if test='${i == prefs["SkinName"]}'>selected="selected"</c:if> ><c:out value="${i}"/></option>
+    </c:forEach>
+  </select>
+  </td>
+  </tr>
+
+  <tr>
+  <td><label for="prefOrientation"><fmt:message key="prefs.user.orientation"/></label></td>
+  <td>
+  <select id="prefOrientation" name="prefOrientation" onchange="Wiki.changeOrientation();">
+      <option value='fav-left' <c:if test='${"fav-left" == prefs["orientation"]}'>selected="selected"</c:if> ><fmt:message key="prefs.user.orientation.left"/></option>
+      <option value='fav-right' <c:if test='${"fav-right" == prefs["orientation"]}'>selected="selected"</c:if> ><fmt:message key="prefs.user.orientation.right"/></option>
+      <%--
+      <option value='fav-hidden' <c:if test='${"fav-hidden" == prefs["orientation"]}'>selected="selected"</c:if> ><fmt:message key="prefs.user.fav-hide"/></option>
+      --%>
+  </select>
+  </td>
+  </tr>
+
+  <tr>
+  <td><label for="prefTimeFormat"><fmt:message key="prefs.user.timeformat"/></label></td>
+  <td>
+  <select id="prefTimeFormat" name="prefTimeFormat" >
+    <%
+      Properties props = c.getEngine().getWikiProperties();
+      ArrayList tfArr = new ArrayList(40);
+
+     /* filter timeformat props */
+      for( Enumeration e = props.propertyNames(); e.hasMoreElements(); )
+      {
+          String name = (String) e.nextElement();
+          if( name.startsWith( "jspwiki.defaultprefs.timeformat." ) )
+          {
+			 tfArr.add(name);
+          }
+      }
+
+      /* fetch actual formats */
+      if( tfArr.size() == 0 )
+      {
+          tfArr.add( "dd-MMM-yy" );
+          tfArr.add( "d-MMM-yyyy" );
+          tfArr.add( "EEE, dd-MMM-yyyy, zzzz" );
+      } else {
+          Collections.sort( tfArr );
+          for( int i=0; i < tfArr.size(); i++ )
+          {
+            tfArr.set(i, props.getProperty( (String)tfArr.get(i) ) );
+          }
+      }
+
+      Date d = new Date() ;  // Now.
+
+      for( int i=0; i < tfArr.size(); i++ )
+      {
+        String f = (String)tfArr.get(i);
+        String selected = ( prefDateFormat.equals( f ) ? " selected='selected'" : "" ) ;
+        try
+        {
+          java.text.SimpleDateFormat fmt = new java.text.SimpleDateFormat( f );
+          java.util.TimeZone tz = java.util.TimeZone.getDefault();
+          try 
+          {
+            tz.setRawOffset( Integer.parseInt( prefTimeZone ) );
+          }
+          catch( Exception e) { /* dont care */ } ;
+          fmt.setTimeZone( tz );
+    %>
+          <option value="<%= f %>" <%= selected%> ><%= fmt.format(d) %></option>
+   <%
+        }
+        catch( IllegalArgumentException e ) { } // skip parameter
+      }
+    %>
+  </select>
+  </td>
+  </tr>
+
+  <tr>
+  <td><label for="prefTimeZone"><fmt:message key="prefs.user.timezone"/></label></td>
+  <td>
+  <select id='prefTimeZone' name='prefTimeZone' class='select'>
+    <% 
+       String[][] tzs = 
+       { { "-43200000" , "(UTC-12) Enitwetok, Kwajalien" }
+       , { "-39600000" , "(UTC-11) Nome, Midway Island, Samoa" }
+       , { "-36000000" , "(UTC-10) Hawaii" }
+       , { "-32400000" , "(UTC-9) Alaska" }
+       , { "-28800000" , "(UTC-8) Pacific Time" }
+       , { "-25200000" , "(UTC-7) Mountain Time" }
+       , { "-21600000" , "(UTC-6) Central Time, Mexico City" }
+       , { "-18000000" , "(UTC-5) Eastern Time, Bogota, Lima, Quito" }
+       , { "-14400000" , "(UTC-4) Atlantic Time, Caracas, La Paz" }
+       , { "-12600000" , "(UTC-3:30) Newfoundland" }
+       , { "-10800000" , "(UTC-3) Brazil, Buenos Aires, Georgetown, Falkland Is." }
+       , {  "-7200000" , "(UTC-2) Mid-Atlantic, Ascention Is., St Helena" }
+       , {  "-3600000" , "(UTC-1) Azores, Cape Verde Islands" }
+       , {         "0" , "(UTC) Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia" }
+       , {   "3600000" , "(UTC+1) Berlin, Brussels, Copenhagen, Madrid, Paris, Rome" }
+       , {   "7200000" , "(UTC+2) Helsinki, Athens, Kaliningrad, South Africa, Warsaw" }
+       , {  "10800000" , "(UTC+3) Baghdad, Riyadh, Moscow, Nairobi" }
+       , {  "12600000" , "(UTC+3.30) Tehran" }
+       , {  "14400000" , "(UTC+4) Adu Dhabi, Baku, Muscat, Tbilisi" }
+       , {  "16200000" , "(UTC+4:30) Kabul" }
+       , {  "18000000" , "(UTC+5) Islamabad, Karachi, Tashkent" }
+       , {  "19800000" , "(UTC+5:30) Bombay, Calcutta, Madras, New Delhi" }
+       , {  "21600000" , "(UTC+6) Almaty, Colomba, Dhakra" }
+       , {  "25200000" , "(UTC+7) Bangkok, Hanoi, Jakarta" }
+       , {  "28800000" , "(UTC+8) Beijing, Hong Kong, Perth, Singapore, Taipei" }
+       , {  "32400000" , "(UTC+9) Osaka, Sapporo, Seoul, Tokyo, Yakutsk" }
+       , {  "34200000" , "(UTC+9:30) Adelaide, Darwin" }
+       , {  "36000000" , "(UTC+10) Melbourne, Papua New Guinea, Sydney, Vladivostok" }
+       , {  "39600000" , "(UTC+11) Magadan, New Caledonia, Solomon Islands" }
+       , {  "43200000" , "(UTC+12) Auckland, Wellington, Fiji, Marshall Island" }
+       };
+       String servertz = Integer.toString( java.util.TimeZone.getDefault().getRawOffset() ) ;
+       String selectedtz = servertz;
+       for( int i=0; i < tzs.length; i++ )
+       {
+         if( prefTimeZone.equals( tzs[i][0] ) ) selectedtz = prefTimeZone;
+       }
+       for( int i=0; i < tzs.length; i++ )
+       {
+         String selected = ( selectedtz.equals( tzs[i][0] ) ? " selected='selected'" : "" ) ;
+         String server = ( servertz.equals( tzs[i][0] ) ? " [SERVER]" : "" ) ;
+    %>
+        <option value="<%= tzs[i][0] %>" <%= selected%> ><%= tzs[i][1]+server %></option>
+   <%
+       }
+    %>    
+  </select>
+  </td>
+  </tr>
+
+  <%-- user browser language only ;  why not allow to choose from all installed server languages on jspwiki ??   
+  <tr>
+  <td><label for="prefLanguage">Select Language</label></td>
+  <td>
+  <select id="prefLanguage" name="prefLanguage" >
+    <option value="">English</option>
+  </select>
+  </td>
+  </tr>
+  
+  <tr>
+  <td><label for="prefShowQuickLinks">Show Quick Links</label></td>
+  <td>
+  <input class='checkbox' type='checkbox' id='prefShowQuickLinks' name='prefShowQuickLinks' 
+         <%= (prefShowQuickLinks.equals("yes") ? "checked='checked'" : "") %> />
+         <span class="quicklinks"><span 
+               class='quick2Top'><a href='#wikibody' title='Go to Top' >&laquo;</a></span><span 
+               class='quick2Prev'><a href='#' title='Go to Previous Section'>&lsaquo;</a></span><span 
+               class='quick2Edit'><a href='#' title='Edit this section'>&bull;</a></span><span 
+               class='quick2Next'><a href='#' title='Go to Next Section'>&rsaquo;</a></span><span 
+               class='quick2Bottom'><a href='#footer' title='Go to Bottom' >&raquo;</a></span></span>
+  </td>
+  </tr>
+
+  <tr>
+  <td><label for="prefShowCalendar">Show Calendar</label></td>
+  <td>
+    <input class='checkbox' type='checkbox' id='prefShowCalendar' name='prefShowCalendar' 
+            <%= (prefShowCalendar.equals("yes") ? "checked='checked'": "") %> >
+  </td>
+  </tr>
+  --%>
+ <tr>
+  <td>&nbsp;</td>
+  <td>
+    <input type="submit" name="ok" value="<fmt:message key='prefs.save.prefs.submit'/>" 
+      accesskey="s" />
+    <input type="hidden" name="redirect" value="<wiki:Variable var='redirect' default='' />" />
+    <input type="hidden" name="action" value="setAssertedName" />
+    <div class="formhelp"><fmt:message key='prefs.cookies'/></div>
+  </td>
+  </tr>
+
+</table>
+</form>
+  
+<!-- Clearing the 'asserted name' and other prefs in the cookie -->
+<%--wiki:UserCheck status="asserted"--%>
+
+<h3><fmt:message key='prefs.clear.heading'/></h3>
+
+<form action="<wiki:Link format='url' jsp='UserPreferences.jsp'><wiki:Param name='tab' value='prefs'/></wiki:Link>"
+          id="clearCookie"
+    onsubmit="Wiki.prefs.empty(); return Wiki.submitOnce( this );" 
+      method="post" accept-charset="<wiki:ContentEncoding />" >
+  <div>
+  <input type="submit" name="ok" value="<fmt:message key='prefs.clear.submit'/>" />
+  <input type="hidden" name="action" value="clearAssertedName" />
+  </div>
+  <div class="formhelp"><fmt:message key="prefs.clear.description" /></div>
+
+</form>
+<%--/wiki:UserCheck--%>

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PreviewContent.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PreviewContent.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PreviewContent.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/PreviewContent.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,25 @@
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ page import="com.ecyrd.jspwiki.ui.EditorManager" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<%@ page import="javax.servlet.jsp.jstl.fmt.*" %>
+<fmt:setBundle basename="templates.default"/>
+
+<%-- Inserts page content for preview. --%>
+<wiki:TabbedSection>
+<wiki:Tab id="previewcontent" title='<%=LocaleSupport.getLocalizedMessage(pageContext, "preview.tab")%>'>
+
+  <div class="information">
+    <fmt:message key="preview.info"/>
+    <wiki:Editor/>
+  </div>
+
+  <div class="previewcontent">
+    <wiki:Translate><%=EditorManager.getEditedText(pageContext)%></wiki:Translate>
+  </div>
+
+  <div class="information">
+    <fmt:message key="preview.info"/>
+  </div>
+
+</wiki:Tab>
+</wiki:TabbedSection>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/ProfileTab.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/ProfileTab.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/ProfileTab.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/ProfileTab.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,149 @@
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ page import="com.ecyrd.jspwiki.auth.*" %>
+<%@ page import="com.ecyrd.jspwiki.auth.user.*" %>
+<%@ page errorPage="/Error.jsp" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<%@ page import="javax.servlet.jsp.jstl.fmt.*" %>
+<fmt:setBundle basename="templates.default"/>
+<%
+  /* dateformatting not yet supported by wiki:UserProfile tag - diy */
+  WikiContext wikiContext = WikiContext.findContext(pageContext);
+  UserManager manager = wikiContext.getEngine().getUserManager();
+  UserProfile profile = manager.getUserProfile( wikiContext.getWikiSession() );
+%>
+<form action="<wiki:CheckRequestContext 
+     context='login'><wiki:Link jsp='Login.jsp' format='url'><wiki:Param name='tab'
+       value='profile'/></wiki:Link></wiki:CheckRequestContext><wiki:CheckRequestContext 
+     context='prefs'><wiki:Link jsp='UserPreferences.jsp' format='url'><wiki:Param name='tab'
+       value='profile'/></wiki:Link></wiki:CheckRequestContext>" 
+          id="editProfile" 
+       class="wikiform"
+    onsubmit="return Wiki.submitOnce( this );"
+      method="post" accept-charset="UTF-8">
+
+      <h3>
+      <wiki:UserProfile property="exists"><fmt:message key="prefs.oldprofile"/></wiki:UserProfile>
+      <wiki:UserProfile property="new"><fmt:message key="prefs.newprofile"/></wiki:UserProfile>
+      </h3>
+
+      <c:if test="${param.tab eq 'profile'}" >
+        <div class="formhelp">
+        <wiki:Messages div="error" topic="profile" prefix='<%=LocaleSupport.getLocalizedMessage(pageContext,"prefs.errorprefix.profile")%>'/>
+        </div>
+      </c:if>
+
+     <table>
+
+     <!-- Login name -->
+     <tr>
+       <td><label for="loginname"><fmt:message key="prefs.loginname"/></label></td>
+       <td>
+         <wiki:UserProfile property="canChangeLoginName">
+           <input type="text" name="loginname" id="loginname"
+                  size="20" value="<wiki:UserProfile property='loginname' />" />
+         </wiki:UserProfile>
+         <wiki:UserProfile property="!canChangeLoginName">
+           <!-- If user can't change their login name, it's because the container manages the login -->
+           <wiki:UserProfile property="new">
+             <div class="warning"><fmt:message key="prefs.loginname.cannotset.new"/></div>
+           </wiki:UserProfile>
+           <wiki:UserProfile property="exists">
+             <span class="formvalue"><wiki:UserProfile property="loginname"/></span>
+             <div class="warning"><fmt:message key="prefs.loginname.cannotset.exists"/></div>
+           </wiki:UserProfile>
+         </wiki:UserProfile>
+       </td>
+     </tr>
+
+     <!-- Password; not displayed if container auth used -->
+     <wiki:UserProfile property="canChangePassword">
+       <tr>
+         <td><label for="password"><fmt:message key="prefs.password"/></label></td>
+         <td>
+            <%--FIXME Enter Old PW to validate change flow, not yet treated by JSPWiki
+            <label for="password0">Old</label>&nbsp;
+            <input type="password" name="password0" id="password0" size="20" value="" />
+            &nbsp;&nbsp;--%>
+            <input type="password" name="password" id="password" size="20" value="" />
+          </td>
+        </tr>
+        <tr>
+          <td><label for="password2"><fmt:message key="prefs.password2"/></label></td>
+          <td>
+            <input type="password" name="password2" id="password2" size="20" value="" />
+            <%-- extra validation ? min size, allowed chars? --%>
+         </td>
+       </tr>
+     </wiki:UserProfile>
+
+     <!-- Full name -->
+     <tr>
+       <td><label for="fullname"><fmt:message key="prefs.fullname"/></label></td>
+       <td>
+         <input type="text" name="fullname" id="fullname"
+                size="20" value="<wiki:UserProfile property='fullname'/>" />
+         <span class="formhelp"><fmt:message key="prefs.fullname.description"/></span>
+       </td>
+     </tr>
+
+     <!-- E-mail -->
+     <tr>
+       <td><label for="email"><fmt:message key="prefs.email"/></label></td>
+       <td>
+         <input type="text" name="email" id="email"
+                size="20" value="<wiki:UserProfile property='email' />" />
+         <span class="formhelp"><fmt:message key="prefs.email.description"/></span>
+       </td>
+     </tr>
+
+     <wiki:UserProfile property="exists">
+     <tr class="additinfo">
+       <td><label><fmt:message key="prefs.roles"/></label></td>
+       <td><div class="formvalue"><wiki:UserProfile property="roles" /></div></td>
+     </tr>
+     <tr class="additinfo">
+       <td><label><fmt:message key="prefs.groups"/></label></td>
+       <td>
+         <%-- TODO this should become clickable group links so you can immediately go and look at them if you want --%>
+         <div class="formvalue"><wiki:UserProfile property="groups" /></div>
+         <div class="formhelp"><fmt:message key="prefs.acl.info" /></div>
+       </td>
+     </tr>
+
+     <tr class="additinfo">
+       <td><label><fmt:message key="prefs.creationdate"/></label></td>
+       <td class="formvalue">
+         <%--<wiki:UserProfile property="created"/>--%>
+ 	     <fmt:formatDate value="<%= profile.getCreated() %>" pattern="${prefs['DateFormat']}" />
+       </td>
+     </tr>
+     <tr class="additinfo">
+       <td><label><fmt:message key="prefs.profile.lastmodified"/></label></td>
+       <td class="formvalue">
+         <%--<wiki:UserProfile property="modified"/>--%>
+ 	     <fmt:formatDate value="<%= profile.getLastModified() %>" pattern="${prefs['DateFormat']}" />
+       </td>
+     </tr>
+     </wiki:UserProfile>
+
+     <tr>
+       <td>&nbsp;</td>
+       <td>
+       <wiki:UserProfile property="exists">
+        <input type="submit" name="ok" value="<fmt:message key='prefs.save.submit' />" />
+       </wiki:UserProfile>
+       <wiki:UserProfile property="new">
+         <input type="submit" name="ok" value="<fmt:message key='prefs.save.submit' />" />
+       </wiki:UserProfile>
+       <input type="hidden" name="redirect" value="<wiki:Variable var='redirect' default='' />" />
+       <input type="hidden" name="action" value="saveProfile" />
+
+       <wiki:UserCheck status="assertionsAllowed">
+          <div class="formhelp"><fmt:message key="prefs.cookie.info"/></div>
+        </wiki:UserCheck>
+       </td>
+     </tr>
+   </table>
+</form>

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/SearchBox.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/SearchBox.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/SearchBox.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/SearchBox.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,50 @@
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<fmt:setBundle basename="templates.default"/>
+<%-- Provides a simple searchbox that can be easily included anywhere on the page --%>
+<%-- Powered by jswpwiki-common.js//SearchBox --%>
+
+<form action="<wiki:Link jsp='Search.jsp' format='url'/>"
+        class="wikiform"
+           id="searchForm" accept-charset="<wiki:ContentEncoding />">
+
+  <div style="position:relative">
+  <input onblur="if( this.value == '' ) { this.value = this.defaultValue }; return true; "
+        onfocus="if( this.value == this.defaultValue ) { this.value = ''}; return true; "
+           type="text" value="<fmt:message key='sbox.search.submit'/>"
+           name="query" id="query"
+           size="20" 
+      accesskey="f"></input>
+  <button type="submit"
+  		 name="searchSubmit" id="searchSubmit"
+  		value="<fmt:message key='find.submit.go'/>"
+  		title="<fmt:message key='find.submit.go'/>"></button>
+  </div>
+  <div id="searchboxMenu" style='visibility:hidden;'>
+    <div id="searchTools">
+      <a href="#" id='quickView' class='action'
+      onclick="SearchBox.navigate( '<wiki:Link format="url" page="__PAGEHERE__"/>','<fmt:message key="sbox.view.title"/>' );"
+        title="<fmt:message key="sbox.view.title"/>"><fmt:message key="sbox.view"/></a>
+      <a href="#" id='quickEdit' class='action'
+      onclick="SearchBox.navigate( '<wiki:Link format="url" context="edit" page="__PAGEHERE__"/>','<fmt:message key="sbox.edit.title"/>' );"
+        title="<fmt:message key="sbox.edit.title"/>"><fmt:message key="sbox.edit"/></a>
+      <a href="#" id='quickClone' class='action'	
+      onclick="return SearchBox.navigate( '<wiki:Link format="url" page="__PAGEHERE__" context="edit" />', '<fmt:message key="sbox.clone.title"/>', true );"
+        title="<fmt:message key="sbox.clone.title"/>"><fmt:message key="sbox.clone"/></a>
+      <a href="#" id="advancedSearch" class='action'
+      onclick="SearchBox.navigate( '<wiki:BaseURL />Search.jsp?query=__PAGEHERE__','<wiki:Variable var="pagename"/>' )"
+        title="<fmt:message key="sbox.find.title"/> [ f ]"><fmt:message key="sbox.find"/></a>
+    </div>
+    <div id="searchResult" >
+	  <fmt:message key='sbox.search.result'/>
+      <span id="searchTarget" ><fmt:message key='sbox.search.target'/></span>
+      <span id="searchSpin" class="spin" style="position:absolute;display:none;"></span>
+	  <div id="searchOutput" ></div>
+    </div>
+    <div id="recentSearches" style="display:none;">
+      <fmt:message key="sbox.recentsearches"/>
+      <span><a href="#" id="recentClear"><fmt:message key="sbox.clearrecent"/></a></span>
+    </div>
+  </div>
+
+</form>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/UploadTemplate.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/UploadTemplate.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/UploadTemplate.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/UploadTemplate.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,67 @@
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<%@ page import="javax.servlet.jsp.jstl.fmt.*" %>
+<fmt:setBundle basename="templates.default"/>
+
+<%
+  WikiContext c = WikiContext.findContext( pageContext );
+  int attCount = c.getEngine().getAttachmentManager().listAttachments(c.getPage()).size();
+  String attTitle = LocaleSupport.getLocalizedMessage(pageContext, "attach.tab");
+  if( attCount != 0 ) attTitle += " (" + attCount + ")";
+%>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html id="top" xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+  <title><fmt:message key="upload.title"><fmt:param><wiki:Variable var="applicationname"/></fmt:param></fmt:message></title>
+  <wiki:Include page="commonheader.jsp"/>
+  <meta name="robots" content="noindex,nofollow" />
+</head>
+
+<body>
+
+<div id="wikibody" class="${prefs['orientation']}">
+
+  <wiki:Include page="Header.jsp" />
+
+  <div id="content">
+
+    <div id="page">
+      <wiki:Include page="PageActionsTop.jsp"/>
+
+      <wiki:TabbedSection defaultTab="attachments" >
+        <wiki:Tab id="pagecontent" title='<%=LocaleSupport.getLocalizedMessage(pageContext, "view.tab")%>'
+	  		     url="<%=c.getURL(WikiContext.VIEW, c.getPage().getName())%>"
+	       accesskey="v" >
+        </wiki:Tab>
+        
+        <wiki:PageExists>
+        <wiki:Tab id="attachments" title="<%= attTitle %>" >
+          <wiki:Include page="AttachmentTab.jsp"/>
+        </wiki:Tab>
+        <wiki:Tab id="info" title='<%=LocaleSupport.getLocalizedMessage(pageContext, "info.tab")%>'
+                 url="<%=c.getURL(WikiContext.INFO, c.getPage().getName())%>"
+           accesskey="i" >
+        </wiki:Tab>
+
+        </wiki:PageExists>
+      </wiki:TabbedSection>
+
+      <wiki:Include page="PageActionsBottom.jsp"/>
+
+    </div>
+
+    <wiki:Include page="Favorites.jsp"/>
+
+	<div class="clearbox"></div>
+  </div>
+
+  <wiki:Include page="Footer.jsp" />
+
+</div>
+</body>
+
+</html>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/UserBox.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/UserBox.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/UserBox.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/UserBox.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,62 @@
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<%@ page import="javax.servlet.jsp.jstl.fmt.*" %>
+<fmt:setBundle basename="templates.default"/>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%
+  WikiContext c = WikiContext.findContext(pageContext);
+%>
+<div class="userbox">
+
+  <wiki:UserCheck status="anonymous">
+    <span class="username anonymous">
+      <fmt:message key="fav.greet.anonymous" />
+    </span>
+  </wiki:UserCheck>
+  <wiki:UserCheck status="asserted">
+    <span class="username asserted">
+      <fmt:message key="fav.greet.asserted">
+      <fmt:param><wiki:Translate>[<wiki:UserName />]</wiki:Translate></fmt:param>
+    </fmt:message>
+    </span>
+  </wiki:UserCheck>
+  <wiki:UserCheck status="authenticated">
+    <span class="username authenticated">
+      <fmt:message key="fav.greet.authenticated">
+        <fmt:param><wiki:Translate>[<wiki:UserName />]</wiki:Translate></fmt:param>
+      </fmt:message>
+    </span>
+  </wiki:UserCheck>
+
+  <%-- action buttons --%>
+  <wiki:UserCheck status="notAuthenticated">
+  <wiki:CheckRequestContext context='!login'>
+    <wiki:Permission permission="login">
+      <a href="<wiki:Link jsp='Login.jsp' format='url'><wiki:Param 
+         name='redirect' value='<%=c.getPage().getName()%>'/></wiki:Link>" 
+        class="action login"
+        title="<fmt:message key='actions.login.title'/>"><fmt:message key="actions.login"/></a>
+    </wiki:Permission>
+  </wiki:CheckRequestContext>
+  </wiki:UserCheck>
+  
+  <wiki:UserCheck status="authenticated">
+   <a href="<wiki:Link jsp='Logout.jsp' format='url' />" 
+     class="action logout"
+     title="<fmt:message key='actions.logout.title'/>"><fmt:message key="actions.logout"/></a>
+   <%--onclick="return( confirm('<fmt:message key="actions.confirmlogout"/>') && (location=this.href) );"--%>
+  </wiki:UserCheck>
+
+  <wiki:CheckRequestContext context='!prefs'>
+  <wiki:CheckRequestContext context='!preview'>
+    <a href="<wiki:Link jsp='UserPreferences.jsp' format='url' ><wiki:Param name='redirect'
+      value='<%=c.getPage().getName()%>'/></wiki:Link>"
+      class="action prefs" accesskey="p"
+      title="<fmt:message key='actions.prefs.title'/>"><fmt:message key="actions.prefs" />
+    </a>
+  </wiki:CheckRequestContext>
+  </wiki:CheckRequestContext>
+
+  <div class="clearbox"></div>
+
+</div>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/ViewTemplate.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/ViewTemplate.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/ViewTemplate.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/ViewTemplate.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,50 @@
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html id="top" xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+  <title>
+    <fmt:message key="view.title.view">
+      <fmt:param><wiki:Variable var="ApplicationName" /></fmt:param>
+      <fmt:param><wiki:PageName /></fmt:param>
+    </fmt:message>
+  </title>
+  <wiki:Include page="commonheader.jsp"/>
+  <wiki:CheckVersion mode="notlatest">
+    <meta name="robots" content="noindex,nofollow" />
+  </wiki:CheckVersion>
+  <wiki:CheckRequestContext context="diff|info">
+    <meta name="robots" content="noindex,nofollow" />
+  </wiki:CheckRequestContext>
+  <wiki:CheckRequestContext context="!view">
+    <meta name="robots" content="noindex,follow" />
+  </wiki:CheckRequestContext>
+</head>
+
+<body class="view">
+
+<div id="wikibody" class="${prefs['orientation']}">
+
+  <wiki:Include page="Header.jsp" />
+
+  <div id="content">
+
+    <div id="page">
+      <wiki:Include page="PageActionsTop.jsp"/>
+      <wiki:Content/>
+      <wiki:Include page="PageActionsBottom.jsp"/>
+    </div>
+
+    <wiki:Include page="Favorites.jsp"/>
+
+	<div class="clearbox"></div>
+  </div>
+
+  <wiki:Include page="Footer.jsp" />
+
+</div>
+
+</body>
+</html>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/WorkflowContent.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/WorkflowContent.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/WorkflowContent.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/WorkflowContent.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,169 @@
+<%@ page errorPage="/Error.jsp" %>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<%@ page import="javax.servlet.jsp.jstl.fmt.*" %>
+<fmt:setBundle basename="templates.default"/>
+<script language="JavaScript">
+  function SubmitOutcomeIfSelected(selectId) 
+  {
+    if ( selectId.selectedIndex > 0 )
+    {
+      // alert(selectId.selectedIndex);
+      selectId.form.submit();
+    }
+  }
+</script>
+<%
+  int i = 0;
+  String evenOdd;
+%>
+<wiki:TabbedSection defaultTab='${param.tab} %>' >
+
+<wiki:Tab id="pagecontent" title='<%=LocaleSupport.getLocalizedMessage(pageContext, "workflow.tab")%>' >
+
+<h3><fmt:message key="workflow.heading" /></h3>
+<p><fmt:message key="workflow.instructions"/></p>
+
+<!-- Pending Decisions -->
+<h4><fmt:message key="workflow.decisions.heading" /></h4>
+
+<c:if test="${empty decisions}">
+  <div class="information">
+    <fmt:message key="workflow.noinstructions"/>
+  </div>
+</c:if>
+
+<c:if test="${!empty decisions}">
+  <div class="formhelp">
+    <fmt:message key="workflow.actor.instructions"/>
+  </div>
+  <table class="wikitable">
+    <thead>
+      <th width="5%"  align="center"><fmt:message key="workflow.id"/></th>
+      <th width="45%" align="left"><fmt:message key="workflow.item"/></th>
+      <th width="15%" align="left"><fmt:message key="workflow.actions"/></th>
+      <th width="15%" align="left"><fmt:message key="workflow.requester"/></th>
+      <th width="20%" align="left"><fmt:message key="workflow.startTime"/></th>
+    </thead>
+    <tbody>
+      <% i = 1; %>
+      <c:forEach var="decision" items="${decisions}">
+        <% evenOdd = (i % 2 == 0) ? "even" : "odd"; %>
+        <tr class="<%=evenOdd%>">
+          <!-- Workflow ID -->
+          <td align="center"><c:out value="${decision.workflow.id}"/></td>
+          <!-- Name of item -->
+          <td align="left">
+            <fmt:message key="${decision.messageKey}">
+              <c:forEach var="messageArg" items="${decision.messageArguments}">
+                <fmt:param><c:out value="${messageArg}"/></fmt:param>
+              </c:forEach>
+            </fmt:message>
+          </td>
+          <!-- Possible actions (outcomes) -->
+          <td align="left">
+            <form id="<c:out value='decision.${decision.id}'/>" 
+              action="<wiki:Link jsp='Workflow.jsp' format='url'/>" method="POST" accept-charset="UTF-8">
+              <input type="hidden" name="action" value="decide" />
+              <input type="hidden" name="id" value="<c:out value='${decision.id}' />" />
+              <select name="outcome" onchange="SubmitOutcomeIfSelected(this)">
+                <option value="-"><fmt:message key="select.one"/></option>
+                <c:forEach var="outcome" items="${decision.availableOutcomes}"><option value="${outcome.messageKey}"><fmt:message key="${outcome.messageKey}"/></option>
+                </c:forEach>
+              </select>
+            </form>
+          </td>
+          <!-- Requester -->
+          <td align="left"><c:out value="${decision.owner.name}"/></td>
+          <!-- When did the actor start this step? -->
+          <td align="left">
+            <fmt:formatDate value="${decision.startTime}" pattern="${prefs['DateFormat']}" />
+		  </td>
+        </tr>
+        <!-- Hidden row with Decision details, if there are any -->
+        <c:if test="${!empty decision.facts}">
+          <tr class="<%=evenOdd%>" class="hideDiv">
+            <td>&nbsp;</td>
+            <td colspan="4" class="split">
+              <a href="#" 
+                title="Show or hide details"
+              onclick="$('decision.<c:out value="${decision.workflow.id}"/>').toggle();" >
+                <fmt:message key="workflow.details" />
+              </a>
+              <div class="hideDiv" id="<c:out value='decision.${decision.workflow.id}'/>">
+                <c:forEach var="fact" items="${decision.facts}">
+                  <h5><fmt:message key="${fact.messageKey}" /></h5>
+                  <p><c:out escapeXml="false" value="${fact.value}"/></p>
+                </c:forEach>
+              </div>
+            </td>
+          </tr>
+        </c:if>
+        
+        <% i++; %>
+      </c:forEach>
+    </tbody>
+  </table>
+</c:if>
+
+<!-- Running workflows for which current user is the owner -->
+<h4><fmt:message key="workflow.workflows.heading" /></h4>
+
+<c:if test="${empty workflows}">
+  <div class="information">
+    <fmt:message key="workflow.noinstructions"/>
+  </div>
+</c:if>
+
+<c:if test="${!empty workflows}">
+  <div class="formhelp">
+    <fmt:message key="workflow.owner.instructions"/>
+  </div>
+  <table class="wikitable">
+    <thead>
+      <th width="5%"  align="center"><fmt:message key="workflow.id"/></th>
+      <th width="45%" align="left"><fmt:message key="workflow.item"/></th>
+      <th width="15%" align="left"><fmt:message key="workflow.actions"/></th>
+      <th width="15%" align="left"><fmt:message key="workflow.actor"/></th>
+      <th width="20%" align="left"><fmt:message key="workflow.startTime"/></th>
+    </thead>
+    <% i = 1; %>
+    <tbody>
+      <c:forEach var="workflow" items="${workflows}">
+        <% evenOdd = (i % 2 == 0) ? "even" : "odd"; %>
+        <tr class="<%=evenOdd%>">
+          <!-- Workflow ID -->
+          <td  align="center"><c:out value="${workflow.id}"/></td>
+          <!-- Name of item -->
+          <td align="left">
+            <fmt:message key="${workflow.messageKey}">
+              <c:forEach var="messageArg" items="${workflow.messageArguments}">
+                <fmt:param><c:out value="${messageArg}"/></fmt:param>
+              </c:forEach>
+            </fmt:message>
+          </td >
+          <!-- Actions -->
+          <td align="left">
+            <form id="<c:out value='workflow.${workflow.id}'/>" action="<wiki:Link jsp='Workflow.jsp' format='url'/>" method="POST" accept-charset="UTF-8">
+              <input type="submit" name="submit" value="<fmt:message key="outcome.step.abort" />" />
+              <input type="hidden" name="action" value="abort" />
+              <input type="hidden" name="id" value="<c:out value="${workflow.id}" />" />
+            </form>
+          </td>
+          <!-- Current actor -->
+          <td align="left"><c:out value="${workflow.currentActor.name}"/></td>
+          <!-- When did the actor start this step? -->
+          <td align="left">
+            <fmt:formatDate value="${workflow.currentStep.startTime}" pattern="${prefs['DateFormat']}" />
+          </td>
+        </tr>
+        <% i++; %>
+      </c:forEach>
+    </tbody>
+  </table>
+</c:if>
+
+</wiki:Tab>
+</wiki:TabbedSection>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/admin/AdminTemplate.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/admin/AdminTemplate.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/admin/AdminTemplate.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/admin/AdminTemplate.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,89 @@
+<%@ page import="java.util.*" %>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ page import="com.ecyrd.jspwiki.ui.*" %>
+<%@ page import="com.ecyrd.jspwiki.ui.admin.*" %>
+<%@ page errorPage="/Error.jsp" %>
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<html>
+<head>
+<title>JSPWiki administration</title>
+  <wiki:Include page="commonheader.jsp"/>
+  <link rel="stylesheet" media="screen, projection, print" type="text/css" 
+        href="<wiki:Link format='url' templatefile='admin/admin.css'/>"/>
+</head>
+<body class="view">
+<div id="wikibody">
+<h1>JSPWiki Administration</h1>
+<div class="information">Not all things can be configured here.  Some things need to be configured
+in your <tt>jspwiki.properties</tt> file.</div>
+
+<%
+    WikiEngine wiki = WikiEngine.getInstance( getServletConfig() );
+    WikiContext ctx = WikiContext.findContext(pageContext);
+    AdminBeanManager mgr = wiki.getAdminBeanManager();
+ %>
+
+<wiki:TabbedSection defaultTab="${param['tab-admin']}">
+
+<wiki:Tab id="core" title="Core">
+<p>Contains core setup options.</p>
+   <wiki:TabbedSection defaultTab="${param['tab-core']}">
+
+     <wiki:AdminBeanIterator type="core" id="ab">
+      <wiki:Tab id="${ab.id}" title="${ab.title}">
+      
+      <div class="formcontainer">
+      <form action="Admin.jsp" method="post" accept-charset="UTF-8">
+        <input type="hidden" name="tab-admin" value="core"/>
+        <input type="hidden" name="tab-core" value="${ab.title}" />
+        <input type="hidden" name="bean" value="${ab.id}" />
+        <%
+         out.write( ab.doGet(ctx) );
+         %>
+       </form>
+       </div>
+      </wiki:Tab>
+     </wiki:AdminBeanIterator>
+   </wiki:TabbedSection>
+</wiki:Tab>
+
+<wiki:Tab id="users" title="Users">
+   <wiki:Include page="admin/UserManagement.jsp"/>
+</wiki:Tab>
+
+<wiki:Tab id="groups" title="Groups">
+   <div>
+   <p>This is a list of all groups in this wiki.  If you click on the group name,
+   you will be taken to the administration page of that particular group.</p>
+   <p>
+   <wiki:Plugin plugin="Groups"/>
+   </p>
+   </div>
+</wiki:Tab>
+
+
+<wiki:Tab id="editors" title="Editors">
+   <wiki:TabbedSection defaultTab="${param['tab-editors']}">
+     <wiki:AdminBeanIterator type="editors" id="ab">
+      <wiki:Tab id="${ab.id}" title="${ab.title}">
+      
+      <div class="formcontainer"> 
+      <form action="Admin.jsp" method="post" accept-charset="UTF-8">
+         <input type="hidden" name="tab-admin" value="editors"/>
+         <input type="hidden" name="tab-editors" value="${ab.title}" />
+         <%
+         out.write( ab.doGet(ctx) );
+         %>
+       </form>
+       </div>
+      </wiki:Tab>
+     </wiki:AdminBeanIterator>
+   </wiki:TabbedSection>
+</wiki:Tab>
+<wiki:Tab id="filters" title="Filters">
+<p>There will be more filter stuff here</p>
+</wiki:Tab>
+</wiki:TabbedSection>
+
+</div>
+</body>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/admin/UserManagement.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/admin/UserManagement.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/admin/UserManagement.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/admin/UserManagement.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,125 @@
+<%@ page import="java.util.*" %>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ page import="com.ecyrd.jspwiki.rpc.json.*" %>
+<%@ page import="com.ecyrd.jspwiki.ui.admin.*" %>
+<%@ page errorPage="/Error.jsp" %>
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<fmt:setBundle basename="templates.default"/>
+<script>
+function constructdate(date)
+{
+  var d = new Date();
+  d.setTime(date.time);
+  return d;
+}
+
+function refreshUserInfo()
+{
+   var userid = $('userid').getValue();
+
+   if( userid == '--New--' ) return;
+
+   Wiki.jsonrpc("users.getUserInfo", [userid], function(userprofile){
+      $('loginname').value = userprofile.loginName;
+      $('loginid').value = userprofile.loginName;
+      $('fullname').value = userprofile.fullname;
+      $('email').value = userprofile.email;
+      $('lastmodified').setHTML(constructdate(userprofile.lastModified));
+      $('creationdate').setHTML(constructdate(userprofile.created));
+   });
+}
+
+function addNew()
+{
+  $('loginid').value = "--New--";
+  $('loginname').value = "--New--";
+  $('fullname').value = "Undefined";
+  $('email').value = "";
+  $('lastmodified').innerHTML = "";
+  $('creationdate').innerHTML = "";
+ 
+  var idlist=$('userid');
+  var len = idlist.options.length;
+  idlist.options[len] = new Option('--New--','--New--');
+  idlist.selectedIndex = len;
+}
+</script>
+<div>
+   <p>
+   This is a list of user accounts that exist in this system.
+   </p>
+   <p><wiki:Messages/></p>
+   <div id="userlist">
+      <select name="userid" id="userid" size="16" onchange="javascript:refreshUserInfo()">
+         <c:forEach var="user" items="${engine.userManager.userDatabase.wikiNames}">
+            <option><c:out value="${user.name}" escapeXml="true"/></option>
+         </c:forEach>
+      </select>
+   </div>
+   <div id="useredit">
+   <form action="<wiki:Link jsp='admin/Admin.jsp' format='url'><wiki:Param name='tab-admin' value='users'/></wiki:Link>" 
+       class="wikiform"
+          id="adminuserform" 
+    onsubmit="return Wiki.submitOnce(this);"
+      method="post" accept-charset="<wiki:ContentEncoding/>"
+     enctype="application/x-www-form-urlencoded" >
+     <input type="hidden" name='bean' value='com.ecyrd.jspwiki.ui.admin.beans.UserBean'/>
+     <input type="hidden" id="loginid" name="loginid" value="" />
+     <table>
+     <tr>
+       <td><label for="loginname">Login name</label></td>
+       <td>
+           <input type="text" name="loginname" id="loginname"
+                  size="20" value="" />
+       </td>
+     </tr>
+     <tr>
+       <td><label for="password">Password </label></td>
+       <td>
+          <input type="password" name="password" id="password" size="20" value="" />
+       </td>
+     </tr>
+     <tr>
+       <td><label for="password2">Confirm password</label></td>
+       <td>
+         <input type="password" name="password2" id="password2" size="20" value="" />
+       </td>
+     </tr>
+     <tr>
+       <td><label for="fullname">Full name</label></td>
+       <td>
+         <input type="text" name="fullname" id="fullname"
+                size="20" value="" />
+       </td>
+     </tr>
+     <tr>
+       <td><label for="email">Email</label></td>
+       <td>
+         <input type="text" name="email" id="email"
+                size="20" value="" />
+       </td>
+     </tr>
+
+     <tr class="additinfo">
+       <td><label>Creation date</label></td>
+       <td class="formvalue" id="creationdate">
+       </td>
+     </tr>
+     <tr class="additinfo">
+       <td><label>Last modified</label></td>
+       <td class="formvalue" id="lastmodified">
+       </td>
+
+     <tr>
+        <td><input type="submit" name="action" value="Save"/></td>
+     </tr>
+
+     </table>
+   </div>
+   <div id="useractions">
+     <input type="submit" name="action" value="Remove" onclick="return( confirm('Are you sure you wish to remove this user?') && Wiki.submitOnce(this) );"/>      <input type="button" value="Add" onclick="javascript:addNew()"/>
+   </form>
+   </div>
+</div>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/admin/admin.css
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/admin/admin.css?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/admin/admin.css (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/admin/admin.css Tue Feb 12 22:13:28 2008
@@ -0,0 +1,3 @@
+#userlist { float:left; width: 30%; }
+#useredit { float:right; width: 65%; }
+#useractions { clear: both; }
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/commonheader.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/commonheader.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/commonheader.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/commonheader.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,91 @@
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ page import="com.ecyrd.jspwiki.ui.*" %>
+<%@ page import="com.ecyrd.jspwiki.util.*" %>
+<%@ page import="com.ecyrd.jspwiki.preferences.*" %>
+<%@ page import="java.util.*" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<fmt:setBundle basename="templates.default"/>
+<%--
+   This file provides a common header which includes the important JSPWiki scripts and other files.
+   You need to include this in your template, within <head> and </head>.  It is recommended that
+   you don't change this file in your own template, as it is likely to change quite a lot between
+   revisions.
+
+   Any new functionality, scripts, etc, should be included using the TemplateManager resource
+   include scheme (look below at the <wiki:IncludeResources> tags to see what kind of things
+   can be included).
+--%>
+<%-- CSS stylesheet --%>
+<link rel="stylesheet" media="screen, projection, print" type="text/css"
+     href="<wiki:Link format='url' templatefile='jspwiki.css'/>"/>
+<%-- put this at the top, to avoid double load when not yet cached --%>
+<link rel="stylesheet" type="text/css" media="print" href="<wiki:Link format='url' templatefile='jspwiki_print.css'/>" />
+<wiki:IncludeResources type="stylesheet"/>
+<wiki:IncludeResources type="inlinecss" />
+
+<%-- JAVASCRIPT --%>
+<script type="text/javascript" src="<wiki:Link format='url' jsp='scripts/mootools.js'/>"></script>
+<script type="text/javascript" src="<wiki:Link format='url' jsp='scripts/prettify.js'/>"></script>
+<script type="text/javascript" src="<wiki:Link format='url' jsp='scripts/jspwiki-common.js'/>"></script>
+<wiki:IncludeResources type="script"/>
+
+<%-- COOKIE read client preferences --%>
+<%
+   Preferences.setupPreferences(pageContext);
+ %>
+
+<script type="text/javascript">
+//<![CDATA[
+
+/* Localized javascript strings: LocalizedStrings[] */
+<wiki:IncludeResources type="jslocalizedstrings"/>
+
+/* Initialise glboal Wiki js object with server and page dependent variables */
+/* FIXME : better is to add this to the window.onload handler */
+Wiki.init({
+	'BaseUrl': '<wiki:BaseURL />',
+	'PageUrl': '<wiki:Link format="url" absolute="true" page="#$%"/>', /* unusual pagename */
+	'TemplateDir': '<wiki:Link format="url" templatefile=""/>',
+	'PageName': '<wiki:Variable var="pagename" />',/* pagename without blanks */
+	'UserName': '<wiki:UserName />', 
+	'JsonUrl' : '<%=  WikiContext.findContext(pageContext).getURL( WikiContext.NONE, "JSON-RPC" ) %>'
+	});
+<wiki:IncludeResources type="jsfunction"/>
+
+//]]>
+</script>
+
+<meta http-equiv="Content-Type" content="text/html; charset=<wiki:ContentEncoding />" />
+<link rel="search" href="<wiki:LinkTo format='url' page='FindPage'/>"
+    title='Search <wiki:Variable var="ApplicationName" />' />
+<link rel="help"   href="<wiki:LinkTo format='url' page='TextFormattingRules'/>"
+    title="Help" />
+<%
+  WikiContext c = WikiContext.findContext( pageContext );
+  String frontpage = c.getEngine().getFrontPage();
+ %>
+ <link rel="start"  href="<wiki:LinkTo format='url' page='<%=frontpage%>' />"
+    title="Front page" />
+<link rel="alternate stylesheet" type="text/css" href="<wiki:Link format='url' templatefile='jspwiki_print.css'/>"
+    title="Print friendly" />
+<link rel="alternate stylesheet" type="text/css" href="<wiki:Link format='url' templatefile='jspwiki.css'/>"
+    title="Standard" />
+<link rel="icon" type="image/png" href="<wiki:Link format='url' jsp='images/favicon.png'/>" />
+
+<wiki:FeedDiscovery />
+
+<%-- SKINS : extra stylesheets, extra javascript --%>
+<c:if test='${(!empty prefs["SkinName"]) && (prefs["SkinName"]!="PlainVanilla") }'>
+<link rel="stylesheet" type="text/css" media="screen, projection, print"
+     href="<wiki:Link format='url' templatefile='skins/' /><c:out value='${prefs["SkinName"]}/skin.css' />" />
+<%--
+<link rel="stylesheet" type="text/css" media="print"
+     href="<wiki:Link format='url' templatefile='skins/' /><c:out value='${prefs["SkinName"]}/print_skin.css' />" />
+--%>
+<script type="text/javascript"
+         src="<wiki:Link format='url' templatefile='skins/' /><c:out value='${prefs["SkinName"]}/skin.js' />" ></script>
+</c:if>
+
+<wiki:Include page="localheader.jsp"/>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/editors/FCK.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/editors/FCK.jsp?rev=627260&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/editors/FCK.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/editors/FCK.jsp Tue Feb 12 22:13:28 2008
@@ -0,0 +1,125 @@
+<%@ page language="java" pageEncoding="UTF-8"%>
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki"%>
+<%@ page import="java.util.Properties"%>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ page import="com.ecyrd.jspwiki.render.*" %>
+<%@ page import="com.ecyrd.jspwiki.parser.JSPWikiMarkupParser" %>
+<%@ page import="com.ecyrd.jspwiki.ui.*" %>
+<%@ page import="com.ecyrd.jspwiki.filters.*" %>
+<%@ page import="org.apache.commons.lang.*" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<fmt:setBundle basename="templates.default"/>
+
+<%--
+    This provides the FCK editor for JSPWiki.
+--%>
+<%  WikiContext context = WikiContext.findContext( pageContext );
+    context.setVariable( RenderingManager.WYSIWYG_EDITOR_MODE, Boolean.TRUE );
+    context.setVariable( WikiEngine.PROP_RUNFILTERS,  "false" );
+
+    WikiPage wikiPage = context.getPage();
+    String originalCCLOption = (String)wikiPage.getAttribute( JSPWikiMarkupParser.PROP_CAMELCASELINKS );
+    wikiPage.setAttribute( JSPWikiMarkupParser.PROP_CAMELCASELINKS, "false" );
+    
+    String usertext = EditorManager.getEditedText(pageContext);
+    TemplateManager.addResourceRequest( context, "script", "scripts/fckeditor/fckeditor.js" );
+ %>   
+<wiki:CheckRequestContext context="edit"><%
+    if( usertext == null )
+    {
+        usertext = context.getEngine().getPureText( context.getPage() );
+    }%>
+</wiki:CheckRequestContext>
+<% if( usertext == null ) usertext = "";
+
+   WikiEngine engine = context.getEngine();
+   RenderingManager renderingManager = new RenderingManager();
+   
+   // since the WikiProperties are shared, we'll want to make our own copy of it for modifying.
+   Properties copyOfWikiProperties = new Properties();
+   copyOfWikiProperties.putAll( engine.getWikiProperties() );
+   copyOfWikiProperties.setProperty( "jspwiki.renderingManager.renderer", WysiwygEditingRenderer.class.getName() );
+   renderingManager.initialize( engine, copyOfWikiProperties );
+	
+   String pageAsHtml = StringEscapeUtils.escapeJavaScript( renderingManager.getHTML( context, usertext ) );
+   
+   // Disable the WYSIWYG_EDITOR_MODE and reset the other properties immediately
+   // after the XHTML for FCK has been rendered.
+   context.setVariable( RenderingManager.WYSIWYG_EDITOR_MODE, Boolean.FALSE );
+   context.setVariable( WikiEngine.PROP_RUNFILTERS,  null );
+   wikiPage.setAttribute( JSPWikiMarkupParser.PROP_CAMELCASELINKS, originalCCLOption );
+   
+   String templateDir = (String)copyOfWikiProperties.get( WikiEngine.PROP_TEMPLATEDIR );
+   
+   String protocol = "http://";
+   if( request.isSecure() )
+   {
+       protocol = "https://";
+   }   
+%>
+
+<form accept-charset="<wiki:ContentEncoding/>" method="post" 
+      action="<wiki:CheckRequestContext context='edit'><wiki:EditLink format='url'/></wiki:CheckRequestContext><wiki:CheckRequestContext context='comment'><wiki:CommentLink format='url'/></wiki:CheckRequestContext>" 
+      name="editform" id="editform"
+      enctype="application/x-www-form-urlencoded">
+    <p>
+        <%-- Edit.jsp relies on these being found.  So be careful, if you make changes. --%>
+        <input name="page" type="hidden" value="<wiki:Variable var="pagename"/>" />
+        <input name="action" type="hidden" value="save" />
+        <input name="<%=SpamFilter.getHashFieldName(request)%>" type="hidden" value="<c:out value='${lastchange}' />" />
+    </p>
+<div style="width:100%"> <%-- Required for IE6 on Windows --%>
+<script type="text/javascript">
+//<![CDATA[
+
+   var oFCKeditor = new FCKeditor( 'htmlPageText' );
+   oFCKeditor.BasePath = 'scripts/fckeditor/';
+   oFCKeditor.Value = '<%=pageAsHtml%>';
+   oFCKeditor.Width  = '100%';
+   oFCKeditor.Height = '450';
+   oFCKeditor.Config['CustomConfigurationsPath'] = '<%=request.getContextPath()%>/scripts/fckconfig.js';
+   oFCKeditor.Config['StylesXmlPath'] = '<%=request.getContextPath()%>/scripts/fckstyles.xml';
+   oFCKeditor.Config['TemplatesXmlPath'] = '<%=request.getContextPath()%>/scripts/fcktemplates.xml';
+   oFCKeditor.Config['BaseHref'] = '<%=protocol%><%=request.getServerName()%>:<%=request.getServerPort()%><%=request.getContextPath()%>/';
+   oFCKeditor.Config['EditorAreaCSS'] = '<%=request.getContextPath()%>/templates/<%=templateDir%>/jspwiki.css';
+   oFCKeditor.Config['SmileyPath'] = oFCKeditor.Config['BaseHref'] + 'scripts/fckeditor/editor/images/smiley/msn/' ;
+   oFCKeditor.Create();
+
+//]]>
+</script>
+
+<noscript>
+  <div class="error"><fmt:message key="editor.fck.noscript" /></div>
+</noscript>
+
+   <wiki:CheckRequestContext context="edit">
+    <p>
+    <label for="changenote"><fmt:message key='editor.plain.changenote'/></label>
+    <input type="text" id="changenote" name="changenote" size="80" maxlength="80" value="<c:out value='${changenote}'/>"/>
+    </p>
+   </wiki:CheckRequestContext>
+   <wiki:CheckRequestContext context="comment">
+    <fieldset>
+	<legend><fmt:message key="editor.commentsignature"/></legend>
+    <p>
+    <label for="authorname" accesskey="n"><fmt:message key="editor.plain.name"/></label></td>
+    <input type="text" name="author" id="authorname" value="<c:out value='${sessionScope.author}' />" />
+    <input type="checkbox" name="remember" id="rememberme" <%=TextUtil.isPositive((String)session.getAttribute("remember")) ? "checked='checked'" : ""%>"/>
+    <label for="rememberme"><fmt:message key="editor.plain.remember"/></label>
+    </p>
+	<%--FIXME: seems not to read the email of the user, but some odd previously cached value --%>
+    <p>
+    <label for="link" accesskey="m"><fmt:message key="editor.plain.email"/></label>
+    <input type="text" name="link" id="link" size="24" value="<c:out value='${sessionScope.link}' />" />
+    </p>
+    </fieldset>
+  </wiki:CheckRequestContext>
+
+  <p>
+        <input name='ok' type='submit' value='<fmt:message key="editor.plain.save.submit"/>' />
+        <input name='preview' type='submit' value='<fmt:message key="editor.plain.preview.submit"/>' />
+        <input name='cancel' type='submit' value='<fmt:message key="editor.plain.cancel.submit"/>' />
+  </p>
+</div>
+</form>



Mime
View raw message