Outputting a set of images and selecting them- how?

I would like to display a set of "Image" objects (defined in my App) and let the user select some of them. This is a kind of mail-style application, where one can select a bunch of mails and then delete them alltogether by pressing the delete button.
instead if mails, i got images. currently I don't know how to do this. the images themselves can be displayed using a table_data and within one column i display the image, the next is the description and then... there should be a checkbox that let's the user select the image.
how can I do this with JSF? thanx for your support!

I got some code now, to clarify what I mean. The first column should contain a checkbox, that the user can select. When he presses a button, I would like to recognize the IDs of the images that he selected... how?
Thanx a lot! --> BTW: the stuff below doest not work, but would be nice :-)
<h:selectmany_checkboxlist value="#{panelBean.currentOptions}">
<h:data_table value="#{imageBean.images}" var="image" >
     <h:column>
          <f:selectitem itemLabel="#{image.imagepath}" itemValue="#{image.imageId}"/>
     </h:column>
     <h:column>
          <h:graphic_image url="#{image.imagepath}" />
     </h:column>
</h:data_table>
</h:selectmany_checkboxlist>

Similar Messages

  • I have created two related books in Lightroom 5 (Volumes 1 and 2) but my balance of page numbers is off. So I'd like to take some pages out of one book (complete with images) and paste them into the other. Is this possible?

    I have created two related Blurb books in Lightroom 5 (Volumes 1 and 2) but my balance of page numbers is off. So I'd like to take some pages out of one book (complete with images) and paste them into the other. Is this possible?

    Can you zip up a few of your GoPro images, upload them to dropbox.com and post a share link, here, so others can experiment with them, or do you mean this issue is global to all camera models?

  • Every time I right click on an image and select Download image Firefox crashes . I have reinstalled; uninstalled and deleted folders and then reinstalled; added

    Every time I right click on an image and select Download image Firefox crashes . I have reinstalled; uninstalled and deleted folders and then reinstalled; added no plugins; checked I can DL the same images in IE-works good.I use Win7 pro and it works in other profiles in Windows 7. I created a new profile in Windows and that worked for about 2 months and now that has gone the same way as my admin profile has done. I deleted the sqlite download file-still same prob..Please help. I use Firefox 13.0.1

    That sounds very frustrating.
    By the way, does it say "Download image" or "Save Image As"? Just checking whether you have an add-on downloader in the mix that might be relevant. If you do have an add-on, try using the built-in command.
    Do you also crash if you save from here:
    right-click page > View Page Info > Media tab > (select image) > Save As
    I assume you have seen this article and tried these things: [[What to do if you can't download or save files]].
    Have you tried the new Reset feature in Firefox 13? This duplicates certain key data from your active settings folder into a new one, bypassing some add-ons and custom settings. Your plugins will still be active, but could be disabled manually if you like.
    More information in this article: [[Reset Firefox – easily fix most problems]].
    If the new settings folder has the same problem, you can switch back if you like using Firefox's Profile Manager.
    Does it make any difference?

  • I have cross dissolve transitions set between images and videos, and I have the pan/zoom hold setting at "0." Despite the "0" setting, my images are static until the cross dissol

    I have cross dissolve transitions set between images and videos, and I have the pan/zoom hold setting at "0." Despite the "0" setting, my images are static until the cross dissolve is complete. I want the pan/zoom feature to start the moment the subsequent image becomes visible. Is there a solution?

    tonyproam
    I am not sure if I am zeroing in on what you seek so please clarify...on
    I want the pan/zoom feature to start the moment the subsequent image becomes visible.
    Do you mean fading in visible versus or completely visible at the end of the transition? Whatever the case, I have not
    found a scenario to fit what you are describing.
    However, here are my suggestions for you to consider...
    1. What is the alignment of the Cross Dissolve transition - Left Clip, Between Clips, or Right Clip. If Between Clips, please try Left Clip alignment.
    2. What is the duration of the Cross Dissolve transition - you could try varying the transition duration. If less than 1 second, then please read the
    details for minimum transition duration in the following
    http://atr935.blogspot.com/2014/03/pe-minimum-duration-for-transition.html
    Please let me know if any of the above worked for you in what you were seeking regarding pan and zoom effect and video transitions.
    Thank you.
    ATR

  • HHow do I Track my images Trace who has stolen my Images and puts them on there web site and claims that they have done

    How do I Track my images Trace who has stolen my Images and
    puts them on there web site and claims that they have done that
    work
    I know how to watermark my images,

    adobe_help_me posted in macromedia.dreamweaver:
    > How do I Track my images when someone else puts them on
    there web
    > site and claims that they have done that work I know how
    to
    > watermark my images,
    The only way I know is to use digital wartermarking and
    tracking
    services like DigiMarc as suggested by Bregent in your
    previous thread.
    It's kind of neat in that it places digital information in
    the images
    as noise. In most cases it's quite unobtrusive, but only you
    can be the
    judge of that.
    The information even survives through some minor editing of
    the files.
    So if somebody crops your visible watermark or does some
    other minor
    editing, the information is still in the file.
    I'm only an amateur photographer and my free trial ran out
    years ago. I
    did not get to see the tracking system in action with the
    trial
    version.
    Mark A. Boyd
    Keep-On-Learnin' :)

  • When I am trying to package my artwork in Adobe Illustrator CC, it is not capturing my images and fonts. How do I make sure my linked photos and fonts are captured?

    When I am trying to package my artwork in Adobe Illustrator CC, it is not capturing my images and fonts. How do I make sure my linked photos and fonts are captured?

    Not all fonts can be packaged depending on their licensing. Some fonts are set to not allow packaging. For those you would have to manually locate them on your computer and add them to the folder where the packaging occurred.
    For the images have you checked the "copy links" option?

  • Flash CS6 cant open play SWF files without importing and destroying them, how can I get around this?

    Flash CS6 can't open play SWF files without importing and destroying them, how can I get around this?
    I'm just trying to preview an swf file in flash like I have with all previous versions.

    What if my SWF loads external content from an online server?
    Not only does the current flash player prohibit such activity, it doesn't even pop open an error anymore saying there was an error connecting to an online source.
    Normally, I would simply drag the SWF into Flash and all connections would go through.  I could see traces, errors, and experience no issues.
    Now I can't even do that.  So what then?  You have crippled a fundamental use of the program, but THANK GOD we have that deco brush that nobody asked for.
    And for the record, the nature of my work benefits from not necessarily allowing the Flash Player to connect to online content.  The error it pops up?  That's simply another method of error checking that I require.  Updating the Flash Player options is not an option.
    Why would you even remove this key feature from Flash anyways?  It's been there for years ... has the ratio of people importing SWFs (a rather useless gesture in an increasing OOP world) really outweighed the people using Flash as a testing environment that much?

  • Hi yesterday i downloaded a software from i tunes for keyboard short cut and i don't know how to use them and install them, how to use keyboard shorts bought from i tunes

    hi yesterday i downloaded a software from i tunes for keyboard short cut and i don't know how to use them and install them, how to use keyboard shorts bought from i tunes

    You can install it on your iOS device (iPad, iPhone, iPod Touch) either by redownloading it directly on the device via the Purchased tab in the App Store app on it, or by connecting the device to your computer's iTunes and syncing it to it.
    Syncing apps from a Mac : iTunes 11 for Mac: Sync and organize iOS apps
    from a PC : iTunes 11 for Windows: Sync and organize iOS apps
    As to how to then use the app, if the description on the app's description page in the store doesn't describe how to use it in enough detail, then is there a link to the developer's website on its description page, and does that have details ?

  • Hi apple am new user to apple i just bought i phone 4s  and  i set up passowrd and forgot it how  and the iphone is not responding now how can i deal with this broblem please helpe

    hi apple am new user to apple i just bought i phone 4s  and  i set up passowrd and forgot it how  and the iphone is not responding now how can i deal with this broblem please helpe

    iPhone User Guide (For iOS 5.1 Software)

  • I just bought my apple tv and it says that it can't set the date and time? How do i fix this?

    I just bought my apple tv and it says that it can't set the date and time? How do i fix this?

    Welcome to the Apple Community.
    A number of users have encountered this problem, for existing users the problem has largely been resolved by restarting the Apple TV. However since you are a new user it would be wise to check that your settings are correct to begin with. Ensure the router allows access over port 123 (TCP) and that you are using the DNS settings provided by the ISP and not your own.

  • How do I create new versions of a large number of images, and place them in a new location?

    Hello!
    I have been using Aperture for years, and have just one small problem.  There have been many times where I want to have multiple versions of a large number of images.  I like to do a color album and B&W album for example.
    Previously, I would click on all the images at one, and select new version.  The problem is this puts all of the new versions in a stack.  I then have to open all the stacks, and one by one move the new versions to a different album.  Is there any way to streamline this proccess?  When it's only 10 images, it's no problem.  When it's a few hundred (or more) its rather time consuming..
    What I'm hoping for is a way to either automatically have new versions populate a separate album, or for a way to easily select all the new versions I create at one time, and simply move them with as few steps as possible to a new destination.
    Thanks for any help,
    Ricardo

    Ricardo,
    in addition to Kirby's and phosgraphis's excellent suggestions, you may want to use the filters to further restrict your versions to the ones you want to access.
    For example, you mentioned
      I like to do a color album and B&W album for example.
    You could easily separate the color versions from the black-and-white versions by using the filter rule:
    Adjustment includes Black&white
         or
    Adjustment does not include Black&white
    With the above filter setting (Add rule > Adjustment includes Black&White) only the versions with Black&White adjustment are shown in the Browers. You could do similar to separate cropped versions from uncropped ones.
    Regards
    Léonie

  • Copy and paste images and viewing them

    I just started using DW MX2004 to build ebay ads, but I am
    needing to copy and paste hosted images into the template and view
    them in design view. I am not using a server of any sort, just
    designing. When I copy and paste a hosted image into DW I would
    like to view it but all I get is a tiny image box.
    Is there a setting that will let me view these hosted images
    in design view?

    > I just started using DW MX2004 to build ebay ads
    MX 2004 will not display remotely hosted images in design
    view. period.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Trying to overlay text onto images and save them.

    What I want: I have a computer running the media in my car and I want to hook up a camera to it that'll record when the computer is running and overlay the GPS speed onto the video for later viewing.
    What I got: I have the following piece of code that saves a series of .jpg images at a specified frame rate and a separate Java application that puts them together into a .mov file to view later. I couldn't find anything to record the straight video so if you have any links for that, please point me. But for now I'll settle for doing it this way and I'm not too concerned with the GPS speed NMEA parsing for now, I'll just use a static speed label until I get the overlaying working.
    What I need: I need to know what to plug into the speedOverlay() method in order to grab the image and put the speed on top of it before saving it and moving to the next image. Any ideas?
    Code:
    import com.sun.image.codec.jpeg.JPEGCodec;
    import com.sun.image.codec.jpeg.JPEGEncodeParam;
    import com.sun.image.codec.jpeg.JPEGImageEncoder;
    import com.sun.media.sound.Toolkit;
    import javax.imageio.ImageIO;
    import javax.media.*;
    import javax.media.control.FrameGrabbingControl;
    import javax.media.format.VideoFormat;
    import javax.media.util.BufferToImage;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JTextField;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Font;
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.Panel;
    import java.awt.Shape;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.awt.font.TextLayout;
    import java.awt.geom.AffineTransform;
    import java.awt.image.BufferedImage;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.Timer;
    import java.util.TimerTask;
    public class SwingCapture1 extends Panel implements Runnable, ActionListener
         private static final long serialVersionUID = 1L;
         public static Player player = null;
         public CaptureDeviceInfo di = null;
         public MediaLocator ml = null;
         public JButton start = new JButton("START");
         public JButton stop = new JButton ("STOP NOW");
         public JLabel frequencyLabel = new JLabel("Frequency:");
         public JTextField frequencyInputField = new JTextField(5);
         public JLabel framerateLabel = new JLabel("Framerate: ");
         public JTextField framerateInputField = new JTextField(5);
         public JLabel timerLabel = new JLabel("Timer: ");
         public JTextField timerInputField = new JTextField(5);
         public JPanel southPanel = new JPanel();
         public static Buffer buf = null;
         public static Image img = null;
         public VideoFormat vf = null;
         public static BufferToImage btoi = null;
         public static ImagePanel imgpanel = null;
         public static Timer timer = new Timer();
         static int theFrameRate = 0;
         static int theTimeLength = 0;
         static int i = 0;
         static int interval = 0;
         int count = 0;
         static int timeLength = 0;
         static String filePrefix = "";
         static String imagesDirectory = "c:\\images\\";
         static boolean timerBoolean = true;
         Thread capThread;
         Toolkit toolkit;
         public SwingCapture1()
              setLayout(new BorderLayout());
    //          setSize(640, 480);
              imgpanel = new ImagePanel();
              start.addActionListener(this);
              final String str = "vfw:Microsoft WDM Image Capture (Win32):0";
              di = CaptureDeviceManager.getDevice(str);
              ml = new MediaLocator(str);
              try
                   player = Manager.createRealizedPlayer(ml);
                   player.start();
                   Component comp;
                   if ((comp = player.getVisualComponent()) != null)
                        add(comp, BorderLayout.LINE_START);
    //               add(capture);
                   add(imgpanel, BorderLayout.LINE_END);
                   add(southPanel, BorderLayout.SOUTH);
                   southPanel.add(framerateLabel);
                   southPanel.add(framerateInputField);
                   southPanel.add(timerLabel);
                   southPanel.add(timerInputField);
                   southPanel.add(start);
                   southPanel.add(stop);
              catch (final Exception e)
                   System.out.println("ERROR 1");
                   e.printStackTrace();
         public static void playerclose()
              player.close();
              player.deallocate();
         public void actionPerformed(final ActionEvent e)
              final JComponent c = (JComponent) e.getSource();
              if (c == start)
    //               snapPicture();
                   theFrameRate = Integer.parseInt(framerateInputField.getText());
                   theTimeLength = Integer.parseInt(timerInputField.getText());
                   startCapture(theFrameRate, theTimeLength);
              if (c == stop)
                   timerBoolean = false;
         public void startCapture(final int framerate, final int timeLength)
              interval = 1000 / framerate;
              // Start timer.
              timer.scheduleAtFixedRate(new TimerTask ()
                   public void run()
                        System.out.println("SNAP");
                        snapPicture();
                        count++;
                        if (count >= timeLength * framerate)
                             this.cancel();
              }, 1000, interval);
         public static void snapPicture()
              final FrameGrabbingControl fgc = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
              buf = fgc.grabFrame(); // Convert it to an image
              btoi = new BufferToImage((VideoFormat) buf.getFormat());
              img = btoi.createImage(buf); // show the image
              imgpanel.setImage(img); // save image
              // saveJPG(img, "c:\\java\\Tomcat\\webapps\\loadimage\\main.jpg");
              i++;
              speedOverlay(img);
              saveJPG(img, imagesDirectory + filePrefix + i + ".jpg");
         public static void speedOverlay(Image img)
         public static void saveJPG(final Image img, final String s)
              final BufferedImage bi = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
              final Graphics2D g2 = bi.createGraphics();
              g2.drawImage(img, null, null);
              FileOutputStream out = null;
              try
                   out = new FileOutputStream(s);
              catch (final java.io.FileNotFoundException io)
                   System.out.println("ERROR 2");
                   System.out.println("File Not Found");
              final JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
              final JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
              param.setQuality(0.5f, false);
              encoder.setJPEGEncodeParam(param);
              try
                   encoder.encode(bi);
                   out.close();
              catch (final java.io.IOException io)
                   System.out.println("ERROR 3");
                   System.out.println("IOException");
         public void start()
              if (capThread == null)
                   capThread = new Thread(this, "Capture Thread");
                   capThread.start();
         public Image getFrameImage()
              // Grab a frame
              final FrameGrabbingControl fgc = (FrameGrabbingControl)
              player.getControl("javax.media.control.FrameGrabbingControl");
              buf = fgc.grabFrame();
              // Convert it to an image
              btoi = new BufferToImage((VideoFormat)buf.getFormat());
              return btoi.createImage(buf);
         @Override
         public void run() {
              // TODO Auto-generated method stub
    }

    Sorry guys, I haven't looked at your links yet but I will, once I get some time to sit down and code again. I just wanted to provide this piece of code that uses the Graphics2d you're talking about to overlay text onto an image but I haven't been able to plug it into my code at all. If you're links answer the question, I'm sorry, just providing it until I can actually sit down and spend time on the research you've given me. Thanks.
    import java.awt.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import java.text.*;
    import java.util.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class WaterMark {
        public static void main(String[] args) throws IOException {
             String speed = "50";
            URL url = new URL("file:c:\\images\\1.jpg");
            BufferedImage im = ImageIO.read(url);
            String text = speed + " Km/H";
            Graphics2D g = im.createGraphics();
    //        g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
    //        g.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);
    //        g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g.setFont(new Font("Lucida Bright", Font.ITALIC, 40));
    //        g.rotate(-Math.PI/4, im.getWidth()/2, im.getHeight()/2);
            TextLayout tl = new TextLayout(text, g.getFont(), g.getFontRenderContext());
    //        Rectangle2D bounds = tl.getBounds();
    //        double x = (im.getWidth()-bounds.getWidth())/2 - bounds.getX();
    //        double y = (im.getHeight()-bounds.getHeight())/2 - bounds.getY();
            double x = 10;
            double y = 50;
            Shape outline = tl.getOutline(AffineTransform.getTranslateInstance(x+2, y+1));
    //        g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.3f));
            g.setPaint(Color.BLACK);
            g.draw(outline);
    //        g.setPaint(new GradientPaint(0, 0, Color.WHITE, 30, 20, new Color(128,128,255), true));
            tl.draw(g, (float)x, (float)y);
            g.dispose();
            display(im);
        public static void display(BufferedImage image) {
            JFrame f = new JFrame("WaterMark");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new JLabel(new ImageIcon(image)));
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • How can I use my Mac G3 (OS 9.2.2) to make Windows disk images and compress them into Windows stuffed archives?

    I have a collection of old Windows diskettes, 800 K and 1.4 MB.  I want to make disk images (or whatever is the Windows equivalent) and compress them into Windows stuffed archives.  I want Windows users to be able to download them, expand the stuffed archives, extract the disk images, and use the softsare on old Windows computers.  I need to do the work on a Power Macintosh beige G3 Tower using OS 9.2.2.  What software can I get to do it?

    To Jan, Greetings
    Thank you for your message and for your suggestions.
    Is WinZip a Mac application that makes compressed files that can be opened on a Windows computer?  If so, then do you have any notion where I could find a version old enough to run on OS 9.2.2?
    I noticed that DropStuff 6.0, which I use on my G3 Tower, has an option to make compressed files that are self-extracting on Windows.  Do you know if that works?  I suppose that I could make such a file and then find somebody with a Windows computer to test if for me.
    Yes, I could (shudder) get an old Windows computer somewhere, learn to use it, and do the project that way.  Do you know if the old versions of Windows include disk image programs and file compression  programs?  Or, would I need to buy some old software?
    Thank you for the information about the size of the diskettes.  As you've probably noticed, I don't know very much about Windows things.
    Sincerely,
    Frontiersman

  • Creating a magazine from Photoshop Images and transferring them to InDesign

    Hello,
    I'm in the process of creating a magazine. I have already started created the pages including their layout in Photoshop. I have CS4 and I want to transfer those images to InDesign and also incorporate Flash to produce a web-base magazine. How do I transfer those Photoshop images (files) into InDesign and also incorporate Flash.
    Attached are some finished pages so that you will have something to show me, in detail, on how this process is done, and/or IF, it can be done.

    Hi, smitty212.
    Hopefully everyone can agree to ignore some of the dialog above.
    Your question is a bit difficult, in large part because it appears that you did a lot of work in a way that could be very difficult to transfer, but you haven't given us full information about what you really have and what you need.
    Generally speaking, editable text in Photoshop is not very flexible. It's not easy to manage large amounts of text there, and depending on how you have used it, it may be nearly impossible to get the text out without retyping it.
    The normal use of InDesign, as you've probably gathered by now, is to place the text in text frames (either by typing or by File > Place-ing it from another application, or maybe cut-and-paste but probably not), and to place graphics in graphics frames (again, with File > Place. Never with cut-and-paste, which causes all manner of problems).
    Ideally, then, you'd have all the images in your layout as seperate files, and the text, too, and you could compose the layout as normal.
    The hard part will be rescuing the text. You may be able to cut and paste it out of Photoshop.
    It is possible that you might be able to save some work by converting pieces of the Photoshop layout to smart objects and placing those into InDesign.
    One thing to consider is how resolution-independent your output is going to be. In Photoshop, everything is a pixel. So if the work was done at a low resolution, it won't support resizing in InDesign. This is especially true of text that has been rasterized (converted to pixels). But if everything was high enough resolution in Photoshop, you may be able to get away with just placing the Photoshop images in InDesign. It won't be easily editable, but maybe that's ok.
    I hope this helps.

Maybe you are looking for

  • Error while installing Oracle 10g on Solaris 9 x86

    Hi all, I got several error after install oracle 10g. After I run the root.sh. It prompt : Starting Oracle CSS service under init(1M) Expecting the CRS daemons to be up within 120 seconds. Giving up: Oracle CSS stack appears NOT to be running. and wh

  • Suddenly can't connect to Time Capsule

    I have had a Time Capsule now for over a year and have had few problems. Nothing a restart here and there wouldn't fix. However, tonight I came home and am unable to connect wirelessly. I checked my TC and it was solid green light. But my MacBook cou

  • Change server name on WRT610N

    How do I change the server name "WRT610N" on status page? Firmware Version: 2.00.00 B05 Jul. 10, 2009 Firmware Verification: acb9d8e89ffa48af4d3d0f517d0f822e Current Time: Thu, 03 Dec 2009 00:16:22 Internet MAC Address: 00:18:F3:FA:555 Server Name :

  • How to get in when screen is locked due to backup?

    How do you get into an iPad that has been locked by icloud?

  • Accordion web part

    I have a web part that is built using JQuery to connect to the list on the backend to show the data and the data is within the 'web part. what is the best way to create an accordion UI for a list that can have 1 or multiple items in it?