Re: How to setup a GWT project in Plesk on a virtual machine?

2014-09-25 Thread Andy Stevko
#1  - yes, need to hook your servlets  to uris
#2 - I do it all the time...
#3 - apache is a web server - not a java servlet container. apache is fine
for serving html/js. tomcat is fine for serving html/js and servlets.
#4 - it seems that the plesk power pack has tomcat which should be enough
to deploy your gwt/servlet war file.
http://stackoverflow.com/questions/21660059/install-and-enable-tomcat-7-on-plesk-11-5
#5 - not normally a problem when serving html & js from the same server as
your servlet container.

Install tomcat on a different port from apache, create and deploy a war
file containing your client & server code, and things should fall into
place for you.



On Thu, Sep 25, 2014 at 11:03 AM, Jens  wrote:

> Well it kind of depends on what exactly you want to achieve. If you just
> want to run your GWT app and you don't really care about the URL then just
> install any Java server (Jetty, Tomcat, Glassfish, Wildfly, ...), deploy
> your *.war file on it and access it through your server IP address and the
> default port of your Java server which, in most cases, is 8080.
>
> But if you want something like http://app.example.com and example.com is
> managed by Plesk + Apache then you have to read about Apache + reverse
> proxy because Apache needs to proxy requests to your java server of choice.
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
-- A. Stevko
===
"If everything seems under control, you're just not going fast enough." M.
Andretti

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a tutorial that explains Places and Hyperlinks?

2014-09-25 Thread Jens

>
>  My biggest question is where do I find better documentation, because the 
> documentation provided  at gwtproject.org is incomplete and inconsistent. 
>  It may seem sufficient to someone who already knows GWT, but trust me, it 
> doesn't provide a good introduction.
>

That is sad to hear :( For me it was always a good starting point combined 
with JavaDoc + some google fu. However if you can't find an answer, the 
next best thing is to use this group and ask questions or join ##gwt on irc 
(freenode). I am not aware of any other documentation of GWT beside blog 
posts or real books.

Hopefully at least your Hyperlink question is now solved.

If you really feel like something is missing in the documentation then you 
can file a bug 
report: https://code.google.com/p/google-web-toolkit/issues/list


-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CellList exceeds height when populated with rows

2014-09-25 Thread Aaron Weber

>
>
> The GWT showcase also has an example of an endless scrolling cell list. In 
> that example the ScrollPanel itself acts as pager: 
>
> http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCellList
>

Thank you for the pointer, and the info.

I tried copying that custom pager to my project and using it instead of the 
SimplePager.
#1, I can't get it to show up at all (it compiles and no warnings or errors 
are shown, but there are no scrollbars shown).
#2, If I remove my explicit "setPixelSize", the list just grows vertically 
to accommodate the rows in the list.  I need to fix the size of the list 
(horizontally and vertically), or at least make it proportionally scalable 
- I figured setting the size explicitly would be easier. 

I like this scrollable panel idea, but now I'm stuck trying to get it to 
work too.

Thanks again.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a tutorial that explains Places and Hyperlinks?

2014-09-25 Thread Thomas Broyer
That's because they don't use Places, so they don't NEED a colon. GWT is a set 
of tools (hence "toolkit") that work well together, but each has its purpose, 
and should IMO be learned separately before being used together.

BTW, when using Places, you can do better with a widget that calls 
PlaceController#goTo instead of History#newItem. But that's something you could 
quite easily add later (you'd need to give that widget a PlaceController, 
PlaceHistoryMapper to populate the link's href --for right clicks: copy link 
target, open in new tab/window, etc.-- and the target Place).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a tutorial that explains Places and Hyperlinks?

2014-09-25 Thread ehodges


On Wednesday, September 24, 2014 9:45:43 AM UTC-5, Joseph Lust wrote:
>
> There are various ways to place links in UiBinder based UI's. The most 
> basic of these is to simply generate the UI and set the href property of 
> your target element. Static URL's can be directly inserted in the XML using 
>  as covered in the documentation 
> 
> .
>
> Joe
>

 Maybe I'm using the wrong words?  I'm using a visual editor in Eclipse to 
edit the UIBinder files.  There's a property editor for the hyperlink that 
contains a property called "targetHistoryToken".  It takes a String value.

I have no trouble typing in the colon, I just had no idea there was 
supposed to be a colon.  The example section in the Hyperlink documentation 

 uses 
the metasyntactic variables as example values, but doesn't include colons.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a tutorial that explains Places and Hyperlinks?

2014-09-25 Thread ehodges


On Wednesday, September 24, 2014 11:39:50 AM UTC-5, Jens wrote:
>
> Please don't take me offensive.
>

Quite the opposite.  You seem defensive.

I would be happy to improve the documentation if I knew what I was talking 
about.  I'm a GWT newbie, so all I have are questions.  My biggest question 
is where do I find better documentation, because the documentation provided 
 at gwtproject.org is incomplete and inconsistent.  It may seem sufficient 
to someone who already knows GWT, but trust me, it doesn't provide a good 
introduction.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CellList exceeds height when populated with rows

2014-09-25 Thread Jens
CellList itself can not scroll. You need to put it into a ScrollPanel and 
give that ScrollPanel a fixed size.

Even though you have set a fixed height to the CellList it is normal that 
you see list items outside of that defined height because in HTML 
overflowing content is always visible unless you tell the browser to hide 
it, see: http://jsfiddle.net/zb7nfk50/ .

The GWT showcase also has an example of an endless scrolling cell list. In 
that example the ScrollPanel itself acts as pager: 

http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCellList


-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


CellList exceeds height when populated with rows

2014-09-25 Thread Aaron Weber
Another, possibly newbie, question...

I created a CellList and set the visible range and width/height:
cellList.setVisibleRange(0, 20);
cellList.setPixelSize(200, 400);
I add a SimplePager on this widget later in the code.

Finally, I add this CellList to a VerticalPanel:
VerticalPanel vPanel = new VerticalPanel();
vPanel.add(pager);
vPanel.add(cellList);
cellList.setLayoutData(vPanel.getLayoutData());
vPanel.setBorderWidth(1);
RootPanel.get("slot0").add(vPanel);

This looks fine, until the data displayed in the rows (which is a TextCell 
supported by a ListDataProvider) is < 20 rows, but the text (when wrapped 
or not) exceeds the height of the cellList (and VerticalPanel).  Then the 
rows (text cells) keep going down the form, even displaying "behind" other 
widgets like Buttons.

I'm really looking for a list-widget where I can set the max number per 
page and it should add scrollbars if it needs them, and use the pager on 
top of that.  But no matter what, I don't understand how a list widget of 
any kind would basically exceed the size of its container (the 
VerticalPanel), or be substantially easier to "size" during design-time.

Can anyone help point out what I should be doing here?  I'd be happy to 
provide further details if they would help.

Thanks in advance,
AJ


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


pass list of valueproxy, calling merge() cause DELETE

2014-09-25 Thread Yan
Hi there,

I am having a very strange problem. One parent entity proxy has a list of 
children value proxy objects. 

Start with the parent having one child in UI, when I add another child that 
is loaded from another database table. Then, calling merge() on parent in 
my JPA backend.

Backend should have been simply establish association between parent and 
2nd child, which is an UPDATE statement.  However, what I see is a DELETE 
statement on 1st child and a UPDATE on 2nd child.

The update makes sense, but I cannot figure out why DELETE is issued as a 
result of MERGE.

Any idea of what I maybe missing?

Thanks,
Yan

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to setup a GWT project in Plesk on a virtual machine?

2014-09-25 Thread Jens
Well it kind of depends on what exactly you want to achieve. If you just 
want to run your GWT app and you don't really care about the URL then just 
install any Java server (Jetty, Tomcat, Glassfish, Wildfly, ...), deploy 
your *.war file on it and access it through your server IP address and the 
default port of your Java server which, in most cases, is 8080.

But if you want something like http://app.example.com and example.com is 
managed by Plesk + Apache then you have to read about Apache + reverse 
proxy because Apache needs to proxy requests to your java server of choice.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to use debugger

2014-09-25 Thread Vineet G H
Its dev mode I think.

On Wed, Sep 24, 2014 at 12:32 PM, alucard 
wrote:

> Are you using dev mode or super dev mode to debug?
>
>
> On Sunday, September 21, 2014 12:01:03 PM UTC+2, Vineet G H wrote:
>>
>> Hi All,
>>
>> I am using Eclipse Luna - Luna Release (4.4.0) with GWT and I put in a
>> breakpoint and attempt debug the code, it fails to stop at the breakpoint.
>> Any one knows why this might be occurring?
>>
>> Regards,
>> Vineet
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


How to setup a GWT project in Plesk on a virtual machine?

2014-09-25 Thread MOE
Hey,

I am a software developer in education and we learned JAVA in school. Now 
we have project weeks and every group should realize an application. We 
decided to program a card game with GWT. One of our team member is a bit 
familiar with GWT and we others used the google GWT introduction pages to 
learn. So far so good we created an application running fine in local 
debugging mode :) Now the problem: One of us has a virtual machine with 
root access running at the webhosting company STRATO. We decided to launch 
our project on this. The page was setup with Parallels Plesk 12. The 
clientside part works fine but the RPC calls are throwing 404 errors. By 
searching on google I found several differnt hints and facts.

1) We have to add information in web.xml
2) There is no possibility to run GWT on a VM
3) Apache is the problem
4) You have to install and config Tomcat manually
5) Use BaseURL information in the clientside code
and many more

Now I am very confused how to solve the problem. Can anybody please help me 
to understand whats the problem or sharing a good link how to solve?

I am very thankful for any response and help :)

Best regards

MOE

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT version with Java 8 support

2014-09-25 Thread Thomas Broyer


On Thursday, September 25, 2014 3:57:33 PM UTC+2, Thanos wrote:
>
> There were initially two aspects to java8  support. 
> 1) Lambda compilation
> 2) SDK emulation
>
> It was indicated that 1 but not 2, may still make GWT 2.7. Allowing for 
> some of the benefits for reduced verbosity now, if you avoid using java8 
> only JDK bits. Have both 1 and 2 been pushed to GWT 3.0 now?
>

"1" might make it in 2.7: https://gwt-review.googlesource.com/9260, but it 
might be blocked by 
https://code.google.com/p/google-web-toolkit/issues/detail?id=8914 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: I need help calling GWT code from Javascript passing in generic arguments and/or callbacks -- URGENT

2014-09-25 Thread Samuel Schmid
Thank you! Helped me a lot!

On Tuesday, March 6, 2012 5:53:25 AM UTC+1, babakm wrote:
>
> I built an API in GWT for accessing a series of complex services. I 
> wanted to do tons of client side processing and I chose GWT (been 
> doing GWT for years now). However, my users will be using Javascript. 
> I can easily call GWT from Javascript. No problem. I set up a routine 
> I run as soon as my EntryPoint is invoked, and it runs some Javascript 
> (just as explained in GWT docs). The problem is that many (more like 
> ALL) of my objects and methods use callbacks (everything is async). 
> And in many cases, they take Java generics (good old C++ style 
> templates). For instance: 
>
> public static void getConnection(final Callback callback) 
> { 
> Connection.get(callback); 
> } 
>
> I want to register this method using: 
>
> public static native void exportStaticMethod() /*-{ 
> $wnd.computeLoanInterest = 
> $entry(@com.mhsystems.rsmapiproxy.client.SomeTestClass::computeLoanInterest(IFI));
>  
>
> $wnd.getConnection = 
> $entry(@com.mhsystems.rsmapiproxy.client.SomeTestClass::getConnection(Lcom/ 
>
> mhsystems/rsmapiproxy/api/Callback)); 
> }-*/; 
>
> How do I do that? The first one (computeLoanInterest) works. The 
> second one, getConnection, does not. Callback is an interface (not 
> an object). Could that be the problem? I don't know how to declare the 
> generic Connection here. If that is not possible, I can write specific 
> objects but at the end of the day, I need the Javascript code to pass 
> in a Javascript callback that is called by the GWT code when it is all 
> said and done. 
>
> Cheerz!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a tutorial that explains Places and Hyperlinks?

2014-09-25 Thread Ronan Quillevere
I wrote some articles on the subject :

http://ronanquillevere.github.io/2013/03/03/activities-places-intro.html

I also tried to implement Thomas Broyer's idea to solve the nesting 
activities problem: http://blog.ltgt.net/gwt-21-activities-nesting-yagni/ so 
I created a Github project, have a look and do not hesitate to comment : 
https://github.com/ronanquillevere/GWT-Multi-Activities

Hope it can help



On Friday, September 19, 2014 7:35:07 PM UTC+2, eho...@usdataworks.com 
wrote:
>
> I'm writing a GWT app and trying to make Hyperlink widgets work.  I've 
> read 
> http://www.gwtproject.org/doc/latest/DevGuideMvpActivitiesAndPlaces.html and 
> some of the API docs, but it doesn't seem coherent.
>
> For instance, that web page says I can use an "@Prefix" annotation on a 
> PlaceTokenizer to change the first part of the URL associated with a Place, 
> but it doesn't show an example or tell me why I would want to do that.
>
> Also, all of the examples I can find of the Hyperlink widget show the 
> target history token as a single word, with no colon.  When I look in 
> Google's AbstractPlaceHistoryMapper.getPlace(), however, it expects a 
> colon.  If the token has no colon then the tokenizer can't be found.
>
> Am I missing some documentation?  Is there a good intro to this subject 
> out there?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT version with Java 8 support

2014-09-25 Thread Thanos
There were initially two aspects to java8  support. 
1) Lambda compilation
2) SDK emulation

It was indicated that 1 but not 2, may still make GWT 2.7. Allowing for 
some of the benefits for reduced verbosity now, if you avoid using java8 
only JDK bits. Have both 1 and 2 been pushed to GWT 3.0 now?

Mark

On Monday, July 7, 2014 2:26:34 PM UTC+1, Thomas Broyer wrote:
>
>
>
> On Monday, July 7, 2014 1:50:40 PM UTC+2, Bademus l. wrote:
>>
>> It's a pity that java8 support was delayed, but I believe GWT team have 
>> the reason.
>>
>
> Priorities vs. limited resources ;-)
>  
>
>> Do you plan to provide 3.0-SNAPSHOTS with Java8 support or stable 2,7 + 
>> java8 support build (let's call it 2.8-SNAPSHOT)?
>>
>
> There are nightly builds of the master branch (currently 2.7.0-SNAPSHOT) 
> published to 
> https://oss.sonatype.org/content/repositories/google-snapshots/
> When we cut 2.7, those should become 3.0-SNAPSHOT; and as soon as Java 8 
> support gets merged in, you'll be able to use it.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.6.1 w/Eclipse 4.3 plugins under Windows 8.1: failed to open the sample webapp in Chrome (it's ok w/IE)

2014-09-25 Thread Jens
Is your Chrome already 64-bit? If yes, the plugin is only compatible to 
32-bit Chrome. Also Chrome is removing NPAPI plugin support (which the GWT 
plugin needs) so in the future you would need to use SuperDevMode + Chrome 
or use an older Chrome version. Same for FireFox and the Opera version 
based on Chrome.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT 2.6.1 w/Eclipse 4.3 plugins under Windows 8.1: failed to open the sample webapp in Chrome (it's ok w/IE)

2014-09-25 Thread enlightone
Pls help me w/GWT for 1st time use. GWT 2.6.1 was installed 
per http://www.gwtproject.org/gettingstarted.html
I followed the instruction on http://www.gwtproject.org/usingeclipse.html
The sample web app opens a page in IE v11 but not in Chrome 37.0.2062.120. 
Why?
It momentarily shows the title, *Web Application Starter Project*
and then this error msg: URL is 
http://127.0.0.1:/FirstGwtWebApp.html?gwt.codesvr=127.0.0.1:9997
*Plugin failed to connect to Development Mode server at 127.0.0.1:9997*
Follow the troubleshooting instructions at 
http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


application web sur la gestion de tickets

2014-09-25 Thread assia alami
Bonsoir, 
j'ai un projet concernant la création d'une application de gestion de 
ticket, franchement je ne sais d'où commencer !

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.