facebook

JSP Pallette – JSF option not shown

  1. MyEclipse Archived
  2.  > 
  3. UML Development
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #262867 Reply

    joebee
    Member

    I’ve recently begun to evaluate the workbench. When I attempt to edit a JSP, only the HTML-Basic and HTML-Form sections of the pallette are present. I was expecting to see folders for JSF-Form and Basic, not to mention Struts folders too. I have added JSF and Struts capabilities to my sample project. How do I access these folders, is a configuration parameter I have to set?

    Many thanks.

    #262883 Reply

    Riyad Kalla
    Member

    Ahh, to get those additional palettes you need to right click on your project, go down to “MyEclipse” and add Struts and/or JSF Capabilities to the project so MyEclipse understands the projects as such.

    #262935 Reply

    kneticaman
    Member

    I’ve never used MyEclipse before, I just downloaded and started using MyEclipse 5.1.0 GA today. I got through the Visual JSP Designer error using the -clear argument, and now am trying to use the JSP editor and I too am only seeing the HTML palettes. The project DOES have JSF capabilities added. For now, I’ll have to manually edit the file, but any help would be greatly appreciated.

    #262944 Reply

    Riyad Kalla
    Member

    kneticaman,
    If you right click on the file, and go to Open With, what is the default editor (the one with the black circle next to it)?

    Also what is the file name and what do the file contents look like?

    #264224 Reply

    tomkrussel
    Member

    I too just downloaded MyEclipse 5.1.0 GA, and I have the same issue as kneticaman. The project does have JSF capabilities added, but all I get are HTML palettes.

    The default editor is “MyEclipse Visual JSP Designer”. The filename is userLogin.jsp. Contents are below. I’m just trying to follow the directions in the JSF Quickstart tutorial (http://myeclipseide.com/enterpriseworkbench/help/index.jsp?topic=/com.genuitec.myeclipse.doc/html/quickstarts/webprojects/index.html)

    
    <%@ 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 'userLogin.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>
            <f:loadBundle basename="com.jsfdemo.MessageBundle" var="bundle"/> 
     
            <h:form id="loginForm" rendered="true">
                
            </h:form> 
        </f:view>
    </body>
    </html>
    
    #264226 Reply

    Riyad Kalla
    Member

    I cannot reproduce this locally, please see my screenshot. Also can you download this project, import it into your workspace, and open the single JSP page and see how it looks? Do you see the JSF palettes on the right hand side of the designer (MyEclipse Visual JSP Designer)?

    Also for comparison sake, my configuration information is as follows:

    
    *** Date: 
    Friday, January 5, 2007 2:20:04 PM MST
    
    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_08
    
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 5.1.0 GA
    Build id: 20061111-5.1.0-GA
    
    
    *** Eclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 5.1.0 GA
    Build id: 20061111-5.1.0-GA
    
    
    
    
    Eclipse Graphical Editing Framework
    
    Version: 3.2.1.v20060921
    Build id: 20060921-1617
    
    
    Eclipse Platform
    
    Version: 3.2.1.r321_v20060921-b_XVA-INSQSyMtx
    Build id: M20060921-0945
    
    
    Eclipse RCP
    
    Version: 3.2.1.r321_v20060801-2ekW2BxmcpPUOoq
    Build id: M20060921-0945
    
    
    Eclipse Java Development Tools
    
    Version: 3.2.1.r321_v20060905-R4CM1Znkvre9wC-
    Build id: M20060921-0945
    
    
    Eclipse Project SDK
    
    Version: 3.2.1.r321_v20060801-tQ1w49KnTArT0FZ
    Build id: M20060921-0945
    
    
    
    
    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Java\myeclipse-5.1\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    ff8_8c
    -vm
    C:\Java\myeclipse-5.1\jre\bin\javaw.exe
    
    Attachments:
    You must be logged in to view attached files.
    #264231 Reply

    tomkrussel
    Member

    I get the same result from the project you provided. The file opens with the MyEclipse Visual JSP Designer, but only the HTML palettes are available in the design and design/source tabs.

    My configuration is listed below. It looks like the biggest differences are that I’m running eclipse 3.2.0 and you’re running 3.2.1, and you seem to have installed the all-in-one version while I have the MyEclipse standalone version.

    
    *** Date: 
    Friday, January 5, 2007 4:37:58 PM EST
    
    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_09
    
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 5.1.0 GA
    Build id: 20061111-5.1.0-GA
    
    
    *** Eclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 5.1.0 GA
    Build id: 20061111-5.1.0-GA
    
    
    
    
    Eclipse Platform
    
    Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
    Build id: M20060629-1905
    
    
    Eclipse RCP
    
    Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
    Build id: M20060629-1905
    
    
    Eclipse Java Development Tools
    
    Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
    Build id: M20060629-1905
    
    
    Eclipse Plug-in Development Environment
    
    Version: 3.2.0.v20060609m------6zXJJzJzJq
    Build id: M20060629-1905
    
    
    Eclipse Project SDK
    
    Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
    Build id: M20060629-1905
    
    
    Eclipse Graphical Editing Framework
    
    Version: 3.2.1.v20060921
    Build id: 20060921-1617
    
    
    
    
    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    a14_88
    -data
    c:\myeclipse_workspace
    -product
    com.genuitec.myeclipse.product.ide
    -vm
    C:\WINDOWS\system32\javaw.exe
    
    #264232 Reply

    Riyad Kalla
    Member

    Ahh that could be it. MyEclipse 5.1.0 is built specifically for Eclipse 3.2.1, not Eclipse 3.2.0 (there were actually some small minor breaks between 3.2.0 and 3.2.1). Try updating your Eclipse version, then restarting with the -clean command line argument and see if that clears it up.

    #264235 Reply

    tomkrussel
    Member

    will do. i’m on a slow connection here, so i’ll download a little later and post back the results.

    thanks for the replies

    #264249 Reply

    tomkrussel
    Member

    That did the trick. I also noticed that I now have the “MyEclipse J2EE Perspective”, which was absent under 3.2.0. All of the other MyEclipse perspectives were there, but thee J2EE one was missing.

    The downloads page for MyEclipse states that MyEclipse 5.1.0 GA is for Eclipse 3.2.x. It doesn’t state that 3.2.1 is required. This is a little misleading…

    Anyway, thanks for your assistance. Things are working as expected now.

    #264251 Reply

    Riyad Kalla
    Member

    Tom I’m glad it’s working and you are right about the download page, that is misleading. I’ll mention it to our web guys and see if we can get a new graphic there.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: JSP Pallette – JSF option not shown

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