The Artima Developer Community
Sponsored Link

Java Answers Forum
How to get resultant page in different frame using JSF component

3 replies on 1 page. Most recent reply: Jun 18, 2009 3:31 AM by suresh kr

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
vinutha ml

Posts: 3
Nickname: vinutha
Registered: Nov, 2006

How to get resultant page in different frame using JSF component Posted: Nov 6, 2006 10:21 PM
Reply to this message Reply
Advertisement
I have designed one xhtml page using frameset, where i have included 3 frames to make one page, ie. one for header, one for menuTree & one for body,
This is my code,

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Frameset.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"& gt;
<frameset rows="33%,*" border="0" frameborder="0">
<frame name="f1" src="heading.jsf" scrolling="no" noresize="noresize" />
<frameset cols="25%,*">
<frame name="f2" src="menuTree.jsf" scrolling="no" noresize="noresize" />
<frame name="f3" src="body.jsf" scrolling="auto" noresize="noresize" />
</frameset>
</frameset>
</html>

In heading.jsf i have included one component like this,

<t:jscookMenu layout="hbr" theme="ThemeOffice" styleLocation="css/jscookmenu">
<t:navigationMenuItem id="nav_2" itemLabel="Health Record" action="#{menu1.someAction}" target="f3" />
</t:jscookMenu>

but when i click that "Health Record" component, the resulting page is displaying in the same header webpage, but i want to display that in body part, ie. frame name f3.

How to solve this problem..........

Regards,
Vinutha.


Dave Hinton

Posts: 42
Nickname: catbells
Registered: Oct, 2003

Re: How to get resultant page in different frame using JSF component Posted: Nov 7, 2006 1:17 AM
Reply to this message Reply
You do not say what the t: component is, but you must ensure it includes target=f3 in the <a> tags somehow.

vinutha ml

Posts: 3
Nickname: vinutha
Registered: Nov, 2006

Re: How to get resultant page in different frame using JSF component Posted: Nov 7, 2006 1:30 AM
Reply to this message Reply
This is my heading.jsf page,

<!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"
xmlns:t="http://myfaces.apache.org/tomahawk">
<head>
</head>
< ;body>
<f:view>
<h:form>
<t:jscookMenu layout="hbr" theme="ThemeOffice" styleLocation="css/jscookmenu">
<t:navigationMenuItem id="nav_2"
itemLabel="Health Record"
action="#{menu1.someAction}" target="f3" />
</t:jscookMenu>
</h:form>
</f:view>
</body>
</html>

so, when i click "Health Record" component, the resulting page should be displayed in body.jsf, but in my case the resulting page is displaying in heading.jsf frame itself.

please, tell me how to solve this problem

Regards,
Vinutha.

suresh kr

Posts: 1
Nickname: sureshkr
Registered: Jun, 2009

Re: How to get resultant page in different frame using JSF component Posted: Jun 18, 2009 3:31 AM
Reply to this message Reply
just try like this

action='javascript:window.open("filename.jsf","framename")'

it will work.

Flat View: This topic has 3 replies on 1 page
Topic: Thread Synchronization Previous Topic   Next Topic Topic: circular buttons

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use