[Last Call] Learn how to a build a cloud-first strategyRegister Now


How do I display an XML file in JSF portlet?

Posted on 2008-11-09
Medium Priority
Last Modified: 2013-11-24
I have an XML file containing a reference to another XML file for styling:
<?xml-stylesheet type="text/xsl" href="Viewer.xml"?>
When I open my XML in a browser, the viewer file controls the appearance of my file.

I would like to display my XML in a JSF portlet, and have this viewer file control its appearance in the JSF as well. Is there a way to do this?
Question by:maor
1 Comment

Accepted Solution

maor earned 0 total points
ID: 23075253
Ended up writing a parser to read the XML file and convert it into objects for the JSF to display.
This is not what I was hoping for, as it depends on the structure of the XML. Any change will result in my parser not working properly.

However, this solution is good enough for now, so I'm closing the question.
If anyone has a better solution, I'll be happy to hear it.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question