voyent
Highlight Effect How to  XML
Forum Index -> JBoss Seam Integration
Author Message
hurzeler

Joined: 13/Dec/2006 00:00:00
Messages: 33
Offline


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.
rmayhew


Joined: 11/Apr/2006 00:00:00
Messages: 100
Offline


Hi,

I've seen some problems with effects in seam. Are you running in tomcat, or JBoss server.

If you could take a look at the logs too, see if there is any Exceptions around the Effect class.

I'll try to duplicate the bug on this end.

Rob

Rob Mayhew
http://snappy.sensemaker.net

[Email]
hurzeler

Joined: 13/Dec/2006 00:00:00
Messages: 33
Offline


I am using JBoss4.0.5GA. The effect is used in a portlet on JbossPortal2.4 that ships with the standard distribution.

There are no log messages at all with regards to the effect. It seems as if the javascript is rendered (I am actually not quite sure about that but it renders something see above). The effect simply does not get fired. It is like it is not there.

However I ran it through the debugger and the Constructor and the getHighlight of the CustomEffect gets called. Seam also registers the effect bean.

Thanks for your help.
hurzeler

Joined: 13/Dec/2006 00:00:00
Messages: 33
Offline


Hello again,

I have put together a small sample project that demonstrates the issue. There is an error on the page: Effect not defined.

Something is clearly a miss. It is just the question what.

I appreciate anyone's help. Thanks
 Filename testEffect.zip [Disk] Download
 Description Project for Eclipse 3.2.1 with Excadel 4.0.2 using Seam/Icefaces/Portlet for JBoss4.0.5GA with JBoss Portal 2.4 testing Highlight Effect
 Filesize 2131 Kbytes
 Downloaded:  292 time(s)

 
Forum Index -> JBoss Seam Integration
Go to:   
Powered by JForum 2.1.7ice © JForum Team