JSF Conditional formatting for onmouseover and such attributes.

Posted by Ben on Stack Overflow See other posts from Stack Overflow or by Ben
Published on 2010-03-17T09:26:22Z Indexed on 2010/03/17 11:21 UTC
Read the original article Hit count: 436

Filed under:

Hi,

I'm trying to format a panelgrid according to a value in the backing bean.

I'm currently trying this as the value of the onmouseover attribute:

this.className=#{(actions.currentlySelectedActionButton == 0)?'actionButton actionButtonChosen':'actionButton'};

whereas the CSS looks like this: (the relevant parts):

.actionButton {
    width: 100%;
    height: 20px;
    border: thin solid #000;
    cursor:default; 
}

.actionButtonChosen {
    background-color: blue; 
}

It's not working. Anyone spotting the error would help me greatly. Thanks!

© Stack Overflow or respective owner

Related posts about jsf