taglib

Error using JSTL XML taglib - attribute xml does not accept any expressions

杀马特。学长 韩版系。学妹 提交于 2019-12-02 04:28:17
I'm getting the following error when I try to use the JSTL XML taglib: /server-side-transform.jsp(51,0) According to TLD or attribute directive in tag file, attribute xml does not accept any expressions I'm looking into the tlds etc, but if anyone knows what this is an can save me some time, it'd be appreciated! If it helps, I get this error running the example code <c:set var="xml"> <paragraph> This document uses <bold>unusual</bold> markup, which we want to replace with <bold>HTML</bold>. </paragraph> </c:set> <c:set var="xsl"> <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3

How to include a library in a Qt project

本小妞迷上赌 提交于 2019-12-02 03:22:28
问题 I'm trying to create a project that uses the TagLib library. I'm not really sure of how exactly to go about it. I have downloaded TagLib 1.11.1. I built it as follows: Build zlib, by first having CMake create a Visual Studio solution file, then building this solution with Visual Studio: mkdir build && cd build cmake .. -G"Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX="e:\workspace\lib\installed" msbuild /P:Configuration=Debug INSTALL.vcxproj msbuild /P:Configuration=Release INSTALL

How can I post parameters for JSTL import tag (<c:import>)?

旧巷老猫 提交于 2019-12-02 01:46:39
I'm currently using JSTL tag in a JSP page to import the content of an external page: <c:import url="http://some.url.com/"> <c:param name="Param1" value="<%= param1 %>" /> ... <c:param name="LongParam1" value="<%= longParam1 %>" /> </c:import> Unfortunately the parameters are now getting longer. Since they are encoded as GET parameters in the URL, I am now getting "414: Request-URL too Large" error. Is there a way to POST the parameters to the external URL? Maybe using a different tag / tag library? After looking thru http://www.docjar.com/html/api/org/apache/taglibs/standard/tag/common/core

JSTL c:out not showing the variable's value

久未见 提交于 2019-12-02 00:47:22
I'm following a tutorial about spring and I'm supposed to set a variable in a controller in order to be printed within the jsp rendering the request. The code is as follows: @Controller public class HelloController { @RequestMapping(value="/hello.htm") public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String now = (new Date()).toString(); return new ModelAndView("WEB-INF/views/hello.jsp", "now", now); } } Then, the hello.jsp code is as follows: <%@ page session="true"%> <%@ taglib prefix="c" uri="http://java.sun

Extract XML namespace declarations into separate tagfile/taglib

…衆ロ難τιáo~ 提交于 2019-12-01 23:04:22
I would like to seperate my XML namespace declarations at the top of the page into a seperate (tag)file in which I can include in any Facelets page I wish. Is this possible? Or do I need to copypaste all XML namespaces in each Facelets file? Here's a theoretical example, xmlns.xhtml : <something xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:c="http://java.sun.com/jsp/jstl/core" ... /> And the template file which could use it: mypage.xhtml : <f:view xmlns="xmlns.xhtml"> <h:head

JSF Best Practice: Custom Components and JavaScript

喜你入骨 提交于 2019-12-01 18:34:01
I am developing a JSF Custom Component, using the information I found on the following book Pro JSF and HTML5 by Apress . So far, I successfully developed: the java class to obtain the data to be rendered in the component the java component class the java renderer class the taglib file an example page to render the taglib Everything is working fine, the component is successfully rendered. Now I would like to add javascript events and behaviour to the rendered elements , more specifically, the purpose of my custom component is to render a menu on a web page, and I would like to ad a dropdown

unit-testing grails tag

不羁的心 提交于 2019-12-01 08:50:44
I've written a Grails tag that is just a very thin wrapper around the Grails select tag package com.example class MyTagLib { def listTrees = {attrs -> List<TreeDto> allTrees = getMandatoryAttributeValue(attrs, 'trees') out << g.select(from: allTrees) } } I've wrtitten a unit test for this class, but when I run it, I get the following error when the last line is executed: groovy.lang.MissingMethodException: No signature of method: com.example.MyTagLib.select() is applicable for argument types: (java.util.LinkedHashMap) It seems like the reference to the grails tags in the g namespace are not

unit-testing grails tag

一个人想着一个人 提交于 2019-12-01 07:01:27
问题 I've written a Grails tag that is just a very thin wrapper around the Grails select tag package com.example class MyTagLib { def listTrees = {attrs -> List<TreeDto> allTrees = getMandatoryAttributeValue(attrs, 'trees') out << g.select(from: allTrees) } } I've wrtitten a unit test for this class, but when I run it, I get the following error when the last line is executed: groovy.lang.MissingMethodException: No signature of method: com.example.MyTagLib.select() is applicable for argument types:

Spring Security 3.1.4 taglib authorize/authentication are not working with role hierarchy in JSF 2.2 on Tomcat 7

最后都变了- 提交于 2019-12-01 06:09:30
问题 The roleHeirarchies are taken into account for Web Security Expressions defined as intercept URLs via the http namespace but not in expressions using the JSP Authorize taglib. I read a lot of stuffs already... ref1 ref2 ref3 ref4 ref5 ref6 ****EDIT:**** Ref1 and Ref6 mention stuffs about a problem with filters order and security context not available in jsp...(by the way,i'm using jsf2) maybe there is something to dig ... EDIT 2: Is JSF handling security tag lib ? I read this and try that

Using varargs in a Tag Library Descriptor

一笑奈何 提交于 2019-12-01 03:21:40
Is it possible to have a TLD map to the following function: public static <T> T[] toArray(T... stuff) { return stuff; } So that I can do: <c:forEach items="${my:toArray('a', 'b', 'c')}"... I tried the following <function-signature> s java.lang.Object toArray( java.lang.Object... ) java.lang.Object[] toArray( java.lang.Object[] ) And others but nothing seems to work. Unfortunately that's not possible. The EL resolver immediately interprets the commas in the function as separate arguments without checking if there are any methods taking varargs. Your best bet is using JSTL fn:split() instead. <%