Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transforming value after sorting in bold radiobutton

 
fabio alonso
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a panelgrid (with radios) that tells me two columns, with a description and the other with values
I am needing to make bold the chosen line, tried to do, but as much as I could, through the studies was to leave in bold spmente of the columns.
Problem is that he is leaving so the description, the column values ​​is not bold, tried to modify the javascript several times .. but not worked ..

Do you know where I can change more to solve this?

Below the code that modifying the standard description, missing values ​​also change



javascript


Anyone know how to solve?
thanks
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't give an instant answer, since I don't fully understand, but I think I can help.

First, your top 2-3 lines of jQuery code are using the "$" notation, This conflicts with EL syntax in JSF, so you need to use the "jQuery." form instead.

Secondly, the common behavior that most JSF datatables provide by default is a "hover' style, where the color and/or other attributes (bold font, for example) are done as part of the row class definition and thus the appearance will change as you roll the mouse up and down the table. If you want a "selection", you have to do more, since in basic JSF there isn't actually the concept of a "selected row". I don't remember if Tomhawk supports one or not.
 
fabio alonso
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:I can't give an instant answer, since I don't fully understand, but I think I can help.

First, your top 2-3 lines of jQuery code are using the "$" notation, This conflicts with EL syntax in JSF, so you need to use the "jQuery." form instead.

Secondly, the common behavior that most JSF datatables provide by default is a "hover' style, where the color and/or other attributes (bold font, for example) are done as part of the row class definition and thus the appearance will change as you roll the mouse up and down the table. If you want a "selection", you have to do more, since in basic JSF there isn't actually the concept of a "selected row". I don't remember if Tomhawk supports one or not.


thanks for the help,

but the problem is that he is only applying the formatting in the description column,
like you said, it is not "seeing" the line, only the column, this is my biggest problem..
 
fabio alonso
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fabio alonso wrote:I have a panelgrid (with radios) that tells me two columns, with a description and the other with values
I am needing to make bold the chosen line, tried to do, but as much as I could, through the studies was to leave in bold spmente of the columns.
Problem is that he is leaving so the description, the column values ​​is not bold, tried to modify the javascript several times .. but not worked ..

Do you know where I can change more to solve this?

Below the code that modifying the standard description, missing values ​​also change



javascript


Anyone know how to solve?
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic