Re: Developers, please don't ignore reported GWT issues.

2011-10-15 Thread Thomas Broyer


On Friday, October 14, 2011 11:32:26 PM UTC+2, Jens wrote:
>
> Just assigning "someone" to a patch so it gets recognized (and later maybe 
> reassigned) somehow doesn't feel right to me. I think its definitely better 
> if the community can see who is active in the development team and who would 
> be a good review candidate for, e.g. UiBinder patches, compiler patches, 
> RequestFactory patches, Editor patches, 
>

I agree.

Though as a rule of thumb you can simply pick the last committer and last 
reviewer for the files you've modified (or lok at few commits back and pick 
the people who seem to be "maintainers" of that part of GWT).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/a-JwYJjWmTgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT App Indexing

2011-10-15 Thread Michael Vogt
Hello.

> I want to make an app which allows users to Post Content with GWT/GAE
> Can the text in the Content be indexed by Search Engines?
> or i have to use something else to build this ?
>
Maybe this answers your questions:
http://googlewebmastercentral.blogspot.com/2009/10/proposal-for-making-ajax-crawlable.html


Greetings,
Michael

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



Accessing files on Server: Development works, Hosted does not

2011-10-15 Thread m...@grayout.de
Hi all

I have problems accessing files stored on the server side in hosted
mode. Development mode workis fine!

The file data.xls is stored in war/resources/

I access the FIle using

File f = new File("resources/data.xls")

This works fine in development mode. In hosted mode, running on
TOMCAT, I get an Exception saying that the given file path is invalid.

Can anybody help me? What is the path referencing the file in hosted
mode?

Best regards and thanks in advance,

Uli

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



Re: Apply style to header, row, cell in cellTable

2011-10-15 Thread David Fernando
Thanks, working.

On Oct 14, 6:16 pm, Sudhakar Abraham 
wrote:
> Add style to cellTable using this  CellTable.Resources interface.
> Pass the CellTable.Resources object into CellTable constructor.
> Change the property in CellTableStyle.css file as you wish.
>
> S. Abrahamwww.DataStoreGwt.com
> Persist objects directly in Google App Engine
>
> //In Java class
>
> interface TableResources extends CellTable.Resources
>   {
>     @Source(value = { CellTable.Style.DEFAULT_CSS,
> "CellTableStyle.css" })
>     CellTable.Style cellTableStyle();
>   }
>
> CellTable cellTable= new CellTable(15,
> GWT. create(TableResources.class));
>
> //add your cellTable column.
> ---
> end java
> class
>
> //CellTableStyle.css file
>
> .cellTableCell {
>     height: 25px;
>     padding-left: 2px;
>     padding-right: 2px;
>     background-color: red;
>
> }
>
> .cellTableHeader {
>     height: 25px;
>     border-bottom: 2px solid #60a6bf;
>     padding: 3px 25px;
>
> }
>
> .cellTableEvenRow {
>         background: #fffaf0;
>         border:solid 1px red;
>
> }
>
> .cellTableEvenRowCell {
>     border:solid 1px green;
>
> }
>
> .cellTableOddRow {
>     background: #fff8e8;
>
> }
>
> .cellTableOddRowCell {
>      border:solid 1px red;
>
> }
>
>

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



Uncaught com.google.gwt.user.client.ui.AttachDetachException in Windows Chrome 14.0.835.202 ONLY

2011-10-15 Thread wmh
Hi

I am seeing the AttachDeachException on the windows(7 64) chrome
14.0.835.202. I didn't see this exception in almost anyother browsers:
Opera, Safari, Firefox, Linux Chrome Dev, IE(9), IE(9)64, default
browser on android tablet (Xoom), default browser on android phone(s).
Yet, the Exception is throwing in the Chrome on windows. The exception
is being thrown for the FlashMediaPlayer ui widget of
http://code.google.com/p/bst-player/ . I am new to GWT and javascript,
and would appreciate any help.

Thanks,

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



Re: JSNI - interactive chart

2011-10-15 Thread Tomasz Gawel
it seems that it is not possible to write iframe's content directly in
html.
you can add it programatically which seems even more convenient (but i
wanted to avoid it do to some inconsistency between browser as to when
cotnentDocument of an iframe becames available to code - there can
happen some delay in some browser and onload event is called event if
this iframe does not load any remote content.)
so with this precaution here's the code:


static class YourChart extends Widget {

private static final String API_URL = "http://ajax.googleapis.com/
ajax/static/modules/gviz/1.0/chart.js";
private HandlerRegistration handlerRegistration;

public YourChart(JSONObject userConf) {
this(userConf.toString());
}

public YourChart(final String userConf) {
final IFrameElement elem =
Document.get().createIFrameElement();

setElement(elem);

if(elem.getContentDocument() == null ||
elem.getContentDocument().getBody() == null){

handlerRegistration = addDomHandler(new LoadHandler(){

@Override
public void onLoad(LoadEvent event) {
initFrame(elem, userConf);
}

}, LoadEvent.getType());
}
else {
initFrame(elem, userConf);
}
}

private void initFrame(IFrameElement elem, String userConf) {
if(handlerRegistration != null){
handlerRegistration.removeHandler();
handlerRegistration = null;
}
Document cDoc = elem.getContentDocument();
BodyElement body = cDoc.getBody();
ScriptElement script = cDoc.createScriptElement(API_URL);
script.setInnerText(userConf);
body.appendChild(script);
}
}

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



Re: Developers, please don't ignore reported GWT issues.

2011-10-15 Thread Eric Clayberg (Google)
That is good advice. In addition to the active GWT development team, there 
is a fairly large group of ex-GWT team members who are still committers on 
the project and working on it during their Google 20% time. If you happen to 
pick the wrong person, we should be able to correct it quickly.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5YAo4CQxxt0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: AutoBean: decoding JSON with an array at the root?

2011-10-15 Thread benneq
i'm interested in this, too... :)


On 14 Okt., 21:09, alexp  wrote:
> Assume I the following JSON:
>
> [
>    { "foo": 1, "bar": 2 },
>    { "foo": 3, "bar": 4 }
> ]
>
> How would I set up my AutoBean and factory to parse this?
>
> If the array were a child of another object, like this:
>
> { "items": [
>           { "foo": 1, "bar": 2 },
>           { "foo": 3, "bar": 4 }
>      ]
>
> }
>
> Then the AutoBean would be easy, because the array is identified by
> the enclosing object:
>
> interface Foo {
>     List items;
>
> }
>
> interface Item {
>     int getFoo();
>     int GetBar();
>
> }
>
> However, when the array is at the root, there doesn't seem a way to
> decode a list at the root.  In other words, I cannot do this:
>
> MyFactory {
>     List itemList();
>
> }
>
> Because I would not be able to specify List as the cass (e.g.
> type) to be decoded:
>
> AutoBean bean = AutoBeanCodex.decode(myFactory, ???.class,
> jsonString);
>
> I tried adding a list bean that extended list, like this:
>
> interface ItemList extends List {
>
> }
>
> But I quickly realized that the AutoBean code would try to look for
> JSON properties or Category methods for all the methods in the List
> interface.
>
> Any ideas?
>
> Thanks in advance,
>
> Alex

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



Window.scrollTo() no longer works with 2.4?

2011-10-15 Thread colin
I use both Window.scrollTo() and Element.scrollIntoView() in my app.
I upgraded my GWT to 2.4 to use the new DnD feature and others.  But
just find out today that both of them stopped working in my app.  No
errors, just don't scroll.

Is it just me or others encounter the same?

GWT 2.4, Chrome and Safari.

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