Re: dynamic update data

2012-12-24 Thread Sebastián Gurin
If the pizza objects that your client posses are not a very big number, 
then, instead updating against the server, you can mantain a local 
collection of pizzas in the client. I mean, write a class like PizzaHome or 
something like that that contains a collection or a map of pizzas. When you 
add a new pizza or remove a pizza, make a call to the server for 
adding/updating and then modify the local pizza home 
PizzaHome.getInstance().addNew(pizza1). The Pizza home can be an Observable 
that notify other interested part of your client when the local pizza 
collection changes. Also from time to time you can synchronize this 
PizzaHome with your server. 

On Monday, December 24, 2012 8:48:00 AM UTC-2, Aldin wrote:
>
> Hi guys,
>
> I am developing pizza ordering application. I have two forms:
>
> 1) For inserting new pizza
> 2) and for ordering.
>
> Here you can see:
>
>
>  
> inserting.png
>
>  
> ordering.png
>
> When I insert a new pizza and go to check on combo box (picture ordering) 
> I can't see my new pizza in combo box. The new pizza is inserted in my 
> databases. The pizzas in combo box are from my database.
>
> I have one idea.  But I don't think it is good. To use 
>
> Timer t = new Timer() {
>   public void run() {
> //display all pizza from my database every 2 se to combobox
>   }
> };
>
> t.schedule(2000);
>
> Any idea for better approach???
>
> Thanks
>
>

-- 
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/-/1VMHjsTx0o4J.
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: setUser and setPassword in RequestBuilder

2012-12-24 Thread Julio Faerman
I also would like to know that, neither the officil docs or javadocs makes 
this clear...

On Thursday, February 1, 2007 9:13:46 AM UTC-2, thodu wrote:
>
> Hi,
>
> I would like to know the use of the setUser and setPassword methods in
> RequestBuilder. How exactly are they meant to be used?
>
> Regards,
>   Amit
>
>

-- 
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/-/rTNKalr2ozgJ.
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: dynamic update data

2012-12-24 Thread Aldin Habibović
Thank you for replying. Yes, this is for my final school project. What did
you mean by "GWT universe". Is it tutorial ? :) When I click on my TabPanel
("Racun" or "Ordering pizza" tab) , I can also add this line of code:
Window.Location.reload()
to refresh the page to see new pizza which is added in my database.

-- 
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: dynamic update data

2012-12-24 Thread Jeffrey Chimene
On 12/24/2012 3:48 AM, Aldin Habibovic' wrote:
> Hi guys,
>
> I am developing pizza ordering application. I have two forms:
>
> 1) For inserting new pizza
> 2) and for ordering.
>
> Here you can see:
>
>
>  inserting.png
> 
>
>  ordering.png
> 
>
> When I insert a new pizza and go to check on combo box (picture
> ordering) I can't see my new pizza in combo box. The new pizza is
> inserted in my databases. The pizzas in combo box are from my database.
>
> I have one idea.  But I don't think it is good. To use
>
> Timer t = new Timer() {
>   public void run() {
> //display all pizza from my database every 2 se to combobox
>   }
> };
> t.schedule(2000);
>
> Any idea for better approach???
> Thanks

That's certainly one approach. There's nothing inherently wrong with
polling. The interval will depend on your specific requirements.
If this is a classroom exercise, then it would be good to explore other
models, some of which are available in the GWT universe.
A search of the list archives on publish/subscribe and push models will
be rewarding.

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



Can we use XsrfProtectedServiceServlet?

2012-12-24 Thread Ayala
Hi,
In the XsrfProtectedServiceServlet java doc , 
it is mentioned that it is "EXPERIMENTAL and subject to change. Do not use 
this in production code."
Is it correct? Can we use it?

Thanks 
Ayala

-- 
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/-/9fVnEzxoGdMJ.
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: Background css gradient

2012-12-24 Thread Marco
I have added following line to my css file:

filter: 
literal("progid:DXImageTransform.Microsoft.gradient(startColorstr='#cc', 
endColorstr='#00')");

now the gradient is also working in IE.

Thanks a lot.

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



dynamic update data

2012-12-24 Thread Aldin Habibović
Hi guys,

I am developing pizza ordering application. I have two forms:

1) For inserting new pizza
2) and for ordering.

Here you can see:


 inserting.png

 ordering.png

When I insert a new pizza and go to check on combo box (picture ordering) I
can't see my new pizza in combo box. The new pizza is inserted in my
databases. The pizzas in combo box are from my database.

I have one idea.  But I don't think it is good. To use

Timer t = new Timer() {
  public void run() {
//display all pizza from my database every 2 se to combobox
  }
};

t.schedule(2000);

Any idea for better approach???

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: Background css gradient

2012-12-24 Thread Marco
I had a little mistake in my program therefore CssResource did not work.

Only with the *literal *css description it work now:

.backgroundtoolbar {
  background-image: literal("-ms-linear-gradient(top, #000 20%, #fff 80%)");
  background-image: literal("-moz-linear-gradient(top, #000 20%, #fff 
80%)");
  background-image: literal("-o-linear-gradient(top, #000 20%, #fff 80%)");
  background-image: literal("-webkit-linear-gradient(top, #000 20%, #fff 
80%)");
  background-image: literal("linear-gradient(to bottom, #000 20%, #fff 
80%)");
}

Thanks to Jens because without 
IGradientStyle.INSTANCE.style().ensureInjected()
it will not work.

The gradient is not working in IE but will work in Chrome. Any idea?

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