Author: mfortun Date: 2011-07-04 14:13:13 +0200 (Mon, 04 Jul 2011) New Revision: 1038 Url: http://nuiton.org/repositories/revision/wikitty/1038 Log: * add an example of the tag lib use, need to be completed Added: trunk/wikitty-struts/src/main/webapps/ trunk/wikitty-struts/src/main/webapps/example.jsp Added: trunk/wikitty-struts/src/main/webapps/example.jsp =================================================================== --- trunk/wikitty-struts/src/main/webapps/example.jsp (rev 0) +++ trunk/wikitty-struts/src/main/webapps/example.jsp 2011-07-04 12:13:13 UTC (rev 1038) @@ -0,0 +1,42 @@ +<%@page import="org.apache.commons.lang.StringEscapeUtils"%> +<%@page import="org.nuiton.wikitty.entities.Wikitty"%> + +<%@ taglib prefix="s" uri="/struts-tags" %> +<%@taglib prefix="ws" uri="/wikitty-struts"%> + + +<% + +// temp action inherit of the AbstractWikittyEditAction +TempAction action = TempAction.getAction(); + +Wikitty wikitty = action.getWikitty(); + +%> + +<% if (wikitty != null) { %> +<pre><%=StringEscapeUtils.escapeHtml(String.valueOf(wikitty))%></pre> +<% } %> + +<ws:form wikitty="<%=wikitty%>" + proxy="<%=action.getProxy()%>" + action="/wikitty-publication/temp.action" allowDelete="true" + exclude="WikittyToken.date" + +> + + <ws:selectCriteria fqFieldName="WikittyToken.user" label="user" criteria="<%=action.getCrit() %>"/> + <ws:date fqFieldName="WikittyToken.date" label="dateuh"/> + <ws:selectFixed fqFieldName="WikittyUser.password" fixvalues="password,truc,passwordPourri" label="motdepasse"/> + + <!-- exclude="WikittyToken.date" + <s:url var="urlFragment" action="temp" /> + <sj:submit targets="wikittyInfo" href="%{#urlFragment}"> </sj:submit> --> +</ws:form> + + + + + + + Property changes on: trunk/wikitty-struts/src/main/webapps/example.jsp ___________________________________________________________________ Added: svn:mime-type + text/plain