Even i have been getting class cast exception , but i was surprised to note 
that i am getting CoreTable but unable to cast it to CoreTable variable.

ex : CoreTable corTab = (CoreTable) table where table is a UIComponent.

when i do table.getClass().getName() i get coretable object , but unable to 
cast this coreTable variable.

If you have encountered similar problem , please let me know how you have 
overcome this issue.

Thanks

"nusa" wrote : Thanks Deniss,
  | 
  | Yes that works, except that I got a ClassCastException with this code:
  | 
  |   | UIXTable table = (UIXTable)Contexts.getEventContext().get("otherBean");
  |   | 
  | 
  | The 'otherBena' is defined as :
  | 
  |   | @Name("otherBean")
  |   | @Scope(org.jboss.seam.ScopeType.EVENT)
  |   | public class OtherBean {
  |   |     private UIXTable  table;
  |   |     public setTable(UIXTable table)
  |   |     public UIXTable getTable()
  |   |     ...
  |   | }
  |   | 
  | 
  | Any idea ?
  | 
  | Thanks.
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973353#3973353

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973353
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to