I've had
also some duplicated mails but no one lost... okay, doesn't matter. If
you mean
the order in thread... I've just answered to another post from
Vladimir, but it
was for all. I've forgot
to warn you about this bug (with no refresh on datamodel changes). Yes,
it is a
bug, but this time not in Scroller :) The only known workaround is to
reset
datamodel manually in code, where you make changes. You have to call ((UIData) component).setFirst()in your backing bean to
let the scroller know about it. i.e.: private void
dropScroller(String dataTableId) { _log.info("dropScroller called"); FacesContext
context = FacesContext.getCurrentInstance(); UIComponent
component = findComponent(context.getViewRoot(), ":" +
dataTableId, context, false); if (component instanceof UIData) ((UIData)
component).setFirst(0); } private
UIComponent findComponent(UIComponent component, String id, FacesContext
context, boolean exactMatch) { String
componentId = component.getClientId(context); if (exactMatch) { if
(componentId.equals(id)) return
component; } else { if
(componentId.endsWith(id)){ _log.debug("Requested UIC " + id + " returning:" + component.getClientId(context)); return
component; } } Iterator
kids = component.getChildren().iterator(); while
(kids.hasNext()) { UIComponent
kid = (UIComponent) kids.next(); UIComponent
found = findComponent(kid, id, context, exactMatch); if (found != null) return found; } return null; } daniel ccss schrieb: Strange, I think I lose some mails... Paul can you answer this last email that I send, not sure if you already answered it, but something strange happen, thanks, sorry :-( |
- Re: Tomahawk+DataScroller+WorkingWithLargeTables daniel ccss
- Re: Tomahawk+DataScroller+WorkingWithLargeTables daniel ccss
- Re: Tomahawk+DataScroller+WorkingWithLargeTabl... Paul Iov
- Re: Tomahawk+DataScroller+WorkingWithLargeTables Paul Iov
- Re: Tomahawk+DataScroller+WorkingWithLargeTables Paul Iov
- Re: Tomahawk+DataScroller+WorkingWithLargeTables Paul Iov
- Re: Tomahawk+DataScroller+WorkingWithLargeTabl... Vladimir Isakovich
- Re: Tomahawk+DataScroller+WorkingWithLarge... daniel ccss