Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

JSF - setting nowrap attribute in <h:column

Thread view: 
stefanomnn - 11 Apr 2007 12:23 GMT
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
Andrew Thompson - 11 Apr 2007 13:19 GMT
>i want a result like this:

I want the first letter of sentences to be Upper Case,
because it makes posts easier to read.

><tr>
><td nowrap="true">
..
>how can i do?

Use a stylesheet.

Signature

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

mkrz - 11 Apr 2007 13:25 GMT
>i want a result like this:
>
[quoted text clipped - 5 lines]
>
> Thnak you for any help

CSS property  "white-space: nowrap;" should work.
stefanomnn - 12 Apr 2007 10:05 GMT
Thank you for your reply!
but i need to apply css to columnContent?

eg.
<h:column>
<h:outputText style=".."/>
</h:column>

should be it right?

sorry for non capitalized letter!
i'll be more carefull
Andrew Thompson - 12 Apr 2007 11:10 GMT
..
>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:outputText style=".."/>
></h:column>
>
>should be it right?

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

<h:column>
<h:outputText style="white-space: nowrap;"/>
</h:column>

>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.

Signature

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

stefanomnn - 16 May 2007 14:02 GMT
Hi Andrew,
i found solutin!
i use columnClasses attribute,
and in this class i can apply noWrap attribute...

Thanks!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.