Let's say I wrote
<div>
|
| <s:link view="/db/channelsList.xhtml"
| rendered="#{channelsQuery.previousExists}"
| value="#{messages.left}#{messages.left} First Page" id="firstPage">
| <f:param name="firstResult" value="0" />
| </s:link>
|
| <s:link view="/db/channelsList.xhtml"
rendered="#{channelsQuery.previousExists}"
| value="#{messages.left} Previous Page" id="previousPage">
| <f:param name="firstResult" value="#{channelsQuery.previousFirstResult}"
/>
| </s:link>
|
| <s:link view="/db/channelsList.xhtml"
rendered="#{channelsQuery.nextExists}"
| value="Next Page #{messages.right}" id="nextPage">
| <f:param name="firstResult" value="#{channelsQuery.nextFirstResult}" />
| </s:link>
|
| <s:link view="/db/channelsList.xhtml"
rendered="#{channelsQuery.nextExists}"
| value="Last Page #{messages.right}#{messages.right}" id="lastPage">
| <f:param name="firstResult" value="#{channelsQuery.lastFirstResult}" />
| </s:link>
|
| </div>
With Eclipse | Window | Preferences | Web and XML | XML Files | XML Source I
have settings: OFF Clear all blank lines. Same for HTML Files | HTML Source.
Then with Crtl-Shift-F and with Ctrl-I I get
<div><s:link view="/db/channelsList.xhtml"
| rendered="#{channelsQuery.previousExists}"
| value="#{messages.left}#{messages.left} First Page" id="firstPage">
| <f:param name="firstResult" value="0" />
| </s:link> <s:link view="/db/channelsList.xhtml"
rendered="#{channelsQuery.previousExists}"
| value="#{messages.left} Previous Page" id="previousPage">
| <f:param name="firstResult" value="#{channelsQuery.previousFirstResult}"
/>
| </s:link> <s:link view="/db/channelsList.xhtml"
rendered="#{channelsQuery.nextExists}"
| value="Next Page #{messages.right}" id="nextPage">
| <f:param name="firstResult" value="#{channelsQuery.nextFirstResult}" />
| </s:link> <s:link view="/db/channelsList.xhtml"
rendered="#{channelsQuery.nextExists}"
| value="Last Page #{messages.right}#{messages.right}" id="lastPage">
| <f:param name="firstResult" value="#{channelsQuery.lastFirstResult}" />
| </s:link></div>
I just found out the HTML Files settings seem to apply, not the XML Files
settings. How? Because when I change in HTML Files | HTML Source to ON Split
multiple attributes each on a new line I get
<div><s:link
| view="/db/channelsList.xhtml"
| rendered="#{channelsQuery.previousExists}"
| value="#{messages.left}#{messages.left} First Page"
| id="firstPage">
| <f:param
| name="firstResult"
| value="0" />
| </s:link> <s:link
| view="/db/channelsList.xhtml"
| rendered="#{channelsQuery.previousExists}"
| value="#{messages.left} Previous Page"
| id="previousPage">
| <f:param
| name="firstResult"
| value="#{channelsQuery.previousFirstResult}" />
| </s:link> <s:link
| view="/db/channelsList.xhtml"
| rendered="#{channelsQuery.nextExists}"
| value="Next Page #{messages.right}"
| id="nextPage">
| <f:param
| name="firstResult"
| value="#{channelsQuery.nextFirstResult}" />
| </s:link> <s:link
| view="/db/channelsList.xhtml"
| rendered="#{channelsQuery.nextExists}"
| value="Last Page #{messages.right}#{messages.right}"
| id="lastPage">
| <f:param
| name="firstResult"
| value="#{channelsQuery.lastFirstResult}" />
| </s:link></div>
But it still ignores that I have OFF Clear all blank lines. My visual grouping
with empty lines is gone.
And here is one that upset me, but I guess I can get used to it. From
<h:form id="searchForm" styleClass="formArea">
| <table class="formTable">
|
| <tr class="formRow">
| <td class="formFieldName">ID</td>
| <td class="formFieldValue">
| <h:inputText id="id" value="#{channelsQuery.channel.id}" />
| </td>
| </tr>
|
| <tr class="formRow">
| <td class="formFieldName">Title</td>
| <td class="formFieldValue">
| <h:inputText id="title" value="#{channelsQuery.channel.title}" />
| </td>
| </tr>
|
| </table>
| </h:form>
it makes
<h:form id="searchForm" styleClass="formArea">
| <table class="formTable">
|
| <tr class="formRow">
| <td class="formFieldName">ID</td>
| <td class="formFieldValue"><h:inputText id="id"
| value="#{channelsQuery.channel.id}" /></td>
| </tr>
|
| <tr class="formRow">
| <td class="formFieldName">Title</td>
| <td class="formFieldValue"><h:inputText id="title"
| value="#{channelsQuery.channel.title}" /></td>
| </tr>
|
| </table>
| </h:form>
Note how it pulled up the h:inputText. Now if I'd have wanted that without a
space to the td I'd have put it there myself. But at least it lets my tr
separated by lines.
Seems to have its own ideas there, with keeping spacing lines between tr but
not between s:link, though it keeps whitespace in form of a single space
between the s:link.
Decides for me I can't have whitespace between the td and its contents. Not
ideal.
By now I can almost get used to it, after this discussion, but I still think it
is less than good.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010454#4010454
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010454
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user