How to simply add more years into DatePicker in GWT and use the format to DD-MM-YYYY when a date was selected?

2014-09-23 Thread Tom
 

Look at this code,

DateBox myDateBox=new DateBox();
myDateBox.getDatePicker().setYearAndMonthDropdownVisible(true);
DateTimeFormat dateFormat = DateTimeFormat.getFormat("DD-MM-");
myDateBox.setFormat(new DateBox.DefaultFormat(dateFormat));

Ok, when I clicked on the DateBox the DatePicker got popped up but I could 
not see years like from 1600, so How to add more years into DatePicker?

Alos, I want to use the format to DD-MM- when a date was selected but 
when clicked on a date nothing appeared in the DateBox?


http://stackoverflow.com/questions/26005633/how-to-simply-add-more-year-into-datepicker-in-gwt-and-use-the-format-to-dd-mm-y

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


Re: Webfonts with ClientBundle, UiBinder

2014-09-23 Thread Jens
You need to define the font using @font-face.

By default fontawesome.css contains

@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/fontawesome-webfont.eot?v=4.2.0');
  src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') 
format('embedded-opentype'), 
url('../fonts/fontawesome-webfont.woff?v=4.2.0') format('woff'), 
url('../fonts/fontawesome-webfont.ttf?v=4.2.0') format('truetype'), 
url('../fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular') 
format('svg');
  font-weight: normal;
  font-style: normal;
}

at the very top of its CSS file which tells the browser about the font 
"FontAwesome". You need to adjust this block to make it work. 

Since you only want woff you can remove everything else:

@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/fontawesome-webfont.woff?v=4.2.0') format('woff');
  font-weight: normal;
  font-style: normal;
}

Next you have to decide if you want to embed the font into your GWT app as 
DataResource or if the browser should load the file normally like defined 
above. If you want to use DataResource you need to replace the url() part 
with the @url constant of GWT. If you want to leave it as is, I would 
create a public folder, place all fonts in "public/fonts" and then remove 
"../" from the url(). That way the font files will be copied to your 
war/app/fonts folder whenever you GWT compile your app and should be 
accessible by the browser. You might want to rename font files to contain 
".cache." if you place them into the public folder so your web server sets 
correct caching headers.

Once you have done that you should be able to use  to import your 
ClientBundle into UiBinder and use the icons (don't forget to call 
ensureInjected()).

-- J.

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


Webfonts with ClientBundle, UiBinder

2014-09-23 Thread Thad Humphries
I'd like to try out webfonts with my app. I can use the *.woff file from 
Font Awesome (http://fontawesome.io/) by adding it to my WAR directory and 
a link to a modified version of their CSS in my module's welcome-file (I'd 
like to go with just *.woff, since it's small and works across browsers). I 
would like to do things more the GWT way--UiBinder, ClientBundle, etc. I 
feel I'm close, but it's not coming together.

I've tried it first in UiBinder. I just tried adding the FontAwesome CSS:


...



I see nothing. Of course, this misses the *.woff. I can add that with 
  




but where and how to I reference it? I can add a style such as

@url fawoff woff;
.face {
  font-family: fawoff;
}

but adding that style to the class attribute doesn't work.

Furthermore, I'd like to wrap things a ClientBundle. I'd like my app to 
match file icons with file type from a document repository, and Font 
Awesome has a nice selection of file icons. I've created a ClientBundle but 
I don't know how to get make the CssResource and DataResource work together:

public interface FontAwesomeBundle extends ClientBundle {
  
  FontAwesomeBundle INSTANCE = GWT.create(FontAwesomeBundle.class);
  
  @NotStrict
  @Source("./fonts/fontAwesome.css")
  FontAwesome fa();
  
  @Source("./fonts/fontawesome-webfont.woff")
  DataResource woff();
  
  public interface FontAwesome extends CssResource {
String fa();

@ClassName("fa-lg")
String large();

@ClassName("fa-3x")
String scale3();

@ClassName("fa-camera-retro")
String cameraRetro();
...
  }
}


What am I missing?

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


Re: good gwt mysql hosting

2014-09-23 Thread Michael Joyner
 I use Afterburst for unlimited bandwidth and edicated ram allocation VPS
with Tomcat myself. $15.00/month

On 09/23/2014 03:12 AM, .tet.suo.mei.ster. wrote:

just look around for a root-server ( self managed ) wich starts around
10-20eurobugs. put a debian on it, install sun-java and tomcat7 and enjoy.
there is no magic within. if you need some managed one, tell.

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


Re: good gwt mysql hosting

2014-09-23 Thread Michael Joyner
 I use Afterburst for unlimited bandwidth and dedicated ram allocation VPS
with Tomcat myself (hosted in Germany).
http://www.afterburst.com/unmetered-vps

On 09/23/2014 03:12 AM, .tet.suo.mei.ster. wrote:

just look around for a root-server ( self managed ) wich starts around
10-20eurobugs. put a debian on it, install sun-java and tomcat7 and enjoy.
there is no magic within. if you need some managed one, tell.

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


Re: good gwt mysql hosting

2014-09-23 Thread Michael Joyner
I use Afterburst for unlimited bandwidth and dedicated ram allocation 
VPS with Tomcat myself (hosted in Germany). 
http://www.afterburst.com/unmetered-vps


On 09/23/2014 03:12 AM, .tet.suo.mei.ster. wrote:
just look around for a root-server ( self managed ) wich starts around 
10-20eurobugs. put a debian on it, install sun-java and tomcat7 and 
enjoy. there is no magic within. if you need some managed one, tell.




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


Re: gwt-maven-plugin 2.7.0-SNAPSHOT

2014-09-23 Thread Thomas Broyer
On Tue, Sep 23, 2014 at 11:12 AM, Luca wrote:

> I can't find Maven dependencies.
>
> Here
>
>
> https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/gwt-user/2.7.0-SNAPSHOT/
>
> No jars or poms.
>
> What am I missing ?
>

Hmm, the maven-metadata.xml has been updated yesterday, so maybe they're
expiring the snapshots and just did some cleanup.
Hopefully we should have a new SNAPSHOT soon, but the last build failed
again: http://build.gwtproject.org/job/gwt/

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


Re: gwt-maven-plugin 2.7.0-SNAPSHOT

2014-09-23 Thread Luca
I can't find Maven dependencies.

Here

https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/gwt-user/2.7.0-SNAPSHOT/

No jars or poms.

What am I missing ?

Il giorno martedì 16 settembre 2014 11:27:09 UTC+2, Thomas Broyer ha 
scritto:
>
> Fixed in master, and new snapshot deployed.
>
> On Monday, September 15, 2014 11:52:14 PM UTC+2, Thomas Broyer wrote:
>>
>> Doh, don't know why, I'm passing nosuperDevMode if superDevMode is false, 
>> as if it's enabled by default in GWT. Will fix as soon as I find a computer.
>> Le 15 sept. 2014 20:45, "Manuel Carrasco Moñino" > > a écrit :
>>
>>> Hi Thomas,
>>>
>>> I've tried the snapshot and seems that DevMode with -superDevMode option 
>>> is not being passed.
>>> I tried either, set true in my pom.xml and 
>>> run mvn gwt:run -Dgwt.superDevMode=true  but in both cases DevMode.main 
>>> is not receiving the -superDevMode argument.
>>>
>>> Am I doing something wrong?
>>>
>>> - Manolo
>>>
>>>
>>> On Sun, Sep 14, 2014 at 5:07 AM, Thomas Broyer >> > wrote:
>>>
 Hi all,

 I spent some hours updating the gwt-maven-plugin to GWT 2.7.0-SNAPSHOT, 
 and just deployed a snapshot to the https://nexus.codehaus.
 org/content/repositories/snapshots/ repository.

 You should thus be able to test GWT 2.7.0-SNAPSHOT more easily by 
 switching to gwt-maven-plugin 2.7.0-SNAPSHOT.

 Feedback welcome, both on the plugin and on 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-we...@googlegroups.com 
 .
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>  -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "Google Web Toolkit" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/google-web-toolkit/gFPCB3-nJIc/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to 
>>> google-web-toolkit+unsubscr...@googlegroups.com .
>>> To post to this group, send email to google-we...@googlegroups.com 
>>> .
>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

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


Re: GWT with Maven and Spring

2014-09-23 Thread Dilan A


On Monday, 22 September 2014 21:29:29 UTC+10, Thomas Broyer wrote:
>
>
> On Monday, September 22, 2014 12:32:50 PM UTC+2, Dilan A wrote:
>>
>>
>>
>> On Monday, 22 September 2014 01:07:47 UTC+10, Thomas Broyer wrote:
>>>
>>> The default scope in Maven is "compile", there's no scope named 
>>> "default".
>>
>>
>> Thanks for  pointing that out but I'm still getting the same error 
>> message.
>> Some how maven libs are not available under WEB-INF/lib 
>>
>>
> Are you launching a "mvn package" or "mvn war:exploded" at some point 
> before trying the Run As… → Web Application?
> AFAICT, this is (still) a required step.
>


How do you launch mvn package or war:exploded within Eclipse.
I try to Run As > Maven Build .. > Goals war:exploded then apply and run? 
Then run the Run As > Web Application  still having the same issue. :(

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


Re: GWT with Maven and Spring

2014-09-23 Thread Dilan A


On Monday, 22 September 2014 21:29:29 UTC+10, Thomas Broyer wrote:
>
>
> On Monday, September 22, 2014 12:32:50 PM UTC+2, Dilan A wrote:
>>
>>
>>
>> On Monday, 22 September 2014 01:07:47 UTC+10, Thomas Broyer wrote:
>>>
>>> The default scope in Maven is "compile", there's no scope named 
>>> "default".
>>
>>
>> Thanks for  pointing that out but I'm still getting the same error 
>> message.
>> Some how maven libs are not available under WEB-INF/lib 
>>
>>
> Are you launching a "mvn package" or "mvn war:exploded" at some point 
> before trying the Run As… → Web Application?
> AFAICT, this is (still) a required step.
>


How do you launch the mvn package through Eclipse?  

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


pom.xml
Description: XML document


Re: good gwt mysql hosting

2014-09-23 Thread .tet.suo.mei.ster.
just look around for a root-server ( self managed ) wich starts around
10-20eurobugs. put a debian on it, install sun-java and tomcat7 and enjoy.
there is no magic within. if you need some managed one, tell.

2014-09-22 12:12 GMT+02:00 anna amat :

>
> Can anyone suggest me a good hosting that supports gwt and mysql?
> I'm with mochahost now but it's not acceptable how incredibly slow it is.
> also their support group is not of much help.
>
> Thanks,
> Anna.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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