Hey Gang!
I thought I had a good idea but then I realized JSF doesn't play that...
I am trying to mimick what HTML can do in JSF when using target tags to related to inner HTML pages. In orther to get to a links going smoothly in JSF, on would do:
[CODE=JSF]
<%@ page contentType="te xt/html" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:view>
<html>
<head><title>js f h:commandLink example</title></head>
<body>
<h:form>
<h:commandLin k value="Click here for Homepage"
action="HomePag e" />
</h:form>
</body>
</html>
</f:view>
[/CODE]
This works great with the body of your JSF enabled JSP page. But in the case you need to use marginal links to fire such pages, as in frames from HTML pages, one would do:
Index.html
[CODE=HTML]
<html>
<head>
<title>Just Music </title>
</head>
<!--Company logo-->
<frameset rows=" 90,*">
<frame noresize="nores ize" src="rhlg.html" scrolling="no">
<!--Company link-->
<frameset cols=" 200,*">
<frame noresize="nores ize" src="link.html" scrolling="scro lling">
<!--Company body-->
<frame noresize="nores ize" src="default.ht ml" name="colours" marginheight="0 " marginwidth="10 ">
</frameset>
</frameset>
</html>
link.HTML
The link page in turn would have something like this:
[CODE=HTML]
<body bgcolor="#CCCCC C" onload="RotateI t()">
....
<table align="center" border="0" cellspacing="0" cellpadding="2" rules="cols" width="70" height="20" bgcolor="gray">
<tr bgcolor="red">
<td bgcolor="#D3D3D 3" colspan="2"><br >
<center><font size="-1">
<a href="default.h tml" target="colours ">Dököll Home</a><br>
<a href="sched103. html" target="colours ">Schedule</a>
<br>
<a href="MediaPlay list.html" target="colours ">Media Playlist</a>
<br>
<a href="Usolutes. html" target="colours ">Company info</a>
<br>
<a href="UAccessor .html" target="colours ">Dj Accessories</a>
<br>
<a href="Upinskeys .html" target="colours ">Pins & Keys</a>
<br>
<a href="UPhanthom DjListBox.html" target="colours ">Goods/Services</a>
<br>
<a href="UEmail.ht ml" target="colours ">Send Email</a></center>
</font> </p><center>
[/CODE]
....
The default page would be the HomePage...
On e links are accessed through link.HTML, the inner HTML frame would display HomePage.HTML.
Th problem is getting JSF to mimick this effortlessly, what I get is an additional window when you using:
[CODE=JSF]
<f:view>
<html>
<head><title>js f h:commandLink example</title></head>
<body>
<h:form>
<h:commandLin k value="Click here for Homepage"
action="HomePag e" />
</h:form>
</body>
</html>
</f:view>
[/CODE]
I cannot find a translation to from target="colours " in HTML to JSF.
Any input you have is appreciated.
Happy Sunday!
Dököll
I thought I had a good idea but then I realized JSF doesn't play that...
I am trying to mimick what HTML can do in JSF when using target tags to related to inner HTML pages. In orther to get to a links going smoothly in JSF, on would do:
[CODE=JSF]
<%@ page contentType="te xt/html" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:view>
<html>
<head><title>js f h:commandLink example</title></head>
<body>
<h:form>
<h:commandLin k value="Click here for Homepage"
action="HomePag e" />
</h:form>
</body>
</html>
</f:view>
[/CODE]
This works great with the body of your JSF enabled JSP page. But in the case you need to use marginal links to fire such pages, as in frames from HTML pages, one would do:
Index.html
[CODE=HTML]
<html>
<head>
<title>Just Music </title>
</head>
<!--Company logo-->
<frameset rows=" 90,*">
<frame noresize="nores ize" src="rhlg.html" scrolling="no">
<!--Company link-->
<frameset cols=" 200,*">
<frame noresize="nores ize" src="link.html" scrolling="scro lling">
<!--Company body-->
<frame noresize="nores ize" src="default.ht ml" name="colours" marginheight="0 " marginwidth="10 ">
</frameset>
</frameset>
</html>
link.HTML
The link page in turn would have something like this:
[CODE=HTML]
<body bgcolor="#CCCCC C" onload="RotateI t()">
....
<table align="center" border="0" cellspacing="0" cellpadding="2" rules="cols" width="70" height="20" bgcolor="gray">
<tr bgcolor="red">
<td bgcolor="#D3D3D 3" colspan="2"><br >
<center><font size="-1">
<a href="default.h tml" target="colours ">Dököll Home</a><br>
<a href="sched103. html" target="colours ">Schedule</a>
<br>
<a href="MediaPlay list.html" target="colours ">Media Playlist</a>
<br>
<a href="Usolutes. html" target="colours ">Company info</a>
<br>
<a href="UAccessor .html" target="colours ">Dj Accessories</a>
<br>
<a href="Upinskeys .html" target="colours ">Pins & Keys</a>
<br>
<a href="UPhanthom DjListBox.html" target="colours ">Goods/Services</a>
<br>
<a href="UEmail.ht ml" target="colours ">Send Email</a></center>
</font> </p><center>
[/CODE]
....
The default page would be the HomePage...
On e links are accessed through link.HTML, the inner HTML frame would display HomePage.HTML.
Th problem is getting JSF to mimick this effortlessly, what I get is an additional window when you using:
[CODE=JSF]
<f:view>
<html>
<head><title>js f h:commandLink example</title></head>
<body>
<h:form>
<h:commandLin k value="Click here for Homepage"
action="HomePag e" />
</h:form>
</body>
</html>
</f:view>
[/CODE]
I cannot find a translation to from target="colours " in HTML to JSF.
Any input you have is appreciated.
Happy Sunday!
Dököll
Comment