If you want to use SyntaxHighlighter in your blog, you can simply add the code below to the <head /> element in the template for your Blogger blog.
Showing posts with label template. Show all posts
Showing posts with label template. Show all posts
Saturday, January 18, 2014
HOWTO: Adding SyntaxHighlighter to Blogger
Labels:
blogging
,
Design
,
frameworks
,
Javascript
,
template
,
tutorial
,
Web
Saturday, January 16, 2010
NetBeans JSF Converter Template
Object conversion is a common requirement in JSF. Surprisingly there is no template for a JSF Converter in the NetBeans Template list. I have created a template to create JSF Converters in NetBeans.
To use the template is very simple:
- Download the template.
- Start NetBeans.
- Go to Tools --> Templates.
- Select the JavaServer Faces folder.
- Select Add from the menu.
- Locate the file you downloaded and select it, and you are done.
Here is the file: Converter.zip
<#assign licenseFirst = "/*"> <#assign licensePrefix = " * "> <#assign licenseLast = " */"> <#include "../Licenses/license-${project.license}.txt"> <#if package?? && package !=""> package ${package}; </#if> import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.convert.Converter; /** * * @author ${user} */ public class ${name} implements Converter{ public Object getAsObject(FacesContext facesContext, UIComponent component, String value) { throw new UnsupportedOperationException("Not supported yet."); } public String getAsString(FacesContext facesContext, UIComponent component, Object value) { throw new UnsupportedOperationException("Not supported yet."); } }
Subscribe to:
Posts
(
Atom
)
Popular Posts
-
Introduction This article is not another diatribe to tell you the importance of unit testing. I think we can all agree that it is important...
-
A friend of mine asked me if there was a list of reserved words in EL and JSF. He had previously looked for it, and after some Google search...
-
I saw a question posed on stackoverflow called Trouble with Primefaces 3.0.M2 SelectOneMenu Ajax behavior and I had just done an example a...
-
I was working on a couple of SSL based issues when I made a couple of observations. The default self-signed key generation in Java does not ...
-
This is an example on how to make a system call to the local operating system to execute external programs. This example was written to work...
-
We have been doing a lot of work lately with PrimeFaces. A common set of questions comes up about displaying <p:dialog/> boxes on a pa...
-
I was asked earlier today how to reset fields in a JSF application, if the validation fails. In his case, he had a Richfaces table which had...
-
Previously, I posted an example of how to use JSF 1.2 with form based authentication (j_security_check). In this example, I use JSF 2.x to...
-
Image by quasarkitten via Flickr The basics for creating a Maven archetype can be found in the Maven - Guide to Creating Archetypes . The ...
-
Abstract A common use case is to iterate over a collection of elements, and display them on a page. In the world of JSP, we would use a Ja...