*
The moose likes JSF and the fly likes Show Leading spaces in output Text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Show Leading spaces in output Text" Watch "Show Leading spaces in output Text" New topic
Author

Show Leading spaces in output Text

Jay Palav
Greenhorn

Joined: Jan 23, 2008
Posts: 2
Hi All,

I am currently working on one project which is using jsf as frontend.
We are displaying data from list in tabular form using tomahawk datatable.
<t:dataTable id="data" ...
Now the data in list is trimmed while display..
ie report name with ' My Report' is displayed as 'My Report'
we are using tomahawk taglibrary to output value
<tutputText id="reportName" value="#{row.reportName}">

Is it a charectaristic of datatable to show values after trimming?? how
can i display data in original form with leading spaces.

Jay
Jay Palav
Greenhorn

Joined: Jan 23, 2008
Posts: 2
From further investigation i guess its problem with HTML..
since initial spaces in html are ignored.. we need to convert it in to ' '
Any one have faced such situation?? any takers??
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Show Leading spaces in output Text
 
Similar Threads
Tomahawk dataTable - holding data in backing bean with scroller
"bind" property
Problem with sessionScoped
Dynamic t:dataTable display oddness.
Using of nested Datatables