Angular JS with GWT

2014-02-20 Thread tarish
Hi Guys,
Will it be good idea to integrate Angular js with GWT. The idea is to use 
features of both GWT and angular js, has anyone done it yet??? please let 
me know

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: Running Hupa in Development Mode

2014-02-20 Thread Harry Lin
I'm working on the trunk :)

By the way, I got a error with the the version i used and this trunk.

In Hupa.gwt.xml file

With  tag

it says :
The content of element type "module" must match
"(inherits|source|public|super-source|entry-point|
 
stylesheet|script|servlet|replace-with|generate-with|define-property|extend-property|set-property|set-
 configuration-property|property-provider|define-linker|add-linker)*".

How can i solve it ?




2014-02-21 6:25 GMT+08:00 Manuel Carrasco Moñino :

> I have  compiled that version without problem.
>
> Anyway we are developing a new version of hupa which a lot of changes,
>  try to check out last stuff from github and compile it
>
> https://github.com/manolo/james-hupa
>
> - Manolo
>
>
>
>
>
> On Wed, Feb 19, 2014 at 5:15 AM, Harry Lin  wrote:
>
>>
>> Hi Manuel,
>> I download Hupa from http://james.apache.org/hupa/ ,
>> The version is 0.0.2.
>>
>>
>> Manuel Carrasco於 2014年2月17日星期一UTC+8上午3時58分55秒寫道:
>>>
>>> Which version have you checked out?
>>>
>>>
>>> On Thu, Feb 13, 2014 at 11:43 AM, Harry Lin  wrote:
>>>
 In my attempt to run hupa in Development  mode I receive the following
 error.

 The application was stuck in loading, although it can get into the Mail
 page
 (I can see the number of mails in INBOX and Trash...But the loading
 message showing in the middle)


 Could anyone provide some direction as to what may be going on here?


  log start here
 Loading modules
org.apache.hupa.HupaProd
   Validating  tags for module 'hupa'
  [WARN] Module declares a servlet class
 'com.google.gwt.gen2.logging.server.RemoteLoggingService', but the
 web.xml has no corresponding declaration; please add the following lines to
 your web.xml:
 
   remoteLoggingService
   com.google.gwt.gen2.logging.server.
 RemoteLoggingService
 
 
   remoteLoggingService
   /hupa/logging
 
org.apache.hupa.Hupa
   Validating  tags for module 'hupa'
  [WARN] Module declares a servlet class
 'com.google.gwt.gen2.logging.server.RemoteLoggingService', but the
 web.xml has no corresponding declaration; please add the following lines to
 your web.xml:
 
   remoteLoggingService
   com.google.gwt.gen2.logging.server.
 RemoteLoggingService
 
 
   remoteLoggingService
   /hupa/logging
 
 [WARN] Server class 'org.apache.hupa.server.mock.MockConstants' could
 not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/D:/Harry.Lin/java/
 workspace/hupa-parent-0.0.2/mock/target/classes/' to the web app
 classpath for this session
 0[main] INFO  HupaLogger  - >> Started HUPA with configuration ->
 {IMAPS=true, SMTPAuth=true, IMAPServerPort=993, IMAPServerAddress=
 imap.gmail.com, TrustStore=, SMTPServerPort=465,
 DefaultTrashFolder=[Gmail]/Trash, SMTPServerAddress=smtp.gmail.com,
 DefaultInboxFolder=INBOX, SMTPS=true, DefaultDraftsFolder=[Gmail]/Drafts,
 PostFetchMessageCount=0, DefaultSentFolder=[Gmail]/Sent,
 IMAPConnectionPoolSize=4, IMAPConnectionPoolTimeout=30,
 TrustStorePassword=, SessionDebug=true}
 60   [main] INFO  gwtupload.server.UploadServlet  - UPLOAD-SERVLET
 init: maxSize=10485760, slowUploads=null, isAppEngine=false
 61   [main] INFO  gwtupload.server.UploadServlet  - UPLOAD-ACTION
 init: removeSessionFiles=false, removeData=false
 [WARN] Server class 'junit.framework.AssertionFailedError' could not
 be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/C:/Users/kirin/.m2/
 repository/junit/junit/4.9/junit-4.9.jar' to the web app classpath for
 this session
 111461 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: executing:
 CheckSession
 111475 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: finished:
 CheckSession
 133238 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: executing:
 LoginUser
 136221 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: finished:
 LoginUser
 java.lang.RuntimeException
 at org.apache.hupa.client.CachingDispatchAsync.
 executeOneRequestPerAction(CachingDispatchAsync.java:87)
 at org.apache.hupa.client.CachingDispatchAsync.execute(
 CachingDispatchAsync.java:67)
 at org.apache.hupa.client.mvp.MessageTableModel.requestRows(
 MessageTableModel.java:120)
 at com.google.gwt.gen2.table.client.CachedTableModel.
 requestRows(CachedTableModel.java:321)
 at com.google.gwt.gen2.table.client.PagingScrollTable.
 gotoPage(PagingScrollTable.java:732)
 at org.apache.hupa.client.mvp.IMAPMessageListView.reset(
 IMAPMessageListView.java:477)
 at org.apache.hupa.client.mvp.IMAPMessageListPresenter.
 revealDisplay(IMAPMessageListPresenter.java:421)
 

Re: Laying out a LayoutPanel

2014-02-20 Thread Blake McBride
Since I couldn't get SplitLayoutPanel to work as I wanted, I used your
suggestion.  Works like champ.  Thanks!


On Wed, Feb 19, 2014 at 6:03 PM, Jens  wrote:

> Use setWidgetTopBottom() for the upper layers:
>
>
> LayoutPanel layout = new LayoutPanel();
> layout.add(leftTop);
> layout.setWidgetLeftWidth(leftTop, 0, Style.Unit.PCT, 50,
> Style.Unit.PCT);
> layout.setWidgetTopBottom(leftTop, 0, 
> Style.Unit.PCT,
> 30, Style.Unit.PT);
>
> layout.add(rightTop);
> layout.setWidgetRightWidth(rightTop, 0, Style.Unit.PCT, 50,
> Style.Unit.PCT);
> layout.setWidgetTopBottom(rightTop, 0, 
> Style.Unit.PCT,
> 30, Style.Unit.PT);
>
> layout.add(leftBottom);
> layout.setWidgetLeftWidth(leftBottom, 0, Style.Unit.PCT, 50,
> Style.Unit.PCT);
> layout.setWidgetBottomHeight(leftBottom, 0, 
> Style.Unit.PCT,
> 30, Style.Unit.P T);
>
> layout.add(rightBottom);
> layout.setWidgetRightWidth(rightBottom, 0, Style.Unit.PCT, 50,
> Style.Unit.PCT);
> layout.setWidgetBottomHeight(rightBottom, 0, 
> Style.Unit.PCT,
> 30, Style.Unit.PT );
>
>
> -- 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.


Re: Trouble with forceLayout

2014-02-20 Thread Blake McBride
I found a solution that may point to the problem.  The following works:

   Scheduler.get().scheduleDeferred(new Command() {
public void execute () {
 RootLayoutPanel.get().forceLayout();
}

Previously, I was doing the forceLayout (at various levels) after
everything was built.  That didn't work, but if I give JavaScript a chance
to catch up it does!  Note that it also works if I forceLayout at a lower
level rather than the root.

I don't know if this is a hack simply indicating a different problem I
have, or if it is a worst-case / works-no-matter-what way to do it.

Hope this is helpful to others.

Blake



On Thu, Feb 20, 2014 at 4:24 PM, Blake McBride  wrote:

> Greetings,
>
> I think over the last year I have spent a good two to three solid weeks
> messing with forceLayout().  I just can't seem to get it straight, and
> then, when I think I do, it only works for some browsers and works
> differently on others.
>
> The specific problem I have now involves a structure that look like this
> (from top to bottom):
>
> RootLayoutPanel
> DockLayoutPanel
> DockLayoutPanel
> SplitLayoutPanel
>  DockLayoutPanel
> FramedPanel (Sencha)
> VerticalLayoutContainer (Sencha)
> Grid (Sencha)
>
> All of this nesting is done on the part of the widget that auto-expands
> like the center of a DockLayoutPanel.
>
> The problem is that the initial grid doesn't take up all vertical space as
> it should.  If I resize the browser everything corrects itself and it looks
> perfect.  I tried putting a forceLayout call at each of the five top levels
> (separately).  Each failed to correctly setup the initial screen.
>
> The thing mainly not displaying correctly is the grid.  It shows no lines
> unless I resize the display.
>
> I am pretty lost and don't know what else to try.
>
> Thanks.
>
> Blake McBride
>
>

-- 
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: CssResource inheritance and avoiding rule repetition on injection, possibility of an @Require?

2014-02-20 Thread Jens
If you write a widget and that widget uses a button and that button has a 
default style defined in a BaseCssResource then you should use that 
BaseCssResource directly in your widget. You should not make your 
WidgetCssResource extend the BaseCssResource. Why? Because as soon as you 
do so, all the CSS rules of BaseCssResource will be duplicated (even if the 
BaseCssResource is annotated with @Shared, which will cause the issue you 
describe) and that is not what you want. Imagine you have 50 widgets and 
each of their CssResources extends the BaseCssResource. You would end up 
with 50 times the same base CSS code injected in your html page (either 
with the same CSS class names if you use @Shared on your BaseCssResource or 
with different CSS class names if not).

What you should do in all your widgets is:




  .redbutton { background-color:red; }




And in your custom widget constructor you would do

public MyWidget() {
  bundle.baseCss().ensureInjected();
}

That way your base CSS is only injected once into your HTML page and all 
your widgets use these rules directly instead of duplicating them over and 
over again. It is also clear, just by looking at the xml/code, that the 
base CSS is shared by multiple widgets and that the  CSS is only 
local to that single widget.


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


Re: gwt-log servlet configuration parameter 'symbolMaps"

2014-02-20 Thread confile
Did you solve the problem? I have the same.

Am Dienstag, 5. März 2013 16:24:41 UTC+1 schrieb Alexis Thésée:
>
> Hello,
>
> i wan't to use gwt-log in my application, because i can have the client 
> log on the server.
>
> I have followed that page to use it 
>
> https://code.google.com/p/gwt-log/wiki/GettingStarted#Enable_the_remote_logging_option_%28disabled_by_default%29
>
> i deploy my application with the -deploy war/WEB-INF/deploy/
>
> I'm using tomcat server, the log message is correctly sent but i have this 
> error in tomcat :
>
>
> WARNING: Servlet configuration parameter 'symbolMaps' specifies directory 
> 'WEB-INF/deploy/camgolf/symbolMaps/' which does not exist or is not 
> relative to your server's current working directory 'C:\tomcat\bin'
> WARNING: In order to enable stack trace deobfuscation, please specify the 
> 'symbolMaps'  for the 
> com.allen_sauer.gwt.log.server.RemoteLoggerServlet servlet in your web.xml
>
> I don't understand why..
>
> My xml : 
>
>
>   
>>
>>   gwt-log-remote-logger-servlet
>>   
>> com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl
>>
>>   
>>   
>> 
>> symbolMaps
>> 
>> WEB-INF/deploy/[MyAppsName]/symbolMaps/ 
>>   
>> 
>>
>> 
>>   gwt-log-remote-logger-servlet
>>   /[MyAppsName]/gwt-log
>> 
>>
>   
>
>
> Someone could help me.
>
> 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/groups/opt_out.


Trouble with forceLayout

2014-02-20 Thread Blake McBride
Greetings,

I think over the last year I have spent a good two to three solid weeks
messing with forceLayout().  I just can't seem to get it straight, and
then, when I think I do, it only works for some browsers and works
differently on others.

The specific problem I have now involves a structure that look like this
(from top to bottom):

RootLayoutPanel
DockLayoutPanel
DockLayoutPanel
SplitLayoutPanel
DockLayoutPanel
FramedPanel (Sencha)
VerticalLayoutContainer (Sencha)
Grid (Sencha)

All of this nesting is done on the part of the widget that auto-expands
like the center of a DockLayoutPanel.

The problem is that the initial grid doesn't take up all vertical space as
it should.  If I resize the browser everything corrects itself and it looks
perfect.  I tried putting a forceLayout call at each of the five top levels
(separately).  Each failed to correctly setup the initial screen.

The thing mainly not displaying correctly is the grid.  It shows no lines
unless I resize the display.

I am pretty lost and don't know what else to try.

Thanks.

Blake McBride

-- 
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: Running Hupa in Development Mode

2014-02-20 Thread Manuel Carrasco Moñino
I have  compiled that version without problem.

Anyway we are developing a new version of hupa which a lot of changes,  try
to check out last stuff from github and compile it

https://github.com/manolo/james-hupa

- Manolo





On Wed, Feb 19, 2014 at 5:15 AM, Harry Lin  wrote:

>
> Hi Manuel,
> I download Hupa from http://james.apache.org/hupa/ ,
> The version is 0.0.2.
>
>
> Manuel Carrasco於 2014年2月17日星期一UTC+8上午3時58分55秒寫道:
>>
>> Which version have you checked out?
>>
>>
>> On Thu, Feb 13, 2014 at 11:43 AM, Harry Lin  wrote:
>>
>>> In my attempt to run hupa in Development  mode I receive the following
>>> error.
>>>
>>> The application was stuck in loading, although it can get into the Mail
>>> page
>>> (I can see the number of mails in INBOX and Trash...But the loading
>>> message showing in the middle)
>>>
>>>
>>> Could anyone provide some direction as to what may be going on here?
>>>
>>>
>>>  log start here
>>> Loading modules
>>>org.apache.hupa.HupaProd
>>>   Validating  tags for module 'hupa'
>>>  [WARN] Module declares a servlet class
>>> 'com.google.gwt.gen2.logging.server.RemoteLoggingService', but the
>>> web.xml has no corresponding declaration; please add the following lines to
>>> your web.xml:
>>> 
>>>   remoteLoggingService
>>>   com.google.gwt.gen2.logging.server.
>>> RemoteLoggingService
>>> 
>>> 
>>>   remoteLoggingService
>>>   /hupa/logging
>>> 
>>>org.apache.hupa.Hupa
>>>   Validating  tags for module 'hupa'
>>>  [WARN] Module declares a servlet class
>>> 'com.google.gwt.gen2.logging.server.RemoteLoggingService', but the
>>> web.xml has no corresponding declaration; please add the following lines to
>>> your web.xml:
>>> 
>>>   remoteLoggingService
>>>   com.google.gwt.gen2.logging.server.
>>> RemoteLoggingService
>>> 
>>> 
>>>   remoteLoggingService
>>>   /hupa/logging
>>> 
>>> [WARN] Server class 'org.apache.hupa.server.mock.MockConstants' could
>>> not be found in the web app, but was found on the system classpath
>>>[WARN] Adding classpath entry 'file:/D:/Harry.Lin/java/
>>> workspace/hupa-parent-0.0.2/mock/target/classes/' to the web app
>>> classpath for this session
>>> 0[main] INFO  HupaLogger  - >> Started HUPA with configuration ->
>>> {IMAPS=true, SMTPAuth=true, IMAPServerPort=993, IMAPServerAddress=
>>> imap.gmail.com, TrustStore=, SMTPServerPort=465,
>>> DefaultTrashFolder=[Gmail]/Trash, SMTPServerAddress=smtp.gmail.com,
>>> DefaultInboxFolder=INBOX, SMTPS=true, DefaultDraftsFolder=[Gmail]/Drafts,
>>> PostFetchMessageCount=0, DefaultSentFolder=[Gmail]/Sent,
>>> IMAPConnectionPoolSize=4, IMAPConnectionPoolTimeout=30,
>>> TrustStorePassword=, SessionDebug=true}
>>> 60   [main] INFO  gwtupload.server.UploadServlet  - UPLOAD-SERVLET
>>> init: maxSize=10485760, slowUploads=null, isAppEngine=false
>>> 61   [main] INFO  gwtupload.server.UploadServlet  - UPLOAD-ACTION init:
>>> removeSessionFiles=false, removeData=false
>>> [WARN] Server class 'junit.framework.AssertionFailedError' could not be
>>> found in the web app, but was found on the system classpath
>>>[WARN] Adding classpath entry 'file:/C:/Users/kirin/.m2/
>>> repository/junit/junit/4.9/junit-4.9.jar' to the web app classpath for
>>> this session
>>> 111461 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: executing:
>>> CheckSession
>>> 111475 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: finished:
>>> CheckSession
>>> 133238 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: executing:
>>> LoginUser
>>> 136221 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: finished:
>>> LoginUser
>>> java.lang.RuntimeException
>>> at org.apache.hupa.client.CachingDispatchAsync.
>>> executeOneRequestPerAction(CachingDispatchAsync.java:87)
>>> at org.apache.hupa.client.CachingDispatchAsync.execute(
>>> CachingDispatchAsync.java:67)
>>> at org.apache.hupa.client.mvp.MessageTableModel.requestRows(
>>> MessageTableModel.java:120)
>>> at com.google.gwt.gen2.table.client.CachedTableModel.
>>> requestRows(CachedTableModel.java:321)
>>> at com.google.gwt.gen2.table.client.PagingScrollTable.
>>> gotoPage(PagingScrollTable.java:732)
>>> at org.apache.hupa.client.mvp.IMAPMessageListView.reset(
>>> IMAPMessageListView.java:477)
>>> at org.apache.hupa.client.mvp.IMAPMessageListPresenter.
>>> revealDisplay(IMAPMessageListPresenter.java:421)
>>> at org.apache.hupa.client.mvp.MainPresenter.showMessageTable(
>>> MainPresenter.java:233)
>>> at org.apache.hupa.client.mvp.MainPresenter.access$5(
>>> MainPresenter.java:227)
>>> at org.apache.hupa.client.mvp.MainPresenter$23.onLogin(
>>> MainPresenter.java:484)
>>> at org.apache.hupa.shared.events.LoginEvent.dispatch(
>>> LoginEvent.java:46)
>>> at org.apache.hupa.shared.events.LoginEvent.dispatch(
>>> LoginEvent.java:1)
>>> at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
>>> at com.google.web.bindery.event.shared.EventBus.dispatchEvent(
>>> EventBus.java:40)
>>>   

Re: CssResource inheritance and avoiding rule repetition on injection, possibility of an @Require?

2014-02-20 Thread GWTter
Before anything, sorry Thomas, I think I may have just replied to you 
instead of just the topic (buttons bugged on me a bit), no-spam intended

You're right I guess I did misunderstand if the imported with prefix 
doesn't in fact use a different obfuscation
for the original selectors in the final css. So using the imported with 
prefix method isn't a viable workaround for avoid the
precedence override on injection after all.

And definitely, anything that will help clear it up. I can try to clarify 
my original example:

You have the following,

=== Pseudocode ===

CssResouces:

SuperCssResource, is injected onModuleLoad (global css) and has the 
following css as its source:
.genButton{
color: black;
}

and

LeafCssResource extends SuperCssResource
 
css definitions here 



Finally, we have the following 2 widgets:

WidgetDisplayedFirst, 
has the following css via uibinder:
MyCssResource:
.myButton{
color: red;
}

And this button element:



and WidgetDisplayedSecond which uses LeafCssResource

--

Now if while my app is running I just display WidgetDisplayedFirst then it 
will display its button
with the correct color: red because the .myButton was declared last and 
thus overrides the .genButton which
has the same specificity.

The issue comes into play if I then display WidgetDisplayedSecond. Since 
WidgetDisplayedSecond uses LeafCssResource
this will cause SuperCssResource and its css to be injected when 
LeafCssResource is injected. At this point because
SuperCssResource has now been reinjected and thus is now the last one 
declared between it and MyCssResource, its
.genButton rule now wins and causes WidgetDisplayedFirst's button to now 
have a color of black.

Now, granted, this is how Css is intended to work in terms of the cascade. 
However, what I'm trying to say is that this
is an example of a case where that is not the desired outcome if you want 
the button to keep the color of red as defined
in its MyCssResource.

You really only have 3 options in order to prevent this currently as far as 
I can see:
1) You over-qualify all of your selectors to ensure that they always have 
the most specifity and nothing
will override them
=>CON: over-qualifying is not great for performance and is not as 
maintainable/cascadeable

2) You architect the app taking into account every single inheriting 
resource that is injected dynamically/on-demand to make sure
that the injection of the extended resource does not cause an override in 
widgets who are using its classes.
=>CON: extremely unrealistic for non-trivial apps much less a real web-app

3)Do not extend CssResources, this way you can ensure that all resources 
and their associated styles are ONLY injected
once in the lifetime of the app so there are no worries of unintended 
precedence overrides.
=>CON: greatly restricts selector qualifying especially when trying to 
localize css and reuse widgets

I think you can see why these 3 options are unappealing. I'd argue that 
this isn't an issue for static web pages
and the non-webapp era since you could relegate css to a page and count on 
the browser refresh to always provide
a clean slate. However, in the web-app era this seems to be a big issue 
maintainability-wise if nothing else.

This is why I was suggesting the @required functionality so the developer 
can have some assurance that styles won't be
injected more than once and thus be assured that if someone displays their 
widget anywhere then it won't break something else.

Hope that somewhat clears up what I'm trying to say.

Thanks again for the discussion.

On Thursday, February 20, 2014 1:15:48 PM UTC+1, Thomas Broyer wrote:
>
>
>
> On Thursday, February 20, 2014 12:08:28 AM UTC+1, GWTter wrote:
>>
>>
>>
>> On Wednesday, February 19, 2014 10:59:51 AM UTC+1, Thomas Broyer wrote:
>>>
>>>
>>>
>>> On Tuesday, February 18, 2014 6:38:36 PM UTC+1, GWTter wrote:

 Hi all,

 Let me just go with an example right off the bat.

 Let's say I have the following:

 === Pseudocode ===

 SuperCssResource: This is injected onModuleLoad before anything else
 .genButton{
 color: black;
 }

 Widget1 consists of:
 --- css ---
 MyCssResource:
 .myButton{
 color: red;
 }

 --- html ---
 

 Widget2 consists of:
 --- css ---
 XCssResource extends SuperCssResource:
 ... rules that use classes from SuperCssResource

 --- html ---
 ...elements

 My problem is that if I display Widget1 first and then display Widget2 
 then the button in Widget1 will have a color of black instead of red.

 I know that this is expected behavior (GWT will merge the stylesheets 
 together) since inheritance is basically the cssresource equivalent of CSS 
 @import 

>>>
>>> Er, no.
>>>
>>> Inheritance of C

Re: [Help] GWT + GAE + Android - Where to start?

2014-02-20 Thread Bruno Brito
Hello everybody,

I've been making a lot of progress in my project, however, once again I 
faced many problems.

When I chose to use GWT, I didn't think that I would have so much trouble 
facing Javascript codes.
Just to be clear, I'm using Google Cloud Endpoints APIs + GWT, and as you 
know, Google Endpoints API access is made via Javascript.

So, here is my problem.
I have an API that should retrieve a list of objects. Example of code:

@ApiMethod(name = "listDeviceInfo")
public CollectionResponse listDeviceInfo(
@Nullable @Named("cursor") String cursorString,
@Nullable @Named("limit") Integer limit) {

EntityManager mgr = null;
Cursor cursor = null;
List execute = null;

try {
mgr = getEntityManager();
Query query = mgr
.createQuery("select from DeviceInfo as DeviceInfo");
if (cursorString != null && cursorString != "") {
cursor = Cursor.fromWebSafeString(cursorString);
query.setHint(JPACursorHelper.CURSOR_HINT, cursor);
}

if (limit != null) {
query.setFirstResult(0);
query.setMaxResults(limit);
}

execute = (List) query.getResultList();
cursor = JPACursorHelper.getCursor(execute);
if (cursor != null)
cursorString = cursor.toWebSafeString();

// Tight loop for fetching all entities from datastore and accomodate
// for lazy fetch.
for (DeviceInfo obj : execute)
;
} finally {
mgr.close();
}

return CollectionResponse. builder().setItems(execute)
.setNextPageToken(cursorString).build();
}


But how do I access this API through Javascript?
Well, with a little help from a Google API, I can simply call: 
gapi.client.deviceinfoendpoint
.listDeviceInfo()
.execute(
function(deviceInfoItems, deviceInfoItemsRaw) {
  errorResult = checkErrorResponse(deviceInfoItems, 
deviceInfoItemsRaw);
  if (errorResult.isError) {
showError("There was a problem contacting the server when 
attempting to list the registered devices. " 
+ "Please refresh the page and try again in a short 
while. Here's the error information: "
+ errorResult.errorMessage);
  } else {
//Do something with deviceInfoItems.items   
  }
});

I know how to call this javascript function inside my GWT code using a 
native method. However, I want to create a List of DeviceInfo objects with 
the results of this Query inside my GWT Java code, and then I'll be able to 
manipulate them into a Flex or Grid. 
Is that even possible? How could I do that?


I appreciate any help.
Best Regards.


Em segunda-feira, 10 de fevereiro de 2014 22h31min23s UTC-2, Bruno Brito 
escreveu:
>
> Hey guys, this is my first post here, so I'm sorry if I'm not clear enough 
> about my question.
>
> Well, basically what I want to do is:
> - Create a website using GWT and deploy it to App Engine in order to use 
> the datastore. I've already done it, nothing wrong about it.
> - The second part of this project is about building an Android App which 
> can access the same datastore that I use for my GWT project. Read the 
> entities and retrieve them to display on the screen. And also use Google 
> Cloud Messaging.
>
>
> The problems are:
> - I've noticed that there is Google Mobile Backend Starter which already 
> deploys a backend to AppEngine and allows Cloud Messaging and many other 
> features. But, how would I link GWT to this same application at GAE? If I 
> deploy my GWT project, I lose the Android one.
> - I was also following this guide here: 
> https://developers.google.com/appengine/docs/java/endpoints/getstarted/backend/setupin
>  order to create my own backend, deploy it to AppEngine and then use the 
> client endpoints with Javascript. However, if I do this, I can't deploy my 
> GWT website to this app engine application.
>
> I don't know if I was clear enough. I've searched the group and saw some 
> posts similar to my question, but none was very clear about it.
>
> I'll be glad if anyone can 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/groups/opt_out.


SplitLayoutPanel particulars

2014-02-20 Thread Blake McBride
Greetings,

As sort of a pseudo continuation of my last email, I switched to a
SplitLayoutPanel.  That gave me everything I was looking for and a movable
partition to boot.  I do experience two new problems that I haven't found a
solution for.  I really appreciate the help.  The two problems I am having
is:

1.  There is a user adjustable splitter in the middle of the two halves.
 This is perfect.  The problem is that I also have a user adjustable
splitter at the far right too.  I do not want that.  How can I get rid of
that?

2.  Related to item 1, the SplitLayoutPanel fills up the browser window as
I want.  However, when the browser window is resized the SplitLayoutPanel
auto-resizes vertically as I want but does not auto-resize horizontally.
 (Probably the reason for the far right splitter!)  So, I want no far right
splitter, and I want the SplitLayoutPanel to auto-resize both vertically
and horizontally.

My code looks like this:


   Widget leftBottom = ...;
Widget leftTop = ...;
Widget rightBottom = ...;
Widget rightTop = ...;

SplitLayoutPanel layout = new SplitLayoutPanel();
int totalWidth = RootLayoutPanel.get().getOffsetWidth() -
layout.getSplitterSize() * 2;

DockLayoutPanel dlp1 = new DockLayoutPanel(Style.Unit.PT);
dlp1.addSouth(leftBottom, 35);
dlp1.add(leftTop);
layout.addWest(dlp1, totalWidth/2);

DockLayoutPanel dlp2 = new DockLayoutPanel(Style.Unit.PT);
dlp2.addSouth(rightBottom, 35);
dlp2.add(rightTop);
layout.addWest(dlp2, totalWidth/2);


I go for long periods of time developing just fine but run into problems
every time I try something new.  Your help is really appreciated.

Thanks.

Blake McBride

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


gwt 2.5 : Dnd native Android 4 (Chrome or Firefox)

2014-02-20 Thread pp
Hello,
Why drag and drop on touch Android doesn't  work ???

I use this :

flexTable.addDragStartHandler(new DragStartHandler() {

@Override
public void onDragStart(DragStartEvent event) {

--> I don't want use gwt-dnd api but native...

what is the solution ?

-- 
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: sibling CSS selector ~ workaround?

2014-02-20 Thread Ed
In the mean time added a listener to add an additional style.
Kind of frustration how such a single css symbol can costs you hours. it's 
like somebody hitting the break ;)
Hope CSS3 will be supported soon, or GSS will be improved.

-- 
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 add MouseOverEvent for a node in CellTree

2014-02-20 Thread Smiley


Thanks for your response.Sorry I was not clear as this was my initial post.

*Requirement:*

There will be list of Server which will form the root nodes of the CellTree.

Its child node will be list of Processes that is running on the Server.

Eg Tree:

Server1 

  Process1

   ---Process2

When we move the Mouse over the Server node then we should display a toggle 
button (Start All/ Stop All) according to the status of child processes. 

 

When we move the Mouse over the Process node then we should display a 
toggle button (Start/Stop) according to the status of the Process.

So is this achievable with CellTree if so can you give me some examples?

Or should I be using Tree Class where the TreeItem object directly supports 
the MouseOverEvent and MouseOutEvent instead of CellTree class?

Thanks in advance for your response.

On Thursday, 20 February 2014 06:02:55 UTC-5, Thomas Broyer wrote:
>
> If by "button" you mean the open/close image, then you should be able to 
> do it by just tweaking the CSS:
>
> interface MyCellTreeResources extends CellTree.Resources {
>   @Source({ CellTree.Style.DEFAULT_CSS, "mytweaks.css" })
>   MyCellTreeStyle cellTreeStyle();
> }
>
> interface MyCellTreeStyle extends CellTree.Style {
> }
>
> // mytweaks.css
> .cellTreeItem .cellTreeImage { visibiility: hidden; }
> .cellTreeItem:hover .cellTreeImage { visibility: visible; }
>
> new CellTree(viewModel, rootValue, GWT.create(MyCellTreeResources.class));
>
> On Thursday, February 20, 2014 4:09:05 AM UTC+1, Smiley wrote:
>>
>> Hi,
>>
>>
>> I want to show the button on the MouseOverEvent of a node or cell in 
>> CellTree.
>> Can someone give my some examples on how this can be achieved?
>>
>> Should i change my implementation from CellTree to Tree to achieve the 
>> same?
>>
>> Do let me know your inputs on this.
>>
>> 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: Using Cells for 2D representation

2014-02-20 Thread Jambi
This seems to do the trick for me! Thanks

Am Donnerstag, 20. Februar 2014 00:42:53 UTC+1 schrieb Jens:
>
> Give your CellList a width of 100% and your cells a fixed width along with 
> display:inline-block.
>
> Doing so using the GWT showcase results in:
>
>
> 
>
> Alternatively you can use CellWidget to wrap your cell in a widget and 
> then use it in the widget land.
>
> -- 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.


Re: sibling CSS selector ~ workaround?

2014-02-20 Thread Ed Bras
> ...because it uses the Flute CSS parser, that only supports CSS 2 syntax.
Have a look at gss.gwt if you want to use CSS 3:
>  https://github.com/jDramaix/gss.gwt

@Thomas, thanks, just give it a try, after temporarily  removing all @def,
@eval, @if statements, It will run, but it will not inject my styles, the
elements simple have no styles anymore. Thought the ensureInjected() method
do got called way before usage... Strange... Can't seem to solve this..

Is there another way? Maybe Overriding the Generator to ignore this "`"
symbol? I looked at it, but couldn't really 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.


Re: Development Mode will not be supported in Firefox 27+

2014-02-20 Thread mtr


On Thursday, February 20, 2014 11:57:30 AM UTC+1, Thomas Broyer wrote:

> I'm sure the SDBG devs would love to hear your feedback ;-)
> https://github.com/sdbg/sdbg
>  
>

SDBG has a long way to come (it is still in proof of concept stage, there 
is no support for other browser then chrome), nether the less what else we 
can do but to help them.

-- 
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: Laying out a LayoutPanel

2014-02-20 Thread Vassilis Virvilis
I would use a HeaderPanel. HeaderPanel provides header and footer that are
__natively__ (naturally) sized by the browser. So here it goes

empty div for the header


a table style div for the middle (resizable widget)





and for the footer almost the same





This will do the automatically resizing of the middle widgets for you.

Instead of div you can consider Widgets, Composite or HTMLPanels or
whatever to put in your UIBinder

   Vassilis



On Thu, Feb 20, 2014 at 2:03 AM, Jens  wrote:

> Use setWidgetTopBottom() for the upper layers:
>
>
> LayoutPanel layout = new LayoutPanel();
> layout.add(leftTop);
> layout.setWidgetLeftWidth(leftTop, 0, Style.Unit.PCT, 50,
> Style.Unit.PCT);
> layout.setWidgetTopBottom(leftTop, 0, 
> Style.Unit.PCT,
> 30, Style.Unit.PT);
>
> layout.add(rightTop);
> layout.setWidgetRightWidth(rightTop, 0, Style.Unit.PCT, 50,
> Style.Unit.PCT);
> layout.setWidgetTopBottom(rightTop, 0, 
> Style.Unit.PCT,
> 30, Style.Unit.PT);
>
> layout.add(leftBottom);
> layout.setWidgetLeftWidth(leftBottom, 0, Style.Unit.PCT, 50,
> Style.Unit.PCT);
> layout.setWidgetBottomHeight(leftBottom, 0, 
> Style.Unit.PCT,
> 30, Style.Unit.P T);
>
> layout.add(rightBottom);
> layout.setWidgetRightWidth(rightBottom, 0, Style.Unit.PCT, 50,
> Style.Unit.PCT);
> layout.setWidgetBottomHeight(rightBottom, 0, 
> Style.Unit.PCT,
> 30, Style.Unit.PT );
>
>
> -- 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: IE9 after GWT update (2.6.0): blue frame around image achors?

2014-02-20 Thread Jens
Some browsers do this by default for any  tag inside an  tag. You 
have to explicitly set the border to "none" for the  tag.


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


IE9 after GWT update (2.6.0): blue frame around image achors?

2014-02-20 Thread Magnus


 
Hello,
 
after upgrading to the newest GWT version and deploying my app I noticed 
that the appearance of my image anchors (images as/inside anchors) has 
changed:
There is a blue frame around them:
 
 

 
While inspecting the generated code I did not see anything producing a 
frame. It's just an "" tag with class "gwt-Anchor" with an "" tag 
inside.
 


 


 
What can I do?
 
Thank you
Magnus

-- 
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: sibling CSS selector ~ workaround?

2014-02-20 Thread Thomas Broyer


On Thursday, February 20, 2014 1:16:42 PM UTC+1, Ed wrote:
>
> What is an elegant workaround for the CSS ~ selector? 
> Do I really need to inject it myself like done 
> here
> .
>
> Why is it actually not supported as his little brother + is supported?
>

+ is from CSS 2: http://www.w3.org/TR/CSS21/selector.html
 

> When using the ~ selector, GWT shows a warning message in the console  and 
> will not inject it.
>

…because it uses the Flute CSS parser, that only supports CSS 2 syntax. 
Have a look at gss.gwt if you want to use CSS 3: 
 https://github.com/jDramaix/gss.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/groups/opt_out.


Re: gwt compilation issue

2014-02-20 Thread Thomas Broyer
GWT proper doesn't create WEB-INF or anything inside it. WEB-INF is for 
server-side Java code, and it's your IDE or your build tool's 
responsibility to put it there (or possibly yourself, for WEB-INF/lib, if 
you manually manage your dependencies).
So in this case I'd say have a look at your IDE configuration (assuming 
you'd know it if you changed anything to your build-tool configuration)

On Thursday, February 20, 2014 3:20:03 AM UTC+1, fedex wrote:
>
> For my current Gwt project when I compile the project it creates  web-inf 
> folder outside the war folder. 
>
> Initially While working on project I accidentally deleted war folder and I 
> kind of setup the folder manually by copying the files from my backup 
> folder. I am not sure if this is the reason for it..if yes what I am 
> suppose to do.
>

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


sibling CSS selector ~ workaround?

2014-02-20 Thread Ed
What is an elegant workaround for the CSS ~ selector? 
Do I really need to inject it myself like done 
here
.

Why is it actually not supported as his little brother + is supported?
When using the ~ selector, GWT shows a warning message in the console  and 
will not inject 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.


Re: CssResource inheritance and avoiding rule repetition on injection, possibility of an @Require?

2014-02-20 Thread Thomas Broyer


On Thursday, February 20, 2014 12:08:28 AM UTC+1, GWTter wrote:
>
>
>
> On Wednesday, February 19, 2014 10:59:51 AM UTC+1, Thomas Broyer wrote:
>>
>>
>>
>> On Tuesday, February 18, 2014 6:38:36 PM UTC+1, GWTter wrote:
>>>
>>> Hi all,
>>>
>>> Let me just go with an example right off the bat.
>>>
>>> Let's say I have the following:
>>>
>>> === Pseudocode ===
>>>
>>> SuperCssResource: This is injected onModuleLoad before anything else
>>> .genButton{
>>> color: black;
>>> }
>>>
>>> Widget1 consists of:
>>> --- css ---
>>> MyCssResource:
>>> .myButton{
>>> color: red;
>>> }
>>>
>>> --- html ---
>>> 
>>>
>>> Widget2 consists of:
>>> --- css ---
>>> XCssResource extends SuperCssResource:
>>> ... rules that use classes from SuperCssResource
>>>
>>> --- html ---
>>> ...elements
>>>
>>> My problem is that if I display Widget1 first and then display Widget2 
>>> then the button in Widget1 will have a color of black instead of red.
>>>
>>> I know that this is expected behavior (GWT will merge the stylesheets 
>>> together) since inheritance is basically the cssresource equivalent of CSS 
>>> @import 
>>>
>>
>> Er, no.
>>
>> Inheritance of CssResource interfaces only deals with that: inheriting 
>> methods. The actual CSS backing the resource is given by the @Source 
>> annotation on your ClientBundle method, and if you use the same CSS file 
>> for 2 different CssResource interfaces, the CSS will be duplicated, because 
>> obfuscation of the class names is based on the interface fully-qualified 
>> name: 
>> http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html#Scope (the 
>> order of the files in @Source will impact merging, just as they'd impact 
>> precedence in CSS).
>>
>
> Hi Thomas,
>
> I guess I should have specified that it is inheritance along with 
> specifying the source css that for all intents and purposes acts like CSS 
> @import. I know that GWT will error if you extend the super resource and 
> don't include it's source to match the classes, unless you're 
> reimplementing them in the extending css resource which is not what I'm 
> after and not the best idea IMHO. 
>
>>  
>>
>>> but I thought since this was GWT maybe there was a way to use 
>>> inheritance in the sense that the inherited stylesheet would only be 
>>> injected if
>>> not injected already. Is this currently possible? or could it be done 
>>> with like a @Require annotation on the extending interface which would 
>>> indicate
>>> that merging of the super stylesheet should not be done but rather a 
>>> check would be made to see if it already exists and if not to inject it.
>>> This would easily resolve the specificity overriding issue in the 
>>> example when it's not the desired behavior.
>>>
>>> I know I could also get around this by importing with a prefix, however 
>>> I still don't like the idea of essentially reinjecting the same styles.
>>>
>>
>> If you don't want duplication, then you need a "shared scope" or 
>> "imported scope". In any case, that means you should only use the 
>> shared/imported class names in more complex selectors, you shouldn't change 
>> the styles attached to the selector by itself.
>>
>> None of this applies if you use "@external" though, then it just works 
>> like standard CSS.
>>
>
> I know, like you mentioned, that I could avoid the precedence override by 
> importing with prefix for example. And my use case is only to increase 
> specificity on the extending css resource, definitely not to change the 
> super's rule def by redefining the super selector in the extending 
> resource. But I'm not thrilled with essentially reinjecting all the same 
> rules with just different prefixes and @external does really fit my need as 
> I don't want to forgo the obfuscation.
>

I don't understand that "reinjecting all the same rules with just different 
prefixes" bit; sounds like a misunderstanding of how @Import and 
@ImportedWithPrefix work.
Obfuscation is based on the FQCN of the interface, so @Import()ing such an 
interface is only about importing the *names*, not the source (which is not 
defined in the interface anyway), and @ImportedWithPrefix is only there to 
prevent conflicts (it also helps visually distinguishing those names that 
have been imported and those that are "defined" in the stylesheet). The 
gwt-CellTree-cellTreeItem you'd get by @Import(CellTree.Style.class) will 
be replaced with the same obfuscated name as the cellTreeItem from the 
CellTree stylesheet, so you can match something in a CellTree, but nothing 
is "injected with just different prefixes", the prefixes are gone after 
compilation.

Either that, or I'm not understanding your use-case, and a simple example 
would really help! (in any case, if you could share a simple example, I 
think everyone could benefit from a discussion around it, or maybe just 
using it as a basis for their own work, maybe even a "best practice")

-- 
You received this message because you are subscr

Re: GWT Wrapper for Twitter Bootstrap v3!

2014-02-20 Thread Leung
I start developing from the simple basic gwt. And so far, I can do it without 
UiBinder. I have to re-do a lot of work, if I modify it. Is that deserve?




On Tuesday, February 18, 2014 3:43 AM, Joshua Godi  wrote:
 
Just have to use the setters that are there for non-UiBinder.

        // Create overall container
        FluidContainer container = new FluidContainer();
        
        // Create the row for the columns
        Row row = new Row();
        
        // Create the columns
        Column first = new Column(ColumnSize.XS_6);
        Column second = new Column(ColumnSize.XS_6);
        
        first.add(new Span("I am the first column"));
        second.add(new Span("I am the second column"));
        
        row.add(first);
        row.add(second);
        container.add(row);
Curious though, why not use UiBinder? It provides a more declarative UI.
-- 
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: SuperDevMode on/off bookmarklets aren't compatible with frames

2014-02-20 Thread Davide Cavestro
The problem was that I didn't adapted the script portion that saves the 
__gwt_bookmarklet_params variable (it should work on the frame window).

So since in my case the frame was called 'sheet', at the end for me it was 
enough adapting it this way

> javascript:%7B var sheetFrame %3D document.getElementById('sheet') %3B 
> sheetFrame.contentWindow.__gwt_bookmarklet_params %3D 
> %7B'server_url'%3A'http%3A%2F%2Flocalhost%3A9876%2F'%7D%3B var s %3D 
> sheetFrame.contentWindow.document.createElement('script')%3B s.src %3D 
> 'http%3A%2F%2Flocalhost%3A9876%2Fdev_mode_on.js'%3B 
> void(sheetFrame.contentWindow.document.getElementsByTagName('head')%5B0%5D.appendChild(s))%3B%7D


that is simply the URL encoded version of

> javascript:{ var sheetFrame = document.getElementById('sheet') ; 
> sheetFrame.contentWindow.__gwt_bookmarklet_params = 
> {'server_url':'http://localhost:9876/'}; var s = 
> sheetFrame.contentWindow.document.createElement('script'); s.src = 
> 'http://localhost:9876/dev_mode_on.js'; 
> void(sheetFrame.contentWindow.document.getElementsByTagName('head')[0].appendChild(s));}
>

Cheers
Davide

On Wednesday, February 12, 2014 5:55:07 PM UTC+1, Davide Cavestro wrote:
>
> I have an entry point hosted into an iframe. I have to manually open the 
> host page into a new browser tab in order to make the superdev mode aware 
> of the modules available (otherwise the superdev mode UI doesn't detect any 
> module).
> I've tried to manually tweak the bookmarklet code in order to create the 
> boot script element within the frame (instead than within the outer 
> document) but at this point when I run the bookmarklet I obtain a dialog 
> complaining
>
> *Need to reinstall the bookmarklets.*
>
> I suspect the bookmarklet js code is somewhat validated against some hash, 
> and if I manually edit it the validation fails...
> Is there any workaround?
> I reproduce this issue with GWT 2.6.0 both on Google Chrome 32.0.1700.107 
> and Firefox 26.0
>
> Kind regards
> 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: Out of stack space

2014-02-20 Thread raindy . ye
I just got a similar error.  I use rpc to get the login user to initial the 
home page, it it fine if I use IE 32bit browser to open the application but 
error cause if I use IE 64bit browser. The error message is po-pu inside 
the rpc callback onFailure method, and the detail error message is :
Error when receiving current user.(Error) 
number: -2146828260
description: Out of stack space: Out of stack space

Also the same application deployment on the local, ie 32bit and ie64 is 
fine.
Any suspicious about it? 

On Friday, January 21, 2011 3:24:11 AM UTC+8, mike b wrote:
>
> gwt 2.1.0
> winxp
> ie7
>
> I was tracing a completely different StatusCodeException (500) because of 
> server socket errors were are having.  (see 
> http://code.google.com/p/google-web-toolkit/issues/detail?id=4723 )
>
> Then strangely, I got this error on the client side.  Basically, I created 
> an RpcHelper which wraps the inner AsyncCallback in another 
> AsyncCallback.  If I get the above mention 500 status code error, then I 
> re-execute the service without calling the inner onFailure.  Re-execution 
> takes place w/ Scheduler.get().scheduleDefered( ...aService call );
>
> Based on my client logs, the "Out of stack space" occurred in the 
> Scheduler part.  
>
> com.blah.MyUncaughtExceptionHandler: onUncaughtException:
> java.lang.Throwable: (Error): Out of stack space
> number: -2146828260
> description: Out of stack space
> I have a service that ships logs to the server and that still executed 
> successfully.  
>
> Any ideas?  I searched this forum and the gwt issues but did not find 
> anything remotely similar.  
>
> Thanks,
> Mike B
>

-- 
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 add MouseOverEvent for a node in CellTree

2014-02-20 Thread Thomas Broyer
If by "button" you mean the open/close image, then you should be able to do 
it by just tweaking the CSS:

interface MyCellTreeResources extends CellTree.Resources {
  @Source({ CellTree.Style.DEFAULT_CSS, "mytweaks.css" })
  MyCellTreeStyle cellTreeStyle();
}

interface MyCellTreeStyle extends CellTree.Style {
}

// mytweaks.css
.cellTreeItem .cellTreeImage { visibiility: hidden; }
.cellTreeItem:hover .cellTreeImage { visibility: visible; }

new CellTree(viewModel, rootValue, GWT.create(MyCellTreeResources.class));

On Thursday, February 20, 2014 4:09:05 AM UTC+1, Smiley wrote:
>
> Hi,
>
>
> I want to show the button on the MouseOverEvent of a node or cell in 
> CellTree.
> Can someone give my some examples on how this can be achieved?
>
> Should i change my implementation from CellTree to Tree to achieve the 
> same?
>
> Do let me know your inputs on this.
>
> 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: Development Mode will not be supported in Firefox 27+

2014-02-20 Thread Thomas Broyer


On Thursday, February 20, 2014 9:49:42 AM UTC+1, m...@touk.pl wrote:
>
> Couldn't agree more... debugging the client-side GWT code in the IDE 
> debugger (Eclipse in my case) is base of my every day work :(
>

I'm sure the SDBG devs would love to hear your feedback ;-)
https://github.com/sdbg/sdbg
 

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


How to add MouseOverEvent for a node in CellTree

2014-02-20 Thread Smiley
Hi,


I want to show the button on the MouseOverEvent of a node or cell in 
CellTree.
Can someone give my some examples on how this can be achieved?

Should i change my implementation from CellTree to Tree to achieve the same?

Do let me know your inputs on this.

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: Development Mode will not be supported in Firefox 27+

2014-02-20 Thread mtr
Couldn't agree more... debugging the client-side GWT code in the IDE 
debugger (Eclipse in my case) is base of my every day work :(

On Wednesday, February 19, 2014 5:37:01 PM UTC+1, Jeff Evans wrote:
>
>
> Can someone clarify what is meant by "fully functional" for Super dev 
> mode?  In my view, debugging the client-side GWT code in the IDE debugger, 
> alongside server-side Java code, is the "killer feature."  I can't believe 
> anyone would ever consider in-browser Javascript debugging to be an 
> acceptable replacement.  Or perhaps I'm missing something?
>

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