Ajeeth Kumar

Ranch Hand
+ Follow
since Mar 30, 2005
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
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ajeeth Kumar

I am also facing the same error . I cross verified my web.xml and it doesnt have 2 entries for the same servlet, but still it keeps giving the following error. Looks like the entry is present in some archive file within the RSA internal folder...not sure how to get rid of this

12 years ago

Marcos Silvestri wrote:It's been a long time now, but it does not hurt asking...

Have this be resolved?

Jordan, if you're still around and remember how to solve this, I'd be glad to have your thoughts.

I've been working on this and counting on this thread to share what's happening here: https://coderanch.com/t/555081/JSF/java/response-setContentType-application-download-not#2518376

Thanks in advance!



Are you still facing issues or is it resolved?

The best solution that worked for me is to stop adding the response content behaviour manipulations in JSF.
Try adding response.complete and just do a flush before closing the streams. No need to use ZipOutput streams. Use buffer streams only if you are planning on sending huge data(more than 2 MB/4 MB approx)
12 years ago
JSF
Why cant you use rich:datatable instead?
12 years ago
JSF
I think that the jsf tags are not recognized in the pop up. Ensure that you have added the taglib references on the pop up page.
Remove all the other components and Try to add a simple outputText to confirm JSF is working .If it still doesnt work, please post the code and I shall try my best to resolve.
12 years ago
JSF
Is the template of the pop-up based on the same template thats being used in the other pages?
12 years ago
JSF
Hibernate is just used to simplify writing queries and to speedup codding for complex search screens. When you are using only SProcs, I dont find there is a vast sea of difference b/w using JDBC and ORM tools.
Sorry Sarah, I have never tried to port a DB along with a JAR.
Buddies, looking for a quick answer... many of you might have come across this problem.
12 years ago
JSF
I am trying to show to a special error page for only one of the JSF pages in my application.
I tried to throw SpecialException from all the BB methods and entered a error-page mapping with SpecialException entry in web.xml.

Still whenever an error occurs, I am redirected to commonerror.xhtml which is associated with javax.faces.FacesException.
How to solve this issue?
12 years ago
JSF
Glad that I could be of some help

Now coming to your current issue, If I got it right, you would not be able to port a DB inside a jar file a la some text file. You would have to include the required JARs within your custom jar and then create the DB whenever your application runs in the system.
Sorry Naveen, I haven't used dsiplay tags in the last 5 years, so I am not sure of the best and easy way to do that.

I can think of a solution where you can call a script on page load to set the column colors but Lets wait to see if some other ranchers have an answer for this.
Though this looks like a difficult problem, the solution is simple. Just using stylesheet and javascript you can change the appearance of your webpages.
Whenever the user selects a particulat TICKET color from the dropdown invoke a javascript method like setColumnColor(selectedColor).



Within that method, set the styles of the cells as follows
You can include a blank header(or footer ) element in your all jsp pages and set the following inside it using scriptlets.

httpResponse .setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1.
httpResponse .setHeader("Pragma", "no-cache"); // HTTP 1.0.
httpResponse .setDateHeader("Expires", 0); // Proxies.


The simple way for doing that is to use include-coda option in your web.xml. If you are using struts then you can configure the same using tiles.
12 years ago
Any folder outside the src folder is not available in the classpath, so it would be missed. You can try to add the folder in the classpath entries by clicking on Run configurations->Classpath-> Advanced options.
Do let me know if this works or not.
Look for options to include all the files under the source folder. ( I believe your properties files is inside the src folder, else you can use ant scripts to create the jar file and make the necessary tweaks to create jar with property file).