Re: SimpleLayoutPanel inside a ScrollPanel or a VerticalPanel does not work

2017-05-27 Thread Piotr Morgwai Kotarbinski
great, many thanks for your help! :)


On Saturday, May 27, 2017 at 4:19:13 PM UTC+7, Thomas Broyer wrote:
>
>
>
> On Friday, May 26, 2017 at 10:32:12 PM UTC+2, Piotr Morgwai Kotarbinski 
> wrote:
>>
>> Hey all,
>> I have the following code:
>>
>> uiBinder ui.xml template:
>> http://dl.google.com/gwt/DTD/xhtml.ent;>
>> > "urn:import:com.google.gwt.user.client.ui">
>>   
>> AAA
>>   
>> 
>>
>> uiBinder java class:
>> public class TestLayout extends Composite {
>>   interface ViewUiBinder extends UiBinder<Widget, TestLayout> {}
>>   private static ViewUiBinder uiBinder = GWT.create(ViewUiBinder.class);
>>   public TestLayout() { initWidget(uiBinder.createAndBindUi(this)); }
>> }
>>
>> entryPoint:
>> public void onModuleLoad() { RootLayoutPanel.get().add(new TestLayout()); 
>> }
>>
>> ...and it renders to an empty page :(
>>
>> the exact resulting html is like this: (copied from chrome's dom 
>> inspector, formatting mine)
>> 
>> 
>> 
>>   
>>   
>>   http://localhost:8088/Gwt/gwt/standard/standard.css;>
>>   http://localhost:8088/Gwt/7ED5A073690437962C6F98112D263AB9.cache.js&quot</a>;
>> >
>> 
>> 
>> 
>> 
>> 
>>   
>>   
>> 
>>   
>> 
>>   
>> 
>>   
>> AAA
>>   
>> 
>>   
>> 
>>   
>> 
>> 
>> 
>>
>> notice the "position: absolute;" in the style of the 2 inner-most div 
>> elements surrounding "AAA" : if I change them manually to "position: 
>> relative;" inside chrome's dom inspector then it renders ok.
>> moreover, if I just replace the SimpleLayoutPanel with a SimplePanel in 
>> the ui.xml file, it all renders fine in spite of still using a 
>> RootLayoutPanel (not a RootPanel) in my EntryPoint... :?
>>
>> I've also noticed that similar problem appears when I try to put a 
>> SimpleLayoutPanel inside a VerticalPanel:
>> http://dl.google.com/gwt/DTD/xhtml.ent;>
>> > "urn:import:com.google.gwt.user.client.ui">
>>   
>> AAA
>> BBB
>>   
>> 
>>
>> ...because of very similar reasons: the 2 inner-most div elements around 
>> both "AAA" and "BBB" will have "position: absolute;" in their style. Again, 
>> replacing it manually for "position: relative;" makes it render ok and 
>> replacing the SimpleLayoutPanel with a SimplePanel makes it all work ok.
>>
>> Is it a bug or am I missing something? If it's expected then what Panel 
>> should I use instead of a SimpleLayoutPanel as a placeholder inside a 
>> ScrollPanel or a VerticalPanel when using layout Panels in general? (a 
>> SimplePanel works, but it's not a layout Panel, so I guess I should not 
>> rely that it will work under all possible circumstances and I guess I 
>> should be using some layout Panel instead)
>>
>
> tl;dr: use a SimplePanel (it's OK, it's "just a div element"; actually a 
> SimplePanel is like a FlowPanel, except its API ensures it can only contain 
> one single Widget).
>
> For a ScrollPanel to be able to make its content scroll, it must not 
> dictate its size.
> A SimpleLayoutPanel expects that its parent will give it dimensions, that 
> it will then transfer to its inner widget (hence the div with 
> position:relative with a div with position:absolute an 
> left:0;top:0;width:100%;height:100%, and the gwt-Label with 
> left:0;top:0;right:0;bottom:0). If you don't give an explicit size to the 
> SimpleLayoutPanel, and its parent doesn't (such as when it's a ScrollPanel 
> or a VerticalPanel), then it'll end up with a height of 0, and because of 
> the overflow:hidden you won't see its content (the gwt-Label).
>

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


SimpleLayoutPanel inside a ScrollPanel or a VerticalPanel does not work

2017-05-26 Thread Piotr Morgwai Kotarbinski
Hey all,
I have the following code:

uiBinder ui.xml template:
http://dl.google.com/gwt/DTD/xhtml.ent;>

  
AAA
  


uiBinder java class:
public class TestLayout extends Composite {
  interface ViewUiBinder extends UiBinder {}
  private static ViewUiBinder uiBinder = GWT.create(ViewUiBinder.class);
  public TestLayout() { initWidget(uiBinder.createAndBindUi(this)); }
}

entryPoint:
public void onModuleLoad() { RootLayoutPanel.get().add(new TestLayout()); }

...and it renders to an empty page :(

the exact resulting html is like this: (copied from chrome's dom inspector, 
formatting mine)



  
  
  http://localhost:8088/Gwt/gwt/standard/standard.css;>
  http://localhost:8088/Gwt/7ED5A073690437962C6F98112D263AB9.cache.js";
>





  
  

  

  
  
AAA
  

  

  




notice the "position: absolute;" in the style of the 2 inner-most div 
elements surrounding "AAA" : if I change them manually to "position: 
relative;" inside chrome's dom inspector then it renders ok.
moreover, if I just replace the SimpleLayoutPanel with a SimplePanel in the 
ui.xml file, it all renders fine in spite of still using a RootLayoutPanel 
(not a RootPanel) in my EntryPoint... :?

I've also noticed that similar problem appears when I try to put a 
SimpleLayoutPanel inside a VerticalPanel:
http://dl.google.com/gwt/DTD/xhtml.ent;>

  
AAA
BBB
  


...because of very similar reasons: the 2 inner-most div elements around 
both "AAA" and "BBB" will have "position: absolute;" in their style. Again, 
replacing it manually for "position: relative;" makes it render ok and 
replacing the SimpleLayoutPanel with a SimplePanel makes it all work ok.

Is it a bug or am I missing something? If it's expected then what Panel 
should I use instead of a SimpleLayoutPanel as a placeholder inside a 
ScrollPanel or a VerticalPanel when using layout Panels in general? (a 
SimplePanel works, but it's not a layout Panel, so I guess I should not 
rely that it will work under all possible circumstances and I guess I 
should be using some layout Panel instead)

I would be grateful for any feedback or advice :)

Thanks!

-- 
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: Google Plugin for Eclipse Mars

2016-11-04 Thread Piotr Morgwai Kotarbinski
FYI: old plugin downloads for all 3 versions (luna, mars, neon) work 
correctly again as of today :)



On Wednesday, October 26, 2016 at 10:07:57 PM UTC+7, Piotr Morgwai 
Kotarbinski wrote:
>
> This plugin, although soon to be deprecated, worked ok for many ppl. Now 
> they are suddenly forced to migrate without any warning... Does anybody has 
> a cash of last available version for eclipse 4.5 (mars) maybe?
>
> Thanks!
>
>
> On Wednesday, October 19, 2016 at 12:01:29 AM UTC+7, Brandon Donnelson 
> wrote:
>>
>> Google will officially deprecate GPE soon, in the 4th quarter. Obviously 
>> I can't speak officially for them, but take my word it's coming. So I'm 
>> warning it's coming, and presenting the deprecation earlier, as I've been 
>> separated the GWT features from the cloud tools. The 
>> https://github.com/GoogleCloudPlatform/google-cloud-eclipse will be 
>> replacing GPE in November as the official plugin. This plugin is far better 
>> than GPE, although it's not polished to beta yet. 
>>
>> The documentation switch is on the agenda to update still. 
>>
>> On Tue, Oct 18, 2016 at 9:23 AM Jim Douglas <jdo...@basis.com> wrote:
>>
>>> Is there an announcement of the deprecation anywhere, Brandon?  Those 
>>> URLs all look like works in progress.
>>>
>>> When a random developer goes looking for the Google Plugin for Eclipse, 
>>> he finds this:
>>>
>>> https://developers.google.com/eclipse/
>>>
>>> Which leads to these install instructions:
>>>
>>> https://developers.google.com/eclipse/docs/getting_started
>>>
>>> Which leads to these instructions:
>>>
>>> Plugin for Eclipse 4.6 (Neon) 
>>> <https://developers.google.com/eclipse/docs/install-eclipse-4.6>
>>>
>>> Plugin for Eclipse 4.5 (Mars) 
>>> <https://developers.google.com/eclipse/docs/install-eclipse-4.5>
>>>
>>> Plugin for Eclipse 4.4 (Luna) 
>>> <https://developers.google.com/eclipse/docs/install-eclipse-4.4>
>>>
>>>
>>> On Tuesday, October 18, 2016 at 8:16:24 AM UTC-7, Brandon Donnelson 
>>> wrote:
>>>>
>>>> Michael is right, GPE and GPE fork is deprecated. 
>>>>
>>>> - GPE is deprecated (or will be in 4th quarter)
>>>> - The new GWT Eclipse Plugin V3 can be installed on mars and neon. The 
>>>> install will conflict with GPE or GPE-Fork so it will ask you to remove 
>>>> GPE 
>>>> if it is installed. 
>>>> - I haven't tested the install GWT Eclipse Plugin V3 with the GPE 
>>>> uninstall path very much so I'm interested if that works, and if it 
>>>> doesn't 
>>>> please report back :)
>>>>
>>>>
>>>> http://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/Download.html
>>>>  
>>>>  - 3 options to dowload, the market place is best 
>>>>
>>>> Thanks,
>>>> Brandon
>>>>
>>>>  
>>>>
>>>
>>>

-- 
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: GWT 2.8.0 released

2016-10-26 Thread Piotr Morgwai Kotarbinski
great news! thanks to everybody who made this happen!


On Saturday, October 22, 2016 at 2:21:41 AM UTC+7, Daniel Kurka wrote:
>
> Hi all,
>
> I am very happy to announce GWT 2.8.0 on behalf of the GWT steering 
> committee and the GWT team at Google.
>
> You can download the release from http://www.gwtproject.org/download.html 
> or from maven central.
>
> The release notes can be found at 
> http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_0
>
> Daniel,
> on behalf of the GWT team
>

-- 
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: Google Plugin for Eclipse Mars

2016-10-26 Thread Piotr Morgwai Kotarbinski
This plugin, although soon to be deprecated, worked ok for many ppl. Now 
they are suddenly forced to migrate without any warning... Does anybody has 
a cash of last available version for eclipse 4.5 (mars) maybe?

Thanks!


On Wednesday, October 19, 2016 at 12:01:29 AM UTC+7, Brandon Donnelson 
wrote:
>
> Google will officially deprecate GPE soon, in the 4th quarter. Obviously I 
> can't speak officially for them, but take my word it's coming. So I'm 
> warning it's coming, and presenting the deprecation earlier, as I've been 
> separated the GWT features from the cloud tools. The 
> https://github.com/GoogleCloudPlatform/google-cloud-eclipse will be 
> replacing GPE in November as the official plugin. This plugin is far better 
> than GPE, although it's not polished to beta yet. 
>
> The documentation switch is on the agenda to update still. 
>
> On Tue, Oct 18, 2016 at 9:23 AM Jim Douglas  > wrote:
>
>> Is there an announcement of the deprecation anywhere, Brandon?  Those 
>> URLs all look like works in progress.
>>
>> When a random developer goes looking for the Google Plugin for Eclipse, 
>> he finds this:
>>
>> https://developers.google.com/eclipse/
>>
>> Which leads to these install instructions:
>>
>> https://developers.google.com/eclipse/docs/getting_started
>>
>> Which leads to these instructions:
>>
>> Plugin for Eclipse 4.6 (Neon) 
>> 
>>
>> Plugin for Eclipse 4.5 (Mars) 
>> 
>>
>> Plugin for Eclipse 4.4 (Luna) 
>> 
>>
>>
>> On Tuesday, October 18, 2016 at 8:16:24 AM UTC-7, Brandon Donnelson wrote:
>>>
>>> Michael is right, GPE and GPE fork is deprecated. 
>>>
>>> - GPE is deprecated (or will be in 4th quarter)
>>> - The new GWT Eclipse Plugin V3 can be installed on mars and neon. The 
>>> install will conflict with GPE or GPE-Fork so it will ask you to remove GPE 
>>> if it is installed. 
>>> - I haven't tested the install GWT Eclipse Plugin V3 with the GPE 
>>> uninstall path very much so I'm interested if that works, and if it doesn't 
>>> please report back :)
>>>
>>>
>>> http://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/Download.html 
>>>  - 3 options to dowload, the market place is best 
>>>
>>> Thanks,
>>> Brandon
>>>
>>>  
>>>
>>
>>

-- 
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: A DateBox where I can select the time and hide the DatePicker

2016-10-13 Thread Piotr Morgwai Kotarbinski
it's a vry old thread, but seems many ppl still have the same problem, 
so regarding 1:
begin.getDatePicker().setVisible(false);


-- 
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: GwT app behing Apache httpd ProxyPass

2015-08-11 Thread Piotr Morgwai Kotarbinski
the below thread is about a similar issue, hope it will help you:
https://groups.google.com/forum/#!starred/google-web-toolkit/Zi_dtUEePlY


On Monday, August 10, 2015 at 8:36:24 PM UTC+7, Kulnor wrote:

 Am trying to provide public access to a back end GwT app running on back 
 end private cloud server going through an Apache httpd server as front end 
 proxy.
 I can ProxyPass via AJP or HTTP, but when I try to load the app, I get an 
 XSRF error on the first call as the module path requested is not in the 
 same web application as for the servlet.
 Tried few variations using ProxyPass / ProxyPassReverse and Substitute but 
 no resolution yet. Has anyone configured as similar setup? Any suggestion 
 would be appreciated.
 best
 *K


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