I have developed a Drag and Drop bean. It works perfectly using the Smart Client but when I’m starting the Web Client the from can’t be setup because the bean can’t be cast:
java.lang.ClassCastException: com.assetguardian.FileDndBean cannot be cast to org.apache.wicket.Component
The biggest problem is that it crashes the Web-Client. So to have both Smart and Web Client working I have to remove my bean code
If I want to integrate my bean into the web client application, does it mean that I have to implement my own webapplication?
I can’t modify my bean to make it working on both smart client and web clent?
IT2Be:
Yes you can (although I don’t know if drag 'n drop is supported by wicket).
In fact it’s not that important if If the drag and drop doesn’t work on the web client (I’m 99.9% sure it will not). But I don’t want my application to crash because of that.
lvostinar:
When you implement getBeanInstance from IServoyBeanFactory you have parameter servoy_application_type; so you probably would do something like:
You can also return null if needed.
Very interesting!
But which parameter is servoy_application_type?
I didn’t found any details about the IServoyBeanFactory class in the API.
Here is my getBeanInstance declaration: