Re: Problem with the function "editRecord" in a DynamicForm (SmartGwt)

2013-03-29 Thread sahli . sabrina
Thank you so much for the reply,

I works fine in the showcase but the problem is a don't use XML for 
managing data so i think that the problem is in type of formItem used for 
displaying Date in the DynamicForm.

I used a FormItem and DateItem but i still had this problem but now  i'm 
using DateTimeItem , and strangely it works fine!! :)


Thank you,

Le vendredi 29 mars 2013 01:06:56 UTC+1, Sanjiv Jivan a écrit :
>
> This functionality works fine even for Date type fields. You can see this 
> by clicking any row in the grid which calls editRecord(..) on the form.
>
> http://www.smartclient.com/smartgwt/showcase/#featured_pattern_reuse
>
> If you're still having problems then post your question on the SmartGWT 
> forum including a minimal test case : 
> http://forums.smartclient.com/forumdisplay.php?f=14
>
> Thanks,
> Sanjiv
>
>
>
> On Mon, Mar 25, 2013 at 5:58 AM, >wrote:
>
>> i have in the GUI, a ListGrid and a DynamicForm. When i click on an 
>> element in the listGrid, i have to display the values of the edited record 
>> on the Dynamic form,
>> for this, i use the EditRecord(Record r) of the dynamicForm
>>
>>
>> public void updateInstanceDetailTabPane(Record record){
>>
>>   
>>  this.editionForm.editRecord(record);
>>
>>  }
>>
>>
>> it works however for the fields of type Date , the values displayed are 
>> the date of today and not the reel value of the field.
>>
>> My question is where is the problem and how can i display the values of 
>> type date with their reel values?
>>
>> 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-we...@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: GWT is creating large cache files in my temp folder.

2013-03-29 Thread Thomas Broyer


On Friday, March 29, 2013 6:37:58 PM UTC+1, Mohammad Al-Quraian wrote:
>
> It's getting ridiculous, the total size of the files is over 6 GB!!
>
> An example of a file name is:
> gwt170701911917272844byte-cache
>
> 1- Why is it doing that and can I avoid it? or at least make them deleted 
> automatically?
>

They *are* deleted automatically… if the JVM terminates normally. It seems 
like Eclipse is killing the JVM a bit too abruptly so those files aren't 
deleted.
See https://code.google.com/p/google-web-toolkit/issues/detail?id=5261

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

2013-03-29 Thread Thomas Broyer


On Friday, March 29, 2013 4:16:31 PM UTC+1, Magnus wrote:
>
> Hi,
>
> after upgrading the eclipse plugin I found a folder named "gwt-unitCache" 
> under my project directory. I think it was not there before.
> Does anyone know what it is for?
>

It's used by the compiler to cache "compilation units", which are 
(basically) the things it creates upon parsing your Java source files. The 
gwt-unitCache will speed-up subsequent compiles because it can just read 
from the cache rather than re-parse/compile a file if it hasn't changed.
I believe it's also used by devmode (can't remember).

-- 
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 is creating large cache files in my temp folder.

2013-03-29 Thread Mohammad Al-Quraian
It's getting ridiculous, the total size of the files is over 6 GB!!

An example of a file name is:
gwt170701911917272844byte-cache

1- Why is it doing that and can I avoid it? or at least make them deleted 
automatically?
2- Are they different from gwt-unitCache files?

BTW, I'm opening quite the number of GWT projects for practicing, I also 
delete the gwt-unitCache folder every now and then.

Cheers gwters,
Mo

-- 
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: clear browser cache automatically?

2013-03-29 Thread Tomek Kańka
W dniu piątek, 29 marca 2013 10:24:59 UTC+1 użytkownik Magnus napisał:
>
> Hi,
>
> when I deploy a new version of my app on my tomcat server, the clients 
> sometimes need to clear the browser cache.
>
> If the cache is not cleared, an exception occurrs (see below) and the 
> client gets an error message.
> The problem is that some clients do not know what to do.
>
> What can I do? Would it be possible to have the browser's cache be cleared 
> automatically somehow?
>
>

Use filter to set headers for "*nocache*" files, which disallows caching.


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




"Complex" JSON Overlay

2013-03-29 Thread sebastien . ribeil
Hi all,

I try to use overlay type on this kind of JSON:

{"records": [{"names": {"John": ["50", "H", "US"], "Jack": ["40", "H", "EN"]}, 
> "style": "TR"}]}


So, to get the value of "style", I do that and it works:


public final native String getStyle()
>   /*-{
>   return this.records[0].style;
>   }-*/;


Now I want to get the values of "names". I do that and what I get is always* 
null*. 


public final native String getNames(final int i)
> /*-{
> return this.records[0].names[i];
> }-*/; 


 
Why? Is it the good way to get the names and their properties? (like ["50", 
"H", "US"])

Thank you in advance :)

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




Customized info window on Google Maps

2013-03-29 Thread Hala Basali
Hi,
I am searching the Internet for a way to create a customized info window 
for the google map. 
Unfortunately, I only find solutions and tutorials to solve this problem in 
JavaScript. 
Is anyone there who knows how to do it in Java Code? 

Any help would really be great! Thanks forward!

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




How to use Gin DI in custom ConstraintValidator (Bean Validation)?

2013-03-29 Thread p . kotlyarov1988
For example i have some CodeValidator with dependencies.

public class ExistingCustomsCodeValidator implements 
ConstraintValidator {
@Inject private CustomsCodeService customsCodeService;
@Inject private ProcessingCtx processingCtx;

@Override public void initialize(ExistingCustomsCode 
constraintAnnotation) {}

@Override public boolean isValid(String value, 
ConstraintValidatorContext context) {
return customsCodeService.isValid(value, 
processingCtx.getDeclarationDateTime());
}
}

I can simply inject dependencies on server-side, but i can't imagine how to 
do this on client-side.

-- 
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: java.util.MissingResourceException: Can't find bundle for base name com.google.gwt.dev.js.rhino.Messages, locale en_US

2013-03-29 Thread Samuel
Hi Petar ! I have the same problem : did you find the solution ?

Le lundi 18 mars 2013 15:55:44 UTC+1, pe...@tahchiev.net a écrit :
>
> [ERROR] com.google.gwt.user.client.rpc.SerializationException: Failed to 
> parse RPC payload
> [ERROR] at 
> com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.prepareToRead(ClientSerializationStreamReader.java:322)
>  
>
>
[ERROR] Caused by: java.util.MissingResourceException: Can't find bundle 
> for base name com.google.gwt.dev.js.rhino.Messages, locale en_US
>
>

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




Complex JSON and overlay types

2013-03-29 Thread sebastien . ribeil
Hi everybody,
 
I want to read this kind of JSON with GWT:
 
 
*{"records": [{"names": {"John": ["50", "H", "US"], "Jack": ["50", "H", 
"US"]}, "style": "TR"}]}*

I use overlay for that. 

If I use that, I get "*TR*":

* public final native String getStyle()
 /*-{
 return this.records[0].style;
 }-*/;*

So, it's work. Now I want to get *John *and the list *50,H,US.* If I use 
that I get *null:*

*public final native String getNames(String i)
 /*-{
 return this.records[0].names[i];
 }-*/;*

For the same thing, I try to do that and I get no result: (json is the of 
my class which is extended by JavaScriptObject)

*   public final native JsArray getArray(String key) /*-{
return this[key] ? this[key] : new Array();
}-*/;*

and 

*result.getArray("names").toString()*

** 

Have you any idea to do what I want?

Thank you in advance !

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




Bean Validation customization questions

2013-03-29 Thread p . kotlyarov1988
First of all i need to make MessageInterpolator decorator like that.

public class MessageInterpolatorDecorator implements MessageInterpolator {
private final MessageInterpolator decorator;

public MessageInterpolatorDecorator(MessageInterpolator decorator) {
this.decorator = decorator;
}

@Override public String interpolate(String messageTemplate, Context 
context) {
return decorator.interpolate(messageTemplate, context);
}

@Override public String interpolate(String messageTemplate, Context 
context, Locale locale) {
return decorator.interpolate(messageTemplate, context, locale);
}
}

It looks like correct, but can't be compiled.

The second requirement in my project is usage DI in custom 
ConstraintValidator. For example:

public class ExistingCustomsCodeValidator implements 
ConstraintValidator {
@Inject private CustomsCodeService customsCodeService;
@Inject private ProcessingCtx processingCtx;

@Override public void initialize(ExistingCustomsCode 
constraintAnnotation) {}

@Override public boolean isValid(String value, 
ConstraintValidatorContext context) {
return customsCodeService.isValid(value, 
processingCtx.getDeclarationDateTime());
}
}

It can be simply done at server side, but i haven't any idea how to do this 
on client side. Can somebody give me advice?

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

2013-03-29 Thread Magnus
Hi,

after upgrading the eclipse plugin I found a folder named "gwt-unitCache" 
under my project directory. I think it was not there before.
Does anyone know what it is for?

Thanks
Magnus

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




clear browser cache automatically?

2013-03-29 Thread Magnus
Hi,

when I deploy a new version of my app on my tomcat server, the clients 
sometimes need to clear the browser cache.

If the cache is not cleared, an exception occurrs (see below) and the 
client gets an error message.
The problem is that some clients do not know what to do.

What can I do? Would it be possible to have the browser's cache be cleared 
automatically somehow?

Thanks
Magnus

-

Mar 29, 2013 6:38:43 AM org.apache.catalina.core.ApplicationContext log
INFO: SystemServlet: ERROR: The serialization policy file 
'/bcs/4BF9157EFF4DC4C6EDC037BC1D248013.gwt.rpc' was not found; did you 
forget to include it in this deployment?
Mar 29, 2013 6:38:43 AM org.apache.catalina.core.ApplicationContext log
INFO: SystemServlet: WARNING: Failed to get the SerializationPolicy 
'4BF9157EFF4DC4C6EDC037BC1D248013' for module 
'http://www.bavaria64.de/bcs/bcs/'; a legacy, 1.3.3 compatible, 
serialization policy will be used.  You may experience 
SerializationExceptions as a result.
Mar 29, 2013 6:38:54 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type 
'bcs.shared.mod.user.UserContext' 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.: 
instance = bcs.shared.mod.user.UserContext@1dd3358
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:665)
at 
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:585)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:605)
at 
com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:471)
at 
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:563)
at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at 
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:662)

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