Immediate and input-fields that do NOT retain values

Hi everybody

I have read quite a few places that people have trouble clearing input - fields, when pressing a cancel button. I have the opposite problem.

I would like to keep data in input fields that have not been validated.

I have a page with some input fields and a commandLink to (temporarily) go to another jsp page (all with a portlet). I have set immediate="true" on the commandLink as I do not want the form submitted. But when I return to the page all data entered in the input fields are gone.

I switch between the pages using navigation in faces-config.

Is there a way to make data appear on the page although it has not been validated?

/Chr

[695 byte] By [landboa] at [2007-10-2 17:15:15]
# 1
a) What is the scope of the bean?b) What type of session saving do you have?
pringia at 2007-7-13 18:30:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

This problem drove me crazy last week.

The key point is the input field is nested in a dataTable then an immediate command will loose the user-entered data.

It's a bug that the developers don't want to fix.

See RI issue #73 https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=73

and MyFaces issue #632

http://issues.apache.org/jira/browse/MYFACES-632

greg_lindholma at 2007-7-13 18:30:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Sorry, I should really have said the developers choose not to fix instead of "don't want to fix."
greg_lindholma at 2007-7-13 18:30:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Scope should be sessionb) What type of session saving do you have?I don't know? How can you tell?I am using JSF in jsr 168 portlets in websphere portal
landboa at 2007-7-13 18:30:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
The thing is my inputtext is NOT within a datatable
landboa at 2007-7-13 18:30:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

> Scope should be session

>

> b) What type of session saving do you have?

>

> I don't know? How can you tell?

>

> I am using JSF in jsr 168 portlets in websphere portal

On the web.xml see

<param-name>javax.faces.STATE_SAVING_METHOD</param-name>

Here you know what type of session saving you have.

pringia at 2007-7-13 18:30:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...