dev@jsftemplating.java.net

Re: JSFTemplating: Some questions

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Tue, 27 Mar 2007 22:33:45 -0700

Thanks Karam,

I suspect some table styles in Woodstock are interfering with this.  Dan should know the answer off the top of his head. :)  I am just not sure.  Dan?  Can you explain why it doesn't work?

Ken

Karam Singh wrote:
Here you go.

thanks
Karam

Ken Paulsen wrote:

Hi Karam,

I'm no on the Sun network right now, can you send me the html?

Thanks!

Ken

Karam Singh Badesha wrote:
Ken,
- How do I increase font size for the whole application? Current font size is quite small. The current css file in inside the zip file.
You should be able to write some css (style="font-size:1.25em").  You can try this on the "body" tag.  I'm not sure if woodstock sets font-size explicitly on other tags, if so, you may have to do more work (set more explicit css rules).

By overwriting a rule from master css file, I am able to get this working.

- Is there a way to create the table with alternate highlight color? This would be really helpful.
Yes.  Take a look at "styleClasses" for the TableRowGroup component.  A comma separated list of css classes will do what you want.  A class can be defined by doing this in the "head" component:

<f:verbatim>
   <style type="text/css">
       .rowColor1 { background-color: #880000; }
       .rowColor2 { background-color: #008800; }
   </style>
</f:verbatim>

(NOTE: f:verbatim support was added recently to JSFTemplating, so if this doesn't work upgrade your JSFTemplating files, or use (") at the beginning of each line above.)

Then used in the tableRowGroup:

<sun:tableRowGroup id="christmasTable" styleClasses="rowColor1, rowColor2" ...>...

I tried this but its not working. Can you look at the page source and see something obvious wrong. Looking at <tr> in the source I can see that it has the class name.

Here is the url to my app:
http://cherub.sfbay.sun.com:8080/CADRe

thanks
Karam




:: CADRe ::


 
CADRe masthead image
Logo Separator
   
Usage Summary Report for Lava Release: 11.00.00     Build: All     Tool: All
Usage Summary Report (1 - 25 of 48)
Deselect Items Currently Displayed Multiple-Column SortClear All Sorts Show Data in Single Page
Tip: The next time you sort, you can try sorting multiple columns directly, without using this sort panel. To start, click the header of the first column you want to sort. Then click [+] in additional columns.
Multiple Column Sort
 Tool/Flow Button to sort column Tool/Flow as the primary sort column.
Total Usage
 IG Button to sort column IG as the primary sort column.
 KT Button to sort column KT as the primary sort column.
 N2 Button to sort column N2 as the primary sort column.
 N3 Button to sort column N3 as the primary sort column.
 NP Button to sort column NP as the primary sort column.
 RK2 Button to sort column RK2 as the primary sort column.
 ROCK Button to sort column ROCK as the primary sort column.
ClkGen 0 0 0 0 0 0 2
HFO 0 0 0 0 0 0 0
ICOPT 0 255 27 0 0 0 4
LavaLib 0 0 0 0 0 0 0
Noizilla 0 0 2 0 0 0 86
SGR 0 2 0 0 0 0 89
SPR 0 0 0 0 0 0 161
SunSim 0 0 6 0 0 0 6
Tranzilla 0 0 0 0 4 0 45
XZExtract 0 18 8 0 0 0 246
cabs 0 74 0 4 36 0 31
cct2dspf 0 0 0 0 0 0 3
clkflow 0 0 0 0 0 0 4
cpdv 0 34571 0 2374 25110 748 25621
cpr 0 0 0 0 0 0 4
df_console 0 0 0 0 0 0 9
dfm_fixer 0 0 0 0 4 0 0
di_console 0 0 0 0 1 0 49
em_advisor 0 1 0 0 0 0 4
emir 0 0 0 0 30 0 447
emir_fixer 0 12 0 0 0 0 14
emirviewer 0 20 0 96 1 0 69
emreport 0 7 0 1082 0 0 39
emsim 0 32 0 6295 407 0 7252
flrplan 0 0 0 0 0 0 155
Tool/Flow IG KT N2 N3 NP RK2 ROCK
Go to First Page Go to Previous Page of 2 Go to Next Page Go to Last PageShow Data in Single Page