facebook

Add JSF Facelets capabilities is greyed out

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

    iangregson
    Member

    This message has not been recovered.

    #276241

    iangregson
    Member

    This message has not been recovered.

    #276259

    Loyal Water
    Member

    This message has not been recovered.

    #276265

    iangregson
    Member

    This message has not been recovered.

    #276266

    iangregson
    Member

    This message has not been recovered.

    #276267

    iangregson
    Member

    This message has not been recovered.

    #276333

    Loyal Water
    Member

    This message has not been recovered.

    #276381

    iangregson
    Member

    This message has not been recovered.

    #276410

    Riyad Kalla
    Member

    This message has not been recovered.

    #276537

    iangregson
    Member

    Thanks once again fro your help… Much appreciated

    #276539

    iangregson
    Member

    Hi there,i followed the tutorials etc… but i have a problem.. i created my standard XHTML file with advanced JSF template attached … as per tutorial… So now i click RUN in the toolbar… and it opens up index.jsp…. no problems… i add to the url line MyXhtml.xhtml… but it wants to OPEN it and not display it…. I have added JSF and JSF Facelets… my xhtml file just contains a simple h:inputSecret… for testing…

    What am i missing? thanks

    Also is it now possible to PREVIEW the myXhtml.xhtml direct??? right click and preview or something???

    actually to explain it properly here is the xhtml file source.. its not too big…

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;

    <html xmlns=”http://www.w3.org/1999/xhtml&#8221;
    xmlns:ui=”http://java.sun.com/jsf/facelets&#8221;
    xmlns:h=”http://java.sun.com/jsf/html&#8221;
    xmlns:f=”http://java.sun.com/jsf/core&#8221; xml:lang=”en” lang=”en”>
    <head>
    <title>My Facelets Page</title>
    <meta http-equiv=”keywords” content=”enter,your,keywords,here” />
    <meta http-equiv=”description”
    content=”A short description of this page.” />
    <meta http-equiv=”content-type” content=”text/html; charset=UTF-8″ />

    <!–<link rel=”stylesheet” type=”text/css” href=”styles.css”>–>
    </head>
    <body>

    <f:view><p>
    <ui:insert name=”body”>This is my JavaServer Facelets page.<h:form>
    <h:inputSecret></h:inputSecret>
    </h:form></ui:insert>
    </p></f:view></body>
    </html>

    #276556

    Riyad Kalla
    Member

    So now i click RUN in the toolbar

    Be sure you are using the “Run As > MyEclipse Server Application” if you need to run an entire webproject, you cannot “run” individual files using the standard Run command.

    i add to the url line MyXhtml.xhtml… but it wants to OPEN it and not display it

    What does the URL look like that you are trying to open? You might be deploying it wrong and literally opening the .xhtml page instead of requesting the server host it back to you.

    #276574

    iangregson
    Member

    Thankss for your continued help.. i have confirmed i am Run as service application.. this opens the index.jsp which functions good.. Everything opens in the IDE though .. i presume i force it to open in firefox??

    The url i am using to open my xhtml is this

    http://vista-developer:8080/Javaumps/MyXhtml.xhtml

    basically because i can’t open the page directly .. i RUN .. and then opens the index.jsp and i just add the MyXhtml.xhtml to the end of it … it is a valid url … as i say because it wants to OPEN IT or SAVE IT..

    Now what i have confirmed is that if I open it using Firefox it seems to work … but the URL is now this

    file:///C:/Users/Ian/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.IE5/MMZAVPBG/MyXhtml%5B1%5D.xhtml

    I have viewed the source and i can see inputSecret in the source html but it doesn’t display anything in the preview i.e. a box with asterisks in etc.

    I have also tried to put the URL directly into firefox i.e. http://vista-developer:8080/Javaumps/MyXhtml.xhtml

    and again it seems to open it good and in the source is the inputsecret control but it doesn’t seem to get rendered….

    should i be opening it direct in firefox … i.e. manually launching firefox and pasting the url in there….

    #276575

    iangregson
    Member

    Also if i goto the servers tab .. i can see tomcat is started and in mode RUN

    #276616

    Riyad Kalla
    Member

    Try accessing it with http://vista-developer:8080/Javaumps/MyXhtml.faces

    You need to use the JSF mapping to access the page, otherwise you just get back the literal template.

Viewing 15 posts - 1 through 15 (of 17 total)
Reply To: Add JSF Facelets capabilities is greyed out

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