Re: CellTable - ListDataProvider - Table not updating on subsequent calls

2013-12-23 Thread Alfredo Quiroga-Villamil
Hi:

Apologize for the delayed response.

That sounds different to the issue I was running into. In my case I do
recall the update working (server side) as well as the actual response over
the wire. For me It was purely an issue of how the Store/List Provider was
populated and shown in the UI widget with the latest response received from
the server.

Best regards.

Alfredo


On Sun, Dec 22, 2013 at 1:14 PM, Javed  wrote:

> I actually found the underlying cause.  Basically on the second update I
> am getting an optimistic locking error.
>
> But I am convinced I am using my JPA correctly.
>
> Does that ring any bells or jog your memory?
>
>
> On 21 December 2013 15:54, Alfredo Quiroga  wrote:
>
>> Ufff it's been so long I can't remember :( sorry and on top of it I
>> deleted the project. I just read my own email again to see if I could tell
>> what I was doing wrong and even now can't really tell.
>>
>> Sent from my iPhone
>>
>> On Dec 21, 2013, at 8:40 AM, Javed Sumra 
>> wrote:
>>
>> Hello Alfredo.  I am having a similar issue.  Did you get to the bottom
>> of this?
>>
>> Thanks
>>
>> On Saturday, August 4, 2012 3:10:46 PM UTC+1, Alfredo Quiroga-Villamil
>> wrote:
>>>
>>> I am still investigating here on my side, but I have a feeling I might
>>> be missing the obvious so if someone knows what I am missing or
>>> potentially doing wrong please let me know.
>>>
>>> Elements:
>>>
>>> - A CellTable
>>> - A ListDataProvider
>>> - RequestFactory
>>> - A "refresh" button
>>>
>>> Scenario:
>>>
>>> - The CellTable is populated via RequestFactory.
>>> - On the first load, all data is shown in the table (all rows are
>>> populated)
>>> - I have a button (refresh).
>>> - The Table can be edited, so as an example I edit the first row,
>>> first cell and simply change the text to something else.
>>> - I click on the refresh button and load a brand new list of proxies
>>> from the server using request factory.
>>> - I clear my provider's list and add the new proxies.
>>> - The new list doesn't replace the old values (previously edited).
>>>
>>> Curiosity:
>>>
>>> I've noticed that after I click refresh, although at first glance the
>>> edited cell didn't change, if I click on it once or twice, it'll
>>> correctly display the last value loaded from the server. This is very
>>> unusual behavior. I've also tried to invoke refresh and flush on the
>>> provider itself after adding the new set of proxies.
>>>
>>> Presenter's code that is invoked for the first load and subsequent
>>> ones is shown below:
>>>
>>> @Override
>>> public void readAll() {
>>>
>>> destinationContext = 
>>> factory.getRequestFactory().createDestinationContext();
>>>
>>> destinationContext.findAll().with("cards",
>>> "cards.trunks",
>>> "daysOfWeek", "daysOfWeek.hourlySchedule", "holidays")
>>> .fire(new Receiver>()
>>> {
>>>
>>> @Override
>>> public void 
>>> onSuccess(List
>>> proxies) {
>>>
>>> view.
>>> getDestinationCellTable().getProvider().getList().clear();
>>>     view.
>>> getDestinationCellTable().getProvider().getList().addAll(proxies);
>>>
>>> if (proxies != null &&
>>> proxies.size() > 0) {
>>>
>>> view.getDestinationCellTable().getCellTable().getSelectionModel().setSelected(proxies.get(0),
>>>
>>> true);
>>> }
>>>
>>> }
>>>
>>> });
>>>
>>> }
>>>
>>> I am still investigating here, but as I previously said if you see
>>> that I am simply missing the obvious I would appreciate it if you can
>>> let me know.
>>>
>>> Thank you in advance,
>>>
>>> Alfredo
>>>
>>> --
>>> Alfredo Quiroga-Villamil
>>>
>>> AOL/Yahoo/Gmail/MSN IM:  lawwt

Re: CellTable - ListDataProvider - Table not updating on subsequent calls

2013-12-21 Thread Alfredo Quiroga
Ufff it's been so long I can't remember :( sorry and on top of it I deleted the 
project. I just read my own email again to see if I could tell what I was doing 
wrong and even now can't really tell.

Sent from my iPhone

> On Dec 21, 2013, at 8:40 AM, Javed Sumra  wrote:
> 
> Hello Alfredo.  I am having a similar issue.  Did you get to the bottom of 
> this?
> 
> Thanks
> 
>> On Saturday, August 4, 2012 3:10:46 PM UTC+1, Alfredo Quiroga-Villamil wrote:
>> I am still investigating here on my side, but I have a feeling I might 
>> be missing the obvious so if someone knows what I am missing or 
>> potentially doing wrong please let me know. 
>> 
>> Elements: 
>> 
>> - A CellTable 
>> - A ListDataProvider 
>> - RequestFactory 
>> - A "refresh" button 
>> 
>> Scenario: 
>> 
>> - The CellTable is populated via RequestFactory. 
>> - On the first load, all data is shown in the table (all rows are populated) 
>> - I have a button (refresh). 
>> - The Table can be edited, so as an example I edit the first row, 
>> first cell and simply change the text to something else. 
>> - I click on the refresh button and load a brand new list of proxies 
>> from the server using request factory. 
>> - I clear my provider's list and add the new proxies. 
>> - The new list doesn't replace the old values (previously edited). 
>> 
>> Curiosity: 
>> 
>> I've noticed that after I click refresh, although at first glance the 
>> edited cell didn't change, if I click on it once or twice, it'll 
>> correctly display the last value loaded from the server. This is very 
>> unusual behavior. I've also tried to invoke refresh and flush on the 
>> provider itself after adding the new set of proxies. 
>> 
>> Presenter's code that is invoked for the first load and subsequent 
>> ones is shown below: 
>> 
>> @Override 
>> public void readAll() { 
>> 
>> destinationContext = 
>> factory.getRequestFactory().createDestinationContext(); 
>> destinationContext.findAll().with("cards", "cards.trunks", 
>> "daysOfWeek", "daysOfWeek.hourlySchedule", "holidays") 
>> .fire(new Receiver>() 
>> { 
>> 
>> @Override 
>> public void 
>> onSuccess(List proxies) { 
>> 
>> 
>> view.getDestinationCellTable().getProvider().getList().clear(); 
>> 
>> view.getDestinationCellTable().getProvider().getList().addAll(proxies); 
>> 
>> if (proxies != null && 
>> proxies.size() > 0) { 
>> 
>> view.getDestinationCellTable().getCellTable().getSelectionModel().setSelected(proxies.get(0),
>>  
>> true); 
>> } 
>> 
>> } 
>> 
>> }); 
>> 
>> } 
>> 
>> I am still investigating here, but as I previously said if you see 
>> that I am simply missing the obvious I would appreciate it if you can 
>> let me know. 
>> 
>> Thank you in advance, 
>> 
>> Alfredo 
>> 
>> -- 
>> Alfredo Quiroga-Villamil 
>> 
>> AOL/Yahoo/Gmail/MSN IM:  lawwton
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.

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


Re: Need Editor Framework help

2013-08-19 Thread Alfredo Quiroga-Villamil
their views.
>
> Are there are good IO videos that cover Editor Framework in detail? So far
> my searches have not come up with any, but the names don't always specify
> the content.
>
> I've read the details on gwtproject.org, code.google.com, and various
> blogs plus the DynaTableRf example. But while trying to implement this
> stuff today, it just feels wrong, like it isn't going to fit/work/etc with
> what I'm doing. So I'm trying to figure out if I should just not use Editor
> Framework at all.
>
> Thank you,
>
> Michael Prentice
> GDG Space Coast
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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


Re: I'm enhancing GWT to provide Java stack traces for clientside exceptions in production

2013-07-23 Thread Alfredo Quiroga-Villamil
I just finished reading the paper presented at:

http://www.indiegogo.com/projects/enable-gwt-to-preserve-java-debugging-info-in-production

depicting some of the areas/improvements he has made to what I personally
consider a vital area and a great addition to gwt-core namely logging and
proper mapping to java sources in production.

Looking at the donations made so far and obviously at first glance it
doesn't look like this work has the significance to many that one might
expect. I really feel like the amount of work, complexity of the issue at
hand and the overall contribution of the work made by +Alex* *Epsthteyn is
important enough so that we shouldn't let it go unnoticed. By unnoticed I
mean how do we find a way to work with him so that his changes are ported
and integrated into gwt core.

Are there any plans or conversations regarding this topic among the core
GWT developers? Any way to bring, help Alex so he can incorporate/merge a
lot of the changes he has made so everyone benefits from it?

I apologize before hand if there are conversations about this somewhere
else and I have missed them.

Alfredo


On Fri, Jul 19, 2013 at 12:56 AM, Alex Epshteyn <
alexander.epsht...@gmail.com> wrote:

> In response to some of the concerns expressed in this thread, I'd like to
> clarify that by using my patch, you will not be making any trade-offs
> versus what you previously had with GWT's old implementation: my patch will
> give you all "pros" and no "cons."
>
> Here's why:
>
> There are two ways to get perfect stack traces in production: 1) via a
> compiler-generated source map file in a browser that provides JS stack
> traces with column numbers (only Chrome right now) and 2) via stack
> emulation for all other browsers.  My project implements both solutions,
> along with lots of improvements to their existing implementations in GWT.
>  So if anyone is already using any of the following: stack emulation,
> symbol maps, source maps, StackTraceDeobfuscator, etc., my patch will make
> those things better for you without requiring you to use other pieces that
> you don't need.  For example, you could configure it to only use solution
> #1: which gives you perfect stack traces for Chrome and doesn't increase
> the size of your code.  Or you could additionally enable solution #2, which
> will cover all the other browsers, with only 45% overhead in code size for
> those other browsers.  Personally, I think that 45% is totally worth it
> (especially compared to the 100% overhead incurred in the original
> solution), and I'm using it in my app, but if you don't want any overhead,
> you can just take the freebie for Chrome and leave the rest as before.
>
> By the way, who wants to try it?  Please get it touch with me (alex at
> typeracer.com), and I will email you my patch so you can see for yourself
> how awesome it is.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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




Re: Failure to send xml POST request in GWT

2013-06-13 Thread Alfredo Quiroga
Notorious SOP issue at hand perhaps?

Sent from my iPhone

On Jun 13, 2013, at 6:11 AM, Daniel  wrote:

> I have noted also, even firebug does not register the POST request I made, it 
> just load loaded the post domain.
> 
> On Thursday, June 13, 2013 12:30:55 PM UTC+3, Daniel wrote:
>> 
>> Hello guys,
>> I am trying to send xml in POST request in GWT, but no responses or success, 
>> see my code below:
>> 
>> RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, 
>> URL.encode(url));
>> logger.log(Level.INFO, "Building payload"+builder.toString());
>> try {
>>   builder.setHeader("Content-Type", "application/xml");
>>   builder.setHeader("Accept", "application/xml");
>>   Request response = builder.sendRequest(postData, new 
>> RequestCallback() {
>>   
>> public void onError(Request request, Throwable exception) {
>> logger.log(Level.INFO, "there was a problem in connecting to 
>> the server");
>> // Couldn't connect to server (could be timeout, SOP 
>> violation, etc.) 
>> }
>> 
>> public void onResponseReceived(Request request, Response 
>> response) {
>> if (200 == response.getStatusCode()) {
>> Window.alert("success"+response.getText());
>> // Process the response in response.getText()
>> logger.log(Level.INFO, "response from the 
>> server"+response.getText());
>> } else {
>> logger.log(Level.INFO, "status is not 200_OK 
>> "+response.getText());
>>   // Handle the error.  Can get the status text from 
>> response.getStatusText()
>> }
>>   logger.log(Level.INFO, response.toString());
>> }
>>   });
>> } catch (RequestException e) {
>>   Window.alert("Failed to send the request: " + e.getMessage());
>> }
>> 
>> 
>> My post data looks is :
>> 
>> > id="" 
>> msisdn="" 
>> service-number="" 
>> priority="1">
>> Tes
>> 
>> 
>> 
>> Please advice
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Application architecture question

2013-06-11 Thread Alfredo Quiroga-Villamil
@Timea RequestBuilder or RequestFactory.

If you plan on creating a Mobile "Web" App you can def. look at GWT-RPC.
However, if you plan on packaging the App to "Native" as part of the dual
mode (web-"native"), then avoid if possible GWT-RPC.

Regards,

Alfredo


On Tue, Jun 11, 2013 at 3:41 PM, Imy  wrote:

> Thank you for the so far posted replies.
>
> For maybe further clarify:
>
>- I need this to work only at the start up of the application, to wait
>till my model has all the data and then update the GUI.
>- I am using mGWT, still the architecture is GWT related. I am using
>mGWT to get it cross-device and GWT to get it cross-browser. (of course
>with its limitations)
>- let's say I can control the RPC calls, what do I do with all the
>events? Can I control my application only to move on when all the necessary
>events are done?
>
>
> @Alfredo - if not gwt-rpc, then what?
>
> Cheers,
> Timea
>
> On 11 June 2013 21:30, Alfredo Quiroga  wrote:
>
>> And since the last sentence of the original post if my memory serves me
>> right mentions is for a mobile app I would strongly recommend not to use
>> gwt-rpc in this case.
>>
>> Sent from my iPhone
>>
>> On Jun 11, 2013, at 3:24 PM, Jens  wrote:
>>
>> If you have multiple independent RPC requests and you want to update the
>> GUI after all these RPC requests are done, then you could check a number of
>> boolean variables (one per RPC request) to see if all of them are true ( =
>> RPC is done), e.g.
>>
>> server.rpcMethod1(Callback() {
>>   onSuccess() {
>> rpcMethod1Done = true;
>> maybeUpdateUI();
>>   }
>> });
>>
>> server.rpcMethod2(Callback() {
>>   onSuccess() {
>> rpcMethod2Done = true;
>> maybeUpdateUI();
>>   }
>> });
>>
>> private void maybeUpdateUI() {
>>   if(allRpcDone()) { //check all boolean variables.
>> //... update ui
>>   }
>> }
>>
>> But as you have a mobile application its probably better to batch your
>> requests, so that your app, as a rule of thumb, only does one request per
>> screen. This saves a lot of network overhead. In this case a command
>> pattern might be useful, as it allows for easy BatchCommands, e.g.
>>
>> BatchCommand bc = new BatchCommand();
>> bc.add(new DoStuff1Command());
>> bc.add(new DoStuff2Command());
>>
>> server.execute(bc, Calllback() {
>>   //in onSuccess iterate over all individual command results contained in
>> the BatchCommandResult and finally update your UI.
>> }
>>
>>
>>
>> Otherwise, if you just have a single RPC request somewhere and you make
>> that RPC request because of an event you probably just need an
>> XyzLoadedEvent, e.g. ScoreBoardRequestEvent and ScoreBoardLoadedEvent, just
>> like Joseph has already explained.
>>
>> -- 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?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Google Web Toolkit" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/google-web-toolkit/eZLxnlpixL0/unsubscribe?hl=en
>> .
>> To unsubscribe from this group and all its topics, 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?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Application architecture question

2013-06-11 Thread Alfredo Quiroga
And since the last sentence of the original post if my memory serves me right 
mentions is for a mobile app I would strongly recommend not to use gwt-rpc in 
this case.

Sent from my iPhone

On Jun 11, 2013, at 3:24 PM, Jens  wrote:

> If you have multiple independent RPC requests and you want to update the GUI 
> after all these RPC requests are done, then you could check a number of 
> boolean variables (one per RPC request) to see if all of them are true ( = 
> RPC is done), e.g.
> 
> server.rpcMethod1(Callback() {
>   onSuccess() {
> rpcMethod1Done = true;
> maybeUpdateUI();
>   }
> });
> 
> server.rpcMethod2(Callback() {
>   onSuccess() {
> rpcMethod2Done = true;
> maybeUpdateUI();
>   }
> });
> 
> private void maybeUpdateUI() {
>   if(allRpcDone()) { //check all boolean variables.
> //... update ui
>   }
> }
> 
> But as you have a mobile application its probably better to batch your 
> requests, so that your app, as a rule of thumb, only does one request per 
> screen. This saves a lot of network overhead. In this case a command pattern 
> might be useful, as it allows for easy BatchCommands, e.g.
> 
> BatchCommand bc = new BatchCommand();
> bc.add(new DoStuff1Command());
> bc.add(new DoStuff2Command());
> 
> server.execute(bc, Calllback() {
>   //in onSuccess iterate over all individual command results contained in the 
> BatchCommandResult and finally update your UI.
> }
> 
> 
> 
> Otherwise, if you just have a single RPC request somewhere and you make that 
> RPC request because of an event you probably just need an XyzLoadedEvent, 
> e.g. ScoreBoardRequestEvent and ScoreBoardLoadedEvent, just like Joseph has 
> already explained.
> 
> -- 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT Toolkits

2013-06-10 Thread Alfredo Quiroga
Perhaps as a starting point and with most of the canvas functionality you will 
need, take a look at Lienzo @ emitrom.com

Regards

Sent from my iPhone

On Jun 10, 2013, at 11:40 AM, Donald Hook  wrote:

> I am looking at developing an application that will have some objects on a 
> canvas or page.  These objects (almost like placecards, square with 
> information displayed within it)  will display project information and users 
> will have the ability to connect multiple objects.  In addition, these 
> objects will have information as to how much time they will take to complete 
> the task.  On the page, there will be several objects, the user can have the 
> ability to connect these objects and I want to be able to change the color or 
> format of the connecting lines based on what items are in the critical path.  
> 
> I have not yet seen any tools that will support this capability and was 
> wondering if others know of anything that may be close to what we need.
> 
> Thanks in advance.
> -- 
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: JPA issue: A parent cannot be established or changed once an object has been persisted.

2013-05-21 Thread Alfredo Quiroga
Or use a cascade persist, merge to force creation or merge respectively

Sent from my iPhone

On May 21, 2013, at 7:02 AM, Juan Pablo Gardella  
wrote:

> You should persist company before persist Tradesman or attach to an existent 
> company. This relation should be explicit. Create 
> company.addTrademan(Trademan t) method:
> 
> company.addTrademan(Trademan t){
> users.add(t);
> t.setCompany(this);
> }
> 
> Call this in a transactional method.
> 
> Juan
> 
> 
> 
> 
> 
> 
> 2013/5/21 Nermin 
>> Dear Juan,
>> 
>> I tried @ManyToOne(optional=false), unfortunately no changes.
>> In my current setting, the @PrePersist is called only once. (I see it on 
>> system out) That means: no multiple attempts to persist Tradesman entity.
>> 
>> However, it looks to me that whenever I change parameters on the Tradesman 
>> entity JPA creates/persists for some reason the Tradesman in the DB, 
>> independently from the Company entity.
>> I use Standard GWT settings: GWT 2.5, DataNucleus on Appengine Datastore.
>> 
>> The scenario I am describing here is a standard scenario you will face when 
>> using GWT with JPA. I am surprised that my code is not working.
>> @PrePersist works fine as long as the Entity is not in a owned relation with 
>> other entities.
>> 
>> Does anyone has an idea what could be wrong here?
>> 
>> Thank you!!
>> 
>> Nermin
>> 
>> @Thomas: Thank you for the advise. I will 
>> 
>> Am Dienstag, 21. Mai 2013 12:01:43 UTC+2 schrieb Juan Pablo Gardella:
>>> 
>>> Update your entity as: 
>>> 
>>> @Entity
>>> public class Tradesman extends User{
>>> @ManyToOne(optional=false)
>>> private Company company;
>>> 
>>> @PrePersist
>>> public void hashPassword(){
>>> setPassword(BCrypt.hashpw(entity.getPassword(), BCrypt.gensalt());
>>> }
>>> 
>>> And then check where are you persisting Tradesman without company. 
>>> 
>>> 
>>> 
>>> 2013/5/21 Thomas Broyer 
 
 
 On Tuesday, May 21, 2013 11:18:42 AM UTC+2, Nermin wrote:
> 
> Dear GWT developers,
> 
> I have a "probably simple" problem with my application which I am 
> obviously not able to solve.
> 
> Two Classes: Company, Tradesman
> 
> @Entity
> public class Company {
> @OneToMany(cascade = CascadeType.ALL, mappedBy = "company")
> private List users = new ArrayList();
> 
> 
> }
> 
> 
> @Entity
> public class Tradesman extends User{
> @ManyToOne
> private Company company;
> 
> @PrePersist
> public void hashPassword(){
> setPassword(BCrypt.hashpw(entity.getPassword(), BCrypt.gensalt());
> }
> 
> JSR 303 validation on GWT is activated.
> 
> Here is the error message:
> Detected attempt to establish Company(no-id-yet) as the parent of 
> Tradesman(356) but the entity identified by Tradesman(356) has already 
> been persisted without a parent.  A parent cannot be established or 
> changed once an object has been persisted.
> 
> My problem is obviously that when I change some parameters within the 
> Tradesman entity within the @PrePersist method, a new child entity is 
> created.
> In case I do not touch any parameter, in the @PrePersist, everything 
> works fine.
> 
> What am I doing wrong here?
 
 You're not reaching the appropriate group ;-)
 
 I suppose you're using AppEngine (form what I know of JPA, I can't see a 
 reason for that kind of message, unless you're using JPA on AppEngine), in 
 which case you can ask for support on StackOverflow: 
 https://developers.google.com/appengine/community
 -- 
 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-we...@googlegroups.com.
 Visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
>> -- 
>> 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?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
> 
> -- 
> 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

Re: GWT cross-site request

2013-04-13 Thread Alfredo Quiroga
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/jsonp/client/JsonpRequestBuilder.html

Might help

Sent from my iPhone

On Apr 13, 2013, at 8:36 PM, Robson Braga  wrote:

> I get it! The following line was missing:
> 
> var script = document.createElement("script");
> 
> My bad...
> 
> 
> Em sábado, 13 de abril de 2013 21h27min29s UTC-3, Robson Braga escreveu:
>> 
>> Hi folks,
>> 
>> I have a webservice that returns a JSONP. The URL of the webservice is this:
>> 
>> http://user:password@localhost:8080/project/api/clientByEmail?email=u...@domain.com&callback=callback1
>> 
>> The result of that URL is this:
>> 
>> callback1({"personId":"1","email":"u...@domain.com","password":"5f4dcc3b5aa765d61d8327deb882cf99","personType":"1","documentNumber":"191","fullName":"Name
>>  Middle Last","phone":"4130232076","mobile":"4191199614","active":"true"})
>> 
>> I'm writting a GWT form to retrieve this information from my webservice. I 
>> have the following function, copied from GWT Tutorial, to do that:
>> 
>> public native static void getClientJson(String url, GwtTest handler) /*-{
>> // [1] The script starts by setting up a 

Re: Dart with GWT

2013-02-21 Thread Alfredo Quiroga
Nice job, really cool stuff.

Thanks for sharing it.

Sent from my iPhone

On Feb 19, 2013, at 4:01 PM, Shannon -jj Behrens  wrote:

> Hey guys,
> 
> I put together a video on how to use Dart with GWT:
> 
> http://news.dartlang.org/2013/02/dart-with-google-web-toolkit.html
> 
> In it, I show a bunch of ways to interoperate such as:
> Using GWT and Dart to manage different parts of the same page
> Using Dart to retrieve JSON from a Java servlet
> Using window.postMessage and JSNI to pass messages between GWT and Dart
> Using JavaScript, JSNI, and Dart's js package for synchronous 
> interoperability between GWT and Dart
> Using CustomEvent objects and Elemental to pass messages between GWT and Dart
> I had a really good time using GWT and Dart to build the sample application, 
> so I hope you enjoy the video!
> 
> Best Regards,
> -jj
> -- 
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Slotted - A Slot/Nesting Extension to Activities and Places

2013-01-25 Thread Alfredo Quiroga
Very cool and extremely useful indeed. So far I have only read the 
documentation, haven't actually used the framework yet but the way this is 
architected/implemented at least at first glance seems to be right on. Would 
not mind it at all if this made its way into GWT core.

Great work, thank you for sharing it.

Sent from my iPhone

On Jan 24, 2013, at 4:52 PM, Jeffrey Kleiss  wrote:

> We have just released the open source project Slotted version 0.1, and we 
> would love to hear your feedback and suggestions on the project.  Slotted can 
> be found here: http://code.google.com/p/slotted/.
> 
> Here is a brief description:
> 
> Slotted
> 
> The Slotted framework is an extension of GWT Activities and Places (A&P), 
> which adds the ability to nest Activities inside other Activities. Slotted 
> has retained much of the A&P API, and has only changed where needed to 
> support nesting. This allows for easy migration of existing A&P projects.
> 
> Just like Activities and Places, Slotted is a history management framework 
> that allows you to create bookmarkable URLs within your application, thus 
> allowing the browser's back button and bookmarks to work as users expect. It 
> maybe used in conjunction with MVP development, but is not strictly speaking 
> an MVP framework.
> 
> If you haven't seen GWT's Activities and Places, you can read GWT's 
> documentation here: 
> https://developers.google.com/web-toolkit/doc/latest/DevGuideMvpActivitiesAndPlaces
> 
> Why Nesting?
> 
> GWT's Activities are great, and provide a great flow for page initialization 
> and page navigation. Now imagine a page with a TabPanel. Wouldn't it be great 
> if each Tab was setup like an Activity? Wouldn't it be great to have delayed 
> initialization and navigation checks?
> 
> This is why Slotted was created. Slotted allows you to organize your entire 
> site into hierarchy of Activities. You no longer need to manage complex 
> Views/Activities yourself. You can divide these complex pages into many 
> Activities, and allow Slotted to manage the nesting structure and provide 
> nice bookmarkable URLs for these complex views.
> 
> Getting Started
> 
> Want to get started using Slotted? Take a look at the Overview and 
> MigrateGWTActivitiesPlaces. You can also find code samples here.
> 
> 
> 
> -- 
> 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.
> Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

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




Re: Lienzo is now GA and it's Pixel Perfect!

2013-01-02 Thread Alfredo Quiroga-Villamil
Hi David:

https://emitrom.atlassian.net/svn/LK/trunk

Regards,

Alfredo


On Wed, Jan 2, 2013 at 2:42 PM, David  wrote:

> This is wonderful!
>
> Do you know where I can find the bits of the demo source that are not
> visible in the Lienzo Explorer?  i.e.
> com.emitrom.lienzo.demo.client.common.WidgetLayer
>
> 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/-/JHM6p_WtUwgJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Hit detection for GWT canvas - which strategy for drawings?

2012-12-20 Thread Alfredo Quiroga-Villamil
;>>>>> Use a bounding box around every shape, so you can do an O(1) check if
>>>>>> the click is inside the bounding box (click.x < box.left, click.x >
>>>>>> box.right, etc)
>>>>>> If the click is inside the bounding box, then you can run normal edge
>>>>>> detect O(number of lines per poly) -- (drop a line to the axis, count
>>>>>> number of line intersections - check stackoverflow or similar for code)
>>>>>>
>>>>>> If you have Z index on your shapes, then start from the biggest Z
>>>>>> index and take the first match.
>>>>>> If you are drawing in a list, then start from the bottom of the list
>>>>>> and work upwards and take the first match.
>>>>>>
>>>>>> On Thursday, December 20, 2012 1:14:43 PM UTC+2, membersound wrote:
>>>>>>>
>>>>>>> I'm creating some kind of drawings/flowchart/UML-diagram like tool
>>>>>>> with GWT Canvas (Java).
>>>>>>> For hit-detection of my drawings I could imagine 3 different
>>>>>>> strategies, but I do not know which would work best for my goal.
>>>>>>>
>>>>>>> -  Just keep track of all Shape coordinates and iterate all objects
>>>>>>> on mouseclick
>>>>>>> -  draw all objects on a ghost-canvas on mouseclick, and use
>>>>>>> isPointInPath() after every object drawing
>>>>>>> - using a ghost-canvas and draw each object with its own color (like
>>>>>>> #01, #02), and keep reference of them in a Map. 
>>>>>>> Then
>>>>>>> just detecting the mouseclick on the ghost-canvas and get the object
>>>>>>> belonging to the pixelcolor under mouse
>>>>>>>
>>>>>>> What would you prefer, and why?
>>>>>>>
>>>>>>  --
> 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/-/O9Foj0GE6z4J.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Hit detection for GWT canvas - which strategy for drawings?

2012-12-20 Thread Alfredo Quiroga-Villamil
In Lienzo, we opted for a Color Map approach. Detecting bounding boxes as
previously suggested in the thread is not a trivial task, more so for non
geometrical shapes.

http://wiki.emitrom.com/wiki/index.php/Picking

Lienzo is only 4 months old and already surpasses in functionality and
efficiency all the JS based frameworks we've seen out there, that includes
Kinetic. An example is, in Kinetic you have to handle dragging yourself to
make it efficient. In Lienzo, you simply call setDraggable on the "shape"
and we do the rest for you.

My suggestion would be to save you lots of time, coding and go with a GWT
only based solution that has an incredible number of features already.
While you are at it you can also provide us with feedback and help us make
it better. It's Apache 2 and we are using it to build a few things.

A ton more of features are in the pipeline. We are as we speak for example
in the process of adding zoom support. Via different mediators you'll be
able to zoom in/out your entire viewport.

Take a look at the explorer here:

http://www.emitrom-lienzo.appspot.com/

Regards,

Alfredo


On Thu, Dec 20, 2012 at 6:14 AM, membersound  wrote:

> I'm creating some kind of drawings/flowchart/UML-diagram like tool with
> GWT Canvas (Java).
> For hit-detection of my drawings I could imagine 3 different strategies,
> but I do not know which would work best for my goal.
>
> -  Just keep track of all Shape coordinates and iterate all objects on
> mouseclick
> -  draw all objects on a ghost-canvas on mouseclick, and use
> isPointInPath() after every object drawing
> - using a ghost-canvas and draw each object with its own color (like
> #01, #02), and keep reference of them in a Map. Then
> just detecting the mouseclick on the ghost-canvas and get the object
> belonging to the pixelcolor under mouse
>
> What would you prefer, and why?
>
> --
> 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/-/tPJuPlAJED4J.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Whiteboard (freehand drawing)

2012-12-18 Thread Alfredo Quiroga-Villamil
Hi James,

I am unfortunately not familiar with GWT Visualization. I've seen threads
about it though. But to answer your question, yes, it would be fairly
straight forward to create a slick charting library. That doesn't mean it
would be simple. The devil is usually as people say in the details.

However, because the core things are there all implemented in Lienzo, I
don't personally think it would be that hard either and it would be crazy
slick. What's even better it would run on anything that supports the HTML5
canvas spec. Now days that's a lot of devices out there, mobile, desktop.
The charts could have some crazy animations also.

http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:transform_3_points

Move the three red dots around the screen and hit "animate". This is just
one line of code for the user of the Lienzo API. The transform and all the
details are worked out for the user behind the scenes.

Just to play around, for fun really, we created this pie chart. We didn't
make it pretty or anything. Just made it draggable, no animation, shadows,
cool gradients, nothing, a crud pie chart and it was just a few lines of
code:

http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:pie_chart

Hope that helps.

Regards.

Alfredo


On Tue, Dec 18, 2012 at 9:55 AM, James  wrote:

> Is it promising to use this library for reporting to replace other third
> party chart libraries such as GWT Visualization?
>
>
> On Monday, December 17, 2012 5:34:17 PM UTC-5, Alfredo Quiroga-Villamil
> wrote:
>
>> Forgot to mention ... You can also add a touch end handler and apply the
>> same concept. This way it will work on mobile devices as well.
>>
>> Sent from my iPhone
>>
>> On Dec 17, 2012, at 4:58 PM, Zach  wrote:
>>
>> Rather than create a new shape, I found I'm able to simply create a
>> LienzoPanel that has a Layer in it. This Layer will be the canvas: on mouse
>> events I can draw a PolyLine and add points to it. After any mouseUp event
>> I can then JSONify the Layer and send that, which will have all shapes
>> within 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/-/**eY8mcIzdLn4J<https://groups.google.com/d/msg/google-web-toolkit/-/eY8mcIzdLn4J>
>> .
>> To post to this group, send email to google-we...@**googlegroups.com.
>>
>> To unsubscribe from this group, send email to google-web-toolkit+**
>> unsubscr...@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/**
>> group/google-web-toolkit?hl=en<http://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 view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/ec4JGx0RqasJ.
>
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Whiteboard (freehand drawing)

2012-12-17 Thread Alfredo Quiroga
Forgot to mention ... You can also add a touch end handler and apply the same 
concept. This way it will work on mobile devices as well.

Sent from my iPhone

On Dec 17, 2012, at 4:58 PM, Zach  wrote:

> Rather than create a new shape, I found I'm able to simply create a 
> LienzoPanel that has a Layer in it. This Layer will be the canvas: on mouse 
> events I can draw a PolyLine and add points to it. After any mouseUp event I 
> can then JSONify the Layer and send that, which will have all shapes within 
> 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/-/eY8mcIzdLn4J.
> 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: GWT Whiteboard (freehand drawing)

2012-12-17 Thread Alfredo Quiroga
Check that out, even better if that gives you all you needed.

Regards.

Sent from my iPhone

On Dec 17, 2012, at 4:58 PM, Zach  wrote:

> Rather than create a new shape, I found I'm able to simply create a 
> LienzoPanel that has a Layer in it. This Layer will be the canvas: on mouse 
> events I can draw a PolyLine and add points to it. After any mouseUp event I 
> can then JSONify the Layer and send that, which will have all shapes within 
> 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/-/eY8mcIzdLn4J.
> 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: GWT Whiteboard (freehand drawing)

2012-12-17 Thread Alfredo Quiroga-Villamil
Very interesting question and use case. Assuming you need a bit more than
just simple "hand - mouse drawing", my recommendation would be to start
with Lienzo (www.emitrom.com/lienzo) as a base. A couple of reasons why:

- It will support both mouse and touch events.
- It will give you support not only for "hand/mouse drawn objects" but also
access to a pretty big list of already built in geometrical shapes. All
draggable, transformable, etc...
- Say you wanted more than just the hand drawn things as previously
mentioned, after you are done with the user's view or on demand, every x
number of seconds or whichever way you like to implement the server push
synchronization mechanism for all your clients, you can then call:

.toJson()

and you'll get a JSON representation of your entire viewport. See an
example here, click the save button.

http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:json

The only thing we don't have implemented is a "hand-drawn" shape. In other
words, you'll need to implement the hand drawn part and hook into our
serialization mechanism. Essentially you'll create a Custom Shape. But we
have all this documented so it should be fairly straight forward. See how
to extend Lienzo here:

http://wiki.emitrom.com/wiki/index.php/Extending_Lienzo

Our community is here if you have questions and decide to go with this
approach.

https://plus.google.com/u/0/communities/111441257302891144143

Best regards,

Alfredo


On Mon, Dec 17, 2012 at 2:55 AM, Zach  wrote:

> Hey I'm trying to have a client draw freely (like MSPaint) onto a canvas,
> and have that data then be sent to another client where they can view and
> also draw. The project I'm working in is in GWT, so I'm looking for a way
> to accomplish this using Google's WebToolkit. The *perfect* example I
> have of this is found at: http://drawboard.appspot.com  only I have
> absolutely no clue where to begin. If you can point me towards any google
> searches (I've been doing many with nothing but failure) that'd be awesome!
> Or if you happen to know exactly how the above website implements this,
> that'd be perfect as well. Let me know!
>
> --
> 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/-/ofG1FddHUfkJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Lienzo is now GA and it's Pixel Perfect!

2012-12-15 Thread Alfredo Quiroga-Villamil
Hi Oliver:

We think is very practical for Mobile Devices. One thing that is of
particular interest to us is for the most part the universality of a widget
created based on canvas. You are more or less guaranteed it'll look the
same in any desktop/mobile or any device for that matter implementing the
canvas spec. Something that was once a dream for many using webkit but due
to the current fragmentation, it has become harder to achieve.

In this case for static "views", a canvas it's nothing but a bunch of
pixels drawn on the screen which is out of the box resolution independent.
So compare that to building complex DOM structures in the browser and there
is already a gained benefit. When it comes to animations for example, the
way things are done is pretty efficient I have to say. An animation is
typically wrapped in a requestAnimationFrame (
http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/animation/client/AnimationScheduler.html).
This is a rather efficient operation since it allows the browser to realize
the animation in the most efficient way.  Very important since it allows
the browser to trigger the next animation step when it needs to. Something
interesting in this area is how the actual implementation works. If you go
to a different tab, navigate away from the view, etc... all the animations
are suspended. That by itself will automatically save CPU cycles, battery
and resources. Also the sort of animations that we can now create are not
bound the the ones provided by browsers. We can animate anything we want to
in previously unimaginable ways.

Lienzo 1.0 supports most the core functionality that will be needed to
build things on top for Mobile or Desktop. That is, we support dragging in
a mobile device, events, etc... Things such as scrolling, scaling and
others are likely to be created and added as another library that will seat
on top of it. More of a widget library at that point. Hard to draw the line
but as of now that's the idea. Doesn't mean they won't get added to Lienzo
directly in the near future.

Help is something that we really, really need. More so when it comes to
creating test cases, analyzing performance, battery on mobile devices, CPU
utilization, you name it. We have made Lienzo very extensible so creating
widgets or modules on top of it should be very easy. Creating a chart
library, widgets and other cool things. We have created some examples for
possible widgets such as Sliders, Progress Bars, Toggle Buttons and we were
ourselves surprised to realize how simple it was to do so. And they are
slick. Since you have total control over shadows, gradients, I mean you can
pretty much do whatever you want. So yes, please by all means if you have
some time and can give it a try and see if you can come up with some tests,
etc... it would be really, really cool.

Man sorry for the long email :( didn't mean for it to be this long.

Really appreciate the feedback/questions/ideas and we look forward to a lot
more so we can improve things and make them better for all.


On Sat, Dec 15, 2012 at 4:01 PM, Oliver Krylow  wrote:

> Hi, this looks very interesting. Do you think this is practical for mobile
> devices?
>
> What do you think the battery drain would be compared to normal gwt
> widgets and css animations especially?
>
> The explorer showcase unfortunately does not behave well on my mobile
> phone ( galaxy sII android 4.2). The canvas is not scrollable and does not
> scale. I assume you focused on targeting the desktop first, which makes
> sense :-)
>
> In case you plan to target mobile I am the future I would be lost
> interested to help in any performance related tests, especially animations.
>
> - Oliver
> On 15 Dec 2012 21:33, "Alfredo Quiroga"  wrote:
>
>> Thank you much appreciated.
>>
>> Sent from my iPhone
>>
>> On Dec 15, 2012, at 11:53 AM, darkflame  wrote:
>>
>> > Just had a quick look at the Explorer examples, some really nifty
>> > stuff there!
>> > Too late for us to implement into our current project, but fantastic
>> > work!
>> >
>> >
>> > On Dec 14, 7:11 pm, Alfredo Quiroga-Villamil 
>> > wrote:
>> >> All:
>> >>
>> >> Just a quick announcement letting everyone know that Lienzo is now GA!
>> >>
>> >> If you are looking to do anything canvas based, games, animations, new
>> >> unthinkable widgets for either mobile or web based apps, I think you
>> will
>> >> find that Lienzo covers in this, its 1.0 version the vast majority of
>> the
>> >> things you will need.
>> >>
>> >> We have invested a great deal of time to make sure the library is as
>> solid
>> >> as it can be. However, nothing beat

Re: Lienzo is now GA and it's Pixel Perfect!

2012-12-15 Thread Alfredo Quiroga
Thank you much appreciated.

Sent from my iPhone

On Dec 15, 2012, at 11:53 AM, darkflame  wrote:

> Just had a quick look at the Explorer examples, some really nifty
> stuff there!
> Too late for us to implement into our current project, but fantastic
> work!
> 
> 
> On Dec 14, 7:11 pm, Alfredo Quiroga-Villamil 
> wrote:
>> All:
>> 
>> Just a quick announcement letting everyone know that Lienzo is now GA!
>> 
>> If you are looking to do anything canvas based, games, animations, new
>> unthinkable widgets for either mobile or web based apps, I think you will
>> find that Lienzo covers in this, its 1.0 version the vast majority of the
>> things you will need.
>> 
>> We have invested a great deal of time to make sure the library is as solid
>> as it can be. However, nothing beats community feedback and new ideas.
>> There are a handful of things that we plan on adding to the toolkit in the
>> next release, but if you have any suggestions, please feel free to drop us
>> a line. Lienzo is an Apache 2 library and its creation is the result of our
>> own needs so we are not only producers but also consumers of the package.
>> 
>> As part of this release we put a lot of effort into creating not only the
>> software itself but also good resources to help you in your journey to
>> create literally anything you can think of. That's how powerful canvas and
>> GWT together we think can be.
>> 
>> As usual, none, none of this would have been possible without GWT. We
>> extend our gratitude to those that continue to make GWT better and hope
>> that this latest addition helps others create things that were only
>> possible in our imagination before, at least creating them in a much easier
>> fashion.
>> 
>> *Community: *
>> 
>> https://plus.google.com/u/0/communities/111441257302891144143
>> 
>> *Lienzo User Guide:*
>> 
>> http://wiki.emitrom.com/wiki/index.php/Lienzo_User_Manual
>> 
>> *Lienzo Explorer:*
>> 
>> http://www.emitrom-lienzo.appspot.com/
>> 
>> *Lienzo Download:*
>> 
>> http://www.emitrom.com/lienzo/download
>> 
>> The Emitrom Team
>> 
>>  lienzo_banner.png
>> 37KViewDownload
> 
> -- 
> 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.



Lienzo is now GA and it's Pixel Perfect!

2012-12-14 Thread Alfredo Quiroga-Villamil
All:

Just a quick announcement letting everyone know that Lienzo is now GA!

If you are looking to do anything canvas based, games, animations, new
unthinkable widgets for either mobile or web based apps, I think you will
find that Lienzo covers in this, its 1.0 version the vast majority of the
things you will need.

We have invested a great deal of time to make sure the library is as solid
as it can be. However, nothing beats community feedback and new ideas.
There are a handful of things that we plan on adding to the toolkit in the
next release, but if you have any suggestions, please feel free to drop us
a line. Lienzo is an Apache 2 library and its creation is the result of our
own needs so we are not only producers but also consumers of the package.

As part of this release we put a lot of effort into creating not only the
software itself but also good resources to help you in your journey to
create literally anything you can think of. That's how powerful canvas and
GWT together we think can be.

As usual, none, none of this would have been possible without GWT. We
extend our gratitude to those that continue to make GWT better and hope
that this latest addition helps others create things that were only
possible in our imagination before, at least creating them in a much easier
fashion.

*Community: *

https://plus.google.com/u/0/communities/111441257302891144143

*Lienzo User Guide:*

http://wiki.emitrom.com/wiki/index.php/Lienzo_User_Manual

*Lienzo Explorer:*

http://www.emitrom-lienzo.appspot.com/

*Lienzo Download:*

http://www.emitrom.com/lienzo/download

The Emitrom Team

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

<>

Re: Canvas drawn objects mouse events

2012-11-29 Thread Alfredo Quiroga-Villamil
We are just a couple of weeks from having GA by the way and some of the
things we are adding are just amazing. Take a look for instance at this
transform.

http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:transform_3_points

For the user of our API ... one line of code for that complicated
transform.  Behind the scenes ... a lot of stuff going on.

- All shapes are grouped.
- All shapes are draggable.

The level of sophistication you'll find it's simply amazing and we are just
finishing off 1.0 GA. The package is very light and has no dependencies.


On Thu, Nov 29, 2012 at 5:13 PM, Alfredo Quiroga-Villamil  wrote:

> I don't want to discourage you from trying your own implementation but you
> might want to take a look at Lienzo and see if it works for what you need.
> It's 100% built on GWT and lighting fast. It should do all the things you
> will need and likely more. It's released under Apache.
>
> Explorer:
>
> http://www.emitrom-lienzo.appspot.com/
>
> Download:
>
> http://www.emitrom.com/lienzo/download
>
> Best regards,
>
> Alfredo
>
>
> On Thu, Nov 29, 2012 at 1:29 PM, Matt Fair  wrote:
>
>> I have the following code:
>>
>> public void draw(Context2d context) {
>>
>> context.beginPath();
>> context.rect(x, y, width, height);
>> context.fill();
>> context.closePath();
>> context.stroke();
>>
>> }
>>
>> I would like to add a mouse event for when the mouse moves over the
>> rectangle.  What's the best way to do this?  I was able to do it if I in
>> the mouse move event for the canvas and with an if statement I checked to
>> see if the mouse moved within the coordinates of the rectangle.
>>
>> canvas.addMouseMoveHandler(new MouseMoveHandler() {
>>
>>   public void onMouseMove(MouseMoveEvent event) {
>>
>> mouseX = event.getRelativeX(canvas.getElement());
>> mouseY = event.getRelativeY(canvas.getElement());
>>
>> if(insideRectangle(mouseX, mouseY)) {
>>
>> // fire mouse event for rectangle
>>
>> }
>>
>>   }
>>
>> });
>>
>> However, I am worry about working with a bunch of objects and speed doing
>> it this way.  Is there a way to add a mouseMoveHandler directly to the
>> rectangle?
>>
>> Thanks,
>>
>> Matt
>>
>> --
>> 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/-/ZcJTa9KelVEJ.
>> 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.
>>
>
>
>
> --
> Alfredo Quiroga-Villamil
>
> AOL/Yahoo/Gmail/MSN IM:  lawwton
>
>
>


-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Canvas drawn objects mouse events

2012-11-29 Thread Alfredo Quiroga-Villamil
I don't want to discourage you from trying your own implementation but you
might want to take a look at Lienzo and see if it works for what you need.
It's 100% built on GWT and lighting fast. It should do all the things you
will need and likely more. It's released under Apache.

Explorer:

http://www.emitrom-lienzo.appspot.com/

Download:

http://www.emitrom.com/lienzo/download

Best regards,

Alfredo


On Thu, Nov 29, 2012 at 1:29 PM, Matt Fair  wrote:

> I have the following code:
>
> public void draw(Context2d context) {
>
> context.beginPath();
> context.rect(x, y, width, height);
> context.fill();
> context.closePath();
> context.stroke();
>
> }
>
> I would like to add a mouse event for when the mouse moves over the
> rectangle.  What's the best way to do this?  I was able to do it if I in
> the mouse move event for the canvas and with an if statement I checked to
> see if the mouse moved within the coordinates of the rectangle.
>
> canvas.addMouseMoveHandler(new MouseMoveHandler() {
>
>   public void onMouseMove(MouseMoveEvent event) {
>
> mouseX = event.getRelativeX(canvas.getElement());
> mouseY = event.getRelativeY(canvas.getElement());
>
> if(insideRectangle(mouseX, mouseY)) {
>
> // fire mouse event for rectangle
>
> }
>
>   }
>
> });
>
> However, I am worry about working with a bunch of objects and speed doing
> it this way.  Is there a way to add a mouseMoveHandler directly to the
> rectangle?
>
> Thanks,
>
> Matt
>
> --
> 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/-/ZcJTa9KelVEJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Meet GWT's new sexy cousin: Lienzo!

2012-11-11 Thread Alfredo Quiroga-Villamil
It's the weekend so I thought I would send out something fun.

We are continuing to make progress towards the beta release of Lienzo. This 
week animation, transforms and shear functionality went in.

Be sure to check out:

- Drag the rectangle around. All events for Mobile and Desktop are now in.

http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:mouse_event

- Want to be hypnotized?

http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:animation_frame

- Let's "*shear it*" for:

http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:simple_shear

- *Tween it, tween it!*

http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:tweener

Good weekend everyone.

On Wednesday, October 31, 2012 11:53:01 PM UTC-4, Alfredo Quiroga-Villamil 
wrote:
>
> *Meet GWT's new sexy cousin: Lienzo!*
>
> Today we are extremely happy to announce the alpha release of our latest 
> product, called Lienzo. Lienzo is a Structured Graphics Toolkit that 
> extends Canvas and is completely built from the ground up using GWT. This 
> is not a wrapper of any sort, it is a pure GWT implementation of Canvas. 
> Lienzo is released under the Apache 2 license and can be used in both open 
> source as well as commercial applications free of charge.
>
> For years we have been constrained to the functionality and specifications 
> provided by HTML elements. The time has come where you can finally let your 
> imagination go wild. Grab your digital brush, get a hold of your Canvas and 
> paint your Mona Lisa!  The limit is now really just your imagination. 
> Lienzo brings to your fingertips the full power and flexibility needed to 
> create the next generation of slick, previously unimaginable widgets, games 
> and animations needed to build your dream suite of development products.
>
> This alpha release features:
>
> - Lightning fast shape detection algorithm.
>
> - Supports for multiple Layers.
>
> - z-index reordering: moveUp, moveDown(), moveToTop(), moveToBottom()
>
> - Transforms, rotation, offset, scale for all Shapes.
>
> - Web and Mobile shape events support.
>
> - Support for shadows.
>
> - Support for linear and radial gradients as well as patterns.
>
> - Direct support for shape stroke and filling.
>
> - Support for shape colors and transparency.
>
> - List of implemented shapes:
>
> * Rectangle
> * Rounded Corner Rectangle
> * Lines
> * Dashed Lines
> * Support for Line Caps
> * Support for Line Joins
> * Arcs
> * Circle
> * Ellipse
> * Quadratic Curve
> * Polygons
> * Stars
> * BezierCurve
> * Parallelogram
> * Slice
> * RegularPolygon
>
> - Support for Groups and Groups of Groups.
>
> * Group as many shapes as you want and even Groups of Groups and treat 
> them as a single entity.
>
> - Direct Dragging Support for Web and Mobile.
>
> - Text support with Horizontal and Vertical Alignment.
>
> - Text measure support for both width and height.
>
> - Scaled Text
>
> - Image support based on URL and even ImageResource.
>
> - Image Dragging support.
>
> - Built-In Image Filters
>
> - Drag constraint (bounds, vertical and horizontal)
>
> - Video support
>
> - Built in JSON serialization for the entire viewport of elements.
>
> * Serialize your Lienzo View and persist it locally or over the wire via 
> JSON.
>
> There is a lot more coming in Lienzo. Just to name a few things: 
> animations, transformations, collision detection, and more!  Lienzo is 
> revolutionizing the way we write software in Java; it truly embraces Java's 
> "Write Once, Run Anywhere" motto. The same code can be run in a mobile, 
> web, or desktop environment. Say hello to a specification-bound API.
>
> The future for Java is now.  The future of Java is here, with Lienzo and 
> the undeniable power of canvas.
>
> An explorer with some examples and source code can be found at:
>
>
>- http://www.emitrom-lienzo.appspot.com/
>
> * *In most of the views all shapes are draggable!*
>
> Lienzo Forum:
>
>
>- http://www.emitrom.com/forum/lienzo
>
> Download Lienzo 0.1.0:
>
>
>- http://www.emitrom.com/lienzo/download
>
> Sincerely,
>
> The Emitrom Team
>
>

-- 
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/-/cE8lYeAgwtwJ.
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: Probably using ClientBundle wrong but can't figure out what is wrong?

2012-11-10 Thread Alfredo Quiroga-Villamil
Interesting, I was on my cell phone before, couldn't check to see but could
have sworn that it would take an Element. In any case, if it all fails I
guess try then:

ImageElement element = ImageElement.as(image.getElement());
element.setWidth(image.getWidth());
element.setHeight(image.getHeight());

Depending on how involved you need to get with canvas stuff, you might also
want to take a look at:

http://www.emitrom.com/announcements/lienzo/alpha

Regards,

Alfredo


On Sat, Nov 10, 2012 at 3:47 PM, markww  wrote:

> Hi,
>
> Context2d.drawImage() wants an ImageElement, but orange.getElement() only
> produces an Element instance. This is why in the example I had:
>
>  ImageElement.as(orange.**getElement());
>
> Thanks
>
>
> On Saturday, 10 November 2012 14:07:27 UTC-5, Alfredo Quiroga-Villamil
> wrote:
>
>> When you go to draw try passing orange.getElement()
>>
>> Sent from my iPhone
>>
>>
>> Hi,
>>
>> I'm trying to use ClientBundle with an image. My interface:
>>
>> public interface MyImages extends ClientBundle {
>> @Source("orange.png")
>> ImageResource orange();
>> }
>>
>> The image "orange.png" is in the same package as the above class.
>>
>> Now I try to use it:
>>
>> public void drawCanvas() {
>> MyImages resources = GWT.create(MyImages.class);
>> Image orange = new Image(resources.orange());
>> System.out.println("size: " + orange.getWidth() + ", " +
>> orange.getHeight(); // prints 500x500
>>
>> ImageElement ie = ImageElement.as(orange.**getElement());
>> System.out.println("size: " + ie.getWidth() + ", "
>> + ie.getHeight(); // prints 1x1
>>
>> canvasContext.drawImage(ie, 0, 0);
>> }
>>
>> The Image instance prints its width/height, correct at 500x500 pixels. I
>> try to convert it to an ImageElement so I can draw it to a canvas, it
>> prints its width as 1x1 pixels. Which is incorrect. So of course, nothing
>> gets drawn to the canvas.
>>
>> Am I using ClientBundle wrong? I have other methods for loading/drawing
>> the image which work fine. I just wanted to try this interface out,
>>
>> 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/-/**xAgxozt0YKkJ<https://groups.google.com/d/msg/google-web-toolkit/-/xAgxozt0YKkJ>
>> .
>> To post to this group, send email to google-we...@**googlegroups.com.
>>
>> To unsubscribe from this group, send email to google-web-toolkit+**
>> unsubscr...@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/**
>> group/google-web-toolkit?hl=en<http://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 view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/xn1JzkTnHvQJ.
>
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Probably using ClientBundle wrong but can't figure out what is wrong?

2012-11-10 Thread Alfredo Quiroga
When you go to draw try passing orange.getElement()

Sent from my iPhone

On Nov 10, 2012, at 2:03 PM, markww  wrote:

> Hi,
> 
> I'm trying to use ClientBundle with an image. My interface:
> 
> public interface MyImages extends ClientBundle {
> @Source("orange.png")
> ImageResource orange();
> }
> 
> The image "orange.png" is in the same package as the above class.
> 
> Now I try to use it:
> 
> public void drawCanvas() {
> MyImages resources = GWT.create(MyImages.class);
>   Image orange = new Image(resources.orange());
> System.out.println("size: " + orange.getWidth() + ", " + 
> orange.getHeight(); // prints 500x500
> 
> ImageElement ie = ImageElement.as(orange.getElement());
> System.out.println("size: " + ie.getWidth() + ", " + ie.getHeight(); 
> // prints 1x1
> 
> canvasContext.drawImage(ie, 0, 0);
> }
> 
> The Image instance prints its width/height, correct at 500x500 pixels. I try 
> to convert it to an ImageElement so I can draw it to a canvas, it prints its 
> width as 1x1 pixels. Which is incorrect. So of course, nothing gets drawn to 
> the canvas. 
> 
> Am I using ClientBundle wrong? I have other methods for loading/drawing the 
> image which work fine. I just wanted to try this interface out,
> 
> 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/-/xAgxozt0YKkJ.
> 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: GWT vs SmartGWT

2012-10-30 Thread Alfredo Quiroga-Villamil
I've seen in the past many comments and different opinions about
Vaadin, GXT, SmartGWT and "GWT-only" apps. I think the fundamental
thing to remember here is resources.

If you work for a company where you can afford to have the designer/s,
a CSS savy person/s and the time to build and enhance more than
anything pure GWT widgets then by all means go with the GWT only
approach. Do that also if you know the app is being built and will be
there to stay for a loog time.

However,  in many cases we all seem to think that those frameworks
only provide cosmetic things and they really don't. They actually
provide a whole lot more than just style. Not all "GWT-only" widgets,
but many actually need a lot of work in both how they look as well as
how they are used programmatically.

Not too long ago I set out to build a pure GWT app (one man app only
and being built by someone, me in this case that have been building
GWT for quite some time) and I was the one that almost jumped off the
building in this case. I found myself, styling things, some of the
widgets needed a lot of extra boiler plate (take Cell Table for
instance), just to do basic stuff that using some of the other
frameworks mentioned would just be one or a few lines of code.

So if you have to make a decision, think about one thing and one thing
only. Do you truly have the resources/time, both design and coding
wise to enhance the existing GWT widgets? The answer to that will
likely tell you what to use and it's likely the reason why those
companies are such "value-add" to the existing GWT code base.

As far as performance goes, unless you are building an App for
something extremely, and I emphasize extremely demanding, there is
little to none chance that using GXT, Vaadin or SmartGWT will have an
actual impact on your app.

Alfredo

On Mon, Oct 29, 2012 at 8:01 PM, Joseph Lust  wrote:
> Folks in my company were just asking me this the other day. If you want an
> app that looks like the GXT or SmartGWT showcase, and absolutely nothing
> more, then use them. But you'll have to bend to their paradigms and extend
> their frameworks if you want more than they do. Further, these frameworks
> are heavy weight, so doing just what you need in GWT will be much faster
> performance wise. This is why we stick with pure GWT on my team and why
> another dev team in our company wanted to jump off a cliff after building a
> 400 screen app in GXT.
>
>
> Sincerely,
> Joseph
>
> --
> 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/-/yKJ3UnRqsMMJ.
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: AnimationScheduler.requestAnimationFrame example

2012-10-26 Thread Alfredo Quiroga-Villamil
I should probably mention that should you have the need to stop the
animation, you might have to implement your own logic. A couple of
lines of code would suffice in this case, but still.

I haven't tested 2.5 GA nor looked at the release notes for it yet but
if I am not mistaken even 2.4 had an issue where the animation doesn't
stop with the cancel method I think it was.

So just keep that in mind.

Regards,

Alfredo

On Fri, Oct 26, 2012 at 12:36 PM, Alfredo Quiroga-Villamil
 wrote:
> Something along the lines of ... Notice the line under "Call it again."
>
> animation = AnimationScheduler.get().requestAnimationFrame(new
> AnimationCallback() {
> @Override
> public void execute(double timestamp) {
> // Do some stuff here
>
> // Call it again.
> 
> AnimationScheduler.get().requestAnimationFrame(this);
> }
> }
> });
>
> Regards,
>
> Alfredo
>
> On Fri, Oct 26, 2012 at 8:43 AM, Arun  wrote:
>>
>> Hi Everyone,
>>
>> I am beginning to learn WebGL development using GWT using gwtgl.
>> I am not able to get the requestAnimationFrame working to render my scene 
>> regularly.
>> Could someone please take a look at it and offer some advice?
>>
>> Code:
>>
>> Mygwtgl.java
>> public class Mygwtgl implements EntryPoint, 
>> AnimationScheduler.AnimationCallback {
>> ...
>> private Redraw redraw;
>> private void start() {
>> ...
>> redraw = new Redraw();
>> redraw.requestAnimationFrame(this);
>> }
>> public void execute(double timestamp) {
>> drawScene();
>> }
>> }
>>
>> Redraw.java
>> public class Redraw extends AnimationScheduler {
>> private AnimationScheduler.AnimationHandle hAnimScheduler;
>> public Redraw() {
>> hAnimScheduler = new AnimationScheduler.AnimationHandle() {
>> @Override
>> public void cancel() {
>> // TODO Auto-generated method stub
>> }
>> };
>> }
>> public AnimationScheduler.AnimationHandle 
>> requestAnimationFrame(AnimationScheduler.AnimationCallback cb, Element e) {
>>
>> // cb.execute() works here but only once, not getting 
>> scheduled regularly
>> //
>>
>> return hAnimScheduler;
>> }
>> }
>>
>> I do not have much programming experience with java and I am not sure 
>> whether this is the correct way to use requestAnimationFrame().
>> The callback doesn't seem to be scheduled,
>> I really appreciate any advice in this regard.
>>
>> -br
>> Arun
>>
>> --
>> 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/-/-y4hkIDt5BUJ.
>> 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.
>
>
>
>
> --
> Alfredo Quiroga-Villamil
>
> AOL/Yahoo/Gmail/MSN IM:  lawwton



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: AnimationScheduler.requestAnimationFrame example

2012-10-26 Thread Alfredo Quiroga-Villamil
Something along the lines of ... Notice the line under "Call it again."

animation = AnimationScheduler.get().requestAnimationFrame(new
AnimationCallback() {
@Override
public void execute(double timestamp) {
// Do some stuff here

// Call it again.

AnimationScheduler.get().requestAnimationFrame(this);
}
}
});

Regards,

Alfredo

On Fri, Oct 26, 2012 at 8:43 AM, Arun  wrote:
>
> Hi Everyone,
>
> I am beginning to learn WebGL development using GWT using gwtgl.
> I am not able to get the requestAnimationFrame working to render my scene 
> regularly.
> Could someone please take a look at it and offer some advice?
>
> Code:
>
> Mygwtgl.java
> public class Mygwtgl implements EntryPoint, 
> AnimationScheduler.AnimationCallback {
> ...
> private Redraw redraw;
> private void start() {
> ...
> redraw = new Redraw();
> redraw.requestAnimationFrame(this);
> }
> public void execute(double timestamp) {
> drawScene();
> }
> }
>
> Redraw.java
> public class Redraw extends AnimationScheduler {
> private AnimationScheduler.AnimationHandle hAnimScheduler;
> public Redraw() {
> hAnimScheduler = new AnimationScheduler.AnimationHandle() {
> @Override
> public void cancel() {
> // TODO Auto-generated method stub
> }
> };
> }
> public AnimationScheduler.AnimationHandle 
> requestAnimationFrame(AnimationScheduler.AnimationCallback cb, Element e) {
>
> // cb.execute() works here but only once, not getting 
> scheduled regularly
> //
>
> return hAnimScheduler;
> }
> }
>
> I do not have much programming experience with java and I am not sure whether 
> this is the correct way to use requestAnimationFrame().
> The callback doesn't seem to be scheduled,
> I really appreciate any advice in this regard.
>
> -br
> Arun
>
> --
> 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/-/-y4hkIDt5BUJ.
> 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.




--
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT & Mobile App in Same WAR File

2012-09-04 Thread Alfredo Quiroga-Villamil
Dont have a pc here to send links, but look for the gwt sample mobile app.
More specifically look for the MobileFactor.gwt.xml, that I think is the
file name if my memory serves me right.

You will essentially sprinkle some js code in your x.gwt.xml. The js will
setup some variables that you can then use in conjunction with defferred
binding to load the appropriate view/implementation. This all gets derived
from the user agent. In your case, since your mobile view will be jquery
based, you upon calling via defferred binding the right implementation can
inject the JS for your jquery mobile app programmatically.

Best regards,

Alfredo
On Sep 3, 2012 3:37 PM, "jduffy"  wrote:

>
> Hi All,
>
> We are developing a GWT application for desktop browsers that is deployed
> to a Tomcat 7 container as a WAR file.
> We are also developing a companion mobile application that is written in
> JavaScript and JQuery.
>
> We would now like to embed both applications into the same WAR file so
> that the appropriate version is served based on the user-agent property of
> the browser.
>
> For example, if a user hits 'ourapp.com' from a desktop browser, they
> should be served the GWT application and if they hit it from mobile Safari
> on an iPhone, they should get the JavaScript/JQuery application.
>
> Can anyone shed some light on how we might be able to accomplish this?
>
> We're fairly new to GWT and web programming so I apologize if the question
> is a bit vague or non GWT specific.
>
> Jim
>
>
>
>  --
> 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/-/-gZqRrc-EmkJ.
> 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: Best practices waiting for DOM parsing

2012-08-28 Thread Alfredo Quiroga-Villamil
Hi Joseph:

Not as familiar with SVG as I am with Canvas, but I am thinking that
you can likely (assuming I interpreted the documentation correctly)
hook into the SVG load event. Do investigate this, as I am not sure,
but below are a couple of sources. Take a look at SVGLoad, perhaps you
can use something like that instead of you doing the checking,
leverage if it's valid the callback that's native there.

http://www.w3.org/TR/SVG/interact.html

Then something like:

http://stackoverflow.com/questions/3883257/loading-svg-into-svgweb-dynamically-with-jquery

svg.addEventListener('SVGLoad', function() {
  svg = this; // this will correctly refer to your SVG root
  alert('loaded!');
}, false);
// also supported:
svg.onsvgload = function() {
  alert('loaded!');
}

Best regards,

Alfredo

On Tue, Aug 28, 2012 at 9:33 AM, Joseph Lust  wrote:
> I wanted to ask the community's opinion on the best practice for waiting for
> a DOM resource to become available.
>
> Use Case:
> You make an elaborate component via UiBinder or injecting some HTML/SVG into
> the DOM and upon executing the following statement trying to access an
> element that was injected, the DOM does not see it (i.e. inject 2MB of SVG)
> due to DOM parsing lag.
>
> Work Arounds:
>
> Schedule recurring timer to check if the element is available and then
> continue the program flow (now that the element's accessible in the DOM).
> OR Schedule a deferred timer and then continue (less robust, does not always
> work).
>
> So, curious what other folks have been using in this case where the GWT code
> must wait to wait for DOM parsing lag time. It seems to me like this is
> something there should be an official GWT function for doing as other
> frameworks do have functions to wait until an object becomes available in
> the DOM.
>
>
> Sincerely,
> Joseph
>
> --
> 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/-/JpBdhNvNWbIJ.
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: CellTable - Synchronization problem with AsyncDataProvider

2012-08-26 Thread Alfredo Quiroga-Villamil
I have a similar post. I was trying to do something as simple as when
I click on a refresh button to completely clear my provider and
display the freshly received entities from the server. I haven't had
time to go back and look at it, but I would also be interested in
getting a definitive idea as to what the right approach for reloading
a CellTable should be. I not only want to get say 1000 rows and change
what gets displayed by manipulating the visible range. I am talking
about completely clearing my provider and repopulating it with freshly
received objects. I would think a simple clear() and add() in the
provider would do, but it doesn't seem to be that simple. The provider
clears and adds the new list of objects but the display never updates
it. I tried a handful of things to force a resync of the display and
nothing.

I read a whole lot of stuff online and there seems to be many people
confused in this area. I started to dive in also and investigate in
the code, but never finished it. There are a handful of methods that
all look similar but do different things.

My post can be found at:
https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/Qbkgk03-cTs

Any help will be greatly appreciated.

Alfredo

On Sun, Aug 26, 2012 at 10:55 AM, Magnus  wrote:
> Hi Thomas,
>
> I tried to modify the reload method like this, but without success:
>
>  public void reload ()
>  {
>   pvd.updateRowCount (0,true); // avoid to many visible rows
>
>   Range r = tbl.getVisibleRange();
>   tbl.setVisibleRangeAndClearData (r,true);
>
>   loadRecordCount (); // asynchronously load the real record count
>  }
>
> Magnus
>
> --
> 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/-/fgp4CJThaXcJ.
>
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Spring and gwt (request factory)

2012-08-25 Thread Alfredo Quiroga-Villamil
This might not directly answer your question but it'll hopefully help.
You will find all the moving pieces you need there. In my DAO, I am
injecting via @Autowired some beans (not shown in the example).

Proxy:
===
@ProxyFor(value = Card.class, locator = CardLocator.class)
public interface CardProxy extends EntityProxy {
.
===

Entity:
===
@Table(name = "cards")
@Entity
public class Card {

public class CardLocator extends Locator{

@Override
public Card create(Class clazz) {
return new Card();
}

@Override
public Card find(Class clazz, Integer id) {
return ((CardDAO) BeanContextUtil.getBean(CardDAO.class)).find(id);
}
.
===

RequestContext:
===
@Service(value = CardDAO.class, locator = CardServiceLocator.class)
public interface CardRequestContext extends RequestContext {

===

DAO:
===
@Component
public class CardDAO {

===

Service Locator:
===
public class CardServiceLocator implements ServiceLocator {

@Override
public Object getInstance(Class clazz) {
return BeanContextUtil.getBean(CardDAO.class);
}

}
===

Bean Util:
===
public class BeanContextUtil {

public BeanContextUtil() {

}

public static Object getBean(Class clazz) {
HttpServletRequest request =
RequestFactoryServlet.getThreadLocalRequest();
ServletContext servletCtx = request.getSession().getServletContext();
ApplicationContext springCtx =
WebApplicationContextUtils.getWebApplicationContext(servletCtx);
return springCtx.getBean(clazz);
}

}
===

Best regards,

Alfredo

On Sat, Aug 25, 2012 at 10:35 AM, pierre leagault
 wrote:
> my service class is annoted with service and my dao with repository
>
> Le jeudi 23 août 2012 23:02:38 UTC+2, pierre leagault a écrit :
>>
>> hi
>>
>> i use spring and gwt (request factory).
>>
>> in my applicationContext, i use context component-scan but my bean is not
>> retrieved.
>>
>> i need to declare it manually.
>>
>> why component scan don't work?
>>
>>
>> my web.xml
>>
>> 
>> contextConfigLocation
>> /WEB-INF/applicationContext.xml
>> 
>>
>> 
>>
>> org.springframework.web.context.ContextLoaderListener
>> 
>>
>> 
>> requestFactoryServlet
>>
>> com.google.web.bindery.requestfactory.server.RequestFactoryServlet
>> 
>>
>> 
>> requestFactoryServlet
>> /gwtRequest
>> 
>>
>>
>> 
>> welcomeGWT.html
>> 
>>
>>
>> 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/-/xLI56yX5k3MJ.
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Spring and gwt (request factory)

2012-08-25 Thread Alfredo Quiroga-Villamil
In addition to declaring the base package where Spring will start to
search for your "Beans", you have to also annotate the class with
@Component.

Best regards,

Alfredo

On Thu, Aug 23, 2012 at 5:02 PM, pierre leagault
 wrote:
> hi
>
> i use spring and gwt (request factory).
>
> in my applicationContext, i use context component-scan but my bean is not 
> retrieved.
>
> i need to declare it manually.
>
> why component scan don't work?
>
>
> my web.xml
>
> 
> contextConfigLocation
> /WEB-INF/applicationContext.xml
> 
>
> 
> 
> org.springframework.web.context.ContextLoaderListener
> 
>
> 
> requestFactoryServlet
> 
> com.google.web.bindery.requestfactory.server.RequestFactoryServlet
> 
>
> 
> requestFactoryServlet
> /gwtRequest
> 
>
>
> 
> welcomeGWT.html
> 
>
>
> 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/-/4QrWjBivh5YJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: FlowPanel problem.

2012-08-24 Thread Alfredo Quiroga-Villamil
This should be of help:

https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels#LayoutPanels

"HorizontalPanel is a bit trickier. In some cases, you can simply
replace it with a DockLayoutPanel, but that requires that you specify
its childrens' widths explicitly. The most common alternative is to
use FlowPanel, and to use the float: left; CSS property on its
children. And of course, you can continue to use HorizontalPanel
itself, as long as you take the caveats above into account."

Best regards,

Alfredo



On Thu, Aug 23, 2012 at 11:16 AM, Antoine Lever
 wrote:
> I want to add a number of DecoratorPanels horizontally until there's no more 
> room and then move onto another row.  I'm therefore trying to use a 
> FlowPanel.  No matter what I do, the DecoratorPanels appear vertically and 
> not horizontally.  What am I doing wrong?  Please help!
>
> Thank you
>
> public void onModuleLoad() {
> FlowPanel fp = new FlowPanel();
>
> AbsolutePanel ap1 = new AbsolutePanel();
> AbsolutePanel ap2 = new AbsolutePanel();
> AbsolutePanel ap3 = new AbsolutePanel();
>
> DecoratorPanel dp1 = new DecoratorPanel();
> DecoratorPanel dp2 = new DecoratorPanel();
> DecoratorPanel dp3 = new DecoratorPanel();
>
> ap1.setSize("50px", "100px");
> ap2.setSize("50px", "100px");
> ap3.setSize("50px", "100px");
>
> dp1.add(ap1);
> dp2.add(ap2);
> dp3.add(ap3);
>
> fp.add(dp1);
> fp.add(dp2);
> fp.add(dp3);
>
> RootPanel.get().add(fp);
> }
>
> --
> 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/-/uYjm10JAoH8J.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: JSNI troubles (TypeError)

2012-08-22 Thread Alfredo Quiroga-Villamil
Decorate your JSNI with some "console.log(" statements. Open up in
your browser your Dev Tools (depends on the browser you are using),
look at the console and narrow down the issue there.

If you provide a simple concise example that allows the issue to be
easily duplicated, I'll be happy to take a look at it here as well.

Best regards,

Alfredo

On Wed, Aug 22, 2012 at 4:36 PM, dhoffer  wrote:
> I'm trying to write a little JNSI but am having trouble, I get an
> exception with this this message (TypeError): Object expected
>
> When I run this code:
>
> public static native void init(String id) /*-{
>
> var elem = $doc.getElementById(id);
> addEvent(elem, 'drop', droppedHandler);
> addEvent(elem, 'dragover', allowDrop);
>
> function allowDrop(event) {
> if (event.stopPropagation)event.stopPropagation();
> if (event.preventDefault)event.preventDefault();
> return false;
> }
>
> function droppedHandler(event) {
> if (event.preventDefault)event.preventDefault();
> return false;
> }
>
> var addEvent = (function () {
> if (document.addEventListener) {
> return function (el, type, fn) {
> if (el && el.nodeName || el === window) {
> el.addEventListener(type, fn, false);
> } else if (el && el.length) {
> for (var i = 0; i < el.length; i++) {
> addEvent(el[i], type, fn);
> }
> }
> };
> } else {
> return function (el, type, fn) {
> if (el && el.nodeName || el === window) {
> el.attachEvent('on' + type, function () {
> return fn.call(el, window.event);
> });
> } else if (el && el.length) {
> for (var i = 0; i < el.length; i++) {
> addEvent(el[i], type, fn);
> }
> }
> };
> }
> })();
> }-*/;
>
> Where in my extended RichTextArea I set a unique ID on its element
> via:
>
> private final String id = UUID.uuid();
> getElement().setId(id);
>
> I don't think the problem is in the body of the method...i think there
> is something wrong with getting a valid Element to the addEvent()
> method.  Also is there a way to debug this somehow so I can see what
> is really happening?
>
> Thanks,
> -Dave
>
> --
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: JSNI and method pointer

2012-08-16 Thread Alfredo Quiroga-Villamil
This might be useful:

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/animation/client/AnimationScheduler.html

Regards,

Alfredo

On Thu, Aug 16, 2012 at 1:36 PM, Harold Comere  wrote:
> Hi all,
>
> I have a small JSNI method calling a javascript method.
>
>>> public native void requestAnimFrame() /*-{
>>>
>>> window.requestAnimationFrame(  );
>>>
>>> }-*/;
>
>
> but window.requestAnimationFrame takes a function pointer for parameter as a
> callback.
> So i need to give as parameter of the JSNI method a pointer to my JAVA
> callback function.
>
> Basicaly, i want to do :
>
>> public native void requestAnimFrame( function pointer ?? func) /*-{
>> window.requestAnimationFrame( func );
>> }-*/;
>>
>> public void myCallback()
>> {
>> // do things.
>> }
>>
>> public void onModuleLoad()
>> {
>> requestAnimFrame(myCallback);
>> }
>
>
> Any way to do it ?
>
> Thanks for your attention !
>
>
> Regards,
> Harold
>
> --
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: OSGi Application nested submodule messaging

2012-08-06 Thread Alfredo Quiroga-Villamil
Assuming the amount of JS to export is not a lot, I also see exporting
JS and exposing it as a very viable alternative as Jen previously
pointed out.

Something else that comes to mind, a lot more involved I must admit is
to use a server-push approach. The header/footer module keeps an open
connection with the backend. The backend receives a notification that
something changed and pushes back to the UI where the header/footer
module makes the appropriate changes. This eliminates the need to
poll.

I think the exported JS exposed via JSNI it's the simplest and
probably one of the cleanest ways to get this done but wanted to throw
this other approach out there.

Best regards,

Alfredo

On Mon, Aug 6, 2012 at 12:37 PM, Joseph Lust  wrote:
> Thanks Jen's, I'll give the JSNI and postMessage() methods a try.
>
>
> Sincerely,
> Joseph
>
> --
> 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/-/4tNAb73e9P8J.
>
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



CellTable - ListDataProvider - Table not updating on subsequent calls

2012-08-04 Thread Alfredo Quiroga-Villamil
I am still investigating here on my side, but I have a feeling I might
be missing the obvious so if someone knows what I am missing or
potentially doing wrong please let me know.

Elements:

- A CellTable
- A ListDataProvider
- RequestFactory
- A "refresh" button

Scenario:

- The CellTable is populated via RequestFactory.
- On the first load, all data is shown in the table (all rows are populated)
- I have a button (refresh).
- The Table can be edited, so as an example I edit the first row,
first cell and simply change the text to something else.
- I click on the refresh button and load a brand new list of proxies
from the server using request factory.
- I clear my provider's list and add the new proxies.
- The new list doesn't replace the old values (previously edited).

Curiosity:

I've noticed that after I click refresh, although at first glance the
edited cell didn't change, if I click on it once or twice, it'll
correctly display the last value loaded from the server. This is very
unusual behavior. I've also tried to invoke refresh and flush on the
provider itself after adding the new set of proxies.

Presenter's code that is invoked for the first load and subsequent
ones is shown below:

@Override
public void readAll() {

destinationContext = 
factory.getRequestFactory().createDestinationContext();
destinationContext.findAll().with("cards", "cards.trunks",
"daysOfWeek", "daysOfWeek.hourlySchedule", "holidays")
.fire(new Receiver>() {

@Override
public void 
onSuccess(List proxies) {


view.getDestinationCellTable().getProvider().getList().clear();

view.getDestinationCellTable().getProvider().getList().addAll(proxies);

if (proxies != null && 
proxies.size() > 0) {

view.getDestinationCellTable().getCellTable().getSelectionModel().setSelected(proxies.get(0),
true);
}

}

});

}

I am still investigating here, but as I previously said if you see
that I am simply missing the obvious I would appreciate it if you can
let me know.

Thank you in advance,

Alfredo

-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Random-seeming "Uncaught exception escaped" with no reference to my code

2012-08-04 Thread Alfredo Quiroga-Villamil
Chrome has been known to randomly throw those exceptions. That is
assuming you are running chrome. See:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5778#c65,
it might be related to the issue you are experiencing.

Best regards,

Alfredo

On Sat, Aug 4, 2012 at 4:41 AM, Richard  wrote:
> Every so often, while running in Dev Mode, I'll get this exception (or
> something like it). Is this some under the hood local-only issue I don't
> need to worry about, or does it hint as something I should fix?  Is there
> anything I can do about it?
>
> Uncaught exception escaped
> com.google.gwt.dev.shell.HostedModeException: Something other than an int
> was returned from JSNI method
> '@com.google.gwt.query.client.js.JsCache::length()': JS value of type
> boolean, expected int
> at
> com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266)
> at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144)
> at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt(ModuleSpace.java:247)
> at
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:75)
> at com.google.gwt.query.client.js.JsCache$.length$(JsCache.java)
> at
> com.google.gwt.query.client.js.JsObjectArray$.length$(JsObjectArray.java:52)
> at
> com.google.gwt.query.client.plugins.events.EventsListener.dispatchEvent(EventsListener.java:372)
> at
> com.google.gwt.query.client.plugins.events.EventsListener.onBrowserEvent(EventsListener.java:435)
> at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1351)
> at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1307)
> at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
> at
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
> at
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
> at
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
> at
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
> at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
> at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
> at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
> at
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
> at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
> at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
> at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
> at
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
> at
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
> at
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
> at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
> at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
> at java.lang.Thread.run(Thread.java:662)
>
> --
> 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/-/Af7k-0f7aU4J.
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Need list of companies who integrated GWT with their own softwares

2012-07-31 Thread Alfredo Quiroga-Villamil
http://www.emitrom.com/

All products there use GWT.

Regards,

Alfredo

On Tue, Jul 31, 2012 at 10:43 AM, Venkat  wrote:
> Hi, can anybody provide me with the list of companies who has implemented
> GWT with their own apis. Like Vaadin, Sencha, Smart GWT (Isomorphic). Do you
> know any other.
>
> 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/-/kYNH2Nxq8wIJ.
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: SimplePager within FlowPanel

2012-07-28 Thread Alfredo Quiroga-Villamil
A few ways I am sure to accomplish this. One possible way that might
work for you it's to perhaps employ:

LayoutPanel lp = new LayoutPanel();

ListBox list = new ListBox();
list.addItem("Foo");

SimplePager sp = new SimplePager();

lp.add(list);
lp.add(sp);
lp.setWidgetLeftWidth(list, 0, Unit.PCT, 20, Unit.PCT);
lp.setWidgetRightWidth(sp, 0, Unit.PCT, 80, Unit.PCT);

RootLayoutPanel.get().add(lp);

A different approach can be using a HorizontalPanel.

Best regards,

Alfredo

On Sat, Jul 28, 2012 at 8:31 PM, Magnus  wrote:
> Hi,
>
> I have a FlowPanel with two elements: a ListBox and a SimplePager, and I add
> them in this order.
>
> The SimplePager is always below the ListBox, even if there is enough space
> right beside the ListBox. I want the elements to line up in a row, i. e.
> that the SimplePager is displayed right beside the ListBox.
>
> I have not done something special, just a FlowPanel with two chids.
>
> What could be wrong?
>
> Thanks
> Magnus
>
> --
> 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/-/leyiI4nFi7UJ.
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Draw graphs using GWT

2012-06-19 Thread Alfredo Quiroga-Villamil
My apologies, I sent the wrong link before :(

http://www.emitrom-test.appspot.com/

Regards,

Alfredo

On Tue, Jun 19, 2012 at 12:02 PM, Alfredo Quiroga-Villamil
 wrote:
> This might help you. Soon to be released in alpha. See: emitrom-test.com
>
> Regards,
>
> Alfredo
>
> On Jun 19, 2012 8:36 AM, "router router"  wrote:
>>
>> Hello,
>>
>>   My objective is to draw graph that present the production servers of an
>> IT company. The UI should be something like:
>>
>>
>>        ___ __                      _
>>       l  ServerA   l                     l  ServerB  l
>>       l                l   -->  l                l
>>       l                l                     l                l
>>       l___ _ l                     l_l
>>
>>   The company where I work has imposed GWT as a tool to implement the
>> client side. Could you please suggest something like JGraph that I could
>> apply in the client side using GWT.
>>
>> Regards.
>>
>>
>>
>> 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/-/B0zVEbUt1e4J.
>> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Draw graphs using GWT

2012-06-19 Thread Alfredo Quiroga-Villamil
This might help you. Soon to be released in alpha. See: emitrom-test.com

Regards,

Alfredo
On Jun 19, 2012 8:36 AM, "router router"  wrote:

> Hello,
>
>   My objective is to draw graph that present the production servers of an
> IT company. The UI should be something like:
>
>
>___ __  _
>   l  ServerA   l l  ServerB  l
>   ll   -->  ll
>   ll ll
>   l___ _ l l_l
>
>   The company where I work has imposed GWT as a tool to implement the
> client side. Could you please suggest something like JGraph that I could
> apply in the client side using GWT.
>
> Regards.
>
>
>
> 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/-/B0zVEbUt1e4J.
> 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: CellTable - Editor Framework - Object deep hierarchy (objects of objects)

2012-06-14 Thread Alfredo Quiroga-Villamil
Makes sense, thanks again for the help.

Alfredo

On Thu, Jun 14, 2012 at 1:49 PM, Thomas Broyer  wrote:
> Basically when the editors fit nicely in the edit/flush flow.
> This is not the case with CellTwble which notifies you whenever a property 
> changes, vs. waiting for you to flush the changes in batch. This can be 
> worked around quite easily by queueing the changes as in the Showcase, but 
> when you *only* have CellTables it's probably not worth the trouble.
>
> --
> 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/-/KqkRkx_CxHEJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: CellTable - Editor Framework - Object deep hierarchy (objects of objects)

2012-06-14 Thread Alfredo Quiroga-Villamil
Really appreciate the response and help.

This is definitely saving me a lot of time and confirms my previous
suspicions. It really felt like my idea was "forcing it to happen". It
wasn't flowing and that is usually a good indication for me to
hesitate and re-think the approach or look for guidance as I did in
this case.

"I'm really not sure the Editor framework is the best fit here"

This is the second time I think I see that statement, specifically
related to CellTable and Editors. I know this might be kind of a hard
question to answer, but here it goes. When should the Editor framework
be considered a good fit? In other words, what criteria can be used or
what do you recommend to more or less have an idea that the Editor
framework might be a good fit?

Thanks again for the help.

On Thu, Jun 14, 2012 at 12:13 PM, Thomas Broyer  wrote:
>
>
> On Thursday, June 14, 2012 5:45:01 PM UTC+2, Alfredo Quiroga-Villamil wrote:
>>
>> I would be interested in any advice/approaches I can get at this point
>> regarding the usage of CellTable in conjunction (if possible) with the
>> Editor Framework. More details below.
>>
>> 
>> Hierarchy
>> 
>>
>> - Suppose you have a Set of Objects of type A.
>>
>> - A contains a Set of objects of Type B.
>>
>> - B contains a Set of objects of Type C.
>>
>> Say you now wanted to represent the previously described relation via
>> Grids (CellTable).
>>
>> 
>> View
>> 
>>
>> - A Table in a center panel showing an editable list of objects A.
>
>
> I'm really not sure the Editor framework is the best fit here.
> To begin with, it doesn't play well with CellTable unless you're spending
> some time building a "queue of changes" (as
> in http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler with
> an explicit "commit", which corresponds to the editor's flush())
>
>>
>> - An East Panel with two regions (North/South). Where the North Region
>> shows the list of editable B object. The South region shows the list
>> of editable C objects.
>
>
> If all you have are editable lists of objects, you'd probably better manage
> them "by hand", and directly editing the objects, rather than with the
> Editor framework and its edit/flush flow.
>
> --
> 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/-/V7KIzUeTP34J.
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



CellTable - Editor Framework - Object deep hierarchy (objects of objects)

2012-06-14 Thread Alfredo Quiroga-Villamil
I would be interested in any advice/approaches I can get at this point
regarding the usage of CellTable in conjunction (if possible) with the
Editor Framework. More details below.


Hierarchy


- Suppose you have a Set of Objects of type A.

- A contains a Set of objects of Type B.

- B contains a Set of objects of Type C.

Say you now wanted to represent the previously described relation via
Grids (CellTable).


View


- A Table in a center panel showing an editable list of objects A.

- An East Panel with two regions (North/South). Where the North Region
shows the list of editable B object. The South region shows the list
of editable C objects.

The workflow for this would be something along these lines:

- Once the list of A objects is loaded into the CellTable, the
associated sub-editors should be all linked together. In other words,
something that comes to mind would be upon loading the list of A
objects, select the first row in the CellTable. Upon selection, all
sub-editors (List B and it's sub-editor C) would then be populated
(edit) in the UI. The first row of sub-editor B would also need to be
selected to trigger population of the C List.

- Since the A Editor along with it's subeditors can all perform
add/remove operations, the entire workflow would need to be kept in
sync for edit/flush operations.

=
Driver:
=

RequestFactory

I have some ideas on how to accomplish this, but would really
appreciate some feedback since I am not 100% sure on how to best go
about it.

Thanks in advance for any help.

Alfredo

-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Should I use HTML5 canvas just to create my own slideshow reader ?

2012-06-11 Thread Alfredo Quiroga-Villamil
We are not 100% ready yet, still adding a few more things and
improving some areas but this is coming soon to theaters and of course
using GWT:

Canvas4j

See a sneak peek at:

http://emitrom-test.appspot.com/

Some of the things you'll be able to do:

a) Drag
b) Events
c) Set all kinds of stuff to the shapes, including animations,
opacity, color, you name it.
d) Shape editing capabilities.
e) We are trying to see if we can get into the first release bounding
boxes and a few other goodies for basic shapes.
f) Out of the box areas and perimeters for shapes.
g) It's obviously all canvas so you won't be limited to the basic set
of shapes we'll give you. You can create your own while still being
able to animate, drag, etc...

A lot of the shapes in the demo are draggable. Do one click on the
orange, yellowish rectangle and you'll see a quick animation in
action.

More to come soon.

Alfredo

On Mon, Jun 11, 2012 at 11:34 AM, Jens  wrote:
> +1 for CSS 3 transitions. Should be easy to implement and browsers that do
> not support transitions simply switch instant between slides. Small
> downside: You kick out animations in IE9 (it supports canvas but not
> transitions).
>
> Transition browser support: http://caniuse.com/#search=transition
> Transition overview: http://css3.bradshawenterprises.com/
>
> A fallback solution for IE could be GWT's Animation class where you could
> implement your transition "by hand".
>
> GWT Animation examples:
> http://fascynacja.wordpress.com/2010/07/01/gwt-animation-small-review/
> http://www.giantflyingsaucer.com/blog/?p=1548
>
> As already mentioned the main advantage of using transitions/GWT animations
> is that your slides can be HTML and thus can contain clickable links, or
> even animations inside a slide.
>
> -- J.
>
>
> Am Freitag, 8. Juni 2012 06:29:00 UTC+2 schrieb regnoult axel:
>>
>> Hello,
>>
>> I am trying to develop my own slideshow reader (you just see the albums
>> fotos in the full screen mode and slide them).
>> I started using HTML5 canvas but just because it was more "modern" but IE8
>> does not support HTML5 canvas. So my question is :  "Should I use HTML5
>> canvas to do my slideshow (I will need a caroussel and animation between
>> images) ?" Could you argue your answer (because maybe HTML5 canvas are more
>> interesting to do more complicated things) ?
>>
>> Thanks you,
>
> --
> 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/-/CY4RZHEbrCAJ.
>
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Touch4j 2.0 Official GA Release

2012-05-10 Thread Alfredo Quiroga-Villamil
I believe we've already responded to your question in the forum.

See http://www.emitrom.com/node/211

Please post the questions there and one of us or a member of the
community will get back to you.

Regards,

Alfredo

On Tue, May 8, 2012 at 12:36 PM, marshall musyimi
 wrote:
> Hey I have just started using touch4j and I want to use it to package it
> natively mostly for android and iOS... could you link me up to a good guide
> for doing that. Thank you.
>
> --
> 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/-/eSZwcG8icswJ.
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Server detection of client crash

2012-05-07 Thread Alfredo Quiroga-Villamil
Michael:

As Chris pointed out the documentation is actually quite good and for
the requirements you have I think this is as good as it gets.

By the way, I have no affiliation to RedHat or the errai project. I
just happen to know their Product Manager and had a chance to speak to
them about it as well as see a demo given to us by the errai Dev lead.
Since then, we've tried a few things here with the project and it
offers a few things that would be nice for sure to have at some point
in GWT itself.

>From their lead Dev, see below:

=
"Here are some videos demonstrating Errai's performance: The first one
shows you the actual load on the Java server process (< 2% CPU
broadcasting messages). The second one shows a sustained rate of 1000
messages per second with simple object marshaling. Both of these are
running in production mode. Not devmode."

http://www.youtube.com/watch?v=ovnclosdzLI&feature=relmfu

http://www.youtube.com/watch?v=K5_U2ziucr8
=

Let us know how it goes.

Best regards,

Alfredo

On Mon, May 7, 2012 at 8:40 AM, chris  wrote:
> Check out  http://www.jboss.org/errai (hope I'm not stating the obvious, as
> it's pretty easy to locate!)
>
> Errai in less than 3 minutes is just a click away.
>
> It's gwt integration is very straight forward.
>
> I've not done your specific use case, but I could imagine clients
> registering themselves with the server with a unique message subject, and
> the server pinging the individual clients, checking they were still
> operating.
>
>
> On Sunday, 6 May 2012 13:58:54 UTC+10, mmorckos wrote:
>>
>> Hi Alfredo,
>>
>> Thanks for the reply, and no worriea about the delay. Actually, I
>> experimented with a couple of comet packages such as gwt-comet and gwt-
>> websocket, they appeared to be buggy and not quite matching my needs.
>> I certainly have no time to come up with my own mechanism so I guess
>> I'll give Errai a try.
>>
>> I'm wondering if you can point me to to quick start demos and
>> tutorials. I hope it has support for eclipse.
>>
>>  Regards,
>> Michael
>>
>> On May 3, 9:28 pm, Alfredo Quiroga-Villamil  wrote:
>> > Hi Michael:
>> >
>> > I apologize for the delayed response.
>> >
>> > If you use GWT and say GWT-RPC for example, this will all be handled
>> > for you. Since each client will get its own session.
>> >
>> > The real challenge is going to be if my memory serves me right
>> > according to your initial requirements knowing when your client
>> > stopped working for whatever reason, be it that something went south
>> > or as you previously mentioned the user simply closed the browser.
>> > This is part of the reason why I recommended errai so you would have a
>> > nice easy-to-use server push implementation. There are others or you
>> > can have your own and rely on Jetty continuations for instance.
>> >
>> > Again, sorry for the delayed response, had a few emails piled up and
>> > missed this one.
>> >
>> > Alfredo
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Tue, May 1, 2012 at 10:54 PM,mmorckos wrote:
>> > > Thanks for the prompt reply. I've been experimenting with gwt for a
>> > > little while and due to time constrains I'd rather not try
>> > > other tools, but thanks for the suggestion.
>> >
>> > > I have another question (excuse my little experience with web
>> > > application), I'd like to know how the a Servlet on the server-side
>> > > can efficiently keep track of all connected clients since in my
>> > > application, for each connected client the Servlet will instantiate a
>> > > regular Java object with its own state for each client. Basically each
>> > > client will interact with its own object through the Servlet.
>> >
>> > > I know this is a bit of an overhead, but as I mentioned before I'm
>> > > building a web-tier for a back-end platform that's not web oriented.
>> >
>> > >  Regards,
>> > > Michael
>> >
>> > > On Apr 27, 4:59 pm, Alfredo Quiroga-Villamil 
>> > > wrote:
>> > >> Thanks. I think Joseph said it before and I agree with him. If it's
>> > >> something of that nature, I would likely try to stay from web stuff.
>> > >> However, that doesn't mean is not possible or there are no ways t

Re: Server detection of client crash

2012-05-03 Thread Alfredo Quiroga-Villamil
Hi Michael:

I apologize for the delayed response.

If you use GWT and say GWT-RPC for example, this will all be handled
for you. Since each client will get its own session.

The real challenge is going to be if my memory serves me right
according to your initial requirements knowing when your client
stopped working for whatever reason, be it that something went south
or as you previously mentioned the user simply closed the browser.
This is part of the reason why I recommended errai so you would have a
nice easy-to-use server push implementation. There are others or you
can have your own and rely on Jetty continuations for instance.

Again, sorry for the delayed response, had a few emails piled up and
missed this one.

Alfredo

On Tue, May 1, 2012 at 10:54 PM, mmorckos  wrote:
> Thanks for the prompt reply. I've been experimenting with gwt for a
> little while and due to time constrains I'd rather not try
> other tools, but thanks for the suggestion.
>
> I have another question (excuse my little experience with web
> application), I'd like to know how the a Servlet on the server-side
> can efficiently keep track of all connected clients since in my
> application, for each connected client the Servlet will instantiate a
> regular Java object with its own state for each client. Basically each
> client will interact with its own object through the Servlet.
>
> I know this is a bit of an overhead, but as I mentioned before I'm
> building a web-tier for a back-end platform that's not web oriented.
>
>  Regards,
> Michael
>
> On Apr 27, 4:59 pm, Alfredo Quiroga-Villamil 
> wrote:
>> Thanks. I think Joseph said it before and I agree with him. If it's
>> something of that nature, I would likely try to stay from web stuff.
>> However, that doesn't mean is not possible or there are no ways to
>> ensure what you want.
>>
>> I recently had the chance to speak with a few guys at RedHat about a
>> project they have been working on based on GWT. I've been meaning to
>> let people know about it because I was really impressed by a couple of
>> things I saw. One of them can truly help you and make your requirement
>> easier or a lot easier to implement.
>>
>> http://www.jboss.org/errai
>>
>> A few things:
>>
>> a) You don't need jboss to use it.
>> b) Take special attention to CDI (crazy cool and useful).
>> c) They've done something really interesting where you truly have a
>> transparent web/server application, blurring completely the lines
>> between server and UI. Via an annotation you have Server Push. Their
>> Dependency Injection I thought was also nicer than GIN for the UI.
>> Although I use GIN and love it!
>>
>> So what you could do, assuming that you truly want to keep this web
>> based is to have the server contacting the UI every x amount of
>> seconds. If no response is received from the UI, then you know that
>> something is not right. That would be better I think than polling the
>> server.
>>
>> Again, this could be done without errai, but take a look at it if you
>> get a chance.
>>
>> Best regards,
>>
>> Alfredo
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Apr 27, 2012 at 4:44 PM, mmorckos  wrote:
>> > What I meant by "crash" is that the client doesn't "cleanly". For
>> > instance, the user can simply close the web-page, or the client's
>> > machine can lose connection to the server. I'm asking if there is a
>> > way that the server can detect that instantly (some sort of a
>> > heartbeat ping between the client and the server, unlike a session
>> > timeout).
>>
>> > On Apr 27, 10:47 am, Alfredo Quiroga-Villamil 
>> > wrote:
>> >> Can you please define or explain what you mean by "whenever a client 
>> >> crashes"?
>>
>> >> Thank you in advance,
>>
>> >> Alfredo
>>
>> >> On Fri, Apr 27, 2012 at 1:49 AM,mmorckos wrote:
>> >> > Hello,
>>
>> >> > I'm intending to develop a web-based frontend UI for a control system
>> >> > in a research lab. For safety purposes, it's vital that when a client
>> >> > crashes, the server is notified immediately and dispatches a stop
>> >> > signal to all connected machinery.
>>
>> >> > I'm new to gwt and would like to know if there is a way to know
>> >> > whenever a client crashes on the server side, specifically inside a
>> >> > "RemoteServiceServlet".
>&g

Re: GWT Mobile App Widgets

2012-04-30 Thread Alfredo Quiroga-Villamil
Yes, if you are trying to cover that case, then you must absolutely
find a mobile library that can potentially support any of the
installable browsers in mobile devices. The important case to always
keep in mind I would say is over engineering. Unless it's a
requirement from the client, I would ask myself the question, what
percentage of the market am I trying to support? Ideally the answer
would be 100%, reality it's a different story. This is more the case
since mobile web is fairly young. Even the web after all these years
would be a nightmare if you removed GWT and libraries like it that
have tried to make the developer experience better by hiding the
browser differences or better said quirks.

About a year and a half ago, perhaps more already, there was a point
where the future of mobile web for developers looked bright. It was
all going to be based on webkit or at least most of it and the world
was going to be a happy place.

Fast forward and we find a world where there is an incredible amount
of fragmentation in the mobile market place with multiple versions of
webkit, many don't exactly behaving consistently. Throw into the mix
your request and it's almost starting to feel like we are right back
to the web as we know it today where may browsers exists with
difference in behavior not only between them but even among versions.

Best of luck and wish your project the best.

Alfredo

On Mon, Apr 30, 2012 at 2:01 PM, AgitoM  wrote:
> Well the app runs fine on iPhone Safari, Google Chrome, and the
> Android Default Browser.
> However the app does not work on Firefox and Opera installations on
> the Android platform, so that could be a problem.
> So still hope someone can make a suggestion.
>
> On Apr 30, 10:53 pm, Alfredo Quiroga-Villamil 
> wrote:
>> Mobile web libraries are based on webkit. Firefox is not. Mobile devices
>> use webkit. To test the app you can try to use a webkit based browser such
>> as chrome or safari. So if you are happy with that library I recommend you
>> continue using it and test it as previously mentioned.
>>
>> Regards,
>>
>> Alfredo
>> On Apr 30, 2012 10:35 AM, "AgitoM"  wrote:
>>
>>
>>
>>
>>
>>
>>
>> > Does anyone know a decent library that contains GWT Widgets for the
>> > development of Mobile Apps in GWT?
>>
>> > Over the past few days I've been experimenting with gwt-mobile-gui.
>> > Though this library is great, it doesn't appear to be working on all
>> > browsers. (or at least I can't get it to work on Firefox).
>>
>> > So basically I am looking into other Libraries. Does anyone have any
>> > suggestions?
>>
>> > Reason I am looking for a mobile widget library is because I am
>> > developing a mobile app. I developed a framework for a mobile app
>> > myself, and it works fine, but it looks too ugly.
>> > If no other library is available, does anyone know any tutorial of
>> > guide to how to develop nice looking GUI in GWT?
>>
>> > Hope anyone can offer some advice.
>>
>> > --
>> > 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Mobile App Widgets

2012-04-30 Thread Alfredo Quiroga-Villamil
Mobile web libraries are based on webkit. Firefox is not. Mobile devices
use webkit. To test the app you can try to use a webkit based browser such
as chrome or safari. So if you are happy with that library I recommend you
continue using it and test it as previously mentioned.

Regards,

Alfredo
On Apr 30, 2012 10:35 AM, "AgitoM"  wrote:

> Does anyone know a decent library that contains GWT Widgets for the
> development of Mobile Apps in GWT?
>
> Over the past few days I've been experimenting with gwt-mobile-gui.
> Though this library is great, it doesn't appear to be working on all
> browsers. (or at least I can't get it to work on Firefox).
>
> So basically I am looking into other Libraries. Does anyone have any
> suggestions?
>
> Reason I am looking for a mobile widget library is because I am
> developing a mobile app. I developed a framework for a mobile app
> myself, and it works fine, but it looks too ugly.
> If no other library is available, does anyone know any tutorial of
> guide to how to develop nice looking GUI in GWT?
>
> Hope anyone can offer some advice.
>
> --
> 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: Please help with CellTable

2012-04-27 Thread Alfredo Quiroga-Villamil
Also part of 4 is SingleSelectionModel. So you can either use Single
or Multiple as the SelectionModel depending on what you need.

Regards,

Alfredo

On Fri, Apr 27, 2012 at 9:36 PM, Alfredo Quiroga-Villamil
 wrote:
> Hi Blake:
>
> I will try to take a look later at 1 and 2, they are CSS controlled.
>
> For now:
>
> 4. See below for an example:
>
>        MultiSelectionModel multiSelectionModel = new
> MultiSelectionModel();
>        CellTable cellTable = new CellTable();
>        cellTable.setSelectionModel(multiSelectionModel);
>
> 3. Handler for the selection model below:
>
>        // Handler
>        cellTable.getSelectionModel().addSelectionChangeHandler(new
> SelectionChangeEvent.Handler() {
>            @Override
>            public void onSelectionChange(SelectionChangeEvent event) {
>                Set selected = ((MultiSelectionModel)
> cellTable.getSelectionModel()).getSelectedSet();
>                if (selected != null) {
>
>                }
>
>            }
>        });
>
> Hope it helps.
>
> Regards,
>
> Alfredo
>
> On Fri, Apr 27, 2012 at 5:27 PM, Blake McBride  wrote:
>> Greetings,
>>
>> I need a sort of listbox where each row is made up of several columns.  I
>> don't want to edit the data in the listbox.  I just want to select one or
>> more rows, click a button, and be able to know which rows were selected.
>>  Looking around it seems like CellTable is close.  I put it together as
>> described in the various examples.  It works as described but not how I
>> want.  Specifically:
>>
>> 1.  I would rather each row not be shown alternately light blue and white
>> background.  I want the rows all displayed with a white background.
>>
>>
>> 2.  While I can select individual row (they get highlighted in yellow), it
>> also places a border around the column within the selected row.  I am not
>> editing the column within the row.  I just want to select the row, not the
>> column within the row.  How can I configure it to just highlight the
>> selected row and not add any borders?
>>
>>
>> 3.  When a row is selected, how can I tell which one is selected
>> programmatically?
>>
>>
>> 4.  How can I control single / multiple row selection?
>>
>> Thanks for the help!
>>
>> Blake McBride
>>
>> --
>> 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.
>
>
>
> --
> Alfredo Quiroga-Villamil
>
> AOL/Yahoo/Gmail/MSN IM:  lawwton



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Please help with CellTable

2012-04-27 Thread Alfredo Quiroga-Villamil
Hi Blake:

I will try to take a look later at 1 and 2, they are CSS controlled.

For now:

4. See below for an example:

MultiSelectionModel multiSelectionModel = new
MultiSelectionModel();
CellTable cellTable = new CellTable();
cellTable.setSelectionModel(multiSelectionModel);

3. Handler for the selection model below:

// Handler
cellTable.getSelectionModel().addSelectionChangeHandler(new
SelectionChangeEvent.Handler() {
@Override
public void onSelectionChange(SelectionChangeEvent event) {
Set selected = ((MultiSelectionModel)
cellTable.getSelectionModel()).getSelectedSet();
if (selected != null) {

}

}
});

Hope it helps.

Regards,

Alfredo

On Fri, Apr 27, 2012 at 5:27 PM, Blake McBride  wrote:
> Greetings,
>
> I need a sort of listbox where each row is made up of several columns.  I
> don't want to edit the data in the listbox.  I just want to select one or
> more rows, click a button, and be able to know which rows were selected.
>  Looking around it seems like CellTable is close.  I put it together as
> described in the various examples.  It works as described but not how I
> want.  Specifically:
>
> 1.  I would rather each row not be shown alternately light blue and white
> background.  I want the rows all displayed with a white background.
>
>
> 2.  While I can select individual row (they get highlighted in yellow), it
> also places a border around the column within the selected row.  I am not
> editing the column within the row.  I just want to select the row, not the
> column within the row.  How can I configure it to just highlight the
> selected row and not add any borders?
>
>
> 3.  When a row is selected, how can I tell which one is selected
> programmatically?
>
>
> 4.  How can I control single / multiple row selection?
>
> Thanks for the help!
>
> Blake McBride
>
> --
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Server detection of client crash

2012-04-27 Thread Alfredo Quiroga-Villamil
Thanks. I think Joseph said it before and I agree with him. If it's
something of that nature, I would likely try to stay from web stuff.
However, that doesn't mean is not possible or there are no ways to
ensure what you want.

I recently had the chance to speak with a few guys at RedHat about a
project they have been working on based on GWT. I've been meaning to
let people know about it because I was really impressed by a couple of
things I saw. One of them can truly help you and make your requirement
easier or a lot easier to implement.

http://www.jboss.org/errai

A few things:

a) You don't need jboss to use it.
b) Take special attention to CDI (crazy cool and useful).
c) They've done something really interesting where you truly have a
transparent web/server application, blurring completely the lines
between server and UI. Via an annotation you have Server Push. Their
Dependency Injection I thought was also nicer than GIN for the UI.
Although I use GIN and love it!

So what you could do, assuming that you truly want to keep this web
based is to have the server contacting the UI every x amount of
seconds. If no response is received from the UI, then you know that
something is not right. That would be better I think than polling the
server.

Again, this could be done without errai, but take a look at it if you
get a chance.

Best regards,

Alfredo

On Fri, Apr 27, 2012 at 4:44 PM, mmorckos  wrote:
> What I meant by "crash" is that the client doesn't "cleanly". For
> instance, the user can simply close the web-page, or the client's
> machine can lose connection to the server. I'm asking if there is a
> way that the server can detect that instantly (some sort of a
> heartbeat ping between the client and the server, unlike a session
> timeout).
>
> On Apr 27, 10:47 am, Alfredo Quiroga-Villamil 
> wrote:
>> Can you please define or explain what you mean by "whenever a client 
>> crashes"?
>>
>> Thank you in advance,
>>
>> Alfredo
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Apr 27, 2012 at 1:49 AM,mmorckos wrote:
>> > Hello,
>>
>> > I'm intending to develop a web-based frontend UI for a control system
>> > in a research lab. For safety purposes, it's vital that when a client
>> > crashes, the server is notified immediately and dispatches a stop
>> > signal to all connected machinery.
>>
>> > I'm new to gwt and would like to know if there is a way to know
>> > whenever a client crashes on the server side, specifically inside a
>> > "RemoteServiceServlet".
>>
>> >  Regards,
>> > Michael
>>
>> > --
>> > 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 
>> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>>
>> --
>> Alfredo Quiroga-Villamil
>>
>> AOL/Yahoo/Gmail/MSN IM:  lawwton
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to stop the move to Place

2012-04-27 Thread Alfredo Quiroga-Villamil
Interestingly enough, have to admit, I don't see at a glance unless I
am missing something an easy way to accomplish what you need.

We need something to completely halt execution and act upon the result
of the action/handler (ok or cancel result for example), which is
ultimately what the PlaceController is doing via a DefaultDelegate
using a Window.confirm in mayStop.

I will try to make some time over the weekend and look into this.
Hopefully we are both just missing the obvious and there is an easy
solution to it and someone will respond to the thread with it.

Regards,

Alfredo
 -

2012/4/27 st1ll :
> The situation is the following:
> 1) There is a table cell which can be edited
> 2) the user has not saved the changes, and clicks on any item on the
> navigation menu (try to move to another page)
> 3) You receive a modal window with the message - "There are unsaved
> changes. Do you want to keep them?" There are three buttons - "Save," "Do
> not Save", "Cancel"
> 4) By clicking the "Save" button, the data is sent to the server and takes
> you to a page that the user has selected previously on the menu
> 5) If the button is pressed, "Do not save" just takes you to a page that the
> user has selected previously
> 6) If you press "Cancel" modal window just closes, switching to a different
> page is not carried out
>
> I'm sorry to write in English until I get bad, so to understand my
> speech can be hard :)
>
> пятница, 27 апреля 2012 г., 17:36:58 UTC+3 пользователь Alfredo
> Quiroga-Villamil написал:
>>
>> Can you please provide the flow for this particular case. I think
>> it'll help me and others to better understand, sorry if I am not
>> following 100% still :( Something like:
>>
>> 1. I have a view with a table.
>> 2. The user edits and clicks save.
>> 3. I show them a Modal Dialog with three buttons.
>> 4. The third button triggers navigation to go to a new place...
>>
>> Something like that to get a better idea.
>>
>> Thanks in advance,
>>
>> Alfredo
>>
>> On Fri, Apr 27, 2012 at 10:28 AM, st1ll  wrote:
>> > Thanks for the answer.
>> > This method (mayStop()) is not suitable to me for one reason - I need to
>> > get to the window, except for "OK" and "Cancel" buttons were also
>> > a button
>> > "Save" at the touch of which happened to save the data into the
>> > database.
>> > I have not found a way to make non-standard window, caused by this
>> > method
>> >
>> > On Friday, April 27, 2012 4:41:51 PM UTC+3, Alfredo Quiroga-Villamil
>> > wrote:
>> >>
>> >> Hi:
>> >>
>> >> I am not 100% sure what you are trying to do, but in your current
>> >> activity, you can override "mayStop()". That would be one possible way
>> >> to intercept and potentially cancel going to a new place.
>> >>
>> >> If that doesn't do what you need, please provide a little example of
>> >> what the ultimate goal is to see what options are available depending
>> >> on your use case.
>> >>
>> >> Best regards,
>> >>
>> >> Alfredo
>> >>
>> >> On Fri, Apr 27, 2012 at 8:33 AM, st1ll  wrote:
>> >> > Hello.
>> >> > I need to create model window, which appears, when I try to go from
>> >> > current page via links.
>> >> > I may initiate the creation of window into onPlaceChangeRequest
>> >> > (PlaceChangeRequestEvent.Handler ()).
>> >> > But I dont know, how to interrupt the process of transition.
>> >> > It is possible?
>> >> >
>> >> > --
>> >> > 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.
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Alfredo Quiroga-Villamil
>> >>
>> >> AOL/Yahoo/Gmail/MSN IM:  lawwton
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > 

Re: Server detection of client crash

2012-04-27 Thread Alfredo Quiroga-Villamil
Can you please define or explain what you mean by "whenever a client crashes"?

Thank you in advance,

Alfredo

On Fri, Apr 27, 2012 at 1:49 AM, mmorckos  wrote:
> Hello,
>
> I'm intending to develop a web-based frontend UI for a control system
> in a research lab. For safety purposes, it's vital that when a client
> crashes, the server is notified immediately and dispatches a stop
> signal to all connected machinery.
>
> I'm new to gwt and would like to know if there is a way to know
> whenever a client crashes on the server side, specifically inside a
> "RemoteServiceServlet".
>
>  Regards,
> Michael
>
> --
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to stop the move to Place

2012-04-27 Thread Alfredo Quiroga-Villamil
Can you please provide the flow for this particular case. I think
it'll help me and others to better understand, sorry if I am not
following 100% still :( Something like:

1. I have a view with a table.
2. The user edits and clicks save.
3. I show them a Modal Dialog with three buttons.
4. The third button triggers navigation to go to a new place...

Something like that to get a better idea.

Thanks in advance,

Alfredo

On Fri, Apr 27, 2012 at 10:28 AM, st1ll  wrote:
> Thanks for the answer.
> This method (mayStop()) is not suitable to me for one reason - I need to
> get to the window, except for "OK" and "Cancel" buttons were also a button
> "Save" at the touch of which happened to save the data into the database.
> I have not found a way to make non-standard window, caused by this method
>
> On Friday, April 27, 2012 4:41:51 PM UTC+3, Alfredo Quiroga-Villamil wrote:
>>
>> Hi:
>>
>> I am not 100% sure what you are trying to do, but in your current
>> activity, you can override "mayStop()". That would be one possible way
>> to intercept and potentially cancel going to a new place.
>>
>> If that doesn't do what you need, please provide a little example of
>> what the ultimate goal is to see what options are available depending
>> on your use case.
>>
>> Best regards,
>>
>> Alfredo
>>
>> On Fri, Apr 27, 2012 at 8:33 AM, st1ll  wrote:
>> > Hello.
>> > I need to create model window, which appears, when I try to go from
>> > current page via links.
>> > I may initiate the creation of window into onPlaceChangeRequest
>> > (PlaceChangeRequestEvent.Handler ()).
>> > But I dont know, how to interrupt the process of transition.
>> > It is possible?
>> >
>> > --
>> > 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.
>> >
>>
>>
>>
>> --
>> Alfredo Quiroga-Villamil
>>
>> AOL/Yahoo/Gmail/MSN IM:  lawwton
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/-xYLh1GQF1sJ.
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Entities in GWT 2.4

2012-04-27 Thread Alfredo Quiroga-Villamil
https://developers.google.com/web-toolkit/doc/latest/DevGuideRequestFactory

Look there for ValueProxy. They provide a concise example.

Regards,

Alfredo

On Fri, Apr 27, 2012 at 5:41 AM, Ashu  wrote:
> Hi,
>
> I am using GWT2.4 version.
>
> how to use value proxies without entities?
>
> If possible please provide me some sample example.
>
> 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/-/VZMr_N4-kSsJ.
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Disable the display of values of a ListBox

2012-04-27 Thread Alfredo Quiroga-Villamil
To better understand the question, why is setEnable(false) not an
option? What is the behavior you would like to see?

Regards,

Alfredo

On Fri, Apr 27, 2012 at 5:57 AM, Ali Thabet  wrote:
> Hello, is there a way to disable the display of values of
> the ListBox after the user click? I do not want to use the
> method setEnable(false).
>
> --
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Thoughts on User defined time in the UI

2012-04-27 Thread Alfredo Quiroga-Villamil
I don't recall seeing a TimePicker in GWT. I do recall seeing one and
I found it in the GWT incubator (URL at the end of my response).

Options:

a) Create something fairly simple now to get the job done. Three
SelectionCell's if you want the values to be unmodifiable and save
yourself the trouble of validation if you used TextBoxes. This is
perhaps one of the simplest ways to go.

b) Create something a bit more sophisticated.

c) Take a look at the previous incubator implementation. It's GWT
only, so you might be able to resuscitate it and use it.

http://code.google.com/p/gwt-incubator-lib/source/browse/trunk/GWT-Incubator-TimePicker/src/main/java/com/gwtincubator/widgets/client/timepicker/TimePicker.java

Regards,

Alfredo

On Wed, Apr 25, 2012 at 11:56 AM, GlasgowSteve  wrote:
> I would like to have a field in my UI which allows the user to pass a
> 24h time - I will then use the time to do a search on events occuring
> after that time. There should not be a date asociated with the time on
> the UI. The time passed should be in the format "hh:mm:ss".
>
> I'm using plain ol' GWT - extensions or addtional libraries are
> unavailble here for all intents and purposes (I've seen a few options
> in gwt-ext and smartGWT but would rather avoid.
>
> What would be the best method of allowing users to define time in the
> UI using core GWT? A textbox which assumes 6 digits (hhmmss) that can
> then be parsed? Three seperate text boxes for hour minute second which
> would be easier to validate? Extending a Calander Widgit? Another
> Widgit I've overlooked that should be considered? Or something I
> haven't considered at all?
>
>
> Thanks for your help
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Dynamic CompositeCell

2012-04-27 Thread Alfredo Quiroga-Villamil
If you have an "n" number of values that should be represented in one
single column, I would go for a tree. Its ability to expand nodes when
needed, gives the user a chance to have it expanded or collapsed. So
in your case the column would contain:

"Top Of Tree"
  CheckBox 1
  CheckBox 2
  CheckBox 3
  CheckBox n

Regards,

Alfredo

On Wed, Apr 25, 2012 at 9:16 PM, Aoxiang Cui  wrote:
> The title is too short, let me explain and simplify my situation.
>
> Say, I have a dto which contains a list of Booleans. I need a column whose
> cell looks like below:
>
> item_1  checkbox_1
> item_2  checkbox_2
> ...
> item_n  checkbox_n
>
> If n is a fixed number, it is fine to use CompositeCell. The problem is we
> don't know the size of list and each cell can have different list size.
> Is there any way to extend CompositeCell so as to make it support my
> situation. Or maybe I should write a new Cell?
>
> --
> 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/-/slhetcYlVBsJ.
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to add External Java Classes to GWT Project?

2012-04-27 Thread Alfredo Quiroga-Villamil
                              con.close();
>                        con = null;
>                } catch (Exception e) {
>                        e.printStackTrace();
>                }
>        }
>
>        public static void main(String[] args) throws Exception {
>                DB_Conn myDbTest = new DB_Conn();
>                myDbTest.displayDbProperties();
>        }
> }
> --------
> and now i wana use this class in GWT Project
>
> how i used it some one guide me plz
>
> --
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT SERIALIZATION PROBLEM

2012-04-27 Thread Alfredo Quiroga-Villamil
Hard to tell without seeing code or stack trace. Please provide:

1. A bit of code illustrating the main players. DTO, Service,
ServiceAsync, ServiceImpl method.
2. Stack Trace for the failure.

Regards,

Alfredo

On Wed, Apr 25, 2012 at 6:20 AM, Nitheesh Chandran
 wrote:
> Hello  Guys ,
>
> I have a problem ,I want to save an object to the database. I passed
> the object to the server using a function. Like this
> http://www.easywayserver.com/blog/how-to-serializable-object-in-java-2/.
> But my RPC is getting failed every time. What will be the problem ? i
> used isSerializable marker interface for serialization. Cant we send
> client object to the server through RPC?
>
> --
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to stop the move to Place

2012-04-27 Thread Alfredo Quiroga-Villamil
Hi:

I am not 100% sure what you are trying to do, but in your current
activity, you can override "mayStop()". That would be one possible way
to intercept and potentially cancel going to a new place.

If that doesn't do what you need, please provide a little example of
what the ultimate goal is to see what options are available depending
on your use case.

Best regards,

Alfredo

On Fri, Apr 27, 2012 at 8:33 AM, st1ll  wrote:
> Hello.
> I need to create model window, which appears, when I try to go from
> current page via links.
> I may initiate the creation of window into onPlaceChangeRequest
> (PlaceChangeRequestEvent.Handler ()).
> But I dont know, how to interrupt the process of transition.
> It is possible?
>
> --
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT RequestBuilder not working in Chrome and FireFox

2012-04-27 Thread Alfredo Quiroga-Villamil
SOP violation. You seem to be sending a request crossing domains.

Look up Same Origin Policy online for more info.

Regards,

Alfredo
On Apr 27, 2012 8:37 AM, "the.wizard"  wrote:

> Hi everyone,
> I have a problem with RequestBuilder. When I run my code that using
> RequestBuilder in IE 8, it's working well, but in Chrome and FireFox,
> it just keep returning empty string. When I tried to debug it, the
> response is "com.google.gwt.http.client.Request$1@5a7667be", and have
> no headers, the code is 0. I also get an exception like this :
> 07:33:50.734 [ERROR] [chameleonmain] Uncaught exception escaped
>
> com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote
> connection lost
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
> 354)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
> 218)
>at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> 136)
>at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 561)
>at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> 269)
>at
>
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
> 91)
>at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
>at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25)
>at java.lang.reflect.Method.invoke(Method.java:597)
>at
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
>at
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
>at
>
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
> 172)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
> 292)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 546)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 363)
>at java.lang.Thread.run(Thread.java:662)
> Caused by: java.net.SocketException: Connection reset by peer: socket
> write error
>at java.net.SocketOutputStream.socketWrite0(Native Method)
>at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:
> 92)
>at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
>at
> java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
>at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:
> 123)
>at java.io.DataOutputStream.flush(DataOutputStream.java:106)
>at com.google.gwt.dev.shell.BrowserChannel
> $ReturnMessage.send(BrowserChannel.java:1310)
>at com.google.gwt.dev.shell.BrowserChannel
> $ReturnMessage.send(BrowserChannel.java:1315)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
> 340)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
> 218)
>at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> 136)
>at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 561)
>at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> 269)
>at
>
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
> 91)
>at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
>at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25)
>at java.lang.reflect.Method.invoke(Method.java:597)
>at
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
>at
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
>at
>
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
> 172)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
> 292)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 546)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 363)
>at java.lang.Thread.run(Thread.java:662)
>
> Is there any way to solve this problem?
> Here is my code :
> RequestBuilder request = new RequestBuilder(RequestBuilder.GET, url);
> request.setHeader("Content-Type", "text/html");
> RequestCallback callback = new RequestCallback() {
>@Ov

Re: Disable TreeItem selection in Tree

2012-04-26 Thread Alfredo Quiroga-Villamil
Syed:

Not sure if you ever got around to it. A few strategies can be used
here. I wasn't able to find something out of the box to do it.
However, a few approaches can be used in this case.  I took what I
thought would be the easiest/fastest to illustrate how to accomplish
it.

Essentially, I am wrapping the TreeItem's with a FlowPanel and playing
with the CSS properties a bit. You can add the logic that you need and
use something similar for only the nodes you want.

Tree tree = new Tree();
String items[] = {"Uno", "Dos", "Tres"};

for (String item : items) {
TreeItem topitem = tree.addItem(item);
InlineLabel label = new InlineLabel("Hoja - " + item);
label.getElement().getStyle().setOpacity(0.5);

FlowPanel layer = new FlowPanel();
layer.getElement().getStyle().setCursor(Cursor.AUTO);
layer.add(label);
topitem.addItem(layer);
}

Best regards,

Alfredo

On Mon, Apr 23, 2012 at 11:50 AM, Syed Fazal Ahmad  wrote:
> Hi There:
>
> I have created a Tree and have added the TreeItems to it. I would like
> to disable selection of certain nodes depending on my business rules.
> However, I have not been able disable selection of a given node. If I
> could even gray-out the node it would be helpful. I will appreciate if
> someone could provide insight on how to achieve the above.
>
> Thanks for your help
> Syed
>
> --
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: TabLayoutPanel with custom widget for tabs

2012-04-25 Thread Alfredo Quiroga-Villamil
There are probably a few ways to accomplish this. I had a few minutes
so I hacked something up, in a hurry, so not sure if this is the best
way to do it, but see below.

I would do something along these lines, create a TabItem that contains
an image (the x you suggested for close for example.). A nice to have
would be to change the cursor when hovering over the TabItem for
example. This would allow me to close tabs for instance and act upon
it. I would probably enhance TabPanel to do all this, but you should
get an idea. See below to see a TabItem being added to the TabPanel
consisting of text and a clickable image with a CloseHandler.

TabItem tabItem = new TabItem("Tab 1");
TabLayoutPanel tabPanel = new TabLayoutPanel(2.5, Unit.EM);
tabPanel.add(new Image(icons.close()), tabItem);
dockPanel.addNorth(tabPanel, 25);

tabItem.addCloseHandler(new
CloseHandler() {
@Override
public void onClose(CloseEvent event) {
System.out.println("Closing here!");
event.getTarget().removeFromParent();
}
});

private class TabItem extends Composite implements
HasCloseHandlers {

private FlowPanel tabItem;
private InlineLabel tabItemTittle;
private String text;
private Image image;

public TabItem(String title) {
tabItem = new FlowPanel();
initWidget(tabItem);
tabItemTittle = new InlineLabel(title);
tabItem.add(tabItemTittle);
image = new Image(icons.asteriskOrange());
tabItem.add(image);
addHandlers();
}

/**
 * @return the text
 */
public String getText() {
return text;
}

/**
 * @param text the text to set
 */
public void setText(String text) {
this.text = text;
tabItemTittle.setText(text);
}

@Override
public HandlerRegistration
addCloseHandler(CloseHandler handler) {
return addHandler(handler, CloseEvent.getType());
}

private void addHandlers() {
image.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
CloseEvent.fire(TabItem.this, TabItem.this);
}
});
}

}


On Tue, Apr 24, 2012 at 11:12 PM, bryanb  wrote:
>
> I'm trying to get custom tabs with a closing "X" image next to the
> label. Something like "Blah  X" with the X a clickable image.
>
> I cannot get the tab widget to display correctly.
>
> Below is a simplified example which shows the problem. The "Bad Tab"
> should float the label left and the "X" right. On Chrome this will
> cause the tab to be "detached" from the tab panel. i.e. it display
> about 4px above the main tab panel. In FF the tab isn't detached, but
> the floating doesn't seem to work.
>
> Has anyone got something similar working ?
>
>                TabLayoutPanel panel = new TabLayoutPanel(32, Unit.PX);
>                panel.setSize("300px", "300px");
>
>                HTML hello = new HTML("Bad Tab ");
>                hello.getElement().getStyle().setProperty("float", "left");
>                HTML exit = new HTML("X");
>                exit.getElement().getStyle().setProperty("color", "red");
>                exit.getElement().getStyle().setProperty("float", "right");
>
>                FlowPanel fp = new FlowPanel();
>                fp.add(hello);
>                fp.add(exit);
>
>                panel.add(new Label("Blah"), fp);
>
>                hello = new HTML("Good Tab");
>                exit = new HTML("X");
>                exit.getElement().getStyle().setProperty("color", "red");
>
>                fp = new FlowPanel();
>                fp.add(hello);
>                fp.add(exit);
>
>                panel.add(new Label("Blah"), fp);
>
>                RootLayoutPanel root = RootLayoutPanel.get();
>                root.add(panel);
>
> --
> 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.
>



--
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Couple CSS questions

2012-04-24 Thread Alfredo Quiroga-Villamil
If you get a chance send out a screenshot of the computed style and regular
style after inspecting the input element in your dev console (firebug or
chrome dev tool, to the right of your previous screenshot).

There you can also in real time modify the element css property to get a
feel for what is going on.

A screenshot of that will help in this case to see if your css property was
actually added.

Regards,

Alfredo
On Apr 24, 2012 8:03 PM, "Mike Dee"  wrote:

> But the question remains, why doesn't changing the gwt-DateBox CSS affect
> the appearance of the DatabBox?  In my case, the standard.css was replaced
> with my own.  So, why aren't my changes having any effect?
>
> --
> 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/-/I8Heevutr0EJ.
> 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: GWT Internationlization

2012-04-21 Thread Alfredo Quiroga-Villamil
See the answer provided by Colin here:

http://stackoverflow.com/questions/9062977/gwt-dynamic-internationalization

Regards,

Alfredo

On Sat, Apr 21, 2012 at 3:34 AM, milind bhuktar  wrote:

> Hello All,
> I am new guy in gwt,I have did some basic project in GWT, and  now I
> trying to do Internationalization in gwt.
> everything is fine  Internationalization is done but it reload
> application,now my question is how  to  Internationalization without
> reload whole application .
> Thank ..to read
>
> --
> 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.
>
>


-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: IntegerBox not restricting input to integers in GWT 2.4.0

2012-04-20 Thread Alfredo Quiroga-Villamil
@Jen:

Your code and something along the lines to what you proposed would
certainly work and be flexible enough.

@Andrei:

"When a user presses a button and nothing happens, many users would assume
that your app is broken (they did press a letter for some reason!)"

You always know when/what the user typed. The app would not look broken if
upon the keydown and read of the key you know that it doesn't meet the
specification and right away let the user know that "You can only type 
here"

Alfredo

On Fri, Apr 20, 2012 at 2:38 PM, Jens  wrote:

> I always try to keep in mind that GWT is a tool kit. However, when a class
>> is named IntegerBox, to be used in a UI, yeah I expect it to be type safe
>> and also do what its name implies in the UI as well as programmatically. In
>> this case only allow Integers to be typed in.
>>
>
> Some years ago when doing ordinary desktop applications I would probably
> expect the same. But today developing web applications my mind shifted and
> I found it more important to be liberal on the user input but tell the user
> if they have done something wrong. This just feels more like things work on
> the web and I want to preserve this feeling even in web applications
> because thats what people are used to when using the web.
> Also inexperienced users may think their keyboard is somehow broken if
> nothing happens when typing a letter into an input box because its just so
> uncommon on the web to swallow user input.
>
>
> In any case, I'll hang on to this email and instead of talking more,
>> perhaps when I have some free time I'll just get to it and see if I can add
>> the implementation for it, test it across browsers and submit it for a
>> patch review. No promises since I am really busy these days, but we'll see.
>>
>
> Maybe it can be as easy as:
>
> IntegerBox() {
>  this(false); //makes sure that, by default, you get the same behavior as
> of today
> }
>
> IntegerBox(bolean strictMode) {
>  super(Document.get().createInputElement(), IntegerRenderer.instance(),
> IntegerParser.instance(), strictMode ? IntegerInputValidator.instance() :
> null);
> }
>
> along with an additional constructor in ValueBox -> ValueBoxBase taking
> the input validator. If an input validator is present, ValueBoxBase
> attaches a key handler and routes key events through the validator (which
> can decide to swallow the key). That way you can opt-in to your desired
> behavior (you dont change behavior of existing apps) and you pretty much
> only have to implement input validators.
>
>
>
>> Appreciate the responses.
>>
>
> You are welcome
>
> -- J.
>
> --
> 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/-/PG8WHFAnWBEJ.
>
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: IntegerBox not restricting input to integers in GWT 2.4.0

2012-04-20 Thread Alfredo Quiroga-Villamil
I've been using NumberField for years in GXT. I seem to recall it working
pretty well if my memory serves me right. There I can specify pretty easily
the type as I previously mentioned, Integer, Double, etc.. perhaps I got
spoiled, who knows. Recently I've been slowly switching to using a GWT only
approach (GWT UI Widgets that is. I've obviously been using GWT for years)

I always try to keep in mind that GWT is a tool kit. However, when a class
is named IntegerBox, to be used in a UI, yeah I expect it to be type safe
and also do what its name implies in the UI as well as programmatically. In
this case only allow Integers to be typed in.

In any case, I'll hang on to this email and instead of talking more,
perhaps when I have some free time I'll just get to it and see if I can add
the implementation for it, test it across browsers and submit it for a
patch review. No promises since I am really busy these days, but we'll see.

Appreciate the responses.

Alfredo

On Fri, Apr 20, 2012 at 12:28 PM, Jens  wrote:

> I respectfully see this slightly different. An IntegerBox should prevent
>> the user from typing non-integers from the start with ways to customize the
>> error message, etc... It's nice that it's generified, but one might expect
>> it to have a validator built-in. Not that it would be terrible to add one
>> as you point out, but it should be built-in since in this case the name is
>> IntegerBox. If it would have been a NumberField or something along those
>> lines, then the same could have been accomplished like GXT does by setting
>> a property editor that could be Integer, Double, etc. So I don't see it
>> doing 100% what it should do.
>
>
> Beside the fact that its not that easy to implement this behavior in a
> cross browser fashion as Thomas said, you should also keep in mind that GWT
> is a Toolkit and in my opinion a Toolkit should give developers a more
> general solution which can be further specified by developers and their
> requirements (validation behavior) instead of providing a too specific
> solution that you maybe can't modify well.
>
> -- J.
>
> --
> 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/-/RLtrB5vaIJQJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: IntegerBox not restricting input to integers in GWT 2.4.0

2012-04-20 Thread Alfredo Quiroga-Villamil
I respectfully see this slightly different. An IntegerBox should prevent
the user from typing non-integers from the start with ways to customize the
error message, etc... It's nice that it's generified, but one might expect
it to have a validator built-in. Not that it would be terrible to add one
as you point out, but it should be built-in since in this case the name is
IntegerBox. If it would have been a NumberField or something along those
lines, then the same could have been accomplished like GXT does by setting
a property editor that could be Integer, Double, etc. So I don't see it
doing 100% what it should do.

I see this as a potential feature request. An easy one to add,
nevertheless, not one that the user should have to implement.

Best regards,

Alfredo

On Fri, Apr 20, 2012 at 11:23 AM, Jens  wrote:

> Everything that extends ValueBox (or better ValueBoxBase) like IntegerBox,
> DoubleBox, etc. allows you type everything you want into that boxes.
>
> The difference to an ordinary TextBox is that ValueBoxBase has a
> getValue() and getValueOrThrow() method:
> 1.) getValue(): returns the defined type (e.g. Integer, Double, ...) if
> the content of the box is parseable to that type (see IntegerParser,
> DoubleParser, ..). If its not parseable or the box is empty then null is
> returned.
> 2.) getValueOrThrow(): does the same as getValue() but if the content is
> not parseable you can catch the ParseException.
>
> So in case of an IntegerBox you can type everything, but once you call
> getValueOrThrow() you will see if its really an Integer in that box or not.
>
> If you want to disallow letters in an IntegerBox you have to implement
> that yourself. In general I found it easier to just give some visual
> feedback that the content isn't parseable anymore. Maybe for live feedback
> something like:
>
> integerBox.addKeyUpHandler(new KeyUpHandler() {
>void onKeyUp(...) {
>   try {
> getValueOrThrow();
> clearErrorCss(integerBox);
>   } catch(ParseException e) {
> setErrorCss(integerBox);
>   }
>}
> });
>
>
> So these boxes are not broken. They are working as designed but you just
> expected something different.
>
> -- J.
>
>
> Am Donnerstag, 19. April 2012 14:57:06 UTC+2 schrieb W Marsh:
>>
>> Am I missing something? It just acts like a normal TextBox for me. Here's
>> the simplest example:
>>
>> import com.google.gwt.core.client.**EntryPoint;
>> import com.google.gwt.user.client.ui.**IntegerBox;
>> import com.google.gwt.user.client.ui.**RootPanel;
>>
>> /**
>>  * Entry point classes define onModuleLoad().
>>  */
>> public class IntegerBoxExample implements EntryPoint
>> {
>> public void onModuleLoad()
>> {
>> IntegerBox box = new IntegerBox();
>>
>> RootPanel.get().add(box);
>> }
>> }
>>
>> I can type letters into it. Is it just broken (perhaps related to the
>> notice "Experimental API: This class is still under rapid development,
>> and is very likely to be deleted. Use it at your own risk." note in the
>> documentation)?
>
>
> Am Donnerstag, 19. April 2012 14:57:06 UTC+2 schrieb W Marsh:
>>
>> Am I missing something? It just acts like a normal TextBox for me. Here's
>> the simplest example:
>>
>> import com.google.gwt.core.client.**EntryPoint;
>> import com.google.gwt.user.client.ui.**IntegerBox;
>> import com.google.gwt.user.client.ui.**RootPanel;
>>
>> /**
>>  * Entry point classes define onModuleLoad().
>>  */
>> public class IntegerBoxExample implements EntryPoint
>> {
>> public void onModuleLoad()
>> {
>> IntegerBox box = new IntegerBox();
>>
>> RootPanel.get().add(box);
>> }
>> }
>>
>> I can type letters into it. Is it just broken (perhaps related to the
>> notice "Experimental API: This class is still under rapid development,
>> and is very likely to be deleted. Use it at your own risk." note in the
>> documentation)?
>
>  --
> 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/-/kaR928iw2dQJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Understanding Composite

2012-04-20 Thread Alfredo Quiroga-Villamil
Things are quite nested there, but if you need the same instance of Action
as the one you have in your Frame class, well then you have to either pass
it all the way down, or expose it in your Frame class so you can access it.
If you need a completely brand new instance, then create one or inject it
in your TreeC composite.

I have a feeling that your nested approach is complicating a rather simple
widget. I would reconsider how you are creating things and change it so
that it lends itself better to manipulation and accessibility. Otherwise,
you'll likely end up with a super nested widget. I don't know, something
just doesn't feel right about the approach, maybe it's just me.

Best regards,

Alfredo

On Fri, Apr 20, 2012 at 4:27 AM, learning coding <
learning.codin...@gmail.com> wrote:

> Hi
>
>
>
> I have problem in understanding a composite.
>
> In Frame class i have verticalPanel(vp) when vp is loaded , getAction and
> get Button is visible on vp
>
> WHen click on button there is a getTree is executed and there is treeC
> class initialized where there is customised tree. and treeitem.
>
> I want to use action object in class TreeC
>
> How to do it.
>
> Plz Help.
>
> public class Frame{
> public frame () {
> initWidget(getFramePanel());
> }
> Private VerticalalPanel getFramePanel() {
>
> if (vp== null) {
>
> vp= new VerticalalPanel();
> vp.setSize("1442px", "750px");
>
> vp.add(getAction());// **are composites**
>
> vp.add(getButton) // **are composite**
>
>
> }
> return vp;
>
> private Action getAction() {
>
> if (action == null) {
>
> action = new Action(); // In action class there are 7 buttons and 
> 2 methods //setDisplayRepository(), and setDisplayFolder()
>
> action.setDisplayRepository();
> }
> return action;
>
> }
> }
> private Button getButton() {
>
> if (btn == null) {
>
> btn = new Button("Click");
>
> btnProperties.addClickHandler(new ClickHandler() {
>
> public void onClick(ClickEvent event) {
>
> hp.add(getTree());
> }
>
> });
> btn.setSize("37px", "36px");
>
>
> }
> return btnProperties;
> }
>
>
> private TreeCmis getTreeC() {
>
> if (treeC == null) {
>
> treeC = new TreeC();
> treeC.setWidth("360px");
>
> }
> return treeCmis;
> }
> }
>
> --
>
> public class TreeC extends Composite{
> private Tree repo;
> //constructor
> public TreeC {
>
> createTree()
> }
> Void createTree(){
> /* here i need to to use the object action declared in frame class
>
> For using action.setDisplayfolder*/
> }
> }
>
>  plz help
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: change of projectname.html file name

2012-04-20 Thread Alfredo Quiroga-Villamil
Change it to something like index.html. Then you have to open up your run
configuration and adjust the new name there. Depending on your setup you
might also have to edit to be safe your web.xml "welcome-file-list".

Best regards,

Alfredo

On Sat, Apr 14, 2012 at 12:19 AM, harish saharan
wrote:

> Dear all,
>Can anyone tell me that how can i change the name of
> projectname.html file of any gwt project .
> And if i change this file name where other place i hv to change .
>
> --
> 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.
>
>


-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: JSNI differences between hosted mode + production

2012-04-20 Thread Alfredo Quiroga-Villamil
Hi Marklar:

The first test I would do, to really validate "The JS file is loading
correctly" is to go to the deployed instance and:d

- Fire up the browser.
- Open the console (firebug, chrome dev tools, etc..)
- Go to the console, attempt to find the function (JS) you are trying to
get to from your GWT code and see if it is truly exported and accessible
within the window scope.

Regards,

Alfredo

On Thu, Apr 12, 2012 at 9:06 AM, marklar  wrote:

> Hi,
>
> I'm running into an issue with JSNI that I was hoping someone could help
> me with. I am using an external JS file to generate QR codes and it works
> great when running from the development server in Eclipse. When I push it
> to my 'production' server, however, it fails to find the function I am
> trying to call. The JS file is loading correctly, it just can't refer to
> that function. The specific error I am getting is:
>
> Uncaught ReferenceError: qrcode is not defined
>
> I have double checked for typos. I've had trouble finding any
> documentation about this, any help would be very much appreciated.
>
> Thanks,
> Marklar
>
> --
> 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/-/s6LWpQRCcdcJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: IntegerBox not restricting input to integers in GWT 2.4.0

2012-04-20 Thread Alfredo Quiroga-Villamil
If I am not mistaken that class is as the description you found says: "Not
completed". Parent constructor is as follows:

  protected ValueBox(Element element, Renderer renderer, Parser
parser) {

super(element, renderer, parser);

// BiDi input is not expected - disable direction estimation.

setDirectionEstimator(false);

if (LocaleInfo.getCurrentLocale().isRTL()) {

  setDirection(Direction.LTR);

}

assert InputElement.as(element).getType().equalsIgnoreCase("text");

  }

The assertion is for "text" and I don't see any validators for say Integer.
So at first glance, didn't look to see if there is more going on behind the
scenes, yeah, it's incomplete.

Regards,

Alfredo

On Thu, Apr 19, 2012 at 8:57 AM, Wayne Marsh  wrote:

> Am I missing something? It just acts like a normal TextBox for me. Here's
> the simplest example:
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.user.client.ui.IntegerBox;
> import com.google.gwt.user.client.ui.RootPanel;
>
> /**
>  * Entry point classes define onModuleLoad().
>  */
> public class IntegerBoxExample implements EntryPoint
> {
> public void onModuleLoad()
> {
> IntegerBox box = new IntegerBox();
>
> RootPanel.get().add(box);
> }
> }
>
> I can type letters into it. Is it just broken (perhaps related to the
> notice "Experimental API: This class is still under rapid development,
> and is very likely to be deleted. Use it at your own risk." note in the
> documentation)?
>
> --
> 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/-/zGmwodizajMJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Avoiding DTOs in RPC

2012-04-19 Thread Alfredo Quiroga-Villamil
Additional thoughts below:

"My approach has been to create DTOs for each case. I was now thinking of
using the JPA relationships and lazy loading instead"

I would recommend to go the "lazy loading" route in this case. I think
having a unique DTO will make things easier to maintain instead of creating
specific DTOs for each case. If you are using GWT-RPC and you are in this
case populating the DTO's yourself, you can check the user's "role" for
example and based on that, lazy or eagerly fetch what you need. If you are
using hibernate, this can be accomplished in a few different ways. Your
default configurations are typically lazy there.

In the UI, you will always receive the same DTO. There you should at that
point either know the user's role or check based on the response you
received. The fields that do not apply to the user based on role should
then be null and you should check for that.

On Thu, Apr 19, 2012 at 12:05 PM, Thomas Broyer  wrote:

>
> On Thursday, April 19, 2012 5:46:07 PM UTC+2, Thomas Lefort wrote:
>>
>> I want to avoid having to use DTOs for transferring my Users with RPC.
>> Basically I have a number of rpc calls for my users, and based on the
>> configuration and the user rights, etc... there is a number of fields I
>> want to hide. My approach has been to create DTOs for each case. I was now
>> thinking of using the JPA relationships and lazy loading instead. For
>> instance I store additional information (bio, etc...) in an "Additional"
>> object, with a onetoone relationship and lazy loading. So I guess based on
>> the call I just need to load the field or not, instead of filling up a
>> dedicated DTO each time I send a User with "holes".
>>
>> Does that make sense? any one has cons on this idea? will RPC send empty
>> fields or will it be more clever and just not add the fields that are null?
>>
>
> I don't know JPA very well, but I think lazy-loading will get in your way
> here. What you need is to conditionally load the Additional object, and in
> the case you don't, you want the field to be 'null'. AFAIK, this is pretty
> easy with JPA.
> That being said, maybe detaching your object from the session would be
> enough to have a 'null' in the field, and more importantly have the getter
> not throw any exception but return simply return the null; but that doesn't
> really change the fact that you'd better ask JPA to load the Additional
> object if you need it (so it could use a JOIN instead of 2 SELECTs for
> instance) than use lazy-loading (and calling the getter as a trigger to
> load the Additional object)
>
> --
> 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/-/chqJD0S9QZMJ.
>
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: CellTable - How to programmatically start editing a cell.

2012-04-14 Thread Alfredo Quiroga-Villamil
Hi Thomas:

Thanks for the response.

"1. extend the cell to automatically switch to an isEditing() state on some
trigger"

Unless I bypass access by using JSNI, ViewData and isEditing are both
package access. I typically avoid doing what you suggested, although, I
have to admit, I've had to do it quite a lot in the past due to the
significant number of things with package access that I've come across.

I think I have sufficient info to use the suggested work arounds. However,
I still opened an issue for this as an enhancement/bug. One should be able
to say:

cellTable.getView().startEdit(row,cell) or better

cellTable.startEdit(row,cell) or something along those lines without having
to use all these work arounds.

Thanks all for your responses/help.

Alfredo

On Sat, Apr 14, 2012 at 10:54 AM, Thomas Broyer  wrote:

>
>
> On Friday, April 13, 2012 7:16:10 PM UTC+2, Alfredo Quiroga-Villamil wrote:
>>
>> Scenario is as follows:
>>
>> - CellTable with a column containing an EditTextCell.
>> - Add new record to the ListDataProvider.
>> - I can edit and do all the good stuff by hand to the newly added record
>> in the CellTable.
>>
>> Requirement:
>>
>> - Programmatically call a starttEdit on say the first cell of the newly
>> created row/record.
>>
>> My investigation results:
>>
>> After going through the code and investigating, all roads seem to point
>> to ViewData in EditTextCell. Specifically, ViewData in EditTextCell has
>> setEditing(boolean) which should do the trick. However, ViewData has
>> package access.
>>
>> Before I go and start to override, copy/paste things to be able to access
>> the ViewData member I need, I figured I ask first since this seems like a
>> basic operation when adding new records to a CellTable. I am thinking that
>> I am very likely missing something.
>>
>
> IMO, you should:
>
>1. extend the cell to automatically switch to an isEditing() state on
>some trigger
>2. share something from your presenter/view/whatever with the cell to
>tell it which value/index to "auto-edit"
>3. trigger a redraw of the table, to trigger the auto-edit in the Cell
>(this will probably be your setRowData that adds the new "record")
>
> To access the ViewData class, the easiest is to use JSNI, which allows
> bypassing access checks. For instance, when the "auto-edit" is triggered in
> your overridden render() method, to create the ViewData (before calling
> setViewData(context.getKey(), viewData) and then super.render()), use:
>
> private native Object createViewData(String text) /*-{
>return
> @com.google.gwt.cell.client.EditTextCell::new(Ljava/lang/String;)(text);
> }-*/;
>
>
> --
> 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/-/BUF4Zk_6K7cJ.
>
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to programmatically access the value of this widget

2012-04-14 Thread Alfredo Quiroga-Villamil
In CompositePanel expose a getter for your texbox and then invoke
getValue() on it?

Best regards,

Alfredo

On Sat, Apr 14, 2012 at 10:17 AM, tong123123  wrote:

> as shown in the attached image, if I want to access the value of the
> textbox with value "value2" (the textbox in the second row after the "add"
> button"), how to do it as seem there is no a specific name to access it.
>
> the code is as follow:
>
>> package com.mycompany.project.client;
>>
>> import com.google.gwt.event.dom.client.ClickEvent;
>> import com.google.gwt.event.dom.client.ClickHandler;
>> import com.google.gwt.user.client.ui.Button;
>> import com.google.gwt.user.client.ui.FlowPanel;
>> import com.google.gwt.user.client.ui.Widget;
>>
>> public class HATestPanel extends FlowPanel{
>>
>>  Button btnAdd = new Button("Add");
>>  Button btnListWidget = new Button("List Widget");
>>
>>  public void onLoad(){
>>
>>   this.add(btnAdd);
>>   btnAdd.addClickHandler(new ClickHandler(){
>>
>>@Override
>>public void onClick(ClickEvent event) {
>> // TODO Auto-generated method stub
>> CompositePanel compositePanel = new CompositePanel();
>> ((HATestPanel)((Button)
>> event.getSource()).getParent()).add(compositePanel);
>>}
>>
>>   });
>>
>>   }
>> }
>>
>
> and the implementation of  CompositePanel is as follow:
>
>> package com.mycompany.project.client;
>>
>> import com.google.gwt.user.client.ui.FlowPanel;
>> import com.google.gwt.user.client.ui.HorizontalPanel;
>> import com.google.gwt.user.client.ui.Label;
>> import com.google.gwt.user.client.ui.ListBox;
>> import com.google.gwt.user.client.ui.TextBox;
>>
>> public class CompositePanel  extends HorizontalPanel{
>>
>>  protected void onLoad(){
>>   ListBox lb = new ListBox();
>>   TextBox txt2 = new TextBox();
>>   lb.addItem("field1");
>>   lb.addItem("field2");
>>   lb.addItem("field3");
>>   this.add(lb);
>>   this.add(txt2);
>>  }
>>
>> }
>>
>
> maybe my design is poor, any better method suggested?
> in reality, the listbox is used for user select "searc field", and the
> textbox is for user enter search value for that search field.
>
>
>
>
>
> --
> 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/-/Rc2QBu_9m6MJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: CellTable - How to programmatically start editing a cell.

2012-04-14 Thread Alfredo Quiroga-Villamil
Ralf:

Appreciate the response. It sure looks better than what I was going to do,
which was copy/paste the whole class, etc... just to get to the member I
need.

I wonder if I should open an enhancement or something along those lines for
this. One should be able to easily and programmatically start editing a
CellTable.

Something similar happens with SelectionCell where "options" is private and
final. The SellectionCell at that point becomes very static since I can't
seem to find a way to add/remove a new option to it.

Thank you again for the response. I think I am going to open cases for both
of these today. It shouldn't be that hard to patch I think.

Best regards,

Alfredo

On Sat, Apr 14, 2012 at 10:09 AM, R.K.P. Pisters wrote:

> I remember facing the same problem some time ago. In the end I just
> dispatched a click event on the cell, like so:
>
> Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
> @Override
> public void execute() {
> int i = getRowIndex();
> int j = getColumnIndex();
> NativeEvent clickEvent = Document.get().createClickEvent(1, 0, 0, 0, 0,
> false, false, false, false);
>
> cellTable.getRowElement(i).getCells().getItem(j).dispatchEvent(clickEvent);
> }
> });
>
> I realize this is not a very elegant solution, all the more so since
> dispatching the event will fail in case you're using a SelectionCell
> instead of an EditTextCell (see my question 
> here<https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/nLfM8nrJ9UQ>).
> So if anybody has a better idea, please share it with us.
>
> Ralf
>
> --
> 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/-/KjzapcBdCtAJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



CellTable - How to programmatically start editing a cell.

2012-04-13 Thread Alfredo Quiroga-Villamil
Scenario is as follows:

- CellTable with a column containing an EditTextCell.
- Add new record to the ListDataProvider.
- I can edit and do all the good stuff by hand to the newly added record in
the CellTable.

Requirement:

- Programmatically call a starttEdit on say the first cell of the newly
created row/record.

My investigation results:

After going through the code and investigating, all roads seem to point to
ViewData in EditTextCell. Specifically, ViewData in EditTextCell has
setEditing(boolean) which should do the trick. However, ViewData has
package access.

Before I go and start to override, copy/paste things to be able to access
the ViewData member I need, I figured I ask first since this seems like a
basic operation when adding new records to a CellTable. I am thinking that
I am very likely missing something.

Any help/pointers are appreciated.

Thanks,

Alfredo

-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-04-03 Thread Alfredo Quiroga-Villamil
While I think that the GWT community is one of the best ones out there and
I have no doubt about our ability to pick this up should it ever be dropped
by Google, I have to agree with Joseph. I've already been told a few times
that the future of GWT is uncertain. Again, while I know and I am confident
in the ability of this community and contributors to run with it, a rough
idea for things to come or a list of things that the community would like
to see implemented would go a long way in the enterprise world as Joseph
mentioned.

On Tue, Apr 3, 2012 at 11:34 AM, Joseph Lust  wrote:

> Alan,
>
> Thanks as always for your courteous replies. I'm grateful for the efforts
> the Google developers put into GWT, as any other enterprise building such a
> framework would most certainly charge the Earth for it while also crippling
> its functionality in exchange for customer lock-in. Google just makes great
> software.
>
> However, I work in a large enterprise where our GWT Community of Practice
> group must make a case for why any new application should use GWT. It is
> important to management to know the future of GWT and a roadmap is how this
> is commonly done. While I don't personally think GWT will suffer from the
> recent project pogroms at Google, a roadmap and rough release schedule will
> lend greater confidence to others in the stability and longevity of the
> framework needed before a company is willing to build multi-million dollar
> projects with it.
>
> If GWT retains buy-in at Google, I don't understand why such planning
> would be detrimental to the GWT team. As I see it, such public planning
> will only drive more companies and startups to join the GWT bandwagon.
>
> Sincerely,
> Joseph
>
>
>  --
> 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/-/5rzWGy06oFgJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Exporting Instance Methods to Hand-Written Javascript

2012-04-02 Thread Alfredo Quiroga-Villamil
At first glance it seems like:

"PreviewPane::imageSelected(Ljava/lang/String;Ljava/lang/String;))"

takes two arguments, in this case two Strings. The JSNI error seems to
indicate that you are not passing the two arguments as per the method
signature. I would think that you would end up with something like this:

PreviewPane::imageSelected(Ljava/lang/String;Ljava/lang/String;))(string1,
string2);

Best regards,

Alfredo

On Mon, Apr 2, 2012 at 4:26 PM, Geoffrey Wiseman  wrote:

> I have a piece of GWT code that I wanted to invoke from outside
> handwritten JavaScript. There's an example shown here under "Calling a Java
> method from Handwritten JavaScript":
>
> https://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsJSNI
>
> That example uses a static method; I can make that work, but my first
> instinct was that i'd rather use an instance, so using the syntax shown
> under JSNI invocations, I tried:
>
> /* package */ native void exportJavascriptMethods( PreviewPane x ) /*-{
>$wnd.imageSelected =
>   $entry(this
> @ca.cpp.spike.gwtapplet.client.PreviewPane::imageSelected
> (Ljava/lang/String;Ljava/lang/String;));
>   }-*/;
>
> That doesn't work. Eclipse (and the GWT compiler) complain:
> "JavaScript parsing: Missing ) after argument list PreviewPane.java"
>
> If I replace 'this' with 'x', same problem. If I take 'this' out and leave
> it binding to the static method:
>
> /* package */ native void exportJavascriptMethods( PreviewPane x ) /*-{
>$wnd.imageSelected =
>   $entry(@ca.cpp.spike.gwtapplet.client.PreviewPane::imageSelected
> (Ljava/lang/String;Ljava/lang/String;));
>   }-*/;
>
>
> All is well in the world.
>
> So -- is that just not an option, exporting an instance method like that?
>
> --
> 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/-/mC9EADg67lcJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Touch4j 2.0 Official GA Release

2012-04-02 Thread Alfredo Quiroga-Villamil
Our official GA release for Touch4j has arrived! Want to see it in action
before reading further and see how simple it is to use it?

Go to: http://touch4j.appspot.com/ and if you want to see how the code
would look, simply click on Source.

In this new package you will find support for:

- Maps
- Hardware/Device
- Charts
- UI

and all of it from within one single code base. Create a web mobile app or
simply package it to native if needed, you decide.

We've tried very hard to provide a complete kitchen sink demonstrating some
of the main features that are found in this release. It can be checked out
from:

http://svn.emitrom.com/gwt4touch2ks/trunk/kitchensink/

More details as well as the download package itself can be found at:

http://www.emitrom.com/touch4j

We have had a tremendous amount of help from our community. We like to
really thank all our users who provided tons of feedback. Your help is
really appreciated and invaluable. We also like to thank as usual the GWT
community as well as the GWT team, without you, none of this would be
possible.

Thank you all and we truly hope that you find the package useful and easy
to use.

Happy Coding!

The Emitrom Team

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Gwt4Touch, Gwt4Titanium

2012-03-21 Thread Alfredo Quiroga-Villamil
Feel free to post questions, ask for feedback, etc... also in the forum.

http://www.emitrom.com/forum

Best regards,

Alfredo

On Wed, Mar 21, 2012 at 11:02 AM, Lehel  wrote:

> Hi!
>
> Does anybody have some experience with Gwt4Touch, Gwt4Titanium?
> thx,
> Lehel
>
> --
> 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.
>
>


-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Is multi-level fetch depth with RequestFactory possible?

2012-03-20 Thread Alfredo Quiroga-Villamil
Rogelio:

This is likely in the Roo/Hibernate question, more hibernate than Roo. I
replied to you in the Spring forum. We'll come back here if we see that's
GWT related. I suspect is not.

Best regards,

Alfredo

On Tue, Mar 20, 2012 at 3:22 PM, Rogelio Flores wrote:

> I have an issue that might be JPA/Hibernate-related, but it could also be
> related to RequestFactory, so bear with me pls:
>
> I have the following JPA @Entity-s:
>
> class Profile {
>@OneToMany(cascade = CascadeType.ALL)
>List settings = new ArrayList();
>// other properties...
> }
>
> class Setting {
>@ManyToOne
>SettingDefinition definition;
>// other properties...
> }
>
> class SettingDefinition {
>// some properties - no relationships defined here
> }
>
> When a list of Profiles is displayed on a GWT UI (produced by Spring Roo,
> which uses RequestFactory), all their properties are displayed fine, except
> the individual Settings in the List have null SettingDefinitions even if
> they're not null in the db (I checked). I tried fetching eagerly and
> forcing it to not be null with:
>
> @ManyToOne(fetch=FetchType.EAGER, optional=false)
> SettingDefinition definition;
>
> and also increasing the hibernate.max_fetch_depth to more than three
> (AFAIK, 3 is the default), but I can't get the Settings to have their
> corresponding SettingDefinitions when they come from the server. Is there a
> setting or something that can be done to force these referenced entities so
> that they are fetched?
>
> (I posted this issue on the Roo forum but I've seen no response there:
>
> http://forum.springsource.org/showthread.php?124490-Fetching-eagerly-on-Lists-1-n
>  If
> this can be solved by the RequestFactory framework, this should be the
> right place to ask).
>
> --
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: hibernate , getting data List from database problem

2012-03-18 Thread Alfredo Quiroga-Villamil
st();
>transaction.commit();
>return sinavTakvimList;
>}
>catch ( RuntimeException e )
>{
>transaction.rollback();
>throw e;
>}
>finally
>{
>if ( session != null )
>{
>session.close();
>}
>}
>}
>
>
> }
>
> -
>
>
>
>
> Here's i get the data from database and put the data into a celltable
> *
>
>
> package tr.edu.gsu.yds.client.controller.ogrenci;
>
> import java.util.List;
>
> import tr.edu.gsu.yds.client.remote.YdsRemoteService;
> import tr.edu.gsu.yds.client.remote.YdsRemoteServiceAsync;
> import
> tr.edu.gsu.yds.client.view.ogrenci.sinavislemleri.SinavTarihiGoruntuleme;
> import tr.edu.gsu.yds.shared.domain.SinavTakvim;
>
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.event.dom.client.ClickEvent;
> import com.google.gwt.event.dom.client.ClickHandler;
> import com.google.gwt.user.client.Window;
> import com.google.gwt.user.client.rpc.AsyncCallback;
>
> public class OgrenciSinavTarihiGoruntulemeController
> {
>private YdsRemoteServiceAsync ydsRemoteServiceAsync =
> GWT.create( YdsRemoteService.class );
>private SinavTarihiGoruntuleme ogrenciSinavTarihiGoruntulemeSayfasi;
>
>
>
>
>public
> OgrenciSinavTarihiGoruntulemeController( SinavTarihiGoruntuleme
> ogrenciSinavTarihiGoruntulemeSayfasi )
>{
>this.ogrenciSinavTarihiGoruntulemeSayfasi =
> ogrenciSinavTarihiGoruntulemeSayfasi;
>
>}
>
>public void send()
>{
>
>
>ydsRemoteServiceAsync.getSinavTakvimList( new
> AsyncCallback>()
>{
>public void onFailure( Throwable
> caught )
>{
>
>  Window.alert("Failure Error");
>}
>
>   //Just Here , result returns
> the "first row" 3 times , instead of all the 3 different rows.
>public void onSuccess(
> List result )
>{
>
>if( result != null )
>{
>
>//Put the data
> in to a celltable
>
> ogrenciSinavTarihiGoruntulemeSayfasi.getSinavTakvimCell().refresh( result
> );
>
>}
>else
>{
>Window.alert( " No
> exam found! " );
>
>}
>}
>
>} );
>
>
>
>
> ogrenciSinavTarihiGoruntulemeSayfasi.getOkeyButton().addClickHandler( new
> ClickHandler()
>    {
>
>@Override
>public void onClick( ClickEvent event )
>{
>String date =
>
> ogrenciSinavTarihiGoruntulemeSayfasi.getSinavTarihWidget().getSelectedDate().toString();
>Window.alert( date );
>
>}
>} );
>
>
>}
>
> }
>
> --
> 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.
>
>


-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to share an RPC RemoteServiceServlet between apps?

2012-03-09 Thread Alfredo Quiroga-Villamil
Rob:

If I am not mistaken you can override in your ServiceImplementation a
couple of methods (your choice which one). In RemoteServiceServlet, you
will find:

getSerializationPolicy
doGetSerializationPolicy
Likely the latter will be easier to override. There, "moduleBaseURL" should
help you do what you want. You'll have to set it to the same baseURL
regardless of what the client sends.

Hope that helps.

Regards,

Alfredo

On Fri, Mar 9, 2012 at 10:10 PM, Rob  wrote:

> Hi,
> I want to have a service used by several modules. I put the implementation
> servlet in a root web app, and connected to it, from the client side, by
> specifying the endpoint like this...
>
>   ServiceDefTarget t = (ServiceDefTarget)service;
>   t.setServiceEntryPoint("/commonService");
>
> So "/commonService" is url path that maps to the servlet.  But when it
> connects I get errors on the server side:
>
>   ERROR: The serialization policy file
> '/forums/discussions/7B344C69AD493C1EC707EC98FE148AA0.gwt.rpc' was not
> found;
>   did you forget to include it in this deployment?
>
> So it appears that on the server side, in the shared web app, it's looking
> for an rpc file with a path "forums/discussions" which is specific to the
> client module.  I can get things to work by copying these files to the
> shared web app, but that means I'll have to create copies of the .rpc files
> at different paths for every client that uses the shared service.
>
> Is there way way to avoid this by telling the servlet where to find the
> rpc files, or ... ?
>
> thanks,
> Rob
>
>  --
> 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/-/iIzZ0K7XhEgJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How can I run a GWT application in full screen mode

2012-03-06 Thread Alfredo Quiroga-Villamil
I am not sure if this applies to the question asked here, but there are
some cases where it is convenient to hide the address bar for example. This
is particularly useful for mobile web apps where you want the app to look
and feel like it's native and you want to do it serving it as a webpage,
not using the phonegap or other's packaging mechanisms out there. I didn't
read the whole thing but Marco you might want to take a look at:

https://groups.google.com/group/iscroll/browse_thread/thread/dc84f2f87a459d0?tvc=2&pli=1

Best regards,

Alfredo

On Tue, Mar 6, 2012 at 3:11 PM, JoseM  wrote:

> Please don't post the same question on different threads..
>
> But the real answer is that it can't be done anymore with modern browsers
> -- which is a good thing. I know that Chrome and/or Firefox both allow you
> to override javascript which tries to hide the address bar and other
> elements.  I personally hate when websites used to do that and I would be
> more inclined to navigate away from the page and/or block the site if it
> did. In addition, doing a window.open like that could be interpreted as a
> popup by some browsers which will trigger a popup blocker and the window
> would not open at all (unless the user instructed it to do so).
>
> If you want full screen you can ASK the user to go into full screen mode
> (such as by pressing F11), or you can deploy the application to computers
> which you totally control and turn into kiosks that run the browser in full
> screen moe.
>
> On Tuesday, March 6, 2012 1:55:13 PM UTC-5, Marco wrote:
>>
>>
>> Have you found a solution in the meantime?
>> @Stevko: Good to know but do you have a solution with example anyway?
>>
>
> On Tuesday, March 6, 2012 1:55:13 PM UTC-5, Marco wrote:
>>
>>
>> Have you found a solution in the meantime?
>> @Stevko: Good to know but do you have a solution with example anyway?
>>
>  --
> 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/-/bAbkPfc6NUsJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Design question - Multiple step customer registration process

2012-03-02 Thread Alfredo Quiroga-Villamil
A view with a Card Layout (DeckLayout) should help you there. You are
essentially building a wizard like form at that point.

In your wizard-like form, you can activate each view and every time you hit
next/back you are updating your wizard model which you can then access upon
submit or Finish.

Best regards,

Alfredo

On Fri, Mar 2, 2012 at 12:13 PM, Olivier  wrote:

> Hi Everyone,
>
> I have been playing around with GWT / GAE for a few weeks now and
> really appreciate the functionalities offered. The web application I
> am building is designed around MVC as explained in the various
> tutorials.
>
> However for one type of process (customer registration form), we have
> to split the process in three steps. Each step should be rendered on a
> different screen. That is,
>
>   --> Step 1 : The customer fills-in some information then pushes on
> the "Next" button
>
>   --> Step 2 : The customer fills-in additional information then
> pushes on the "Next button
>
>--> Step 3 : The customer provides the final information then
> pushes on the "Register" button
>
> These three steps can be easily coded using a different view for each
> screen and pushing on the "Next" button generates an event in the
> event bus. However, coding this way would mean that if the user pushes
> the "back" button on the web browser, the information in the form
> would be lost.
>
> Do you have any design pattern to code this kind of multiple step
> process in GWT ?
>
> Thanks a lot for your help,
>
> Olivier
>
> --
> 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.
>
>


-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: MVP event generation

2012-02-21 Thread Alfredo Quiroga-Villamil
I suspect the call that creates the chart is in your presenter. After you
add the widget, you should call it.

Best regards,

Alfredo

On Tue, Feb 21, 2012 at 1:43 AM, Nitheesh Chandran <
nithe...@dotentreprise.com> wrote:

> Yeah that helped me to display the DialogBox when the user clicks on
> the cell. i have used like this
>
> db.setWidget(new LineView());
>
> Now the DialogBox is displaying but i am creating a chart in the
> LineView() with database records. That chart is not coming. But when i
> simply use by passing a token like this in the AppController (not
> using any click event ,just passing the token "chart" )  ,it works
>
>  if (token.equals("chart")) {
>presenter = new
> ChartGenericPresenter(rpcService,eventBus,new
> LineView());
>
>   If i use the above code. The chart will come in the DialogBox. But
> unfortunately i want to display the chart depending on the user event.
> So like you said i used  db.setWidget(new LineView());
>
> And now DialogBox is showing but no chart inside
>
>
>
>
> On Feb 21, 11:16 am, Alfredo Quiroga-Villamil 
> wrote:
> > It seems as if the call:
> >
> > *db.setWidget((IsWidget) new
> ChartGenericPresenter(rpcService,eventBus,new
> > LineView()));*
> >
> > is not accurate. You are passing to a DialogBox, which is ultimately
> > extending SimplePanel, a presenter and not a widget. The flow would be
> more
> > or less as follows:
> >
> > 1. Instantiate the view.
> > 2. Instantiate your presenter.
> > 3. Set the presenter on your view.
> > 4. Add the view to your widget (DialogBox) in this case.
> >
> > Regards,
> >
> > Alfredo
> >
> > On Tue, Feb 21, 2012 at 12:09 AM, Nitheesh Chandran <
> >
> >
> >
> >
> >
> >
> >
> > nithe...@dotentreprise.com> wrote:
> > > Hello ,
> >
> > > I am working on a MVP project. I want to generate an event when the
> > > user clicks on the FlexTable cell. So using the MVP pattern i have
> > > created a event class and its corresponding handler interface in the
> > > event package. And the following way i fired the event. I want anyone
> > > of you to tell me is this the correct way of generating events and i
> > > am getting exceptions when i am implementing some "what to do" code on
> > > the successful event generation
> >
> > >  The code below shows the event firing when the user clicks on the
> > > cell of the FlexTable
> >
> > >table.addTableListener(new TableListener() {
> >
> > >@Override
> > >public void onCellClicked(SourcesTableEvents
> > > sender, int row, int
> > > cell) {
> >
> > >eventBus.fireEvent(new ChartEvent());
> >
> > >}
> >
> > >});
> >
> > >   Suppose i want to generate a chart when the user clicks on the
> > > cell ,i would be writing the code for that like this
> >
> > >   eventBus.addHandler(ChartEvent.TYPE, new
> > > ChartEventHandler() {
> >
> > >@Override
> > >public  void ChartEvent(ChartEvent event) {
> > >Window.alert("event created" );
> >
> > >DialogBox db=new DialogBox();
> >
> > >db.setWidget( (IsWidget) new
> > > ChartGenericPresenter(rpcService,eventBus,new LineView()));
> >
> > >db.show();
> >
> > >}
> > >});
> >
> > > }
> >
> > > Where ChartGenericPresenter is the presenter and LineView() is its
> > > view. I am getting the following exception while i am using this
> >
> > > com.google.gwt.event.shared.UmbrellaException: One or more exceptions
> > > caught, see full set in UmbrellaException#getCauses
> > >at
> > >
> com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:
> > > 129)
> > >at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:124)
> > >at
> > > com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:
> > > 116)
> > >at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:
> > > 172)
> > >at com.google.gwt.user.client.

Re: Example and source of how I like to build wigets and use unit testing on them

2012-02-19 Thread Alfredo Quiroga-Villamil
Found the site to be really useful; loved the event binding link.

Great work!

Thanks,

Alfredo

On Sun, Feb 19, 2012 at 3:47 PM, Brandon Donnelson
wrote:

> I made a small demo of how I like to build units or widgets in GWT. I also
> show how I test those units.
>
> https://sites.google.com/site/mygwtexamples/home/testing/widgets
>
> Brandon Donnelson
> http://c.gwt-examples.com
> http://www.arcbees.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/-/oOAgiaqQQeEJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Highlight a div

2012-02-17 Thread Alfredo Quiroga-Villamil
After you add the style, give it a few seconds and remove it. You can try
something like:

new Timer() {
@Override

public void run() {
// Remove the CSS that was added after 5
seconds for example.
}
   }.schedule(5000);
Regards,

Alfredo

On Fri, Feb 17, 2012 at 2:41 PM, Deepak Singh wrote:

> Hi All,
>
> I need to highlight a particular div area after a certain event somewhere
> else.
> I can  change the background color but i need to achieve it by
> highlighting the div only for few milliseconds.
>
> How can i do this?
>
> Thaks
> Deepak Singh
>
> --
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: All of a sudden CSS style is missing in the host page

2012-02-07 Thread Alfredo Quiroga-Villamil
Umm, kind of hard to tell but some questions I would ask myself:

- Is this in Dev Mode or it happens both in dev and after the application
is built?
- Is this when the app is first loaded or the result of going somewhere,
making an ajax call, loading a widget etc...?
- "app stopped showing up properly in a browser". Is it under source
control? Do you know the last time it worked as expected? What changed,
what was added to that portion of the code?

Those are things that I would look into first. More drilling to come after
those two questions are answered. Ideally but not easy perhaps would be to
narrow it down to a small example that duplicates the issue.

Regards,

Alfredo

On Tue, Feb 7, 2012 at 4:04 PM, jogo  wrote:

> Hi Guys,
>
> my GWT app stopped showing up properly in a browser. The cause, at
> least what I think, is the missing piece of CSS in a DIV element. But
> I can't figure out, what is causing this issue. So any help is
> appreciated.
>
> Basically, what I've found out is this:
>
> Before the HTML markup for the host page was like this:
>
> 
>  
> 
>
> Now it looks like this.
>
> 
>  
> 
>
> 'left: 0px; top: 0px; right: 0px; bottom: 0px;' is missing in the DIV
> element. The DIV has 0x0 px size and therefore the content (app)
> wrapped in the DIV is not displayed at all. When I manually apply the
> missing CSS style in Web Inspector, the app shows up correctly.
>
> This stuff is generated by GWT, so I have no idea how to fix it and
> what could have caused this.
>
> Can you direct me in the right direction?
>
> --
> 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.
>
>


-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Activity & Places - Remove & Add of a widget for every new activity - Why?

2012-02-05 Thread Alfredo Quiroga-Villamil
Tx, appreciate the response.

Alfredo

On Sun, Feb 5, 2012 at 11:19 AM, Thomas Broyer  wrote:

> I don't think adding/removing is any more costly than showing/hiding, but
> even then, you could make it work that way (show/hide) by simply providing
> a DeckLayoutPanel (or an AcceptsOneWidget wrarpper around a DeckPanel). The
> problem with such an approach is when your activities don't reuse their
> views, you'd absolutely need a way to clean-up the "widget cache".
>
> --
> 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/-/bvTvUgq93fAJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Activity & Places - Remove & Add of a widget for every new activity - Why?

2012-02-04 Thread Alfredo Quiroga-Villamil
Hello All:

I had a quick question regarding the implementation of Activity & Places.

During the implementation of A&P, specifically when working with the
activity, one overrides a method:

public void start(AcceptsOneWidget panel, EventBus eventBus) {

As seen above, the interface indicates that the container panel only takes
on widget or child. The consequence of this is that every time a new
activity is called, the child of the container panel is removed, the widget
to be added is also removed from any potential parent and then added to the
container panel.

Assuming I interpreted the code that handles this correctly, my question
is: Why the decision of adding/removing Vs having a Container Panel with a
Card Layout that takes widgets activating them when needed. In this case it
could be done in the activity start area.

I have tried to look around to see if somebody else asked this before and I
might even be missing the obvious, but I am particularly interested in the
rational behind the add/remove vs card layout approach here. I am thinking
it might be related to saving resources perhaps by having less elements
added to the DOM, but one would think there is a penalty also to pay when
adding/removing these views whenever a new place in the application is
reached.

Appreciate in advance any explanations/clarifications regarding this.

Thanks,

Alfredo
-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to force scroll of DataGrid to top on reload

2012-01-26 Thread Alfredo Quiroga-Villamil
This is an "end of day - not thinking much" answer since I've never used
the DataGrid in GWT but I would guess it has a SelectionModel of some sort.
See if you can call on datagrid getSelectionModel().select( or
something along those lines and this might do the trick. By calling
something along the lines of select on the selection model, you should get
the behavior you are looking for. Again, just guessing here which I don't
typically do but today I feel like it.

Hope this helps you.

Regards,

Alfredo

On Thu, Jan 26, 2012 at 5:34 PM, Bill M  wrote:

> Hello,
>
> I would like to know if anyone knows how to set the scroll position of
> the DataGrid widget to the top, following a reload?  I don't see any
> method that allow you to do this.
>
> Does anyone know how?
>
> Thanks,
> Bill
>
> --
> 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.
>
>


-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



  1   2   >