Wednesday, August 31, 2011

Re: GWT : How to call SERVLET FROM GWT_SERVLET and How to return value from target servlet to source servlet?

you can call a servlet from client side like this (may be you want put these code into AsyncCallback method body, from gwt servlet):

        btn.addClickHandler(new ClickHandler(){
            public void onClick(ClickEvent event) {
               final String link = GWT.getModuleBaseURL() + "someServlet?year="+year.getValue(year.getSelectedIndex())+"&month="+month.getValue(month.getSelectedIndex());
                RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,link);
                try {
                    builder.sendRequest(null, new RequestCallback() {
                        @Override
                        public void onResponseReceived(Request request,
                                Response response) {
                            if (response.getStatusCode() == 200) {
                               // response.getText();
                             } else if (response.getStatusCode() == 404) {
                                Window.alert("Service not available.");
                            }
                        }
                        @Override
                        public void onError(Request request, Throwable exception) {
                           
Window.alert("Service not available.");
                        }
                    });
                } catch (RequestException re) {
                    GWT.log("Error", re);
                }
            }
        });


From: vaibhav bhalke <bhalke.vaibhav@gmail.com>
To: google-web-toolkit@googlegroups.com
Sent: Wednesday, August 31, 2011 4:30 PM
Subject: GWT : How to call SERVLET FROM GWT_SERVLET and How to return value from target servlet to source servlet?

I have 2 servlets.
One In GWT module i.e BasicServiceImpl extends RemoteServiceServlet implements BasicMassUpdateService
and other servlet TargetServlet extends HttpServlet in TargetServlet in diff module/package com.comp.server.servlets
I am using GWT-RPC in my gwt module. I want to write one method getRecordList() in BasicServiceImpl which returns list of record on client side.(right now I am sending dummy data in record list)
In other servlet i.e TargetServlet RecordList formed from database value.
Use case: When we call getRecordList() method using rpc then I want to call SERVLET : TargetServlet to get recordlist, TargetServlet will return recordlist to getRecordList of Gwt_servlet and finally getRecordList() returns recordlist on client side
1: How to call other servlet(TargetServlet) from GWT_SERVLET i.e BasicServiceImpl
2: How to send recordlist from TargetServlet to getRecordList() of BasicServiceImpl(GWT SERVLET)
Any help or guidance in this matter would be appreciated


--
Best Regards,
Vaibhav





--
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.


List of HTML Element to GWT Widget

Hi All,

Whenever possible, GWT defers to browsers' native user interface elements. For example, GWT's Button widget is a true HTML <button> rather than a synthetic button-like widget built, say, from a<div>. That means that GWT buttons render appropriately in different browsers and on different client operating systems. We like the native browser controls because they're fast, accessible, and most familiar to users.
 
I wonder if there is a list somewhere that shows which HTML Element each GWT Widget is mapped to - and where more than one element is possible, which ones make sense.

Thanks in advance,

Tom

--
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: JFileChooser

http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/ui/FileUpload.html

On Aug 31, 4:17 pm, IHateSoda <mguillaum...@gmail.com> wrote:
> Hello,
>
> I need to browse folder in my GWT application, I tried to implement an
> applet (Gwt-AI, HTML applet = new HTML()applet.setHTML("<applet bla
> bla bla">") but not success. Neither Gwt-AI (it seems that doesn't
> work with gwt 2.3, I got a deferred binding error) nor the other
> solution (no errors but no results).
>
> Someone has a solution for browse a folder with any methods.
>
> Any help would be greatly appreciated

--
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: RequestFactory don't play nice with guice?

Wow, that works fine for me. Thanks a lot!


--
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.

JFileChooser

Hello,

I need to browse folder in my GWT application, I tried to implement an
applet (Gwt-AI, HTML applet = new HTML()applet.setHTML("<applet bla
bla bla">") but not success. Neither Gwt-AI (it seems that doesn't
work with gwt 2.3, I got a deferred binding error) nor the other
solution (no errors but no results).

Someone has a solution for browse a folder with any methods.

Any help would be greatly appreciated

--
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.

custom tabs

I'm using TabLayoutPanel and would like to customize the tabs on the tab bar. Currently the active tab is white and the inactive tabs are gray. I've tried setting the background-color for the widget in the tab, but that didn't seem to work. I'd like the active tab to be green and the inactive tabs to be blue. Any suggestions?

--
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/-/E6tOZaH0LQ0J.
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.

Extra Outer ScrollPanel in Firefox

Mac OS X 10.5
Java 6
GWT 2.3.0

I'm having difficulty with my application rendering in Firefox. I've
created a ListBox that will contain names and I've placed it in a
ScrollPanel.

ListBox list = new ListBox();
ScrollPanel scrollpanel = new ScrollPanel( list );
VerticalPanel main = new VerticalPanel();
main.add( scrollpanel );

When the component appears in the Firefox browser, horizontal and the
vertical scrollbars appear on some sort of "outer" component, as an
extra ScrollPanel even before the list is populated with names.
Moreover, when the listbox becomes populated, I see the proper
Vertical scrollbar for the list box but the outer scrollbar remains.
That is, I can see a properly configured ListBox within a ScrollPanel,
within some form of unknown ScrollPanel.

By contrast, In Safari I observe the desired behavior. That is, the
scroll bars do not appear until the list is populated with names. At
that time, the vertical bar appears and it functions in the desired
way, scrolling the list so that the names become visible. There are
no other scroll bars other than what are expected.

I've come across a thread somewhere that suggested I must resize the
ListBox because it is too wide. But too wide for what? What is
causing the extra ScrollPanel to appear in Firefox and how can I
remove it? Many 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-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: Inherited exceptions in GWT-RPC

On Aug 26, 12:51 am, Paul Robinson <ukcue...@gmail.com> wrote:
> You shouldn't need to do anything. It should work as you thought. That is, you can throw any subclass of the declared exception(s).
>
> Is there something about BException and CException that stops them from being gwt-serializable?

No, and in fact, if I declare them explicitly, then GWT throws them as-
is, rather than wrapping them in InvocationException.

> Alternatively, maybe it's because AException extends RuntimeException, and is therefore not a checked exception. It could be that, being an unchecked exception, GWT silently drops it (or rather, its subclasses) from the list of exceptions to expect.
>
> Try "AException extends Exception" instead.

That's what I'm afraid of. It looks like GWT will only allow declared
exceptions, and not subclasses. I don't want to extend Exception,
because it means the Java compiler will force me to handle the
exception explicitly:

try {
service.remoteMethodThatThrowsException( ... , new
AsyncCallback<Void>() {
@Override
public void onFailure( Throwable caught ) { ... }

@Override
public void onSuccess( Void result ) {...}
} );
} catch (Exception e) {}

That sort of defeats the purpose for handling the exception in the
onFailure() method to begin with.

> HTH
> Paul
>
> On 25/08/11 21:09, Ryan wrote:
>
>
>
>
>
>
>
> > My understanding is that in GWT-RPC, if a service throws an exception
> > declared in the signature, then GWT will report that exception back to
> > the client as-is.  If it's any other exception that's thrown, then GWT
> > wraps it in an InvocationException.
>
> > I have a hierarchy of exceptions that could get thrown in my
> > application.  For example:
>
> > class AException extends RuntimeException {}
> > class BException extends AException {}
> > class CException extends AException {}
>
> > If I declare AException in the client, and throw it in the server,
> > then the onFailure() method gets called with AException as expected.
> > However, if I declare AException in the client, but throw either of
> > the two child classes in the server, GWT wraps it in an
> > InvocationException.
>
> > What is the best way to intercept ALL the child exceptions?  The only
> > thing I can see so far is declaring each possible child exception in
> > the service signature, but that seems very brittle to me.
>
> > Thanks,
> > Ryan

--
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.

Is it possible to flush the sub-editor of a CompositeEditor ?

I have a CompositeEditor that displays a list of sub-objects and allows me to add/delete/edit the objects in that list with sub-editors.

I am seeing a problem where I edit one of my objects inside the sub-editor, and then try to refresh the list once the edit is complete.  The issue I see is that the changes from the sub-editor are not reflected in the result of the call to chain.getValue(subEditor).   

In a previous incarnation, I had tried initializing and editing the subEditor with a new RequestFactoryEditorDriver.  When doing that I was able to call driver.flush(subEditor), and then chain.getValue(subEditor) returned the correct values.  Unfortunately doing this messed up the delegates and caused the errors/dirty flag from the sub editor to not flush up into the parent editor.  

So my question is whether it is possible to force a flush of the sub-editor in order to read its value before the CompositeEditor is flushed by the top-level driver.  

My basic flow is :

1. CompositeEditor.setValue(...)
  a.  Create sub-editors, and attach them to the chain with the sub-objects
  b.  Display the sub-objects in the list
2. Click New button
 a.   Create a new sub-editor and a new sub-object
 b.   call chain.attach(sub-editor,sub-object)
 c.   display the editor
 d.   User fills in data and clicks OK
 e.   Update list with the result of chain.getValue(sub-editor)  <-- at this point the value returned is the default values created step 2a
3.  Click Submit <-- Also at this point, the values are not flushed either.  



Step 3's problem sounds like issue http://code.google.com/p/google-web-toolkit/issues/detail?id=6081 , but I'm curious if step 2.e's problem is that as well, or if it is just not a normal case to read values out of a sub-editor before the top-level driver has flushed the whole thing?

--
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/-/wyKxKnrDCy0J.
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: How to exclude JUnit test files to be converted to javascript inside /src/test/java/ folder when the Project is using Maven.

In your gwt.xml file, you can use <include> or <exclude> tags under your <source> paths. Like so:

<source path='client' />
<source path='service' />
<source path='dto'>
<exclude name='**/*Test.java' />
<exclude name='**/Mock*.java' />
</source>

--
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/-/MEyD2dm4PFgJ.
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.

Bing Maps in a GWT project

Hi all, I just want to know if someone is currently using Bing API in
a GWT project. I'm on the path of doing It but I haven't found any
clue of working implementations.
Thanks,
Jésica.

--
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.

Handy Bit of Code for Integrating GWT and Google Maps v3

I was unsatisfied with the available options for integrating GWT and
the Google Maps v3 api, so I turned to straight JSNI code. I created a
utility class containing static methods for creating a map object,
creating a bounding box for the map, creating a polygon to represent
the border, and creating an array of markers. (I probably could have
created a method for creating the info windows attached to the
markers, but didn't do so).

Anyways, in hope that it's of use to someone (besides the spammers who
will harvest my email address), here it is. I'm releasing it under the
Apache 2.0 license.

/**
* Copyright 2011 Jason Ferguson.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
may not
* use this file except in compliance with the License. You may obtain
a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the
* License for the specific language governing permissions and
limitations under
* the License.
*/
package org.jason.mapmaker.client.util;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;

import java.util.List;
import java.util.Map;

/**
* Utility class for integrating GWT and Google Maps API v3.
*
* This class provides static native JSNI methods for simplifying
working with GWT and v3 of the Google Maps API.
* Some glue code is still necessary, as the static methods only
output GWT JavaScriptObject or JsArray objects
* which need to be manually integrated with each other.
*
* An example of some glue code is as follows:
*
* <pre>
*
* public native void initMap(JavaScriptObject mapOptions,
JavaScriptObject bounds, JavaScriptObject border, JsArray markerArray,
Element e) /*-{
*
* // create the map and fit it within the given bounds
* map = new $wnd.google.maps.Map(e, mapOptions);
* if (bounds != null) {
* map.fitBounds(bounds);
* }
*
* // set the polgon for the borders
* if (border != null) {
* border.setMap(map);
* }
*
* if (markerArray != null && markerArray.length > 0) {
* var infoWindow = new $wnd.google.maps.InfoWindow({
* content:"InfoWindow Content Goes Here"
* });
*
* for (var i = 0; i < markerArray.length; i++) {
* var marker = markerArray[i];
* marker.setMap(map);
* $wnd.google.maps.event.addListener(marker, 'click',
function() {
* infoWindow.setContent(this.html);
* infoWindow.open(map, this);
* });
* }
* }
*
* (JSNI Closure, putting it in screws up the javadoc)
*
* </pre>
*
* @author Jason Ferguson
* @since 0.4.4
*/
@SuppressWarnings("unused")
public class GoogleMapUtil {

// change these values if you want the default map to show
somewhere besides St Louis
public static double defaultLat = 38.530;
public static double defaultLng = -89.84;

public static double getDefaultLat() {
return defaultLat;
}

public static double getDefaultLng() {
return defaultLng;
}

/**
* Create a basic Google Map object centered on a particular point
and return it as a GWT
* JavaScript object. Map type will be ROADMAP.
*
* @param lat double representing the latitude to center on
* @param lng double representing the longitude to center on
* @return a GWT JavaScriptObject representing options for a
google maps api map object (NOT THE MAP)
*/
public native static JavaScriptObject createMapOptions(Double lat,
Double lng) /*-{

// call the static getters of this method to set the default
values
if (lat == null) {
lat =
@org.jason.mapmaker.client.util.GoogleMapUtil::getDefaultLat()();
}

if (lng == null) {
lng =
@org.jason.mapmaker.client.util.GoogleMapUtil::getDefaultLng()();
}

// create the point to center the map on
var internalPoint = new $wnd.google.maps.LatLng(lat, lng);

var mapOptions = {
zoom: 8,
center: internalPoint,
mapTypeId: $wnd.google.maps.MapTypeId.ROADMAP
};

return mapOptions;
}-*/;

/**
* Create the bounds for a Google MAPS API v3 map
*
* The method requires that a Map<String, Double> containing the
minimum and maximum latitudes and longitudes
* be passed in in order to create a LatLngBounds object.
*
* The Map must have the following keys set:
*
* - MINLAT
* - MAXLAT
* - MINLNG
* - MAXLNG
*
* @param boundingBox a Map<String, Double> containing
the latitude and longitude to create a
* bounds for the map
* @return a JavaScript object representing a Google Maps API
v3 LatLngBounds object or null
*/
public native static JavaScriptObject createMapBounds(Map<String,
Double> boundingBox) /*-{

if (boundingBox == null) {
return null;
}

var minLat = boundingBox.@java.util.Map::get(Ljava/lang/
Object;)('MINLAT');
var minLng = boundingBox.@java.util.Map::get(Ljava/lang/
Object;)('MINLNG');
var maxLat = boundingBox.@java.util.Map::get(Ljava/lang/
Object;)('MAXLAT');
var maxLng = boundingBox.@java.util.Map::get(Ljava/lang/
Object;)('MAXLNG');

if (minLat == null || minLng == null || maxLat == null ||
maxLng == null) {
return null;
}

var bounds = new $wnd.google.maps.LatLngBounds(new
$wnd.google.maps.LatLng(minLat, minLng), new
$wnd.google.maps.LatLng(maxLat, maxLng));

return bounds;
}-*/;

/**
* Create a border polygon for a Google Maps API v3 map object.
Does NOT attach the border to the map.
* <p/>
* The method accepts a List of Map<String, Double> objects. The
list MUST be in the order that the
* lines for the border will be drawn in
* <p/>
* The map must have two keys:
* - LNG (longitude)
* - LAT (latitude)
* <p/>
* These keys are mapped to Double values. (I am aware of
potential inaccuracy of the Double type, but using
* BigDecimal would be difficult in conjuction with a JSNI
method).
* <p/>
* Client code is responsible for setting the map that the border
belongs to:
* <p/>
* border.setMap(mapObject);
*
* @param borderPoints A List of LinkedHashMap objects.
* @return a JavaScript object representing the border polygon for
a map object
*/
public native static JavaScriptObject
createBorderPolygon(List<Map<String, Double>> borderPoints) /*-{

var borderArray = new $wnd.google.maps.MVCArray();

var numberOfPoints = borderPoints.@java.util.List::size()();
for (i=0; i < numberOfPoints; i++) {
var pointMap = borderPoints.@java.util.List::get(I)(i);
var lat = pointMap.@java.util.Map::get(Ljava/lang/Object;)
('LAT');
var lng = pointMap.@java.util.Map::get(Ljava/lang/Object;)
('LNG');

borderArray.setAt(i, new $wnd.google.maps.LatLng(lat,
lng));
}

if (borderArray != null) {

var borders = new $wnd.google.maps.Polygon({
path: borderArray,
strokeColor: "#FF0000",
strokeOpacity: 0.8,
strokeWeight: 2
});

return borders;
} else {
return null;
}
}-*/;

/**
* Create and return a GWT JsArray of Google Maps API v3
InfoMarker objects
* <p/>
* The method accepts a List of Map objects which must must
contain certain mandatory keys:
* <p/>
* - TITLE (String)
* - LAT (Double)
* - LNG (Double)
* <p/>
* Client code will still have to loop through the array and set
the map:
* <p/>
* markerArray[i].setMap(mapObject);
*
* @param markerData a List of Map objects containing information
to put in the InfoMarker
* @return a JsArray of Google Maps API v3 InfoMarker objects
*/
public native static JsArray createMarkerArray(List<Map>
markerData) /*-{

var numberOfMarkers = markerData.@java.util.List::size()();
var markerArray = new Array();
markerArray.length = numberOfMarkers;

for (var i=0; i < numberOfMarkers; i++) {
var markerMap = markerData.@java.util.List::get(I)(i);
var markerTitle = markerMap.@java.util.Map::get(Ljava/lang/
Object;)('TITLE');
var markerLat = markerMap.@java.util.Map::get(Ljava/lang/
Object;)('LAT');
var markerLng = markerMap.@java.util.Map::get(Ljava/lang/
Object;)('LNG');
var latLng = new $wnd.google.maps.LatLng(markerLat,
markerLng);

markerArray[i] = new $wnd.google.maps.Marker();
markerArray[i].setPosition(latLng);
markerArray[i].setTitle(markerTitle);
}

return markerArray;

}-*/;

}

--
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: HeaderLayoutPanel?

Thanks for the breakdown Thomas. At first I thought it was something
particular to my application but I created a basic starter project and
it doesn't show the SplitPanelLayout with the super basic example
below. Oddly enough if you change the CSS position of the
SplitLayoutPanel element to static then it shows just fine with the
caveat that, although corner dragged resizes are handled okay, bottom
edge draggged resizes don't update the HeaderPanel's layout.

<g:HeaderPanel>

<!-- Header -->
<g:HTMLPanel> <h1>header</h1> </g:HTMLPanel>

<!-- Center -->
<g:SplitLayoutPanel>
<g:west size="200">
<g:HTMLPanel> <h2>Navbar</h2> </g:HTMLPanel>
</g:west>

<g:center>
<g:HTMLPanel> <h1>Stuff</h1> </g:HTMLPanel>
</g:center>
</g:SplitLayoutPanel>

<!-- Footer -->
<g:HTMLPanel> <h1>footer</h1> </g:HTMLPanel>

</g:HeaderPanel>

On 31 August 2011 15:57, Thomas Broyer <t.broyer@gmail.com> wrote:
>
> On Wednesday, August 31, 2011 9:18:22 AM UTC+2, James Horsley wrote:
>>
>> Would love to have the naturally resizing header and footer but to
>> then add a SplitLayoutPanel as the center. Doing so causes nothing to
>> show which I'm guess is due to HeaderPanel not being a LayoutPanel?
>
> HeaderPanel is a RequiresResize, and if you look at its source, you'll see
> that it'll call onResize on its content widget if it's a RequiresResize too.
> I guess the reason HeaderPanel doesn't implement ProvidesResize is because
> it doesn't implement the behavior for the header and footer.
> This does however make it a "layout panel".
> In other words: it should work. (and I have no idea why it doesn't)
>
> --
> 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/-/Kpd-yKfZSuIJ.
> 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: Click Listener on CellTableRow

You can extend CellTable and overwritte onBrowserEvent2.

 @Override
  protected void onBrowserEvent2(Event event) {
    super.onBrowserEvent2(event);

    String eventType = event.getType();
    boolean isClick = "click".equals(eventType);

    // Get the event target.
    EventTarget eventTarget = event.getEventTarget();
    if (!Element.is(eventTarget)) {
      return;
    }
    final Element target = event.getEventTarget().cast();

    if (isClick) {
      int columnClicked = getCellIndex(target);
      boolean isExcludedColumn =
          this.excludedColumns != null
              && (Arrays.binarySearch(this.excludedColumns, columnClicked) >= 0);
      if (!"input".equalsIgnoreCase(target.getTagName())
          && !isExcludedColumn) {
        T item = getCurrentSelectedItem(target);
       //do something
      }
    }
  }

2011/8/31 Foermchen82 <Juergen.Form@gmx.de>
Hi,

I want to handle click events on cell table rows. But i'm not able to
do this!

I tried the following code:

CellTable<MyObject> table = new CellTable<MyObject>();
final SingleSelectionModel<MyObject> model = new
SingleSelectionModel<MyObject>();
               table.setSelectionModel(model);

               table.addHandler(new ClickHandler() {

                       @Override
                       public void onClick(ClickEvent event) {
                               try{
                                       Window.alert(model.getSelectedObject());
                               }
                               catch(Exception e){
                                       System.out.println(e);
                               }
                       }
               }, ClickEvent.getType());

The problem is, that I try to get the object of the row on which I
have clicked. But on the click, the row under the mouse is actually
not selected. so the popup shows the wrong object.

How can I retreive the object under the mouse?

Kind regards,

--
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.

Re: Conditional CSS & Updates

+1

On Aug 28, 11:39 pm, rth <rthol...@gmail.com> wrote:
> Hi,
>
> I have a Conditional CSS block that calls isPortrait() at runtime and
> correctly renders the right rule based on its return value. My problem
> is that I cannot figure out how to get the condition to be reevaluated
> in the future (e.g., when the orientation changes, I would like to
> have the conditional CSS evaluated again and the page rendered with
> the new CSS). My sample CSS is below.
>
> @if (org.foo.Application.isPortrait()) {
>         .stats {
>                 border: 3px solid red;
>         }} @else {
>
>         .stats {
>                 border: 3px solid blue;
>         }
>
> }
>
> The docs (http://code.google.com/webtoolkit/doc/latest/
> DevGuideClientBundle.html#Conditional_CSS) states that these
> conditions are evaluated at runtime (which I can confirm), so I am
> hoping I can somehow force the re-evaluation to happen again.
>
> Any pointers would be greatly appreciated.
>
> --rth

--
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.

Click Listener on CellTableRow

Hi,

I want to handle click events on cell table rows. But i'm not able to
do this!

I tried the following code:

CellTable<MyObject> table = new CellTable<MyObject>();
final SingleSelectionModel<MyObject> model = new
SingleSelectionModel<MyObject>();
table.setSelectionModel(model);

table.addHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
try{
Window.alert(model.getSelectedObject());
}
catch(Exception e){
System.out.println(e);
}
}
}, ClickEvent.getType());

The problem is, that I try to get the object of the row on which I
have clicked. But on the click, the row under the mouse is actually
not selected. so the popup shows the wrong object.

How can I retreive the object under the mouse?

Kind regards,

--
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.

How to exclude JUnit test files to be converted to javascript inside /src/test/java/ folder when the Project is using Maven.

/src/test/java/ and /src/main/java/ folders are created by maven when
you mavenised the GWT project. I also have <source path="client"/>
statement in my gwt module XML file.

I have package name as com.mycompany.project.client.activity inside /
src/test/java/ folder which has files to test my activity classes.

I get source code not found error when the module is loaded in running
an app Development mode.

I am thinking since I have "client" name as a package in my test
folder GWT is shouting.

Why would GWT should even try to convert my JUnit test files into
javascript? And what is the solution to fix this?


--
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.

Shared Client/Server classes, compiled from different sources

Hiya,

I've created a JavaScript array wrapping class for my client code,
which works great (accessed like an arraylist, but compiles directly
to a JS array with minimal overhead), which has proven to give a big
gain in performance over the default emulated ArrayList.

I've started on shared code (used on both the client and server), and
have realised that the server will not be able to use this class. I've
been mucking around with the super-source module xml tag, in an
attempt to have a "default" (Java environment) MyArray class, and then
"re-root" that definition to a JavaScript-friendly MyArray class at
compile time - however can't seem to work out how to do this.

My code's structure is as follows:

src
-> my_framework
-> my_framework.gwt.xml (no entry point, inherits core GWT stuff,
source path of 'client')
-> my_framework.client
-> my_app
-> my_app.gwt.xml (has an entry point, inherits my_framework,
source path of '_client' and '_shared')
-> my_app._client
-> my_app._shared

MyArray.java is in my_framework.client, and contains the
JavaScriptObject implementation (there's no constructor, new instances
are achieved via a static method, which compiles to inlined 'var arr =
[]' code, fantastically).

My goal is to have the 'MyArray' server/client override occur in the
my_framework module. I've tried several things, but can't seem to get
any of them to work. Is there anybody who knows how the project can be
set up so that:
- The client code is compiled using MyArray.java, which is a
JavaScriptObject.
- The server code compiles using MyArray.java, which is a Java
object, which contains all the same public methods as the first
MyArray.

Thanks, I've been trying for hours and just can't seem to get it to
work (either get 'wrong package' errors, or the JavaScriptObject never
takes precedence and the compiled code ends up with emulated
functionality of the server-intended implementation).

--
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: RequestContext Overhead

I agree that it looks like the overhead is per-requestcontext. This is
also reflected in the size of the abstract request factory vs the
abstract request context.

--
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: WindowBuilder/GWT Designer error

Thank you, your example was helpful.
I've fixed problem in WindowBuilder trunk.

Problem is that you use old style Java project, when *.java and *.class files are directly in project folder, instead of separate "src" and "bin" folders.
So, as work around until you will have new version of WindowBuilder and GWT Designer, create these folders, move Java files and tweak .classpath file.

--
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/-/hfrr4bjBLSkJ.
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: plugin failed to connect to hosted mode server at...

You can try regenerating the jar index by running this command:

jar i gwt-maps.jar

--
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/-/8_AvliNl8TcJ.
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.

Missing required argument 'module[s]' error

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<!-- POM file generated with GWT webAppCreator -->
<modelVersion>4.0.0</modelVersion>
<groupId>com.iip</groupId>
<artifactId>iip</artifactId>
<packaging>war</packaging>
<version>1.0</version>
<name>GWT Maven Archetype</name>

<properties>
<!-- Convenience property to set the GWT version -->
<gwtVersion>2.1.0</gwtVersion>
<!-- GWT needs at least java 1.5 -->
<maven.compiler.source>1.5</maven.compiler.source>
<maven.compiler.target>1.5</maven.compiler.target>
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
</properties>

<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>2.3.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>2.3.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<!-- Generate compiled stuff in the folder used for developing mode -->
<outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>

<plugins>

<!-- GWT Maven Plugin -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.3.0</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test</goal>
<goal>i18n</goal>
<goal>generateAsync</goal>
</goals>
</execution>
</executions>
<!-- Plugin configuration. There are many available options, see gwt-maven-plugin
documentation at codehaus.org -->
<configuration>
<runTarget>Iip.html</runTarget>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<i18nMessagesBundle>war.client.Messages</i18nMessagesBundle>
</configuration>
</plugin>

<!-- Copy static web files before executing gwt:run -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>exploded</goal>
</goals>
</execution>
</executions>
<configuration>
<webappDirectory>${webappDirectory}</webappDirectory>
</configuration>
</plugin>

</plugins>
</build>

</project>
Hi all,

I follow instruction in this page (https://sites.google.com/site/jeenigxt/gwt-ext-maven-and-eclipse) to setup my first maven project for ext gwt. I got to the part called "Test So Far" and ran into this error when doing " Run As -> Web Application". I have been searching and trying different posts for couple of hours now without any progress. Attached is my pom.xml. Please help. Thanks.

Missing required argument 'module[s]'
Google Web Toolkit 2.2.0
DevMode [-noserver] [-port port-number | "auto"] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort port-number | "auto"] [-server servletContainerLauncher[:args]] [-startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-workDir dir] module[s]

where
 -noserver        Prevents the embedded web server from running
 -port            Specifies the TCP port for the embedded web server (defaults to 8888)
...
and
 module[s]        Specifies the name(s) of the module(s) to host

Here is what appears in "Program arguments" text box of "Arguments" tab of "Run Configuration" window:
-war C:\Users\phamtranquocviet\Downloads\iip\target\iip-1.0 -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl Iip.html -logLevel INFO -codeServerPort 9997 -port 8888

--
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 1.52 Compile error

You can try regenerating the jar index by running this command:

jar i some-jar-file.jar

--
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/-/TkdaLOGtQDAJ.
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: Request implementation couldn't be found.

Can you show you code ? (RatesRequest, RateProxy, and associated server-side classes –method declarations only–)

It can be as simple as a method not being public, or a missing Locator/ServiceLocator on your @ProxyFor/@Service, or  @ProxyFor/@Service not point at the right class; or possibly a mistake in declaring the method on the RatesRequest (e.g. using an InstanceRequest Instead of a Request)

--
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/-/ALfps8svRu4J.
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: Request implementation couldn't be found.

The thing is that it happens when i try to fire a request with any of
the methodes implemented on the entity side. Console is always saying

[ERROR] Could not find matching method in
synlogistics.ratesexchange.server.domain.Rate.
Possible matches:
synlogistics.ratesexchange.server.domain.Rate
findRate(java.lang.Long )

I will definitely try to configure it manually, but I will be happy to
get it working also on the "normal" way. Could there be any other
reasons why it is not working?

Thank you for your help and for your blog also!

On 29 Aug., 23:49, Thomas Broyer <t.bro...@gmail.com> wrote:
> Sorry, as the error says, this is not about findRates (plural), but findRate
> (singular).
>
> You can try downloading requestfactory-apt-2011-08-18.jar<http://google-web-toolkit.googlecode.com/svn/tools/lib/requestfactory...>and configuring it in Eclipse; it's more accurate, and points the exact
> method directly in the code: seehttp://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterf...

--
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: RootPanel Widget - Attach, detach, attach again

Thanks Thomas,

Works like a charm now.

Seems I was overdoing trying to get it right :)

Best wishes,

Vinicius Reinaldi

--
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/-/xpNF9Kb28AAJ.
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: Datepicker

See http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/datepicker/client/DatePicker.html in the example of the javadoc.

2011/8/31 nic <nicolas.richoz@gmail.com>
Hello,

In my app, I have a datepicker. The format of my datepicker is
"dd.MM.yyyy". In firefox and google chrome, when I enter for example
2011, the date is automatically to 1.1.2011 updated.

Why ? Is there a possibility to disable this feature ?

Thank you very much !

Nic

--
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.

Re: Gwt Editor Framework and value change notification

No.

The Editor framework follows a "flow synchronization" pattern; see http://tbroyer.posterous.com/gwt-21-editors for more details.

--
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/-/iQo18I7FltoJ.
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: RootPanel Widget - Attach, detach, attach again



On Wednesday, August 31, 2011 3:56:12 PM UTC+2, vmrggg wrote:
Hi!

Sorry. Nobody has time to go through code. I understand that.

Let me try to explain it in another way:

RootPanel rp = RootPanel.get( "DIV_ID" );
rp.add( widget1 );
...
rp.add( widgetN );
RootPanel.detachOnWindowClose( rp );

detachOnWindowClose is automatically called by RootPanel.get(). It's a method expected to be used in widgets' static wrap(Element) methods. There's little to no reason to call it if you're not writing your own wrap(Element) method for your own widget.
 
At this point in time the event handlers of widget1 through widgetN works allright.

Later on I need to get rid of this set of widgets and replace then with another one, so I tried the following:

rp.clear(); // To remove widget1 through widgetN
rp.removeFromParent(); // To "unbind" from "DIV_ID"

When you removeFromParent(), given that a RootPanel has no parent and is in the "detach on window close" list, it is detached (RootPanel.detachNow(rp) is called).

The issue is that RootPanel caches RootPanel instances, so a subsequent call to RootPanel.get(String) with the same ID will return the exact same RootPanel instance, but won't re-attach it!

Then I start again (in another part of the code) with a new set of widgets, but using the same "DIV_ID" of the host Html page, but the event handlers of this new set of widgets does not work. If I use another element id of the same host page, say "DIV_ID_2", it works.

There is something completely wrong in my undestanding of the GWT about this point?

Just remove your call to removeFromParent(), there's absolutely no reason to do it on a RootPanel. 

--
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/-/MO5gnZ3mJd0J.
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.

Datepicker

Hello,

In my app, I have a datepicker. The format of my datepicker is
"dd.MM.yyyy". In firefox and google chrome, when I enter for example
2011, the date is automatically to 1.1.2011 updated.

Why ? Is there a possibility to disable this feature ?

Thank you very much !

Nic

--
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: HeaderLayoutPanel?


On Wednesday, August 31, 2011 9:18:22 AM UTC+2, James Horsley wrote:
Would love to have the naturally resizing header and footer but to
then add a SplitLayoutPanel as the center. Doing so causes nothing to
show which I'm guess is due to HeaderPanel not being a LayoutPanel? 

HeaderPanel is a RequiresResize, and if you look at its source, you'll see that it'll call onResize on its content widget if it's a RequiresResize too. I guess the reason HeaderPanel doesn't implement ProvidesResize is because it doesn't implement the behavior for the header and footer.
This does however make it a "layout panel".

In other words: it should work. (and I have no idea why it doesn't)

--
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/-/Kpd-yKfZSuIJ.
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: RootPanel Widget - Attach, detach, attach again

Hi!

Sorry. Nobody has time to go through code. I understand that.

Let me try to explain it in another way:

RootPanel rp = RootPanel.get( "DIV_ID" );
rp.add( widget1 );
...
rp.add( widgetN );
RootPanel.detachOnWindowClose( rp );

At this point in time the event handlers of widget1 through widgetN works allright.

Later on I need to get rid of this set of widgets and replace then with another one, so I tried the following:

rp.clear(); // To remove widget1 through widgetN
rp.removeFromParent(); // To "unbind" from "DIV_ID"

Then I start again (in another part of the code) with a new set of widgets, but using the same "DIV_ID" of the host Html page, but the event handlers of this new set of widgets does not work. If I use another element id of the same host page, say "DIV_ID_2", it works.

There is something completely wrong in my undestanding of the GWT about this point?

Thanks,

Vini

--
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/-/UTdej1YW9d4J.
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: Java's "Write Once, Run Anywhere" for Mobile with GWT is Here!

Here is a screenshot of what it looks like.

Regards,

Alfredo

On Wed, Aug 31, 2011 at 8:35 AM, Alfredo Quiroga-Villamil <lawwton@gmail.com> wrote:
And yes, add the map to the window. In this case.

        mainWindow.add(mapView);

Regards,

Alfredo


On Wed, Aug 31, 2011 at 8:31 AM, Alfredo Quiroga-Villamil <lawwton@gmail.com> wrote:
Hello Navindian:

You can do this pretty easily since we have already implemented it in the API. This is supported today for Android, iPad and iPhone. Below is a small snippet of what it would look like:

        Window mainWindow = UI.createWindow();
        mainWindow.setTitle("My Map");
       
        final MapView mapView = Map.createMapView();
        mapView.setMapType(Map.STANDARD_TYPE);
        mapView.setRegion(Region.newInstance(35.823483, -78.825562, 0.5, 0.5));
        mapView.setAnimate(true);
        mapView.setRegionFit(true);

        mainWindow.open();
        mainWindow.show();

There are a bunch of goodies too, for example annotate locations, update the map on the fly, zoom in, zoom out, etc. You can also send a web service call to your backend service and receive the response and act accordingly,

Regards,

Alfredo


On Wed, Aug 31, 2011 at 2:41 AM, Navindian <navindian@gmail.com> wrote:
I have developed google maps based application in GWT. The architecture being used here is GWT+RPC+Spring+AOP+Oracle DB.
I wish to put one more view on Android and iphone application. any thoughts?

Thanks
Navindian

On Mon, Aug 29, 2011 at 9:58 PM, Alfredo Quiroga-Villamil <alfredo@emitrom.com> wrote:
All:

We are really happy to announce the addition of GWT4Titanium Mobile to
our suite of available products.

With a 100% implementation of the Appcelerator's API for Titanium
Mobile, it has never been easier to develop cross platform mobile
applications and all from the convenience of your Titanium Studio IDE
in Java. Reuse all the GWT techniques you are already familiar with.

- Write native applications for Android and IOS in Java using GWT and
Titanium.
- I18N Support.
- GWT-RPC, RequestFactory as well as RequestBuilder for your Ti Mobile
Apps.
- Dependency Injection support via GIN.
- JSON and XML to POJOs support.
- Event Bus support.

Would you like to find out more? Visit us at:

http://www.emitrom.com/gwt4timobile

Happy Coding from the Emitrom Team!

--

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.



--
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton





--
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton





--
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.

Requestfactory : best practice for persisting updates with Locator

Hi,

I finally did a first try at RF and am wondering what is the best way
to implement the persist method on a Locator class in order to deal
with only the deltas send from the client?

As right now my persist(T objectToPersist) method on the Locator is
doing a create if the object has no id associated to it. This use case
is pretty similar to what i would have done with RPC as the whole
object is being sent evidently. But when i then reload the object from
the server, change some properties on it and call persist again a
pretty 'light' objectToPersist appears in that method which seems to
even have lost the PK on the associations in that object.

So am i missing something or is there a good way to implement those
updates especially when dealing with associations in that object?

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-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 does not use resource properties file from target, but the once in src/main/resources. How to make it with placeholders?

Check http://mojo.codehaus.org/build-helper-maven-plugin/. With this plugin you can add sources folder. Try add a folder where you have the file processed by maven.

2011/8/31 mariyan nenchev <nenchev.mariyan@gmail.com>
Yes, this is exactly the same problem.

But the last post does not resolve it.

On Wed, Aug 31, 2011 at 3:14 PM, Juan Pablo Gardella <gardellajuanpablo@gmail.com> wrote:
check the last post, perhaps help to you
http://www.sencha.com/forum/showthread.php?114000-gwt-maven-plugin-and-the-filtering-issue

2011/8/31 mariyan nenchev <nenchev.mariyan@gmail.com>
Hi,

I have gwt web project, which must use application.properties (on client side) loaded as TextResource in the code. Everything works fine, but now i want to centralize all properties values in maven pom.xml. So i made application.properties with placeholders like key1=${param1} and in the pom.xml i configured property param1Value

So, what happening is that maven replaces the placeholders in application.properties in target dir, but it seems that gwt compiler uses the application.properties file from src/main/resources. I checked the compiled js files and i there i can see that the placeholder is not replaced with its value from the pom.xml (target's application.properties is correct).

Regards.

--
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.

--
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.

Re: Java's "Write Once, Run Anywhere" for Mobile with GWT is Here!

And yes, add the map to the window. In this case.

        mainWindow.add(mapView);

Regards,

Alfredo

On Wed, Aug 31, 2011 at 8:31 AM, Alfredo Quiroga-Villamil <lawwton@gmail.com> wrote:
Hello Navindian:

You can do this pretty easily since we have already implemented it in the API. This is supported today for Android, iPad and iPhone. Below is a small snippet of what it would look like:

        Window mainWindow = UI.createWindow();
        mainWindow.setTitle("My Map");
       
        final MapView mapView = Map.createMapView();
        mapView.setMapType(Map.STANDARD_TYPE);
        mapView.setRegion(Region.newInstance(35.823483, -78.825562, 0.5, 0.5));
        mapView.setAnimate(true);
        mapView.setRegionFit(true);

        mainWindow.open();
        mainWindow.show();

There are a bunch of goodies too, for example annotate locations, update the map on the fly, zoom in, zoom out, etc. You can also send a web service call to your backend service and receive the response and act accordingly,

Regards,

Alfredo


On Wed, Aug 31, 2011 at 2:41 AM, Navindian <navindian@gmail.com> wrote:
I have developed google maps based application in GWT. The architecture being used here is GWT+RPC+Spring+AOP+Oracle DB.
I wish to put one more view on Android and iphone application. any thoughts?

Thanks
Navindian

On Mon, Aug 29, 2011 at 9:58 PM, Alfredo Quiroga-Villamil <alfredo@emitrom.com> wrote:
All:

We are really happy to announce the addition of GWT4Titanium Mobile to
our suite of available products.

With a 100% implementation of the Appcelerator's API for Titanium
Mobile, it has never been easier to develop cross platform mobile
applications and all from the convenience of your Titanium Studio IDE
in Java. Reuse all the GWT techniques you are already familiar with.

- Write native applications for Android and IOS in Java using GWT and
Titanium.
- I18N Support.
- GWT-RPC, RequestFactory as well as RequestBuilder for your Ti Mobile
Apps.
- Dependency Injection support via GIN.
- JSON and XML to POJOs support.
- Event Bus support.

Would you like to find out more? Visit us at:

http://www.emitrom.com/gwt4timobile

Happy Coding from the Emitrom Team!

--

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.



--
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton





--
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: Java's "Write Once, Run Anywhere" for Mobile with GWT is Here!

Hello Navindian:

You can do this pretty easily since we have already implemented it in the API. This is supported today for Android, iPad and iPhone. Below is a small snippet of what it would look like:

        Window mainWindow = UI.createWindow();
        mainWindow.setTitle("My Map");
       
        final MapView mapView = Map.createMapView();
        mapView.setMapType(Map.STANDARD_TYPE);
        mapView.setRegion(Region.newInstance(35.823483, -78.825562, 0.5, 0.5));
        mapView.setAnimate(true);
        mapView.setRegionFit(true);

        mainWindow.open();
        mainWindow.show();

There are a bunch of goodies too, for example annotate locations, update the map on the fly, zoom in, zoom out, etc. You can also send a web service call to your backend service and receive the response and act accordingly,

Regards,

Alfredo

On Wed, Aug 31, 2011 at 2:41 AM, Navindian <navindian@gmail.com> wrote:
I have developed google maps based application in GWT. The architecture being used here is GWT+RPC+Spring+AOP+Oracle DB.
I wish to put one more view on Android and iphone application. any thoughts?

Thanks
Navindian

On Mon, Aug 29, 2011 at 9:58 PM, Alfredo Quiroga-Villamil <alfredo@emitrom.com> wrote:
All:

We are really happy to announce the addition of GWT4Titanium Mobile to
our suite of available products.

With a 100% implementation of the Appcelerator's API for Titanium
Mobile, it has never been easier to develop cross platform mobile
applications and all from the convenience of your Titanium Studio IDE
in Java. Reuse all the GWT techniques you are already familiar with.

- Write native applications for Android and IOS in Java using GWT and
Titanium.
- I18N Support.
- GWT-RPC, RequestFactory as well as RequestBuilder for your Ti Mobile
Apps.
- Dependency Injection support via GIN.
- JSON and XML to POJOs support.
- Event Bus support.

Would you like to find out more? Visit us at:

http://www.emitrom.com/gwt4timobile

Happy Coding from the Emitrom Team!

--

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.



--
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: GWT does not use resource properties file from target, but the once in src/main/resources. How to make it with placeholders?

Yes, this is exactly the same problem.

But the last post does not resolve it.

On Wed, Aug 31, 2011 at 3:14 PM, Juan Pablo Gardella <gardellajuanpablo@gmail.com> wrote:
check the last post, perhaps help to you
http://www.sencha.com/forum/showthread.php?114000-gwt-maven-plugin-and-the-filtering-issue

2011/8/31 mariyan nenchev <nenchev.mariyan@gmail.com>
Hi,

I have gwt web project, which must use application.properties (on client side) loaded as TextResource in the code. Everything works fine, but now i want to centralize all properties values in maven pom.xml. So i made application.properties with placeholders like key1=${param1} and in the pom.xml i configured property param1Value

So, what happening is that maven replaces the placeholders in application.properties in target dir, but it seems that gwt compiler uses the application.properties file from src/main/resources. I checked the compiled js files and i there i can see that the placeholder is not replaced with its value from the pom.xml (target's application.properties is correct).

Regards.

--
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.

--
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.