Author Topic: B3: Beautification of xhtml files doesn't work  (Read 1288 times)


  • Senior Community Member
  • Posts: 260
  • Hero Points: 26
B3: Beautification of xhtml files doesn't work
« on: September 09, 2017, 03:20:31 pm »
Beautification of xhtml files with embedded javascript elements is supposed to switch from the XML to the JS beautifier for the outputscript elements. Well, it doesn't.  As an aside, it doesn't do context tagging and symbol coloring for those embedded snippets either.

Code: [Select]
<ui:composition xmlns=""
  xmlns:h="" xmlns:p=""
  xmlns:f="" xmlns:c="">

  <div class="actionButtonContainer">
    <div class="actionButtons">
      <ui:insert name="actionButtons"/>

    <p:outputPanel layout="block" id="exportContainer"
      rendered="#{not context.protected}">
      <h:panelGroup layout="block" id="exportMessage"
        rendered="#{backingBean.state gt 0}">
          if (!(typeof document.statusInterval === 'undefined')) {
          clearInterval(document.statusInterval); } document.statusInterval =
          setInterval(function(){ repaintExportContainer(); }, 5000);
      <h:panelGroup layout="block"
        rendered="#{backingBean.state eq 0 or backingBean.state eq 4}">
        <h:outputScript type="text/javascript">
          if (!(typeof document.statusInterval === 'undefined')) {
          clearInterval(document.statusInterval); document.statusInterval =
          null; }

        /* <![CDATA[ */
            function repaintExportContainer() {
            function exportComplete() {
                      if ($("#exportPage").length && $("#exportCompletedPanel").length) {
    function updateExportState() {
            // TODO
/* ]]> */



  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1640
  • Hero Points: 140
Re: B3: Beautification of xhtml files doesn't work
« Reply #1 on: September 11, 2017, 01:18:09 pm »
Well, XHTML, yes, but we do not currently recognize JSF tags.  I'd need to look more carefully at the JSF namespace, but I suspect it won't be too different from what we do for inline <script type="javascript"> tags in HTML.  But it probably won't make it for v22 though.