Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does the Faces Console software change the formatting of my JavaServer Faces config file?

0
Posted

Why does the Faces Console software change the formatting of my JavaServer Faces config file?

0

The Faces Console software uses an XML parser (JDOM + Xerces) to read in JavaServer Faces config files. XML parsers seem to “lose” some of an XML file’s orginal formatting when parsing XML documents. This results in poor formatting of generated/saved XML files once they have been manipulated. To get around this limitation the Faces Console has options for how output is generated. Please see the help page for more information on this. 2. Is there anyway to have the Pretty Output feature preserve comments in my JavaServer Faces config file? Unfortunately, due to the way XML is structured and how XML parsers work there is no way (at least that I know of) to preserve comments in config files when using the Pretty Output feature. The problem lies in the fact that XML comments can be placed before or after XML tags. So for instance, some people may put comments before a tag starts and some people may put comments after a tag starts or perhaps both. When the Faces Console adds or removes XML

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123