gwt

vaadin 8 + spring custom widgetset

空扰寡人 提交于 2019-12-25 12:09:54
问题 i am trying to get working client-side component with class with spring+vaadin boot. The problem is probably in custom widgetset. Where should be placed in project? close to client component? Resouces (cant compile while in resources) But my client component is not getting called onStateChange. I have tryed everyting but i cant handle it. gwt package { client { connector extended by AbstractExtensionConnector with @Connect directivy ClientSide class with java } AppWidgetset.gwt.xml } impl {

vaadin 8 + spring custom widgetset

两盒软妹~` 提交于 2019-12-25 12:09:13
问题 i am trying to get working client-side component with class with spring+vaadin boot. The problem is probably in custom widgetset. Where should be placed in project? close to client component? Resouces (cant compile while in resources) But my client component is not getting called onStateChange. I have tryed everyting but i cant handle it. gwt package { client { connector extended by AbstractExtensionConnector with @Connect directivy ClientSide class with java } AppWidgetset.gwt.xml } impl {

GWT: How can I add UiBinder xml layout to my Widget?

孤街浪徒 提交于 2019-12-25 11:48:13
问题 I have a button which is a direct descendant of GWT PushButton . I want to add UiBInder xml layout to my button to simplify its design. I have created MyButton.ui.xml and I have the following contents of MyButton : class MyButton extends PushButton { interface UI extends UiBinder<Widget, MyButton> { } private static final UI ui = GWT.create(UI.class); @UiConstructor public MyButton() { super(); ui.createAndBindUi(this); } (...) } The problem is that my button is not rendered. GWT creates some

OSGi GWT org.apache.commons.mail.EmailException

天大地大妈咪最大 提交于 2019-12-25 10:05:13
问题 I have an OSGi application which has a command line interface and a GWT interface. I have a separate bundle that is responsible for sending emails. It uses Apache Commons Email. The email bundle only provides one method for sending email and all of the properties are hard coded at the moment. When I send the email from the command line, it gets a reference to the bundle and sends off the email with no problem. When I send the email from the GWT interface, it gets a reference to the bundle and

GWT violation check on server side throws SerializationException

心已入冬 提交于 2019-12-25 09:47:59
问题 I followed the gwt 2.4 validation sample and implemented the whole stuff into my own App. The client side works great. private void verifyRegistrationData(final RegistrationTO registration) throws ConstraintViolationException { final Validator validator = Validation.buildDefaultValidatorFactory().getValidator(); final Set<ConstraintViolation<RegistrationTO>> violations = validator.validate(registration); if (violations.size() > 0) { final Set<ConstraintViolation<?>> temp = new HashSet

Why an object, created in client side, is not accessible from server side in GWT development mode?

馋奶兔 提交于 2019-12-25 08:22:17
问题 I am running my GWT application in development mode. In my client side code (Classes that implements Entrypoint), I have created one object and assigned it to a static variable of another class (Suppose Class A). Now, expectedly I can access the object by he reference of the static variable of class A from anywhere from the client side but can't access it from the server side code. Can anybody explain me why I can't access the object the same way I accessed it from client side code as both

getSelectedItem() on GWT MenuBar

心已入冬 提交于 2019-12-25 08:21:00
问题 I'm new to GWT so please help me. I'm having a problem in my GWT MenuBar on how to getSelectedItem() . Here's my code: public class Menu extends Composite implements Command { private MenuBar menu = new MenuBar(); private MenuBar priceMgt = new MenuBar( true ); private MenuBar salesReport = new MenuBar( true ); // and a lot more menubars private String[] itemPriceMgt = { "Manage Price List", "Print Product Pricing", "Price Proof List" }; private String[] itemSalesReport = { "Sales Transaction

How to customize the last row of a CellTable in GWT?

自作多情 提交于 2019-12-25 08:03:49
问题 Assume each row has the format: Data | <Delete Button> Now I am trying to add an empty row at the end. And I would like to not showing the <Delete Button> at the last row. I added the empty data through data provider. Is there a way to achieve this? 回答1: There is a method you can override when you create a column: Column<MyObject, Number> myColumn = new Column<MyObject, Number>(new NumberCell()) { @Override public String getCellStyleNames(Context context, MyObject myObject) { return context

ERRORS [TRACE] [rpctest] - Finding entry point classes: using GWT to insert data into MySql using Hibernate

一曲冷凌霜 提交于 2019-12-25 07:49:31
问题 I am using GWT RPC & Hibernate to insert and retrieve data from MySql using eclipse environment. I have written two methods in service interfaces to insert & retrieve data from MySql. The program is running fine when I implemented method to insert data but is raising errors when I started implementing method to retrieve data from MySql. Name of project is rpctest & same is name of package. Here structure of project: rpctest src -hibernate.cfg.xml -user.hbm.xml -rpctest -> Rpctest.gwt.xml

widget remove itself

空扰寡人 提交于 2019-12-25 07:47:12
问题 i have widget like below in ui.xml textbox, anchor_delete when anchor_delete is press, @uihandler fired and i want entire widget textbox and anchor_delete remove itself from the view. Is this possible @UiHandler("anchor_delete") void deleteRowAction(ClickEvent event) { getWidget().removeFromParent(); //i tried this but fail } 回答1: Did you try: textbox.removeFromParent(); anchor_delete.removeFromParent(); Assuming both are widgets. 来源: https://stackoverflow.com/questions/4194125/widget-remove