Archive | April, 2008

f:attribute Tag in Java Server Faces (JSF)

April 12, 2008

0 Comments

Topic : Java Server Faces (JSF) Environment : J2EE 5.0, MyFaces 1.1.5 Introduction to f:attribute This section demonstrates how to use the f:attribute tag in Java Server Faces(JSF). This tag is part fo the core tag libraray. How to use? f:attribute tag will be more useful when we could not use f:param tag for passing [...]

email

Display error messages in JSF [ h:message ] – part 2

April 12, 2008

0 Comments

Topic : Java Server Faces (JSF) Environment : J2EE 5.0, MyFaces 1.1.5 fieldErrorMessage.jsp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18   <!– Source : www.javabeat.net –>   <html> <body> <f:view> <h:form id="error"> <h:inputText id="name" value="#{fieldErrorMessageBean.name}" > <f:validateLength maximum="5"/> </h:inputText> <h:message for="name"/> <h:commandButton value="Submit" action="#{fieldErrorMessageBean.submit}"/> [...]

Display error messages in JSF [ h:messages ] – part 1

April 12, 2008

1 Comment

Topic : Java Server Faces (JSF) Environment : J2EE 5.0, MyFaces 1.1.5 errorMessage.jsp 1 2 3 4 5 6 7 8 9 10 11 12 <!– Source : www.javabeat.net –> <html> <body> <f:view> <h:form id="select"> <h:messages /> <h:inputText id="name" value="#{errorMessageBean.name}"/> <h:commandButton value="Submit" action="#{errorMessageBean.submit}"/> </h:form> </f:view> </body> </html> ErrorMessageBean.java 1 2 3 4 5 6 7 [...]

Hibernate Vs EJB 3.0

April 10, 2008

0 Comments

Originally published in DeveloperIQ magazine What is CMP and BMP in EJB? So, why is it that Entity beans alone were found wanting and the specification keeps on changing? Entity beans are of two types. CMP & BMP. CMP stands for Container-Managed Persistence and BMP stands for Bean-managed persistence. Theoretically, the EJB specification does not [...]

AJAX – Conversation with an Ajaxian

April 10, 2008

0 Comments

AJAX – Conversation with an Ajaxain Session 1: What is Ajax? Scene: Friday evening at Malcolms cafe-a pub downtown frequented by Geeks: Me : (jostling my way through the crowd) Where can I find the Ajaxian? Bartender (pointing to a table on the far corner) Last table on the right. Me : (interrupting an animated [...]

Templates in Groovy

April 6, 2008

0 Comments

1) Introduction In this article, we will expose the various APIs for processing Templates in Groovy. A template can be thought of some static content along with some well-defined place-holders. These templates can be re-used any number of times by simply copying it and substituting the place-holders with some appropriate values. The first section of [...]

Closures in Groovy

April 5, 2008

0 Comments

1) Introduction In this article, let us look into one of the important features supported in Groovy, the Closures. Groovy is an object-oriented scripting language in which the syntax resembles Java. Not all languages support the concept of Closures directly, although they may provide indirect support, that too with so many limitations and restrictions. This [...]

What is OpenLaszlo?

April 4, 2008

0 Comments

Introduction In this lab-oriented beginner’s tutorial, the author explores OpenLaszlo technology and explains its basic features. Rich Internet Applications(RIA) RIA stands for Rich Internet Applications. RIA tries to create browser-based applications,which are as rich and as responsive as stand-alone desktop applications. AJAX, Flex2 and OpenLaszlo are the three important RIA technologies. Google Web Toolkit is [...]