download source here
How to set the new record to current visible item inside the carousel ?
Usually, while adding the new record in the carousel, the record will insert in the beginning. Even though you are at the middle of the carousel, the new record will be added at the beginning. To make the new record to the current visible item set the current row key to the currentItemKey.
This is the default behavior while adding the new row
After setting the currentItemKey,
Key key = currentRow.getKey();
ArrayList alist = new ArrayList();
alist.add(key);
// adding the current row key to the carousel tiem key
corouselcomp.setCurrentItemKey(alist);
contrlArea attribute if set to small, the slider looks like this
controlArea attribute if set to compact, the slider looks like this
For more about af:carousel
http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_carousel.html
No comments:
Post a Comment