How to Insert a linebreak into a table cell?
[Logo]
ICEfaces Forums
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
How to Insert a linebreak into a table cell?  XML
Forum Index -> General Help
Author Message
kuchumovn

Joined: 16/06/2008 00:00:00
Messages: 23
Offline


hello
we have a table, which contains "comments" column
a comment is a usual text, for example what i am currently typing is a comment
and therefore, it contains linebreaks

we declare a table like this:

Code:
					<ice:dataTable
 						id="searchResultsTable"
 						var="order"
 						value="#{searchForm.searchResultsTable.rowDataModel}"
 						rendered="#{searchForm.searchSucceeded}"
 						rows="#{searchForm.searchResultsTable.resultsPerPage}">
 
 						<ice:columns value="#{searchForm.searchResultsTable.columnDataModel}">
 
 							<jsf:facet name="header">
 								<ice:panelGroup >
 									<ice:outputText
 										id="rowData"
 										value="#{searchForm.searchResultsTable.columnDataModel.rowData}"/>
 								</ice:panelGroup>
 							</jsf:facet>
 
 							<!-- display the table cell values-->
 							<ice:panelGroup style="text-align: center; white-space: nowrap;" >
 								<ice:outputText
 									id="cellValue"
 									value="#{searchForm.searchResultsTable.cellValue}"/>
 							</ice:panelGroup>
 
 						</ice:columns>
 
 					</ice:dataTable>


and the "ice:outputText" is the place where we output the comment
but when we use the linebreak tag:

Code:
<br/>
, it is encoded like a "less than, b, r, slash, greater than"
how can we place a linebreak into the table cell?
kuchumovn

Joined: 16/06/2008 00:00:00
Messages: 23
Offline


seems that in the superclass of this component there is a boolean "escape" property, which indicates


that characters that are sensitive in HTML and XML markup must be escaped. This flag is set to "true" by default.  


how can i set up this flag from the markup?
i've tried escape="false", but it didn't work
kuchumovn

Joined: 16/06/2008 00:00:00
Messages: 23
Offline


oh, i got it - i've placed the property into the column header instead of the content of the cell, and that's why it didn't work
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team