Tuesday, July 31, 2012

Re: querySelectorAll IE8


There is a typo in GWT native code in my earlier post. Please refer the method below:

GWT Native Code:
private static native NodeList<Element> nativeQuery(Element root, String query)/*-{
       return root.querySelectorAll(query);
}-*/

I am using GWT 2.3

Thanks,
Mohit

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/qRbSuSW1aycJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

querySelectorAll IE8

Hey guys,

I am facing a strange problem related to CSS query selector in IE8. I am using standard HTML Doctype.

Sample HTML:
<div id="container">
    <input id="field" type="text" />
</div>
The container div is a HTMLPanel.

GWT Native Code:
private static native NodeList<Element> nativeQuery(Element root, String query)/*-{
        var root = obj || $doc;
        return root.querySelectorAll(query);
}-*/

If I use this code like nativeQuery(getElement(), "#field") where getElement() is the root element of HTMLPanel, it complains in IE8 saying object doesn't support this property.

Plain Javascript Code:
var list = document.getElementById('container').querySelectorAll('#field');
alert(list);

This code runs fine in IE8 and returns me a nodelist containing 1 element.

Can anybody suggest what is the problem with my GWT native method?

Thanks,
Mohit



--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/GhY-a_P2pnAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: which EventBus

yeah, well, I guess I need to adapt to the brave new world, where a two-line paragraph in the Javadoc passes for documentation. Perhaps this is the price we pay for having access to the source. Still, it's a long and hard road, from reading GWT sources, to building an understanding of concepts.

The good news is that my posting got published in this group, so I can ask here if I get into any trouble -:)
Regards,

Andrew

On Friday, July 27, 2012 1:47:13 PM UTC+10, andrewsc wrote:
I'm going through the MVP Tutorial Part One with the Tutorial-Contacts
The article recommends the use of HandlerManager and points to a 2.0 copy of the JavaDoc
 
However, the more recent 2.4 Javadoc has the following recommendation:
 
application developers are strongly discouraged from using a HandlerManager instance as a global event dispatch mechanism.
 
What is the recommended replacement in 2.4 ? 
 
I've seen SimpleEventBus being used in 2.4 apps, but I can't find any description of it, apart from JavaDoc mentining it is a wrap around legacy.
 
Does anyone have more material about SimpleEventBus ?
 
Andrew
 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/GyJZAZ5s3gUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

RequestFactory and Editor Frame Work Question

Hello there RequestFactory and EditorFramework gurus and all the comunity.

I have the following structure

public class CitaWidget{
 //here i load a complex graph with request factory
 // in some place of this class i create a Editor of each proxy on a list
for(UnidadProxy unidadProxy: response.getUnidades()){
// i create editors here ...
final UnidadCitaEditor unidadCitaEditor = new UnidadCitaEditor(unidadProxy); 
// 
}

public class UnidadCitaEditor implements Editor<UnidadProxy>{
// this class is a editor for the UnidadProxy obtained by the previous class
 
// here each UnidadProxy has many CitaProxy so i created a ListEditor  
@UiField(provided=true) CitaListEditor citas; 
 
protected DefaultRequestFactory factory = DefaultRequestFactory.instance; 
protected interface Driver extends RequestFactoryEditorDriver<UnidadProxy, UnidadCitaEditor>{}
protected Driver driver = GWT.create(Driver.class); 

 
 public UnidadCitaEditor (){

driver.initialize(this);
factory.initialize(new SimpleEventBus()); 

// then i create the top driver and the request context
final UnidadRequest unidadRequest = factory.unidadRequest();
unidadRequest.citaUnidadChange(unidadProxy).with("citas","citas.alumno","citas.doctor","citas.responsable").to(new Receiver<UnidadProxy>() {

@Override
public void onSuccess(UnidadProxy response) {
UnidadRequest unidadRequest = factory.unidadRequest();
unidadRequest.citaUnidadChange(response).with(driver.getPaths()).to(this);
 
 // iam trying to reuse the editor with  a new RequestContext, for better ui experience for the final user
driver.edit(response, unidadRequest);
}
});
driver.edit(unidadProxy, unidadRequest); 
 
}
}

public class CitaListEditor extends FlexTable implements IsEditor<ListEditor<CitaProxy, CitaEditor>>, HasRequestContext<List<CitaProxy>>{
 protected class CitaEditorSource extends EditorSource<CitaEditor>{
// business  logic for the cita editor source
}
private void onNewProxy(){
 final CitaProxy citaProxy = ctx.create(CitaProxy.class);
//  the cita proxy is atached to the list 
// the the CitaEditor can handle the binding ...
// on save of the  CitaEditor i fire the main RequestContext that one on the UnidadCitaEditor to persist the data
 

Well as you friends can see i have a widget that retrive a list of Unidades then each unidad has a List of Citas then i create a editor for each Unidad.
Then the user call the onNewProxy() the new cita proxy its atached to the list correctly.

The thing here is i want when a user creted a new CitaProxy and when the editor of this Cita hides () call save fire the requestcontext
This because iam using a extensive UI layout (FlexTable DND some visual validation, etc..) to represent the Cita's proxys.

I want to maintain the Client side ui but save the CitaProxy on the server.

I know the RequestFactory is per request only, so i have a problem here.

I tryed to getback the same Unidad proxy and then reatach to the driver as the follow lines of the class UnidadCitaEditor :


unidadRequest.citaUnidadChange(unidadProxy).with("citas","citas.alumno","citas.doctor","citas.responsable").to(new Receiver<UnidadProxy>() {

@Override
public void onSuccess(UnidadProxy response) {
UnidadRequest unidadRequest = factory.unidadRequest();
unidadRequest.citaUnidadChange(response).with(driver.getPaths()).to(this);
driver.edit(response, unidadRequest);
}
});

Iam trying to reuse the editor and create a new RequestContext to be fired when a new CitaProxy is added to the list of the ListEditor 
so my ListEditor CitaListEditor can maitain the UI and add the new ones only.


The problem is that iam getting an exception here...


    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.AssertionError: Unfrozen bean with null RequestContext
    at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.checkStreamsNotCrossed(AbstractRequestContext.java:981)
    at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.editProxy(AbstractRequestContext.java:509)
    at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext$4.visitCollectionProperty(AbstractRequestContext.java:1036)
    at mx.com.liondev.GrupoEndodontico.shared.Model.Unidad.UnidadProxyAutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory.traverseProperties(UnidadProxyAutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory.java:243)
    at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.traverse(AbstractAutoBean.java:166)
    at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.accept(AbstractAutoBean.java:101)
    at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.cloneBeanAndCollections(AbstractRequestContext.java:1006)
    at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.editProxy(AbstractRequestContext.java:526)

etc...
etc...

How can i solve this.

What aproach you friends recomend to me to follow. 

I want to use EditorFramework to persist the changes on the DB but mantain the UI on the client

i was thinking in this four ways:


--- On the CitaEditor that one that the CitaEditorSource manage create a RequestContext with a copy of the Proxy
i cannot use that proxy cuze it is used by another RequestContext so i need copy it.
never fire the UnidadCitaEditor editor so i can keep all the ui on the client side.

how can i make a copy of a proxy?

-- Just after every persited CitaProxy re draw the ui.

not friendly for the final user, for example i use DND to drag widgets on the FlexTable (CitaListEditor)
so on drop,bum!! wait to load all the ui again.

-- The way iam using right now, but don't know why happens this exception.


-- Just let the user add citas proxy... then put a big save button to persist all the data.

if user close the browser ? all the data not saved will be lost. 
Iam updating a Google Calendar too. What if the user dont press save and the calendar was updated.

i really dont want to follow this strategy


Any help would be apreciated.


Thank you.    

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/nk8sev1b5OEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: JSONParser.parseStrict() exception "Unexpected token <"

Your catch (Exception e) should also be printing out the results, but your quoted error message didn't contain that exact json - any chance that the json you started with isn't actually making it to the client? One simple way to test would be to escape that string and put it in your Java code (instead of event.getResults()) and make sure it can parse that way. If this fails, something is up in how JSONParser.parseStrict is working, though this leans on the browser itself, suggesting there is something up with the browser. It seems more likely to me though that the service that is returning your json is wrapping it in HTML, making it no longer valid json.

Your method of printing out error text might be hiding this - you are rendering the message _as_ HTML, which will make any html tags appear as rendered content. Try a real logger, or escape the content before you put it in the HTML widget.

On Tuesday, July 31, 2012 4:58:02 PM UTC-5, seven.reeds wrote:
Hi,

GWT 2.4.0
Eclipse Juno
Ubuntu

I am using a GWT Form.  In the form.addSubmitCompleteHandler() I do the following:

try {
Info = JSONParser.parseStrict(event.getResults()).isObject();
} catch (NullPointerException e) {
RootPanel.get("list").clear();
RootPanel.get("list").add(new HTML("<p><NullPointerException: "
+ e.getMessage() + "<br/><kbd>" 
+ event.getResults() + "</kbd></p>"));
return;
} catch (IllegalArgumentException e) {
RootPanel.get("list").clear();
RootPanel.get("list").add(new HTML("<p>IllegalArgumentException: "
+ e.getMessage() + "<br/><kbd>" 
+ event.getResults() + "</kbd></p>"));
return;
} catch (Exception e) {
RootPanel.get("list").clear();
RootPanel.get("list").add(new HTML("<p>Exception: " + e.getMessage()
+ "<br/>Cause: " + e.getCause()
+ "<br/><kbd>" 
+ event.getResults() + "</kbd></p>"));
return;
}

It is trying to parse:

{"table":{"MOLINE.EWR.UIND.EDU":{"SONGS":[["07/04/2012 12:23:37","07/04/2012 12:51:16",0.4608,""]]}}}

The "catch (Exception e)" case reports:  "Exception: Error parsing JSON: SyntaxError: Unexpected token <
Cause: null"

There are no "<"s, or tabs in there.  What gives?  This is actually part of a MUCH larger parse string but it fails no matter how many records it sees.

I am doing the same or similar things with older GWT projects without issues.


thanks,
seven

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bmRnZKDoUToJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

call java method with generics from jsni

hi all.

Can I call a java instance method with generic parameters from jsni code ?

In my case:

public interface ArrayListCallback<T> {
boolean call(T item, int index);
}
/** ArrayList is my overlay */
public class ArrayList<T extends JavaScriptObject> extends JavaScriptObject {

public native final ArrayList<T> each(ArrayListCallback<T> c)/*-{
    var f = $entry(function(item, index){
        return c.@my.package.collection.ArrayListCallback::call(TT;I)(item, index);
    });
    return this.each(f);
}-*/;

}

my problem is with call() method calling (containing a generic type parameter). Eclipse editor autocompletes like that but it won't compile.

So my question is is it possible to do that call?

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/L15ozvBnu1MJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: shall we use "assert" in GWT project in the development period

You should be able to use asserts in GWT Java code. Can you provide an example of your faulty " 'assert' sentence?"


Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/JzJSUYqmOUMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT 2.4 Javascript exception when selecting an element in a CellBrowser

Sydney,

Do you know if it's a problem with my code, or if it's a GWT compiler bug?

Trying to understand the issue here. You are trying to catch uncaught exceptions, and display your customized error, right? What you provided as the output looks pretty close to what I'd expect the code you wrote to do. Can you explain how this trace is different from the message you're trying to create, that is, what the 'problem' is?



Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/LUU04tT57HoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT future

it would be great if Google's management can stand behind GWT as a platform of choice for web development - similar to how Microsoft stands behind theirs development platforms. 

-1

Tell that to any Silverlight developers out there.



Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/C06fUedKEOsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: google finance portfolio performance graph

You might consider -> http://www.amcharts.com/stock/

On Tuesday, July 31, 2012 8:33:36 PM UTC+10, Peter Nees wrote:
I want to integrate the google finance portfolio performance graph into my application. I don't care whether I integrate it via HTML or in my GWT app. 
I looked at several options:
  • I did not find any HTML for this graph to be able to include it as an iframe
  • I tried to embed the Flash source, but I can't get this working.
  • The Google Finance API seems to be deprecated
Any ideas?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/c80JC8NVpGQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

JSONParser.parseStrict() exception "Unexpected token <"

Hi,

GWT 2.4.0
Eclipse Juno
Ubuntu

I am using a GWT Form.  In the form.addSubmitCompleteHandler() I do the following:

try {
Info = JSONParser.parseStrict(event.getResults()).isObject();
} catch (NullPointerException e) {
RootPanel.get("list").clear();
RootPanel.get("list").add(new HTML("<p><NullPointerException: "
+ e.getMessage() + "<br/><kbd>" 
+ event.getResults() + "</kbd></p>"));
return;
} catch (IllegalArgumentException e) {
RootPanel.get("list").clear();
RootPanel.get("list").add(new HTML("<p>IllegalArgumentException: "
+ e.getMessage() + "<br/><kbd>" 
+ event.getResults() + "</kbd></p>"));
return;
} catch (Exception e) {
RootPanel.get("list").clear();
RootPanel.get("list").add(new HTML("<p>Exception: " + e.getMessage()
+ "<br/>Cause: " + e.getCause()
+ "<br/><kbd>" 
+ event.getResults() + "</kbd></p>"));
return;
}

It is trying to parse:

{"table":{"MOLINE.EWR.UIND.EDU":{"SONGS":[["07/04/2012 12:23:37","07/04/2012 12:51:16",0.4608,""]]}}}

The "catch (Exception e)" case reports:  "Exception: Error parsing JSON: SyntaxError: Unexpected token <
Cause: null"

There are no "<"s, or tabs in there.  What gives?  This is actually part of a MUCH larger parse string but it fails no matter how many records it sees.

I am doing the same or similar things with older GWT projects without issues.


thanks,
seven

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/78F9wNjmAtEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

SpeedTracer dump file size

Hi all,

We're currently instrumenting a big application in GWT to gather performance metrics. For that we are using SpeedTracer.

We are experience some difficulties with larger set of data. Data above ~15MB makes the SpeedTracer export page (the page that appears after we click on Save/Export button) to trim the JSON embedded data. How can we overcome this and make the SpeedTracer to export all the data?

Thank you.

Best,
João Luís

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/POp1N4eByWMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Source maps

:) Good news. Alan will be happy

2012/7/31 Joseph Lust <lifeoflust@gmail.com>
FYI, Source Map support is now in Mozilla Firefox nightly builds! Soon Alan's life will be much easier. Read more details here.


Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dE1u0iD0_LsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Need list of companies who integrated GWT with their own softwares

http://www.emitrom.com/

All products there use GWT.

Regards,

Alfredo

On Tue, Jul 31, 2012 at 10:43 AM, Venkat <reddy.pvenkat@gmail.com> wrote:
> Hi, can anybody provide me with the list of companies who has implemented
> GWT with their own apis. Like Vaadin, Sencha, Smart GWT (Isomorphic). Do you
> know any other.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/kYNH2Nxq8wIJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.



--
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM: lawwton

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Source maps

FYI, Source Map support is now in Mozilla Firefox nightly builds! Soon Alan's life will be much easier. Read more details here.


Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dE1u0iD0_LsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT

You can check gwtpages framework too ;-)
Here's an example:

https://community.jboss.org/thread/199409

2012/7/30 Ernani Sottomaior <ernanisottomaior@gmail.com>
You can use gwt history manager...

add a listener:

History.addValueChangeHandler(new ValueChangeHandler<String>() {
            public void onValueChange(ValueChangeEvent<String> event) {
               String section = History.getToken().trim();
                ... place new panel, or whatever like that ...
            }
        });


when user clicks a link or button you can call:

History.newItem(section);


This would work with back-forward browser buttons.

[]
ERS


On Sun, Jul 29, 2012 at 3:59 PM, Dennis Haupt <d.haupt82@googlemail.com> wrote:
please read some beginner tutorials.
page switch:
RootPanel.get("content").add(page1());
RootPanel.get("content").clear();
RootPanel.get("content").add(page2());

Am 29.07.2012 19:47, schrieb nessrinovitta:
> How does this work exactly ?? As I understood in the .HTML page I define
> the divs I need and then form each Ui  java class I use the methode
> RootPanel.get("content").add(Widget());
> Is this true ?, Does anyone have an example ??


--

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--



Atte:
Natanael Maldonado

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT RPC Proxy - how to create custom own one

All of the source for the existing RPC proxy generation code can be found in gwt-user.jar. As with all Generators, the first step is to create a Generator or GeneratorExt subclass, and reference it in the module (this is in RemoteService.gwt.xml):
    <generate-with class="com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator">
        <when-type-assignable class="com.google.gwt.user.client.rpc.RemoteService"/>
    </generate-with>

You'll need to be sure that your redefinition of this rule superceeds GWT's built in rule. This can most easily be done by placing it after any other <inherits> rule in your module.

ServiceInterfaceProxyGenerator is a pretty short class, doing some sanity checking, then passing off to the ProxyCreator class. You can extend ServiceInterfaceProxyGenerator to override createProxyCreator to make your own ProxyCreator subclass.

ProxyCreator does most of the heavy lifting - figuring out what types can go over the wire, asking for FieldSerializers for each type, and eventually building the proxy itself. This is where the bulk of your modifications will probably take place.

On Tuesday, July 31, 2012 8:48:31 AM UTC-5, Олександр Бежан wrote:
AFAIK GWT generates RPC proxies using Generators. I need more control in my proxy and so want to create my custom proxy. How can I do that ?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/5XOVgK1mwTcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

How to send data from gwt TextBox to PhP server via JSON

Hi,

I'm trying to send login datato php script, when click on submit button. I want to send data as Post for php script, via JSON.
This is my code on java file (piece of the form):

final TextBox mioUsername = new TextBox();

final PasswordTextBox miaPassword = new PasswordTextBox();

Button accedi = new Button();


//BUTTON SUBMIT

accedi.addClickHandler(new ClickHandler() {

publicvoid onClick(ClickEvent event) {

        RequestBuilder request = new RequestBuilder(RequestBuilder.POST,URL.encode("checklogin.php"));

       

   String name = mioUsername.getText();

String pssw = miaPassword.getText();

        JSONObject jsonValue = new JSONObject();

        jsonValue.put("myusername", new JSONString(name));

        jsonValue.put("mypassword", new JSONString(pssw));

        request.setHeader("Content-Type", "application/json");

        try {

request.sendRequest(jsonValue.toString(),new RequestCallback() {

    @Override

    public void onResponseReceived(Request request, Response response) {


    }


    @Override

    public void onError(Request request, Throwable exception) {

        //displayError("Couldn't retrieve JSON");

    }

});

} catch (com.google.gwt.http.client.RequestException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

 } });


and this is my php script:


<?php


$host="localhost"; // Host name 

$username="usersuper"; // Mysql username 

$password="passw"; // Mysql password 

$db_name="Pippo"; // Database name 

$tbl_name="Users"; // Table name 


// Connect to server and select databse.

mysql_connect("$host", "$username", "$password")or die("cannot connect"); 

mysql_select_db("$db_name")or die("cannot select DB");


// username and password sent from form 

$myusername=$_POST['myusername'];

$mypassword=$_POST['mypassword'];


$sql="SELECT * FROM $tbl_name WHERE Nome='$myusername' and Cognome='$mypassword'";

$result=mysql_query($sql);


// Mysql_num_row is counting table row

$count=mysql_num_rows($result);

echo $count;

// If result matched $myusername and $mypassword, table row must be 1 row

if($count==1){


// Register $myusername, $mypassword and redirect to file "login_success.php"

session_register("myusername");

session_register("mypassword"); 

header("location:login_success.php");

}

else {

echo "Wrong Username or Password";

}

?>
 
I don't know how must implement onResponseReceived method, to ensure that everything runs.

I need help.
Thanks


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/1Mxt4PRXndEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Help:How to do search in GWT (search Operation On celltale(like Grid) )!!

Hi all,

please help me out .

i have one Grid and one search form in this iam using GWT  componints like Celltable ,Gird and all form controls.

now my problem is using search form to search the records and set the what ever we getting that values we can set all records to Grid,

so  please help me out any one 

How to do search in GWT ?


thanks in advance

Thanks and Regards
Laxman

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Need list of companies who integrated GWT with their own softwares

Hi, can anybody provide me with the list of companies who has implemented GWT with their own apis. Like Vaadin, Sencha, Smart GWT (Isomorphic). Do you know any other.

Thanks.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/kYNH2Nxq8wIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Help:Dynamic Refresh or Auto-Refresh in GWT !!

Use a timer to get the data from the backend and refresh your CellTable.
The expenses example in the gwt samples is using the same thing. 



On Monday, July 30, 2012 3:38:14 PM UTC+2, Laxman L wrote:
Hi All,

i have one Grid in my Project in this iam using GWT Celltable this celltable gird having five columns 
so i need help on auto-refresh in only celltable grid(it will refresh only Grid part ) part not all web-page 

if pasible please see (please find the attached image) the my project webpage it is clearly undarstand i think ,

please help out any one.

thanks in advance.


Thanks and Regards
Laxman

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/90LlQAzJw5sJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

GWT RPC Proxy - how to create custom own one

AFAIK GWT generates RPC proxies using Generators. I need more control in my proxy and so want to create my custom proxy. How can I do that ?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/otsVGEQgZIEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Widget Generator

Hi every body !! i need help about creating Widget generator with GWT ! someone can help me ?? :))

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Zeb6VG9j8acJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Setting Locale language dynamically initially

But, I don't have a server-side technology, and I don't want to have one. The whole idea is to have only client-side HTML, JavaScript, CSS.... technology and that is it. That is why I need something using JavaScript or GWT to solve the problem.

Ok take a look at com.google.gwt.i18n.I18N.gwt.xml

Seems like there are 5 ways to provide the locale:

1.) using a query param named "locale". To use this method you can let your web server send a redirect from app.example.com to app.example.com/?locale=<locale> after determining the locale on your web server if possible or you do the redirect from within your app, e.g. in your onModuleLoad() you use Window.Location.assign(<current url> + <locale query param>). You can change the name of the query param by setting a different value to "locale.queryparam".

2.) using a cookie. To use this you have to define the cookie name by setting "locale.cookie" to any value as in I18N.gwt.xml no default cookie name is defined.

3.) using meta tags. As already described you can include a gwt:property meta tag in a dynamic host page.

4.) using the user agent information. To use this you have to activate it by setting "locale.useragent" to "Y" as its disabled by default in I18N.gwt.xml.

5.) create your own property provider and use JavaScript to fill the "locale" property value yourself. Here you are completely free how to obtain the value.

GWT's default search order is "query param, cookie, meta, useragent" but cookie and useragent will be skipped if you don't configure/activate them. You could also modify the search order by setting "locale.searchorder" in your gwt.xml.

Now choose one solution ... 

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/B-9Jd1XS9J4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: AsyncDataProvider and CellTree


On Monday, July 30, 2012 10:02:03 PM UTC+2, Thad wrote:
I have a CellTree in which I want to represent something similar to a directory listing (actually represented in database records):

public class DirectoryObject implements Serializable {
    public String name;
    public String type; // 'file' or 'folder'
    public int group;
    ...
}

This listing comes from a server application which the user must log into. Naturally I can't call the RPC to populate the tree until the login takes place.

My wish is to draw the UI and upon login (or upon pressing a 'List' or 'Refresh' button to return an ArrayList<DirectoryObject>. From this I populate the previously empty tree. Objects of type 'folder' will be the branch nodes and will require a new RPC call with the name as a parameter to find the children (null gets me the highest level).

My question is how, once the empty tree is present, to trigger that call and start my listing. So far I've got what you see below, but I'm not sure if it's right and I'm stumped on the UiHandler for my list button (at the very bottom). I'm trying to follow the CellTree examples, but they use static data or don't start empty.

public class DirectoryPanel extends Composite {

  private static DirectoryPanelUiBinder uiBinder = GWT
      .create(DirectoryPanelUiBinder.class);

  interface DirectoryPanelUiBinder extends
    UiBinder<Widget, DirectoryPanel> {
  }
  
  private static class MyDataProvider extends AsyncDataProvider<DirectoryObject> {
    
    private String folderName;
    
    public MyDataProvider(DirectoryObject directory) {
      if (directory != null)
        folderName = directory.name;
    }

    @Override
    protected void onRangeChanged(HasData<DirectoryObject> display) {
      final Range range = display.getVisibleRange();

      AsyncCallback<ArrayList<DirectoryObject>> callback = 
          new AsyncCallback<ArrayList<DirectoryObject>>() {
        @Override
        public void onFailure(Throwable caught) {
          Window.alert((new GwtOptixException(caught)).getMessage());
        }

        @Override
        public void onSuccess(ArrayList<DirectoryObject> result) {
          int start = range.getStart();
          GWT.log("onRangeChanged, start: "+start);
          updateRowData(start, result);
        }
      };
      Cold.getRpcService().getDirectoryListing(folderName, callback);
    }
  }
  
  private static class DirectoryTreeModel implements TreeViewModel {
    
    private SingleSelectionModel<DirectoryObject> selectionModel = 
        new SingleSelectionModel<DirectoryObject>();

    public DirectoryTreeModel() {
      selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler(){
        public void onSelectionChange(SelectionChangeEvent event){
          /* Huh? 
            but there's no getSelectedObject() in SelectionChangeEvent
            */
          //DirectoryObject rec = (DirectoryObject)event.getSelectedObject();

It's actually selectionModel.getSelectedObject() that returns your real DirectoryObject.
 
        }
      });
    }
    
    @Override
    public <T> NodeInfo<?> getNodeInfo(T arg0) {
      if (arg0 instanceof DirectoryObject) {
        Cell<DirectoryObject> cell = new AbstractCell<DirectoryObject>() {
          @Override
          public void render(Context context, DirectoryObject value,
              SafeHtmlBuilder sb) {
            if (value != null) {
              sb.appendEscaped(value.name);
            }
          }
        };
        MyDataProvider provider = new MyDataProvider((DirectoryObject)arg0);
        return new DefaultNodeInfo<DirectoryObject>(provider, cell, selectionModel, null);
        // or return new DefaultNodeInfo<DirectoryObject>(provider, cell); ??

The first line: generally you should provide a selection model for all your nodes if you want to do something when they are selected (the actual expansion, if not a leaf, is a provider's job).

      }
      return null;
    }

    @Override
    public boolean isLeaf(Object arg0) {
      return arg0 != null && ((DirectoryObject)arg0).name != null &&
          ((DirectoryObject)arg0).type.equals('file');
    }
  }
  
  @UiField(provided = true)
  CellTree tree;
  @UiField
  Button list;
  
  DirectoryTreeModel treeModel;

  public DirectoryPanel() {
    treeModel = new DirectoryTreeModel();
    tree = new CellTree(treeModel, null);
    
    initWidget(uiBinder.createAndBindUi(this));
  }
  
  @UiHandler("list")
  void onList(ClickEvent event) {
    // What here??
  }

}

I'd:
- create the cell tree only if the user has logged in (and show something like an empty message);
- create a root null node (as you did) but refuse the expansion/selection until the user has logged in (probably an async provider's job, i.e., the inner RPC is used in an authentication mechanism and refuses requests from unauthenticated clients);
- create a default root node that does nothing at all, backed by a no-op (null) selection model and when the used logs in, replace it with the real selection model (I think the only way is re-instantiate the cell tree).

I think the best way to programmatically select a node is by using the selection model, although I don't remember if it also expand inner nodes.

Hope that helps.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/2lAkaJUvDY8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

google finance portfolio performance graph

I want to integrate the google finance portfolio performance graph into my application. I don't care whether I integrate it via HTML or in my GWT app. 
I looked at several options:
  • I did not find any HTML for this graph to be able to include it as an iframe
  • I tried to embed the Flash source, but I can't get this working.
  • The Google Finance API seems to be deprecated
Any ideas?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Z1k6VcRiV6QJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Cancelling RequestContext.create()

I'd like to know how to do this as well.  Anyone know a solution other than creating a detached proxy?


On Friday, 27 May 2011 02:15:06 UTC+10, will0 wrote:
Dear all,

Considering the following common data structure:
ParentProxy {
   ...
   List<ChildProxy> 
}

In our app, the user may change and add a number of ChildProxies as well as ParentProxy properties, then save everything.

When I'm creating a new ChildProxy, I call ParentRequestContext.create() to obtain this, which registers this with the RequestContext. This is then passed to an editor, flushed and added to the editor hierarchy.
The whole hierarchy is then flushed and persisted.

This works well, except I cannot handle the case when a new ChildProxy is requested but this is then cancelled - the RequestContext will send a ChildProxy with null values.

So -- is there a way to cancel a pending create?
Otherwise the only workaround I can think of is to utilize a separate RequestContext to create a "detached" ChildProxy and edit then flush this.
Then all being well, the to-be-persisted ChildProxy would be obtained from ParentRequestContext,create and I'd use AutoBeanUtils to copy the detached state to the new proxy.

Thanks,

Will

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/A9aucr-M_JkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Is there any chart library for GWT?



On Tuesday, January 8, 2008 3:14:03 AM UTC+5:30, Sarah kho wrote:
Hi
how we can resolve charting requirement when we use GWT, is there any
sample code for it?

Thanks

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/v-vDA4wFCtsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Using Gilead with GWT 2.0 ms1

Hi,

The error was successfully solved by the jack you have suggested Trevor.

I am just trying to run the Sample Gilead Hibernate code given on google groups. Was getting the Parameter 0 error previously. But after putting the 2 files you have given, I was able to get rid of it. But now I get a new error and that says the following:

"500 The call failed on the server; see server log for details"

Can you please suggest me the way out for this error.

Thanks,
Rahul

On Thursday, 21 January 2010 03:17:38 UTC+5:30, Trevor Skaife wrote:
my guess is that your issue has to do with the 2 versions you have of
some of the beanlib jars.

The ones I have are:
beanlib-5.0.2beta1.jar
beanlib-hibernate-5.0.2beta1.jar

On Jan 19, 11:28 am, John Ivens <john.wagner.iv...@gmail.com> wrote:
> Oops.. the list, easier to read..
>
>     adapter-core-1.2.3.823.jar
>
> adapter4gwt-1.2.3.823.jar
>
> antlr-2.7.6.jar
>
> asm-3.2.jar
>
> beanlib-3.3.0beta6.jar
>
> beanlib-hibernate-3.3.0beta6.jar
>
> beanlib-hibernate-5.0.2beta-bundle.jar
>
> beanlib-hibernate-5.0.2beta.jar
>
> cglib-2.2.jar
>
> commons-collections-3.1.jar
>
> commons-lang-2.4.jar
>
> commons-logging-1.1.1.jar
>
> dom4j-1.6.1.jar
>
> hibernate-util-1.2.3.823.jar
>
> hibernate3.jar
>
> hsqldb.jar
>
> javassist-3.4.GA.jar
>
> jboss-serialization.jar
>
> jta-1.1.jar
>
> log4j-1.2.15.jar
>
> mysql-connector-java-3.0.17-ga-bin.jar
>
> slf4j-api-1.5.2.jar
>
> slf4j-simple-1.5.2.jar
>
> trove-2.0.4.jar
>
> On Tue, Jan 19, 2010 at 10:26 AM, John Ivens <john.wagner.iv...@gmail.com>wrote:
>
>
>
> > Anyone seen this error message?
>
> > [WARN] Exception while dispatching incoming RPC call
>
> > java.lang.NoSuchMethodError:
> > net.sf.beanlib.hibernate.UnEnhancer.unenhanceClass(Ljava/lang/Class;)Ljava/ lang/Class;
> > I am getting this using gilead with hibernate with GWT 2.0, and I suspect
> > that I am having some library conflict... I cannot understand which
> > library.  Could someone tell me what they have working under GWT 2.0, what
> > all of the jars they include in the war file are...
>
> > This is my list:
>
> > On Tue, Jan 19, 2010 at 7:27 AM, Dan Billings <debil...@gmail.com> wrote:
>
> >> FYI
>
> >> A guy on sourceforge apparently made some more changes because it
> >> wasn't working for him.
>
> >>http://sourceforge.net/projects/gilead/forums/forum/957377/topic/3493335
>
> >> On Dec 28 2009, 9:57 am, Trevor Skaife <tska...@gmail.com> wrote:
> >> > RB,
>
> >> > That's odd you had an error at that line, though it probably is a
> >> > difference in the versions ofGileadwe are using. The classes were
> >> > created usingGilead1.2.3.823. But it's true if you are using GWT
> >> > 2.0.0 that line of code would never see the light of day.
>
> >> > Trevor
>
> >> > On Dec 25, 7:39 pm, Richard Berger <richardlan...@gmail.com> wrote:
>
> >> > > Trevor:
>
> >> > > Thank you for the post - it was a life saver.  When I copied the java
> >> > > files to my system, I had a compiler error at line 161 of
> >> > > RPCCopy.java:
> >> > > return RPCCopy_GWT16.invoke(target, serviceMethod, args,
> >> > > serializationPolicy);
> >> > > The error was:
> >> > > The method invoke(Object, Method, Object[], SerializationPolicy) is
> >> > > undefined for the type RPCCopy_GWT16.
>
> >> > > Since I am on GWT2, I figured I could replace that line with
> >> > > return null;
>
> >> > > Seemed to work for me.
>
> >> > > Thanks again for your work here!
> >> > > RB
>
> >> > > On Dec 23, 6:02 am, Trevor Skaife <tska...@gmail.com> wrote:
>
> >> > > > I'm just glad to see people are able to use my fix for usinggilead
> >> > > > with GWT 2.0.0
>
> >> > > > On Dec 22, 11:08 am, lucamen <epped...@gmail.com> wrote:
>
> >> > > > > Thanks Josh!! That really help me a lot and now everything is
> >> working
> >> > > > > properly!
>
> >> > > > > BTW Bruno (theGileadmain developer) wrote herehttp://
> >> sourceforge.net/projects/gilead/forums/forum/868076/topic/3484314
> >> > > > > that a new release is coming "very" soon... so just wait and hope
> >> in a
> >> > > > > stable version that works with gwt2.0
>
> >> > > > > Thanks again and merry christmas! :-P
>
> >> > > > > On 18 Dic, 22:53, Josh Martin <alodar...@gmail.com> wrote:
>
> >> > > > > > What worked for me was to add the files Trevor specified to 'my'
> >> > > > > > project, and not into the originalgileadsource directories.  You
> >> > > > > > just have to make sure to match the original package directory
> >> he
> >> > > > > > specified of: src/com/google/gwt/user/server/rpc in your project
> >> > > > > > directory.  Any project that you create now that uses the
> >> adapter4gwt
> >> > > > > > library should include those two files as source files as well.
> >>  Your
> >> > > > > > application should compile with those source files in it, as
> >> long as
> >> > > > > > you have the adapter4gwt library files included (which you would
> >> have
> >> > > > > > to have to usegileadanyway).
>
> >> > > > > > I, too, thought he meant to put them in the originalgilead
> >> > > > > > directories and recreate the entire adapter4gwt library, but
> >> after re-
> >> > > > > > reading what he suggested, I realized his real suggestion was
> >> far
> >> > > > > > easier. (Thanks Trevor!)
>
> >> > > > > > Hope this helps,
> >> > > > > > Josh
>
> >> > > > > > On Dec 18, 4:04 am, lucamen <epped...@gmail.com> wrote:
>
> >> > > > > > > Hello, I'm working on a GWT 2.0 project with hibernate
> >> integration viaGilead. When I try to load data from database (on GWT 1.7
> >> everything
> >> > > > > > > was working properly) I get this error "Parameter 0 of is of
> >> an
> >> > > > > > > unknown type 'java.lang.String/2004016611'" and googling I've
> >> found
> >> > > > > > > this thread.
> >> > > > > > > I downloaded these two files and put in
> >> src/com/google/gwt/user/server/
> >> > > > > > > rpc under mygileadroot directory but nothing changes!
>
> >> > > > > > > To be sure I've updated all my buildpath with the jars I need
> >> but the
> >> > > > > > > error still remain.
>
> >> > > > > > > Do I have to ant build the adapter4gwt with these two new
> >> files and
> >> > > > > > > then add the new jars I get?
>
> >> > > > > > > I've already tried but ant failed with this error:
>
> >> > > > > > > build:
> >> > > > > > >      [echo] adapter4gwt:
> >> /Users/lucame/Documents/workspace/Libs/gilead-1.2.3.823/adapter4gwt/build.x
> >> ml
> >> > > > > > >     [javac] Compiling 6 source files to
> >> /Users/lucame/Documents/
> >> > > > > > > workspace/Libs/gilead-1.2.3.823/adapter4gwt/classes
> >> > > > > > >     [javac]
> >> /Users/lucame/Documents/workspace/Libs/gilead-1.2.3.823/
>
> >> adapter4gwt/src/com/google/gwt/user/server/rpc/RPCCopy_GWT20.java:287:
> >> > > > > > > cannot find symbol
> >> > > > > > >     [javac] symbol  : constructor RPCRequest
> >> > > > > > > (java.lang.reflect.Method,java.lang.Object
> >> > > > > > > [],com.google.gwt.user.server.rpc.SerializationPolicy,int)
> >> > > > > > >     [javac] location: class
> >> com.google.gwt.user.server.rpc.RPCRequest
> >> > > > > > >     [javac] return new RPCRequest(method, parameterValues,
> >> > > > > > > serializationPolicy, 0);
> >> > > > > > >     [javac]        ^
> >> > > > > > >     [javac] 1 error
>
> >> > > > > > > What should I do to get GWT 2.0 work withGilead?
>
> >> > > > > > > ANY help would be VERY appreciate!!
>
> >> > > > > > > Thanks, Luca.
>
> >> > > > > > > On 10 Dic, 16:35, Trevor Skaife <tska...@gmail.com> wrote:
>
> >> > > > > > > > I definitely should have worded that better. You did exactly
> >> what I
> >> > > > > > > > wanted you to do, if you would put them in any other package
> >> it
> >> > > > > > > > wouldn't work.
>
> >> > > > > > > > On Dec 9, 5:27 pm, "graffle...@gmail.com" <
> >> graffle...@gmail.com>
> >> > > > > > > > wrote:
>
> >> > > > > > > > > Thanks!!  Great work...
>
> >> > > > > > > > > but what do you mean by "Once you get these files in your
> >> project just
> >> > > > > > > > > make sure to change the package accordingly."
>
> >> > > > > > > > > all I did was put these files in
> >> src/com/google/gwt/user/server/rpc
>
> >> > > > > > > > > should I do anything else?
>
> >> > > > > > > > >   - Bob
>
> >> > > > > > > > > On Oct 18, 10:06 am, tskaife <tska...@gmail.com> wrote:
>
> >> > > > > > > > > > Ok, well I found out that my changes to makegileadwork
> >> for GWT 2.0
> >> > > > > > > > > > didn't quite work, but I've been able to fix that. I
> >> also notice that
> >> > > > > > > > > > I put the same two files up above, here are the 2 files
> >> to download to
> >> > > > > > > > > > getgileadworking with GWT 2.0.
>
> >> > > > > > > > > > RPCCopy.javahttp://
> >> trg-commons.googlecode.com/files/RPCCopy.java
>
> >> > > > > > > > > > RPCCopy_GWT20.javahttp://
> >> trg-commons.googlecode.com/files/RPCCopy_GWT20.java
>
> >> > > > > > > > > > Once you get these files in your project just make sure
> >> to change the
> >> > > > > > > > > > package accordingly.
>
> >> > > > > > > > > > On Oct 9, 1:35 pm, tskaife <tska...@gmail.com> wrote:
>
> >> > > > > > > > > > > I just updated toGWT 2.0ms1 and noticed that I was
> >> getting an error
> >> > > > > > > > > > > that the constructor for RPCRequest doesn't exist (the
> >> constructor now
> >> > > > > > > > > > > inclues a int flag parameter).
>
> >> > > > > > > > > > > java.lang.NoSuchMethodError:
>
> >> com.google.gwt.user.server.rpc.RPCRequest.<init>(Ljava/lang/reflect/
>
> >> Method;[Ljava/lang/Object;Lcom/google/gwt/user/server/rpc/
> >> > > > > > > > > > > SerializationPolicy;)V
>
> >> > > > > > > > > > > I was able to fix the issue by creating a new
> >> RPCCopy_GWT20 that
> >> > > > > > > > > > > passes a 0 for the flag parameter when it makes the
> >> RPCRequest. I also
> >> > > > > > > > > > > had to change RPCCopy class so that it can correctly
> >> recognize when
> >> > > > > > > > > > > you are usingGWT 2.0. Below are links to the 2 java
> >> files.
>
> >> > > > > > > > > > > RPCCopy.javahttp://
> >> trg-commons.googlecode.com/files/RPCCopy_GWT20.java
>
> >> > > > > > > > > > > RPCCopy_GWT20.javahttp://
> >> trg-commons.googlecode.com/files/RPCCopy_GWT20.java
>
> >> > > > > > > On 10 Dic, 16:35, Trevor Skaife <tska...@gmail.com> wrote:
>
> >> > > > > > > > I definitely should have worded that better. You did exactly
> >> what I
> >> > > > > > > > wanted you to do, if you would put them in any other package
> >> it
> >> > > > > > > > wouldn't work.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to google-web-toolkit@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9VFMJnkFLEcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.