Hi

In theory, if there is no form there is no state saved, so the ajax received
will not have the state and no postback could be sent. Ok, if the view state
is saved in some different way by other alternate ajax component, the point
in common is that any component that writes the state should call
viewHandler.writeState() method (and stateManager.writeState() method).

Instead do something on the renderer, I think it is possible to do something
on viewHandler.writeState() or stateManager.writeState() and keep the same
proposed behavior. In jsf 2.0, we have to keep into account the method
getViewState().

regards,

Leonardo Uribe

2010/6/11 Werner Punz <[email protected]>

> What about ajax and http get which perse do not post a form in all cases
> but can post data back into the lifecycle?
>
> OK,http get is handled, but still there is ajax which can trigger
> a  post without a form.
>
>
>
> Werner
>
>
> Am 11.06.10 16:13, schrieb Martin Marinschek:
>
>  Hi Mike,
>>
>>  2) do something in the form renderer to indicate that the state needs to
>>> be
>>> saved, maybe setting a request attribute that can be checked in saveView
>>> to
>>> determine whether to actually save state or just return null.
>>>
>>
>> I would lean towards option 2 - I don“t see how the saved state would
>> be used at all if there is no form on the page - there cannot be a
>> postback to it, so this memory is anyways wasted.
>>
>> best regards,
>>
>> Martin
>>
>>
>
>

Reply via email to