![](/img/trans.png)
[英]More than one coder for gwt autobean causes AssertionError
從JSON反序列化autobean時,我從com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl.CoderCreator#getCoder獲得AssertionError 。 看起來我的自動轉發有兩種類型: my. ...
[英]More than one coder for gwt autobean causes AssertionError
從JSON反序列化autobean時,我從com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl.CoderCreator#getCoder獲得AssertionError 。 看起來我的自動轉發有兩種類型: my. ...
[英]GWT Autobean Bean is null
請幫助我,我做錯了 InfraNameModel InfraNameModelImpl InfraNameModelList InfraNameModelListImpl IBeanFactory ... 所以我在這一行有這樣的錯誤 C ...
[英]Autobean returns an autobean after using as()
在我的gwt項目中,我將使用gwt通道api將對象發送給客戶端,並使用Autobean編碼和解碼這些對象。 一切正常,我在客戶端上收到一個有效的json字符串,並且可以將該json字符串再次解碼回AutoBean。 只有autobean.as()不會返回與autobean本身不同的任何東西。 ...
[英]AutoBeanFactory map Json property names
我目前正在檢查一種在GWT中對對象進行(反)序列化的不錯方法。 看起來都很不錯,但我找不到以下問題的答案: 鑒於我在諸如以下的界面中: 符合Java的Bean命名約定。 現在,當我收到類似以下內容的Json String時: 從“ access_token”到“ acc ...
[英]GWT (model) interface/class
我正在從事GWT項目,有點困惑。 它是服務器/客戶端項目。 我正在用Autobean處理json。 Autobean需要使用接口才能工作。 我以前在接口方面工作不多,需要一些幫助。 這就是Autobean代碼的方式: 要將json轉換為List,我需要這樣做。 我也有一 ...
[英]Google Web Toolkit Autobeans
出於好奇,我檢查了autobeans的生成方式。 我發現它使用sun.misc.ProxyGenerator類生成autobean proxies ,並且它使用reflections 。 但是我不明白,它在客戶端如何工作。 那些使用reflections方法是否已編譯為javascript ...
[英]AutoBean complex JSON parse
我有一個復雜的JSON字符串,我嘗試使用AutoBean對其進行解析。 JSON字符串如下所示: 我已經創建了這個界面 我該如何運作? 以及如何將X和Y數組添加到幾何體中,我發現了一些示例,例如在解析bean時添加X和Y: 但我的應用程序必須實現générique ...
[英]Parsing JSON array using Autobean
我有一個要使用Autobean解析的JSON。 我在for循環中收到NullPointerException,可能是persons.getPersons() 我的AppAutoBeanFactory看起來像這樣: JSON(變量strResponse)如下所示: 我做了 ...
[英]Converting a String to a Splittable in GWT
我正在維護一個由GWT(2.5.0)編寫的網站,供我們的開發團隊在內部使用,並且我一直在嘗試使用AutoBeans進行客戶端json解析。 我有一些對象的json定義不明確-開發人員可以在其中轉儲他想要的任何json字符串-因此,我使用的是Splittable屬性。 為了支持編輯此任意jso ...
[英]GWTMockito: How to mock AutoBeanCodex?
我正在編寫使用AutoBeanCodex編碼和解碼AutoBeans的測試 。 當我嘗試測試使用AutoBeanCodex.decode(...) ,出現如下錯誤: 第一個問題是我該如何處理AutoBeanCodex我gwtmockito測試? 我是否必須使用偽造的提供程序,例如 ...
[英]How is the api doc generated @ http://api.highcharts.com/
我找不到與github有關的任何內容https://github.com/highslide-software/highcharts.com 揣測 Google Closure Library javadoc解析器https://developers.google.com/clo ...
[英]GWT AutoBean category
我正在嘗試讓AutoBean中的@Category(class)起作用。 我有一個簡單的工廠 和類別類 導入com.google.web.bindery.autobean.shared.AutoBean; 和測試界面。 所有三個都在同一包裝中。 當我嘗試 ...
[英]which interfaces representations to deserialize from JSON to AutoBean?
我有以下JSON: 我嘗試反序列化JSON這與AutoBean,因為我有問題要搞清楚。 我想反過來。 哪些接口可以完美匹配此JSON,以便使用AutoBean反序列化? 其中bean1,bean12,bean13是接口,值都是BigDecimal。 ...
[英]How to set default value to a GWT AutoBean?
我有一個想要生成他的AutoBean的類。 Example.class: AutoBean示例: 我嘗試這樣做 AutoBean Example2: 還有Example2Category ,其中函數是實現的。 但是當我嘗試獲取value1或value2時 ...
[英]How to implement method with params with AutoBean?
我有以下界面: 然后為它創建一個類別: 我的工廠看起來像: 但是當我編譯的時候我得到了那些錯誤: 我嘗試解決幾種方法,但我不知道如何解決! 如何使用AutoBean使用params實現方法? ...
[英]GWT Autobean - how to handle lists?
我一直在嘗試評估GWT Autobean功能,以便將JSON對象解碼/編碼為REST調用的域對象。 以下示例: http : //code.google.com/p/google-web-toolkit/wiki/AutoBean#Quickstart 我能夠將單個JSON對象轉換為 ...
[英]How can you use GWT AutoBeans to parse a JSON message when some of the return values could be an object or a collection of objects?
當返回的對象之一可能是集合但並非總是如此時,是否可以使用GWT AutoBeans解析JSON消息? 例如,如果我有一條返回作者及其關聯作品的JSON消息,則可能返回的書數為零或更多。 可能是一個響應,但這可能是: 當我嘗試使用用於與AutoBean編組的接口對此模型進行建 ...
[英]Can GXT and AutoBeans process XML when the root node has a namespace declaration?
我有嘗試使用GXT和AutoBeans解析的XML消息。 我的XML的根節點有一個名稱空間聲明,並且看來AutoBean解析器無法讀取XML。 我使用PropertyName規范設置了AutoBean對象圖的根: 但是當我的XML看起來像這樣時: AutoBean似乎無法 ...
[英]Sharing GWT class implementation between client and server
假設我在 GWT 中有一個比 POJO 更復雜的類實現,但它的方法仍然相對簡單,即除了它的 getter 和 setter 之外,它還有一些實用方法,這樣我就可以在客戶端和服務器代碼。 我的問題是:如果我有這樣一個對象的實例,我如何在 GWT 服務器和客戶端之間進行通信? 也就是說,當對象被反序列 ...
[英]Jar containing AutoBeanFactoryMagic
我應該包含什么jar來使用這個包: 我嘗試在servlet上使用以下類: AutoBeanFactoryMagic 我使用GWT 2.4 謝謝 ...