Hello there,
I am trying to highlight a row in my datatable but it doesn't. Here is what I have done.
Code:
<ice:outputText value="some text" onmouseovereffect="#effect.highlight}" />
I got a bean (seam):
Code:
...
@Name("effect")
@Scope(ScopeType.SESSION)
public class CustomEffect implements Serializable
{
/**
*
*/
private static final long serialVersionUID = 1518228864191350602L;
private Effect highlight;
public CustomEffect()
{
super();
highlight = new Highlight("#FF6600");
highlight.setDuration(0.5f);
}
public Effect getHighlight()
{
return highlight;
}
public void setHighlight(Effect effect)
{
highlight = effect;
}
public String invokeEffect()
{
return null;
}
}
In fact the outputText gets rendered as:
Code:
<span class="iceOutputText" id="jbpa6c845b5_id1:siteTable:2:jbpa6c845b5_id13" onmouseover="iceEffectjbpa6c845b5_id1_siteTable_2_jbpa6c845b5_id131095();" onmouseovereffect="new Effect.Highlight(id,{startcolor:'#FF6600',duration:0.5});" style="">some text</span>
but nothing happens when the mouse is over.
What am I missing??
Thanks.