JSF - setting nowrap attribute in <h:column

S

stefanomnn

i want a result like this:

<tr>
<td nowrap="true">
ETC

how can i do? <h:column doesn't take any attribute!

Thnak you for any help
 
M

mkrz

stefanomnn said:
i want a result like this:

<tr>
<td nowrap="true">
ETC

how can i do? <h:column doesn't take any attribute!

Thnak you for any help

CSS property "white-space: nowrap;" should work.
 
S

stefanomnn

Thank you for your reply!
but i need to apply css to columnContent?

eg.
<h:column>
<h:eek:utputText style=".."/>
</h:column>

should be it right?

sorry for non capitalized letter!
i'll be more carefull
 
A

Andrew Thompson

stefanomnn wrote:
..
but i need to apply css to columnContent?

*

According to this..
<http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/h/outputText.html..either a style or styleClass should do it, but
they are used slightly differently. The style is
probably 'simpler' for the developer, but the
styleClass is more effiecient for pushing HTML
out to the client (less bytes required).

But, what happened when you tried it?
eg.
<h:column>
<h:eek:utputText style=".."/>
</h:column>

should be it right?

Using stefanonmm's suggestion, it would look like
this, I expect**.

<h:column>
<h:eek:utputText style="white-space: nowrap;"/>
sorry for non capitalized letter!
i'll be more carefull

* Odd you should say that, after putting no less than
4 sentences with no first capital letter! This is how
I would expect them to appear..

"But i need to apply css to columnContent?"
"Should be it right?"
"Sorry for non capitalized letter!"
"I'll be more carefull"

The last one also needs a full-stop '.' character,
but otherwise, it is a sentence. There are also
other parts of those sentences that should be caps.,
like the word 'I' (which is *always* capitalised), and
the acronym 'CSS'.

** I know more about HTML, than I know about
whatever Java tool or API is being used to
generate the HTML.

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200704/1
 
S

stefanomnn

Hi Andrew,
i found solutin!
i use columnClasses attribute,
and in this class i can apply noWrap attribute...

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,190
Latest member
ClayE7480

Latest Threads

Top