File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Display XML content Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Display XML content" Watch "Display XML content" New topic
Author

Display XML content

Jitender Kumar
Greenhorn

Joined: Jan 03, 2006
Posts: 25
Is it possible to display XML content in any of the JSF components? The display should be similar to the way an XML document is displayed in browser.

A quick response is appreciated.

Thanks,
Jitender.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 12513

You'd need XML renderers for the tags. You're probably better off just calling a servlet and having the servlet put out a text/xml response instead.

The XML formatting you're used to seeing in most web browsers is actually based on whether or not you pair it with a display XSLT. If you do not, a default XSLT is often used. In Internet Explorer, that's how you get the "click-to-collapse" outline view - the default XSLT transform attaches some DHTML display magic to the page.


One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
 
 
subject: Display XML content
 
Threads others viewed
Beginning XML with DOM and Ajax: From Novice to Professional
XML vs CSS with ASP
XML in presentation layer
forwarding xml cotent from servlet to a jsp
How to Display the BLOB Field
IntelliJ Java IDE