Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Addon в netbeans
Хочу использовать addon Lazy Query Container
Делаю как по инструкции c Using add-ons in netbeans
1. Библиотеки загружаю в папку Libraries gwt-user.jar, gwt-dev.jar, validation-api-1.0.0.GA.jar and validation-api-1.0.0.GA-sources.jar, vaadin-lazyquerycontainer-1.2.11
2 .build-widgetset.xml вставляю радом с build.xml
потом
3. в папке build-widgetset.xml должен редактировать поля <property name="widgetset" value="com.example.myapp.widgetset.MyAppWidgetSet"/>
<property name="widgetset-path" value="com/example/myapp/widgetset"/>
вот тут мне не доконца понятно что тут писать надо помогите разобраться .... предположительно написал следующая
<property name="widgetset" value="com.vaadin.demo.MyAppWidgetSet"/>
<property name="widgetset-path" value="com/vaadin/demo/widgetset"/>
при компиляции файла build-widgetset выдал следующая ....
Compiling module com.vaadin.demo.MyAppWidgetSet
Validating newly compiled units
[ERROR] Errors in 'jar:file:/C:/Users/andrian.boldisor/Downloads/ab-final/hz/WebContent/WEB-INF/lib/vaadin-6.2.5.jar!/com/vaadin/terminal/gwt/client/ApplicationConnection.java'
[ERROR] Line 44: The import com.google.gwt.user.client.impl.HTTPRequestImpl cannot be resolved
[ERROR] Line 493: HTTPRequestImpl cannot be resolved to a type
[ERROR] Line 493: HTTPRequestImpl cannot be resolved to a type
[ERROR] Errors in 'jar:file:/C:/Users/andrian.boldisor/Downloads/ab-final/hz/WebContent/WEB-INF/lib/vaadin-6.2.5.jar!/com/vaadin/terminal/gwt/client/ui/VListSelect.java'
[ERROR] Line 59: The method addItem(String, HasDirection.Direction) is ambiguous for the type TooltipListBox
[ERROR] Errors in 'jar:file:/C:/Users/andrian.boldisor/Downloads/ab-final/hz/WebContent/WEB-INF/lib/vaadin-6.2.5.jar!/com/vaadin/terminal/gwt/client/ui/VNativeSelect.java'
[ERROR] Line 50: The method addItem(String, HasDirection.Direction) is ambiguous for the type TooltipListBox
[ERROR] Line 65: The method insertItem(String, HasDirection.Direction, int) is ambiguous for the type TooltipListBox
Finding entry point classes
[ERROR] Unable to find type 'com.vaadin.terminal.gwt.client.DefaultWidgetSet'
[ERROR] Hint: Previous compiler errors may have made this type unavailable
[ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
C:\Users\andrian.boldisor\Documents\NetBeansProjects\Address\build-widgetset.xml:67: Java returned: 1
BUILD FAILED (total time: 20 seconds)
помогите разобраться где что я неправильно делаю
на скриншоте структура папок и файлов
я обновил библиотеку vaadin и заработало но тепер при компиляция программы программы выдаёт ошибку
Failed to load the widgetset: /Address/VAADIN/widgetsets/com.vaadin.demo.widgetset.MyAppWidgetSet/com.vaadin.demo.widgetset.MyAppWidgetSet.nocache.js?1334130344700
в файле web.xml записал следующее
<description>Application widgetset</description>
<param-name>widgetset</param-name>
<param-value>com.vaadin.demo.widgetset.MyAppWidgetSet</param-value>
и за чего ошибка ????
Здравствуйте,
<disclaimer>Я не использую NetBeans</disclaimer>.
Хорошие новости: если вам надо подключить только LazyQueryContainer (LQC) - то кастомный widgetset вовсе не нужен (потому как LQC - исключительно серверсайдный адд-он). Смело можете убирать все что связано с компиляцеий и виджетсетом (дефолтный лежит в vaadin-*.jar).
Плохие новости: если все же потребуются адд-оны с клиентской частью, то нужно выполнить все вышеописанное и удостовериться, что в вашей папке widgetset лежит *.gwt.xml дескриптор с описанием всех зависимостей (адд-онов), чтобы GWT компилятор их добавил в выходной JS.
Примерный
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
<module>
<inherits name="com.vaadin.terminal.gwt.DefaultWidgetSet" />
<inherits name="com.vaadin.addon.timeline.gwt.TimelineWidgetSet" />
<!--Подключен адд-он timeline -->
</module>
*.gwt.xml
Получилось может не совсем детально, так что если не будет получаться - пишите.
BR,
Саша.