Hello,

I'm currently facing a problem with a simple code. I'm trying and display a
YUI Carousel but my portal (eXo Platform) gives me an error :


exception returned by processAction() or render() methods
<java.lang.IllegalStateException: the content type has not been set before
calling thegetPortletOutputStream() method.>


Here is the code, which works in a servlet context :

List<String> list = Arrays.asList(new String[] { "images/bangkok.jpg",
"images/hk.jpg",
                "images/jakarta.jpg", "images/sgp.jpg",
"images/neuschwanstein.jpg",
                "images/hongkong.png", "images/singapore.png" });


        add(new YuiCarousel<String>("carousel", list)
        {

            @Override
            protected Component newPanel(String id, String object)
            {
                return new ImagePanel(id, object);
            }
        }

I've seen several people having the same problem on the Net but was unable
to find a solution. Any help would be greatly appreciated.

Regards,

Pierre


-- 
Sans amis était le grand maître des mondes,
Eprouvait manque, ce pour quoi il créa les esprits,
Miroirs bienveillants de sa béatitude.
Mais au vrai, il ne trouva aucun égal,
Du calice du royaume total des âmes
Ecume jusqu'à lui l'infinité.

(Schiller, "l'amitié")

Reply via email to