Monday, September 24, 2012

MDS ChangeManager code for af:carousel

When your ADF application is MDS enabled,you may see the MDS persistence behaviour across user sessions.
Here is a piece of code to avoid the same.


    public void spinEvent(CarouselSpinEvent carouselSpinEvent) {

        // Add event code here...
        try {
            ChangeManager cm =
                RequestContext.getCurrentInstance().getChangeManager();
            System.out.println(this.getCarouselComp().getCurrentItemKey().getClass());
            ComponentChange change =
                new AttributeComponentChange("currentItemKey", null);
            if (cm != null)
                cm.addComponentChange(FacesContext.getCurrentInstance(),
                                      getCarouselComp(), change);
        } catch (Exception e) {
            // TODO: Add catch code
            e.printStackTrace();
        }      
    }

18 comments:

Anonymous said...

Pretty section of content. I just stumbled upon your web site and in accession capital to assert that
I acquire in fact enjoyed account your blog posts. Anyway I will be subscribing to your feeds
and even I achievement you access consistently quickly.
Take a look at my web page ... Free Teen Porn

Anonymous said...

Oh my goodness! Incredible article dude! Many thanks, However I am encountering troubles with
your RSS. I don't understand the reason why I can't join it.
Is there anybody having the same RSS problems? Anyone who knows the answer will you kindly respond?
Thanx!!
Also visit my weblog :: Free porn tube

Anonymous said...

With havin so much content do you ever run into any issues of
plagorism or copyright infringement? My blog has a lot of exclusive
content I've either created myself or outsourced but it appears a lot of it is popping it up all over the web without my agreement. Do you know any methods to help protect against content from being ripped off? I'd really appreciate it.
Also see my web page: teen porn

Anonymous said...

I needed to thank you for this fantastic read!
! I definitely enjoyed every bit of it. I've got you bookmarked to check out new things you post…
Here is my homepage :: porntube

Anonymous said...

Hello there! This is my 1st comment here so I just wanted
to give a quick shout out and tell you I genuinely enjoy reading through
your posts. Can you suggest any other blogs/websites/forums
that deal with the same topics? Thanks for your time!
My web-site ... Best Ways To Get Your Wife Back - Dos And Dont S

Anonymous said...

Somebody essentially assist to make seriously posts I'd state. This is the very first time I frequented your web page and thus far? I amazed with the research you made to create this actual submit extraordinary. Excellent process!
My site > amateur porn

Anonymous said...

Hi there! Someone in my Facebook group shared this website with us so I
came to check it out. I'm definitely loving the information. I'm book-marking and will be tweeting this to my followers!
Great blog and brilliant style and design.
Also see my page: teenporn

Anonymous said...

I'm truly enjoying the design and layout of your site. It's a very easy on
the eyes which makes it much more pleasant for me to come here and visit
more often. Did you hire out a developer to create your theme?
Exceptional work!
My page - drunk naked girls

Anonymous said...

I loved as much as you will receive carried out right here.

The sketch is tasteful, your authored material stylish. nonetheless, you command get
got an nervousness over that you wish be delivering the following.
unwell unquestionably come further formerly again since exactly the
same nearly a lot often inside case you shield this hike.
Also visit my blog post ; instant gagnant

Anonymous said...

It's an awesome paragraph in support of all the internet people; they will obtain benefit from it I am sure.
Look at my blog Financial Advisor

Anonymous said...

I'm gone to say to my little brother, that he should also pay a visit this blog on regular basis to take updated from hottest reports.
Also visit my web-site ; oregon mountain community coupons

Anonymous said...

Malaysia & Singapore & brunei greatest on
the internet blogshop for wholesale & quantity korean accessories,
accessories, earstuds, choker, rings, bracelet, bangle
& hair accessories. Promotion 35 % wholesale discount. Ship Worldwide
Also see my webpage :: Malaysia wholesale korean accessories shop

Anonymous said...

Malaysia & Singapore & brunei greatest on the internet blogshop for wholesale & supply
korean accessories, accessories, earstuds, choker, rings,
bangle, hair & trinket accessories. Deal 35 % wholesale price cut. Ship Worldwide
Also see my webpage > mémoire

Anonymous said...

I am not sure where you're getting your info, but good topic. I needs to spend some time learning much more or understanding more. Thanks for wonderful information I was looking for this info for my mission.
My webpage: click through the following web site

Anonymous said...

I blog frequently and I truly thank you for your content.
This great article has really peaked my interest.
I will book mark your website and keep checking for new information about once a week.
I opted in for your RSS feed as well.
My weblog DSL Anbieter

Anonymous said...

Good day! Do you know if they make any plugins to help with Search Engine Optimization?

I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good
success. If you know of any please share. Thanks!


My webpage :: Http://Dickgirlporn.Info/

Anonymous said...

I am curious to find out what blog system you have been using?
I'm experiencing some minor security issues with my latest site and I would like to find something more safe. Do you have any recommendations?

My web page sexygirlchat.net

Anonymous said...

Nice blog here! Also your website rather a lot up very fast!
What web host are you using? Can I get your associate link in
your host? I wish my site loaded up as quickly as yours lol

Also visit my website http://www.porn-index.net