Navanethan Muthusamy

Greenhorn
+ Follow
since Apr 06, 2009
Navanethan likes ...
Eclipse IDE Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Navanethan Muthusamy

Also, If you want to execute Spring Program which is using ApplicationContext then you should be add below listed jar files into your classpath.

If BeanFactory used
1) %SPRING_HOME%\ dist\org.springframework.core-3.0.3.RELEASE.jar
2) %SPRING_HOME%\ dist\org.springframework.beans-3.0.3.RELEASE.jar
3) %HOME%\Softwares\Jars\jakarta-commons\commons-logging.jar
Additionally following jars are required in case of spring context
4) %SPRING_HOME%\ dist\org.springframework.context-3.0.3.RELEASE.jar
5) %SPRING_HOME%\ dist\org.springframework.asm-3.0.3.RELEASE.jar
6) %SPRING_HOME%\ dist\org.springframework.expression-3.0.3.RELEASE.jar
3 years ago
Hi,

I am exploring on Spring Transactions with Hibernate Framework, I want to know why HibernateTransactionManager needs LocalSessionFactoryBean object ?

Since we already all DAOImpl classes are injected and loaded with LocalSessionFactoryBean object. Please Clarify.

Thanks.
3 years ago

Henry Wong wrote:
if you attempt to subclass the inner class from another inner class. It does work, but Java has a different way to allow constructors to access the outer class and the super class (which in this case, is not the same) ... and you may not have learned it yet.



Please guide...How do I achieve ?
4 years ago
Hi, I am exploring on protected access. Can we have protected method in protected inner class ? And how do we access it ?
4 years ago
4 years ago
Hi,

From your code what I understood is there is no like between JSP and bean in selectOneRadio tag.

Please try the following sample code:

JSP code:
----------

<h:selectOneRadio value="#{helloWorldBacking.test}">
<f:selectItem itemLabel="Test1" itemValue="Test1" />
<f:selectItem itemLabel="Test2" itemValue="Test2" />
</h:selectOneRadio>

Bean code:
--------------

String test;

and setter getter methods for string test.

examples-config.xml
------------------------
<managed-bean>
<managed-bean-name>helloWorldBacking</managed-bean-name>
<managed-bean-class>org.apache.myfaces.blank.HelloWorldBacking</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>



The above code work well. when I have selected first radio button i got 'Test1' in bean.


Thanks.
8 years ago
JSF
Hi,

Can you tell how do I write a hibernate query like

String name = "John";

List list = session.createSQLQuery("Select '+ name +' as Name from Emp")
.addScalar("name")
.setResultTransformer(Transformers.aliasToBean(EmpBean.class)).list();



FYI: In EmpBean class I have String getter and setter method for name.

Problem:
----------
In this query expecting char setter and getter in EmpBean class, because of single quote.

and when i try to add addScalar("name", Hibernate.STRING) its showing that deprecated.


Can you please let me know how do i manage this case.

Thanks,
Navanethan
I found the solution:

<display:table sort="list" .....>
.....
.....
.....
</display:table>

"sort" => Use 'page' if you want to sort only visible records, or 'list' if you want to sort the full list, or 'external' if the data is sorted outside displaytag.

More info: http://displaytag.sourceforge.net/11/displaytag/tagreference.html

Thanks,
Navanethan
Expecting solution.

~Navanethan
Hi All,
I am using display tag, Here I am using sorting as well as paging.
My problem is, When I am trying to sort the first only one page alone getting sorted. I am not getting records from other pages.

Kindly Let me know what can I do for getting all page sort.

Thanks,
Navanethan