- This topic has 16 replies, 3 voices, and was last updated 17 years, 1 month ago by Riyad Kalla.
-
AuthorPosts
-
iangregsonMemberThis message has not been recovered.
iangregsonMemberThis message has not been recovered.
Loyal WaterMemberThis message has not been recovered.
iangregsonMemberThis message has not been recovered.
iangregsonMemberThis message has not been recovered.
iangregsonMemberThis message has not been recovered.
Loyal WaterMemberThis message has not been recovered.
iangregsonMemberThis message has not been recovered.
Riyad KallaMemberThis message has not been recovered.
iangregsonMemberThanks once again fro your help… Much appreciated
iangregsonMemberHi 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”><html xmlns=”http://www.w3.org/1999/xhtml”
xmlns:ui=”http://java.sun.com/jsf/facelets”
xmlns:h=”http://java.sun.com/jsf/html”
xmlns:f=”http://java.sun.com/jsf/core” 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>
Riyad KallaMemberSo 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.
iangregsonMemberThankss 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….
iangregsonMemberAlso if i goto the servers tab .. i can see tomcat is started and in mode RUN
Riyad KallaMemberTry 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.
-
AuthorPosts