Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search Coderanch
Advance search
Google search
Register / Login
Pari Gandhi
Greenhorn
+ Follow
10
Posts
0
Threads
0
Cows
since Feb 26, 2009
Merit badge:
grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
Ranch Hand Scavenger Hunt
Number Posts (10/100)
Number Threads Started (0/100)
Number Cows Received (0/5)
Number Likes Received (0/10)
Number Likes Granted (0/20)
Set bumper stickers in profile (0/3)
Report a post to the moderators (0/1)
Edit a wiki page (0/1)
Create a post with an image (0/2)
Greenhorn Scavenger Hunt
First Post
Number Posts (10/10)
Number Threads Started (0/10)
Number Likes Received (0/3)
Number Likes Granted (0/3)
Set bumper stickers in profile (0/1)
Set signature in profile
Search for a post/thread (0/3)
Set a watch on a thread
Save thread as a bookmark
Create a post with an image (0/1)
Recent posts by Pari Gandhi
Making the Whole Form ReadOnly
http://www.irian.at/myfacesexamples/displayValueOnly.jsf
show more
15 years ago
JSF
Phase-listener not being called
have you tried debugging?
show more
15 years ago
JSF
How can we represent a matrix like structure in jsf.
See
http://www.irian.at/myfacesexamples/crossDataTable.jsf
show more
15 years ago
JSF
unable to instantiate tag f:view
If you are using Facelets, make sure that you have
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"> ........
If you are using JSP, make sure that you have
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
at the top.
show more
15 years ago
JSF
Usage of Tomahawk SourceCodeServlet
The SourceCodeServlet is used to serve the source code (jsp) as a html page.
For Example :
http://www.irian.at/myfacesexamples/masterDetail.jsp.source
This is what the servlet does:- (Nothing fancy)
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { String webPage = req.getServletPath(); // remove the '*.source' suffix that maps to this servlet int chopPoint = webPage.indexOf(".source"); webPage = webPage.substring(0, chopPoint - 1); webPage += "p"; // replace jsf with jsp // get the actual file location of the requested resource String realPath = getServletConfig().getServletContext().getRealPath(webPage); // output an HTML page res.setContentType("text/plain"); // print some html ServletOutputStream out = res.getOutputStream(); // print the file InputStream in = null; try { in = new BufferedInputStream(new FileInputStream(realPath)); int ch; while ((ch = in.read()) !=-1) { out.print((char)ch); } } finally { if (in != null) in.close(); // very important } }
show more
15 years ago
JSF
Strange problem. Formgetting submitted in firefox but not in IE
Show us the code.
show more
15 years ago
JSF
JSF page refresh after csv file download.(POI)
public void openPopupClicked(ActionEvent event) { // View's id in the same form as used in the navigation rules in faces-config.xml // This value could be passed as parameter (using <f:param>) final String viewId = "/popup.faces"; FacesContext facesContext = FacesContext.getCurrentInstance(); // This is the proper way to get the view's url ViewHandler viewHandler = facesContext.getApplication().getViewHandler(); String actionUrl = viewHandler.getActionURL(facesContext, viewId); String javaScriptText = "window.open('"+actionUrl+"', 'popupWindow', 'dependent=yes, menubar=no, toolbar=no');"; // Add the Javascript to the rendered page's header for immediate execution AddResource addResource = AddResourceFactory.getInstance(facesContext); addResource.addInlineScriptAtPosition(facesContext, AddResource.HEADER_BEGIN, javaScriptText); }
See
http://wiki.apache.org/myfaces/JavascriptOpenNewWindow
for more information
show more
15 years ago
JSF
using validations in JSF
As Balusc said, JSF comes with a validation framework. Its quite good.
BTW, I recently read about the Oval framework (
http://oval.sourceforge.net/
) - Havn't used this though.
See
http://code.google.com/p/jsfatwork/
for a full stack JSF application with Oval framework.
show more
15 years ago
JSF
display message when page is first displayed
you could use a phase listener to add the message to the faces context before rendering the page.
show more
15 years ago
JSF
How do i capture HtmlCommandButton click
public void setActionExpression(javax.el.MethodExpression actionExpression)
show more
15 years ago
JSF