facebook

JSF graphicImage oddities

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #276857 Reply

    sandman42
    Member

    Hi,

    System is a fresh installation of MyEclipse 6.0GA full installer, XP SP2. Installation summary is:

      *** Date:
      Friday, October 12, 2007 5:49:50 PM CEST

      ** System properties:
      OS=WindowsXP
      OS version=5.1
      Java version=1.5.0_11

      *** MyEclipse details:
      MyEclipse Enterprise Workbench
      Version: 6.0.0 GA
      Build id: 6.0.0-GA-200708

      *** Eclipse details:
      MyEclipse Enterprise Workbench

      Version: 6.0.0 GA
      Build id: 6.0.0-GA-200708

      Eclipse Platform

      Version: 3.3.0.v20070612-_19UEkLEzwsdF9jSqQ-G
      Build id: I20070625-1500

      Eclipse RCP

      Version: 3.3.0.v20070607-8y8eE8NEbsN3X_fjWS8HPNG
      Build id: I20070625-1500

      Eclipse Java Development Tools

      Version: 3.3.0.v20070606-0010-7o7jCHEFpPoqQYvnXqejeR
      Build id: I20070625-1500

      Eclipse Plug-in Development Environment

      Version: 3.3.0.v20070607-7N7M-DUUEF6Ez0H46IcCC
      Build id: I20070625-1500

      Eclipse Project SDK

      Version: 3.3.0.v20070607-7M7J-BIolz-OcxWxvWAPSfLPqevO
      Build id: I20070625-1500

      Eclipse Graphical Editing Framework

      Version: 3.3.0.v20070620
      Build id: 20070620-1021

      Eclipse startup command=-os
      win32
      -ws
      win32
      -arch
      x86
      -showsplash
      -launcher
      C:\Programmi\MyEclipse 6.0\eclipse\eclipse.exe
      -name
      Eclipse
      –launcher.library
      C:\Programmi\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.0.v20070523\eclipse_1017a.dll
      -startup
      C:\Programmi\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.0.v20070606.jar
      -exitdata
      814_70
      -vm
      C:\Programmi\MyEclipse 6.0\jre\bin\javaw.exe

    Test bed: New Web Project, Add JSF capabilities, create a JSF page with some name, say “somePage.jsp”, either by editing faces.xml or with New … JSP (advanced templates). Then import somewhere in your project (I did it under WebProject/images) two jpg file, say MyJpg1.jpg and MyJpg2.Jpg.

    Then, in the new JSF page add a panel grid, a graphic image, click on it and go in the properties tab in order to select one of the two imported jpg’s.

    I’ve noticed the following problems:

    1) either clicking on the browse button near url on value, shows a “Select file” window with only Myproject, and when I expand it there is nothing. Further clicking on browse button have no effect, i.e. no windows is shown.
    2) Doing it by hand, I put MyJpg1 inside the panel grid, and MyJpg2 outside. In the preview pane they are correctly displayed, while running on MyEclipse tomcat only MyJpg2 is shown. MyJpg1 grid position has the red X inside a square, typical of an image not found.

    This is the page source:

    <%@ page language="java" pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
        <base href="<%=basePath%>">
    
        <title>My JSF 'somePage.jsp' starting page</title>
        
        <meta http-equiv="pragma" content="no-cache">
        <meta http-equiv="cache-control" content="no-cache">
        <meta http-equiv="expires" content="0">    
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
        <meta http-equiv="description" content="This is my page">
        <!--
        <link rel="stylesheet" type="text/css" href="styles.css">
        -->
    
    </head>
      
    <body>
        <f:view>
                <h:panelGrid border="1" columns="2">
                    <h:graphicImage url="images/MyJpg1.jpg"></h:graphicImage>
                    <h:outputText value="item1"></h:outputText>
                    <h:outputText value="item2"></h:outputText>
                    <h:outputText value="item3"></h:outputText>
                    <h:outputText value="item4"></h:outputText>
                </h:panelGrid>
                <h:graphicImage url="images/MyJpg2.jpg"></h:graphicImage>This is my JSF JSP page. <br>This is silly text<br>
        </f:view>
    </body>
    </html>

    I think that 1) is a bug. I’m not sure of 2). Is it a bug or am I missing something?

    Ciao

    #276873 Reply

    Loyal Water
    Member

    I guess you have uncovered a bug here. I was able to reproduce this at my end. Ill file this for my dev team. Thank you for the detailed post.

    #276875 Reply

    sandman42
    Member

    @support-nipun wrote:

    I guess you have uncovered a bug here.

    How many? I.e. 1) is a bug IMHO, but 2)????

    @support-nipun wrote:

    Thank you for the detailed post.

    You’re welcome.

    Ciao

    #276885 Reply

    Loyal Water
    Member

    This message has not been recovered.

    #276892 Reply

    sandman42
    Member

    This message has not been recovered.

    #276899 Reply

    Loyal Water
    Member

    This message has not been recovered.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: JSF graphicImage oddities

You must be logged in to post in the forum log in