Monthly Archives: October 2010

Download File from FileSystem in JSF 2.0

Below method is to be called on <h:commandButton> or <h:commandLink> . Advertisements

Posted in JSF 2.0 | 6 Comments

Spring AOP

For Transaction Management we need to throw customized exception for specific database table for Ex :

Posted in Spring | Leave a comment

Steps for adding RichFaces 3.3.3 to JSF 2.0

Following is to be added to web.xml Following is to added to faces-config.xml

Posted in JSF 2.0, Richfaces | Leave a comment

Calling Stored Procedure Using Spring JdbcTemplate

MySQL stored Procedure TenderInsertStoredProcedure.java

Posted in Hibernate, Spring | Tagged , , | Leave a comment

Multilingual in JSF 2.0

For Multilingual we have to make property file for each Language. index.xhtml UtilManagedBean.java Following is to be added to faces-config.xml Below property file must be placed in class path. test.properties Display 1 : test_hi_IN.properties Display 2 :

Posted in JSF 2.0 | Tagged , | 2 Comments

Copy Properties from One Bean to Another

Spring provides copyProperties method which allows to copy values of properties from one bean to another, the thing is property name & type should be same in both beans .

Posted in Spring | Leave a comment