[java ee programming] WebApplication

2011-06-28 Thread Rafał Laczek
Hi Colleagues,

In MyApplication which extends WebApplication I have method getBean().
When I build the project I get cannot find method getContext() in 
WebApplication
Can somebody help please.
Regards,
Rafal

public class MyApplication extends WebApplication {
public static Object getBean(String id){
Object bean = (MyApplication)get().getContext().getBean(id);
return bean;
}
}





-- 
You received this message because you are subscribed to the Google
Groups Java EE (J2EE) Programming with Passion! group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en


[java ee programming] WebApplication

2011-06-27 Thread Rafał Laczek
Hi Colleagues,

In MyApplication which extends WebApplication I have method getBean().
When I build the project I get cannot find method getContext() in 
WebApplication
Can somebody help please.
Regards,
Rafal

public class MyApplication extends WebApplication  {
public static Object getBean(String id){
Object bean = (HittegodsApplication)get().getContext().getBean(id);
return bean;
}
}



-- 
You received this message because you are subscribed to the Google
Groups Java EE (J2EE) Programming with Passion! group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en


[java ee programming] WebApplication - this mail is correct

2011-06-27 Thread Rafał Laczek
Hi Colleagues,

In MyApplication which extends WebApplication I have method getBean().
When I build the project I get cannot find method getContext() in 
WebApplication
Can somebody help please.
Regards,
Rafal

public class MyApplication extends WebApplication {
public static Object getBean(String id){
Object bean = (MyApplication)get().getContext().getBean(id);
return bean;
}
}



-- 
You received this message because you are subscribed to the Google
Groups Java EE (J2EE) Programming with Passion! group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en