webtier@glassfish.java.net

Re: [webtier] Re: JSF recalls datatable on POST

From: Ed Burns <Ed.Burns_at_Sun.COM>
Date: Wed, 26 Aug 2009 14:54:49 -0700

I don't think this is a bug. See below.

>>>>> On Wed, 26 Aug 2009 12:35:03 -0700 (PDT), webtier_at_javadesktop.org said:

FK> The problem is that. all of jsp and jstl tags that i used. Works
FK> properly except datatable. When i click button and post data
FK> datatable use getter method. No other tags use getter method. This
FK> is an exception.

On postback, the following phases of the request processing lifecycle
are run, in order.

Restore View
Apply Request Values
Process Validations
Update Model Values
Invoke Application
Render Response

Your table has no input components within it, so the expression
#{sample.data} only gets called on the render response.

It looks like you're trying to post back to the same page. In that
case, I suggest you remove the navigation rule entirely and just have
your SampleAction() return null. That causes the view to stay the
same.

When you do that, what do you see?

Ed


-- 
| ed.burns_at_sun.com  | office: 408 884 9519 OR x31640
| homepage:         | http://ridingthecrest.com/