Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Vinu Shanmugam

Greenhorn
+ Follow
since Jul 22, 2011
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 Vinu Shanmugam

Hi,

I have a AdminHome.xhtml page which has a dynamic include as below:



The above include will get page names dynamically during various ajax events triggered on AdminHome.xhtml page.

Below is one of the dynamic pages that gets loaded when the selectOneMenu changes.



The problem is commandLink does not invoke action during first click. It works well from second click. I enabled the PhaseListener and during first click, only the RESTORE_VIEW and RENDER_RESPONSE phases are called.

I saw similar problems reported by others in forums but no concrete answer.

Could someone assist on this please?

Thanks
Vinu
10 years ago
JSF
I have the same problem. I tried using dynamically included pages and ended up like a fool.

There can be thousand debates on JSF, but if there is a specification and there is an implementation, it should work.

include tags and Ajax support were in specification and implementation but can't be combined with Ajax. Then what is the point of saying that JSF provides Ajax support.

I dont want to end up writing hundred different pages to avoid includes and mess up with templates or decorators.

JSF Ajax support is only good for writing Hello World programs! Not for real world applications.

My intention is not to give any counter-productive comments, but what I said above is the truth. Else some one please advice how to get Ajax capabilities with dynamic include pages. I will be more than happy!
10 years ago
JSF
Hi,


I have some issues with a4j:commandButton. It is not invoking the model during first click. After the first click, it works.

I enabled PhaseListener. During the first button click, only Restore View and Render Response phases are executed.



I am working for past 5 days to resolve this issue with no luck. There were many others posted the same issue none of their solutions address my problem (I have the form tag in place, I have all my beans in session).

I faced the same issue with RichFaces 4 as well. I got fed up with it and I removed RichFaces and tried the same thing with plain JSF implementation.

Thanks
Vinu
10 years ago
JSF
Hi,

I am extremely frustrated to see the behavior that same JSF managed bean (declared as session scoped) is shared among multiple browsers. From the primitive definition of a HttpSession, every browser window action should be accompanied with a separate session. Below is the code and project setup:

Web.xml:


faces-config.xml:


Bean class source:



Login.xhtml:


lib folder contents:

commons-beanutils-1.8.3.jar
commons-codec-1.3.jar
commons-collections-3.2.jar
commons-digester-1.8.jar
commons-logging-1.1.1.jar
jstl-api-1.2.jar
jstl-impl-1.2.jar
myfaces-api-2.0.7.jar
myfaces-impl-2.0.7.jar

App Server: Apache Tomcat 7.0.16
Java Version: 1.6

Could someone please let me know whether I am making any mistakes or this is a known defect? I also came across another similar post and poster suggested using Orchestra, but session scope is a specification given by JSF and the implementation MUST properly implement it. If I choose a new technology / framework for every feature promised by JSF, then what is the point in calling JSF as a framework?

I am working on a huge framework development project which uses Hibernate 3, Spring 3 and we chose JSF 2.0 for front end. I created a separate test web project to analyze this issue.

This issue is slapping in my face and I am loosing confidence over JSF.

Thanks in advance
-Vinu
10 years ago
JSF