Re: Getting OS or hardware info

2012-01-18 Thread Andrei Cosmin Fifiiţă
I should have been more specific: I meant hardware AND OS. I knew about
user agent's OS info, but what I needed is a way to uniquely identify a
certain device (not a category). I searched for this, but I don't think
there is a method for that.

On 18 January 2012 12:36, Aladdin  wrote:

> Yeah for sure , you will have those info in the "userAgent" for both
> client and server side.
>
>
> Just google "userAgent" .
>
> Hope that helped
>
> On Jan 18, 12:05 pm, Ice13ill  wrote:
> > Is there a way to get more information about a client? Hardware or OS?
> > (using either the servlet methods or browser headers)
>
> --
> 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.
>
>

-- 
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: Problem when deploying new compiled code

2011-11-08 Thread Andrei Cosmin Fifiiţă
Thank you for your reply Thomas. I was firmly convinced that my config file
had the necessary settings, but i was wrong.

On 8 November 2011 14:00, Thomas Broyer  wrote:

> You probably need to tweak your server settings re. caching. Particularly,
> make sure that the *.nocache.js is *not* cached by intermediaries and
> browsers. See
> http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#perfect_caching
>
>  --
> 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/-/wEkRfK7kjosJ.
> 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.
>

-- 
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: Inserting Widgets and simple text into panel

2011-11-07 Thread Andrei Cosmin Fifiiţă
I used the last solution and it worked fine (even IE 7,8 :), but I haven't
tested IE 6 )

On 4 November 2011 05:06, Thomas Broyer  wrote:

> As Ice13ill said, setting innerText or innerHTML will break the w1 and w2
> widgets (their element are rebuilt, so the instance they reference are no
> longer in the document, and event handlers obviously fails too (no longer
> registered, to begin with)).
>
> If using a Label or HTML (or InlineLabel/InlineHTML) is not an option:
>String w1Id = HTMLPanel.createUniqueId();
>String w2Id = HTMLPanel.createUniqueId();
>HTMLPanel panel = new HTMLPanel(" id='" + w1Id + "'>large text");
>panel.addAndReplaceElement(w1, w1Id);
>panel.addAndReplaceElement(w2, w2Id);
>
> Alternatively, something can be hacked that way:
>flowPanel.add(w1);
>flowPanel.add(w2);
>flowPanel.getElement().appendChild(Document.get().createTextNode(...));
> Use at your own risk.
>
> --
> 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/-/NftmeExljfkJ.
>
> 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.
>

-- 
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: Inserting Widgets and simple text into panel

2011-11-03 Thread Andrei Cosmin Fifiiţă
Thank you for the reply Alan, but the reason for trying this approach is
because widgets have much more that simple html elements (for example click
handlers for click events) if i set the inner html or text of a panel (or a
HTML widget) the new elements will be rendered ok, but the
listeners/handlers (both native and custom) will be lost

On 3 November 2011 17:20, Alan Chaney  wrote:

> Ice13ill
>
>
> On 11/3/2011 6:30 AM, Ice13ill wrote:
>
>> Hello, I want create a panel with a flow layout (for ex. FlowPanel)
>> which contains 2 widgets and a large text at the end (not a  or
>> another element)
>> I tried to add the widgets and then set the panel's element text:
>>
>> flowPanel.add(w1)
>> flowPanel.add(w2)
>> flowPanel.getElement.**setInnerText(largeText)
>>
> A FlowPanel is a container for widgets  - not a container for widgets and
> some text at  end!.
>
> Its a bit of a simplification, but basically gwt widgets render by doing
> exactly what you've done in the 3rd line. The best you could do is to
> retrieve the inner text and append your text to it - but really, that's a
> hack.
>
> My preference would be to put the text  in an appropriate widget, such as
> an HTML Widget and add that instead of manipulating the text directly, or
> if you want the text to be unstyled, then use a Label widget.
>
> HTH
>
> Alan
>
>
>
>
>  but the last line overrides all other widgets.
>>
>> How can i do this (but without using UIBinder for now.) ?
>>
>>
> --
> 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
> **.
>
>

-- 
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: Adding a collection of Suggestion to SuggestBox (replacement strings different from display strings)

2011-10-13 Thread Andrei Cosmin Fifiiţă
Also to this topic, I would like to extend the widget to use a text area and
split the entered text by comma (giving suggestions for the text after the
last comma). Is there a way to override the query passed to the method that
actually creates the search tokens ?

2011/10/13 Andrei Cosmin Fifiiţă 

> Waw... it actualy works... I did't read the source code carefully (how
> createSuggestion(...) was used) but i uses my own oracle, with an internal
> map to remember for each added value its replacement string.
> Thank you :)
>
>
> On 6 October 2011 21:17, Aidan O'Kelly  wrote:
>
>> You can't add suggestion objects directly, but you can override
>> the createSuggestion(String replacementString, String displayString) method.
>>
>> It will be called with the original string, passed into add(), and a
>> displayString, which will have the search query terms highlighted with
>>  tags. You can then go ahead and modify the strings, and create and
>> return a MultiWordSuggestion object which will be returned to the
>> SuggestBox.
>>
>>
>> On Thu, Oct 6, 2011 at 1:14 PM, Ice13ill wrote:
>>
>>> I also tried extending SuggestOracle, or Suggestion interface, but i
>>> cannot access the methods needed or fields, because they have private
>>> or default visibility. Is there something I'm missing ?
>>>
>>> On Oct 5, 1:29 pm, Ice13ill  wrote:
>>> > Hello, I want to create a suggest box with suggestions that have
>>> > replacement strings different from display strings
>>> > I created acollectionof MultiWordSuggestion(replString,
>>> > displayString) but i cannot find how to add them to the SuggestOracle.
>>> > I have methods add(string) or addAll(stringCollection), and only
>>> > setDefaultSuggestions(suggestionCollection).
>>> > the oracle does not have a method addAll(Collection
>>> > suggestions) or add(Suggestions).
>>> >
>>> > So how do put suggestions with replacement strings different from
>>> > display strings?
>>>
>>> --
>>> 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.
>>>
>>>
>>  --
>> 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.
>>
>
>

-- 
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: Adding a collection of Suggestion to SuggestBox (replacement strings different from display strings)

2011-10-13 Thread Andrei Cosmin Fifiiţă
Waw... it actualy works... I did't read the source code carefully (how
createSuggestion(...) was used) but i uses my own oracle, with an internal
map to remember for each added value its replacement string.
Thank you :)

On 6 October 2011 21:17, Aidan O'Kelly  wrote:

> You can't add suggestion objects directly, but you can override
> the createSuggestion(String replacementString, String displayString) method.
>
> It will be called with the original string, passed into add(), and a
> displayString, which will have the search query terms highlighted with
>  tags. You can then go ahead and modify the strings, and create and
> return a MultiWordSuggestion object which will be returned to the
> SuggestBox.
>
>
> On Thu, Oct 6, 2011 at 1:14 PM, Ice13ill  wrote:
>
>> I also tried extending SuggestOracle, or Suggestion interface, but i
>> cannot access the methods needed or fields, because they have private
>> or default visibility. Is there something I'm missing ?
>>
>> On Oct 5, 1:29 pm, Ice13ill  wrote:
>> > Hello, I want to create a suggest box with suggestions that have
>> > replacement strings different from display strings
>> > I created acollectionof MultiWordSuggestion(replString,
>> > displayString) but i cannot find how to add them to the SuggestOracle.
>> > I have methods add(string) or addAll(stringCollection), and only
>> > setDefaultSuggestions(suggestionCollection).
>> > the oracle does not have a method addAll(Collection
>> > suggestions) or add(Suggestions).
>> >
>> > So how do put suggestions with replacement strings different from
>> > display strings?
>>
>> --
>> 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.
>>
>>
>  --
> 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.
>

-- 
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: Deploying to App engine

2011-08-03 Thread Andrei Cosmin Fifiiţă
I need to deploy because i need to test some server side issues.
When i do that i use one compilation but still takes a lot
I just thought that i can customize the compiler so that minor changes will
not trigger the whole compilation (like adding a line of code in an app with
1000 java files)
On Aug 3, 2011 8:25 PM, "Isaac Truett"  wrote:
> How often are you deploying that this is a big deal for you? You should be
> doing your debugging in development
> mode<
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideDevMode
>
> and
> only deploying to GAE when you have a polished release ready.
>
>
> On Wed, Aug 3, 2011 at 12:58 PM, Ice13ill 
wrote:
>
>> Hello, i have a simple question: I use GWT and GAE for my application,
>> but the deployment phase takes too long: any small modification to the
>> GWT java code will trigger the whole compilation. Is there anything i
>> can do to speed up this process ?
>>
>> --
>> 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.
>>
>>
>
> --
> 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.
>

-- 
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: MVP and boilerplate code

2011-04-15 Thread Andrei Cosmin Fifiiţă
What's that ?

On 15 April 2011 23:52, Gal Dolber  wrote:
> Use guit :) zero boilerplate
>
> On Fri, Apr 15, 2011 at 11:25 AM, Magno Machado  wrote:
>>
>> When using the MVP framework built in GWT it seems that we have to write a
>> lot of boilerplate code.
>> Is it on the plans of GWT to improve it? Any work in progress? Or will it
>> stay as it is now?
>>
>> --
>> Magno Machado Paulo
>> http://blog.magnomachado.com.br
>> http://code.google.com/p/emballo/
>>
>> --
>> 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.
>
>
>
> --
> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> http://code.google.com/p/guit/
>
>
>
>
> --
> 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.
>

-- 
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: Window.open handle ?

2011-03-04 Thread Andrei Cosmin Fifiiţă
Few stars...
Doesn't help much...

On 4 March 2011 16:11, BB  wrote:

> Issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=3779
>
> --
> 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.
>

-- 
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: SerializationException problem, please advice!

2011-02-14 Thread Andrei Cosmin Fifiiţă
Some of them have no constructor. The rest is ok
On Feb 14, 2011 8:40 PM, "Jeff Larsen"  wrote:
> Does every entity follow the required serialization policy for gwt? i.e.
> have a default constructor and all nested objects are serializable. Note
> Class is not serializable.
>
> --
> 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.
>

-- 
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: SerializationException problem, please advice!

2011-02-14 Thread Andrei Cosmin Fifiiţă
So basicaly there is no pb if every entity implements IsSerializable and the
top class, that is extended by those entities, implements
java.io.Serializable?
On Feb 14, 2011 5:13 PM, "joe kolba"  wrote:
> I have ran into this problem also. First thing make sure everything is
> implementing IsSerializable, second make sure that you refresh your webapp
> folder in the web-inf so your .rpc files get refreshed. Most of the time I
> have to encounter a RPC exception in order to force the rpc file to be
> created. Once you get the new rpc file you might have to restart the
server
> and try your rpc call again. If this still does not work, read about DTO
> objects that are basically objects that are just used to transfer data for
> RPC.
>
> On Mon, Feb 14, 2011 at 9:05 AM, Ice13ill 
wrote:
>
>> I use GWT to develop my app, deploying it to GAE. Sometimes, (more
>> often when switching between different versions) i get this exception:
>> javax.servlet.ServletContext log: Exception while dispatching incoming
>> RPC call
>> com.google.gwt.user.client.rpc.SerializationException: Type
>> 'ro.expert.evt.shared.entities.UserProfile' was not assignable to
>> 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
>> custom field serializer.For security purposes, this type will not be
>> serialized.
>>
>> My entities classes (like UserProfile above) extends an EObject class
>> that also extends EEntity (which is the only class that implements
>> java.io.Serializable).
>>
>> I cannot reproduce it exactly, but i found some posts on the web
>> saying that adding a default empty constructor to all entities will
>> resolve the problem. I'm not sure about that so i would like some
>> advice on implementing IsSerializable (GWT) or Serializable
>> (java.io).
>> Can I use both GWT's IsSerializable AND java.io.Serializable to be
>> implemented by the top level class ? (EEntity in my case) so that my
>> entities can also be passed through a "wire" or GWT RPC. Or does the
>> GWT IsSerializable needs to be implemented by every entity class ?
>> (like UserProfile)
>>
>> --
>> 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.
>>
>>
>
> --
> 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.
>

-- 
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: Widget/Panel collapse using arrow button or bar

2011-01-11 Thread Andrei Cosmin Fifiiţă
I know how to create and design the widget, but i don't want to waste time
since it is a very high probability that someone did it already (like gxt or
smartGWT). I don't want to use such a big library either, because the widget
is really simple (well i could use a simple libary...)
But the widget must behave (and at least similar look) with the hiding bar
in google reader or gwt tutorial (or maybe a [<<] button like the one in the
new google groups UI, that hides the tabs on the left side)

On 11 January 2011 23:00, zixzigma  wrote:

> I think you can achieve the same by using Widget#setVisible(true/
> false)
> to show/hide the panel.
>
> here is how you ocan do it:
>
> 1- define  a CompositeWidget (extending Composite)
> this Composite "has" a Label and "has" a Panel.
>
> 2- define a  Label in your Composite
> (Label or a button/image/link to trigger the showing/hiding. +/- show/
> hide)
>
>
> 3- define a Panel in the Composite
> (this would be the main panel containing the contents you want to show
> and hide)
>
> 4- for the label(button/image/link) you create an event,
> for example onClick of the label, show/hide
> this is achieved by calling setVisible(true/false) on your panel
>
>
> in my experience Disclosure panel, acts a bit weird, when you hide
> the focus remains on the label, there is something about it that is
> just doesnt feel right.
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: Widget/Panel collapse using arrow button or bar

2011-01-11 Thread Andrei Cosmin Fifiiţă
I knwi that the header and the inside widget are vertically aligned. I need
horizontal align. (something that looks like the HorizontalSplitPanel)


On 11 January 2011 18:01, Milan Cvejic  wrote:

> What you are looking for is called DisclosurePanel.
>
> It is in standard GWT library.
>
> Cheers,
> Milan Cvejic
>
> On Jan 11, 3:13 pm, Ice13ill  wrote:
> > Hello, I need a simple widget that collapses/hides a panel (or div)
> > and looks something like the google reader hiding bar, or gwt tutorial
> > site (or an arrow button like the new google groups interface or
> > google news).
> > I just need a simple code (with some css styles), not a whole library.
> > Even a javascript code that can be integrated with gwt is ok.
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: Why 5 compilations instead of 6 ?

2011-01-07 Thread Andrei Cosmin Fifiiţă
Thanks. I haven't noticed that paragraph.

On 7 January 2011 17:02, Jim Douglas  wrote:

>
> http://groups.google.com/group/google-web-toolkit/browse_thread/thread/6f2418947d7efeb9/02a6615d8b719089
>
> On Jan 7, 6:51 am, Ice13ill  wrote:
> > I noticed that now gwt compiles 5 permutations instead of 6 (for:
> > ie6,ie8,gecko1_8,safari,opera properties). What happened to the
> > "gecko" property ? Will this affect the rendering in different
> > browsers ? (i.e. firefox for windows or firefox for linux ? )
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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 RPC serialization between 2 servlets

2010-11-17 Thread Andrei Cosmin Fifiiţă
Thx for the answers...
I wanted to use serialization from the start but i really want to know how
can i use JSON.
BUT, i need to know if there is something simple that i can use (GWT, java,
or other libs). For example, i have some java beans (with simple fields -
string, integer, lists of those types...) and i want to
serialize/deserialize them without modifying them. (widhtoug adding
annotations, other methods, extending... or at least, very few
modifications)


On 17 November 2010 16:53, ep  wrote:

> not sure if this will work outofthe box, since in GWT RPC there is
> always a client which is initiating an RPC request first. so you have
> to do so in your server code, except for there is nor XHR on the
> server, the rest should work fine, especially serialization of the
> request command, which you would pass from one servlet to another
> using POST (not GET).
>
> do you have to use HTTP beyond or would be be ok to use just tcp or
> udp socket? I'd either go for RMI, binary serialization (no http) or
> JSONP / XML (http) which you can easily get started with, of course
> SOAPis the king^^ but I guess would be kinda overkill here.
>
> On 17 Nov., 14:55, Greg Dougherty  wrote:
> > Use Java Serialization to send the the objects from one servlet to
> > another.
> >
> > Make sure you have the Objects implement Serializable.  :-)
> >
> > You can override doGet without damaging GWT RPC.  One servlet does
> > that, the other (the one driving the exchange) makes an HTTP call to
> > it.  They both use Object*Streams to send and receive the object(s).
> >
> > Greg
> >
> > On Nov 17, 6:52 am, Ice13ill  wrote:
> >
> > > Hello, I want to send objects between 2 servlets and i was wondering
> > > if the GWT RPC mechanism used for client - server communication can
> > > also be used to send data across two servlets that extend
> > > RemoteServiceServlet.
> >
> > > Or maybe I can use the Java serialization to actually send bytes from
> > > one servlet to another ?
> >
> > > Any ideas ?
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: Setting "/" in history token using encodeComponent

2010-08-17 Thread Andrei Cosmin Fifiiţă
Well, this is just stupid... this means i cannot encode http:// in my url ?
well, GMAIL can, so what;s the deal ? i don;t think this is a bug it seams
like am amateur's mistake.


On 17 August 2010 18:31, Thomas Broyer  wrote:

>
> On 17 août, 17:07, Ice13ill  wrote:
> > I'm trying to set a text in history token containing the "/" character
> > but i want to encode it before setting the token
> > For exameple : "2/12/a" to become "2%2F12%2Fa"
> > the problem is that GWT also converts automatically % in %25. thus
> > History.newItem(URL.encodeComponent(text)) does not set the correct
> > text.
> > so how do i set in the history item the text "%2F" ?
>
> You just cannot, at least using the stock History class in its current
> state (but you could re-implement –copy/paste– on your own to overcome
> this "limitation").
> I guess this is because some browsers would give you the same thing
> for both "/" and "%2F"; or maybe just that History is actually
> "broken" (or let's rather say there's room for improvement, by
> implementing it differently)
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: Detecting mobile phones browser

2010-08-15 Thread Andrei Cosmin Fifiiţă
Yep, that is exactly what i did :) (property-provider and replace-with tags)

On 15 August 2010 17:51, Thomas Broyer  wrote:

>
>
> On 15 août, 16:36, Thomas Broyer  wrote:
> > On 14 août, 14:32, Ice13ill  wrote:
> >
> > > I wont to know if by checking the "user.agent" property in the gwt.xml
> > > file I can detect if the client is using a browser on a mobile phone
> > > (like HTC wiht Android, or IPhone etc)
> >
> > > And also, are there "nasty" restrictions on the JS (thus GWT classes)
> > > on those browsers ?(at least for those very widely used)
> >
> > Seehttp://code.google.com/p/gwt-mobile-webkit/(andthere
> >  are
> > probably other projects out there)
>
> See also this example:
>
> http://code.google.com/p/google-web-toolkit/wiki/ConditionalProperties#Example_2:_Avoiding_permutation_explosion
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: Detecting mobile phones browser

2010-08-15 Thread Andrei Cosmin Fifiiţă
Thx for the answers but i found a way of defining my own property based on a
javascript (in .gwt.xml file) which tests the complete user agent string for
some keywords.
http://www.javaneverdie.com/gwt/want-to-show-mobile-or-phone-site-version-check-user-agent/

On 15 August 2010 11:23, cokol  wrote:

> you can either use js browser detection script and work with it over
> JSNI in GWT ( like http://javascript.about.com/library/blbrsdet.htm )
> or a serverside solution ( like http://wurfl.sourceforge.net/ ) which
> helps you to handle clients capabilities
>
> gwt claims to work on every browser :) hence there is no explicit
> support on mobile devices ( I suppose )
>
> On 14 Aug., 14:32, Ice13ill  wrote:
> > I wont to know if by checking the "user.agent" property in the gwt.xml
> > file I can detect if the client is using a browser on a mobile phone
> > (like HTC wiht Android, or IPhone etc)
> >
> > And also, are there "nasty" restrictions on the JS (thus GWT classes)
> > on those browsers ?(at least for those very widely used)
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: UI Binder paths

2010-01-26 Thread Andrei Cosmin Fifiiţă
i'll try that. 10x!

On Tue, Jan 26, 2010 at 7:46 PM, Thomas Broyer  wrote:

>
>
> On Jan 26, 4:49 pm, Ice13ill  wrote:
> > i'm using uibinder to create some widgets with a CSS file and the
> > corresponding .java and .ui.xml files.
> > Where can i find how the uibinder accesses the required resources ?
> >
> > For example, i have my widgets in the package
> > com.testapp.client.widgets : MyWidget.java and MyWidget.ui.xml
> > The css file is in war/TestApp.css
> >
> > how can i access the css file with the   
> > tag?
>
> You can't. CssResource is a compile-time thing, and war/ is only an
> output destination. Your CSS should be in your classpath, then you can
> use paths relative to the package containing the *.ui.xml.
>
> > if i separate the .java files from .ui.xml files how can i tell where
> > to find the ui.xml file when i create the widget ?
>
> Use a @UiTemplate annotation, with a relative path (not tested but I
> guess it should work).
>
> --
> 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-tool...@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.
>
>

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