Jahia DX > tags in jahia

0 (0 Good)
0 (0 Bad)

tags in jahia

by  oumina »  2013/07/13 10:48

how to developp or extends jahia  tags 

  • tags in jahia
    2013/07/13 10:48

    oumina <p style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> how to developp or extends jahia &nbsp;tags&nbsp;</p>

  • Number of messages  6
    Registration date Jul 13, 2013
    0 (0 Good)
    0 (0 Bad)

    issue dependencies maven for jahia tags

    by  oumina »  2013/07/13 10:58

    Hello ,

     

    when we developp  a tag  jahia for workflows

    class   java  of  a tag :  

    public class TasksForUser extends AbstractJahiaTag {  }
    a tld file :
    <?xml version="1.0" encoding="UTF-8" ?>
    <taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
                                http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
    version="2.0">
    <description>Provides tags for workflows in saril</description>
    <display-name>Saril Workflow Tag Library</display-name>
    <tlib-version>1.0</tlib-version>
    <short-name>taches</short-name>
    <uri>http://www.saril.lorraine.eu/tags/taches</uri>
    <tag>
    <tag>
    <description>Exposes the possible tasks for the specified user</description>
    <name>tasksdeuser</name>
    <tag-class>com.taches.taglib.TasksForUserTag</tag-class>
    <body-content>empty</body-content>
    <attribute>
    <name>user</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <type>org.jahia.services.usermanager.JahiaUser</type>
    </attribute>
    <attribute>
    <name>var</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>locale</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    </tag>
    </taglib >
     
     

    to  avoid  this  issue  in jahia developpement tags :

    Caused by: java.lang.VerifyError: (class: org/apache/jsp/errors/error_005f401_jsp, method: _jspx_meth_ui_005floginArea_005f0 signature: (Ljavax/servlet/jsp/PageContext;)Z) Incompatible argument to function
            at java.lang.Class.getDeclaredConstructors0(Native Method)
            at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
            at java.lang.Class.getConstructor0(Class.java:2699)
            at java.lang.Class.newInstance0(Class.java:326)
            at java.lang.Class.newInstance(Class.java:308)
            at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:150)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
     you should  add  in pom.xml this :
    <dependency>
    <groupId>javax.servlet.jsp</groupId>
    <artifactId>jsp-api</artifactId>
    <version>2.1</version>
    </dependency>
     
    good luck .
  • issue dependencies maven for jahia tags
    2013/07/13 10:58

    oumina <p style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> Hello ,</p> <p style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> &nbsp;</p> <p style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> when we developp &nbsp;a tag &nbsp;jahia for workflows</p> <p style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> class &nbsp; java &nbsp;of &nbsp;a tag : &nbsp;</p> <blockquote> <div> public class TasksForUser extends AbstractJahiaTag { &nbsp;}</div> </blockquote> <div> a tld file :</div> <blockquote> <div> <div> &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;</div> <div> &lt;taglib xmlns=&quot;http://java.sun.com/xml/ns/j2ee&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</div> <div> xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/j2ee</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd&quot;</div> <div> version=&quot;2.0&quot;&gt;</div> <div> &lt;description&gt;Provides tags for workflows in saril&lt;/description&gt;</div> <div> &lt;display-name&gt;Saril Workflow Tag Library&lt;/display-name&gt;</div> <div> &lt;tlib-version&gt;1.0&lt;/tlib-version&gt;</div> <div> &lt;short-name&gt;taches&lt;/short-name&gt;</div> <div> &lt;uri&gt;http://www.saril.lorraine.eu/tags/taches&lt;/uri&gt;</div> <div> &lt;tag&gt;</div> <div> <div> &lt;tag&gt;</div> <div> &lt;description&gt;Exposes the possible tasks for the specified user&lt;/description&gt;</div> <div> &lt;name&gt;tasksdeuser&lt;/name&gt;</div> <div> &lt;tag-class&gt;com.taches.taglib.TasksForUserTag&lt;/tag-class&gt;</div> <div> &lt;body-content&gt;empty&lt;/body-content&gt;</div> <div> &lt;attribute&gt;</div> <div> &lt;name&gt;user&lt;/name&gt;</div> <div> &lt;required&gt;false&lt;/required&gt;</div> <div> &lt;rtexprvalue&gt;true&lt;/rtexprvalue&gt;</div> <div> &lt;type&gt;org.jahia.services.usermanager.JahiaUser&lt;/type&gt;</div> <div> &lt;/attribute&gt;</div> <div> &lt;attribute&gt;</div> <div> &lt;name&gt;var&lt;/name&gt;</div> <div> &lt;required&gt;true&lt;/required&gt;</div> <div> &lt;rtexprvalue&gt;true&lt;/rtexprvalue&gt;</div> <div> &lt;/attribute&gt;</div> <div> &lt;attribute&gt;</div> <div> &lt;name&gt;scope&lt;/name&gt;</div> <div> &lt;required&gt;false&lt;/required&gt;</div> <div> &lt;rtexprvalue&gt;true&lt;/rtexprvalue&gt;</div> <div> &lt;/attribute&gt;</div> <div> &lt;attribute&gt;</div> <div> &lt;name&gt;locale&lt;/name&gt;</div> <div> &lt;required&gt;false&lt;/required&gt;</div> <div> &lt;rtexprvalue&gt;true&lt;/rtexprvalue&gt;</div> <div> &lt;/attribute&gt;</div> <div> &lt;/tag&gt;</div> </div> </div> <div> &lt;/taglib &gt;</div> </blockquote> <div> &nbsp;</div> <div> &nbsp;</div> <p style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> to &nbsp;avoid &nbsp;this &nbsp;issue &nbsp;in jahia developpement tags :</p> <blockquote> <div style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> Caused by: java.lang.VerifyError: (class: org/apache/jsp/errors/error_005f401_jsp, method:&nbsp;<u><strong>_<span style="color: rgb(255, 0, 0);">jspx_meth_ui_005floginArea_005f0 signature: (Ljavax/servlet/jsp/PageContext;)Z)&nbsp;</span></strong></u>Incompatible argument to function</div> <div style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> &nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.getDeclaredConstructors0(Native Method)</div> <div style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> &nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)</div> <div style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> &nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.getConstructor0(Class.java:2699)</div> <div style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> &nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.newInstance0(Class.java:326)</div> <div style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> &nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.newInstance(Class.java:308)</div> <div style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:150)</div> <div style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)</div> <div style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)</div> </blockquote> <div style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> &nbsp;you should &nbsp;add &nbsp;in pom.xml this :</div> <div style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> <blockquote> <div> &lt;dependency&gt;</div> <div> &lt;groupId&gt;javax.servlet.jsp&lt;/groupId&gt;</div> <div> &lt;artifactId&gt;jsp-api&lt;/artifactId&gt;</div> <div> &lt;version&gt;2.1&lt;/version&gt;</div> <div> &lt;/dependency&gt;</div> </blockquote> </div> <div style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> &nbsp;</div> <div style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> good luck .</div>

  • Number of messages  6
    Registration date Jul 13, 2013
    0 (0 Good)
    0 (0 Bad)

    tag jahia to display a tasks of an user

    by  oumina »  2013/07/13 11:02

    Hello,

    for  developping  your own taglib to display workflows of an user .

    this  is a class of a tag

     

    package com.taches.taglib;
     
    import org.slf4j.Logger;
    import org.apache.taglibs.standard.tag.common.core.Util;
    import org.jahia.services.usermanager.JahiaUser;
    import org.jahia.services.workflow.*;
    import org.jahia.taglibs.AbstractJahiaTag;
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.PageContext;
    import java.util.List;
    import java.util.Locale;
     
    public class WorkflowsParUserTag extends AbstractJahiaTag {
        private final static Logger logger = org.slf4j.LoggerFactory.getLogger(WorkflowsParUserTag.class);
        private JahiaUser user ;
        private String var;
        private int scope = PageContext.PAGE_SCOPE;
        private Locale locale;
     
        public int doEndTag() throws JspException {
            List<Workflow> wfs = WorkflowService.getInstance().getWorkflowsForUser(user,  locale != null ? locale : getUILocale());
            pageContext.setAttribute(var, wfs, scope);
            user = null;
            var = null;
            scope = PageContext.PAGE_SCOPE;
            return super.doEndTag();
        }
     
       public void setUser(JahiaUser user) {
           this.user = user;
       }
     
        public void setVar(String var) {
            this.var = var;
        }
     
        public void setScope(String scope) {
            this.scope = Util.getScope(scope);
        }
     
        public void setLocale(Locale locale) {
            this.locale = locale;
        }
    }

    a   tags.tld 

    <?xml version="1.0" encoding="UTF-8" ?>
    <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
                                http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
            version="2.0">
        <description>Provides tags for workflows in saril</description>
        <display-name>exemple Workflow Tag Library</display-name>
        <tlib-version>1.0</tlib-version>
        <short-name>taches</short-name>
        <uri>http://com.ensa.ma/tags/tags</uri>
        <tag>
            <description>Exposes the active workflows for the specified user.</description>
            <name>workflowParUser</name>
            <tag-class>com.taches.taglib.WorkflowsParUserTag</tag-class>
            <body-content>empty</body-content>
            <attribute>
                <name>user</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
            </attribute>
            <attribute>
                <name>var</name>
                <required>true</required>
                <rtexprvalue>true</rtexprvalue>
            </attribute>
            <attribute>
                <name>scope</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
            </attribute>
            <attribute>
                <name>locale</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
            </attribute>
        </tag>
    </taglib>

    in my page  jsp i have this :

    <taches:workflowParUser user="${renderContext.user}" var="userWorkflows"  locale="${currentResource.locale}" />
    <c:forEach items="${userWorkflows}" var="currentuserWorkflow">
        ${currentuserWorkflow}
    </c:forEach>
    good luck
     

     

  • tag jahia to display a tasks of an user
    2013/07/26 20:55

    oumina <p> Hello,</p> <div> <ul class="forum-profile-icons" style="padding-right: 0px; padding-left: 0px; margin: 0px; float: right; width: auto; list-style-type: none; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> <li class="forum-quote-icon" style="padding-left: 0px; margin: 0px 2px 0px 0px; float: left; list-style: none;"> <a href="http://www.jahia.com/fr/home/download/forum/jahia-user/jahia-65/manage-roles-and-workflow.forum-topic-newPost.html?reply=92f42de9-7945-4fd7-87a6-d612249dddf0" style="color: rgb(255, 255, 255); text-decoration: none; display: inline-block; font-size: 0.8em; padding: 2px 4px 4px; line-height: 1; border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px; -webkit-box-shadow: rgb(153, 153, 153) 0px 1px 1px; position: relative; cursor: pointer; background-color: rgb(51, 51, 51); transition: all 0.3s ease-in-out; -webkit-transition: all 0.3s ease-in-out;" title="Répondre">R&eacute;pondre</a></li> <li class="forum-quote-icon" style="padding-left: 0px; margin: 0px 2px 0px 0px; float: left; list-style: none;"> <a href="http://www.jahia.com/fr/home/download/forum/jahia-user/jahia-65/manage-roles-and-workflow.forum-topic-newPost.html?reply=92f42de9-7945-4fd7-87a6-d612249dddf0&amp;quote=true" style="color: rgb(255, 255, 255); text-decoration: none; display: inline-block; font-size: 0.8em; padding: 2px 4px 4px; line-height: 1; border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px; -webkit-box-shadow: rgb(153, 153, 153) 0px 1px 1px; position: relative; cursor: pointer; background-color: rgb(51, 51, 51); transition: all 0.3s ease-in-out; -webkit-transition: all 0.3s ease-in-out;" title="Répondre en citant">R&eacute;pondre en citant</a></li> <li class="delete-post-icon" style="padding-left: 0px; margin: 0px 2px 0px 0px; float: left; list-style: none;"> <a href="http://www.jahia.com/fr/home/download/forum/jahia-user/jahia-65/manage-roles-and-workflow.default.html?begin18255383-caa2-4ca1-9ac4-7d99797b70a7=10&amp;end18255383-caa2-4ca1-9ac4-7d99797b70a7=19&amp;pagesize18255383-caa2-4ca1-9ac4-7d99797b70a7=10&amp;#delete" style="color: rgb(255, 255, 255); text-decoration: none; display: inline-block; font-size: 0.8em; padding: 2px 4px 4px; line-height: 1; border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px; -webkit-box-shadow: rgb(153, 153, 153) 0px 1px 1px; position: relative; cursor: pointer; background-color: rgb(51, 51, 51); transition: all 0.3s ease-in-out; -webkit-transition: all 0.3s ease-in-out;" title="Supprimer ce message">Supprimer ce message</a></li> <li class="edit-post-icon" style="padding-left: 0px; margin: 0px 2px 0px 0px; float: left; list-style: none;"> <a href="http://www.jahia.com/fr/home/download/forum/jahia-user/jahia-65/manage-roles-and-workflow.default.html?begin18255383-caa2-4ca1-9ac4-7d99797b70a7=10&amp;end18255383-caa2-4ca1-9ac4-7d99797b70a7=19&amp;pagesize18255383-caa2-4ca1-9ac4-7d99797b70a7=10&amp;#edit" style="color: rgb(255, 255, 255); text-decoration: none; display: inline-block; font-size: 0.8em; padding: 2px 4px 4px; line-height: 1; border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px; -webkit-box-shadow: rgb(153, 153, 153) 0px 1px 1px; position: relative; cursor: pointer; background-color: rgb(51, 51, 51); transition: all 0.3s ease-in-out; -webkit-transition: all 0.3s ease-in-out;" title="Modifier le message">Modifier le message</a></li> </ul> <div class="voteblock" style="float: right; clear: both; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> <a class="positiveVote" href="http://www.jahia.com/fr/home/download/forum/jahia-user/jahia-65/manage-roles-and-workflow.default.html?begin18255383-caa2-4ca1-9ac4-7d99797b70a7=10&amp;end18255383-caa2-4ca1-9ac4-7d99797b70a7=19&amp;pagesize18255383-caa2-4ca1-9ac4-7d99797b70a7=10&amp;#" style="color: rgb(153, 204, 0); text-decoration: none; padding: 5px 20px 5px 10px; display: block; float: left; margin: 2px; background-image: url(http://www.jahia.com/modules/rating/css/img/positive.png); font-weight: bold; background-position: 100% 50%; background-repeat: no-repeat no-repeat;" title="Vote +1">0<span style="color: rgb(51, 51, 51);">hello every body :</span></a></div> <div class="content editablePost" id="edit92f42de9-7945-4fd7-87a6-d612249dddf0" jcr:id="content" jcr:url="/fr/home/download/forum/jahia-user/jahia-65/manage-roles-and-workflow/rhtmltasksforusertasksjsp340-imp" style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;" title="Editer"> <p style="margin: 0px 0px 10px;"> for &nbsp;developping &nbsp;your own taglib to display workflows of an user .</p> <p style="margin: 0px 0px 10px;"> this &nbsp;is a class of a tag</p> <p style="margin: 0px 0px 10px;"> &nbsp;</p> <blockquote style="margin: 15px 0px; font-style: italic; padding: 20px; background-image: url(http://www.jahia.com/modules/templates-responsive-jahiacom/css/img/blockquote.png); background-color: rgb(238, 238, 238); background-position: 0% 0%; background-repeat: no-repeat no-repeat;"> <div> package com.taches.taglib;</div> <div> &nbsp;</div> <div> import org.slf4j.Logger;</div> <div> import org.apache.taglibs.standard.tag.common.core.Util;</div> <div> import org.jahia.services.usermanager.JahiaUser;</div> <div> import org.jahia.services.workflow.*;</div> <div> import org.jahia.taglibs.AbstractJahiaTag;</div> <div> import javax.servlet.jsp.JspException;</div> <div> import javax.servlet.jsp.PageContext;</div> <div> import java.util.List;</div> <div> import java.util.Locale;</div> <div> &nbsp;</div> <div> public class WorkflowsParUserTag extends AbstractJahiaTag {</div> <div> &nbsp; &nbsp; private final static Logger logger = org.slf4j.LoggerFactory.getLogger(WorkflowsParUserTag.class);</div> <div> &nbsp; &nbsp; private JahiaUser user ;</div> <div> &nbsp; &nbsp; private String var;</div> <div> &nbsp; &nbsp; private int scope = PageContext.PAGE_SCOPE;</div> <div> &nbsp; &nbsp; private Locale locale;</div> <div> &nbsp;</div> <div> &nbsp; &nbsp; public int doEndTag() throws JspException {</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; List&lt;Workflow&gt; wfs = WorkflowService.getInstance().<strong>getWorkflowsForUser(user,</strong>&nbsp;&nbsp;locale != null ? locale : getUILocale());</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; pageContext.setAttribute(var, wfs, scope);</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; user = null;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; var = null;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; scope = PageContext.PAGE_SCOPE;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; return super.doEndTag();</div> <div> &nbsp; &nbsp; }</div> <div> &nbsp;</div> <div> <strong>&nbsp; &nbsp;public void setUser(JahiaUser user) {</strong></div> <div> <strong>&nbsp; &nbsp; &nbsp; &nbsp;this.user = user;</strong></div> <div> <strong>&nbsp; &nbsp;}</strong></div> <div> &nbsp;</div> <div> &nbsp; &nbsp; public void setVar(String var) {</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; this.var = var;</div> <div> &nbsp; &nbsp; }</div> <div> &nbsp;</div> <div> &nbsp; &nbsp; public void setScope(String scope) {</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; this.scope = Util.getScope(scope);</div> <div> &nbsp; &nbsp; }</div> <div> &nbsp;</div> <div> &nbsp; &nbsp; public void setLocale(Locale locale) {</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; this.locale = locale;</div> <div> &nbsp; &nbsp; }</div> <div> }</div> </blockquote> <p style="margin: 0px 0px 10px;"> a &nbsp; tags.tld&nbsp;</p> <blockquote style="margin: 15px 0px; font-style: italic; padding: 20px; background-image: url(http://www.jahia.com/modules/templates-responsive-jahiacom/css/img/blockquote.png); background-color: rgb(238, 238, 238); background-position: 0% 0%; background-repeat: no-repeat no-repeat;"> <div> &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;</div> <div> &lt;taglib xmlns=&quot;http://java.sun.com/xml/ns/j2ee&quot;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/j2ee</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd&quot;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; version=&quot;2.0&quot;&gt;</div> <div> &nbsp; &nbsp; &lt;description&gt;Provides tags for workflows in saril&lt;/description&gt;</div> <div> &nbsp; &nbsp; &lt;display-name&gt;exemple Workflow Tag Library&lt;/display-name&gt;</div> <div> &nbsp; &nbsp; &lt;tlib-version&gt;1.0&lt;/tlib-version&gt;</div> <div> &nbsp; &nbsp; &lt;short-name&gt;taches&lt;/short-name&gt;</div> <div> &nbsp; &nbsp; &lt;uri&gt;http://com.ensa.ma/tags/tags&lt;/uri&gt;</div> <div> &nbsp; &nbsp; &lt;tag&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &lt;description&gt;Exposes the active workflows for the specified user.&lt;/description&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;workflowParUser&lt;/name&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &lt;tag-class&gt;com.taches.taglib.WorkflowsParUserTag&lt;/tag-class&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &lt;body-content&gt;empty&lt;/body-content&gt;</div> <div> <strong>&nbsp; &nbsp; &nbsp; &nbsp; &lt;attribute&gt;</strong></div> <div> <strong>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;user&lt;/name&gt;</strong></div> <div> <strong>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;required&gt;false&lt;/required&gt;</strong></div> <div> <strong>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;rtexprvalue&gt;true&lt;/rtexprvalue&gt;</strong></div> <div> <strong>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/attribute&gt;</strong></div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &lt;attribute&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;var&lt;/name&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;required&gt;true&lt;/required&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;rtexprvalue&gt;true&lt;/rtexprvalue&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/attribute&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &lt;attribute&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;scope&lt;/name&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;required&gt;false&lt;/required&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;rtexprvalue&gt;true&lt;/rtexprvalue&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/attribute&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &lt;attribute&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;locale&lt;/name&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;required&gt;false&lt;/required&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;rtexprvalue&gt;true&lt;/rtexprvalue&gt;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/attribute&gt;</div> <div> &nbsp; &nbsp; &lt;/tag&gt;</div> <div> &lt;/taglib&gt;</div> </blockquote> <p style="margin: 0px 0px 10px;"> in my page &nbsp;jsp i have this :</p> <blockquote style="margin: 15px 0px; font-style: italic; padding: 20px; background-image: url(http://www.jahia.com/modules/templates-responsive-jahiacom/css/img/blockquote.png); background-color: rgb(238, 238, 238); background-position: 0% 0%; background-repeat: no-repeat no-repeat;"> <div> &lt;taches:workflowParUser user=&quot;${renderContext.user}&quot; var=&quot;userWorkflows&quot; &nbsp;locale=&quot;${currentResource.locale}&quot; /&gt;</div> <div> &lt;c:forEach items=&quot;${userWorkflows}&quot; var=&quot;currentuserWorkflow&quot;&gt;</div> <div> &nbsp; &nbsp; ${currentuserWorkflow}</div> <div> &lt;/c:forEach&gt;</div> </blockquote> <div> good luck</div> <div> &nbsp;</div> </div> </div> <p> &nbsp;</p>

  • Number of messages  6
    Registration date Jul 13, 2013
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page