A
A
Alexiuscrow2014-12-07 07:45:42
Java
Alexiuscrow, 2014-12-07 07:45:42

JSF. How to explicitly set formatting for an XHTML page?

You must explicitly format the source code of the returned XHTML file so that it contains tabs.
Example
Now

<!DOCTYPE html>
<html xmlns="..."><head><script type="..." src="..."></script></head> 
  <body><form id="..." name="..." method="..." enctype="..."><input id="..." name="..." type="..." value="" /><input id="..." name="..." type="..." value="..." onclick="..." value="..." /></form><span id="..."></span>
  </body> 
</html>

Need
<!DOCTYPE html>
<html xmlns="...">
   <head>
       <script type="..." src="..."></script>
   </head>
   <body>
        <form id="..." name="..." method="..." action="..." enctype="...">
            <input id="..." name="..." type="..." value="" />
            <input id="..." name="..." type="..." value="..." onclick="..." />
        </form>
        <span id="..."></span>
  </body> 
</html>

How can I do that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai, 2014-12-10
@j_wayne

It's probably not whitespaces themselves that are important to you, but adequate alignment?
If so, then:
stackoverflow.com/questions/3604248/jsf-prettify-b...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question