Re: Highcharts - updating chart with data

2011-11-06 Thread Rob
Hi,

There is a gwt wrapper for HighCharts.

- http://www.moxiegroup.com/moxieapps/gwt-highcharts/

Check out this demo that uses gwt-highcharts:

- http://gwt-cx.com/serendipity/Serendipity.html

Click on the Dashboards menu item.

Cheers
Rob

http://code.google.com/p/gwt-cx/


On Nov 5, 2:53 am, George Agiasoglou george.agiasog...@newsint.co.uk
wrote:
 Hi there,

 I am interested in using Highcharts in my app, how do you use the above
 code?

 I tried to use your code but it complains that it cannot find 'Chart'

 Thanks,
 G

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: future of gwt who use gwt

2011-11-06 Thread krespo
Hallo, 
I want ask what do you commend for new project(which option from listed 
under):
1. Do you commend use GWT ?
2. Do you commend wait some time for dart(in this case how long) ?
3. Do you commend use GWT REST (not RPC) and latter rewrite frontend into 
Dart ? I anticipate that Dart won't use RPC with java backend ?

-btw We want use java on backend.

-- 
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/-/mQNZIjCG8acJ.
To post to this group, send email to google-web-toolkit@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.



CellList grid

2011-11-06 Thread noach
Is there a way to display elements of a cell list in a grid format?
For example, if there were 8 items, the cells might be arranged as
follows:

Item1  Item4  Item7
Item2  Item5  Item8
Item3  Item6

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: future of gwt who use gwt

2011-11-06 Thread VisualFox
Hi Krespo,

Everything depends upon your specific need. So answering these
questions without any background is quite hazardous.

1) yes I mean like YES if you are developing an app - in my experience
GWT is the only valid solution for complex app

2) no

3) yes because you are not willing to use java on the backend. In the
past I had done backend in php, and node.js - node.js was a really
sweet experience


On Nov 6, 8:15 am, krespo ma...@gmail.com wrote:
 Hallo,
 I want ask what do you commend for new project(which option from listed
 under):
 1. Do you commend use GWT ?
 2. Do you commend wait some time for dart(in this case how long) ?
 3. Do you commend use GWT REST (not RPC) and latter rewrite frontend into
 Dart ? I anticipate that Dart won't use RPC with java backend ?

 -btw We want use java on backend.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Is GWT's obfuscate compilation safe enough to protect the js code?

2011-11-06 Thread Jens
http://en.wikipedia.org/wiki/Security_through_obscurity

GWT does not obfuscate your JS in order to protect it. It does so to shrink 
the JS code. The same applies to CSS classes via CssResource. 

An attacker has complete control of your JS code. He can set breakpoints, 
edit the code, log variable contents. So with some work he can identify 
these algorithms you want to protect and analyze/change it. It does not 
really matter if the code is obfuscated or not.

-- 
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/-/-nFSpPS-x_AJ.
To post to this group, send email to google-web-toolkit@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: Form factor support using GIN

2011-11-06 Thread Thomas Broyer
Deferred binding only occurs when you use GWT.create(). If you new 
ViewFactory(), there's no reason you'll be given a TableViewFactory. GWT 
doesn't change Java's semantics.

What you have to do is to use a distinct Ginjector depending on the form 
factor, and you can re-use the same GinModule(s) for all the shared binding 
configurations, and add a specific GinModule per form factor. 
Unfortunately, you cannot use both a generate-with (GIN's Ginjector) and 
replace-with (chose the right Ginjector depending on form factor), so 
you'll have to use a replace-with rule on a provider class for you 
Ginjector:

interface MyGinjector extends Ginjector {
   // all your accessors
}
@GinModules(SharedGinModule.class, DesktopGinModule.class)
interface DesktopGinjector extends Ginjector {
   // nothing special here; it's only used for the @GinModules annotation
}
@GinModules(SharedGinModule.class, TabletGinModule.class)
interface TabletGinjector extends Ginjector { }
@GinModules(SharedGinModule.class, PhoneGinModule.class)
interface PhoneGinjector extends Ginjector { }

interface GinjectorProvider {
   MyGinjector get();
}
class DesktopGinjectorProvider implements GinjectorProvider {
   public MyGinjector get() { return GWT.create(DesktopGinjector.class); }
}
class TabletGinjectorProvider implements GinjectorProvider {
   public MyGinjector get() { return GWT.create(TabletGinjector.class); }
}
class PhoneGinjectorProvider implements GinjectorProvider {
   public MyGinjector get() { return GWT.create(PhoneGinjector.class); }
}

replace-with class=...DesktopGinjectorProvider
   when-type-is class=...GinjectorProvider /
   when-property-is name=formfactor value=desktop /
/replace-with

-- 
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/-/5AGrTt6sty4J.
To post to this group, send email to google-web-toolkit@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: New To GWT and More

2011-11-06 Thread Robert Lockwood
Follow the posts by mlotfi2005 from a few days ago as several links to good
references are provided.  I think that this may link you to the first post:
https://mail.google.com/mail/u/0/#label/Forums/1334cc2573209163
... but maybe not.

On Sat, Nov 5, 2011 at 9:13 PM, Juan Pablo Gardella 
gardellajuanpa...@gmail.com wrote:

 I recommend an old book, but is very good to start.
 http://www.gwtapps.com/

 2011/11/5 matthew poplin mattpop...@gmail.com

 hey guys i am interested in knowing more about GWT and was wanting to
 learn what it can do and everything.

 i have seen like 2 videos of it and was pretty impressed.

 i wanna know what code i should know when doing GWT, what IDE i should
 use ( eclipse i have tried to use but is very slow it seems in 64 bit
 sometimes)

 im a noob to GWT please help :)

 --
 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+unsubscr...@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+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
When I was 12 I thought I would live forever.
So far, so good.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: No source code is available for type java.io.FileNotFoundException

2011-11-06 Thread Kevin Jordan
Are you talking about using the HTML 5 File API?  If so, you should
never run into a FileNotFoundException there if that's one you're
adding since you can't directly open a file, it has to be done with
either a request to the server or through user interaction with a file
dialog or drag and drop.  If it's the server that's going to be
throwing that error during an RPC function or something, I think the
client would just get an InvocationException anyways if you're
checking instanceof or something on the exception in the onFailure
method

On Nov 5, 9:29 am, Ankur Agrawal ankur@gmail.com wrote:
 Hi,
 When i am trying to use File Handling at client side and so for the
 same i have to use FileNotFoundException handling. But i am getting
 following error:
 No source code is available for type java.io.FileNotFoundException;
 did you forget to inherit a required module?

 It seems that the Emulated GWT JRE library doesn't include this
 Exception class. How can i fix this error. Please suggest ?

 Thanks,
 Ankur

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: New To GWT and More

2011-11-06 Thread shootMeNow
I checked out the source code for GWT trunk and while building using
ANT, I got an error saying  Unable to create SVN INFO task  .

I had to comment out the following line 292 in the file common.ant.xml
to get it compile,

  !--svninfo directory=${gwt.root} outputproperty=gwt.svnrev
  outputfileproperty=gwt.svnrev.filename --

Is it going to affect me in any way ?

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Handling browser-based text size

2011-11-06 Thread Andrei
You would typically have this problem when you use fixed layouts or
fixed size widgets (both width and height is set in pixels). Take a
look at the widgets that overflow, and see if you need to have their
height fixes. Also, check if the following CSS rule applies to these
widgets:

white-space: normal;

It will tell the widgets to wrap the text if it exceeds the width of
an element.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Saving Object to fole on Server

2011-11-06 Thread m...@grayout.de
Hi everybody,

I need to save an Java Object (List or hashmap) to the server so I can
load it later If required.

My first attempt looks like this:

ArrayListString al = new ArrayListString();

URL url;

try {
url = new 
URL(http://127.0.0.1:/Resources/test.obj;);
   URLConnection urlc = url.openConnection();
BufferedOutputStream buf = new
BufferedOutputStream(urlc.getOutputStream());
ObjectOutputStream os = new 
ObjectOutputStream(buf);
os.writeObject(al);
buf.close();
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();


But the file on the server is not created. Also no error is thrown.

Can porbaby anybody help me? Any support will be highly appreciated ;)

Best regards

Uli

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: future of gwt who use gwt

2011-11-06 Thread Brandon Donnelson
I think GWT is awesome for any type of web application. 

I think RPC is by far the easiest to use and work with, especially if 
you're new to GWT. There are many communication paths you can do with GWT 
and they all work great. 

I'm sure Dart will have some libs to deal with communicating down the road.

Brandon Donnelson
http://gwt-examples.googlecode.com


-- 
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/-/DMfSbaXPe88J.
To post to this group, send email to google-web-toolkit@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: New To GWT and More

2011-11-06 Thread Brandon Donnelson
Here are a few basic video tutorials I've done:
http://www.youtube.com/playlist?list=PL29B4CCEF46EFF4F2feature=viewall

Brandon Donnelson
http://gwt-examples.googlecode.com

-- 
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/-/XvW1yv4TDnoJ.
To post to this group, send email to google-web-toolkit@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: MySql Connection Problem

2011-11-06 Thread Brandon Donnelson


/**
 * db conn
 * 
 * Make sure you add a reference library (external jar in build path) JDBC 
Connector - 
 * You will see I put it in /opt/gwt-linux/mysql-connector-java-5.0.8-bin.jar
 * 
 * @return Connection
 */
private Connection getConn() {

Connection conn = null;
String url  = jdbc:mysql://192.168.12.81:3306/;
String db   = hostdb;
String driver   = com.mysql.jdbc.Driver;
String user = ;
String pass = ;

try {
Class.forName(driver).newInstance();
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
try {

conn = DriverManager.getConnection(url+db, user, pass);
} catch (SQLException e) {
System.err.println(Mysql Connection Error: );
e.printStackTrace();
}
return conn;
}



Here are some MySql wiki notes I put together:
http://code.google.com/p/gwt-examples/wiki/project_MySQLConn

Hope that helps,
Brandon Donnelson
http://gwt-examples.googlecode.com

-- 
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/-/abCrPHWVXhYJ.
To post to this group, send email to google-web-toolkit@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.



FlexTable and ListBox

2011-11-06 Thread Juan Jose Alcazar
Hello
I am developing a app and I have to show a table(flextable) and
integrate a listbox in each row.
I am trying do it, but the table only shows a listbox, in the last
row. I have tried it iterating, manually, but i didnt have success.
How many listbox can I put in a flextable? I think the problem is
that.

I have inserted other widgets(textBox for example) and I could insert
all of them in the table and it shows all of them, but with
listBox...only one.

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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Git repository for GWT

2011-11-06 Thread Jesper Rønn-Jensen
Has somebody made a git clone of GWT source repository? That would be
faster for me to git clone an existing git repos, rather than git svn
clone the entire GWT source repos.

/Jesper Rønn-Jensen
www.justaddwater.dk

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Web Toolkit for Web and Mobile development

2011-11-06 Thread Daniel Kurka

take a look at http://www.m-gwt.com

Am 03.11.2011 um 02:39 schrieb dkgcb:

 I came across the information that if you want to develop the site
 that would serve smart device users, you need to develop site
 specifically for mobile users. Does anyone care to share if it is
 possible to develop a site that would serve desktop and mobile devices
 using the GWT?
 
 -- 
 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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



HTTP ERROR 404

2011-11-06 Thread luca finocchio
Hi,
I'm trying to make an application gwt for my thesis but but I have
this error. HTTP ERROR 404 problem accessing /arnaldo/FIndirizzo.


this is my web.xml
?xml version=1.0 encoding=UTF-8?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
 version=2.5
 xmlns=http://java.sun.com/xml/ns/javaee;

  !-- Servlets --
  servlet
servlet-namegreetServlet/servlet-name
servlet-classcom.pullet.server.GreetingServiceImpl/servlet-
class
  /servlet

  servlet-mapping
servlet-namegreetServlet/servlet-name
url-pattern/arnaldo/greet/url-pattern
  /servlet-mapping

  servlet
servlet-nameFIndirizzoServlet/servlet-name
servlet-classcom.pullet.server.FIndirizzoImpl/servlet-class
  /servlet

  servlet-mapping
servlet-nameFIndirizzoServlet/servlet-name
url-pattern/arnaldo/FIndirizzo/url-pattern
  /servlet-mapping

  !-- Default page to serve --
  welcome-file-list
welcome-fileArnaldo.html/welcome-file
  /welcome-file-list

/web-app


this is my Arnaldo.gwt.xml
?xml version=1.0 encoding=UTF-8?
module rename-to='arnaldo'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name='com.google.gwt.user.User'/

  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  inherits name='com.google.gwt.user.theme.clean.Clean'/
  !-- inherits name='com.google.gwt.user.theme.standard.Standard'/
--
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

  !-- Other module inherits  --

  !-- Specify the app entry point class. --
  entry-point class='com.pullet.client.Arnaldo'/

  !-- Specify the paths for translatable code--
  source path='client'/
  source path='shared'/
  source path='server/Entity'/
/module

this is FIndirizzo.java

package com.pullet.client;

import org.orm.PersistentException;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.pullet.server.Entity.EIndirizzo;

@RemoteServiceRelativePath(FIndirizzo)
public interface FIndirizzo extends RemoteService{

public EIndirizzo carica() throws Exception;

}

I hope you can help me out, 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to get Resources in GWTTestCase

2011-11-06 Thread Jeff Chimene
Hi:

I'd like to test calls to XMLParser.parse().

I'd like to use a testing framework to send various XML documents to a
class method that calls this routine.

I want to use the browser implementation to perform the parse. This
means GWTTestCase.

GWTTestCase implies no java.io

I don't want to hardcode XML documents in my test drivers. I'd like to
use GWT Resources.

GWT Resources seems to imply GWT.create() which conflicts with GWTTestCase.

I'm sure there's a way to get Gin to work with GWTTestCase.

Searching only returns example code that doesn't work and is poorly
documented (e.g.
http://howtogwt.blogspot.com/2010/03/instance-creation-and-dependency.html)

What solutions have others implemented?

TIA,
jec

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Is GWT's obfuscate compilation safe enough to protect the js code?

2011-11-06 Thread OrNOt
So,how can I protect my js code suppose for some reason I must put
that algorithm to client side?

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: future of gwt who use gwt

2011-11-06 Thread Warren Tang
GWT is good at RIA, but not fit for CMS which values SEO. Actually SEO 
in all AJAX applications is a challenge. The solution provided by Google 
(#!) hasn't been adopted by other search engines.


Regards,
Warren Tang http://blog.tangcs.com

On 11/7/2011 12:15 AM, Brandon Donnelson wrote:

I think GWT is awesome for any type of web application.

I think RPC is by far the easiest to use and work with, especially if 
you're new to GWT. There are many communication paths you can do with 
GWT and they all work great.


I'm sure Dart will have some libs to deal with communicating down the 
road.


Brandon Donnelson
http://gwt-examples.googlecode.com


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

To post to this group, send email to google-web-toolkit@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.


--
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Is GWT's obfuscate compilation safe enough to protect the js code?

2011-11-06 Thread rpromjr
You originally stated suppose no RPC is involved here, yet if you
must put it in the client side you may want to review your design and
redesign to use some RPC.

On Nov 6, 7:41 pm, OrNOt ornot2...@gmail.com wrote:
 So,how can I protect my js code suppose for some reason I must put
 that algorithm to client side?

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Form factor support using GIN

2011-11-06 Thread Rob
Hi Thomas,

Thanks.

Was also referred to - 
https://groups.google.com/d/topic/gwt-platform/V_Qqn9j6hj4/discussion

Cheers
Rob

On Nov 7, 1:58 am, Thomas Broyer t.bro...@gmail.com wrote:
 Deferred binding only occurs when you use GWT.create(). If you new
 ViewFactory(), there's no reason you'll be given a TableViewFactory. GWT
 doesn't change Java's semantics.

 What you have to do is to use a distinct Ginjector depending on the form
 factor, and you can re-use the same GinModule(s) for all the shared binding
 configurations, and add a specific GinModule per form factor.
 Unfortunately, you cannot use both a generate-with (GIN's Ginjector) and
 replace-with (chose the right Ginjector depending on form factor), so
 you'll have to use a replace-with rule on a provider class for you
 Ginjector:

 interface MyGinjector extends Ginjector {
    // all your accessors}

 @GinModules(SharedGinModule.class, DesktopGinModule.class)
 interface DesktopGinjector extends Ginjector {
    // nothing special here; it's only used for the @GinModules annotation}

 @GinModules(SharedGinModule.class, TabletGinModule.class)
 interface TabletGinjector extends Ginjector { }
 @GinModules(SharedGinModule.class, PhoneGinModule.class)
 interface PhoneGinjector extends Ginjector { }

 interface GinjectorProvider {
    MyGinjector get();}

 class DesktopGinjectorProvider implements GinjectorProvider {
    public MyGinjector get() { return GWT.create(DesktopGinjector.class); }}

 class TabletGinjectorProvider implements GinjectorProvider {
    public MyGinjector get() { return GWT.create(TabletGinjector.class); }}

 class PhoneGinjectorProvider implements GinjectorProvider {
    public MyGinjector get() { return GWT.create(PhoneGinjector.class); }

 }

 replace-with class=...DesktopGinjectorProvider
    when-type-is class=...GinjectorProvider /
    when-property-is name=formfactor value=desktop /
 /replace-with

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Relative path to a txt files repository

2011-11-06 Thread Sabbia
Hi everyone!

I've developed a GWT-SmartGWT application using Eclipse. In this
application, a Java class from the server side must read some txt
files in a directory called Transcriptions. Working with Eclipse, I
had no problem at all to access to this directory. I had located it
under the WAR directory, so every time I needed to read a file I had
only to write File f = new File('Transcriptions');.

But when I've deployed it into Tomcat, I can't access to my directory
in this way anymore, because the default path of Tomcat is webapps.
So, I need to access to the transcriptions directory using a relative
path. And here is my problem. I don't know where to locate this
directory, and I don't know how to access it.

I had thought of using the GWT.getModuleName() method, but because of
I have to use it in the server side, I can't use any of the methods of
GWT class.

I've been trying to solve it in the last week, but I've not been able
to do it.

Can anyone help me, please? Thank you very, very much in advance

Greetings!

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



what does the symbol @ mean?

2011-11-06 Thread wahaha
link type=text/css rel=stylesheet href=../css/@projectname@.css
id=projectcss/link


what does the symbol @ in html file mean ?

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



A static EventBus / SimpleEventBus: Pro Contra

2011-11-06 Thread Alexander Orlov
EventBus is a really nice mechanism to *decouple methods from callbacks* by 
adding corresponding event handlers to an EventBus.

By nature EventBus is something that should be known to both classes, the 
calling and the called class. So you can

*1. pass an EventBus in a constructor or*
*2. use a static EventBus that can be called from any View*

Is there a rule of thumb how you should use an EventBus? So far I saw only 
constructor usage examples. Are there some significant disadvantages that 
come with a static EventBus?

-- 
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/-/1W_HXJS76-AJ.
To post to this group, send email to google-web-toolkit@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: what does the symbol @ mean?

2011-11-06 Thread Alexander Orlov
Seems to be a variable delimiter, a kind of $my_variable$.

-- 
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/-/oh4sxHemgR8J.
To post to this group, send email to google-web-toolkit@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.



GOOGLE FEED API

2011-11-06 Thread yashujn
can somebody give me the link to download the google feed api...


if we cant download the api then how to use thi api in a gwt
project


i want ndtv rss feed option in my website how to get that using this
api.


plz guide me.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Maven compilation error

2011-11-06 Thread Anton Grinenko


On 4 ноя, 19:56, Hilco Wijbenga hilco.wijbe...@gmail.com wrote:
 On 4 November 2011 06:29, Anton Grinenko anton.grine...@gmail.com wrote:

  I use gwt 2.4 and maven 3.0.1 with  gwt-maven-plugin 2.4.0 in my
  application. During compilation I got an error:
  snip/
  The most strange thing that this error occurs not always. Sometimes
  maven build my project successfully. And sometimes I got this error.
  Can someone help me to solve this error?

 Does the same happen when you compile outside of Eclipse?

 You should upgrade Maven to the latest. Did it work with the previous
 gwt-maven-plugin?


I always compile outside of Eclipse.
org.eclipse.jdt.internal.compiler... package is situated in gwt-
dev-2.4.0.jar

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



A Maven repo with daily or at least weekly GWT snapshots?

2011-11-06 Thread Alexander Orlov
Is there a Maven repo that provides daily/weekly GWT 2.5 snapshots?

-- 
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/-/jFCgwj-Lt7UJ.
To post to this group, send email to google-web-toolkit@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.