myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From opick <o_p...@hotmail.com>
Subject Re: Highlight current row
Date Thu, 01 Feb 2007 11:35:29 GMT

Hi Jens,

this is exactly what we are looking for too. But it is not working in our
frameworking. It seems that the variable rowIndex is no evaluated, so the
selectedRowIndex never equals rowIndex.

Is this a new feature? Which versions of libraries are you using?

Best regards,
Oliver Pick


Jeff Bischoff wrote:
> 
> Lightbulb,
> 
> There are some hints on this in my data scroller wiki page, see [1].
> 
> The key line was contributed by Daniel Lefevre on this mailing list, and 
> it goes something like:
> 
> rowStyleClass="#{dataTableBacking.selectedRowIndex == rowIndex ? 
> 'highlightRow' : null}"
> 
> 
> You can use this in combination with normal row CSS classes like this:
> 
> rowClasses="oddRow,evenRow"
> 
> 
> In this case, the rowStyleClass will only override the rowClasses 
> setting for the selected row (because a null rowStyleClass does not 
> interfere with rowClasses setting).
> 
> You can combine this with Gerald's suggestion if you also want mouseover 
> effects.
> 
> [1] http://wiki.apache.org/myfaces/ManagingDataScrollerPage
> 
> Regards,
> 
> Jeff Bischoff
> Kenneth L Kurz & Associates, Inc.
> 
> Gerald Müllan wrote:
>> Hi,
>> 
>> you mean a row when using t:dataTable?
>> 
>> E.g. there are rowOnMouseOver and rowOnMouseOut js-events, you can
>> apply any css-class easily with this event.
>> 
>> cheers,
>> 
>> Gerald
>> 
>> On 1/25/07, lightbulb432 <veerukrishnan@hotmail.com> wrote:
>>>
>>> Does MyFaces have any way of highlighting a particular row (or setting 
>>> its
>>> CSS class to be something different from the other rows based on some
>>> criteria)?
>>>
>>> If not, are there any other component libraries that do such a thing?
>>> -- 
>>> View this message in context: 
>>> http://www.nabble.com/Highlight-current-row-tf3096673.html#a8597295
>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Highlight-current-row-tf3096673.html#a8746749
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message