JPanel doesn't show in WebClient

I wrote a java bean which is a JPanel. I created a form and added this bean into the form. When I viewed it in smartClient it looks good; but when I tried in webClient I cannot see any thing but a gray shadow.
Does someone know the reason?

lsjiang

Hi lsjiang,

Did you make it web capable ? Beans in Servoy are not like webapplets that are loaded into the browser, beans are run inside the web client running on the server. You need to make the translation to Image/HTML/Javascript yourself (as bean developer) that is send to the browser.
So far only the charting beans work because they produce in fact an image that a browser can handle. I don’t know what your bean does but perhaps you should go the same path as the charting beans.

Hope this helps.

Thanks ROCLASI for your answer.
My bean is just a JPanel with several text fields and JComboBoxes in it. Do you know where I can get the detail info about how to do what you suggested? I’m very new to servoy.

Thanks,

lsjiang

Hi lsjiang,

I think one of the other plugin/bean coders (Marcel/Patrick/etc.) might be able to help you with more info on this topic. Or perhaps Johan himself can give you some pointers.
Lets hope they are able to reply before they fly to Las Vegas for ServoyWorld or else you have to wait a little longer for an answer.

And I almost forgot! Welcome to the forum! :D

I’ll do this in other way: removing all GUI related code from java bean and write GUI part in Servoy.