Rudra Narayan Garnaik

Ranch Hand
+ Follow
since May 05, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Rudra Narayan Garnaik

Hello Mr. Tim Holloway,

No value for your post responded as you have written in this post. Be honest If you not worked with latest JSF 2.0 With Spring 3 and Richfaces 4. You are really disappointing me by your post response and wasted my time to read. Sorry If am hurting you. I was expecting help not this kind of comments having no value at end. This is a real-time issue I have posted and people posting this issue in many places.

- JSF is meant for customization... not what they have give and we will use.
- There are issues in the integration process of JSF 2 and Spring 3 injections what am experience.
- We have to write the custom scope and avoid that as I have written above.

Solution:

Use the following annotations:

@Component //spring....
@Scope("view")


just removed the @Named annotations of JSF. works fine..

Sorry for late response......




12 years ago
JSF
Thank Tim for your quick response.

I am not working on a complex form. Just a simple form am submitting. While response coming back am just clearing the model(By creating a new Instance of my Model). that is not working at all. What I am suspecting :
1- this might the scope issue as JSF 2 has many new scopes introduced.
2- Seems it stores in session- but am not using any session scope at all.
2- I was getting the injection error of my model(am using the entity itself as model).
3- I have created a custom view scope and used so injection started working. as JSF view Scoped not works properly.
4- I tried writing separate model bean still same issue.(using the same custom view scope)

My Custom view scope class is as follows:




My mbean scopes:



here "view" is my custom view scope.


Method am calling from view:




Many thanks in advance .
12 years ago
JSF
Hi All,

Recently I started a project using JSF 2.0 with Richfaces 4 with JPA 2.0.

My problem is very simple:

Just created a form which binds with entity through mbean and calling my service layer to update in DB. Once I submit my form data, am rendering back to the same page, the form is not clearing at all. Even I have create a new instance of my bean and refreshed the form.

JSF 1.2 it works fine. some time's we use to clear the form by clearing the component tree for that, no hope with JSF 2.0, any early help on this is appreciated.

Below code works for JSF 1.2 but not works for JSF 2.0.



12 years ago
JSF
Hi All,
I have MySQL installed in centOS (remote linux), To access mysql i need to loging using my user credential and then use the mysql database credential.

In java end I getting the following error as follows:

Console Error:

21 Sep 2011 16:06:59,527 4299 [main] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 0, SQLState: 08S01
21 Sep 2011 16:06:59,527 4299 [main] ERROR org.hibernate.util.JDBCExceptionReporter - Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
21 Sep 2011 16:06:59,528 4300 [main] WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:346)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2334)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)


It seems some how I am not able to manage the first level authentication (my host user id/pwd) through code, only I am using the IP of server and port of mysql. By using the Linux box it looks mysql is running on localhost. please suggest.

Hints: I may need some tunneling?
I used Putty not works for me.

Please help. Thanks in advance.
Hey really nice. Thanks.
13 years ago
Thanks a lot.

13 years ago
Thanks for your reply.

Executor and ExecutorService
: I will check it. Is it not using Thread?

Nice got some idea to have a look.
Many thanks all of you.

My Application is for RFID solution which will manage the RFID Readers(ADD Adaptor, ADD Reader, Manager Reader). I want to make it as a product. In future it will grow like anything. The application is quite complex and minimum of 100 functionality( Database management, File Management, network management, LLRP support...).

That way I am thinking to go for Eclipse RCP. Yesterday whole day I spend on this technology selection.

If anybody have any good Idea please suggest.

SWT/AWT - Learning is easy but no future as SUN stopped future development of it. The guy who was leading the project left SUN...that's end of Applets/AWT/SWING. NetBean platform I dont know what exactly? it that based on swing or applets ?



13 years ago
Dear All,

I am going to write a Java Desktop application for my RFID project. I am thinking which one is better to use:

1- Swing/Applet : No future so am scaring, SUN stuffed further enhancement.
2- Eclipse RCP: Difficult to write as compared to swing/applet.


Please suggest which one best to do in this situation.

Normally I am into J2EE and web applications, stepping into Java Desktop application.

Many thanks in advance.
13 years ago
Hi All,

Please share your points whether it is good to use thread on web applications?

- If NO/YES, then why so?


Many thanks in advance.
Hi All,

Need help to create a web app which will be based on URI. for example i have a website where my app is running http://www.garnaik.com.

I have lot of users, If user Rudra want to access his profile he need to type the URL like : http://www.garnaik.com/profile/rudra.
same way Rahul can use : http://www.garnaik.com/profile/rahul.

How I will achieve that by using JSF with richfaces. By Using JBoss seam I am able to achieve that, but by using simple JSF and richfaces, It seems little difficult. If anybody have any hands on or idea please help me.


Many thanks in advance.


13 years ago
JSF

Thanks for your effort to help me.

Try if you could help me as I am looking. ( need all integrated with annotations).

13 years ago
JSF
Hello Mr. Adil,

I am Expert in all the above technology.

I am expecting the link which explains the integration of all the above technologies by using java annotations.
I posted only to save my time of development not to learn. I already have exp on each with XML configuration I want somebody to help me(if some link or sample code) how to migrate it to annotation with spring 3.0 and Richfaces 4.0, JSF 2.0. with Hibernate 3.4.

13 years ago
JSF