Environment: JSF 1.2 RI, RichFaces 3.3.2
We use jQuery for to change CSS classes when elements gain or lose focus. This is fairly straightforward, however, when our partial renderings are completed, we do not see these tricks and blurry events associated with the newly created form elements. This is to be expected, since these events are not in the DOM according to the document, but we tried to use a couple of plug-ins (Listen, as well as LiveQuery), since .live () does not work properly for blurring and focus in 1.3.2, and also in the version that comes with RichFaces. Each of these plugins must process newly created elements placed in the document. In practice, although not one of them behaves as expected.
We transfer our inputs / select / textareas to div or span so that the rendering of the various parts is updated according to our Ajax requests. This is due to a limitation in RichFaces when the rendering of elements is not checked with partial re-rendering. Apart from this little piece, nothing interesting happens.
I added elements using $ ('ol') after (txtForNewListItem) and confirmed that livequery works correctly for these elements, and not for elements that were recently displayed by JSF.
Has anyone had similar results and found a suitable workaround? One of the methods I saw was to override document.createElement, but we really hope that you will have to avoid this path at all costs.
Scott source share