Re: How do I get the HTML code of a web page in GWT?

2016-03-04 Thread Davide Micheletti
i need to get it in GWT so i can comunicate with other GWT app.

2016-03-04 15:29 GMT+01:00 Davide Micheletti :

> i need to get the HTML of the page where there is the link for the
> download. And i need to get it in GWT.
>
> i need the equivalent of PHP code
> $html = file_get_contents('www.example.com');
>
>
> 2016-03-04 15:18 GMT+01:00 Alain Ekambi :
>
>> Ok but I m having a hard time understanding the relation with your
>> original question or with GWT at all.
>> On 4 Mar 2016 15:13, "Davide Micheletti" 
>> wrote:
>>
>>> not exactly, i mean download the files when i need it.
>>> i run the app and it downloads the files.
>>> There are many directory with many files, i need to download the last
>>> files created/modified.
>>>
>>> 2016-03-04 15:05 GMT+01:00 Alain Ekambi :
>>>
>>>> You mean download the file everytime is created on the server ?
>>>>
>>>> On 4 March 2016 at 14:05, Davide Micheletti 
>>>> wrote:
>>>>
>>>>> I've an ever open VPN and a webserver generates some CSV files.
>>>>> What i need to do is download the file automaticaly.
>>>>>
>>>>> 2016-03-04 13:57 GMT+01:00 Alain Ekambi :
>>>>>
>>>>>> Can you elaborate on what you are trying to do ?
>>>>>>
>>>>>> One way could be to do it through ajax. senf the url  of the page to
>>>>>> the server have a servlet read the page send the result back to your 
>>>>>> client.
>>>>>>
>>>>>>
>>>>>> On 4 March 2016 at 13:28, Davide Micheletti >>>>> > wrote:
>>>>>>
>>>>>>> Hi all,
>>>>>>> i'm using GWT 2.6 and i need to get the HTML code of a web page.
>>>>>>> How can i do this?
>>>>>>>
>>>>>>> Thanks in advance.
>>>>>>>
>>>>>>> Best regards
>>>>>>>
>>>>>>>
>>>>>>> Davide
>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "GWT Users" 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
>>>>>>> https://groups.google.com/group/google-web-toolkit.
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Alain Ekambi
>>>>>>
>>>>>> Co-Founder
>>>>>>
>>>>>> Ahomé Innovation Technologies
>>>>>>
>>>>>> http://www.ahome-it.com/ <http://ahome-it.com/>
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "GWT Users" 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
>>>>>> https://groups.google.com/group/google-web-toolkit.
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>&g

Re: How do I get the HTML code of a web page in GWT?

2016-03-04 Thread Davide Micheletti
i need to get the HTML of the page where there is the link for the
download. And i need to get it in GWT.

i need the equivalent of PHP code
$html = file_get_contents('www.example.com');


2016-03-04 15:18 GMT+01:00 Alain Ekambi :

> Ok but I m having a hard time understanding the relation with your
> original question or with GWT at all.
> On 4 Mar 2016 15:13, "Davide Micheletti"  wrote:
>
>> not exactly, i mean download the files when i need it.
>> i run the app and it downloads the files.
>> There are many directory with many files, i need to download the last
>> files created/modified.
>>
>> 2016-03-04 15:05 GMT+01:00 Alain Ekambi :
>>
>>> You mean download the file everytime is created on the server ?
>>>
>>> On 4 March 2016 at 14:05, Davide Micheletti 
>>> wrote:
>>>
>>>> I've an ever open VPN and a webserver generates some CSV files.
>>>> What i need to do is download the file automaticaly.
>>>>
>>>> 2016-03-04 13:57 GMT+01:00 Alain Ekambi :
>>>>
>>>>> Can you elaborate on what you are trying to do ?
>>>>>
>>>>> One way could be to do it through ajax. senf the url  of the page to
>>>>> the server have a servlet read the page send the result back to your 
>>>>> client.
>>>>>
>>>>>
>>>>> On 4 March 2016 at 13:28, Davide Micheletti 
>>>>> wrote:
>>>>>
>>>>>> Hi all,
>>>>>> i'm using GWT 2.6 and i need to get the HTML code of a web page.
>>>>>> How can i do this?
>>>>>>
>>>>>> Thanks in advance.
>>>>>>
>>>>>> Best regards
>>>>>>
>>>>>>
>>>>>> Davide
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "GWT Users" 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
>>>>>> https://groups.google.com/group/google-web-toolkit.
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Alain Ekambi
>>>>>
>>>>> Co-Founder
>>>>>
>>>>> Ahomé Innovation Technologies
>>>>>
>>>>> http://www.ahome-it.com/ <http://ahome-it.com/>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Alain Ekambi
>>>
>>> Co-Founder
>>>
>>> Ahomé Innovation Technologies
>>>
>>> http://www.ahome-it.com/ <http://ahome-it.com/>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "GWT Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-web-toolkit+unsubscr...

Re: How do I get the HTML code of a web page in GWT?

2016-03-04 Thread Davide Micheletti
not exactly, i mean download the files when i need it.
i run the app and it downloads the files.
There are many directory with many files, i need to download the last files
created/modified.

2016-03-04 15:05 GMT+01:00 Alain Ekambi :

> You mean download the file everytime is created on the server ?
>
> On 4 March 2016 at 14:05, Davide Micheletti 
> wrote:
>
>> I've an ever open VPN and a webserver generates some CSV files.
>> What i need to do is download the file automaticaly.
>>
>> 2016-03-04 13:57 GMT+01:00 Alain Ekambi :
>>
>>> Can you elaborate on what you are trying to do ?
>>>
>>> One way could be to do it through ajax. senf the url  of the page to the
>>> server have a servlet read the page send the result back to your client.
>>>
>>>
>>> On 4 March 2016 at 13:28, Davide Micheletti 
>>> wrote:
>>>
>>>> Hi all,
>>>> i'm using GWT 2.6 and i need to get the HTML code of a web page.
>>>> How can i do this?
>>>>
>>>> Thanks in advance.
>>>>
>>>> Best regards
>>>>
>>>>
>>>> Davide
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Alain Ekambi
>>>
>>> Co-Founder
>>>
>>> Ahomé Innovation Technologies
>>>
>>> http://www.ahome-it.com/ <http://ahome-it.com/>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> Alain Ekambi
>
> Co-Founder
>
> Ahomé Innovation Technologies
>
> http://www.ahome-it.com/ <http://ahome-it.com/>
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How do I get the HTML code of a web page in GWT?

2016-03-04 Thread Davide Micheletti
I've an ever open VPN and a webserver generates some CSV files.
What i need to do is download the file automaticaly.

2016-03-04 13:57 GMT+01:00 Alain Ekambi :

> Can you elaborate on what you are trying to do ?
>
> One way could be to do it through ajax. senf the url  of the page to the
> server have a servlet read the page send the result back to your client.
>
>
> On 4 March 2016 at 13:28, Davide Micheletti 
> wrote:
>
>> Hi all,
>> i'm using GWT 2.6 and i need to get the HTML code of a web page.
>> How can i do this?
>>
>> Thanks in advance.
>>
>> Best regards
>>
>>
>> Davide
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> Alain Ekambi
>
> Co-Founder
>
> Ahomé Innovation Technologies
>
> http://www.ahome-it.com/ <http://ahome-it.com/>
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


How do I get the HTML code of a web page in GWT?

2016-03-04 Thread Davide Micheletti
Hi all,
i'm using GWT 2.6 and i need to get the HTML code of a web page.
How can i do this?

Thanks in advance.

Best regards


Davide

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CSS ignored in SuperDev Mode GWT 2.6.1

2015-09-04 Thread Davide Micheletti
Hello Thomas,
the URL of my webapp is http://127.0.0.1:/Control_Panel.html.
i link the CSS in the HTML page with   and in the Control_Panel.gwt.xml with
 

2015-09-04 12:37 GMT+02:00 Thomas Broyer :

>
>
> On Friday, September 4, 2015 at 11:54:36 AM UTC+2, Davide Micheletti wrote:
>>
>> Hi all,
>> i just upgraded my GWT apps from 2.5.1 to 2.6.1 and i start the SuperDev
>> Mode.
>> It compile everything right but when i launch the app my CSS file is
>> ignored.
>> Here the Warn
>> [WARN] ignored get request: /MyStyle.css
>>
>> The strange thing is that not all the css is ignored but only the css
>> that overwrite the default widgets css.
>>
>> What can i do?
>>
>
> As I see it, the problem is that the request goes to the CodeServer rather
> than your web server (DevMode?)
> How do you launch the app (which URL), and what URL reference is used to
> link to the MyStyle.css (and by which mean is it loaded) ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


CSS ignored in SuperDev Mode GWT 2.6.1

2015-09-04 Thread Davide Micheletti
Hi all,
i just upgraded my GWT apps from 2.5.1 to 2.6.1 and i start the SuperDev
Mode.
It compile everything right but when i launch the app my CSS file is
ignored.
Here the Warn
[WARN] ignored get request: /MyStyle.css

The strange thing is that not all the css is ignored but only the css that
overwrite the default widgets css.

What can i do?

Thanks.

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


Re: How to change the Size of the ListBox of the datePicker in GWT?

2014-09-24 Thread Davide Micheletti
i think that you can do something like these:

CSS

> datePickerMonthSelector > select {
>font-size: 500%;
> }



On Wed, Sep 24, 2014 at 1:07 PM, Tom  wrote:

> I am building a mobile website and thus I have a need to many all GWT Gui
> to become bigger.
>
> For example, my css in my gwt mobile app is like this:
>
> .myNormalMobileFont{
> font-size: 500%;
> }
>
> .myNormalLargeFont{
> font-size: 700%;
>  }
>
> And Here is Css code of DateBox and DatePicker
>
> .gwt-DateBox {
>   padding: 15px 16px;
>   border: 3px solid #ccc;
>   border-top: 3px solid #999;
>   font-size: 500%;
> }
> .gwt-DateBox input {
>   width: 8em;
> }
> .dateBoxFormatError {
>   background: #ff;
> }
> .dateBoxPopup {
> }
>
> .gwt-DatePicker {
>   border: 3px solid #ccc;
>   border-top:3px solid #999;
>   cursor: default;
> }
> .gwt-DatePicker td,
> .datePickerMonthSelector td:focus {
>   outline: none;
> }
> .datePickerDays {
>   width: 100%;
>   background: white;
> }
> .datePickerDay,
> .datePickerWeekdayLabel,
> .datePickerWeekendLabel {
>   font-size: 255%;
>   text-align: center;
>   padding: 12px;
>   outline: none;
>   font-weight:bold;
>   color:#333;
>   border-right: 3px solid #EDEDED;
>   border-bottom: 3px solid #EDEDED;
> }
> .datePickerWeekdayLabel,
> .datePickerWeekendLabel {
>   background: #fff;
>   padding: 0px 12px 6px;
>   cursor: default;
>   color:#666;
>   font-size:210%;
>   font-weight:normal;
> }
> .datePickerDay {
>   padding: 12px 21px;
>   cursor: hand;
>   cursor: pointer;
> }
> .datePickerDayIsWeekend {
>   background: #f7f7f7;
> }
> .datePickerDayIsFiller {
>   color: #999;
>   font-weight:normal;
> }
> .datePickerDayIsValue {
>   background: #d7dfe8;
> }
> .datePickerDayIsDisabled {
>   color: #AA;
>   font-style: italic;
> }
> .datePickerDayIsHighlighted {
>   background: #F0E68C;
> }
> .datePickerDayIsValueAndHighlighted {
>   background: #d7dfe8;
> }
> .datePickerDayIsToday {
>   padding: 3px;
>   color: #fff;
>   background: url(images/hborder.png) repeat-x 0px -2607px;
> }
>
> .datePickerMonthSelector {
>   width: 100%;
>   padding: 3px 0 15px 0;
>   background: #fff;
> }
> td.datePickerMonth {
>   text-align: center;
>   vertical-align: middle;
>   white-space: nowrap;
>   font-size: 300%;
>   font-weight: bold;
>   color: #333;
> }
> .datePickerPreviousButton,
> .datePickerNextButton {
>   font-size: 360%;
>   line-height: 1em;
>   color: #3a6aad;
>   cursor: hand;
>   cursor: pointer;
>   font-weight: bold;
>   padding: 0px 12px;
>   outline: none;
> }
>
> After that, the GuiLookLike this [image: enter image description here]
>
> Ass u can see the Text inside the Year and Month listbox is very small, so
> how to style them to make them bigger?, probally using font-size.
>
>
>
> http://stackoverflow.com/questions/26015314/how-to-change-the-size-of-the-listbox-of-the-datepicker-in-gwt
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: TabLayoutPanel vs. DecoratedTabPanel

2014-09-08 Thread Davide Micheletti
you can replace the classes of TabLayoutPanel in your CSS..
For example to get the round corners, you can do something like this:

.gwt-TabLayoutPanel .gwt-TabLayoutPanelContentContainer {
>   border-radius: 5px 5px 5px 5px;
>   -moz-border-radius: 5px 5px 5px 5px;
>   -webkit-border-radius: 5px 5px 5px 5px;
>   border: 1px solid #b3b3b3;
>   background-color: #fff;
> }



To get start to replace the style i suggest you to copy and paste in your
style.css the the classes of TabLayoutPanel from the clean.css
In particular you would find these classes:

.gwt-TabLayoutPanel {
> }
> .gwt-TabLayoutPanel .gwt-TabLayoutPanelTabs {
>   background: #ccc;
>   padding-top: 6px;
>   padding-left: 5px;
> }
> .gwt-TabLayoutPanel .gwt-TabLayoutPanelContentContainer {
>   border-color: #ccc;
>   border-style: solid;
>   border-width: 0px 1px 1px;
> }
> .gwt-TabLayoutPanel .gwt-TabLayoutPanelContent {
>   overflow: hidden;
>   padding: 6px;
> }
> .gwt-TabLayoutPanel .gwt-TabLayoutPanelTab {
>   margin-left: 4px;
>   padding: 4px 8px 4px 8px;
>   cursor: pointer;
>   cursor: hand;
>   color: white;
>   font-weight: normal;
>   text-align: center;
>   background: #8E8E8E;
>   -moz-border-radius: 3px 3px 0px 0px;
>   border-radius: 3px 3px 0px 0px;
> }
> .gwt-TabLayoutPanel .gwt-TabLayoutPanelTab-selected {
>   cursor: default;
>   background: white;
>   color: #333;
>   font-weight: bold;
> }




On Mon, Sep 8, 2014 at 9:14 PM, KGD  wrote:

> How can I make the TabLayouPanel have the same appearance as the
> DecoratedTabPanel?  Specifically, the DecoratedTabPanel has the rounded
> edges, separated tabs and generally a cleaner appearance.
>
> Thanks,
> Keith
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: OnClick event fired more than one time for one click

2014-08-24 Thread Davide Micheletti
i had the same problems some months ago..
My problem was that i had a global widget and i call more than one time the
function that declare the onClick event..



On Sun, Aug 24, 2014 at 4:44 PM, Fernando Castro 
wrote:

> In my practice i have seen this behavior a few times and i can say that,
> this double click is a matter of several factors, OS, browser version, the
> mouse the user have.
>
> But i had a few times the following problem.
> i had a flow where i added a click handler to my widget, however this flow
> was called more tha once, in result, i had added 2 click handles to the
> same component.
> 1 click => handler invoked 2 times. and so on.
>
> Em terça-feira, 22 de julho de 2014 13h34min56s UTC-3, new_newbie escreveu:
>
>> Hi,
>>
>> I have an image and I have installed an ClickHandler. More than one event
>> are sent when the image is clicked once. The number of click events are not
>> random; there is a pattern. Any clue?
>>
>> Thanks a lot
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: How to make Div and Image flow inline in GWT?

2014-08-01 Thread Davide Micheletti
.flowInline {
 float: left;
}

add these css class
.clr {
 clear: both;
}

When you have somthings "floatted" you must "clear" it.
http://www.w3schools.com/cssref/pr_class_clear.asp
http://stackoverflow.com/questions/12871710/why-clear-both-css


   
   
   

   
   
   







On Wed, Jul 30, 2014 at 11:48 AM, Tom  wrote:

> There is following code in UiBinder
>
> 
>
>
>
>
>
> in Css
>
> .flowInline{
> display:inline-block;}
>
> This is the requirement. I want the *text1, image1, text2, image2*, flow
> in the same line.
>
> text1Div.setInnerSafeHtml(SafeHtmlUtils.fromSafeConstant("Please: 
> Click"));
> text2Div.setInnerSafeHtml(SafeHtmlUtils.fromSafeConstant("and Click"));
>
> It should show the result:
>
> Please:
> Click [image1] and
> Click [image2]
>
> But somehow it didn't work
>
> If I don't use Div in UiBinder
>
> 
>Please: 
>Click  and 
>Click 
>
> Then it work fine
>
> So, how to fix it?
>
>
> http://stackoverflow.com/questions/25033666/how-to-make-div-and-image-flow-inline-in-gwt
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Best way to share common css defs in a GWT application with multi-module

2014-07-28 Thread Davide Micheletti
>
>
> The easiest way to do this is to create a common module that the two
> modules inherit.  You would put the CSS in the parent, and include it from
> both the child modules.
> Here is an example.  Suppose you have two modules:
> com.company.apps.foo.Foo and com.company.apps.bar.Bar.  These would have
> the following Java source tree:
> src/
> com/
> company/
> apps/
> foo/
> Foo.gwt.xml
> client/Foo.java
> public/Foo.html
> bar/
> Bar.gwt.xml
> client/Bar.java
> public/Bar.html
> You want to put "company.css" somewhere where it is available to both.  To
> do this, you might create a new directory: like
> src/com/company/apps/public/ and then put your company.css file in there.
> You would then need to create a GWT module for Foo and Bar to inherit
> from.  Your new tree would look like this:
> src/
> com/
> company/
> apps/
> public/company.css
> Common.gwt.xml
> foo/
> Foo.gwt.xml
> client/Foo.java
> public/Foo.html
> bar/
> Bar.gwt.xml
> client/Bar.java
> public/Bar.html
> Common.gwt.xml would look something like this:
> 
> 
> 
> 
> Then you would add a line like this to Foo.gwt.xml and Bar.gwt.xml:
> 
> This will cause Foo and Bar to inherit all the settings from Common.  The
> particular setting you are interested in will be the 'public' directory
> from Common, which contains your shared CSS file.
> Give that a try, and see if it works for you!  Hope that helps,
> - Dan Morrill


FROM:
https://groups.google.com/forum/#!msg/google-web-toolkit/YMJKAm4pj7I/HBU8dVU48w8J

Regards

Davide


On Mon, Jul 28, 2014 at 1:52 PM, Federico De Faveri 
wrote:

> I've a GWT application split in multiple modules.
> I need to share a set of common defs, a color palette for example, between
> cssresources and uibinder files in different modules.
> How can I do it?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: GWT showcase site 502 error

2014-06-19 Thread Davide Micheletti
while we wait the new URL i found it..
https://ongwt.googlecode.com/svn/trunk/com.google.gwt.sample.showcase.Showcase/Showcase.html


On Thu, Jun 19, 2014 at 10:15 AM, Thomas Broyer  wrote:

> Apparently, the cluster it was hosted on has been shut down without
> notice. We'll move them soon, but the URL will unfortunately change, I'm
> afraid.
>
>
> On Wednesday, June 18, 2014 8:53:11 AM UTC+2, Federico De Faveri wrote:
>>
>> Accessing the GWT showcase site I get a 502 error.
>>
>> http://gwt.googleusercontent.com/samples/Showcase/Showcase.html
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Why GWT app didn't fire when users click on the href link that have the domain that is the same as host domain?

2014-05-28 Thread Davide Micheletti
or better which type of method did you use to GET the id


On Wed, May 28, 2014 at 9:54 AM, Davide Micheletti  wrote:

> which type of reload did you use?
>
>
> On Wed, May 28, 2014 at 9:08 AM, Tom  wrote:
>
>> I am using GWTP
>>
>> Here is the problem
>>
>> I have a customer page like this
>> http://127.0.0.1:/MyProject.html?gwt.codesvr=127.0.0.1:9997#!cust;custID=1
>>
>> Suppose I have this code:
>>
>> InlineHTML myLink=new InlineHTML("http://car.com"; > car  ");
>>
>> When clicking on car link it went to car page.
>>
>> Ok, now I have other InlineHTML
>>
>> InlineHTML myLink=new InlineHTML("http://127.0.0.1:
>> /MyProject.html?gwt.codesvr=127.0.0.1:9997#!cust;custID=2\ 
>> <http://127.0.0.1:9997#!cust;custID=2%5C>" > cust2  ");
>>
>> When clicking on cust2, the url changed from #!cust;custID=1 to
>> #!cust;custID=2 & just stayed there, it did not refresh the whole page
>> or fire the page as It did in the "car" link example.
>>
>> I have not deployed my app with a real domain yet, but I think GWT app
>> will not fire when users click on the href link that have the domain that
>> is the same as host domain.
>>
>> How to fix this simple issue?
>>
>>
>>
>> http://stackoverflow.com/questions/23904871/why-gwt-app-didnt-fire-when-users-click-on-the-href-link-that-have-the-domain-t
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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


Re: Why GWT app didn't fire when users click on the href link that have the domain that is the same as host domain?

2014-05-28 Thread Davide Micheletti
which type of reload did you use?


On Wed, May 28, 2014 at 9:08 AM, Tom  wrote:

> I am using GWTP
>
> Here is the problem
>
> I have a customer page like this
> http://127.0.0.1:/MyProject.html?gwt.codesvr=127.0.0.1:9997#!cust;custID=1
>
> Suppose I have this code:
>
> InlineHTML myLink=new InlineHTML("http://car.com"; > car  ");
>
> When clicking on car link it went to car page.
>
> Ok, now I have other InlineHTML
>
> InlineHTML myLink=new InlineHTML("http://127.0.0.1:
> /MyProject.html?gwt.codesvr=127.0.0.1:9997#!cust;custID=2\ 
> " > cust2  ");
>
> When clicking on cust2, the url changed from #!cust;custID=1 to
> #!cust;custID=2 & just stayed there, it did not refresh the whole page or
> fire the page as It did in the "car" link example.
>
> I have not deployed my app with a real domain yet, but I think GWT app
> will not fire when users click on the href link that have the domain that
> is the same as host domain.
>
> How to fix this simple issue?
>
>
>
> http://stackoverflow.com/questions/23904871/why-gwt-app-didnt-fire-when-users-click-on-the-href-link-that-have-the-domain-t
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Dynamic column

2014-05-26 Thread Davide Micheletti
Using FlexTable u can use the FlexTable.setWidget(row, column, WIDGET)
where you want i.e.:

FlexTable t = new FlexTable();
> t.setWidget(0, 0, new Button("W1"));
> t.setWidget(0, 1, new Button("W2"));
> t.setWidget(0, 2, new Button("W3"));
> t.setWidget(1, 0, new Button("W4"));
> t.setWidget(1, 1, new Button("W5"));
> t.setWidget(1, 2, new Button("W6"));
> t.setWidget(1, 3, new Button("W7"));


PS: there is setHTML(row, col, HTML) too i.e.:

t.setHTML(0, 0, "Link 1");
> ...
> ...




On Mon, May 26, 2014 at 5:01 PM, Kannan S  wrote:

> Hi  All
>
> Is there any way to display say 7 items in 2 rows in GWT.
> I also use GXT sencha. Is there a way to implement this in either GWT or
> GXT?
> The values should be clickable with and URL embedded in it which should
> open a new page
>
> Please advise
> Kannan.S
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


MESSAGE: Communications link failure

2014-05-14 Thread Davide Micheletti
Hi all,
today my WebApp has started to give me this error

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException
> MESSAGE: Communications link failure
> Last packet sent to the server was 1 ms ago.
> STACKTRACE:
> com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications
> link failure
> Last packet sent to the server was 1 ms ago.
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
> at
> com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
> at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2873)
> at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2763)
> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3299)
> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)
> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)
> at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2543)
> at
> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1737)
> at
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2022)
> at
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1940)
> at
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1925)
> at
> com.macchina.server.GreetingServiceImpl.SQL_annulla_fase(GreetingServiceImpl.java:679)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
> at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
> at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at
> org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:324)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
> at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
> at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
> Caused by: java.net.SocketException: Software caused connection abort:
> recv failed
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(Unknown Source)
> at java.net.SocketInputStream.read(Unknown Source)
> at
> com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)
> at
> com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)
> at
> com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)
> at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2329)
> at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2774)
> ... 37 more
>
> ** END NESTED EXCEPTION **


from yesterday i've not changed nothing.. What's happen?

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


Re: How to create War file after complied GWT project?

2014-05-09 Thread Davide Micheletti
i've a project with 50k (client + server) code's rows and it is 30Mb..


On Fri, May 9, 2014 at 12:24 PM, Davide Micheletti  wrote:

> However 92 MB is really really BIG.. try to clean your project..
>
>
> On Fri, May 9, 2014 at 12:21 PM, Thomas Broyer  wrote:
>
>>
>>
>> On Friday, May 9, 2014 11:56:21 AM UTC+2, Tom wrote:
>>>
>>> Message:
>>>
>>> FAIL - Deploy Upload Failed, Exception: org.apache.tomcat.util.http.
>>> fileupload.FileUploadBase$SizeLimitExceededException: the request was
>>> rejected because its size (96180777) exceeds the configured maximum
>>> (52428800)
>>>
>>
>> 92Mb?! and without using any build tool or dependency management?
>>
>> Maybe pass "-deploy " to the GWT compiler when compiling
>> your app and clean-up the WEB-INF/deploy folder.
>> Also make sure you're not bundling gwt-user and/or gwt-dev.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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


Re: How to create War file after complied GWT project?

2014-05-09 Thread Davide Micheletti
However 92 MB is really really BIG.. try to clean your project..


On Fri, May 9, 2014 at 12:21 PM, Thomas Broyer  wrote:

>
>
> On Friday, May 9, 2014 11:56:21 AM UTC+2, Tom wrote:
>>
>> Message:
>>
>> FAIL - Deploy Upload Failed, Exception: org.apache.tomcat.util.http.
>> fileupload.FileUploadBase$SizeLimitExceededException: the request was
>> rejected because its size (96180777) exceeds the configured maximum
>> (52428800)
>>
>
> 92Mb?! and without using any build tool or dependency management?
>
> Maybe pass "-deploy " to the GWT compiler when compiling your
> app and clean-up the WEB-INF/deploy folder.
> Also make sure you're not bundling gwt-user and/or gwt-dev.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: How to create War file after complied GWT project?

2014-05-09 Thread Davide Micheletti
Go to the web.xml of the manager application (for instance it could be
under /tomcatX/webapps/manager/WEB-INF/web.xml.
Increase the max-file-size and max-request-size

   
  
  52428800
  52428800
  0




On Fri, May 9, 2014 at 11:56 AM, Tom  wrote:

> Message:
>
> FAIL - Deploy Upload Failed, Exception:
> org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
> the request was rejected because its size (96180777) exceeds the configured
> maximum (52428800)
>
> Desployed failed do u know how to chenge the max config?
>
> On Friday, May 9, 2014 7:27:48 PM UTC+10, Davide Micheletti wrote:
>
>> first zip
>> second rename to myApp.war
>> third load into webserver
>> fourth run
>>
>> if you use a tomcat server use his webapp manager and deploy your proj
>>
>>
>> On Fri, May 9, 2014 at 11:21 AM, Tom  wrote:
>>
>>> i used 2nd option, zip it as war.zip, then copy war.zip into webapps
>>> folder then change to myApp.war
>>>
>>> Now i entered
>>> http:/localhost:8080/myApp
>>>
>>> but i got error 404
>>>
>>> What does it mean? how to fix?
>>>
>>>
>>> On Friday, May 9, 2014 6:18:24 PM UTC+10, Davide Micheletti wrote:
>>>
>>>> is your project a Web Project??
>>>> Best way is to create a new Web project and copy data from old project
>>>> into web project.
>>>>
>>>> if not works see this:
>>>> http://www.eclipse.org/forums/index.php/t/64132/
>>>>
>>>>
>>>> On Fri, May 9, 2014 at 10:08 AM, Tom  wrote:
>>>>
>>>>> when using Eclipse, it say Module name is invalid
>>>>>
>>>>>
>>>>> On Friday, May 9, 2014 4:50:54 PM UTC+10, Davide Micheletti wrote:
>>>>>
>>>>>> zip the war folder and load it into the server and change the
>>>>>> extension to .war.. ;)
>>>>>> or use maven plugin..
>>>>>> if you use Eclipse:
>>>>>> right click on your project -> Export -> War File
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, May 9, 2014 at 7:31 AM, Tom  wrote:
>>>>>>
>>>>>>> I am quite confused about this area.
>>>>>>>
>>>>>>> Ok, I finished my app in eclipse so I clicked "GWT Compile Project"
>>>>>>>
>>>>>>> ...
>>>>>>>Compiling permutation 4...
>>>>>>>Compiling permutation 5...
>>>>>>>Compile of permutations succeeded
>>>>>>> Linking into C:\Users\myP\war\myApp
>>>>>>>Link succeeded
>>>>>>>Compilation succeeded -- 289.644s
>>>>>>>
>>>>>>> Now seem C:\Users\myP\war has many files like .log & folders like
>>>>>>> myApp, images, WEB-INF, myP.css, myP.html, style.css
>>>>>>>
>>>>>>> Then how to create war file from C:\Users\myP\war folder?
>>>>>>>
>>>>>>> --
>>>>>>> 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.
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>
>>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Google Web Toolkit" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to google-web-toolkit+unsubscr...@googlegroups.com.
>>>>> To post to this group, send email to google-we...@googlegroups.com.
>>>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Web Toolkit" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-web-toolkit+unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-we...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: How to create War file after complied GWT project?

2014-05-09 Thread Davide Micheletti
first zip
second rename to myApp.war
third load into webserver
fourth run

if you use a tomcat server use his webapp manager and deploy your proj


On Fri, May 9, 2014 at 11:21 AM, Tom  wrote:

> i used 2nd option, zip it as war.zip, then copy war.zip into webapps
> folder then change to myApp.war
>
> Now i entered
> http:/localhost:8080/myApp
>
> but i got error 404
>
> What does it mean? how to fix?
>
>
> On Friday, May 9, 2014 6:18:24 PM UTC+10, Davide Micheletti wrote:
>
>> is your project a Web Project??
>> Best way is to create a new Web project and copy data from old project
>> into web project.
>>
>> if not works see this:
>> http://www.eclipse.org/forums/index.php/t/64132/
>>
>>
>> On Fri, May 9, 2014 at 10:08 AM, Tom  wrote:
>>
>>> when using Eclipse, it say Module name is invalid
>>>
>>>
>>> On Friday, May 9, 2014 4:50:54 PM UTC+10, Davide Micheletti wrote:
>>>
>>>> zip the war folder and load it into the server and change the extension
>>>> to .war.. ;)
>>>> or use maven plugin..
>>>> if you use Eclipse:
>>>> right click on your project -> Export -> War File
>>>>
>>>>
>>>>
>>>> On Fri, May 9, 2014 at 7:31 AM, Tom  wrote:
>>>>
>>>>> I am quite confused about this area.
>>>>>
>>>>> Ok, I finished my app in eclipse so I clicked "GWT Compile Project"
>>>>>
>>>>> ...
>>>>>Compiling permutation 4...
>>>>>Compiling permutation 5...
>>>>>Compile of permutations succeeded
>>>>> Linking into C:\Users\myP\war\myApp
>>>>>Link succeeded
>>>>>Compilation succeeded -- 289.644s
>>>>>
>>>>> Now seem C:\Users\myP\war has many files like .log & folders like
>>>>> myApp, images, WEB-INF, myP.css, myP.html, style.css
>>>>>
>>>>> Then how to create war file from C:\Users\myP\war folder?
>>>>>
>>>>> --
>>>>> 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.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Web Toolkit" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-web-toolkit+unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-we...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: How to create War file after complied GWT project?

2014-05-09 Thread Davide Micheletti
is your project a Web Project??
Best way is to create a new Web project and copy data from old project into
web project.

if not works see this:
http://www.eclipse.org/forums/index.php/t/64132/


On Fri, May 9, 2014 at 10:08 AM, Tom  wrote:

> when using Eclipse, it say Module name is invalid
>
>
> On Friday, May 9, 2014 4:50:54 PM UTC+10, Davide Micheletti wrote:
>
>> zip the war folder and load it into the server and change the extension
>> to .war.. ;)
>> or use maven plugin..
>> if you use Eclipse:
>> right click on your project -> Export -> War File
>>
>>
>>
>> On Fri, May 9, 2014 at 7:31 AM, Tom  wrote:
>>
>>> I am quite confused about this area.
>>>
>>> Ok, I finished my app in eclipse so I clicked "GWT Compile Project"
>>>
>>> ...
>>>Compiling permutation 4...
>>>Compiling permutation 5...
>>>Compile of permutations succeeded
>>> Linking into C:\Users\myP\war\myApp
>>>Link succeeded
>>>Compilation succeeded -- 289.644s
>>>
>>> Now seem C:\Users\myP\war has many files like .log & folders like myApp,
>>> images, WEB-INF, myP.css, myP.html, style.css
>>>
>>> Then how to create war file from C:\Users\myP\war folder?
>>>
>>> --
>>> 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.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: How to create War file after complied GWT project?

2014-05-08 Thread Davide Micheletti
before change the extension and after load it into your server..


On Fri, May 9, 2014 at 8:50 AM, Davide Micheletti
wrote:

> zip the war folder and load it into the server and change the extension to
> .war.. ;)
> or use maven plugin..
> if you use Eclipse:
> right click on your project -> Export -> War File
>
>
>
> On Fri, May 9, 2014 at 7:31 AM, Tom  wrote:
>
>> I am quite confused about this area.
>>
>> Ok, I finished my app in eclipse so I clicked "GWT Compile Project"
>>
>> ...
>>Compiling permutation 4...
>>Compiling permutation 5...
>>Compile of permutations succeeded
>> Linking into C:\Users\myP\war\myApp
>>Link succeeded
>>Compilation succeeded -- 289.644s
>>
>> Now seem C:\Users\myP\war has many files like .log & folders like myApp,
>> images, WEB-INF, myP.css, myP.html, style.css
>>
>> Then how to create war file from C:\Users\myP\war folder?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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


Re: How to create War file after complied GWT project?

2014-05-08 Thread Davide Micheletti
zip the war folder and load it into the server and change the extension to
.war.. ;)
or use maven plugin..
if you use Eclipse:
right click on your project -> Export -> War File



On Fri, May 9, 2014 at 7:31 AM, Tom  wrote:

> I am quite confused about this area.
>
> Ok, I finished my app in eclipse so I clicked "GWT Compile Project"
>
> ...
>Compiling permutation 4...
>Compiling permutation 5...
>Compile of permutations succeeded
> Linking into C:\Users\myP\war\myApp
>Link succeeded
>Compilation succeeded -- 289.644s
>
> Now seem C:\Users\myP\war has many files like .log & folders like myApp,
> images, WEB-INF, myP.css, myP.html, style.css
>
> Then how to create war file from C:\Users\myP\war folder?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Open Browser search tool

2014-04-29 Thread Davide Micheletti
Hi all,
i want to display the search tool of the browser when i load my application
and i want to display it anytime..
There is a way to do it in GWT??

Thanks in advance

Davide

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


Re: Exception while dispatching incoming RPC call

2014-04-24 Thread Davide Micheletti
what's the code at RPC.java:579?

if you have a DB, does the app connect succesfully to the DB??


On Thu, Apr 24, 2014 at 1:16 AM, Charles Nelson wrote:

> I have an app that works perfectly in my development environment of
> eclipse/jetty. It also work fine when I deploy it locally to tomcat 7 on my
> development machine. But it fails on my production server with the
> following error,
>
> ...
> SEVERE: Exception while dispatching incoming RPC call
> at com.google.gwt.user.server.
> rpc.RPC.encodeResponseForFailure(RPC.java:389)
> at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.
> java:579)
> at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.
> java:561)
> SEVERE: Exception while dispatching incoming RPC call
> at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.
> java:389)
> at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.
> java:579)
> at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.
> java:561)
> SEVERE: Exception while dispatching incoming RPC call
> at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.
> java:389)
> at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.
> java:579)
> at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.
> java:561)
> ...
>
> Help!
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: images not showing in any browser

2014-04-22 Thread Davide Micheletti
>
> HTTP ERROR 404
> Problem accessing /NewProject/images/1.jpg. Reason:
> Not Found


it means that your 1.jpg is in
"server"/NewProject/NewProject/images/1.jpg.. You can see that "NewProject"
is twice and i think is it an error.. Can you post the Google Chrome
inspector on the image?


On Sat, Apr 19, 2014 at 11:58 AM, Adam  wrote:

> I've also tried doing the following which made no difference.
>
>
> Image img = new Image();
> img.setUrl("Images/1.jpg");
>
>>   --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: images not showing in any browser

2014-04-16 Thread Davide Micheletti
when you run MyProject look at the HTML code and see the url of the image..
So you can see where is the problem in the path.. However i've a project
with images and i put the image in war/Images/1.jpg and in the code i've
>
> ...
> ...

Image img = new Image();

img.setUrl("Images/1.jpg");

Panel p = new Panel();
>
p.add(img);

...
> ...



On Wed, Apr 16, 2014 at 10:51 PM, Adam  wrote:

> Hi, i'm new to gwt programming, for some reason the image wont show in any
> browsers, any idea's? Also the path seems to be stuck
> on"/myproject//MyProject/images/1.jpg"
>
> Image img = new Image("/MyProject/images/12345.jpg");
>  vPanel.add(img);
>
> [WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner'
> could not be found in the web app, but was found on the system classpath
>[WARN] Adding classpath entry
> 'file:/C:/eclipse%20se/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/gwt-dev.jar'
> to the web app classpath for this session
>For additional info see:
> file:/C:/eclipse%20se/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/doc/helpInfo/webAppClassPath.html
> [WARN] 404 - GET /myproject//MyProject/images/1.jpg (127.0.0.1) 1398 bytes
>Request headers
>   Host: 127.0.0.1:
>   Connection: keep-alive
>   Accept: image/webp,*/*;q=0.8
>   User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML,
> like Gecko) Chrome/34.0.1847.116 Safari/537.36
>   Referer:
> http://127.0.0.1:/MyProject.html?gwt.codesvr=127.0.0.1:9997
>   Accept-Encoding: gzip,deflate,sdch
>   Accept-Language: en-GB,en-US;q=0.8,en;q=0.6
>Response headers
>   Content-Type: text/html;charset=ISO-8859-1
>   Cache-Control: must-revalidate,no-cache,no-store
>   Content-Length: 1398
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: gwt development plugin for chrome

2014-04-11 Thread Davide Micheletti
I've the same problem but only in Win 8.1 and Win 8


On Fri, Apr 11, 2014 at 11:19 AM, abisheak Balaji wrote:

> Hi,
> I have trouble running my GWT application in chrome.It asked for me to
> download the gwt developers plugin.When i tried downloading it pops up a
> message stating
> "This application is not supported on this computer. Installation has
> been disabled. The following problems are detected:NPAPI plugin is
> required by this app"
> How could i solve this problem?
>
> Thank you
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: modélisation uml de mvp

2014-04-10 Thread Davide Micheletti
if you write in english you will have more help..


2014-04-11 4:23 GMT+02:00 Amir kessentini :

> Salut,
> Je suis entrain de modéliser mon application gwt en utilisant uml.
> à ce stade, je trouve des difficultés pour représenter les diagrammes de
> séquences en utilisant l'architecture mvp.
> j'ai passer beaucoup de temps sur google mais vraiment j'ai pas trouvé
> quelque chose de valeur.il m'affiche toujours des diagrammes concernant
> mvc et non mvp.
> si quelqu'un peut m'aider n'hésite pas :)
> merci
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: (null) value only in DEV mode

2014-04-10 Thread Davide Micheletti
>
>  stmt.setInt(1, 1);

Are you sure to pass the right id?? Because you do

>  id = rs.getInt("id");

and it is suspicious because the id cannot change in your code..

However i think that your code fail in the catch before

> String messageString = "Hello " + nam + " " + srn + "!" +
> "message:" + input;


Try to return the Exception


On Thu, Apr 10, 2014 at 3:06 PM, Zbyněk Kočí  wrote:

> Hello,
>
> Iam using RPC communication, JDBC driver (included in Tomcat libraries) &
> DB from previous project (Java & JSP only)
> Debian, NetBeans 7.4, Apache Tomcat 6
> On server side Iam connection into the DB, retreiving data, trying to
> catch them immediately and next print them out in alert message (with RPC
> example)
>
> When I clean&build project, copy WAR file into the TomCat6 server it works
> fine in production mode and data are retreived properly, even System.out in
> Catalina logs works, but when Iam trying to do the same in DEV mode, it
> returns (null) as string text value instead. But no error message or log
>
> I guess its some kind problem with accesing JDBC or diff address location
> while in DEV mode at address:
> http://127.0.0.1:/?gwt.codesvr=127.0.0.1:9997
>
> Iam unable to find this issue while happen only in DEV mode.
> Can anyone hint me whats wrong?
>
> Contect.xml (tried only / as path, maybe issue here)
>
>> 
>>
>>   >> maxActive="20" maxIdle="10" name="jdbc/postgres" password="pass"
>>> type="javax.sql.DataSource" url="jdbc:postgresql://
>>> 127.0.0.1:5432/firstdb" username="user" validationQuery="select 1"/>
>>
>> 
>>
>> Connection method (I found another one, but it doesnt seem working
> properly)
>
>> private Connection getConnection() throws NamingException, SQLException {
>>
>> Context ctx = null;
>>
>> try {
>>
>> ctx = new InitialContext();
>>
>> } catch (NamingException exp) {
>>
>> }
>>
>> DataSource ds = (DataSource)
>>> ctx.lookup("java:/comp/env/jdbc/postgres");
>>
>> return (ds.getConnection());
>>
>> }
>>
>>
> Still in server Impl file as the only one JAVA server-side code
>
>> try {
>
> String query = "SELECT * FROM users WHERE id = ?";
>
> connection = getConnection();
>
> stmt = connection.prepareStatement(query);
>
> stmt.setInt(1, 1);
>
> rs = stmt.executeQuery();
>
>
>> while (rs.next()) {
>
> id = rs.getInt("id");
>
> nam = rs.getString("nam");
>
> srn = rs.getString("srn");
>
> System.out.println(nam + " " + srn);
>
> }
>
>
> and then after catch exceptions
>
>> String messageString = "Hello " + nam + " " + srn + "!" +
>
> "message:" + input;
>
>
> Feel free to ask me for more info/code
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Hide a DialogBox without close it..

2014-04-09 Thread Davide Micheletti
Thanks.. i didn't saw this function..


On Wed, Apr 9, 2014 at 3:58 PM, Thomas Broyer  wrote:

> What's the difference?
>
> (have you looked at setVisible?)
>
>
> On Wednesday, April 9, 2014 3:29:41 PM UTC+2, Davide Micheletti wrote:
>>
>> Hi all... is there a way to hide a DialogBox without close it??
>>
>> Thanks..
>>
>> Davide
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Hide a DialogBox without close it..

2014-04-09 Thread Davide Micheletti
Hi all... is there a way to hide a DialogBox without close it??

Thanks..

Davide

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


Re: using gwt with hibernate example

2014-04-09 Thread Davide Micheletti
>
> NoSuchMethodError

Have you added it into your server's interfaces??
If yes, have you reloaded the server class?


On Wed, Apr 9, 2014 at 1:59 PM, Daniel Plop wrote:

> I get following error when trying to add a record:
>
> Starting Jetty on port 
>[WARN] Exception while dispatching incoming RPC call
> com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public
> abstract java.lang.Long
> com.google.musicstore.client.MusicStoreService.saveRecord(com.google.musicstore.client.dto.RecordDTO)'
> threw an unexpected exception: java.lang.NoSuchMethodError:
> org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session;
> at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389)
> at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
> at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
> at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at
> org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:324)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
> at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
> at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
> Caused by: java.lang.NoSuchMethodError:
> org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session;
> at
> com.google.musicstore.server.MusicStoreServiceImpl.saveRecord(MusicStoreServiceImpl.java:68)
> 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.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
> ... 22 more
>
> I don't understand what could be the problem ?
>
> On Saturday, 29 March 2014 14:30:06 UTC+1, Mic L wrote:
>>
>> HI,
>> I have found a nice article "using gwt with hibernate 
>> example".
>> However, I have trouble to import this 
>> codeinto
>>  Eclipse. I always get the following warnings, but the app does not
>> start:
>> [WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner'
>> could not be found in the web app, but was found on the system classpath
>>[WARN] Adding classpath entry 'file:/home/mic/apps/eclipse/
>> plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/gwt-dev.jar' to
>> the web app classpath for this session
>>For additional info see: file:/home/mic/apps/eclipse/
>> plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/doc/helpInfo/
>> webAppClassPath.html
>> [WARN] No startup URLs supplied and no plausible ones found -- use
>> -startupUrl
>>
>> How is it possible to import the code into Eclipse and would 
>> ActiveJDBCsolves Hibernates 
>> problems?
>>
>> Thank you in advance.
>>
>> Mic
>>
>>
>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from t

Re: Catch DC from DataBase

2014-04-08 Thread Davide Micheletti
Thanks and sorry for the OT..i thought that GWT had a "function" that
permits to control the connection to the DB.. i have not the possibility to
change the JDBC so i'm thinking to create an auto "refresh connection" only
if there are some minutes of dead time.. But i don't know if there is
something ready..
For example if the max dead time are 5 minutes i want to refresh only if
ALL the 5 minutes are passed


On Tue, Apr 8, 2014 at 11:03 AM, joerg.hohwil...@googlemail.com <
joerg.hohwil...@googlemail.com> wrote:

> Hi Davide,
>
> this is not really a GWT related question. However, you should figure out
> what is actually causing the disconnect. The typical approach in Java is to
> use a DB connection pool like c3p0 or commons-dbcp. Some drivers like
> oracle also come with their own pool implementation. IMHO also the new JDBC
> model supports it but that may be not available to todays production
> setups. The Springframework offers nice and seamless integration of
> connection pooling with other aspects such as JPA.
>
> Cheers
>   Jörg
>
> Am Dienstag, 8. April 2014 08:23:57 UTC+2 schrieb Davide Micheletti:
>
>> Hi all, i'm developing an application that can stay without actions for
>> some minutes/hours.. The problem is that after some minutes the server (or
>> the DB) disconnects from the DB (or the server).. So how can i catch this
>> disconnection from DB? And what can i do to solve it?
>>
>> Thanks..
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Catch DC from DataBase

2014-04-07 Thread Davide Micheletti
Hi all, i'm developing an application that can stay without actions for
some minutes/hours.. The problem is that after some minutes the server (or
the DB) disconnects from the DB (or the server).. So how can i catch this
disconnection from DB? And what can i do to solve it?

Thanks..

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


Re: Why setHTML(".."); but then getHTML(); return ".." (Gwt)?

2014-04-07 Thread Davide Micheletti
try myInlineHtml.getwidget();
it return the HTML "widget".. probably with  tags but without all the
 structure

Ex:
VerticalPanel mainPanel = new VerticalPanel();

RootPanel.get().add(mainPanel);

mainPanel.add(new HTML("Hello"));

System.out.println(mainPanel.getWidget(0));

output-> Hello

after that you can do an easy function that cuts off the  tags..


On Mon, Apr 7, 2014 at 8:43 AM, Tom  wrote:

> myInlineHtml.getText() only return the text, it won't take the html tag.
>
> Ex: myInlineHtml.setHTML("test);
> myInlineHtml.getHTML(); will return "test" without  tags.
>
>
> On Monday, April 7, 2014 1:35:50 AM UTC+10, Tom wrote:
>>
>> Also, Does this happen independently from browsers or dependently from
>> browsers? cos that is serious.
>> So getHTML return value based on the Browser or based on the Gwt
>> mechanism?
>>
>> On Monday, April 7, 2014 1:24:42 AM UTC+10, Tom wrote:
>>>
>>> I don't understand how Gwt setHTML & getHTML work. It doesn't seem to
>>> be consistent.
>>>
>>> Let see this example:
>>>
>>> myInlineHtml.setHTML(SafeHtmlUtils.fromSafeConstant("Test"));
>>> System.out.println(myInlineHtml.getHTML());
>>>
>>> Output: "Test"
>>>
>>> Clearly when we set the html for myInlineHtml we don't have
>>> , but when we getHTML from myInlineHtml then Gwt include
>>> .
>>>
>>> Why that's happen cos it can cause the confused when you want to get
>>> Html value & u thought it has the same value I the time we set it but it
>>> hasn't?
>>>
>>>
>>> also:  http://stackoverflow.com/questions/22895956/why-
>>> sethtmltabletr-tr-table-but-then-gethtml-return-tablet
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Why setHTML(".."); but then getHTML(); return ".." (Gwt)?

2014-04-06 Thread Davide Micheletti
getHTML return the html of the widget that you specify like param
("myInlineHtml").. try to use the getText(); or the getWidget();
setHTML set an HTML IN the calling widget.. However, what myInlineHtml is?


On Sun, Apr 6, 2014 at 5:35 PM, Tom  wrote:

> Also, Does this happen independently from browsers or dependently from
> browsers? cos that is serious.
> So getHTML return value based on the Browser or based on the Gwt mechanism?
>
>
>
> On Monday, April 7, 2014 1:24:42 AM UTC+10, Tom wrote:
>>
>> I don't understand how Gwt setHTML & getHTML work. It doesn't seem to be
>> consistent.
>>
>> Let see this example:
>>
>> myInlineHtml.setHTML(SafeHtmlUtils.fromSafeConstant("Test"));
>> System.out.println(myInlineHtml.getHTML());
>>
>> Output: "Test"
>>
>> Clearly when we set the html for myInlineHtml we don't have
>> , but when we getHTML from myInlineHtml then Gwt include
>> .
>>
>> Why that's happen cos it can cause the confused when you want to get
>> Html value & u thought it has the same value I the time we set it but it
>> hasn't?
>>
>>
>> also:  http://stackoverflow.com/questions/22895956/why-
>> sethtmltabletr-tr-table-but-then-gethtml-return-tablet
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Similar to php post method

2014-04-06 Thread Davide Micheletti
Simply add the clickHandler in the for() after the creating of "div"..
something like these:

for(int i=0; i<4; i++){
> HTML div = new HTML("Link"+(i+1)+"");
> mainPanel.add(div);
> final int app = i+1;
>
> div.addClickHandler(new ClickHandler() {
>
> public void onClick(ClickEvent event) {
> Window.alert("Pressed "+ app);
> }
> });
> }





On Sat, Apr 5, 2014 at 4:50 PM, Matteo Fioravanti wrote:

> Hi there, a function have this code to generate a list of event formatted
> with html and css.
>
> for (int i = 0; i < 10; i++) {
>  HTML div = new HTML ("Link");
>  RootPanel.get("mainLayout").add(div);
> }
>
>
> It 'a code for demonstration purposes, but my goal is to handle a
> clickhandler foreach link, I should also be good to change the tag with a
> div if necessary.
> In php+html this it was very clear for me, but in gwt i don't understand
> what i should i do.
>
> When I click the link I have to activate a feature that let me change the
> html code of the page, help me please!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: flextable rows

2014-04-04 Thread Davide Micheletti
EDIT:
FlexTable.clearCell(row_to_delete, column);


On Fri, Apr 4, 2014 at 12:21 PM, Davide Micheletti  wrote:

> for(col = 0; col < 3; col++)
>FlexTable.clearCell(row, column);
>
> FlexTable.removeRow(row_to_delete);
>
> that removes the Widgets from the row and if there aren't widgets the
> contents will be only cleared..
>
> However if you use the standard function, insertRow(int beforeRow) of gwt,
> it right that the new row is blank..
>
>
>
> On Fri, Apr 4, 2014 at 5:16 AM, Amir kessentini  > wrote:
>
>> i found a solution but i'm in trouble again :(
>>>
>>  each row containes 3 textBox.when i click on button delete row it works
>> fine but when i try to add new row it's make a blank row.
>> i have a problem on my delete row.i guess i don't have to remove the row
>> but to remove the textbox on this row.
>> how to do that ?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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


Re: flextable rows

2014-04-04 Thread Davide Micheletti
for(col = 0; col < 3; col++)
   FlexTable.clearCell(row, column);

FlexTable.removeRow(row_to_delete);

that removes the Widgets from the row and if there aren't widgets the
contents will be only cleared..

However if you use the standard function, insertRow(int beforeRow) of gwt,
it right that the new row is blank..



On Fri, Apr 4, 2014 at 5:16 AM, Amir kessentini
wrote:

> i found a solution but i'm in trouble again :(
>>
>  each row containes 3 textBox.when i click on button delete row it works
> fine but when i try to add new row it's make a blank row.
> i have a problem on my delete row.i guess i don't have to remove the row
> but to remove the textbox on this row.
> how to do that ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: browse a file from my desktop

2014-04-03 Thread Davide Micheletti
bdoctestrequest i think is your project.. That error comes when you don't
create the server's upload directory or you have written something wrong in
web.xml.. feel free to post it..

ps: sorry for my bad english..


On Thu, Apr 3, 2014 at 11:09 AM, imen boukhris wrote:

>
>
> thank you so much Davide Micheletti
> i tried this tutorial "
> http://www.jroller.com/hasant/entry/fileupload_with_gwt";  but i had this
> problem.
> can you help me please .
>
>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: browse a file from my desktop

2014-04-03 Thread Davide Micheletti
you can find a lot of tutorial googling gwt fileupload servlet.. here u can
find the Javadoc and 2 examples with explanations..

http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/FileUpload.html
http://www.jroller.com/hasant/entry/fileupload_with_gwt
http://www.celinio.net/techblog/?p=1207

Personally i used that class, modifying what i needed..


On Thu, Apr 3, 2014 at 12:36 AM, imen boukhris wrote:

> Hi GWT community,
> how can i upload a file to server from my desktop in my google web toolkit
> project.Anyone could provide me with good tutorial that explain the file
> upload solution from start  to end please.
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: ResultSet empty is not catched

2014-03-14 Thread Davide Micheletti
Really really thanks Jens (as always perfect).. I've read some articles
about SQL injection and i've found  a lot of intresting things.. Thanks
another time for the replie and sorry for the incorrect "section"..


On Fri, Mar 14, 2014 at 12:44 PM, Jens  wrote:

> SQL MIN returns null ( = a row without data) as a default value if there
> is no data to calculate the MIN value of. Pretty much all aggregate
> functions return a default value (count() returns 0 for example).
>
> You would only get no result at all if your query uses a GROUP BY clause
> and no group exists, e.g.
>
> SELECT MIN(value) FROM table GROUP BY data HAVING data = 'non existent
> data'.
>
>
> *Also, if you are not familiar with it, you should definitely read up SQL
> injection.*
>
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: ResultSet empty is not catched

2014-03-14 Thread Davide Micheletti
>
> Are you sure that this is the correct maillist you ask
> this question

You're right it was for another forum.. i'm sorry..

However i've try your solution and these is not working..
I see that min() function return ever 1 row though is an empty row.

Thanks..




On Fri, Mar 14, 2014 at 12:05 PM, Lothar Kimmeringer wrote:

> Am 14.03.2014 11:52, schrieb Davide Micheletti:
> > Hi all, i've these code to know if the resultSet is empty
> >
> > sql = "SELECT MIN(date) FROM table1 WHERE date > " +data1;
> >
> > Statement s = conn.createStatement();
> > ResultSet rset = s.executeQuery(sql);
> >
> > // it can be empty
> > if(rset.next()){
> > // DO SOMETHING
> > } else {
> >// DO OTHER THINGS
> > }
> >
> > but if the resultSet is empty it isn't catched.. Why??
> > is for the MIN() function in the SQL?? if yes what can i do??
>
> Are you sure that this is the correct maillist you ask
> this question? But to answer your question, you can do it e.g.
>
> "select date from table1 where date > " + data1 + " order by 1 asc limit 1"
>
> Please don't use this code productively since it's vulnerable
> to SQL-injection-attacks.
>
>
> Regards, Lothar
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


ResultSet empty is not catched

2014-03-14 Thread Davide Micheletti
Hi all, i've these code to know if the resultSet is empty

sql = "SELECT MIN(date) FROM table1 WHERE date > " +data1;

Statement s = conn.createStatement();
ResultSet rset = s.executeQuery(sql);

// it can be empty
if(rset.next()){
// DO SOMETHING
} else {
   // DO OTHER THINGS
}

but if the resultSet is empty it isn't catched.. Why?? is for the MIN()
function in the SQL?? if yes what can i do??

Thanks

Davide

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


Re: onClick and onDoubleClick

2014-03-13 Thread Davide Micheletti
Thanks Jens.. i will implement it by myself..


On Thu, Mar 13, 2014 at 10:31 AM, Jens  wrote:

> so, can i do a double click without that the single click event is call?
>>
>
> No. A double click consists of two single clicks. If the browser would
> only give you a single double click event that would mean the browser has
> to wait after a single click to see if a second single click occurs. But
> this in turn means that all single clicks are delayed for a short period of
> time by the browser which can feel bad. This is kind of the same situation
> as with touch tablets and click events. Whenever you tap on a tablet screen
> the click event will be delayed 300ms because the touch device needs to
> figure out if you wanted to zoom-in via a possible double tap.
>
> You have to implement that logic yourself if you need it.
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


onClick and onDoubleClick

2014-03-13 Thread Davide Micheletti
Hi all,
is there a method to differentiate the events onClick and onDoubleClick on
the same widget??
i have a flextable and i need to do two different things if i do a single
click or a double click on it.

table.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {

System.out.printl("i'm a single click");
}
});

table.addDoubleClickHandler(new DoubleClickHandler() {
 public void onDoubleClick(DoubleClickEvent event) {

  System.out.println("i'm a double click");
}
});


Now if i do only single clicks all work great but if i do doubleClick on my
table this is the result:

Click -> DoubleClick

real-output:what i need output:
i'm a single click   i'm a single click
i'm a single click   i'm a double click
i'm a single click
i'm a double click

so, can i do a double click without that the single click event is call?

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.
For more options, visit https://groups.google.com/d/optout.


Re: clickHandler goes in loop

2014-03-07 Thread Davide Micheletti
yes i've solved.. thanks..


On Fri, Mar 7, 2014 at 12:47 PM, Alberto Mancini wrote:

>
> Hi,
>
> "code tab1" is executed in  build_tab1(); ?
>
> in that case if variable "table1" is not local you are adding a new
> clickhandler at each call of "code when i switch tab"
>
> my 2c.
>Alberto.
>
>
>
>
> On Fri, Mar 7, 2014 at 9:11 AM, Davide Micheletti <
> d.michelett...@gmail.com> wrote:
>
>> its a long code, however in summary:
>> in tab1 i've a table (table1) with a clickHandler that depends from
>> another table (table2)
>> in tab2 i've only display some db data
>>
>> code when i switch tab
>>
>> if (tabLayoutPanel.getSelectedIndex() == 0) { // tab1
>>  build_tab1();
>>  clear_TAB2();
>> tabLayoutPanel.setSize("100%", "1245px");
>>
>> }else if (tabLayoutPanel.getSelectedIndex() == 1) { // tab2
>>  build_tab2();
>>  clear_TAB1();
>> tabLayoutPanel.setSize("100%", "1245px");
>> }
>>
>>
>>
>> code tab1
>>
>> table1.addClickHandler(new ClickHandler() {
>>
>> public void onClick(ClickEvent event) {
>>
>>   bool t = Window.confirm("continue?")
>>
>>   if(t && is a radioButton in table2 checked??)
>> server call for db data
>> table1.settext(r,c,"something i need");
>>  else
>>Window.alert("select something in table2");
>> }
>> });
>>
>>
>> now the problem is that if i change tab and i return in tab 1 the code in
>> onClick() is runned n time where n is the number of times that i switched
>> tab
>>
>>
>> On Thu, Mar 6, 2014 at 6:46 PM, Thomas Broyer  wrote:
>>
>>> Show your code?
>>>
>>>
>>> On Thursday, March 6, 2014 6:22:01 PM UTC+1, Davide Micheletti wrote:
>>>>
>>>> Hi all, i've a tabLayoutPanel and in every tab there is a widget with a
>>>> click Handler.. If i switch tab and i click on the widget with click
>>>> Handler the code is runned 2 time for every switched tab.. Where i fail??
>>>> thanks..
>>>>
>>>> Davide
>>>>
>>>  --
>>> 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/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: clickHandler goes in loop

2014-03-07 Thread Davide Micheletti
>
> If addClickHandler is called at the time you switch from tab to tab, then
> you just found the culprit: refactor your code to make it so that it's only
> called once.
>
ok with this i find my error.. when i refresh the tab (with build_tab()) i
re-write the clickHandler.. however i need to clean the tab because i've
some global object (table1 for example) and if i didn't clean it would been
"re-added" to the tab twice..

However thanks for the answer and the patience


On Fri, Mar 7, 2014 at 12:23 PM, Thomas Broyer  wrote:

> That wasn't my question.
>
> How many times is addClickHandler called? (not the ClickHandler's onClick,
> the addClickHandler itself)
> And where is it called from? (not the exact call site obviously; but in
> response to which kind of events?)
>
> If addClickHandler is called at the time you switch from tab to tab, then
> you just found the culprit: refactor your code to make it so that it's only
> called once.
> (to be honest, that call to build_tab1 in response to tab switching looks
> suspicious; and I don't quite understand why you need to clean_tab2 at that
> time either; but you really didn't give much information on what you're
> trying to do and how you've organized your code and flow of events/actions)
>
>
> On Friday, March 7, 2014 12:13:07 PM UTC+1, Davide Micheletti wrote:
>
>> i'm sure, i run it step by step and at the end of onClick it runs 
>> SimpleEventBuss's
>> function and return to onclick.. the time depend to how many time i
>> switched tab..
>> 1 switch 1 repeat  --> onload tab1 switch tab2 return to tab1
>> 2 switch 2 repeat  --> onload tab1 switch tab2 return to tab1 switch
>> tab2 return to tab1
>> 3 switch 3 repeat  --> onload tab1 switch tab2 return to tab1 switch
>> tab2 return to tab1 switch tab2 return to tab1
>> ..
>>
>>
>> On Fri, Mar 7, 2014 at 12:07 PM, Thomas Broyer  wrote:
>>
>>>
>>>
>>> On Friday, March 7, 2014 12:00:22 PM UTC+1, Davide Micheletti wrote:
>>>>
>>>> i did it.. it is called by himself..
>>>>
>>>
>>> Sure, but when? and how many times?
>>>
>>>
>>>>  i follow all the process step by step and at the end of the
>>>> clickHandler it goes in dispatchEvent(event, handler) of
>>>> SimpleEventBuss.class and it returns to the onClick of my project.. What
>>>> can i do?
>>>>
>>>
>>>
>>>>
>>>> On Fri, Mar 7, 2014 at 11:14 AM, Thomas Broyer wrote:
>>>>
>>>>> I honestly have no idea, given the code snippets you showed. But put a
>>>>> breakpoint on your addClickHandler and see when it's being called, and
>>>>> where it's called from (look at the call stack in your IDE)
>>>>>
>>>>>
>>>>> On Friday, March 7, 2014 11:06:03 AM UTC+1, Davide Micheletti wrote:
>>>>>
>>>>>> i don't understand your answer.. how can i call an addClick handler
>>>>>> of a table in 2 different tab?
>>>>>>
>>>>>>
>>>>>> On Fri, Mar 7, 2014 at 11:01 AM, Thomas Broyer wrote:
>>>>>>
>>>>>>> I suspect you're calling addClickHandler each time you switch tab.
>>>>>>> Just try to do it once only.
>>>>>>>
>>>>>>>
>>>>>>> On Friday, March 7, 2014 9:11:40 AM UTC+1, Davide Micheletti wrote:
>>>>>>>
>>>>>>>> its a long code, however in summary:
>>>>>>>> in tab1 i've a table (table1) with a clickHandler that depends from
>>>>>>>> another table (table2)
>>>>>>>> in tab2 i've only display some db data
>>>>>>>>
>>>>>>>> code when i switch tab
>>>>>>>>
>>>>>>>> if (tabLayoutPanel.getSelectedIndex() == 0) { // tab1
>>>>>>>>  build_tab1();
>>>>>>>>  clear_TAB2();
>>>>>>>> tabLayoutPanel.setSize("100%", "1245px");
>>>>>>>>
>>>>>>>> }else if (tabLayoutPanel.getSelectedIndex() == 1) { // tab2
>>>>>>>>  build_tab2();
>>>>>>>>  clear_TAB1();
>>>>>>>> tabLayoutPanel.setSize("100%", "1245px");
>>>>>>>> }
>>>>>>>&

Re: clickHandler goes in loop

2014-03-07 Thread Davide Micheletti
i'm sure, i run it step by step and at the end of onClick it runs
SimpleEventBuss's
function and return to onclick.. the time depend to how many time i
switched tab..
1 switch 1 repeat  --> onload tab1 switch tab2 return to tab1
2 switch 2 repeat  --> onload tab1 switch tab2 return to tab1 switch
tab2 return to tab1
3 switch 3 repeat  --> onload tab1 switch tab2 return to tab1 switch
tab2 return to tab1 switch tab2 return to tab1
..


On Fri, Mar 7, 2014 at 12:07 PM, Thomas Broyer  wrote:

>
>
> On Friday, March 7, 2014 12:00:22 PM UTC+1, Davide Micheletti wrote:
>>
>> i did it.. it is called by himself..
>>
>
> Sure, but when? and how many times?
>
>
>> i follow all the process step by step and at the end of the clickHandler
>> it goes in dispatchEvent(event, handler) of SimpleEventBuss.class and it
>> returns to the onClick of my project.. What can i do?
>>
>
>
>>
>> On Fri, Mar 7, 2014 at 11:14 AM, Thomas Broyer  wrote:
>>
>>> I honestly have no idea, given the code snippets you showed. But put a
>>> breakpoint on your addClickHandler and see when it's being called, and
>>> where it's called from (look at the call stack in your IDE)
>>>
>>>
>>> On Friday, March 7, 2014 11:06:03 AM UTC+1, Davide Micheletti wrote:
>>>
>>>> i don't understand your answer.. how can i call an addClick handler of
>>>> a table in 2 different tab?
>>>>
>>>>
>>>> On Fri, Mar 7, 2014 at 11:01 AM, Thomas Broyer wrote:
>>>>
>>>>> I suspect you're calling addClickHandler each time you switch tab.
>>>>> Just try to do it once only.
>>>>>
>>>>>
>>>>> On Friday, March 7, 2014 9:11:40 AM UTC+1, Davide Micheletti wrote:
>>>>>
>>>>>> its a long code, however in summary:
>>>>>> in tab1 i've a table (table1) with a clickHandler that depends from
>>>>>> another table (table2)
>>>>>> in tab2 i've only display some db data
>>>>>>
>>>>>> code when i switch tab
>>>>>>
>>>>>> if (tabLayoutPanel.getSelectedIndex() == 0) { // tab1
>>>>>>  build_tab1();
>>>>>>  clear_TAB2();
>>>>>> tabLayoutPanel.setSize("100%", "1245px");
>>>>>>
>>>>>> }else if (tabLayoutPanel.getSelectedIndex() == 1) { // tab2
>>>>>>  build_tab2();
>>>>>>  clear_TAB1();
>>>>>> tabLayoutPanel.setSize("100%", "1245px");
>>>>>> }
>>>>>>
>>>>>>
>>>>>>
>>>>>> code tab1
>>>>>>
>>>>>> table1.addClickHandler(new ClickHandler() {
>>>>>>
>>>>>> public void onClick(ClickEvent event) {
>>>>>>
>>>>>>   bool t = Window.confirm("continue?")
>>>>>>
>>>>>>   if(t && is a radioButton in table2 checked??)
>>>>>> server call for db data
>>>>>> table1.settext(r,c,"something i need");
>>>>>>  else
>>>>>>Window.alert("select something in table2");
>>>>>> }
>>>>>> });
>>>>>>
>>>>>>
>>>>>> now the problem is that if i change tab and i return in tab 1 the
>>>>>> code in onClick() is runned n time where n is the number of times that i
>>>>>> switched tab
>>>>>>
>>>>>>
>>>>>> On Thu, Mar 6, 2014 at 6:46 PM, Thomas Broyer wrote:
>>>>>>
>>>>>>>  Show your code?
>>>>>>>
>>>>>>>
>>>>>>> On Thursday, March 6, 2014 6:22:01 PM UTC+1, Davide Micheletti wrote:
>>>>>>>>
>>>>>>>> Hi all, i've a tabLayoutPanel and in every tab there is a widget
>>>>>>>> with a click Handler.. If i switch tab and i click on the widget with 
>>>>>>>> click
>>>>>>>> Handler the code is runned 2 time for every switched tab.. Where i 
>>>>>>>> fail??
>>>>>>>> thanks..
>>>>>>>>
>>>>>>>> Davide
>>>

Re: clickHandler goes in loop

2014-03-07 Thread Davide Micheletti
i did it.. it is called by himself.. i follow all the process step by step
and at the end of the clickHandler it goes in dispatchEvent(event, handler)
of SimpleEventBuss.class and it returns to the onClick of my project.. What
can i do?


On Fri, Mar 7, 2014 at 11:14 AM, Thomas Broyer  wrote:

> I honestly have no idea, given the code snippets you showed. But put a
> breakpoint on your addClickHandler and see when it's being called, and
> where it's called from (look at the call stack in your IDE)
>
>
> On Friday, March 7, 2014 11:06:03 AM UTC+1, Davide Micheletti wrote:
>
>> i don't understand your answer.. how can i call an addClick handler of a
>> table in 2 different tab?
>>
>>
>> On Fri, Mar 7, 2014 at 11:01 AM, Thomas Broyer  wrote:
>>
>>> I suspect you're calling addClickHandler each time you switch tab. Just
>>> try to do it once only.
>>>
>>>
>>> On Friday, March 7, 2014 9:11:40 AM UTC+1, Davide Micheletti wrote:
>>>
>>>> its a long code, however in summary:
>>>> in tab1 i've a table (table1) with a clickHandler that depends from
>>>> another table (table2)
>>>> in tab2 i've only display some db data
>>>>
>>>> code when i switch tab
>>>>
>>>> if (tabLayoutPanel.getSelectedIndex() == 0) { // tab1
>>>>  build_tab1();
>>>>  clear_TAB2();
>>>> tabLayoutPanel.setSize("100%", "1245px");
>>>>
>>>> }else if (tabLayoutPanel.getSelectedIndex() == 1) { // tab2
>>>>  build_tab2();
>>>>  clear_TAB1();
>>>> tabLayoutPanel.setSize("100%", "1245px");
>>>> }
>>>>
>>>>
>>>>
>>>> code tab1
>>>>
>>>> table1.addClickHandler(new ClickHandler() {
>>>>
>>>> public void onClick(ClickEvent event) {
>>>>
>>>>   bool t = Window.confirm("continue?")
>>>>
>>>>   if(t && is a radioButton in table2 checked??)
>>>>     server call for db data
>>>> table1.settext(r,c,"something i need");
>>>>  else
>>>>Window.alert("select something in table2");
>>>> }
>>>> });
>>>>
>>>>
>>>> now the problem is that if i change tab and i return in tab 1 the code
>>>> in onClick() is runned n time where n is the number of times that i
>>>> switched tab
>>>>
>>>>
>>>> On Thu, Mar 6, 2014 at 6:46 PM, Thomas Broyer wrote:
>>>>
>>>>>  Show your code?
>>>>>
>>>>>
>>>>> On Thursday, March 6, 2014 6:22:01 PM UTC+1, Davide Micheletti wrote:
>>>>>>
>>>>>> Hi all, i've a tabLayoutPanel and in every tab there is a widget with
>>>>>> a click Handler.. If i switch tab and i click on the widget with click
>>>>>> Handler the code is runned 2 time for every switched tab.. Where i fail??
>>>>>> thanks..
>>>>>>
>>>>>> Davide
>>>>>>
>>>>>  --
>>>>> 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.
>>>>> 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-we...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: clickHandler goes in loop

2014-03-07 Thread Davide Micheletti
i don't understand your answer.. how can i call an addClick handler of a
table in 2 different tab?


On Fri, Mar 7, 2014 at 11:01 AM, Thomas Broyer  wrote:

> I suspect you're calling addClickHandler each time you switch tab. Just
> try to do it once only.
>
>
> On Friday, March 7, 2014 9:11:40 AM UTC+1, Davide Micheletti wrote:
>
>> its a long code, however in summary:
>> in tab1 i've a table (table1) with a clickHandler that depends from
>> another table (table2)
>> in tab2 i've only display some db data
>>
>> code when i switch tab
>>
>> if (tabLayoutPanel.getSelectedIndex() == 0) { // tab1
>>  build_tab1();
>>  clear_TAB2();
>> tabLayoutPanel.setSize("100%", "1245px");
>>
>> }else if (tabLayoutPanel.getSelectedIndex() == 1) { // tab2
>>  build_tab2();
>>  clear_TAB1();
>> tabLayoutPanel.setSize("100%", "1245px");
>> }
>>
>>
>>
>> code tab1
>>
>> table1.addClickHandler(new ClickHandler() {
>>
>> public void onClick(ClickEvent event) {
>>
>>   bool t = Window.confirm("continue?")
>>
>>   if(t && is a radioButton in table2 checked??)
>> server call for db data
>> table1.settext(r,c,"something i need");
>>  else
>>Window.alert("select something in table2");
>> }
>> });
>>
>>
>> now the problem is that if i change tab and i return in tab 1 the code in
>> onClick() is runned n time where n is the number of times that i switched
>> tab
>>
>>
>> On Thu, Mar 6, 2014 at 6:46 PM, Thomas Broyer  wrote:
>>
>>> Show your code?
>>>
>>>
>>> On Thursday, March 6, 2014 6:22:01 PM UTC+1, Davide Micheletti wrote:
>>>>
>>>> Hi all, i've a tabLayoutPanel and in every tab there is a widget with a
>>>> click Handler.. If i switch tab and i click on the widget with click
>>>> Handler the code is runned 2 time for every switched tab.. Where i fail??
>>>> thanks..
>>>>
>>>> Davide
>>>>
>>>  --
>>> 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.
>>> 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/d/optout.
>

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


Re: clickHandler goes in loop

2014-03-07 Thread Davide Micheletti
its a long code, however in summary:
in tab1 i've a table (table1) with a clickHandler that depends from another
table (table2)
in tab2 i've only display some db data

code when i switch tab

if (tabLayoutPanel.getSelectedIndex() == 0) { // tab1
 build_tab1();
clear_TAB2();
tabLayoutPanel.setSize("100%", "1245px");

}else if (tabLayoutPanel.getSelectedIndex() == 1) { // tab2
 build_tab2();
clear_TAB1();
tabLayoutPanel.setSize("100%", "1245px");
}



code tab1

table1.addClickHandler(new ClickHandler() {

public void onClick(ClickEvent event) {

  bool t = Window.confirm("continue?")

  if(t && is a radioButton in table2 checked??)
server call for db data
table1.settext(r,c,"something i need");
 else
   Window.alert("select something in table2");
}
});


now the problem is that if i change tab and i return in tab 1 the code in
onClick() is runned n time where n is the number of times that i switched
tab


On Thu, Mar 6, 2014 at 6:46 PM, Thomas Broyer  wrote:

> Show your code?
>
>
> On Thursday, March 6, 2014 6:22:01 PM UTC+1, Davide Micheletti wrote:
>>
>> Hi all, i've a tabLayoutPanel and in every tab there is a widget with a
>> click Handler.. If i switch tab and i click on the widget with click
>> Handler the code is runned 2 time for every switched tab.. Where i fail??
>> thanks..
>>
>> Davide
>>
>  --
> 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/d/optout.


clickHandler goes in loop

2014-03-06 Thread Davide Micheletti
Hi all, i've a tabLayoutPanel and in every tab there is a widget with a
click Handler.. If i switch tab and i click on the widget with click
Handler the code is runned 2 time for every switched tab.. Where i fail??
thanks..

Davide

-- 
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: Download Servlet doesn't work

2014-03-04 Thread Davide Micheletti
however in the server log there were any errors.


On Tue, Mar 4, 2014 at 2:24 PM, Davide Micheletti
wrote:

> Solved! i had an anchor with url and i switched it with an HTML  tag
> and now it works..
>
>
> On Tue, Mar 4, 2014 at 1:32 PM, Jens  wrote:
>
>> i know, but when i try to download a file i've some communications (dest
>>> folder, fileName etc etc) in the doGet() of the DownloadServlet class but
>>> no messages are displayed..
>>>
>>
>> Look at your server log file, add log statements to your code if needed.
>> Or run your server in debug mode and debug the code from your IDE to see
>> what is happening. You should know how to debug your code.
>>
>> -- J.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/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: Download Servlet doesn't work

2014-03-04 Thread Davide Micheletti
Solved! i had an anchor with url and i switched it with an HTML  tag and
now it works..


On Tue, Mar 4, 2014 at 1:32 PM, Jens  wrote:

> i know, but when i try to download a file i've some communications (dest
>> folder, fileName etc etc) in the doGet() of the DownloadServlet class but
>> no messages are displayed..
>>
>
> Look at your server log file, add log statements to your code if needed.
> Or run your server in debug mode and debug the code from your IDE to see
> what is happening. You should know how to debug your code.
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/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: Download Servlet doesn't work

2014-03-04 Thread Davide Micheletti
i know, but when i try to download a file i've some communications (dest
folder, fileName etc etc) in the doGet() of the DownloadServlet class but
no messages are displayed..


On Tue, Mar 4, 2014 at 12:32 PM, Jens  wrote:

> The DownloadServlet class is the same in everything..
>>
>
> Maybe thats the problem.
>
> The above XML doesn't look wrong. Normally, if something does not work,
> you have some kind of an error message that should already tell you WHY it
> doesn't work. So go and search your error message.
>
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/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.


Download Servlet doesn't work

2014-03-04 Thread Davide Micheletti
Hi all.. i've 2 project with the same downloadservlet but in the second
project the Download doesn't work.. WHY??

Here my second web.xml (here the download doesn't work)


http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
 version="2.5"
 xmlns="http://java.sun.com/xml/ns/javaee";>

  

  
  
DownloadServlet

com.pannelli.controllo.server.DownloadServlet
  

  
 DownloadServlet
 /pannelli_di_controllo/download
  
  

  
  
uploadServlet

com.pannelli.controllo.server.FileUploadServlet
  

  
uploadServlet
/pannelli_di_controllo/upload
  
  

  
  
greetServlet

com.pannelli.controllo.server.GreetingServiceImpl
  

  
greetServlet
/pannelli_di_controllo/greet
  
  

  

  
  
Pannelli_di_controllo.html
  




--

the first web.xml (here download works fine)


http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
 version="2.5"
 xmlns="http://java.sun.com/xml/ns/javaee";>

  

  
  
DownloadServlet
com.appoggio.server.DownloadServlet
  

  
 DownloadServlet
 /appoggio/download
  
  

  
  
uploadServlet
com.appoggio.server.FileUploadServlet
  

  
uploadServlet
/appoggio/upload
  
  

  
  
greetServlet
com.appoggio.server.GreetingServiceImpl
  

  
greetServlet
/appoggio/greet
  
  

  

  
  
Appoggio.html
  




The DownloadServlet class is the same in everything..


Thanks in advance..

Davide

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


download without extension

2014-03-03 Thread Davide Micheletti
Hi all. i need to download file without extension, but when i try to
download it the dialog who let me to download save it automatically with
some extension.
What can i do?

Thanks

-- 
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: Download File GWT

2014-03-03 Thread Davide Micheletti
thanks



On Mon, Mar 3, 2014 at 12:37 PM, JeongHyeon Lee wrote:

> class DownloadServlet extends HttpServlet {
>
>   private void getDownloadFile(final HttpServletRequest request, final
> HttpServletResponse response) {
> FileVO file =
> fileService.getFile(request.getParameter("down").toString());
> if (file == null) {
>   return;
> }
> String ua = getThreadLocalRequest().getHeader("User-Agent");
> boolean isFirefox = (ua != null && ua.indexOf("Firefox/") != -1);
> String uriEncoding = null;
> try {
>   // I18N
>   uriEncoding = URLEncoder.encode(file.getFILE_NAME(), "UTF-8");
> } catch (UnsupportedEncodingException e) {
> }
> if (isFirefox) {
>   response.setHeader("Content-Disposition", "attachment;
> filename*==UTF-8''" + uriEncoding + "");
> } else {
>   response.setHeader("Content-Disposition", "attachment; filename=" +
> uriEncoding + "");
> }
> response.setHeader("Content-Length",
> String.valueOf(file.getFILE_LONGBLOB_SIZE()));
> try {
>   response.getOutputStream().write(file.getFILE_LONGBLOB());
>   response.getOutputStream().flush();
>   response.getOutputStream().close();
> } catch (IOException e) {
>   log.error(e);
> }
>   }
>
>   @Override
>   protected void doGet(final HttpServletRequest request, final
> HttpServletResponse response)
>   throws IOException, ServletException {
>
> if (request.getParameter("down") != null {
>   getDownloadFile(request, response);
> }
>
>   }
>
> }
>
> 2014-03-03 19:58 GMT+09:00 Davide Micheletti :
>
>> Hi all.. I need to know how to use DownloadServlet.. I tried to
>> implement it but i don't understand how to continue the code.. here my
>> implementation
>>
>> public class DownloadServlet extends HttpServlet{
>> protected void doGet( HttpServletRequest req, HttpServletResponse resp ) 
>> throws ServletException, IOException
>> {
>> String fileName = req.getParameter( "fileInfo1" );
>>
>> int BUFFER = 1024 * 100;
>> resp.setContentType( "application/octet-stream" );
>> resp.setHeader( "Content-Disposition:", "attachment;filename=" + 
>> "\"" + fileName + "\"" );
>> ServletOutputStream outputStream = resp.getOutputStream();
>> resp.setContentLength( Long.valueOf( getfile(fileName).length() 
>> ).intValue() );
>> resp.setBufferSize( BUFFER );
>> //Your IO code goes here to create a file and set to 
>> outputStream//
>>
>> }
>> }
>>
>> what do i need now??.. Thanks in advance
>>
>>  Davide
>>
>>  --
>> 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.
>

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


Download File GWT

2014-03-03 Thread Davide Micheletti
Hi all.. I need to know how to use DownloadServlet.. I tried to implement
it but i don't understand how to continue the code.. here my implementation

public class DownloadServlet extends HttpServlet{
protected void doGet( HttpServletRequest req, HttpServletResponse
resp ) throws ServletException, IOException
{
String fileName = req.getParameter( "fileInfo1" );

int BUFFER = 1024 * 100;
resp.setContentType( "application/octet-stream" );
resp.setHeader( "Content-Disposition:",
"attachment;filename=" + "\"" + fileName + "\"" );
ServletOutputStream outputStream = resp.getOutputStream();
resp.setContentLength( Long.valueOf(
getfile(fileName).length() ).intValue() );
resp.setBufferSize( BUFFER );
//Your IO code goes here to create a file and set to outputStream//

}
}

what do i need now??.. Thanks in advance

Davide

-- 
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: Different border for different cells

2014-02-25 Thread Davide Micheletti
cell1{
   border: 5px solid;
}

why it isn't working?

Thanks


On Tue, Feb 25, 2014 at 3:38 PM, Davide Micheletti  wrote:

> Like title i would like to have different border for different cells in
> the same table.. I tried it but it doesn't work
>
> .table, .table td {
>border: thin groove;
> }
>
> .cell1 {
>
> }
>

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


Different border for different cells

2014-02-25 Thread Davide Micheletti
Like title i would like to have different border for different cells in the
same table.. I tried it but it doesn't work

.table, .table td {
   border: thin groove;
}

.cell1 {

}

-- 
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: FlexTable RowSpan Issue

2014-02-17 Thread Davide Micheletti
Filling the flexTable
final FlexTable flexTable = new FlexTable();
flexTable.setCellPadding(5);
flexTable.setCellSpacing(5);
flexTable.setStyleName("table");
horizontalPanel.add(flexTable);

flexTable.setText(0, 0, "05:00");
flexTable.setText(0, 1, "CP1");
flexTable.setText(0, 2, "CP2");

// First RowSpan Text
flexTable.getFlexCellFormatter().setRowSpan(0, 2, 2);
 flexTable.setText(1, 0, "06:00");

flexTable.setText(2, 0, "07:00");
flexTable.setText(2, 1, "CP3");
 flexTable.setText(3, 0, "08:00");
flexTable.setText(3, 1, "");
flexTable.setText(3, 2, "CP4");

flexTable.setText(4, 0, "09:00");
flexTable.setText(4, 1, "");
flexTable.setText(4, 2, "");

flexTable.setText(5, 0, "10:00");
flexTable.setText(5, 1, "");
flexTable.setText(5, 2, "");

flexTable.setText(6, 0, "11:00");
flexTable.setText(6, 1, "");
flexTable.setText(6, 2, "");

flexTable.setText(7, 0, "12:00");
flexTable.setText(7, 1, "");
flexTable.setText(7, 2, "");

flexTable.setText(8, 0, "13:00");
flexTable.setText(8, 1, "");
flexTable.setText(8, 2, "");

// Second RowSpan text
   flexTable.getFlexCellFormatter().setRowSpan(0, 1, 3);


OK, now the first text is shifted by one to the right.. Why?


2014-02-17 9:47 GMT+01:00 Davide Micheletti :

> the code is really simple:
>
> RootPanel rootPanel = RootPanel.get("content");
>  HorizontalPanel horizontalPanel = new HorizontalPanel();
>  horizontalPanel.setSpacing(50);
> rootPanel.add(horizontalPanel);
>  final FlexTable flexTable = new FlexTable();
> flexTable.setCellPadding(5);
> flexTable.setCellSpacing(5);
>  flexTable.setStyleName("table");
> horizontalPanel.add(flexTable);
>
> flexTable.setText(0, 0, "05:00");
>  flexTable.setText(0, 1, "CP1");
> flexTable.setText(0, 2, "CP2");
>
> flexTable.getFlexCellFormatter().setRowSpan(0, 1, 2);
>  flexTable.getFlexCellFormatter().setRowSpan(0, 2, 3);
>  flexTable.setText(1, 0, "06:00");
>
> flexTable.setText(2, 0, "07:00");
> flexTable.setText(2, 1, "CP3");
>  flexTable.setText(3, 0, "08:00");
> flexTable.setText(3, 1, "");
>  flexTable.setText(3, 2, "CP4");
>
> flexTable.setText(4, 0, "09:00");
>  flexTable.setText(4, 1, "");
> flexTable.setText(4, 2, "");
>
> flexTable.setText(5, 0, "10:00");
>  flexTable.setText(5, 1, "");
> flexTable.setText(5, 2, "");
>
> flexTable.setText(6, 0, "11:00");
>  flexTable.setText(6, 1, "");
> flexTable.setText(6, 2, "");
>
> flexTable.setText(7, 0, "12:00");
>  flexTable.setText(7, 1, "");
> flexTable.setText(7, 2, "");
>
> flexTable.setText(8, 0, "13:00");
>  flexTable.setText(8, 1, "");
> flexTable.setText(8, 2, "");
>   final FlexTable flexTable_1 = new FlexTable();
> flexTable_1.setCellPadding(5);
>  flexTable_1.setCellSpacing(5);
> flexTable_1.setStyleName("table");
> horizontalPanel.add(flexTable_1);
>
> flexTable_1.setText(0, 0, "CP5");
> flexTable_1.setText(0, 1, "3");
>  flexTable_1.setWidget(0, 2, new RadioButton("prog"));
>  flexTable_1.setText(1, 0, "CP6");
>  flexTable_1.setText(1, 1, "2");
> flexTable_1.setWidget(1, 2, new RadioButton("prog"));
>  flexTable_1.setText(2, 0, "CP7");
> flexTable_1.setText(2, 1, "1");
>  flexTable_1.setWidget(2, 2, new RadioButton("prog"));
>  rootPanel.add(horizontalPanel);
>  // Sposta
>  flexTable.addClickHandler(new ClickHandler() {
>  public void onClick(ClickEvent event) {
>  // Trovo il radio checkato
> int i=0;
> RadioButton rb;
>  do{
> rb = (RadioButton) flexTable_1.getWidget(i, 2);
> i++;
>  }while (!rb.getValue() && i < flexTable_1.getRowCount());
>
> // Devo decrementare i di 1
>  i--;
>  if(i  // C'è qualcosa di selezionato e quindi posso spostare
>  // Riga e colonna in cui spostare
>  int r = flexTable.getCellForEvent(event).getRowIndex();
> int c = flexTable.getCellForEvent(event).getCellIndex();
>  //
>  // Se nella riga colonna selezionata non c'è nulla copio diretto
>  if(flexTable.getText(r, c).equals("")) {
>  flexTable.setText(r, c, flexTable_1.getText(i, 0));
>  } else {
>  // Salvo tutti gli indici per poterli utilizzare negli Handler
>  final int r_app = r;
> final int c_app = c;
> fina

Re: FlexTable RowSpan Issue

2014-02-17 Thread Davide Micheletti
Without all the code..

Filling the FlexTable

final FlexTable flexTable = new FlexTable();
flexTable.setCellPadding(5);
flexTable.setCellSpacing(5);
flexTable.setStyleName("table");
horizontalPanel.add(flexTable);

flexTable.setText(0, 0, "05:00");
flexTable.setText(0, 1, "CP1");
flexTable.setText(0, 2, "CP2");


flexTable.getFlexCellFormatter().setRowSpan(0, 1, 2);
flexTable.getFlexCellFormatter().setRowSpan(0, 2, 3);
 flexTable.setText(1, 0, "06:00");

flexTable.setText(2, 0, "07:00");
flexTable.setText(2, 1, "CP3");
 flexTable.setText(3, 0, "08:00");
flexTable.setText(3, 1, "");
flexTable.setText(3, 2, "CP4");

flexTable.setText(4, 0, "09:00");
flexTable.setText(4, 1, "");
flexTable.setText(4, 2, "");

flexTable.setText(5, 0, "10:00");
flexTable.setText(5, 1, "");
flexTable.setText(5, 2, "");

flexTable.setText(6, 0, "11:00");
flexTable.setText(6, 1, "");
flexTable.setText(6, 2, "");

flexTable.setText(7, 0, "12:00");
flexTable.setText(7, 1, "");
flexTable.setText(7, 2, "");

flexTable.setText(8, 0, "13:00");
flexTable.setText(8, 1, "");
flexTable.setText(8, 2, "");


2014-02-17 9:47 GMT+01:00 Davide Micheletti :

> the code is really simple:
>
> RootPanel rootPanel = RootPanel.get("content");
>  HorizontalPanel horizontalPanel = new HorizontalPanel();
>  horizontalPanel.setSpacing(50);
> rootPanel.add(horizontalPanel);
>  final FlexTable flexTable = new FlexTable();
> flexTable.setCellPadding(5);
> flexTable.setCellSpacing(5);
>  flexTable.setStyleName("table");
> horizontalPanel.add(flexTable);
>
> flexTable.setText(0, 0, "05:00");
>  flexTable.setText(0, 1, "CP1");
> flexTable.setText(0, 2, "CP2");
>
> flexTable.getFlexCellFormatter().setRowSpan(0, 1, 2);
>  flexTable.getFlexCellFormatter().setRowSpan(0, 2, 3);
>  flexTable.setText(1, 0, "06:00");
>
> flexTable.setText(2, 0, "07:00");
> flexTable.setText(2, 1, "CP3");
>  flexTable.setText(3, 0, "08:00");
> flexTable.setText(3, 1, "");
>  flexTable.setText(3, 2, "CP4");
>
> flexTable.setText(4, 0, "09:00");
>  flexTable.setText(4, 1, "");
> flexTable.setText(4, 2, "");
>
> flexTable.setText(5, 0, "10:00");
>  flexTable.setText(5, 1, "");
> flexTable.setText(5, 2, "");
>
> flexTable.setText(6, 0, "11:00");
>  flexTable.setText(6, 1, "");
> flexTable.setText(6, 2, "");
>
> flexTable.setText(7, 0, "12:00");
>  flexTable.setText(7, 1, "");
> flexTable.setText(7, 2, "");
>
> flexTable.setText(8, 0, "13:00");
>  flexTable.setText(8, 1, "");
> flexTable.setText(8, 2, "");
>   final FlexTable flexTable_1 = new FlexTable();
> flexTable_1.setCellPadding(5);
>  flexTable_1.setCellSpacing(5);
> flexTable_1.setStyleName("table");
> horizontalPanel.add(flexTable_1);
>
> flexTable_1.setText(0, 0, "CP5");
> flexTable_1.setText(0, 1, "3");
>  flexTable_1.setWidget(0, 2, new RadioButton("prog"));
>  flexTable_1.setText(1, 0, "CP6");
>  flexTable_1.setText(1, 1, "2");
> flexTable_1.setWidget(1, 2, new RadioButton("prog"));
>  flexTable_1.setText(2, 0, "CP7");
> flexTable_1.setText(2, 1, "1");
>  flexTable_1.setWidget(2, 2, new RadioButton("prog"));
>  rootPanel.add(horizontalPanel);
>  // Sposta
>  flexTable.addClickHandler(new ClickHandler() {
>  public void onClick(ClickEvent event) {
>  // Trovo il radio checkato
> int i=0;
> RadioButton rb;
>  do{
> rb = (RadioButton) flexTable_1.getWidget(i, 2);
> i++;
>  }while (!rb.getValue() && i < flexTable_1.getRowCount());
>
> // Devo decrementare i di 1
>  i--;
>  if(i  // C'è qualcosa di selezionato e quindi posso spostare
>  // Riga e colonna in cui spostare
>  int r = flexTable.getCellForEvent(event).getRowIndex();
> int c = flexTable.getCellForEvent(event).getCellIndex();
>  //
>  // Se nella riga colonna selezionata non c'è nulla copio diretto
>  if(flexTable.getText(r, c).equals("")) {
>  flexTable.setText(r, c, flexTable_1.getText(i, 0));
>  } else {
>  // Salvo tutti gli indici per poterli utilizzare negli Handler
>  final int r_app = r;
> final int c_app = c;
> final int i_app = i;
>  ///
> final DialogBox adv = new DialogBox();
> adv.setText("Avviso");
>  VerticalPanel b =

Re: FlexTable RowSpan Issue

2014-02-17 Thread Davide Micheletti
the code is really simple:

RootPanel rootPanel = RootPanel.get("content");
 HorizontalPanel horizontalPanel = new HorizontalPanel();
horizontalPanel.setSpacing(50);
rootPanel.add(horizontalPanel);
 final FlexTable flexTable = new FlexTable();
flexTable.setCellPadding(5);
flexTable.setCellSpacing(5);
flexTable.setStyleName("table");
horizontalPanel.add(flexTable);

flexTable.setText(0, 0, "05:00");
flexTable.setText(0, 1, "CP1");
flexTable.setText(0, 2, "CP2");

flexTable.getFlexCellFormatter().setRowSpan(0, 1, 2);
flexTable.getFlexCellFormatter().setRowSpan(0, 2, 3);
 flexTable.setText(1, 0, "06:00");

flexTable.setText(2, 0, "07:00");
flexTable.setText(2, 1, "CP3");
 flexTable.setText(3, 0, "08:00");
flexTable.setText(3, 1, "");
flexTable.setText(3, 2, "CP4");

flexTable.setText(4, 0, "09:00");
flexTable.setText(4, 1, "");
flexTable.setText(4, 2, "");

flexTable.setText(5, 0, "10:00");
flexTable.setText(5, 1, "");
flexTable.setText(5, 2, "");

flexTable.setText(6, 0, "11:00");
flexTable.setText(6, 1, "");
flexTable.setText(6, 2, "");

flexTable.setText(7, 0, "12:00");
flexTable.setText(7, 1, "");
flexTable.setText(7, 2, "");

flexTable.setText(8, 0, "13:00");
flexTable.setText(8, 1, "");
flexTable.setText(8, 2, "");
 final FlexTable flexTable_1 = new FlexTable();
flexTable_1.setCellPadding(5);
flexTable_1.setCellSpacing(5);
flexTable_1.setStyleName("table");
horizontalPanel.add(flexTable_1);

flexTable_1.setText(0, 0, "CP5");
flexTable_1.setText(0, 1, "3");
flexTable_1.setWidget(0, 2, new RadioButton("prog"));
 flexTable_1.setText(1, 0, "CP6");
flexTable_1.setText(1, 1, "2");
flexTable_1.setWidget(1, 2, new RadioButton("prog"));
 flexTable_1.setText(2, 0, "CP7");
flexTable_1.setText(2, 1, "1");
flexTable_1.setWidget(2, 2, new RadioButton("prog"));
 rootPanel.add(horizontalPanel);
 // Sposta
 flexTable.addClickHandler(new ClickHandler() {
 public void onClick(ClickEvent event) {
 // Trovo il radio checkato
int i=0;
RadioButton rb;
do{
rb = (RadioButton) flexTable_1.getWidget(i, 2);
i++;
}while (!rb.getValue() && i < flexTable_1.getRowCount());

// Devo decrementare i di 1
i--;
 if(i wrote:

> Maybe your column index is off by one while generating the table and later
> when adding your second text to column 0 results in column 0 to be created.
>
> Can you provide code?
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/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: FlexTable RowSpan Issue

2014-02-16 Thread Davide Micheletti
No answer at these problem??


On Fri, Feb 14, 2014 at 4:57 PM, Davide Micheletti  wrote:

> Hi all, i've found an issue when using RowSpan with FlexTable.
> When you try to insert a text, with RowSpan, in a column the other columns
> at right shift by one.
>
> Here an Example:
>
>
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''|''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''|''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''|''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''|
>
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''|''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''|''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''|''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''|
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''|
>   FIRST TEXT
>  
> |''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''|''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''|
> '''''''''''''''''''''''''''''''''''''''''''

FlexTable RowSpan Issue

2014-02-14 Thread Davide Micheletti
Hi all, i've found an issue when using RowSpan with FlexTable.
When you try to insert a text, with RowSpan, in a column the other columns
at right shift by one.

Here an Example:

''|''|''|''|
''|''|''|''|
''|
FIRST TEXT
 
|''|''|
''|

|''|''|
''|''|''|''|
''|''|''|''|
''|''|''|''|
''|''|''|''|
'


Now, I want to insert the text "SECOND TEXT" with a RowSpan in the column 0

''|''|''|''|'|
''|''|''|''|'|
''|''|
  FIRST TEXT
 |''|''|
  SECOND TEXT
|''|

|''|'|
''|''|''|''|'|
''|''|''|''|'|
''|''|''|''|'|
''|''|''|''|'|

Now the answer is: why this happens?
NOTICE the new empty column at the right

Thanks

-- 
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@googlegr

Re: java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: com/ibm/icu/text/SimpleDateFormat

2014-02-10 Thread Davide Micheletti
Solved!!!.. Thanks for help!


On Fri, Feb 7, 2014 at 9:13 PM, Davide Micheletti
wrote:

> ok.. Thanks..
>
>
> On Fri, Feb 7, 2014 at 9:10 PM, Jens  wrote:
>
>> CalendarUtil is a GWT class that can not be used on the server. Use
>> java.util.Calendar or JodaTime library.
>>
>> You can avoid these issues by not blindly use classes available in
>> Eclipse/IntelliJ. Only classes from jar files in war/WEB-INF/lib are
>> available on the server.
>>
>> --  J.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/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: java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: com/ibm/icu/text/SimpleDateFormat

2014-02-07 Thread Davide Micheletti
ok.. Thanks..


On Fri, Feb 7, 2014 at 9:10 PM, Jens  wrote:

> CalendarUtil is a GWT class that can not be used on the server. Use
> java.util.Calendar or JodaTime library.
>
> You can avoid these issues by not blindly use classes available in
> Eclipse/IntelliJ. Only classes from jar files in war/WEB-INF/lib are
> available on the server.
>
> --  J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/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: java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: com/ibm/icu/text/SimpleDateFormat

2014-02-07 Thread Davide Micheletti
Ok now there is another error.. Now for CalendarUtil.addDaysToDate()  i
think...

SOURCE CODE:

SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/");
Date end_date = formatter.parse(prima_data);
CalendarUtil.addDaysToDate(end_date, 5);
String ultima_data = formatter.format(end_date);


LOG:

com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public
abstract com.pannelli.controllo.shared.Ciclo_Produzione
com.pannelli.controllo.client.GreetingService.SQL_fasi_ciclo_per_tipologia(int,java.lang.String)
throws java.lang.Exception' threw an unexpected exception:
java.lang.NoClassDefFoundError: com/google/gwt/core/client/GWTBridge
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:221)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:107)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:76)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:934)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:90)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:515)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1012)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:642)
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1597)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1555)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError:
com/google/gwt/core/client/GWTBridge
at
com.google.gwt.user.datepicker.client.CalendarUtil.(CalendarUtil.java:35)
at
com.pannelli.controllo.server.GreetingServiceImpl.SQL_fasi_ciclo_per_tipologia(GreetingServiceImpl.java:709)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
... 26 more
Caused by: java.lang.ClassNotFoundException:
com.google.gwt.core.client.GWTBridge
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1575)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1420)
... 33 more



On Fri, Feb 7, 2014 at 7:55 PM, Davide Micheletti
wrote:

> ok thanks.. i'll try your solution.. However sorry for my stupid questions
> but i'm a newby on GWT and java.. ;) The source Code at line 707 is
> something like this:
>
> SimpleDateFormat df = new SimpleDateFormat("dd/MM/");
> String data = "04/02/2014";
> Date d = df.parse(data);
> ...
>
>
> On Fri, Feb 7, 2014 at 7:07 PM, Jens  wrote:
>
>> com.pannelli.controllo.server.GreetingServiceImpl.SQL_fasi_c
>>> iclo_per_tipologia(GreetingServiceImpl.java:707)
>>> com.pannelli.controllo.server is the package of the server
>>> GreetingServiceImpl is the java class for the server
>>> SQL_fasi_ciclo_per_tipologia(GreetingServiceImpl.java:707)  is a
>>> function on the server who start at line 707
>>>
>>
>> :)) Thomas meant what source code is at that line 707.
>>
>>
>> I think you just have mistakenly chosen the wrong import of
>> SimpleDateFormat. gwt

Re: java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: com/ibm/icu/text/SimpleDateFormat

2014-02-07 Thread Davide Micheletti
ok thanks.. i'll try your solution.. However sorry for my stupid questions
but i'm a newby on GWT and java.. ;) The source Code at line 707 is
something like this:

SimpleDateFormat df = new SimpleDateFormat("dd/MM/");
String data = "04/02/2014";
Date d = df.parse(data);
...


On Fri, Feb 7, 2014 at 7:07 PM, Jens  wrote:

> com.pannelli.controllo.server.GreetingServiceImpl.SQL_fasi_c
>> iclo_per_tipologia(GreetingServiceImpl.java:707)
>> com.pannelli.controllo.server is the package of the server
>> GreetingServiceImpl is the java class for the server
>> SQL_fasi_ciclo_per_tipologia(GreetingServiceImpl.java:707)  is a
>> function on the server who start at line 707
>>
>
> :)) Thomas meant what source code is at that line 707.
>
>
> I think you just have mistakenly chosen the wrong import of
> SimpleDateFormat. gwt-user.jar contains com.ibm.icu.text.SimpleDateFormat
> but gwt-user.jar will not be deployed on the server. I think you want to
> change the import to java.text.SimpleDateFormat in your server side class.
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/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: java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: com/ibm/icu/text/SimpleDateFormat

2014-02-07 Thread Davide Micheletti
com.pannelli.controllo.server.GreetingServiceImpl.SQL_fasi_c
iclo_per_tipologia(GreetingServiceImpl.java:707)
com.pannelli.controllo.server is the package of the server
GreetingServiceImpl is the java class for the server
SQL_fasi_ciclo_per_tipologia(GreetingServiceImpl.java:707)  is a function
on the server who start at line 707

However i have to change only the library??




On Fri, Feb 7, 2014 at 5:57 PM, Thomas Broyer  wrote:

> If you do use SimpleDateFormat from ICU
> (com.ibm.icu.text.SimpleDateFormat, as opposed to
> java.text.SimpleDateFormat), then you have to ship it within your WAR.
>
> Out of curiosity, what's at com.pannelli.controllo.server.
> GreetingServiceImpl.SQL_fasi_ciclo_per_tipologia(GreetingServiceImpl.java:707)
> ?
>
>
> On Friday, February 7, 2014 5:34:45 PM UTC+1, Davide Micheletti wrote:
>
>> SimpleDateFormat however here the log:
>>
>> org.apache.catalina.core.ApplicationContext.log Exception while
>> dispatching incoming RPC call
>>  com.google.gwt.user.server.rpc.UnexpectedException: Service method
>> 'public abstract com.pannelli.controllo.shared.Ciclo_Produzione
>> com.pannelli.controllo.client.GreetingService.SQL_fasi_
>> ciclo_per_tipologia(int,java.lang.String) throws java.lang.Exception'
>> threw an unexpected exception: java.lang.NoClassDefFoundError:
>> com/ibm/icu/text/SimpleDateFormat
>>  at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.
>> java:389)
>> at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.
>> java:579)
>>  at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(
>> RemoteServiceServlet.java:208)
>> at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(
>> RemoteServiceServlet.java:248)
>>  at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(
>> AbstractRemoteServiceServlet.java:62)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:303)
>>  at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:208)
>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
>>  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:208)
>>  at org.apache.catalina.core.StandardWrapperValve.invoke(
>> StandardWrapperValve.java:221)
>> at org.apache.catalina.core.StandardContextValve.invoke(
>> StandardContextValve.java:107)
>>  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
>> AuthenticatorBase.java:504)
>> at org.apache.catalina.core.StandardHostValve.invoke(
>> StandardHostValve.java:155)
>>  at org.apache.catalina.valves.ErrorReportValve.invoke(
>> ErrorReportValve.java:76)
>> at org.apache.catalina.valves.AccessLogValve.invoke(
>> AccessLogValve.java:934)
>>  at org.apache.catalina.core.StandardEngineValve.invoke(
>> StandardEngineValve.java:90)
>> at org.apache.catalina.connector.CoyoteAdapter.service(
>> CoyoteAdapter.java:515)
>>  at org.apache.coyote.http11.AbstractHttp11Processor.process(
>> AbstractHttp11Processor.java:1012)
>> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.
>> process(AbstractProtocol.java:642)
>>  at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.
>> process(Http11NioProtocol.java:223)
>> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
>> doRun(NioEndpoint.java:1597)
>>  at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
>> run(NioEndpoint.java:1555)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>>  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>> at java.lang.Thread.run(Unknown Source)
>> Caused by: java.lang.NoClassDefFoundError: com/ibm/icu/text/
>> SimpleDateFormat
>> at com.pannelli.controllo.server.GreetingServiceImpl.SQL_fasi_
>> ciclo_per_tipologia(GreetingServiceImpl.java:707)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>>  at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.
>> java:561)
>> ... 26 more
>> Caused by: java.lang.ClassNotFoundException

Re: java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: com/ibm/icu/text/SimpleDateFormat

2014-02-07 Thread Davide Micheletti
SimpleDateFormat however here the log:

org.apache.catalina.core.ApplicationContext.log Exception while dispatching
incoming RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public
abstract com.pannelli.controllo.shared.Ciclo_Produzione
com.pannelli.controllo.client.GreetingService.SQL_fasi_ciclo_per_tipologia(int,java.lang.String)
throws java.lang.Exception' threw an unexpected exception:
java.lang.NoClassDefFoundError: com/ibm/icu/text/SimpleDateFormat
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:221)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:107)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:76)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:934)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:90)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:515)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1012)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:642)
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1597)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1555)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: com/ibm/icu/text/SimpleDateFormat
at
com.pannelli.controllo.server.GreetingServiceImpl.SQL_fasi_ciclo_per_tipologia(GreetingServiceImpl.java:707)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
... 26 more
Caused by: java.lang.ClassNotFoundException:
com.ibm.icu.text.SimpleDateFormat
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1575)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1420)
... 32 more


On Fri, Feb 7, 2014 at 5:30 PM, Thomas Broyer  wrote:

> What's the stacktrace? Which class/method are you using that causes that
> error?
>
>
> On Friday, February 7, 2014 4:56:30 PM UTC+1, Davide Micheletti wrote:
>>
>> Like title i've these error in run-mode on a tomcat server..
>> I've found some solution googling it but i don't want to import any .jar
>> lib if it possible.
>> So, what can i do?
>>
>> Thanks
>>
>> Davide..
>>
>  --
> 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.


java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: com/ibm/icu/text/SimpleDateFormat

2014-02-07 Thread Davide Micheletti
Like title i've these error in run-mode on a tomcat server..
I've found some solution googling it but i don't want to import any .jar
lib if it possible.
So, what can i do?

Thanks

Davide..

-- 
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: error 500 server-side

2014-02-05 Thread Davide Micheletti
Sorry.. I didn't understand.. However, i have deploied the app on tomcat
server (in the same pc) after exported it with maven plug in ..

Il mercoledì 5 febbraio 2014, Thomas Broyer  ha scritto:

> That doesn't answer the question: how/where are you deploying the app? If
> you're using DevMode as the server, then have a look at the Console view in
> Eclipse.
> Note that you can very well use Debug As… → Web Application and run your
> app in "prod mode" (just don't use the ?gwt.codesvr= in the URL); that way
> you can debug your server-side code.
>
> On Wednesday, February 5, 2014 5:14:27 PM UTC+1, Davide Micheletti wrote:
>>
>> i'm developing in Eclipse with GWT 2.5.1..
>>
>>
>> On Wed, Feb 5, 2014 at 5:07 PM, Juan Pablo Gardella <
>> gardella...@gmail.com> wrote:
>>
>>> Which server are you using?
>>>
>>>
>>> 2014-02-05 Davide Micheletti :
>>>
>>> is that the prob.. i don't know how see it..
>>>>
>>>>
>>>> On Wed, Feb 5, 2014 at 4:54 PM, Juan Pablo Gardella <
>>>> gardella...@gmail.com> wrote:
>>>>
>>>>> Could you send the server side log?
>>>>>
>>>>>
>>>>> 2014-02-05 Davide Micheletti :
>>>>>
>>>>>> Hi all, i have that error but only in run-mode.. The error says that
>>>>>> i've to see the server log but i don't know how.. Someone can help me??
>>>>>> However why does the error come only in run-mode and not in dev-mode?
>>>>>>
>>>>>>  --
>>>>>> 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
>>>>>> .
>>>>>> 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-we...@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-we...@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-we...@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.
>


-- 
Davide Micheletti

-- 
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: error 500 server-side

2014-02-05 Thread Davide Micheletti
i'm developing in Eclipse with GWT 2.5.1..


On Wed, Feb 5, 2014 at 5:07 PM, Juan Pablo Gardella <
gardellajuanpa...@gmail.com> wrote:

> Which server are you using?
>
>
> 2014-02-05 Davide Micheletti :
>
> is that the prob.. i don't know how see it..
>>
>>
>> On Wed, Feb 5, 2014 at 4:54 PM, Juan Pablo Gardella <
>> gardellajuanpa...@gmail.com> wrote:
>>
>>> Could you send the server side log?
>>>
>>>
>>> 2014-02-05 Davide Micheletti :
>>>
>>>> Hi all, i have that error but only in run-mode.. The error says that
>>>> i've to see the server log but i don't know how.. Someone can help me??
>>>> However why does the error come only in run-mode and not in dev-mode?
>>>>
>>>>  --
>>>> 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.
>>>
>>
>>  --
>> 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.
>

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


error 500 server-side

2014-02-05 Thread Davide Micheletti
Hi all, i have that error but only in run-mode.. The error says that i've
to see the server log but i don't know how.. Someone can help me?? However
why does the error come only in run-mode and not in dev-mode?

-- 
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: error 500 server-side

2014-02-05 Thread Davide Micheletti
is that the prob.. i don't know how see it..


On Wed, Feb 5, 2014 at 4:54 PM, Juan Pablo Gardella <
gardellajuanpa...@gmail.com> wrote:

> Could you send the server side log?
>
>
> 2014-02-05 Davide Micheletti :
>
>> Hi all, i have that error but only in run-mode.. The error says that i've
>> to see the server log but i don't know how.. Someone can help me?? However
>> why does the error come only in run-mode and not in dev-mode?
>>
>>  --
>> 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.
>

-- 
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: Gantt Chart missing jar download

2014-02-05 Thread Davide Micheletti
Oh .. Thanks Jens..

Davide


On Wed, Feb 5, 2014 at 11:05 AM, Jens  wrote:

> Not sure if you want to use this anyways. Seems like its inactive and not
> compatible to GWT 2.4+.
>
> That said you have to checkout source and build the jar yourself.
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/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.


Gantt Chart missing jar download

2014-02-05 Thread Davide Micheletti
Hi all, i was looking for these
https://code.google.com/p/gwtgantt/wiki/GettingStarted but i didn't find
any *.jar to download. I tried to search it on web and i'm not the only one
who don't find it.. So where i can find it?

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


GreetingServiceImpl extends RemoteServiceServlet, HttpServlet implements GreetingService

2014-01-16 Thread Davide Micheletti
Hi all,
i need to extend HttpServlet to the server for upload files.
Or i need to know how to create 2 different server's classes and use 1 of
these to upload files.

Thanks in advance.

Davide

-- 
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: FlexTable all borders

2014-01-15 Thread Davide Micheletti
it doesn't work in Google Chrome.. possible??


On Wed, Jan 15, 2014 at 12:45 PM, Jens  wrote:

> It is only supported in IE8 (standards mode) and newer IE versions.
>
> If you need to support IE6-7 then you have to fill cells with some content.
>
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/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: FlexTable all borders

2014-01-15 Thread Davide Micheletti
I added the CSS rule but it doesn't work.. I have added the 3rd solution
but it takes a lots of time because the Table is big and i can't add a
pager for some reasone..
its something wrong??

.FlexTable tr {
empty-cells:show;
border: thin groove;
}
.FlexTable td {
empty-cells:show;
width: 90px;
max-width: 90px;
border: thin groove;
}
.FlexTable {
empty-cells:show;
border-collapse: collapse;
}

On Wed, Jan 15, 2014 at 11:13 AM, Jens  wrote:

> Choose one:
>
> - use CSS rule "empty-cells:show" on the table element
> - Fill empty cells with a dash " - " to indicate that there is no data for
> that cell
> - Fill empty cells with " " which is a white space
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/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.


FlexTable all borders

2014-01-15 Thread Davide Micheletti
Hi all, i need to add ALL borders to my flextable though not all cells are
wrote..
i tried to add css style but it runs only if a cell is setted..

This is my css:

.FlexTable tr {
border: thin groove;
}
.FlexTable td {
width: 90px;
max-width: 90px;
border: thin groove;
}
.FlexTable {
border-collapse: collapse;
}

-- 
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: SimpleDateFormat on server side

2014-01-10 Thread Davide Micheletti
Great.. Thanks thanks and another time thanks..

Il giorno venerdì 10 gennaio 2014, Jens ha scritto:

> Well use what is available. On server use SimpleDateFormat / JodaTime and
> on client use GWT's DateTimeFormat.
>
> If you are dealing with a shared class you have to use super-source and
> replace the server implementation with a GWT implementation for the
> browser. A shared, super-sourced DateUtils class can also be helpful.
>
> -- 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 'cvml',
> 'google-web-toolkit%2bunsubscr...@googlegroups.com');>.
> To post to this group, send email to 
> google-web-toolkit@googlegroups.com '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.
>


-- 
Davide Micheletti

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


SimpleDateFormat on server side

2014-01-10 Thread Davide Micheletti
I am going crazy.. I need to convert a String into a Date.. I have this
code:

data_inizio = "10/01/2014";
Date date = new SimpleDateFormat("dd/MM/").parse(data_inizio);
Window.alert("Date: " + date);

and the output is:
Date: Fri Jan 10 00:00:00 CET 2014

And DateTimeFormat is not supported by server-side. What i can do??

Thanks in advance

Davide

-- 
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: Fixed row position FlexTable

2014-01-07 Thread Davide Micheletti
With your answer i've solved.. But now i have another question.. I've a lot
of tables in my project and i need to view all borders of the flextable and
grid though some cells are empty.. I've tried to add a css
.FlexTable td{
border: thin groove;
}
But it add the border only if the cell is filled with something..



On Mon, Jan 6, 2014 at 6:25 PM, Natanael Maldonado <
natanael.maldonado...@gmail.com> wrote:

> You could check this threads in SO forums:
> 1.-
> http://stackoverflow.com/questions/14879353/colspan-and-rowspan-in-celltable
> 2.-
> http://stackoverflow.com/questions/3403674/how-to-set-rowspan-and-colspan-values-on-gwt-grid-cell-containing-a-widget
>
>
> 2014/1/6 Jens 
>
>> You should be able to do this with DataGrid and a custom Header and/or a
>> custom header builder.
>>
>> See paragraph about header/footers in:
>> http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/cellview/client/AbstractCellTable.html
>>
>> And in addition (if needed):
>>
>> http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/cellview/client/AbstractCellTable.html#setHeaderBuilder(com.google.gwt.user.cellview.client.HeaderBuilder)
>>
>>
>> DataGrid also knows data ranges and thus supports pagination which will
>> be helpful if you want to display database row information as you might
>> have a lot of rows. You don't want to display them all at once.
>>
>>
>> -- J.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
>
>
>
> Atte:
> Natanael Maldonado
>
> --
> 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: Fixed row position FlexTable

2014-01-06 Thread Davide Micheletti
i need something like these..
 __
|___MaxCol 1_|__MaxCol 1__ |__MaxCol
1___ |  <- Fixed
|_Col1_|_Col2_|_Col3_|_Col4_|_Col5_|_Col6_|_Col7_|_Col8_|_Col9_|_Col10_|_Col11
Col12_|  <- Fixed
|  |  |  |  |  |  |
 |  |  ||  |  |  <-
Data to scroll
|  |  |  |  |  |  |
 |  |  ||  |  |  <-
Data to scroll
|  |  |  |  |  |  |
 |  |  ||  |  |  <-
Data to scroll


On Sun, Jan 5, 2014 at 6:09 PM, Davide Micheletti
wrote:

> Does it run like a flextable?? I need to delete/add rows from DB.. Thanks
> in advance
>
> Davide
>
> Il giorno venerdì 3 gennaio 2014, Jens ha scritto:
>
> Maybe DataGrid fits your needs. It has a header and a footer and in
>> between a scrollable content area with rows.
>>
>> See:
>> http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwDataGrid
>>
>>
>> -- J.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
> --
> Davide Micheletti
>

-- 
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: Fixed row position FlexTable

2014-01-05 Thread Davide Micheletti
Does it run like a flextable?? I need to delete/add rows from DB.. Thanks
in advance

Davide

Il giorno venerdì 3 gennaio 2014, Jens ha scritto:

> Maybe DataGrid fits your needs. It has a header and a footer and in
> between a scrollable content area with rows.
>
> See:
> http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwDataGrid
>
>
> -- 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 'cvml',
> 'google-web-toolkit%2bunsubscr...@googlegroups.com');>.
> To post to this group, send email to 
> google-web-toolkit@googlegroups.com '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.
>


-- 
Davide Micheletti

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


Fixed row position FlexTable

2014-01-03 Thread Davide Micheletti
Hi all.. Like in title i want to know how to have a single (or more) row
forever displayed.. I've a FlexTable into a ScrollPanel and when i scroll
it i want that the 1st and 2nd row scrolls.. Thanks in advance and sorry
for my english..

Davide

-- 
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: Multi Modules

2013-12-21 Thread Davide Micheletti
> ok thanks.. really i don't understand where i fail.. these is my folders
> - war
>  -  module1
>+ gwt
>- module1.nocache.js
>  - module2
>+ (no gwt folder??? why??))
>- module2.nocache.js
>  - WEB-INF
>- client
>- server
>- shared
>- module1.xml
>- module2.xml
>  - CSS
>  - module1.HTML
>  - module2.HTML
>
> These is my 2 XML
> module1 (DoppioModulo)
> 
>
> 
>
>  http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd";
> PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN">
> -
> 
>  
> 
>
> 
>
> 
>  
>
> 
>
> 
>  
> 
>  
> 
>
> 
>
>
> module2.xml (Secondo)
>
> 
>  http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd";
> PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN">
> -
> 
> 
> 
> 
>
>
> My 2 HTML
> Module1
> 
>   
> 
>
> 
> 
> 
> 
>
> 
> 
> 
> Web Application Starter Project
>
> 
> 
> 
> 
> 
>  src="doppiomodulo/doppiomodulo.nocache.js">
>   
>
>   
>   
>   
>   
>   
>   
>
> 
>  style="position:absolute;width:0;height:0;border:0">
>
> 
> 
>   
> Your web browser must have JavaScript enabled
> in order for this application to display correctly.
>   
> 
>
> 
>
> 
>
>
> Module2
> 
> 
>   
> 
> SecondaPag
>  src="secondo/secondo.nocache.js">
>   
>
>   
>  style="position:absolute;width:0;height:0;border:0">
>
> 
>
> Thanks in advance
>
> Davide
>
>
> On Thu, Dec 19, 2013 at 6:57 PM, Jens 
>  'jens.nehlme...@gmail.com');>
> > wrote:
>
>>  If i don't inherit the module however the class doesn't run!!

>>>
>> Then you have missed something. Maybe you have a typo somewhere (check if
>> your 

Re: Multi Modules

2013-12-19 Thread Davide Micheletti
ok thanks.. really i don't understand where i fail.. these is my folders
- war
 -  module1
   + gwt
   - module1.nocache.js
 - module2
   + (no gwt folder??? why??))
   - module2.nocache.js
 - WEB-INF
   - client
   - server
   - shared
   - module1.xml
   - module2.xml
 - CSS
 - module1.HTML
 - module2.HTML

These is my 2 XML
module1 (DoppioModulo)




http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd";
PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN">
-

 





 




 

 





module2.xml (Secondo)


http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd";
PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN">
-






My 2 HTML
Module1

  










Web Application Starter Project







  

  
  
  
  
  
  






  
Your web browser must have JavaScript enabled
in order for this application to display correctly.
  



   



Module2


  

SecondaPag

  

  

  


Thanks in advance

Davide


On Thu, Dec 19, 2013 at 6:57 PM, Jens  wrote:

> If i don't inherit the module however the class doesn't run!!
>>>
>>
> Then you have missed something. Maybe you have a typo somewhere (check if
> your 

Re: Multi Modules

2013-12-19 Thread Davide Micheletti
>
> If i don't inherit the module however the class doesn't run!!
>

-- 
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: Multi Modules

2013-12-19 Thread Davide Micheletti
But these div are in the same HTML?? i need different HTML pages.


On Thu, Dec 19, 2013 at 5:25 PM, Dennis Haupt  wrote:

> you have to check if an enty point should run inside the method
> onModuleLoad
> i use div markers, i.e. i put "" into the html if
> i want a specific entry point to run
>
>
> 2013/12/19 Davide Micheletti 
>
>> Hi all, i'm trying to do a multi modules Project in GWT. These are my
>> passes:
>> 1- Create a GWT project
>> 2- Modify HTML page and Entry Point class (for ex a button that if
>> pressed allow me to go in the new HTML page)
>> 3- Create a new Module (in the same project)
>> 4- Create a new Entry Point class for the NEW module (for ex a DialogBox
>> with a message)
>> 5- Create a new HTML page for the new module
>> 6- Inherit "other" module in the modules
>> 7- Compile and Running
>>
>> Now there is my problem. The code that i write works but in the same page
>> and in the same moment. How can i "say" at the second Entry Point class to
>> write only in the new HTML page and only when i call that page?
>>
>> Thanks in advance and sorry for my english.
>>
>> Davide
>>
>> --
>> 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.
>

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


Multi Modules

2013-12-19 Thread Davide Micheletti
Hi all, i'm trying to do a multi modules Project in GWT. These are my
passes:
1- Create a GWT project
2- Modify HTML page and Entry Point class (for ex a button that if pressed
allow me to go in the new HTML page)
3- Create a new Module (in the same project)
4- Create a new Entry Point class for the NEW module (for ex a DialogBox
with a message)
5- Create a new HTML page for the new module
6- Inherit "other" module in the modules
7- Compile and Running

Now there is my problem. The code that i write works but in the same page
and in the same moment. How can i "say" at the second Entry Point class to
write only in the new HTML page and only when i call that page?

Thanks in advance and sorry for my english.

Davide

-- 
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: how to reproduce.cache.html error in dev

2013-12-05 Thread Davide Micheletti
This is the code

server.tutti_clienti(new AsyncCallback() {
>
>
>>
>> public void onSuccess(Cliente result) {
>
>
>> log = log + " 1 - Cliente ";
>
>  tutti_clienti = result;
>
>
>> cliente.addItem("- Seleziona un Cliente -","null");
>
>

> for(int i=0; i
>

> cliente.addItem(tutti_clienti.getCliente(i),
>> String.valueOf(tutti_clienti.getId(i)));
>
>  }
>
>
>>  public void onFailure(Throwable caught) {
>
>
>> log = log + " 1.1 - ERRORE Cliente " + caught;
>
> System.out.println("Errore server.tutti_clienti(): " +
>> caught.getMessage());
>
> }
>
>  });
>
>  "cliente" is a ListBox and "tutti_clienti" is a compose of ArrayList.
These type of code is written for many ListBox with many differt server
call.
The problem is that if i run it on a TomCat server not all of the ListBox
are loaded, but if i run it in DebugMode it work.
The error that i retrive in "server" mode are;
NullPointerException OR Fail to call the server (etc etc).

Thanks in advance and sorry for my english.

Il giorno giovedì 5 dicembre 2013, Juan Pablo Gardella ha scritto:

>
> From
> http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsCompatibility.html
> :
>
> Several fundamental exceptions implicitly produced by the Java VM, most
> notably NullPointerException, StackOverflowError, andOutOfMemoryError, *do
> not occur in production mode as such*. Instead, aJavaScriptException is
> produced for any implicitly generated exceptions. This is because the
> nature of the underlying JavaScript exception cannot be reliably mapped
> onto the appropriate Java exception type.
>
> So, a unhandled error suceded.
>
>
>
>
>
> 2013/12/5 Juan Pablo Gardella 
>
> I didn't see the java code anywhere. Replace catch (NullPointerExceptione
> e ) with (Exception e) and put an alert or something to see the problem. It
> is a NPE in javascript.
>
> Juan
>
>
> 2013/12/5 Davide Micheletti 
>
> yes.. u can see it in the code that i posted..
>
>
> On Thu, Dec 5, 2013 at 7:15 PM, Juan Pablo Gardella <
> gardellajuanpa...@gmail.com> wrote:
>
> Do you have a catch for NullPointerException in the code that is
> translated to Javascript?
>
>
> 2013/12/5 Davide Micheletti 
>
> i think that i did't explain well. The webapp run but never in the same
> mode. i attach some screen so you can understand.
>
>
>
>
> On Thu, Dec 5, 2013 at 4:38 PM, Pablo Nussembaum  wrote:
>
> Hi Bhumika,
> You can take a look to:
>
> http://www.gwtproject.org/javadoc/latest/com/google/gwt/logging/server/StackTraceDeobfuscator.html
> It can be used to de-obfuscate the stacktrace.
>
> also check:
> https://groups.google.com/forum/#!topic/google-web-toolkit/jikvFQUJYjk
>
> Regards,
> --
> Pablo
>
> On 12/05/2013 03:42 AM, Bhumika Thaker wrote:
> > Hi All,
> >
> > In my gwt application, I am facing below error in war but not in
> > development.
> > This error is not understandable
> > can any body suggest how can I reach to this error in development.
> >
> > com.google.gwt.core.client.JavaScriptException: (TypeError): a.b.k.j
> > is null stack: GXd([object Object],[object
> > Object])@
> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:7116
> > HNi([object Object],[object
> > Object])@
> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:3830
> > JNi([object
> > Object])@
> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:7919
> > cG([object Object],[object
> > Object],null)@
> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:10218
> > NF([object Object],[object
> > Object])@
> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:9321
> > gYd([object
> > Object])@http://espo.etenders.uk:8081/uk/v4workflow/E<http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:7030>
>
>

-- 
Davide Micheletti

-- 
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: how to reproduce.cache.html error in dev

2013-12-05 Thread Davide Micheletti
yes.. u can see it in the code that i posted..


On Thu, Dec 5, 2013 at 7:15 PM, Juan Pablo Gardella <
gardellajuanpa...@gmail.com> wrote:

> Do you have a catch for NullPointerException in the code that is
> translated to Javascript?
>
>
> 2013/12/5 Davide Micheletti 
>
>> i think that i did't explain well. The webapp run but never in the same
>> mode. i attach some screen so you can understand.
>>
>>
>>
>>
>> On Thu, Dec 5, 2013 at 4:38 PM, Pablo Nussembaum wrote:
>>
>>> Hi Bhumika,
>>> You can take a look to:
>>>
>>> http://www.gwtproject.org/javadoc/latest/com/google/gwt/logging/server/StackTraceDeobfuscator.html
>>> It can be used to de-obfuscate the stacktrace.
>>>
>>> also check:
>>> https://groups.google.com/forum/#!topic/google-web-toolkit/jikvFQUJYjk
>>>
>>> Regards,
>>> --
>>> Pablo
>>>
>>> On 12/05/2013 03:42 AM, Bhumika Thaker wrote:
>>> > Hi All,
>>> >
>>> > In my gwt application, I am facing below error in war but not in
>>> > development.
>>> > This error is not understandable
>>> > can any body suggest how can I reach to this error in development.
>>> >
>>> > com.google.gwt.core.client.JavaScriptException: (TypeError): a.b.k.j
>>> > is null stack: GXd([object Object],[object
>>> > Object])@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:7116
>>> > HNi([object Object],[object
>>> > Object])@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:3830
>>> > JNi([object
>>> > Object])@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:7919
>>> > cG([object Object],[object
>>> > Object],null)@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:10218
>>> > NF([object Object],[object
>>> > Object])@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:9321
>>> > gYd([object
>>> > Object])@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:7030
>>> > s_d([object
>>> > Object])@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:7919
>>> > gC([object
>>> > Object])@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:10553
>>> > cG([object Object],[object
>>> > Object],null)@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:10218
>>> > SF([object Object],[object
>>> > Object])@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:9833
>>> > If([object Object],[object
>>> > Object])@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:6980
>>> > IB([object MouseEvent],[object Object],[object
>>> > HTMLDivElement])@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:9516
>>> > Lf([object Object],[object
>>> > MouseEvent])@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:9286
>>> > Yf([object
>>> > MouseEvent])@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:10553
>>> > DBc([object MouseEvent],[object HTMLDivElement],[object
>>> > Object])@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:9128
>>> > ([object
>>> > MouseEvent])@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:10481
>>> > Mp((function (a) {var b, c = this;while (c && !(b = c.__listener)) {c
>>> > = c.parentNode;}c && c.nodeType != 1 && (c = null);b && fDc(b) &&
>>> > DBc(a, c, b);}),[object HTMLDivElement],[object
>>> > Arguments])@
>>> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:7802
>>> > Pp((function (a) {var b, c = this;while (c && !(b = c.__listener)) {c
>>> > = c.parentNode;}c && c.nodeType != 1 && (c = null);b && fDc(b) &&
>>> > DBc(a, c, b);}),[object HTMLDivElement

Re: RPC Service returns null in client, but not in service.

2013-12-05 Thread Davide Micheletti
No, the constructor is in the class. The strange is that in DevMod these
problem there isn't..


On Thu, Dec 5, 2013 at 9:40 PM, Rocco De Angelis wrote:

> Maybe the default constructor is missing for a class which will be
> serialized? In this case the fields will be return null.
>
> --
> 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.


  1   2   >