Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Paul Clapham
Ron McLeod
Jeanne Boyarsky
Tim Cooke
Sheriffs:
Liutauras Vilda
paul wheaton
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Carey Brown
Frits Walraven
Bartenders:
Piet Souris
Himai Minh
Forum:
JSF
How to display popup in JSF
Venu Babu Ravi
Greenhorn
Posts: 16
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How to display popup on click of some button on the
jsp
?
venubabu.ravi
Davie Lin
Ranch Hand
Posts: 294
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
do you know how to open a pop-up on HTML?
Venu Babu Ravi
Greenhorn
Posts: 16
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
No I have not used Html popup even previously.
venubabu.ravi
Davie Lin
Ranch Hand
Posts: 294
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
just google this topic, doesn't have to include
JSF
in your google search unless you need specific JSF functionality
Venu Babu Ravi
Greenhorn
Posts: 16
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Ok Thanks
venubabu.ravi
Eswar Nec
Ranch Hand
Posts: 105
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
mainPage.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %> <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <f:view> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Main Page</title> </head> <body> <h:form id="mainWindowForm"> <rich:panel> <a4j:commandButton onclick="window.open('sample.jsp','open_window', 'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, width=1000, height=700, left=0, top=0')" value="OpenPopup"/> </rich:panel> </h:form> </body> </html> </f:view>
Before run this code, Just create sample jsp page (sample.jsp).
Both program (mainPage.jsp and sample.jsp) you will maintain same location.
Wake up! Don't let your smile be snatched away by anybody!
Regards, Eswar
Thank you my well lotioned goddess! Here, have my favorite tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
java swing
How to create an action listner?
Not able to change my name
jquery popup
how to create tablespace in java dbms
More...