Inconsistency

hi friends..

i am facing a peculiar problem in jsf..

I have a jsp page with two command buttons.

First button call a action method in my managed bean and returns same page.with in the method i set a boolean variable to true(using this boolean variable value i call a script in my jsp to pen a new window).

Second button just take me to my previous page.

Here my problem is if i click first button and holds off in same page for some time(may be 5 to 10 minutes..) and then i click the second button it just re display the same page with out any values .

This is happening if i waits in the same page for some more time.

Whether i lose any control over my current window if i click first button? then why it is not happening always?

Plz Help me..

Do any one experience this type of inconsistency problem?

-Christopher

[885 byte] By [Christophersama] at [2007-11-26 16:05:02]
# 1
It looks like that the main backing bean is session scoped. Is this true?
BalusCa at 2007-7-8 22:27:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
No. It is in request scope.
Christophersama at 2007-7-8 22:27:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

It really sounds like as it is in the session scope ..

Anyway, check your session timeout setting in web.xml. It is look like<session-config>

<session-timeout>10</session-timeout>

</session-config>

Where the value is in minutes. The default is 30.

BalusCa at 2007-7-8 22:27:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Thanks for your interest.

Session Timeout is set as 20 minutes. But Filter in project take care of these things , tat is it will forward to sessionout.jsp page if the time exceeds.

In my backing bean for the page i set

===

FacesContext context = FacesContext.getCurrentInstance();

HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();

request.setAttribute("somevalue", "somevalue");

===

i am playing with lot of request attributes and and in my jsp i check like this

==============

<c:if test="${requestScope.somevalue!= null}">

<script>

window.open('/forward.faces', '', 'dependent=yes,height=600,width=800,left=5,top=10,status=yes,menubar=yes, scrollbars=yes, resizable=yes');

</script>

</c:if>

================

while i keep on clicking the same button again for more than 15 to 20 times the same problem persist.

Christophersama at 2007-7-8 22:27:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...