Re: Slider for GWT?

2013-05-05 Thread kim young ill
this could help

http://turbomanage.wordpress.com/2011/03/23/a-partially-updated-sliderbar-for-gwt-2-2/


On Sun, May 5, 2013 at 8:05 PM, Jens  wrote:

> GWT doesn't have a slider widget but there are some 3rd party libraries
> that provide them.
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




When modifying SimpleHtmlSanitizer.java, how to deal with (Gwt)?

2013-05-05 Thread zalaguy
You know that SimpleHtmlSanitizer.java only accepts the following markup 
("b", "em", "i", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ul", "ol", 
"li"). It is good but I want "u", "sub", "a href=" & don't want "hr", "ul", 
"ol", "li". So I need to modify this class.

Now look at the SimpleHtmlSanitizer.java 
(https://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/safehtml/shared/SimpleHtmlSanitizer.java?r=8653)
 
& look at this line in that class:

Arrays.asList("b", "em", "i", "h1", "h2", "h3", "h4", "h5", "h6", "hr", 
"ul", "ol", "li"));

You can guess that we can put our wished list into that line of code right. 
So I modify it to:

Arrays.asList("b","i", "u", "h1", "h2", "h3", "h4","a href="));

Every tag in that list works fine except the "a href=". For example, when i 
put the string Test hello it didn't show correct 
output. The correct output should have string hello in hyperlink.

I believed that we have to use modify simpleSanitize function in 
SimpleHtmlSanitizer class, we also have to use UriUtils.isSafeUri to check 
if the uri is safe or not.

So how to modify SimpleHtmlSanitizer in the case ofhttp://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Modifying SimpleHtmlSanitizer.java, how to deal with (Gwt)?

2013-05-05 Thread Tom
You know that SimpleHtmlSanitizer.java only accepts the following markup 
("b", "em", "i", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ul", "ol", 
"li"). It is good but I want "u", "sub", "a href=" & don't want "hr", "ul", 
"ol", "li". So I need to modify this class.

Now look at the SimpleHtmlSanitizer.java 
(https://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/safehtml/shared/SimpleHtmlSanitizer.java?r=8653)
 
& look at this line in that class:

Arrays.asList("b", "em", "i", "h1", "h2", "h3", "h4", "h5", "h6", "hr", 
"ul", "ol", "li"));

You can guess that we can put our wished list into that line of code right. 
So I modify it to:

Arrays.asList("b","i", "u", "h1", "h2", "h3", "h4","a href="));

Every tag in that list works fine except the "a href=". For example, when i 
put the string Test hello it didn't show correct 
output. The correct output should have string hello in hyperlink.

I believed that we have to use modify simpleSanitize function in 
SimpleHtmlSanitizer class, we also have to use UriUtils.isSafeUri to check 
if the uri is safe or not.

So how to modify SimpleHtmlSanitizer in the case ofhttp://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Facebook login button

2013-05-05 Thread Leung
Hi,


It seems that there is no scribe.gwt.xml file.

Then, can you show how can I import the external jar and configure the inherits 
tag of the .gwt.xml?


Thanks



 From: Mohammad Al-Quraian 
To: google-web-toolkit@googlegroups.com 
Sent: Friday, May 3, 2013 4:33 PM
Subject: Re: Facebook login button
 


You can check this page on facebook:
https://developers.facebook.com/docs/facebook-login/getting-started-web/

You probably have to use OAuth protocol for that. There an easy library that 
helps you manage that in the server side:
https://github.com/fernandezpablo85/scribe-java?source=cr
It also shows many example to do OAuth management for many websites including 
Facebook.

On Friday, May 3, 2013 5:35:23 PM UTC+3, Larissa Costa wrote:
Hi,
>
>
>I've never worked with the facebook and I need help.
>
>
>I have a website (GWT) and I wanted to connect it with facebook to get some 
>information about the user. For example, put a login button on the home page 
>of my site.
>
>
>Does anyone know how I can do this? Anyone have one example?
>
>
>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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

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




Re: Hashing on client

2013-05-05 Thread Jens
I was surprised that GWT supports MessageDigest as its not part of the JRE 
Emulation documentation 
(https://developers.google.com/web-toolkit/doc/latest/RefJreEmulation) . 
Seems like its slightly out of date.

Nevertheless when you take a look at the source code you can see that GWT 
only supports MD5 for 
MessageDigest: 
https://code.google.com/p/google-web-toolkit/source/browse/releases/2.5/user/super/com/google/gwt/emul/java/security/MessageDigest.java

Note that the linked implementation is the super source version that is 
used by the GWT compiler when it generates the JS code for your app. During 
DevMode you are using the standard Java MessageDigest which also supports 
SHA. Thats why you see the difference.


-- J.

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




Hashing on client

2013-05-05 Thread Tim Hill
Hi there,

These queries should be easy fodder :)

I am developing an application and wish to hash (SHA-256, for example) the 
password before sending it over to the server (PHP script). I have this 
working in Dev mode using MessageDigest. However, when I come to compile 
(which it does without error) and deploy, I get a NoSuchAlgorithmException 
thrown.

So, my question is, why does it work fine in dev mode, but not when 
compiled? I also get slightly different behaviour between dev mode and 
compiled code - I (naiivly) assumed they would act the same way. Why do the 
two versions differ?

Thanks in advance!!

Tim

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




Re: Menu Bar - hide

2013-05-05 Thread Marco
Has nobody any idea?

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




Re: How to style TextButton?

2013-05-05 Thread Kartik Suba
Hi,

You can try buttonName.setStyleName("customButtonStyle");

and add .customButtonStyle { background: none !important;
border-color: blue !important;}



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




Re: CellTable Column Overlap

2013-05-05 Thread Kartik Suba
Hi,

You can try this
   table.setColumnWidth(colName, "20%");
for each column and we just need to ensure that the sum of the percentages 
of individual columns comes out to be 100% instead of using UNIT.PCT.

Please let me know if it works.


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




Weird problem with UIBinder Constructor args

2013-05-05 Thread wayne rasmuss
I'm having a very strange problem with UiConstructor. 

*My constructor looks like*
@UiConstructor
public PickerList(String selectedStyle, String notSelectedStyle) {
   ...

*My xml looks like*



*I get the following error when I try to build using my own gradle build 
setup (all gradle output below)*

[ERROR] Class PickerList has no appropriate setSelectedStyle() method: 


*The weird thing*
I can still build/run my app from my IDE (IntelliJ Idea) but my Gradle 
build fails. I even verified that I hit a breakpoint in the constructor 
above when run in my IDE. I have tried a clean build. Thoughts?

*Versions Etc.*
Java 7, GWT 2.5.0 I am using MGWT but I don't think that's part of the 
problem.

*All gradle output:*
Executing command: "apps:careco:gwtc"
Creating properties on demand (a.k.a. dynamic properties) has been 
deprecated and is scheduled to be removed in Gradle 2.0. Please read 
http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html
 
for information on the replacement for dynamic properties.
Deprecated dynamic property: "sourceCompatibility" on "project 
':app-components'", value: "1.6".
Deprecated dynamic property "sourceCompatibility" created in multiple 
locations.
-- Adding sources
-- Adding sources
-- Adding sources
Inputs:
C:\aaa\whatsnext.git\whatsnext\components\apps\careco\src
C:\aaa\whatsnext.git\whatsnext\components\apps\careco\build\classes\main
C:\aaa\whatsnext.git\whatsnext\components\apps\careco\build\dependency-cache
C:\aaa\whatsnext.git\whatsnext\components\app.gradle
Outputs:
C:\aaa\whatsnext.git\whatsnext\components\apps\careco\build\gwt
Deprecated dynamic property: "debug" on "task ':apps:careco:compile'", 
value: "true".
Inputs:
C:\aaa\whatsnext.git\whatsnext\components\apps\exodus\src
C:\aaa\whatsnext.git\whatsnext\components\apps\exodus\build\classes\main
C:\aaa\whatsnext.git\whatsnext\components\apps\exodus\build\dependency-cache
C:\aaa\whatsnext.git\whatsnext\components\app.gradle
Outputs:
C:\aaa\whatsnext.git\whatsnext\components\apps\exodus\build\gwt
Deprecated dynamic property "debug" created in multiple locations.
:client-only:compileJava UP-TO-DATE
:client-only:processResources UP-TO-DATE
:client-only:classes UP-TO-DATE
:client-only:jar UP-TO-DATE
:server-and-client:compileJava UP-TO-DATE
:server-and-client:processResources UP-TO-DATE
:server-and-client:classes UP-TO-DATE
:server-and-client:jar UP-TO-DATE
:server-only:compileJava UP-TO-DATE
:server-only:processResources UP-TO-DATE
:server-only:classes UP-TO-DATE
:server-only:jar UP-TO-DATE
:app-components:bootstrap:compileJava UP-TO-DATE
:app-components:bootstrap:processResources UP-TO-DATE
:app-components:bootstrap:classes UP-TO-DATE
:app-components:bootstrap:jar UP-TO-DATE
:apps:careco:compileJavawarning: Supported source version 'RELEASE_6' from 
annotation processor 
'com.google.appengine.tools.compilation.DatastoreCallbacksProcessor' less 
than -source '1.7'
warning: Implicitly compiled files were not subject to annotation 
processing.
  Use -proc:none to disable annotation processing or -implicit to specify a 
policy for implicit compilation.
2 warnings

:apps:careco:gwtc
Deprecated dynamic property: "compilerArgs" on "project ':apps:careco'", 
value: "[-style, OBF, -optimiz...".
Compiling module whatsnext.careco.CareCoMobile
   Validating units:
  Ignored 1 unit with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all 
errors.
   Computing all possible rebind results for 
'whatsnext.careco.mobile.activityselector.ActivitySelector.ActivitySelectorUiBinder'
  Rebinding 
whatsnext.careco.mobile.activityselector.ActivitySelector.ActivitySelectorUiBinder
 Invoking generator com.google.gwt.uibinder.rebind.UiBinderGenerator
[ERROR] Class PickerList has no appropriate setSelectedStyle() 
method:  (:15)
   [ERROR] Errors in 
'whatsnext/careco/mobile/activityselector/ActivitySelector.java'
  [ERROR] Line 31: Failed to resolve 
'whatsnext.careco.mobile.activityselector.ActivitySelector.ActivitySelectorUiBinder'
 
via deferred binding
   [WARN] For the following type(s), generated source was never committed 
(did you forget to call commit()?)
  [WARN] 
whatsnext.careco.mobile.activityselector.ActivitySelector_ActivitySelectorUiBinderImpl
:apps:careco:gwtc FAILED

FAILURE: Build failed with an exception.

* Where:
Script 'C:\aaa\whatsnext.git\whatsnext\components\app.gradle' line: 120

* What went wrong:
Execution failed for task ':apps:careco:gwtc'.
> Process 'command 'C:\Program Files\Java\jdk1.7.0_15\bin\java.exe'' 
finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or 
--debug option to get more log output.

BUILD FAILED

Total time: 38.528 secs


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

Re: Slider for GWT?

2013-05-05 Thread Jens
GWT doesn't have a slider widget but there are some 3rd party libraries 
that provide them.

-- J.

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




Slider for GWT?

2013-05-05 Thread membersound
Hi,

maybe I'm missing it, but so far I could not found a Slider Widget (or 
anything similar I could misuse therefore).

Doesn't gwt provide a slider?

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




Re: GWT compiler complains but the JDK does not ...

2013-05-05 Thread Ed
BTW:  I forget to mention that I removed P generics in the first method as 
it's not used ..(had no effect).

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




Re: GWT compiler complains but the JDK does not ...

2013-05-05 Thread Ed
H... I don't really understand the error in this case...   seem to 
be well defined to me (exists as argument)... If I replace it with some 
stricter type like my InsertPanel (P extends InsertPanel)... it seems work 
... 
Strange
... anybody ?

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




Re: GWT compiler complains but the JDK does not ...

2013-05-05 Thread Ed
I am a step closer as during the Jenkins build (maven build) it does 
complain during compilation:

> ValueChangeFormFieldTracker 
> cannot be determined; no unique maximal instance exists for type variable P 
> with upper bounds ...HasSize, 
> HasIndexOf,HasRemoveAllStart


Always nice when eclipse (jdk) doesn't show you the error :( 

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




GWT compiler complains but the JDK does not ...

2013-05-05 Thread Ed
During dev mode (gwt 2.5.1), gwt complaints in the gwt dev mode console 
about a compiler error, mainly:
This error I don't see in Eclipse, using java 1.6.35.

00:00:55,152 [ERROR] Line 45: Bound mismatch: The generic method 
> createSimpleCheckTracker(FormField, W, H, N, Form, P, 
> AsyncConfirmer) of type FormFieldMutationFacade is not applicable for the 
> arguments (FormField, W, H, N, Form, null, null). The 
> inferred type HasSize is not a valid substitute for the bounded parameter 
>  & HasRemoveAllStart> 




Line 45 is the forward of the first method below to the second method. The 
error concerns the fore last argument which is null (the P generics)...
Any idea why their is a difference in compiler output ?

The code:

public  & 
> HasRemoveAllStart, H extends HasFlexWidget, N extends HasNextBoolean> 
> ValueChangeFormFieldTracker createSimpleCheckTracker(final 
> FormField formField, final W widget, final H hasWidget, 
> final N nextProcessor, final Form form) {
> return createSimpleCheckTracker(formField, widget, hasWidget, 
> nextProcessor, form, null, null);
> }
>
 

> public  
> & HasRemoveAllStart, H extends HasFlexWidget, N extends HasNextBoolean> 
> ValueChangeFormFieldTracker createSimpleCheckTracker(final 
> FormField formField, final W widget, final H hasWidget, 
> final N nextProcessor, final Form form, final P container, final 
> AsyncConfirmer confirmPerformer) {
>

> return . 

}



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