[jboss-user] [JBoss Seam] - Re: Oracle ADF

khaliq do-not-reply at jboss.com
Thu Sep 21 14:05:41 EDT 2006


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



More information about the jboss-user mailing list