[color=#3A06F8]
Widgetset does not contain implementation for org.vaadin.henrik.refresher.Refresher. Check its @ClientWidget mapping, widgetsets GWT module descrioption file and re-compile your widgetset. Unrendered UIDL:
Sorry about being too lazy to update this thread about its current whereabouts. I guess I just assumed everyone had already found the Directory. Well, you know what they say about making assumptions…
Great that you got that fixed, and even more awesome that you’re using Scala with this!
I’m trying to deploy the sample application (RefresherApplication) to Liferay as portlet 2.0, but I keep getting the following error:
[color=#FF0000]
Widgetset does not contain implementation for org.vaadin.henrik.refresher.Refresher. Check its @ClientWidget mapping, widgetsets GWT module descrioption file and re-compile your widgetset. Unrendered UIDL:
I’m using the Vaadin plug-in for Eclipse 3.5 as outline in the Plug-in different sections, re-gwt-compiling does not work either.
I added the refresher-1.0.0.jar into the
WebContent/WEB-INF/lib folder
My *Widgetset.gwt.xml looks like:
[font=Courier New]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Uncomment the following to compile the widgetset for one browser only.
This can reduce the GWT compilation time significantly when debugging.
The line should be commented out before deployment to production
environments.
Multiple browsers can be specified for GWT 1.7 as a comma separated
list. The supported user agents at the moment of writing were:
ie6,ie8,gecko,gecko1_8,safari,opera
The value gecko is used for Firefox 3 and later, gecko1_8 is for
Firefox 2 and safari is used for webkit based browsers including
Google Chrome.
-->
<!-- <set-property name="user.agent" value="gecko"/> -->
<inherits name="org.vaadin.henrik.refresher.RefresherApplicationWidgetset" />
Sorry, I can’t find any problems with the info you posted - afaik, it should work as long as you compile the project’s widgetset (which, apparently, you already has done).
I’ve never tried using the Refresher in a portlet (someone with portlet experience could chime in…), so you never know whether there’s something interfering there. You could try Artur’s
ICEPush , if you have better luck with that.
In a portal environment you must copy the compiled widgetset into the
/html/VAADIN/widgetsets/ directory under the Liferay installation. See also
this section of the Book of Vaadin about installing Vaadin to Liferay.
Make sure you have defined the widgetset to be used by your portlet application in the
portlet.xml file or in the
portal-ext.properties file.
I’ve used Refresher without problems in a GAE project. I didn’t do anything special, just add it like any other addon, compile the widgetset, and use it.
Does it work for you in the Jetty based GAE dev server?
You might want to use your own widgetset, which lets you add also other widgets to it when you need them.
I assume that the widgetset you use does inherit the default widgetset and the refresher widgetset, and the compilation went without errors, but do check that both the standard components and the refresher were included in the widgetset (select verbose widgetset compilation in Project properties → Vaadin and recompile the widgetset).
Is your Liferay deployment using the same version of Vaadin with which you compiled the widgetset?
If the widgetset compilation succeeded, the most likely cause is a version mismatch between the Vaadin JAR used and the widgetset - in that case, either downgrade the Vaadin version you are using to that included in your Liferay installation, or upgrade the Liferay installation Vaadin JAR, themes and widgetsets.
As for the other question (about ICEPush use in portlets), Artur can probably answer it in the other thread where you asked it when he comes back from vacation.
That looks wrong. You should have a custom compiled widgetset for your application, and not use Refresher’s widgetset. If you’re using Eclipse, and your project is a Vaadin project, you should be able to compile your widgetset with the blue vaadin-icon in the toolbar. Otherwise, I don’t know how a widgetset should be compiled for Liferay.
Hi, i have an array of components which are getting produced dynamically, according to user choices.
These components (custom StyleCalendars), should have their layout updated from the server (data changes).
If there is only the current user affecting what needs to be shown, you don’t need Refresher - the plain old Vaadin actionage with ValueChangeListeners will suffice.
However, if there are asynchronous data changes from simultaneous user activity, Refresher is what you need. Since I’m not sure what your question is exactly, I’m stabbing a bit in the dark here: First of all, you need to put a Refresher somewhere in a currently active layout. Think of it as an invisible component - if the component is not in “view”, it won’t work. Then you’ll probably need a Thread running in the background, periodically checking how the data changes, and on each cycle update the data into the components you’re showing. This allows Refresher to poll for changes to render.
For more information about Java threads, Google has plenty of good examples. I’ve always liked those in
JavaWorld . Hope this helps.