custom-tag

Embedded custom-tag in dynamic content (nested tag) not rendering.

Embedded custom-tag in dynamic content (nested tag) not rendering. I have a page that pulls dynamic content from a javabean and passes the list of objects to a custom tag for processing into html. Within each object is a bunch of html to be output that contains a second custom tag that I would like to also be rendered. The problem is th...

How do you decide what to use: UDF or Custom Tag?

WACK says: If you feel you need to have lots arguments, consider creating a CT instead. ... CT are significantly more powerful and flexible than custom functions. Try to use UDF's for simple matters... Use CT and Components for more involved processes, especially those you can think of as discrete actions rather ...

implementing a "window manager" for HTML in a JSP custom tag

I have a problem: I need to build a custom tag, which can take its child tags (each of which will render as an HTML widget of some sort) and render them into the page in some intelligent manner. It's a fairly open ended question, so I have thought of many different ways to solve it. What I need is some input on how: others have done ...

JSP Custom Tags: Is it possible to have a more than start / close tags?

After using the Django template language, I really miss being able to do things like this: {% if condition %} <!-- snip --> {% else %} <!-- snip --> {% endif %} When I am using JSP, I am stuck doing something like this: <logic:equal name="something" value="example"> <!-- snip --> </logic:equal> <logic:notEqual name="somet...

Problem in Custom tag in JSP

Hi i have a custom tag in JSP <dc:drawMultiSelect availableLabel='<%=request.getAttribute("availableCoreColumn").toString()%>' selectedLabel='<%=request.getAttribute("selectedCoreColumns").toString()%>' availableCName="selectCol" selectedCName="selectedCol" availableCId="select1" selectedCId="select2" sort...

Why won't my Facelets loop variable go out of scope?

Hi! I know this looks like a lot of text, but I think it's a pretty simple concept I'm missing. I'm writing a web application with Facelets. I've got a custom tag rq:request-list that takes a list of requests as a parameter and outputs a lovely table to display them. So far, so good. rq:request-list starts out like you'd expect: <!--...

Access request in django custom template tags

My code in myapp_extras.py: from django import template register = template.Library() @register.inclusion_tag('new/userinfo.html') def address(): address = request.session['address'] return {'address':address} in 'settings.py': TEMPLATE_CONTEXT_PROCESSORS =( "django.core.context_processors.auth", "django.core.contex...

how to activate DJANGO.CORE.CONTEXT_PROCESSORS.REQUEST

I read this "DJANGO.CORE.CONTEXT_PROCESSORS.REQUEST If TEMPLATE_CONTEXT_PROCESSORS contains this processor, every RequestContext will contain a variable request, which is the current HttpRequest. Note that this processor is not enabled by default; you'll have to activate it. " from this page http://docs.djangoproject.com/en/dev/ref/tem...

how jaxb generates the custom tags (java to wsdl/xml) ??

I want to generate a xml (say a bpel xml). how can I do that using jaxb. thx ...

Custom Django tag & jQuery

I'm new to Django. Today I created some Django custom tags which is not that hard. But now I wonder what is the best way to include some jQuery or some Javascript code packed into my custom tag definition. What is the regular way to include a custom library into my code? For example: {% faceboxify item %} So assume that it'll create a...

[X]HTML custom tags: pros & cons

I'd like to use some semantic [X]HTML tags instead of <div>s: <article>, <product>, <footer> etc. Some of them are already presented in the upcoming HTML5, however, it's not fully supported. Which are the possible cons I might face when Rendering? Using CSS, JS? The one I remember is: IE6 can't clone tags it doesn't know. ...

Custom JSP Tag processor is caching a dated property, so the page shows old data and don't update, how to avoid this?

I made a custom jsp tag that search a historical value on a database an render it on the page. The attributes that the tag requires are the variable name and the date. The problem is that the 'date' property changes according clock move on ('date' points always to the last hour), but the JSP Tag processor's (jasper2) pooling system don'...

Can I define a jsp custom tag to extend a standard html tag?

For example: <c:a href="/myurl" style="margin: 5px;" addJsessionId="true" logEvent="true"> click here</c:a> such that: 1) all standard attributes of (style) are propagated as is. 2) my tag handler implementation handles the custom attributes (addJsessionId and logEvent in this case). ...

facelet composition control (custom tag) with binding

I'm having problems with creating a Facelet Composition Control (= custom tag). That's the component's template (numberinput.jspx). I declared the in my custom-taglib.xml. So far the inclusion works using this code: <ft:numberInput nullablenumber="true" cid="myId" bind="#{myBean.mySpecialComponent}" ...

Why does this PrettyTime custom tag produce 11 lines of blank text before the "pretty" date in the HTML output?

<%@ tag language="java" pageEncoding="utf-8" isELIgnored="false" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <%@ tag import="com.ocpsoft.pretty.time.PrettyTime, java.util.Date"%>...