Re: Using JSNI to create Labeled Marker cause Object function MarkerLabel_(marker, crossURL, handCursorURL){ …} has no method 'getSharedCross'
I was having the same exact issues but got it work when mimicking http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.1.8/examples/basic.html as close as possible.. i.e. i was loading the external libraries via in JavaScript.. i.e. window.onload = loadScript(); I changed them to these: script type=text/javascript src=http://maps.googleapis.com/maps/api/js?v=3amp;sensor=false;/script script type=text/javascript src=http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.1.8/src/markerwithlabel.js;/script now it works for me On Saturday, January 5, 2013 11:57:20 PM UTC-5, bon...@gmail.com wrote: I tried to create a *Label Marker* by using *JSNI* to call *google-maps-utility-library-v3 's markerwithlabel.js* . However, I always receive this exception : com.google.gwt.core.client.JavaScriptException: (TypeError) @com.gwt.map.client.GWTMap::setLabeledMarker(Lcom/google/gwt/maps/client/base/LatLng;Lcom/google/gwt/maps/client/MapImpl;)([JavaScript object(51), JavaScript object(19)]): Object function MarkerLabel_(marker, crossURL, handCursorURL){ ...} has no method 'getSharedCross' Here is the JSNI method I have created : public final native void setLabeledMarker(LatLng ll,MapImpl myMap) /*-{ var marker = new $wnd.MarkerWithLabel({ position: ll, draggable: true, raiseOnDrag: true, labelContent: Hello, labelAnchor: new $wnd.google.maps.Point(22, 0), labelClass: labels, // the CSS class for the label labelStyle: {opacity: 1.0} }); marker.setMap(myMap); }-*/; I'm using Branflake's GWT Map version 3.8.1https://github.com/branflake2267/GWT-Maps-V3-Api and google-maps-utility-library-v3 's markerwithlabel.jshttp://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.1.7/src/ Please help to give your advice -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Using JSNI to create Labeled Marker cause Object function MarkerLabel_(marker, crossURL, handCursorURL){ …} has no method 'getSharedCross'
I'm also having this issue... can't seem to get passed it. -Rich -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
display result of ListString from server side method into TabPanel
Hai all, I've been looking for a way to display result from a method which has return type ListString into a TabPanel. So, this method has to be written in server side since it used import java.net.URL. When I call this service from client side when the user click a button, I want to display those List of String inside a TabPanel, but I don't know how to do it. I only know that I can only do that for return type: String (RootPanel.get().add(String s). When I called that method from client side, the list of String are printed below the rootpanel. Could you tell me how to do this? Thank you. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CalendarService application showing total meeting from Google Calendar
Fernando, I've already downloaded the right version, but I've already checked each class in which the compiler said the method is undefined, such as: getEventEntries (in Calendar Service http://code.google.com/intl/fr/apis/gdata/javadoc/com/google/gdata/client/calendar/CalendarService.html I also didnt find getEventEntries()), show data( in CalendarEventEntry), etc But the code that i copied is exatcly from the Book of Programming GWT, so i think it should work. And this method of getEventEntries I found in JavaScrip doc, I'm confused, may be you can suggest? On Aug 5, 9:55 pm, Fernando spiderkens...@gmail.com wrote: the problem is the CalendarService import check if it is the right one and also your gdata library version On 5 ago, 06:06,ichiichi8...@gmail.com wrote: Hai, I'm a newbie trying this piece of code to show the total schedule we have from Google Calendar, I've already import several package and put the necessary jar files in Reference Library, But I still have several things error. Could you tell me what I miss? I put the error message in the line directly. Thank you -- package calendarTest.client; import java.lang.Class; import com.google.gwt.accounts.client.User; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.dom.client.KeyCodes; import com.google.gwt.event.dom.client.KeyUpEvent; import com.google.gwt.event.dom.client.KeyUpHandler; import com.google.gwt.gdata.client.GData; import com.google.gwt.gdata.client.GDataSystemPackage; import com.google.gwt.gdata.client.calendar.CalendarEventFeedCallback; import com.google.gwt.gdata.client.impl.CallErrorException; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.DialogBox; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gdata.client.*; import com.google.gdata.client.calendar.CalendarService; import com.google.gdata.data.acl.*; import com.google.gdata.data.calendar.*; import com.google.gdata.data.extensions.*; import com.google.gdata.util.*; import java.net.URL; import java.net.*; import java.io.*; /** * Entry point classes define codeonModuleLoad()/code. */ public class CalendarTest { private CalendarService service; String scope = http://www.google.com/calendar/feeds/;; String eventFeed = http://www.google.com/calendar/feeds/default/ private/full; public void onModuleLoad(){ //make sure GWT app has the necessary packet if(!GData.isLoaded(GDataSystemPackage.CALENDAR)){ GData.loadGDataApi(null, new Runnable(){ public void run(){ Button b = new Button(Affiche mes rendez-vous); b.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { User.login(scope); getEvents(); } }); RootPanel.get().add(b); } }, GDataSystemPackage.CALENDAR); } else { getEvents(); } } private void getEvents() { service = CalendarService.newInstance(My Demo); //--The method newInstance(String) is undefined for the type CalendarService service.getEventsFeed(eventFeed, new CalendarEventFeedCallback() { //-- getEventsFeed(String, new CalendarEventFeedCallback(){}) is undefined for the type CalendarService public void onFailure(CallErrorException caught) { Window.alert(Erreur survenue lors de la lecture du flux: +caught.getMessage()); } public void onSuccess(com.google.gwt.gdata.client.calendar.CalendarEventFeed result) { CalendarEventEntry[] entries = result.getEntries(); //--Type mismatch: cannot convert from EventEntry[] to CalendarEventEntry[] if (entries.length == 0) { Window.alert(Il n'y a aucun événement dans votre calendrier.);
CalendarService application showing total meeting from Google Calendar
Hai, I'm a newbie trying this piece of code to show the total schedule we have from Google Calendar, I've already import several package and put the necessary jar files in Reference Library, But I still have several things error. Could you tell me what I miss? I put the error message in the line directly. Thank you -- package calendarTest.client; import java.lang.Class; import com.google.gwt.accounts.client.User; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.dom.client.KeyCodes; import com.google.gwt.event.dom.client.KeyUpEvent; import com.google.gwt.event.dom.client.KeyUpHandler; import com.google.gwt.gdata.client.GData; import com.google.gwt.gdata.client.GDataSystemPackage; import com.google.gwt.gdata.client.calendar.CalendarEventFeedCallback; import com.google.gwt.gdata.client.impl.CallErrorException; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.DialogBox; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gdata.client.*; import com.google.gdata.client.calendar.CalendarService; import com.google.gdata.data.acl.*; import com.google.gdata.data.calendar.*; import com.google.gdata.data.extensions.*; import com.google.gdata.util.*; import java.net.URL; import java.net.*; import java.io.*; /** * Entry point classes define codeonModuleLoad()/code. */ public class CalendarTest { private CalendarService service; String scope = http://www.google.com/calendar/feeds/;; String eventFeed = http://www.google.com/calendar/feeds/default/ private/full; public void onModuleLoad(){ //make sure GWT app has the necessary packet if(!GData.isLoaded(GDataSystemPackage.CALENDAR)){ GData.loadGDataApi(null, new Runnable(){ public void run(){ Button b = new Button(Affiche mes rendez-vous); b.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { User.login(scope); getEvents(); } }); RootPanel.get().add(b); } }, GDataSystemPackage.CALENDAR); } else { getEvents(); } } private void getEvents() { service = CalendarService.newInstance(My Demo); //--The method newInstance(String) is undefined for the type CalendarService service.getEventsFeed(eventFeed, new CalendarEventFeedCallback() { //-- getEventsFeed(String, new CalendarEventFeedCallback(){}) is undefined for the type CalendarService public void onFailure(CallErrorException caught) { Window.alert(Erreur survenue lors de la lecture du flux: +caught.getMessage()); } public void onSuccess(com.google.gwt.gdata.client.calendar.CalendarEventFeed result) { CalendarEventEntry[] entries = result.getEntries(); //--Type mismatch: cannot convert from EventEntry[] to CalendarEventEntry[] if (entries.length == 0) { Window.alert(Il n'y a aucun événement dans votre calendrier.); } else { showData(result.getEntries()); } } }); } private void showData(CalendarEventEntry[] entries) { //--The method showData(CalendarEventEntry[]) in the type CalendarTest is not applicable for the arguments (EventEntry[]) for (int i=0; i entries.length; i++) { CalendarEventEntry entry = entries[i]; String s = Le + entry.getUpdated().getValue().getDate().toString() ; // -- Cannot invoke getDate() on the primitive type long CalendarTest.java s += a href= + entry.getHtmlLink().getHref() + Rendez-vous ; s += entry.getTitle().getText() + /a; //--The method getText() is undefined for the type TextConstruct CalendarTest.java RootPanel.get().add(new HTML(s)); } } } -- -- You received this message
create agenda (meeting invitation) by GWT
Hi, I'm using Java eclipse and GWT to develop a website and I'm planning to create a calendar in which there is an agenda contain proposition of meeting and then send invitation to other users. What is possible way to do this? I saw in GWT calendar http://sites.google.com/site/gwtcomponents/calendar but the calendar is only for display. Thanks. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.