But focus component only generates JS code that is executed by browser setting the focus on specified component, the MyFaces Ajax execute JS code generated on the server?

On 4/24/06, Werner Punz <[EMAIL PROTECTED]> wrote:
Werner Punz schrieb:
> Rogerio Pereira schrieb:
>> Hi,
>>
>> Is there any way to make focus componente works with *Ajax components? I
>> mean, i need set the focus to an component after an sucessfull call to
>> method like i'm doing today with focus component.
>>
>> Somebody has any tips about how can i add this functionality to focus
>> component in Ajax way?
>>
> The focus component has the same problem as the notifier, it only can
> trigger on generic components where the id stays the same as the focus
> receiver, compound components as some ajax components often have
> internal ids for the user editable parts.
> I assume there currently is no direct way to handle that, but you could
> try to figure out which internal id is give to the editable area of the
> ajax component and use that one.
>
I think in the long run we have to move away from the single isolated
component approach we have now, the state change notifier and also the
focus component need something like a registration framework where
components can register themselves on the _javascript_ side of things for
being included in certain actions and not.

The state change notifier is inherently broken due to the exclusion list
system and due to the same problem the focus component suffers on.
And for the notifier I will not leave it out of the sandbox before I do
not have this fixed.




--
Yours truly (Atenciosamente),

Rogério

Reply via email to