Mario Ivankovits schrieb:
> Hi!
>
>   
>>> why not getElementsByName[0] ?
>>>       
>>
>> Well, in general document.getElementById is both faster and more
>> elegant.
>>
>> So in this case, rendering this component with id=clientId seems
>> reasonable.
>>
>> Hmm..but it is possible that there are multiple "view state" fields in
>> the page, one per form. So perhaps using "getElementsByName" is a good
>> idea in this specific case.
>>   
> And also ensure that every ViewState will be replaced and not only the
> first [0] one.
> When you do have multiple JSF forms (which is valid) each ViewState
> needs to be replaced.
Yes, but only when they came from the same view!

I don't know much about JSF "portal bridge" stuff. Can this result in a
page contains a form that was rendered via JSF from host A, and a
different form that was rendered via JSF from host B? If so, then a PPR
response from host A should not update both forms..

Regards,
Simon

Reply via email to