Shikha Dhawan
Shikha Dhawan

Reputation: 1424

Issue in viewscope

I'm using primefaces 3.1

Tabview with dynamic = true is not working with viewscope.

On tabchange, it does not load data. But, if I change the view to sessionScope it loads the data.

Is there any way to use viewscope with dynamic = true.

Thanks, Shikha

Upvotes: 1

Views: 405

Answers (1)

IturPablo
IturPablo

Reputation: 1611

I think is because the with view scope jsf is creating the bean again try putting

<context-param>
    <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
    <param-value>false</param-value>
</context-param>

Think it will do the trick.

Upvotes: 1

Related Questions