Carousel component

Hi,
im using Jdev 11.1.1.5.0 , i need help to know the procedure of how to use carousel component to display image from oracle database , and also to store images in to db !

http://www.baigzeeshan.com/2010/10/display-images-in-carousel-item-in.html

Similar Messages

  • How to create a video carousel component

    Hi ,
    I have a doubt. For images we have one component carousel.
    Like Carousel component ,Can we develop a component for videos and it should suppport all formats (FLV,MP4,WMV)
    Can u guys pls help me out.
    Thanks & Regards,
    Prasad.

    Hi,
    OOB Carousel component will take a "Page" as the input. So, you can try putting a video in a page using "Video component" and add this page to your carousel' Fixed List. This may solve your purpose.
    Regards
    Shelly

  • Carousel component in Flash Builder 4.5?

    How to create a Carousel component in Flash Builder 4.5?
    I need to build a carousel component in Flash Builder 4.5 I've created a container with the left and right buttons in Flash. How do I import and Use it in Flash Builder??

    http://www.adobe.com/devnet/flex/videotraining/exercises/ex1_06.html
    you could also search blogs for custom component creation. There might be many implementations for your learning/usage.

  • Carousel component, need help!?

    Hi! I created master/detail form in JDeveloper! Where Carousel is detail form.
    I added bean to Carousel component:
    public class Carousel {
        public Carousel() {
         * Gets new carusel item and set current row of iterator.
         * @param event
        public void caruselSpin(CarouselSpinEvent event) {
                List l =(List)event.getNewItemKey();
                Key k = (Key)l.get(0);
                DCIteratorBinding iter =
                    getDCBindingContainer().findIteratorBinding("AAtteli1Iterator");
                iter.setCurrentRowWithKey(k.toStringFormat(true));
        public  DCBindingContainer getDCBindingContainer() {
            return (DCBindingContainer)resolveExpression("#{bindings}");
        public  Object resolveExpression(String expression) {
            FacesContext facesContext = FacesContext.getCurrentInstance();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            ValueExpression valueExp =
                elFactory.createValueExpression(elContext, expression,
                                                Object.class);
            return valueExp.getValue(elContext);
    }So when I run my page I can see something like this: http://my.jetscreenshot.com/2677/20101005-yas0-26kb
    When I navigate witth Carousel to last (3 image) then I can see something like this: http://my.jetscreenshot.com/2677/20101005-kwtm-22kb
    WHY when I am on first image, I can't see last image in foggy way? And what to do?
    To View Images I use: /ImageServletCarousel?Id=#{bindings.ADokumentiPk.inputValue} and imegeServlet.
    Hope my question and information is clear and someone can help me. If not clear or need mor information then please let me know.
    Best regards, Debuger!

    Maybe the problem is in servlet?
    package kokaugi.view.servlets;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.client.Configuration;
    import oracle.jbo.domain.BlobDomain;
    public class ImageServlet extends HttpServlet {
        public void doGet(HttpServletRequest req, HttpServletResponse res)
                                                 throws ServletException, IOException {
             processResponse(req,res);
         public void doPost(HttpServletRequest req, HttpServletResponse res)
                                                 throws ServletException, IOException {
             processResponse(req,res);
         private void processResponse(HttpServletRequest req, HttpServletResponse res)
                                                 throws ServletException, IOException{
             String imageId = req.getParameter("Id");
             OutputStream out = res.getOutputStream();
             String amDef = "kokaugi.model.KokaugiModule";
             String config = "KokaugiModuleLocal";
             ApplicationModule am =  Configuration.createRootApplicationModule(amDef, config);
             ViewObject vo = am.findViewObject("ADokumentiDati1");
             if(imageId != null){
               vo.setWhereClause("A_DOKUMENTI_PK=:img_id_tab");
                          vo.defineNamedWhereClauseParam("img_id_tab", null, null);
                          vo.setNamedWhereClauseParam("img_id_tab", imageId);
                          String query = vo.getQuery();
                          System.out.println(query);
                          vo.executeQuery();
             if(vo.getEstimatedRowCount()==1){
                Row currentRow = vo.first();
                String contentType = (String)currentRow.getAttribute("DokumentaTips");
                if(contentType.equals("image/jpeg") || contentType.equals("image/gif")|| contentType.equals("image/png")){
                        BlobDomain image = (BlobDomain)currentRow.getAttribute("Dokuments");
                        res.setContentType(contentType);
                                InputStream is = image.getInputStream();
                                byte[] buffer = new byte[10 * 1024];
                                int nread;
                                while ((nread = is.read(buffer)) != -1)
                                out.write(buffer, 0, nread);
                                out.flush();
                                out.close();
            Configuration.releaseRootApplicationModule(am, false);
    }

  • Does any one know how to create "carousel-component" like in the attached link?

    In the link
    http://www.adobe.com/devnet/
    (under the "Features" tab)
    there is an element that is called "carousel-component" (I
    have looked in the sorce code and they call it that way...).
    I realy love it! I reffer to the element that enables the
    surfer to go next and previous to see more features...
    please help me...
    How can I make such thing?
    thanks in advance!

    I'm sure Adobe is going to make that available in their Spry
    collection. It
    is, however, very poorly conceived and can easily make
    content inaccessible
    if text is resized or set larger in a visitor's browser. I
    would advise
    using such a thing only if the content inside consists only
    of images.
    All that glitters (or flickers in this case) is not gold :-)
    Al Sparber - PVII
    http://www.projectseven.com
    Extending Dreamweaver - Nav Systems | Galleries | Widgets
    Authors: "42nd Street: Mastering the Art of CSS Design"
    "no far" <[email protected]> wrote in
    message
    news:fepc2e$hck$[email protected]..
    > In the link
    http://www.adobe.com/devnet/
    (under the "Features" tab)
    > there is an element that is called "carousel-component"
    (I have looked in
    > the
    > sorce code and they call it that way...).
    >
    > I realy love it! I reffer to the element that enables
    the surfer to go
    > next
    > and previous to see more features...
    >
    > please help me...
    > How can I make such thing?
    >
    > thanks in advance!
    >
    >

  • How to stretch the child components of a carousel item.

    Dear All,
    Use case:
    I am putting a list of dvt graph on a carousel component but I am having a lot of trouble when it comes to sizing the components.
    Consider the code below
    <af:panelGroupLayout id="pgl1" layout="scroll">
         <af:carousel id="c1" var="item" value="#{pageFlowScope.myBean.dataList}">
              <f:facet name="nodeStamp">
                   <af:carouselItem id="crslItem" text="#{item.title}" shortDesc="#{item.title}">
                        <af:panelGroupLayout id="pgl4" layout="vertical">
                             <dvt:lineGraph id="lg2">
                             </dvt:lineGraph>
                        </af:panelGroupLayout>
              </af:carouselItem>
              </f:facet>
         </af:carousel>
    </af:panelGroupLayout>The graph seems to be cut and is not rendering all of the data. The legends and the columns are hidden.
    I dont want to put a lot of inlinestyles there in putting the width and height.
    I thought the carouselitem stretches its child component but that does not seem the case for me.
    How do I do this?
    What I want is that the size of the carouselitem would be equal to the size of the dvt line graph.
    What can I do to achieve this?
    Thanks
    JDEV 11G PS5

    <af:panelGroupLayout> does not stretch its children (even if it has got a sole child). Surrounding a component with an <af:panelGroupLayout> prevents it of being stretched by its parent (even if the parent is a components that stretches its children).
    In your case the <af:carousel> component is not stretched because it is within an <af:panelGroupLayout>. Also the <dvt:lineGraph> is not stretched because it is surrounded with an <af:panelGroupLayout>.
    Just remove both <af:panelGroupLayout> tags and try again.
    (Note, that <af:panelGroupLayout layout="scroll"> may be stretched by its parent, but it does not stretch its own children even if it is stretched by its parent).
    Dimitar

  • How to add text to the carousel images ?

    <%--
      Copyright 1997-2010 Day Management AG
      Barfuesserplatz 6, 4001 Basel, Switzerland
      All Rights Reserved.
      This software is the confidential and proprietary information of
      Day Management AG, ("Confidential Information"). You shall not
      disclose such Confidential Information and shall use it only in
      accordance with the terms of the license agreement you entered into
      with Day.
      ==============================================================================
      Carousel component
    --%><%@include file="/libs/foundation/global.jsp"%><%
    %><%@ page import="java.util.Iterator,
                       java.util.LinkedHashMap,
                       java.util.Map,
                       com.day.cq.commons.Doctype,
                       com.day.cq.wcm.api.WCMMode,
                       com.day.cq.wcm.api.components.DropTarget,
                       com.day.cq.wcm.foundation.Image,
                       com.day.cq.wcm.foundation.List,
                       com.day.text.Text"
    %><%@include file="/libs/foundation/global.jsp"%><%
        %><cq:includeClientLib js="cq.jquery"/><%
        String xs = Doctype.isXHTML(request) ? "/" : "";
        if (WCMMode.fromRequest(request) == WCMMode.EDIT) {
            //drop target css class = dd prefix + name of the drop target in the edit config
            String ddClassName = DropTarget.CSS_CLASS_PREFIX + "pages";
            %><div class="<%= ddClassName %>"><%
        // initialize the list
        %><cq:include script="init.jsp"/><%
        List list = (List)request.getAttribute("list");
        if (!list.isEmpty()) {
            // config options
            int playDelay = properties.get("playSpeed", 6000);
            int transTime = properties.get("transTime", 1000);
            // todo: make default designeable
            String controlsType = properties.get("controlsType", "bc");
            boolean showControls = "pn".equals(controlsType);
            if (showControls) {
                controlsType = "";
            } else {
                controlsType = "-" + controlsType;
            // first shove all slides into a map in order to calculate distinct ids
            Map<String, Slide> slides = new LinkedHashMap<String, Slide>();
            Iterator<Page> items = list.getPages();
            String pfx = "cqc-" + Text.getName(resource.getPath()) + "-";
            while (items.hasNext()) {
                Slide slide = new Slide(items.next());
                String name = pfx + slide.name;
                int idx = 0;
                while (slides.containsKey(name)) {
                    name = pfx + slide.name + (idx++);
                slide.name = name;
                // prepend context path to img
                slide.img = request.getContextPath() + slide.img;
                slides.put(name, slide);
            %><div class="cq-carousel">
                <var title="play-delay"><%= playDelay %></var>
                <var title="transition-time"><%= transTime %></var>
                <%-- write the actual slides --%>
                <div class="cq-carousel-banners" >
                    <c:forEach var="slide" varStatus="loop" items="<%= slides.values() %>">
                    <div style="${loop.first ? "left: 0px; opacity: 1;" : "left: -1000px; opacity: 0;"}" id="${slide.name}" class="cq-carousel-banner-item">
                        <c:if test="${!empty slide.img}">
                            <a href="${slide.path}.html" title="${slide.title}">
                                <img src="/etc/designs/default/0.gif" style="background-image:url(${slide.img})" alt="${slide.title}"<%= xs %>>
                            </a>
                        </c:if>
                        <h3>${slide.title}</h3>
                        <p>${slide.desc}<br<%= xs %>>
                            <a href="${slide.path}.html">Read More</a>
                        </p>
                    </div>
                    </c:forEach>
                </div>
                <%-- defines the controls --%>
                <c:if test="<%= showControls %>">
                    <div class="cq-carousel-controls">
                        <a class="cq-carousel-control-prev" href="#" style="display:none"></a>
                        <a class="cq-carousel-control-next" href="#" style="display:none"></a>
                    </div>
                </c:if>
                <%-- write the switches, also needed when disabled --%>
                <div class="cq-carousel-banner-switches<%= controlsType %>">
                    <ul class="cq-carousel-banner-switch">
                        <c:forEach var="slide" varStatus="loop" items="<%= slides.values() %>">
                            <li><a class="${loop.first ? "cq-carousel-active" : ""}" title="${slide.title}" href="#${slide.name}"><img src="/etc/designs/default/0.gif" alt="0"<%= xs %>></a></li>
                        </c:forEach>
                    </ul>
                </div>
            </div><%
        } else {
            if (WCMMode.fromRequest(request) == WCMMode.EDIT){
                %><img src="/libs/cq/ui/resources/0.gif" class="cq-carousel-placeholder" alt=""><%
        if (WCMMode.fromRequest(request) == WCMMode.EDIT) {
            %></div><%
    %><%!
         * Container class for slides
        public static final class Slide {
            private final Page page;
            private String img = "";
            private String title = "";
            private String name = "";
            private String desc = "";
            private String path = "";
            private Slide(Page page) {
                this.page = page;
                title = page.getTitle();
                desc = page.getDescription();
                if (desc == null) {
                    desc = "";
                path = page.getPath();
                // currently we just check if "image" resource is present
                Resource r = page.getContentResource("image");
                if (r != null) {
                    Image image = new Image(r);
                    img = page.getPath() + ".img.png" + image.getSuffix();
                name = page.getName();
            public Page getPage() {
                return page;
            public String getImg() {
                return img;
            public String getTitle() {
                return title;
            public String getName() {
                return name;
            public String getDesc() {
                return desc;
            public String getPath() {
                return path;
    %>

    check example BCALV_GRID_08 if still with doubts , come back and i will try help you.

  • Carousel don't show images, only the page name and a "read more" link

    Good morning.
      I'm trying to get a carousel in my page. I already set a image to one page and on my carousel component, I selected that page.
      When I see the carousel, it shows me the page inputed name and a "read more" link instead of the image.
      Can anyone tell me what's wrong or missed?
      Heres a print screen:
    Thanks.

    What did I do to correct this problem:
       When I create a page renderer component, the same automatically creates a jsp file, with the same name as the component. In my Geometrixx copy sites, there's always a "content.jsp" file in the components, despite of the one with the same name of the component. So, instead of build my pages in the componentname.jsp, i'm doing this is these content.jsp. Just doing this, the carroussel works perfectly. For sure is something that I miss in my own jsp files, but even with the same code (copy > paste), in my jsp the carroussel don't work. Anyway, now I can use it.

  • Is there a way to add images , text and button in the individual marquee of a carousel

    Is there a way to add images , text and button in the individual marquee of a carousel ?

    Write a custom carousel.  Usually carousel components are just ULs that use something like jQuery to rotate through the LIs.  The foundation carousel component is really just designed for some specific use cases.  Generally I would just recommend rolling your own.

  • Carousel  Appearance. How to narrow Left and right margins (ADF 11.1.2)

    Hello,
    I need help to adjust the appearance of a carousel component.
    As you can see in the picture i need more space for the current page of carousel (need to enlarge the current page) and i want to narrow the space marked with a red line (left and right).
    Property settings available do not help.
    Can anyone have an idea?
    [http://i52.tinypic.com/28arlma.png]

    Hi,
    did you try skinning ?
    http://download.oracle.com/docs/cd/E16162_01/web.1112/e16181/af_skin.htm#BAJFEFCJ
    The skin tag documentation is here
    http://download.oracle.com/docs/cd/E16162_01/apirefs.1112/e17497/toc.htm
    Just have a look for what is available for af:carousel (and note the new skin editor)
    Frank

  • How to display image using Carousel in ADF using BLOB column DB

    Hello everyone ,
    I tried creating a Carousel component in ADF do display an image , but it seems to be not working .
    This is what i tried .
    1 ) Created an empty page .
    2) From data control drag and drop view object ( one of the column in DB is blob which saves the image ) as Carousel .
    3 ) Drag and drop the image over Carousel component ,
    Now what should be the source for the image ?? from expression builderi tried giving #{item.Image} images are not picking up .
    Could you please advice .
    --Keerthi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Keerthi,
    You cannot display a BLOB as image as it is. You need to convert them to display in your UI.
    Check out this blog on how to use a servlet to convert the blob into image and display in the page.
    http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/
    -Arun
    P.S : Always mention your JDev version and the technologies used.

  • IAd Producer Question about the Gallery Component

    Hi,
    I would like to know how to make the Gallery component to be able to loop. I understand that I can use the Carousel component, but the required design of my clients looks similar with the Gallery Component. It just have to be looping and I'm done.
    Thanks in advance!
    Mark

    The best way is to place a Carousel object in a View object and resize the Carousel until a given cell is the same size of the View.  Make sure to check the "Clips to Bounds" setting in the inspector for the View and the "Snaps to Cells" setting for the carousel.
    Views are containers so drop one on the canvas then double-click it to edit its contents then drop in your Carousel.
    Here's what the View (and its settings) looks like with the Carousel inside:
    Here's what the Carousel (and its settings) looks like when embedded in the View and selected.
    -Mark

  • Carousel need to be rotated

    Hi All,
    Im using carousel component in the index page of my Application.
    Im using images in the carouselItem. I need to rotate the carousel component circularly like http://pv3d.org/2008/12/01/carousel-with-proper-rotation-and-reflection/comment-page-1/ .Please anyOne suggest me if you have any Idea
    Regards,
    Felix
    Edited by: Felix Andrew on Feb 1, 2011 5:15 AM

    I have seen that example, But in that He didn't roatate the carousel component roundly(like globe). like this example http://pv3d.org/2008/12/01/carousel-with-proper-rotation-and-reflection/comment-page-1/
    Regards,
    Felix

  • How to read and show images from a folder in panel

    HI
    I have pre uploaded images in a folder in app server. In a page when user clicks on a button i need to show these images in a popup. when user selects any image i need to get the selected image name show it in the base page and close the popup. Need to save the image name in the database. Can you please tell me how to approach?
    Thanks
    Satya

    Hi,
    you can create a List and iterate it. instead of dialog another solution is to use a carousel component
    http://adfblogs.blogspot.com.es/2011/03/how-to-use-carousel-component.html

  • How can I remove a child swf and stop all sounds when parent closes?

    Hi All,
    I am new to actionscript 3 and trying to learn as I go. The problem I am having is the following:
    I have a carousel of images that load an external swf movie with a FLVPlayback component on it. The problem is that when the external swf unloads the sound of the FLVPlayback component continues to play. I am using a carousel component I found online to load the images and each image loads an external swf file. here is the code for it.
    import com.carousel.DegreeCarousel;
    import com.carousel.data.CarouselDO;
    import com.carousel.data.AngleDO;
    import com.carousel.data.ItemDO;
    // DEFINING THE CAROUSEL OBJECT
    var carouselSettings:CarouselDO = new CarouselDO();
    carouselSettings.radiusX = 300;
    carouselSettings.radiusY = 0;
    carouselSettings.fov = 50;
    carouselSettings.transitionTime = 1;
    carouselSettings.ease = "easeInOutQuint";
    carouselSettings.useToolTip = 0;
    carouselSettings.useBlur = 1;
    carouselSettings.maxBlur = 8;
    carouselSettings.reflectionAlpha = 0.2;
    // DEFINING ANGLES SETTINGS
    var angleSettings_arr:Array = new Array();
    angleSettings_arr[0] = new AngleDO({angle:0,alpha:1,scale:0.5});
    angleSettings_arr[1] = new AngleDO({angle:90,alpha:1,scale:1});
    angleSettings_arr[2] = new AngleDO({angle:180,alpha:1,scale:0.5});
    // DEFINING THE ITEMS
    var prefix = "content/thumbs/"
    var galleryItems:Array = new Array();
    galleryItems[0] = new ItemDO({thumb:prefix + "image_1.jpg", content:prefix + "swf1.swf", contentType: "flash"});
    galleryItems[1] = new ItemDO({thumb:prefix + "image_2.jpg", content:prefix + "swf1.swf", contentType: "flash"});
    galleryItems[2] = new ItemDO({thumb:prefix + "image_3.jpg", content:prefix + "swf1.swf", contentType: "flash"});
    // PLACING THE CAROUSEL TO STAGE
    var carousel:DegreeCarousel = new DegreeCarousel(carouselSettings,angleSettings_arr,galleryItems);
    carousel.x = stage.stageWidth * .5;
    carousel.y = stage.stageHeight * .5;
    this.addChild(carousel);   
    // KEYBOARD NAVIGATION
    // KEYBOARD EVENTS
    stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);   
    function keyDownHandler(e:KeyboardEvent):void
        // left
        if(e.keyCode == 37)
            carousel.left(1);
        // right
        if(e.keyCode == 39)
            carousel.right(1);
        // top
        if(e.keyCode == 38)
            carousel.prevCycle();
        // Down
        if(e.keyCode == 40)
            carousel.nextCycle();
        // Space
        if(e.keyCode == 32)
    The external movie loads fine. Then the external swf calls for a second swf containing a video. This is the code that is used to load the swf:
    import flash.net.URLRequest;
    import flash.display.Loader;
    import flash.events.Event;
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    var myVideo:URLRequest = new URLRequest("myvideo.swf");
    var video:Loader = new Loader();
    video.load(myVideo);
    this.addChild(video);
    When the carousel unloads, it unloads both movies but the sound keeps on playing.
    Is there any way to stop the sound from keep playing?
    Thank you very much!!
    -M

    You want to stop the audio from playing and also downloading more video/audio if it is still downloading when you go to a new keyframe where the video display/component or mp3 player is removed from the stage because it's keyframe ended or do not exist anymore but you still hear the audio.
    Add an event listener to your video playback component that calls a function when the flash player tries to remove the video plaer from the stage that stops the netstream or at least stops/pauses the video playback.
    [link removed]
    //sample NetConnection and NetStream classes when the video player is removed from the stage tell the NetStream to stop playing or downloading the content with .close();
    var connection:NetConnection = new NetConnection();
    connection.connect(null);
    var stream:NetStream = new NetStream(connection);
    addEventListener(Event.REMOVED_FROM_STAGE, videoRemovedFromStage);
    function videoRemovedFromStage(e:Event){
       stream.close();

Maybe you are looking for

  • Include Develop settings in metadata have no effect

    Hi. I've just discovered that option in the "Catalog Settings -> Include Develop settings in metadata inside JPEG, TIFF and PSD files" have no effect. I tested this with JPEG and TIFF inside LR 3.3 RC1, but it looks like this issue is present even in

  • No DAD configuration Found

    Please if somebody can help. My TNS Listener is running and database us up.Connecting to portal home page is giving me "Proxy log on failed" together with the message "TNS could not resolve service name" In http://192.168.1.101/pls/portal30/admin_/da

  • N8: How to see services/processes (not Apps) that ...

    How to see services/processes (not Apps) that are currently running? For those unfamiliar with the terminology, a service is the same as an application, only it doesn't have a user interface. Process, the same. Even when you kill all your application

  • A 10: help, error message while booting up

    hey guys, i have a toshiba a10 with windows xp home. whenever i try to boot up the computer, i get an error that reads: A disc read error occurred Press Ctrl+Alt+Del to restart no matter what i do, i cant get past it. ive had this error before and i

  • How to get correction for french language

    Is there a way to get the autocorrection for french text?