How do I display an XML file in JSF portlet?

Posted on 2008-11-09
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

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    Title # Comments Views Activity
    format the code in java 6 60
    NotAlone Challenge 20 65
    FizzBuzz challenge 9 64
    Getting attribute Values using xslt 4 28
    The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
    Introduction In my previous article ( I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
    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.

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now