Re: How to get Resources in GWTTestCase

2011-11-07 Thread Gael Lazzari
Maybe you could try to implement your unit test with 
gwt-test-utilshttp://code.google.com/p/gwt-test-utils/, 
which also provides support for GIN. 
You also would able to initialize your unit test with every java.io class 
you want, since gwt-test-utils 
derestricthttp://www.mediadico.com/dictionnaire/anglais-francais/derestrict/1s
 
java API use in GWT unit tests :)

Cheers,

Gael

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



Can't remove Cookies

2011-11-07 Thread CSchulz
Hi, I'm having an issues where a user logs in on one page such as 
example.com/login and then is redirected to example.com/desktop or 
example.com/mobile depending on what device they're using, and the cookie 
that we save when they log in will transfer to the other app, but then it's 
impossible to remove or reset the cookie. Whenever we go back to 
example.com/login it still thinks there is a cookie even though we tried to 
kill it on the example.com/desktop app.

Is this because the URL is slightly different? I haven't worked with 
cookies much before and usually don't have any issues with them. I've tried 
killing it in numerous different ways from setting it to null, to replacing 
it with an already expired cookie, to calling the Cookies.remove method and 
nothing seems to get rid of it entirely. 

Thanks for any advice.

-- 
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/-/Eh5IXC0hGpAJ.
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: Can't remove Cookies

2011-11-07 Thread Jens
Is it a HttpOnly cookie? If so you can not access it from javascript.

-- 
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/-/O4m8llyky6wJ.
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-07 Thread Jens
You can't. To protect your code you have to use some RPC and implement the 
algorithms on server side.

-- 
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/-/TWjHqEK2xWsJ.
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-07 Thread OrNOt
OMG,it's a really sad news. Anyway, obfuscation can at least make the
codes hard to readable and  its reader must pay more efforts to
recover the original codes somehow, doesn't it?

Second question: Even the code can not be recovered, it still can be
used arbitrarily by anybody as long as it is deployed  on one server,
right?



On Nov 7, 5:23 pm, Jens jens.nehlme...@gmail.com wrote:
 You can't. To protect your code you have to use some RPC and implement the
 algorithms on server 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: Is GWT's obfuscate compilation safe enough to protect the js code?

2011-11-07 Thread Uemit
Depends. You can apply authentication and authorization on the 
server/backend to make sure that not anyone can use it.

-- 
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/-/U-AaJVo55toJ.
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: Highcharts - updating chart with data

2011-11-07 Thread George Agiasoglou
Hi Rob, 

I am aware of the wrappers for a number of charting libraries for gwt, 
however, I would like my app to remain decoupled of them and not to 
integrate any libraries to it, because the charts will be provided by 
another mechanism.

So what I would like to be doing is via JSNI embed a div and some 
javascript and run it. So far I've tried IFrameElement but couldn't get it 
to work.

Any suggestions?

Thanks,
G. 

-- 
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/-/K6LnaWB69icJ.
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: Git repository for GWT

2011-11-07 Thread Thomas Broyer
How about git svn clone --revision HEAD ? (or HEAD~10 if you want to 
clone the last 10 commits)

Also, I'd suggest cloning only the trunk; everything's done in trunk, 
apart from backporting fixes to release branches.

That being said, a quick search on 
GitHubhttps://github.com/search?type=Repositoriesq=google-web-toolkitrevealed
 https://github.com/stephenh/google-web-toolkit 
and https://github.com/scalagwt/google-web-toolkit-svnmirror but you're 
dependent upon their owners updating them (scalagwt's clone is not 
up-to-date for instance).

-- 
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/-/mtFJuWCzqUkJ.
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: Inserting Widgets and simple text into panel

2011-11-07 Thread Andrei Cosmin Fifiiţă
I used the last solution and it worked fine (even IE 7,8 :), but I haven't
tested IE 6 )

On 4 November 2011 05:06, Thomas Broyer t.bro...@gmail.com wrote:

 As Ice13ill said, setting innerText or innerHTML will break the w1 and w2
 widgets (their element are rebuilt, so the instance they reference are no
 longer in the document, and event handlers obviously fails too (no longer
 registered, to begin with)).

 If using a Label or HTML (or InlineLabel/InlineHTML) is not an option:
String w1Id = HTMLPanel.createUniqueId();
String w2Id = HTMLPanel.createUniqueId();
HTMLPanel panel = new HTMLPanel(span id=' + w1Id + '/spanspan
 id=' + w1Id + '/spanlarge text);
panel.addAndReplaceElement(w1, w1Id);
panel.addAndReplaceElement(w2, w2Id);

 Alternatively, something can be hacked that way:
flowPanel.add(w1);
flowPanel.add(w2);
flowPanel.getElement().appendChild(Document.get().createTextNode(...));
 Use at your own risk.

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

 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: A static EventBus / SimpleEventBus: Pro Contra

2011-11-07 Thread Thomas Broyer
Injecting an EventBus allows you to pass the one instance you want 
(SimpleEventBus, ResettableEventBus, CountingEventBus, RecordingEventBus, 
or your own subtype), and change that between dev, production, and tests.

-- 
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/-/x7AlvB4OuZkJ.
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: A static EventBus / SimpleEventBus: Pro Contra

2011-11-07 Thread Alexander Orlov
Maybe I've misguided you mentioning the SimpleEventBus implementation of
the EventBus interface. The actual question was whether I should use a
*static* EventBus that can be defined in a Common class and reference
this static EventBus from any other view.

E.g. using

*MyView() {*
*// MyView Constructor*
*}*
*
*
*Common.myEventBus.fireEvent(new MyEvent()); // the _static_ way*

VS.

*MyView(final EventBus myEventBus) {*
*this.myEventBus = myEventBus;*
*// The rest of MyView Constructor*
*}*
*
*
*myEventBus.fireEvent(new MyEvent()); // the _non-static_ way*

On Mon, Nov 7, 2011 at 12:15 PM, Thomas Broyer t.bro...@gmail.com wrote:

 Injecting an EventBus allows you to pass the one instance you want
 (SimpleEventBus, ResettableEventBus, CountingEventBus, RecordingEventBus,
 or your own subtype), and change that between dev, production, and tests.

 --
 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/-/x7AlvB4OuZkJ.
 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: A static EventBus / SimpleEventBus: Pro Contra

2011-11-07 Thread Thomas Broyer
I had understood, so that doesn't change my answer.

With the static instance, everyone shares exactly the same. With an 
injected instance, you can wrap your global singleton eventbus within a 
ResettableEventBus in some cases (depending on how you manage your classes 
lifecycle), or some other custom similar eventbus, and/or you can pass a 
CountingEventBus or RecordingEventBus in your unit tests.

-- 
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/-/bRzvMXRuXEkJ.
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: A static EventBus / SimpleEventBus: Pro Contra

2011-11-07 Thread Jens
As GIN also supports static injection it seems like there is not much of a 
difference, but:

1.) Using the static way you somehow hide the fact that a class depends on 
an event bus
2.) Sometimes its nice to have multiple instances of an event bus. 
Especially having multiple ResettableEventBus's are pretty handy that wrap 
that singleon app wide event bus. 

-- 
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/-/T8SRhnObNAUJ.
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: A static EventBus / SimpleEventBus: Pro Contra

2011-11-07 Thread Thomas Broyer
Sorry if I didn't make it clear enough: With the static instance, everyone 
shares exactly the same [instance], which means that you cannot choose, 
for a particular object, to use a different instance (e.g. 
ResettableEventBus), unless you make that object depend explicitly on the 
other instance (in other words, this is a everyone *must* use the same 
instance, not a everyone uses the same instance by default). That means 
you're tightly coupling your objects with the eventbus, when you chose to 
use an EventBus in the first place to decouple your objects [sic].

(oh, and injecting doesn't necessarily mean GIN or a DI framework/tool 
;-) )

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



installing gwt in eclipse 3.7

2011-11-07 Thread netra
I have installed ecipse 3.7 with latest update of gwt2.4.I try to run
Stockwatcher application,it works fine.But when i wish to develop
login application for that i want GWT project as a option in file when
i create new web application.But i didnt get that option in Design bar
of Eclipse.



Please help me to solve it.


Thanks  Regards,
Netra Kataria.

-- 
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: A static EventBus / SimpleEventBus: Pro Contra

2011-11-07 Thread objectuser
Not that it's really what you asked (I agree with the replies you've 
received), but if you're using the idiom shown in some of the Google 
presentations/samples/vids, instead of direct references to the EventBus 
instance (which is a class and not an interface ... I don't know why), you 
may have something like this:

MyEvent.register(...);
MyEvent.fire(new MyEvent(...));

That's pretty convenient, but suffers from the same problem mentioned in 
the other replies.

I've gone to something like this:

I inject/construct with instances of a class like MyEventBroker, which 
looks like:

public class MyEventBroker {
  EventBus eventBus;
  public MyEventBroker(EventBus eventBus) { ... }
  public HandlerRegistration registerEventOneHandler(...) { ... }
  public void fireEventOne(EventOne eventOne) { ... }
  public HandlerRegistration registerEventTwoHandler(...) { ... }
  public void fireEventTwo(EventTwo eventTwo) { ... }
  ...
}


I used to have a lot of events, but since moving to MVP, I have far fewer. 
 Nevertheless, I find it convenient, while YMMV.

Anyway, most of my classes don't need direct references to EventBus 
instances, just the MyEventBroker instance.  I never liked the static 
methods I saw in the Google samples.  Statics always seem to bite me if I 
am not careful, and messing with my testing seems to be one of the first 
places.

-- 
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/-/KWXsPY461d0J.
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-07 Thread Palo G.
I think that poeple not fully understand what is Google Web Toolkit. I
saw time consuming  computations on cliend side code, and similiar
mess. You have to clear that if you have some valuable alghorithm you
have to put it into server side code. Of course as Uemit said, you can
protect generated javascript. But obfuscation is just another tool to
security by obscurity - which is efficient only for little time.
Hackers are spending time mostly by reading source code, so some
obfuscation is just another step for them.

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



Extend RequestFactory to Make Use of None Primitive Types

2011-11-07 Thread hkropp
Hi,

is there a way to extend the RequestFactory to support none primitive 
types? For example a way to write modules which tell the RequestFactory how 
to de-/serialize the specific none primitive type to a String and vis 
versa, so it can be use over HTTP?

kind regards

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



RequestFactory with Use of Locator

2011-11-07 Thread hkropp
Hi,
sorry I have to ask, but the example at 
http://code.google.com/intl/en-US/webtoolkit/doc/latest/DevGuideRequestFactory.html
 
is relative unclear to me how about making the RequestFactory work with 
Persistence function NOT in the Entity and not beeing static. I have not 
found any examples. Could some one please help.

I am experience the following problem/exception with my implementation and 
can see were the problem is:

@Service(value = EmployeeService.class, locator = DaoServiceLocator.class)
public interface EmployeeRequest extends RequestContext {
...
InstanceRequestEmployeeProxy, Void persist(EmployeeProxy employee);
}

ServiceImpl:
public class EmployeeService extends GenericDAOEmployeeGWT, ObjectId{
...
public void persist(EmployeeGWT employee){
em.save(employee);
}
}

Client call:
EmployeeRequest request = requestFactory.employeeRequest();
EmployeeProxy newEmployee = request.create(EmployeeProxy.class);

newEmployee.setDepartment(void);
newEmployee.setDisplayName(VoidMan);

RequestVoid createReq = request.persist(newEmployee).using(newEmployee);

I get the following Exception:
java.lang.IllegalArgumentException: object is not an instance of declaring 
class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at 
com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer.invoke(ReflectiveServiceLayer.java:182)

I am not sure what this means and looking for clues. Is the @Service wrong 
or what is missing or wrong here? Maybe this is even totally unrelated to 
my question?

kind regards

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



RequestFactory - One to Many relationships set to null on server's side

2011-11-07 Thread Julien Cassignol
Hi all,

I'm a true beginner with GWT and have a simple project.
My intention is to use the RequestFactory for my objects' persistence
and such, on top of vanilla DataNucleus/JDO.

I have the following model:

@PersistenceCapable(..)
A {
@PrimaryKey
Long getPK()
B getB();
void setB(B b);
void setName(String s);
String getName();

}

@PersistenceCapable(..)
B {

@PrimaryKey
Long getPK()
}

@ProxyFor(...)
AProxy extends EntityProxy {

BProxy getB();
String getName();
void setB(Bproxy b);
void setName(String s);

}

@ProxyFor(...)
BProxy extends EntityProxy {
}

I also have proper locators and interfaces such as :

public interface IARequestContext extends RequestContext {

public RequestA storeA(AProxy a);

}

In one of my modules I do the following:

   // Previously got the factory and set a private member of
the class this code is executed with a BProxy object selected from a
SuggestionBox
IARequestContext aContext = factory.getARequestContext();
AProxy a = aContext.create(AProxy.class);
RequestVoid request = aContext.storeA(a);
a = animalContext.edit(a);
b = animalContext.edit(b);
a.setName(test);
a.setB(b);
request.fire();

It goes well up to the DAO side of my application in which I have the
value of the A object's name set, but not the B object (which is
null). This fires a constraint validation error

I'm sure I'm doing something wrong and wasn't able to see a working
example of that stuff. Could someone please explain to me how it
should be done properly?

Thanks.

--
Julien Cassignol

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



Css style for SlectionCell

2011-11-07 Thread Ymw
Dear all,
I'm currently working with GWT 2.3 on a new project. I'm using several
CellTable and I wanted to update the display. I have used a interface
in order to redefine the CellTable.css. It works for the simple row
(for example TextCell) but it doesn't work for special cell like
SelectionCell.

Do you know how to access the style of this element ?

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



Re: Ok, CssResources and ClientBundle, what am I doing wrong?

2011-11-07 Thread King_V
Aw, crap - Aiden even specifically said that, and I missed it.

Thanks for pointing it out.  Now, don't mind me as I smack my palm
against my forehead.  Twice.

- Joe

On Nov 4, 4:35 pm, Danny Kirchmeier da...@kirchmeier.us wrote:
 Does your Style1.css now say this:

 @external .gwt-Button;
 .gwt-Button{
 background: black;
 color: cyan;

 }

 Don't forget the semicolon at the end of the @external line. I forgot it
 the first few times I used it. It causes no error to be thrown and next
 style to be completely ignored.

 It worked for me, so hopefully that is your issue.

-- 
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: RequestFactory - One to Many relationships set to null on server's side

2011-11-07 Thread Patrick Julien
sample:

http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/#samples%2Fexpenses

-- 
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/-/C_P5ykwX6FsJ.
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: How to get Resources in GWTTestCase

2011-11-07 Thread Jeffrey Chimene

On 11/7/2011 1:09 AM, Gael Lazzari wrote:
Maybe you could try to implement your unit test with gwt-test-utils 
http://code.google.com/p/gwt-test-utils/, which also provides 
support for GIN.
You also would able to initialize your unit test with every java.io 
class you want, since gwt-test-utils derestrict 
http://www.mediadico.com/dictionnaire/anglais-francais/derestrict/1s 
java API use in GWT unit tests :)


Cheers,

Gael


Thanks, I'll try that

Best Regards,
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: Extend RequestFactory to Make Use of None Primitive Types

2011-11-07 Thread Patrick Julien
RequestFactory is already over http.

If you're looking to shoot over a String, just use a String.  You can use, 
but don't recommend, DefaultProxyStore for this purpose which you can 
obtain from RequestFactory.

but again, RF is already over http

-- 
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/-/mxa5wOpmtgcJ.
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: Relative path to a txt files repository

2011-11-07 Thread Jeffrey Chimene

On 11/6/2011 11:23 PM, Sabbia wrote:

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!



I'd use a two string Resources, one for production and one for test. 
Check the environment using GWT.isProdMode()

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/core/client/GWT.html#isProdMode()

Bueno Suerte,
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: future of gwt who use gwt

2011-11-07 Thread Brandon Donnelson
Great point. I find a mixed GWT approach works best in this situation so to 
maximize search spider indexing. I find, it's not that it doesn't work, the 
angle of approach has to change. One way to use GWT with CMS is to render 
the HTML via servlet and edit it via GWT or intermixing the GWT like 
javascript into the HTML. For instance I'll build my editor or tooltips in 
GWT and fire them when needed with javascript functions in the HTML. I 
consider GWT just another way to write javascript, but GWT is just one road 
of many which one could take to write a CMS site with javascript. You're 
right, content indexing is important. 

Brandon Donnelson

-- 
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/-/aYwphme9rKIJ.
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: CellList grid

2011-11-07 Thread Danny Kirchmeier
It's a bit of a hack, but since the cell list is just a list of Divs, you 
can use the CSS3 columns (but watch out, IE9 doesn't support this, and only 
the most recent version of opera does)

public void setColumns(int columns) {
if(columns  1) columns = 1;

Style style = cellList.getElement().getStyle();
String cols = String.valueOf(columns);
/* You could used deferred binding here if you weren't lazy */
style.setProperty(MozColumnCount, cols);
style.setProperty(WebkitColumnCount, cols);
style.setProperty(columnCount, cols);
}

public void setColumnPadding(int width) {
if(width  0) width = 0;

Style style = cellList.getElement().getStyle();
style.setProperty(MozColumnGap, width, Style.Unit.PX);
style.setProperty(WebkitColumnGap, width, Style.Unit.PX);
style.setProperty(columnGap, width, Style.Unit.PX);
}

-- 
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/-/1I8AVzGr_tYJ.
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: Extend RequestFactory to Make Use of None Primitive Types

2011-11-07 Thread hkropp
Yes, but you cannot use only use primitive types with RF. See. 
http://code.google.com/intl/en-US/webtoolkit/doc/latest/DevGuideRequestFactory.html#transportable

-- 
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/-/iMhLbc4S4mcJ.
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: Highcharts - updating chart with data

2011-11-07 Thread Armishev, Sergey
Use pure GWT charting http://code.google.com/p/clientsidegchart/ For the real 
Web apps it is an excellent library. It lacks some fancy stuff but works 
excellent with all other GWT including drag/drop packages so you can easily 
build dashboards. I did my own prototypes including real time charting and 
consider it an excellent library that you can easily customize for your needs
-Sergey

From: google-web-toolkit@googlegroups.com 
[mailto:google-web-toolkit@googlegroups.com] On Behalf Of George Agiasoglou
Sent: Monday, November 07, 2011 6:11 AM
To: google-web-toolkit@googlegroups.com
Subject: Re: Highcharts - updating chart with data

Hi Rob,

I am aware of the wrappers for a number of charting libraries for gwt, however, 
I would like my app to remain decoupled of them and not to integrate any 
libraries to it, because the charts will be provided by another mechanism.

So what I would like to be doing is via JSNI embed a div and some javascript 
and run it. So far I've tried IFrameElement but couldn't get it to work.

Any suggestions?

Thanks,
G.
--
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/-/K6LnaWB69icJ.
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.

_
This electronic message and any files transmitted with it contains
information from iDirect, which may be privileged, proprietary
and/or confidential. It is intended solely for the use of the individual
or entity to whom they are addressed. If you are not the original
recipient or the person responsible for delivering the email to the
intended recipient, be advised that you have received this email
in error, and that any use, dissemination, forwarding, printing, or
copying of this email is strictly prohibited. If you received this email
in error, please delete it and immediately notify the sender.
_

-- 
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: RequestFactory - One to Many relationships set to null on server's side

2011-11-07 Thread Brandon Donnelson
I use JDO in my example here. I've used owned collections, but you could 
use one to many too. 

http://code.google.com/p/gwt-examples/wiki/DemoActivitiesAndPlaces - Demo 
and Source here

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/-/T-cOVoGe2z8J.
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: RequestFactory with Use of Locator

2011-11-07 Thread Patrick Julien
If you use InstanceRequest, that means the method you're calling must be 
non-static, which is what you want here but also be of your entity type. 
 Here

@Service(value = EmployeeService.class, locator = DaoServiceLocator.class)
public interface EmployeeRequest extends RequestContext {
...
 RequestVoid persist(EmployeeProxy employee);

with your EmployeeService should do it.  InstanceRequest is for calling a 
method of EmployeeGWT in this case

will do it.

However, you need to use fire, not using
RequestVoid createReq = request.persist(newEmployee).fire(new 
ReceiverVoid() { ...

-- 
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/-/QKN_e4nJw8kJ.
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: DatePicker - different styles for different instances?

2011-11-07 Thread King_V
Just posting here to bounce this one up - anyone have any idea if what
I'm asking is possible?  Or am I asking for something that can't be
done?



On Oct 21, 10:24 am, King_V kin...@mindless.com wrote:
 All,

 Ok, I've used DatePicker, NOT with DateBox, to show a calendar and
 allow selection.  No problem.

 In order to get my own styles for some of the components, my own
 project's .css has a few of the DatePicker css components in it.

 First question:  What is .gwt-DatePicker used for?  What parts of the
 DatePicker does it apply to?  What properties can be set there?

 Second question: Far more important to me.  How do I get different
 DatePicker looks?  I have .datePickerDay, .datePickerWeekendLabel, and
 a few others in my own .css file.  I do NOT have .gwt-DatePicker in
 it.  Most of my DatePickers are just fine, but there are one or two
 places where I want it to look completely different - different
 colors, different font sizes for the days in the month, the days of
 the week across the top, and the month and year name, and so on.

 How do I add/set styles for these without changing how the other
 DatePickers look?

 Thanks in advance.

-- 
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: Integrating GWT with Tomcat and Jersey

2011-11-07 Thread Brandon Donnelson
What I do is:

If your not using the standalone install:
1. Manually compile the project
2. Zip up the war directory and it should end up something like project.zip 
(make sure the war directory is the root and not a folder in the zip file)
3. rename the war directory zip file to something like ROOT.war or path.war 
or GotoHere.war
4. drop the war into the webapps diredtory and it should unzip. If it 
doesn't unzip it on the server yourself. I like instlall the tomcat manager 
and deploy that way. 
5. I find you won't have to do any settings but maybe security, but that 
can be done in a context.xml file if needed. You may have to tell tomcat to 
observe for context.xml files.

Here are some notes I've put together. 
http://code.google.com/p/gwt-examples/wiki/gwtTomcat

Hope that helps,
Brandon Donnelson

-- 
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/-/NhSe-6sKVjQJ.
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: Highcharts - updating chart with data

2011-11-07 Thread George Agiasoglou
Thank you for your suggestion, but this is not what I need. 

Let me give you an example, I have data and graphs in google spreadsheets 
and I publish them as interactive or as images. Publishing the charts as 
images is simple, I just create a gwt Image and pass in a url. My problem 
is when publishing a chart as interactive and I get a script tag. So what I 
want is to be able to embed the script tag in a DivElement and get the 
interactive chart.

Thanks,
G 

-- 
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/-/azV2H7zXuf0J.
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: Game Development Resources for GWT

2011-11-07 Thread Brandon Donnelson
1. Check this out: http://code.google.com/p/playn/wiki/GettingStarted - 
used to be called forplay
2. I'd follow https://twitter.com/#!/lillithompson too

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/-/slp4WafccN8J.
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-07 Thread Uemit
@Palo G.
Actually I wasn't suggesting to protect the generated javascript but to put 
the algorithm on the server/backend and access it from the client via RPC 
or any other method. 
I think what OrNot wanted to know is whether he can somehow make sure that 
only specific user can execute the RPC call and this can be done if the RPC 
is secured via some authentication/authorization mechanism. 
I also agree security by obscurity is not the right approach. 

However I do believe there is a use case for time consuming computations on 
the client side. With each browser iteration/version Javascript Engine 
becomes faster and faster and nowadays a common desktop machine/laptop has 
enough horse power to do computational intense calculations on the client 
side. So I think more and more some computational tasks which used to be 
done on the backend will move to the client. 

-- 
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/-/c83YRnzgjYcJ.
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: RequestFactory - One to Many relationships set to null on server's side

2011-11-07 Thread Julien Cassignol
FYI the demo application isn't allowing me to add items... Which was
the feature I was curious about :-)

-- 
Julien Cassignol
http://www.ainulindale.net

-- 
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-07 Thread Harpal Grover
Yes, this is correct, and this is why more and more people want better IP
protection for client-side browser code. Unfortunately it just isn't
possible with modern browsers, hopefully one day it will be.

On Mon, Nov 7, 2011 at 9:35 AM, Uemit uemit.se...@gmail.com wrote:

 @Palo G.
 Actually I wasn't suggesting to protect the generated javascript but to
 put the algorithm on the server/backend and access it from the client via
 RPC or any other method.
 I think what OrNot wanted to know is whether he can somehow make sure that
 only specific user can execute the RPC call and this can be done if the RPC
 is secured via some authentication/authorization mechanism.
 I also agree security by obscurity is not the right approach.

 However I do believe there is a use case for time consuming computations
 on the client side. With each browser iteration/version Javascript Engine
 becomes faster and faster and nowadays a common desktop machine/laptop has
 enough horse power to do computational intense calculations on the client
 side. So I think more and more some computational tasks which used to be
 done on the backend will move to the client.

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

 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.




-- 
Harpal Grover
President
*Harpal Grover Consulting Inc*

-- 
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: Saving Object to fole on Server

2011-11-07 Thread m...@grayout.de
Does anyboday has some Idea?

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: Highcharts - updating chart with data

2011-11-07 Thread Armishev, Sergey
I think you have a problem to show both image and interactive chart to have the 
same LF. You should use the same charting library for that. Some people in the 
past used JFreeChart creating the same chart image on the server and then 
interactive one on the browser applet. Nowadays you can use combination of 
Highcharts or  GWT charts on the browser side for interactive charts  and 
Node.js or some headless WebKit  (PhantomJs) on the server to make chart images 
from the same code

-Sergey


From: google-web-toolkit@googlegroups.com 
[mailto:google-web-toolkit@googlegroups.com] On Behalf Of George Agiasoglou
Sent: Monday, November 07, 2011 9:32 AM
To: google-web-toolkit@googlegroups.com
Subject: Re: Highcharts - updating chart with data

Thank you for your suggestion, but this is not what I need.

Let me give you an example, I have data and graphs in google spreadsheets and I 
publish them as interactive or as images. Publishing the charts as images is 
simple, I just create a gwt Image and pass in a url. My problem is when 
publishing a chart as interactive and I get a script tag. So what I want is to 
be able to embed the script tag in a DivElement and get the interactive chart.

Thanks,
G
--
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/-/azV2H7zXuf0J.
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.

_
This electronic message and any files transmitted with it contains
information from iDirect, which may be privileged, proprietary
and/or confidential. It is intended solely for the use of the individual
or entity to whom they are addressed. If you are not the original
recipient or the person responsible for delivering the email to the
intended recipient, be advised that you have received this email
in error, and that any use, dissemination, forwarding, printing, or
copying of this email is strictly prohibited. If you received this email
in error, please delete it and immediately notify the sender.
_

-- 
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: RequestFactory - One to Many relationships set to null on server's side

2011-11-07 Thread Brandon Donnelson
H Seems that I have some bugs hiding in the code :). I just tried 
and its working for me, although I found a couple of delete erros on the 
server. For the most part, it should work. :)

I'm curious if you refresh it and try again, if it would work? I think I 
have a UI error. I'll chase it down.

Thanks,
Brandon

-- 
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/-/6G84mqWh9E8J.
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: Saving Object to fole on Server

2011-11-07 Thread Raphael André Bauer
On Mon, Nov 7, 2011 at 3:49 PM, m...@grayout.de m...@grayout.de wrote:
 Does anyboday has some Idea?

Are you doing this on the client side GWT code? Because this doesn't
work as GWT is cross-compiled and your code lives on the Browser and
doesn't even know the server.

If you do it on the server (eg via a servlet) you should check out the
server logs of your application container. But anyway - I don't think
it is a great idea saving stuff to a file on the server via a file
operation (security is one thing that comes to my mind).


Best,


Raphael







 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.





-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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: Highcharts - updating chart with data

2011-11-07 Thread George Agiasoglou
Yes indeed, I have a problem because the ui is agnostic of the library that 
is going to use to generate the chart.

For instance, this is the script tag published from a google spreadsheet:

script type=text/javascript src=//ajax.googleapis.com/ajax/static/m
odules/gviz/1.0/chart.js {dataSourceUrl://resourceurl,options:{r
everseCategories:false,titleX:Date,backgroundColor:#FF,w
idth:600,logScale:false,hAxis:{maxAlternation:1},hasLabelsColu
mn:true,vAxes:[{min:null,title:Hits,max:null}],title:Metric Vs 
 OtherMetric,height:371,legend:right,reverseAxis:false,isS
tacked:false},state:{},chartType:ColumnChart,chartName:Chart 1} 
/script

which contains the url of library and the data required. If this script tag 
is embedded in div and then in an html page the chart is displayed. I am 
trying to replicate the same effect.


Thanks, 
G

-- 
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/-/lmTfaH5ZziQJ.
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: RequestFactory - One to Many relationships set to null on server's side

2011-11-07 Thread Julien Cassignol
Nope, still won't work here.

I have a look at the source though and it seems to me that you're
doing about the same thing I do, that is for my example:

Create a context
Create a AProxy
Context-Edit BProxies settable on A
Set BProxies on A
Persist.

This goes well for me up to the point of the construction of the
Domain object. As I was saying, my A object has all the attributes
supposed to be there BUT for the other entity proxies (in my case A
has a name but no B).
I didn't manage to find out where this was set in the labyrinthic
sources, and I'm wondering if this could not be due to a
misunderstanding on my side of the proper annotations I should set on
my domain objects.

In this specific case all objects are EntityProxy (no ValueProxy) and
all have proper primary keys.
B objects are currently properly retrieved from the database and
populate a SuggestBox. When I try to use
((MySuggestionsBProxy)event.getSelectedItem()).getEntity() (using a
custmo SuggestionSelection which keeps the entityproxy) I can get the
proper entity and I can set it to my AProxy object.

The problem resides between the fire() call (which according to
inspect contains the proper values of the AProxy) and the actual DAO
call in which I have my A object with all the values but for the
values of the proxified B objects.

I'm not sure I'm clear enough :-)

-- 
Julien Cassignol
http://www.ainulindale.net

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



replace-with problem

2011-11-07 Thread ailinykh
Hello everybody!
I have three GWT modules A, B and C. C has some common widgets and utility 
classes/interfaces.
both A and B depends on C. A depends on B. A has an entry point.

The problem is: module C has an interface which I want to replace by a 
class in A module. I use replace-with statement in A.gwt.xml file.
If I use this interface from module A  ( GWT.create(MyInterface.class) ) 
everything is fine, but when I do the same in module B I get Deferred 
binding failed exception. I guess it happens because module B doesn't have 
replace-with statement in B.gwt.xml file.
But I don't want (and actually can't) have two implementations (one in A, 
another in B).
Is there any way to fix this problem?

Thank you,
  Andrey

-- 
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/-/zvAaRYD6IeAJ.
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: Correct usage of CompositeEditor?

2011-11-07 Thread David Sanders
Is there a better way of doing this?  I'm sure there must be some way to 
split up an editor without creating a workaround referring back to the 
object being edited?  Perhaps with some kind of annotation?

I just have a flat class that I'm editing with a simple wizard and I've set 
up a tab panel with a separate ui binder class for each tab.  Now I'm 
trying to figure out how to make the editor driver descend into individual 
tabs but I can't seem to find the answer.

-- 
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/-/sqzQCjM3ZNYJ.
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: RequestFactory - One to Many relationships set to null on server's side

2011-11-07 Thread Brandon Donnelson
hmmm. I think I used Proxy A for B DTO, in this demo, if I understand you 
right. Or in other words I suppose I'm using the parent's proxy.

http://code.google.com/p/gwt-examples/source/browse/trunk/WalletInventory/src/com/gonevertical/client/views/widgets/WalletEditItemWidget.java#95

Not sure that will help.
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/-/OOvAG3S5yZgJ.
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.



Tutorial StockWatcher trying to add ejb-functionality

2011-11-07 Thread Norman Klingspor
Hello,

I'm trying to understand EJB / hibernate / java.persistence
integration with GWT.

My problem is, that I don't get the EJB-integration running.

I tried several approaches on my own projects.

This setup is, the StockWatcher-Tutorial that I finished and tried to
add the functionality to store my stocks ( in their easiest possible
version: String name) to a database.

Therefor I created in the server-package my new classes

IStockPrice
StockPriceEntity
StockPriceHome

and a new service to handle the database action(s)

StockDatabaseServiceImpl (with StockDatabaseService 
StockDatabaseServiceAsync on client-side).

Whatever I tried, I wasn't able to get the

@EJB in StockDatabaseServiceImpl running.

I published the project for all under:

https://bitbucket.org/evergrin/stockwatcherejb

Could someone please help me with this problem?

Thank you!
Norman

-- 
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-07 Thread Uemit
@Harpal Grover: 
Actually there might be a solution right now. You can use Native Client 
SDKhttp://code.google.com/chrome/nativeclient/to develop a C++/C application 
which runs in the browser.  The application 
will be compiled to a binary and then transmitted to the client/browser 
where it is executed in a sandbox. It is still possible to use 
a Dis-assembler in order to figure out the algorithm however it is much 
harder than obfuscated javascript code.
However until now NaCl is only supported in Chrome. 

-- 
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/-/BKKtXBypOI8J.
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: GWT capabilities

2011-11-07 Thread Uemit
Of course you can achieve that with GWT.  Note: GWT is a client side 
toolkit. So it won't help you with the server side stuff (Spring, JSP, 
etc). 

The question is whether it is not easier to use a traditional javascript 
framework (jQuery, etc) instead of GWT because apparently you are 
developing a traditional webpage/website (multi-host page with some 
javascript behaviour). 
GWT really shines when you want to develop a desktop like interactive 
web-application (using MVP) where the backend acts only as datasource. 
That doesn't mean that it can't be used for a normal website but probably 
frameworks like jQuery are easier to use and get results than GWT. 
If you use Spring framework MVC and JSP then you will probably only use GWT 
for AJAX calls and DOM operations that can be as easily achieved with 
jQuery. 

If you plan to develop a desktop like web-app where you have one host-page 
and all the UI flow/synchronization is done on the client side then I would 
strongly recommend GWT. However if you have multiple-page website (i.e.: 
using Spring's MVC) and only want to embed some javascript code for some UI 
behaviour, GWT might not be the easiest solution. 


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



The RequestFactory version of GWT RPC XSRF protection

2011-11-07 Thread Alexander Orlov
There is the GWT RPC XSRF 
protectionhttp://code.google.com/webtoolkit/doc/latest/DevGuideSecurityRpcXsrf.html
 to 
make GWT apps more secure. I know that RequestFactory isn't using GWT RPC 
although RF is using JSON to communicate with the backend just like GWT RPC 
does.

So does RF has a built-in XSRF protection or do I have to use a server-side 
token to prevent any unauthorized requests to the database?

-- 
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/-/cDwv5wAK4ZcJ.
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: Saving Object to fole on Server

2011-11-07 Thread m...@grayout.de
Hi Raphael,

thanks for your prompt response. I will look for the log file and
check if there is something in it.

This is server-side code. Is it possible that I have no write access
to the folder? If yes, how could I change this running in development
mode?

If what I am doing is too much of a security risk, what alternative do
I have? I just need to store a Java-Object on the server for later
use.

Thanks and 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: RequestFactory - One to Many relationships set to null on server's side

2011-11-07 Thread Julien Cassignol
Problem solved in the end thanks to someone on IRC!

I forgot that during the whole setup I kept using TODOs methods in my
DAO. Namely, one used by the Locator to retrieve objects with the
find() method.
As the DAO methods kept returning null, the mapping kept setting a
null value to my domain object. Implementing the method solved the
problem and the mapping went as supposed.

PEBKAC in the end :-)

-- 
Julien Cassignol
http://www.ainulindale.net

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



Can't install the Google Plugin for Eclipse 3.7

2011-11-07 Thread Tom
I get the following error message when I try to install the Google
Plugin for Eclipse 3.7:

Cannot complete the install because one or more required items could
not be found.
  Software currently installed: Shared profile 1.0.0.1308118821836
(SharedProfile_epp.package.java 1.0.0.1308118821836)
  Missing requirement: Shared profile 1.0.0.1308118821836
(SharedProfile_epp.package.java 1.0.0.1308118821836) requires
'org.maven.ide.eclipse [1.0.0.20110607-2117]' but it could not be
found

My end goal is to install the Google Web Toolkit 2.4.0 SDK Bundle for
Eclipse 3.7. I'm new to Eclipse and 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.



definitions of architecture

2011-11-07 Thread thiago borges martins
speaks there guys,

I am facing a problem with my GWT application and believe that you can
help me.

1º when the user tries to refresh the page, or by the F5 button or
refresh button of the browser I do not want to miss the screen is
open. Today when I upgrade the browser back to the login screen of my
system.

2º until the time I could not find any example of authentication using
the gwt + ejb3. The only examples that I think is using the spring and
I can not change the architecture of my project. Does anyone have any
suggestions for this problem?

My architecture is gwt + smartgwt the client and the server I'm using
ejb3 + jpa2.

I thank everyone's attention.

-- 
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: Game Development Resources for GWT

2011-11-07 Thread James Butler
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/oGH4QFoarUgJ.
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.



GWt with EJB and JBoss

2011-11-07 Thread ph09


I tried to connect my WGT Application with EJB via JBoss by doing this 
Tutorial: 
http://jamies-gwt.blogspot.com/2010/03/walkthrough-integrating-gwt-with-jboss.html

I used GWT 2.4, Eclipse Indigo, Jboss 6.1.0.Final and this Eclipse Plugin:
http://download.jboss.org/jbosstools/updates/stable/helios/

When i try to start the Application, nothing happen ant sometimes I get an 
error from the JBoss. Thats the log:

 18:26:57,766 INFO  [AbstractJBossASServerBase] Server Configuration:


 JBOSS_HOME URL: file:/C:/jboss-6.1.0.Final/

 Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml

 Common Base: $JBOSS_HOME\common/

 Common Library: $JBOSS_HOME\common/lib/

 Server Name: default

 Server Base: $JBOSS_HOME\server/

 Server Library: $JBOSS_HOME\server/default/lib/

 Server Config: $JBOSS_HOME\server/default/conf/

 Server Home: $JBOSS_HOME\server/default/

 Server Data: $JBOSS_HOME\server/default/data/

 Server Log: $JBOSS_HOME\server/default/log/

 Server Temp: $JBOSS_HOME\server/default/tmp/


 18:26:57,771 INFO  [AbstractServer] Starting: JBossAS [6.1.0.Final Neo]

 18:26:59,945 INFO  [ServerInfo] Java version: 1.6.0_27,Sun Microsystems 
 Inc.

 18:26:59,946 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime 
 Environment (build 1.6.0_27-b07)

 18:26:59,946 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 
 20.2-b06,Sun Microsystems Inc.

 18:26:59,946 INFO  [ServerInfo] OS-System: Windows 7 6.1,x86

 18:26:59,947 INFO  [ServerInfo] VM arguments: -Dprogram.name=JBossTools: 
 JBoss 6.0 Runtime -Xms256m -Xmx768m -XX:MaxPermSize=256m 
 -Dsun.rmi.dgc.client.gcInterval=360 
 -Dsun.rmi.dgc.server.gcInterval=360 
 -Djava.endorsed.dirs=C:\jboss-6.1.0.Final\lib\endorsed 
 -Djava.library.path=C:/jboss-6.1.0.Final/bin/native 
 -Dlogging.configuration=file:C:/jboss-6.1.0.Final/bin/logging.properties 
 -Dfile.encoding=Cp1252 

 18:26:59,991 INFO  [JMXKernel] Legacy JMX core initialized

 18:27:10,268 INFO  [AbstractServerConfig] JBoss Web Services - Stack CXF 
 Server 3.4.1.GA

 18:27:10,999 INFO  [JSFImplManagementDeployer] Initialized 3 JSF 
 configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]

 18:27:24,144 WARNUNG [FileConfigurationParser] AIO wasn't located on this 
 platform, it will fall back to using pure Java NIO. If your platform is 
 Linux, install LibAIO to enable the AIO journal

 18:27:24,640 INFO  [JMXConnector] starting JMXConnector on host 
 localhost:1090

 18:27:24,880 INFO  [MailService] Mail Service bound to java:/Mail

 18:27:26,931 INFO  [HornetQServerImpl] live server is starting with 
 configuration HornetQ Configuration 
 (clustered=false,backup=false,sharedStore=true,journalDirectory=C:\jboss-6.1.0.Final\server\default\data/hornetq/journal,bindingsDirectory=C:\jboss-6.1.0.Final\server\default\data/hornetq/bindings,largeMessagesDirectory=C:\jboss-6.1.0.Final\server\default\data/hornetq/largemessages,pagingDirectory=C:\jboss-6.1.0.Final\server\default\data/hornetq/paging)

 18:27:26,934 INFO  [HornetQServerImpl] Waiting to obtain live lock

 18:27:27,083 INFO  [JournalStorageManager] Using NIO Journal

 18:27:27,131 WARNUNG [HornetQServerImpl] Security risk! It has been 
 detected that the cluster admin user and password have not been changed 
 from the installation default. Please see the HornetQ user guide, cluster 
 chapter, for instructions on how to do this.

 18:27:27,359 INFO  [FileLockNodeManager] Waiting to obtain live lock

 18:27:27,359 INFO  [FileLockNodeManager] Live Server Obtained live lock

 18:27:28,718 INFO  [NettyAcceptor] Started Netty Acceptor version 
 3.2.3.Final-r${buildNumber} localhost:5455 for CORE protocol

 18:27:28,720 INFO  [NettyAcceptor] Started Netty Acceptor version 
 3.2.3.Final-r${buildNumber} localhost:5445 for CORE protocol

 18:27:28,726 INFO  [HornetQServerImpl] Server is now live

 18:27:28,727 INFO  [HornetQServerImpl] HornetQ Server version 2.2.5.Final 
 (HQ_2_2_5_FINAL_AS7, 121) [cf21bf14-0959-11e1-a1aa-002243686b23] started

 18:27:28,875 INFO  [WebService] Using RMI server codebase: 
 http://localhost:8083/

 18:27:29,467 INFO  [jbossatx] ARJUNA-32010 JBossTS Recovery Service (tag: 
 JBOSSTS_4_14_0_Final) - JBoss Inc.

 18:27:29,487 INFO  [arjuna] ARJUNA-12324 Start RecoveryActivators

 18:27:29,554 INFO  [arjuna] ARJUNA-12296 ExpiredEntryMonitor running at 
 Mo, 7 Nov 2011 18:27:29

 18:27:29,813 INFO  [arjuna] ARJUNA-12310 Recovery manager listening on 
 endpoint 127.0.0.1:4712

 18:27:29,815 INFO  [arjuna] ARJUNA-12344 RecoveryManagerImple is ready on 
 port 4712

 18:27:29,818 INFO  [jbossatx] ARJUNA-32013 Starting transaction recovery 
 manager

 18:27:29,862 INFO  [arjuna] ARJUNA-12163 Starting service 
 com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4713

 18:27:29,874 INFO  [arjuna] ARJUNA-12337 TransactionStatusManagerItem 
 host: 127.0.0.1 port: 4713

 18:27:29,882 INFO  [arjuna] ARJUNA-12170 TransactionStatusManager started 
 on port 4713 and host 127.0.0.1 with service 
 

Re: definitions of architecture

2011-11-07 Thread Jens
1.) The basic idea is that you store information about where you are (and 
possibly other state information) as a String in the URL hash fragment 
(e.g. http://app.example.com/#ShowPerson:5). 

This basic idea is described in 
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html

As of GWT 2.1 this idea has been abstracted into the Activities and Places 
feature which you can/should use and which is described 
in 
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html

2.) Whats your problem with authentication? Or do you just have a general 
problem with using EJBs on server side?

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



HTML5 Drag N Drop Not Working in IE 8+

2011-11-07 Thread Kevin Anderson
According to the last GoogleIO (2011) the session on HTML5 and GWT stated 
that Drag N Drop was supported on IE 8+. I have been unable to get it 
working because in the code the DragDropEventBase.DragSupportDetector has a 
problem with the function detectDragSupport. In IE the ondragstart 
attribute is of type String not type function.
Is this a bug or am I missing something?

-- 
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/-/LX-GKwN0LmAJ.
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.



CSS optimization

2011-11-07 Thread Boris Šuška
Hi people!

I would like to ask you how framework or utility is used for CSS
optimization. I saw, that GWT optimize CSS definitions that groups
same properties. Do it some more optimizations?  Is it hard-wired in
GWT or is it separate utility usable outside of GWT?

I've got idea how CSS optimizator should work better then eg. CSSTiny,
then I would like to know if someone implements it already or I have
to do it myself.

Thanks for you answer,
Boris.

-- 
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: GWT Developer Plugin for Firefox 7

2011-11-07 Thread FanFan Huang
Not to get this started again but umm... firefox 8 Yeah. 
Tomorrow.

-- 
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/-/2VzWpqSVRfEJ.
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: CSS optimization

2011-11-07 Thread Uemit
premature optimization is the root of all evil  
Saying that you, can find more infos about GWT's CSS optimizations in the 
official gwt 
docshttp://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideClientBundle.html#Optimizations
. 

-- 
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/-/Xg0v-RjT8jQJ.
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.



Basic JavaScript onClick not getting called from inside GWT richTextarea

2011-11-07 Thread gangurg gangurg
The following code works fine if i do HTML = new HTML(a href=#
onclick=window.test()Hi 123I/a'); ( Meaning HelloWorld gets Printed )
But the same HTML from inside a RichTextArea does not get printed .

I am doing missing something here



MyPanel
{

 RichTextArea ss = new RichTextArea ();
 ss.stHTML(a href=# onclick=window.test()Hi 123I/a);

  public static native void exportMyFunction2(MyPanel x) /*-{
$wnd.call = function () {
   x.@myPackage.MyPanel::test()();
   }

}-*/;


   public void test()
{
GWT.log(Hello World);
}


}

-- 
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: GWT Developer Plugin for Firefox 7

2011-11-07 Thread Alan Leung
Don't worry. I am on it.

Once it is once I'll start checking in changes. Hopefully It'll be pain
free.

On Mon, Nov 7, 2011 at 12:19 PM, FanFan Huang vorte...@gmail.com wrote:

 Not to get this started again but umm... firefox 8 Yeah.
 Tomorrow.

 --
 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/-/2VzWpqSVRfEJ.

 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: Saving Object to fole on Server

2011-11-07 Thread kim young ill
i dont think i understand what you want to do here.

if you want to save an object, you have to serialize it  write it to
server.
if you want to use http, you can do it with POST (multipart), on
serverside, you need to write a servlet to handle the request: parse it 
write it to wherever you want
if its not a http-server ( just a server socket), you can send the stream
directly

look like you missunderstand the concepts of http-protocol  file-system

hth

On Mon, Nov 7, 2011 at 5:59 PM, m...@grayout.de m...@grayout.de wrote:

 Hi Raphael,

 thanks for your prompt response. I will look for the log file and
 check if there is something in it.

 This is server-side code. Is it possible that I have no write access
 to the folder? If yes, how could I change this running in development
 mode?

 If what I am doing is too much of a security risk, what alternative do
 I have? I just need to store a Java-Object on the server for later
 use.

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



-- 
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: Relative path to a txt files repository

2011-11-07 Thread Sabbia
Gracias Jeffrey ;) So, as I've understood, the best thing is to check
if application is executing in production mode, and if not, use
GWT.getServletContext().getRealPath(my_app), right?

Thank you very much!

Cheers!!


On 7 nov, 14:59, Jeffrey Chimene jchim...@gmail.com wrote:
 On 11/6/2011 11:23 PM,Sabbiawrote:









  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!

 I'd use a two string Resources, one for production and one for test.
 Check the environment using 
 GWT.isProdMode()http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl...()

 Bueno Suerte,
 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: Relative path to a txt files repository

2011-11-07 Thread Jeff Chimene
On 11/07/2011 06:33 PM, Sabbia wrote:
 Gracias Jeffrey ;) So, as I've understood, the best thing is to check
 if application is executing in production mode, and if not, use
 GWT.getServletContext().getRealPath(my_app), right?

Well, the exact mechanism that's inside the if(production) {} is up to
you. I don't use Spring, so you're on your own there. It looks like
you're on the right track, though: do one thing in development, do
something else in production. The key is to decide based on
GWT.isProdMode().

Bueno Suerte,
jec

 
 Thank you very much!
 
 Cheers!!
 
 
 On 7 nov, 14:59, Jeffrey Chimene jchim...@gmail.com wrote:
 On 11/6/2011 11:23 PM,Sabbiawrote:









 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!

 I'd use a two string Resources, one for production and one for test.
 Check the environment using 
 GWT.isProdMode()http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl...()

 Bueno Suerte,
 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.



Why are none of my posts showing up?

2011-11-07 Thread CSchulz
This is pretty frustrating. Is this post even going to show up? Who knows. 
Probably not. Is there a screen where I can see all of the posts I've 
recently made? Not that I can find. If there is one it's hidden and not 
easy to access. 

-- 
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/-/tnb8uT_LmjAJ.
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: Relative path to a txt files repository

2011-11-07 Thread Sabbia
Ok Jeffrey, it's all clear now! I thought there was a way to set the
base url, but there is not, as you've said, I've to play with the
GWT.isProdMode and get the base url.

Thank you very much, you've been very, very helpful.

Greetings!!

P.S.: y buena suerte también para ti ;)

On 8 nov, 02:57, Jeff Chimene jchim...@gmail.com wrote:
 On 11/07/2011 06:33 PM,Sabbiawrote:

  Gracias Jeffrey ;) So, as I've understood, the best thing is to check
  if application is executing in production mode, and if not, use
  GWT.getServletContext().getRealPath(my_app), right?

 Well, the exact mechanism that's inside the if(production) {} is up to
 you. I don't use Spring, so you're on your own there. It looks like
 you're on the right track, though: do one thing in development, do
 something else in production. The key is to decide based on
 GWT.isProdMode().

 Bueno Suerte,
 jec









  Thank you very much!

  Cheers!!

  On 7 nov, 14:59, Jeffrey Chimene jchim...@gmail.com wrote:
  On 11/6/2011 11:23 PM,Sabbiawrote:

  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!

  I'd use a two string Resources, one for production and one for test.
  Check the environment using 
  GWT.isProdMode()http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl...()

  Bueno Suerte,
  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: Problem running mobilewebapp sample in 2.4

2011-11-07 Thread Jenson
I'm running into the same problem.  Can anyone provide some pointers
in how to resolve this issue?  Many Thanks!

On Nov 2, 9:33 pm, Karthik Reddy karthik.ele...@gmail.com wrote:
 I am following the instructions as documented at:

 http://google-web-toolkit.googlecode.com/svn/trunk/samples/mobileweba...
   (OptionA)

 I am able to build the application but as I try to run it in hosted mode
 (using AppEngine)  I get the following error on the browser :

 *Http Error 500*

 *No realm*

 *RequestURI=/MobileWebApp.html*

 I suspect this has to do with  access privileges and so forth. Did anyone
 else run into this issue ?

 Any pointers/thoughts on what might be going on would be much 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Basic JavaScript onClick not getting called from inside GWT richTextarea

2011-11-07 Thread gangurg gangurg
Folks just a small type in the post , I do window.call instead of
window.test(). Still have the same issue . Any thoughts .



On Mon, Nov 7, 2011 at 1:58 PM, gangurg gangurg gang...@gmail.com wrote:


 The following code works fine if i do HTML = new HTML(a href=#
 onclick=window.test()Hi 123I/a'); ( Meaning HelloWorld gets Printed )
 But the same HTML from inside a RichTextArea does not get printed .

 I am doing missing something here



 MyPanel
 {

  RichTextArea ss = new RichTextArea ();
  ss.stHTML(a href=# onclick=window.test()Hi 123I/a);

   public static native void exportMyFunction2(MyPanel x) /*-{
 $wnd.call = function () {
x.@myPackage.MyPanel::test()();
}

 }-*/;


public void test()
 {
 GWT.log(Hello World);
 }


 }


-- 
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: Why are none of my posts showing up?

2011-11-07 Thread Jim Douglas
http://groups.google.com/groups/profile?enc_user=jCryhhML3namdQbB_nNnp4KqFIbCWMj6vob75xS36mXc24h6ww

On Nov 7, 7:10 pm, CSchulz csch...@acumeta.com wrote:
 This is pretty frustrating. Is this post even going to show up? Who knows.
 Probably not. Is there a screen where I can see all of the posts I've
 recently made? Not that I can find. If there is one it's hidden and not
 easy to access.

-- 
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 Integrated GWT into eclipse

2011-11-07 Thread 卫明 汪
i  need  the whole  step to  Integrated GWT.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.



Re: Basic JavaScript onClick not getting called from inside GWT richTextarea

2011-11-07 Thread Danny Kirchmeier
Did you ever call exportMyFunction2?

-- 
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/-/t3GfHd8ZwxsJ.
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: Basic JavaScript onClick not getting called from inside GWT richTextarea

2011-11-07 Thread gangurg gangurg
Yes i Did .  As i posted , earlier this works from a standalone HTML . if
this is embedded inside the RichTextArea then onClick is not getting fired
.
I am thinking it could be because of the Iframe



On Mon, Nov 7, 2011 at 8:48 PM, Danny Kirchmeier da...@kirchmeier.uswrote:

 Did you ever call exportMyFunction2?

 --
 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/-/t3GfHd8ZwxsJ.
 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: how do i add a tooltip to a column header in a celltable ?

2011-11-07 Thread vaibhav gwt
Hi,
Following e.g works only for Name of column header i.e. when we move
mouse on name of column header then only tool tip appear.

CellTable ct;
ct.addColumn(col, SafeHtmlUtils.fromSafeConstant(span title='!!!tool
tip text goes here!!!'---header text---/span));

We want too tip on entire column header not on name of column header.

Any solution ?

On Jun 11, 1:40 pm, emir emiru...@gmail.com wrote:
 If a plain tooltip suffices, you can create the column with a SafeHtml
 which specifies the tooltip
 text using the title property.

 e.g.

 CellTable ct;
 ct.addColumn(col, SafeHtmlUtils.fromSafeConstant(span title='!!!tool
 tip text goes here!!!'---header text---/span));

 On May 30, 9:45 pm, Celinio cel...@gmail.com wrote:







  hello,
  i just have a simple question :
  how do i add a tooltip to a column header in a celltable ?

  Thanks for helping.

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



[gwt-contrib] Re: Addresses a couple of my concerns re. RF validation. (issue1577806)

2011-11-07 Thread t . broyer

OK, I think it's really ready for review now.

http://gwt-code-reviews.appspot.com/1577806/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Fix testShardsAreSomewhatBalanced to only check for shards that are too big. (issue1578810)

2011-11-07 Thread skybrian

http://gwt-code-reviews.appspot.com/1578810/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Fix testShardsAreSomewhatBalanced to only check for shards that are too big. (issue1578810)

2011-11-07 Thread rdayal

LGTM


http://gwt-code-reviews.appspot.com/1578810/diff/3001/dev/core/test/com/google/gwt/dev/util/StringInternerTest.java
File dev/core/test/com/google/gwt/dev/util/StringInternerTest.java
(right):

http://gwt-code-reviews.appspot.com/1578810/diff/3001/dev/core/test/com/google/gwt/dev/util/StringInternerTest.java#newcode60
dev/core/test/com/google/gwt/dev/util/StringInternerTest.java:60: for
(int i = 0; i  StringInterner.SHARD_COUNT * meanShardSize; i++) {
Nit: Could do the multiplication outside of the loop.

http://gwt-code-reviews.appspot.com/1578810/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Fix docs for getOffsetWidth/Height (issue1586803)

2011-11-07 Thread rdayal

LGTM. Thanks for doing this!

http://gwt-code-reviews.appspot.com/1586803/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors