UnsatisfiedLinkError while debugging

2018-12-05 Thread DK
I have recently updated GWT to 2.8.2 from 2.6.1.

I am trying to debug using the Classic dev mode with "-nosuperDevMode" flag 
but getting the error:
 
"uncaught exception: java.lang.UnsatisfiedLinkError: 
com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.getHash()Ljava/lang/String;"
 
"" 0

This error was not occurring with GWT-2.6.1. It seems GWT-2.8.2 is not 
allowing the use of JSNI inside ClientSerializationStreamReader. Can 
someone help with this?


-Dinesh

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


SerializationException While Upgrading to GWT 2.8.2

2018-07-11 Thread DK
I have updated from GWT 2.6.1 to GWT 2.8.2 but while running I am getting 
the following error in the browser:

com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: The 
response could not be deserialized
at Unknown.Throwable_1(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.Exception_1(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.RuntimeException_1(com.ptc.windchill.wncgwt.WncGWT-0.js)
at 
Unknown.IncompatibleRemoteServiceException_1(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.onResponseReceived(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.$fireOnResponseReceived(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.onReadyStateChange(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.onreadystatechange<(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.apply_0(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.entry0_0(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.entry_0/<(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.anonymous(Unknown)
Caused by: com.google.gwt.user.client.rpc.SerializationException: 153221
at Unknown.Throwable_0(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.Exception_0(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.SerializationException_0(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.$check(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.$instantiate(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.$readObject(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.deserialize_337(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.deserialize_335(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.$deserialize_0(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.$deserialize(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.$readObject(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.read_8(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.onResponseReceived(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.$fireOnResponseReceived(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.onReadyStateChange(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.onreadystatechange<(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.apply_0(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.entry0_0(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.entry_0/<(com.ptc.windchill.wncgwt.WncGWT-0.js)
at Unknown.anonymous(Unknown)

What is the meaning of "153221" after the Error?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT RPC file name in ClassNotFoundException

2018-06-27 Thread DK
*GwtHandlerAdapter* class extends the *RemoteServiceServlet* class and 
overrides its *processCall(String payload)* method.

The overriden method only throws error when the *payload value* is:

7|0|96|http://vagrant.ptcnet.ptc.com:2280/Windchill/gwt/com.ptc.windchill.wncgwt.WncGWT/|1C2DD3E7BC435105789300F99C966F9B|com.ptc.cat.ops.client.internal.OperationDispatcher|dispatch|java.util.ArrayList/4159755760|com.ptc.windchill.enterprise.dsb.client.ops.StructureCompareOperation$StructureCompareOperationParams/619250753|com.extjs.gxt.ui.client.core.FastMap/3488076414|java.lang.String/2004016611|SOURCE_NCID|-105227984815700591|TARGET_NCID|-7516521843859502960|SOURCE_CACHEID|184184|TARGET_CACHEID|184185|SOURCE_ROOT_STRUCTURE_MODEL|com.ptc.cat.entity.client.structure.SimpleMasteredStructureModel/714351732|com.ptc.cat.entity.client.nav.internal.DefaultNavigable/1488927308|com.ptc.cat.entity.client.internal.ServerIdentifier/44651098|wt.part.WTPartMaster|156180|java.util.LinkedList/3953877921|com.ptc.cat.entity.client.ParentInfo/148369529|masterReference|wt.part.WTPart|174404|PART_USES|http://vagrant.ptcnet.ptc.com:2280/Windchill/wtcore/images/part.gif|Part|TARGET_ROOT_STRUCTURE_MODEL|SOURCE_STRUCTURE_MODEL|TARGET_STRUCTURE_MODEL|SOURCE_ATTRIBUTE_MAPPER|com.ptc.cat.entity.client.attribute.AttributeMapper/4173695238|identityBuilder|FILTERED_PART_BUILD_RULE_EPMDOCS|com.ptc.cat.entity.client.attribute.Attribute/1120602003|com.ptc.cat.entity.client.structure.AbstractStructureModel$StructureModelLocation/351430279|Child|SUBSTITUTE_PARTS|AXL_PART_DESCRIBE_DOCS|AVL_NAV_PARAMS|MFR_TO_VEN_NAV_CONSTANT|AXL_PART_REFERENCE_DOCS|REFERENCE_DOCS|CAD_DESCRIBE_DOCS|AML_NAV_PARAMS|DESCRIBE_DOCS|FILTERED_PART_BUILD_RULE_ASSOCIATION_EPMDOCS|ALTERNATE_PARTS|FILTERED_PART_BUILD_HISTORY_EPMDOCS|TARGET_ATTRIBUTE_MAPPER|SOURCE_ATTRIBUTES|TARGET_ATTRIBUTES|IS_INITIATED_FROM_LEFT|java.lang.Boolean/476441737|COMPARE_SUMMARIES_CACHE_ID|0.84591641254933151530079253572|SOURCE_CONTEXT_INFOS|TARGET_CONTEXT_INFOS|SORT_BY_SOURCE|SOURCE_SORT_INFOS|[Lcom.ptc.cat.gxt.client.data.AttributeSortInfo;/3159444690|com.ptc.cat.gxt.client.data.AttributeSortInfo/2832941857|com.extjs.gxt.ui.client.Style$SortDir/3873584144|TARGET_SORT_INFOS|SOURCE_NAV_TYPE_NAMES|java.util.HashSet/3273092938|TARGET_NAV_TYPE_NAMES|SOURCE_SOURCING_CONTEXT_ID|TARGET_SOURCING_CONTEXT_ID|SOURCE_STARTING_PATH|com.ptc.cat.entity.client.CATNodePath/4282519304|TARGET_STARTING_PATH|COMPARE_OPTIONS|{}|graphBuilder|com.ptc.windchill.enterprise.part.structureCompare.server.graph.SCGraphBuilder|applicationName|com.ptc.windchill.enterprise.part.structureCompare.StructureCompare|differenceCalculator|com.ptc.windchill.enterprise.dsb.server.graph.DSBDifferenceCalculator|java.util.HashMap/1797211028|wt.part.WTPartReferenceLink|wt.part.WTPartDescribeLink|wt.part.WTPartAlternateLink|wt.part.WTPartSubstituteLink|com.ptc.windchill.suma.axl.AXLEntry|wt.epm.build.EPMBuildRule|wt.epm.build.EPMBuildHistory|wt.epm.structure.EPMDescribeLink|com.extjs.gxt.ui.client.core.FastSet/2139705081|java.util.Arrays$ArrayList/2507071751|com.ptc.cat.ops.client.DefaultCommandMapPopulator/3331120601|com.ptc.windchill.enterprise.dsb.client.ops.StructureCompareOperation|1|2|3|4|1|5|5|1|6|7|26|8|9|8|10|8|11|8|12|8|13|8|14|8|15|8|16|8|17|18|0|19|0|0|0|20|21|0|22|23|1|24|25|25|20|26|0|27|0|0|0|19|5|1|-14|0|0|20|26|0|27|0|0|0|0|2057|0|28|0|0|5|0|1|29|30|0|0|-19|8|31|18|0|19|0|0|0|20|21|0|22|23|1|24|24|25|20|26|0|27|0|0|0|19|5|1|-25|0|0|-21|0|0|0|0|2057|0|28|0|0|5|0|1|29|30|0|0|-30|8|32|-13|8|33|-24|8|34|35|7|0|7|1|8|36|7|14|8|37|38|36|0|0|0|0|0|39|40|0|8|41|38|36|0|0|0|0|0|-43|0|8|42|38|36|0|0|0|0|0|-43|0|8|43|38|36|0|0|0|0|0|-43|0|8|44|38|36|0|0|0|0|0|-43|0|8|45|38|36|0|0|0|0|0|-43|0|8|46|38|36|0|0|0|0|0|-43|0|8|47|38|36|0|0|0|0|0|-43|0|8|48|38|36|0|0|0|0|0|-43|0|8|49|38|36|0|0|0|0|0|-43|0|8|50|38|36|0|0|0|0|0|-43|0|8|51|38|36|0|0|0|0|0|-43|0|8|52|38|36|0|0|0|0|0|-43|0|8|28|38|36|0|0|0|0|0|-43|0|8|53|35|7|0|7|1|-39|7|14|-41|38|36|0|0|0|0|0|-43|0|-44|38|36|0|0|0|0|0|-43|0|-46|38|36|0|0|0|0|0|-43|0|-48|38|36|0|0|0|0|0|-43|0|-50|38|36|0|0|0|0|0|-43|0|-52|38|36|0|0|0|0|0|-43|0|-54|38|36|0|0|0|0|0|-43|0|-56|38|36|0|0|0|0|0|-43|0|-58|38|36|0|0|0|0|0|-43|0|-60|38|36|0|0|0|0|0|-43|0|-62|38|36|0|0|0|0|0|-43|0|-64|38|36|0|0|0|0|0|-43|0|-66|38|36|0|0|0|0|0|-43|0|-68|38|36|0|0|0|0|0|-43|0|8|54|5|1|-42|8|55|5|1|-75|8|56|57|1|8|58|8|59|8|60|0|8|61|0|8|62|57|1|8|63|64|1|65|36|57|0|0|57|0|0|66|1|0|8|67|64|1|65|36|57|0|0|57|0|0|-106|0|8|68|7|2|-56|69|1|-13|-68|69|1|-13|8|70|7|2|-56|69|1|-24|-68|69|1|-24|8|71|0|8|72|0|8|73|74|1|18|0|-14|0|0|0|-19|0|0|0|2056|0|28|0|0|5|0|1|29|30|0|0|-19|8|75|74|1|18|0|-25|0|0|0|-30|0|0|0|2056|0|28|0|0|5|0|1|29|30|0|0|-30|8|76|8|77|7|3|8|78|8|79|8|80|8|81|8|82|8|83|0|0|0|5|1|-42|0|0|14|0|84|0|1|0|0|5|8|8|85|8|86|8|87|8|88|8|89|8|90|8|91|8|92|0|0|1|-1|93|2|-56|-68|81|0|0|0|0|0|0|0|0|0|94|2|-13|-24|0|0|1|0|1|0|0|0|200|14|95|0|0|0|0|5|2|-21|-21|1|0|81|10|0|0|-21|0|0|1|0|96|1|

For other payloads it do not throw any 

logging not working? kepler/gwt 2.5.1

2013-09-05 Thread dk
Hi, this seems really odd to me.  I have a fairly old gwt project.  The 
project works but needs a tweak.  I had logging enabled for the project 
in the past then set:

inherits name=com.google.gwt.logging.Logging/

set-property name=gwt.logging.enabled value=FALSE/


in a class I say:

public class MyClass extends Composite implements
HasValueChangeHandlersJSONObject {
Logger logger = Logger.getLogger(MyClass);

... 
logger.info(Form: a);

 

Then I move it to production. ...time passes...  Now I need to make a 
change.  I set 

set-property name=gwt.logging.enabled value=TRUE/


clean and refresh the project and I get nothing.  The logging pane does 
not appear and the javascript console in the browser shows nothing.

I know I must be missing something obvious but I can not see it at this 
moment.  Ideas are welcome. 

-- 
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/groups/opt_out.


GWT 2.3 client side

2012-10-02 Thread DK
we are upgrading from gwt1.2 to gwt2.3. In earlier version we modified
the client side code which was dealing with POST request so that it
can integrate with vignette portal i.e. asyncPostImpl() method in
HTTPRequestImpl.java..

but on gwt2.3, that implementation is no more.. i tried modifying in
doSend() method in RequestBuilder and seems it is still not modifying.
i was also looking into XMLHTTPRequest.java but no luck..

Can anyone please help me pointing the equivalent class of
HTTPRequestImpl in gwt 2.3 where request and response pass thru so
that i can try modifying the code to make it working ?

Thanks DK

-- 
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: image - thumbnail widget?

2011-05-10 Thread dk
Thanks Thad,

Since posting my original note I have fond that jQuery has jCrop and
there are a few others

I am not a java expert but I'll play around a bit more

Thanks again

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



image - thumbnail widget?

2011-05-09 Thread dk
Hi,

I am looking for ideas on how to approach the following:

I have a form and part of that form is a FileUpload widget for an
image.  After uploading I need to do a few other things like create a
thumbnail from the original.  The original might be of any size but
the thumbnail will result in a 50x50 pixel image.

I am doing this now based on the assumption that the most interesting
part of the image is the square starting at the upper left-hand corner
of the original image and who's sides are the smaller of the
original's height or width.  This is a poor assumption for all images.

What I would like to be able to do is upload the original image,
create a smaller version of the original that my form / the image
widget could then display.  Part of the display would have a square
view port that could be moved around the small version of the
original image.  Once the view port is dropped it would define a
crop region that would then become the thumbnail.

Does such a widget already exist?  If not can you suggest how [or if]
GWT could be used to create such a thing?  I can display the image, I
am not at all sure how to enable the view-port dragging.

-- 
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: RequestFactory - Send error to client

2010-11-16 Thread DK
I've encountered the same problem. Intuition says that throwing an
error should trigger the onFailure() method, not the onSuccess()
method with a SEVERE logging the exception. Is this a known bug?

On Nov 6, 5:03 am, Henrique F M fm.henri...@gmail.com wrote:
 Hi there,

 I didn't find the solution to this anywhere, so I'm creating this new
 discussion.

 I want to be able to send errors from my RequestFactory to the client.
 Let me give an example: let's say my app is a simple Person CRUD. My
 Person class has a String name attribute and I don't want to have more
 than two Persons with the same name. So i was thinking something like
 this:

 -- RequestFactory Server Implementation 
 public static Person createNewPerson(String name){
         
         if( isThereAnotherPersonWithThisName(name) ){

                 //do something HERE

         }else{
                 pm.makePersistent(person);
         }
         ...

 }

 -- Client ---
 ().fire(
         new ReceiverPerson() {
                 @Override
                 public void onSuccess(Person person) {
                         Window.alert(OK!);
                         //do stuff
                 }
                 @Override
                 public void onFailure(ServerFailure error) {
                         Window.alert(Fail!);
                         Window.alert(error.getMessage());
                         //do stuff
                 }
         });

 
 I don't know what I have to do on HERE to make my Receiver go to
 onFailure. I've tried to throw Exceptions, RequestException, but it
 only make my server log the error and the response never arrives to
 the client.
 Am I missing something here? What would you suggest?

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



Calling JSNI function or Java function to handle onClick event

2010-06-02 Thread DK
I have an anchor element with an onClick=showAlert();

in my java file, I have a JSNI function

public static native void showAlert() /*-{
alert('Hello');
}-*/;

I never see this alert. In fact, when I look at the browser console, I
see that showAlert could not be found. What am I missing here ?

-- 
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: New session created on server side for every RPC request.

2010-05-25 Thread DK
Thanks for your reply Michael. I could buy into that argument if I had
multiple resin servers on the server side. We only have one. It should
not cause multiple sessions to be created. Also ... I do see the
following code in the resin.conf file for session management :

!--
Renamed from JESSESSIONID to avoid issues with Dynamo.
--
session-cookieRJESSESSIONID/session-cookie

Could this be  the issue ?

--DK.

On May 24, 5:05 pm, Michael W mwang_2...@yahoo.com wrote:
 Cookie session is set when the page is finished rendering/parsing.

 In your case, the second RPC is executed before you get full page, so
 session cookie is not set. Your load balancer will route your request
 to another resin server.

 It works locally because you may have only one instance in your
 local.

 On May 24, 12:15 pm, Thomas Broyer t.bro...@gmail.com wrote:

  On 24 mai, 17:21, DK dmanchikalap...@gmail.com wrote:

   Hi Manoj... appreciate your response. I have an RPC request that
   fetches the list from databasebefore I send back a response, I get
   the current session and add my list as
   getThreadLocal().getSession().addAttribute(attributeName,
   activityList);  inside the onSuccess() method, I am making another
   RPC call that does some more processing on the server side,...I am
   relying on the session attribute previously set. However, I am getting
   a new session when I try to get the session attribute using --
   getThreadLocal().getSession().getAttribute(attributeName) I did
   notice that it does not happen locally when I deploy it on a resin
   server  I feel that some session config on the server could be the
   reason for not counting the jsessionid that comes back with RPC
   payload.

  Try making your second call from outside the onSuccess (just use a
  DeferredCommand or the Scheduler), it might be that the browser has
  yet put the cookies sent by the server in its cookie store so it
  doesn't send them back with your second RPC (that wouldn't explain why
  it works with your local resin server though).

  --
  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 
  athttp://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 
 athttp://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: New session created on server side for every RPC request.

2010-05-24 Thread DK
Hi Manoj... appreciate your response. I have an RPC request that
fetches the list from databasebefore I send back a response, I get
the current session and add my list as
getThreadLocal().getSession().addAttribute(attributeName,
activityList);  inside the onSuccess() method, I am making another
RPC call that does some more processing on the server side,...I am
relying on the session attribute previously set. However, I am getting
a new session when I try to get the session attribute using --
getThreadLocal().getSession().getAttribute(attributeName) I did
notice that it does not happen locally when I deploy it on a resin
server  I feel that some session config on the server could be the
reason for not counting the jsessionid that comes back with RPC
payload.

On May 23, 1:44 pm, Manoj vkma...@gmail.com wrote:
 I haven't faced an issue on this regard. How do you set the bean in
 the session?

 On May 22, 10:20 am, DK dmanchikalap...@gmail.com wrote:

  I have a session attribute thats set in the session when a user logs
  in (ex profile bean). once logged in, I have an RPC call to a remote
  service that tries to pull information from this session bean and do
  additional work. I noticed that a new session id was being generated
  when I make the RPC callwhich means the session attribute I need
  is no longer in the current session. How do I read session specific
  information using RPC calls ?

  --
  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 
  athttp://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 
 athttp://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.



Open a new Window and inject HTML into it using GWT Window class

2010-05-24 Thread DK
I am constructing a piece of HTML code on the fly. I have am empty
html page , and I need to inject this html code within the body
element of the empty html page. Can someone point me in the right
direction ? Right now, I am using the Window.open(test.html, test
html title, some more parameters here); to open the window, but
unable to inject any html code into the body element.

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



New session created on server side for every RPC request.

2010-05-22 Thread DK
I have a session attribute thats set in the session when a user logs
in (ex profile bean). once logged in, I have an RPC call to a remote
service that tries to pull information from this session bean and do
additional work. I noticed that a new session id was being generated
when I make the RPC callwhich means the session attribute I need
is no longer in the current session. How do I read session specific
information using RPC calls ?

-- 
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: Issue Internationalizing ClientBundles and message bundles

2010-05-07 Thread DK
Thanks for your reply Michael. Message bundles are working just fine
(If I edit the Url to have locale=x_Y). It seems to be picking up
appropriate message bundles on the fly. The issue is when I change my
browser locale and try to hit the page. There is no change in the
messages. A much serious issue is that ClientBundles (images) should
be showing up specific to locales, but are not (even if I edit the
request url) -- Whats confuses me is that it works in hosted mode but
not in the production. Any thoughts ?

On May 6, 8:52 pm, Michael W mwang_2...@yahoo.com wrote:
 Try to change test_file.properties to test_file_en.properites or
 test_file_en_us.properties

 Also, in you html, you need to following meta
 meta name=gwt:property content=locale=en/meta

 to accept dynamic value
 meta name=gwt:property content=locale=${languageId}_$
 {countryId}/meta

 Where languageId and countryId can be retrieved from server side based
 on the http header and save to request scope.

 Make sure ${countryId} matches the case (uppercase or lower case) you
 defined for resource bundle.

 On May 6, 7:30 pm, DK dmanchikalap...@gmail.com wrote:





  I have a bunch of images and a ClientBundle interface to access these
  images (with images named for default- which is english and
  french ..example test_image.jpg and test_image_fr.jpg) . I also have
  message properties files named accordingly (test_file.properties and
  test_file_fr.properties) with its ConstantsWithLookup interface to
  access messages.

   --  In hosted mode, when I change my browser locale and/or system
  regional settings and then access my application, nothing seems to
  happen in terms of showing locale specific info. When I manually
  append locale=x_Y then I see both messages and images showing
  locale specific info. However, when I deploy my war into resin app
  server, I see only locale specific messages but not images. If I
  remove the locale=x_Y from the url, nothing shows up in both hosted/
  dev mode and in my production server.

  my gwt.xml file looks like this :

        inherits name=com.google.gwt.resources.Resources /
        inherits name=com.google.gwt.i18n.I18N/
              extend-property name=locale values=en/
              extend-property name=locale values=fr/

  and my main HTML file has a meta entry:

      meta name=gwt:property content=locale=en/meta

  What am I doing wrong here ? Can anyone point me in the right
  direction ?

  --
  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 
  athttp://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 
 athttp://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.



DeferredCommand does not work in IE

2010-04-19 Thread DK
I am trying to resize  the height of a tab-panel based on the content
populated onto a grid. I need to defer that work until data is loaded
into the grid. Currently, I am doing the following:

  grid.addListener(Events.Attach, new
ListenerGridEventBeanModel() {
  public void handleEvent(GridEventBeanModel be) {
  summaryPageLoader.load(0, 30);
  resizeSummaryGrid();
  }
});

 and resizeSummaryGrid() is :

DeferredCommand.addCommand(new Command(){
@Override
public void execute() {
// do something here to
resize the panel
   }
 });

I am not able to resize my panel. However, If I add an alert statement
just before calling the resize method, it works just fine. What am I
doing wrong ?

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



Triggering a common event before any event

2010-04-06 Thread DK
I have a left-nav which I am hiding/showing based on the user's logged
in status. All my events are history managed. If a user bookmarked a
url and is coming to a url directly, I need to intercept the request
and send him to the login page. Once he is authenticated, I need to
send him to the requested url. Currently, the default behavior is when
an event (say... userLoggedin) is triggered a presenter from the main
module (to un-hide the left nav) and a presenter from a submodule (to
display the dashboard view) handle this event. (for example. code
event type=userLoggedin handlers=mainPresenter
modulesToLoad=someSubModule eventObjectClass=someObject/ /
code ) However, if the requested url is for a different sub-module,
how would I still deal with the left nav display before loading the
needed sub-module ?

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



working with a freelancer designer on a gwt project

2010-03-24 Thread dk
Hello everyone,

I have been developing a gwt+grails application but I am not happy
with the default widget styles and the overall site design. I want to
hire a designer but he doesn't have a clue about java+eclipse+gwt
+grails view

are there anyone experienced with a similar situation? Any comment and
suggestion would be appreciated.

thank you
dogan

ps. Unfortunately, I currently work with GWT 1.7 and Grails 1.1 so GWT
2.0 features can not help me.

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



TextBox.setFocus(true) does not work in any browser

2010-03-23 Thread DK
I have a login page ... I want to keep the username TextBox focused on
page load ... I am trying to call the setFocus(true) method on my
TextBox instance. I cannot see the focus on the textbox with the
cursor in it. Has anyone faced similar issue ?

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



onFailure Throwable does not give any information

2010-03-07 Thread DK
Hi,
   We have a application on 1.4.6 which works fine on a dev servers.
But the GWT-RPC call to the server fails in the Qa servers, We can see
the implemented method running correctly. The Throwable onFailure does
not give any information.

Is there any way to debug this? Has any one seen this before.

-- 
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 + FormPanel + FileUpload + HTTPS

2010-02-24 Thread dk
In our case we never would take advantage of RequestBuilder's username
and password fields.  All of our apps that require authentication have
the auth handled by the web server.  Each app lives under a directory
with Basic Auth enabled on the directory.  We also redirect all non-
SSL traffice to the auth'd dirs to https versions of the URL.  The
server side scripts can then get the remote_user info from the query
string.  We would not use the RequestBuilder username and password
because we figure those strings must be embedded in the resulting
javascript. and that might prove to be to tempting a target.

We have a couple of apps that live under SSL redirected dirs as above
but without authentication set.  These apps ask for usernames and
passwords and pass that info along with the form data over the SSL
connection to the server.



On Jan 20, 7:48 am, chillyspoon chillysp...@gmail.com wrote:
 Hi everyone,

 We use GWT extensively for a highly interactive user interface that
 administers various software and hardware systems via a combination of
 APIs.

 Right now I need to introduce functionality for file upload that is
 posting (HTTP POST) to an SSL URL with preemptive BASIC AUTH.  We are
 using GWT 1.7 and cannot upgrade to 2.0 at this point by the way.

 I have noticed that RequestBuilder provides the means to set a user
 and password but do not know how to use this in conjunction with
 FormPanel and theFileUploadwidget. Although I suspect that a
 successful no op RequestBuilder request will be enough to provide
 authentication for following requests in the same session.

 My real problem is making any request as I don't appear to be able to
 POST to a SSL protected URL at all.

 e.g.

         RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,
 https://mydomain/other/;);
         rb.setUser(myuser);
         rb.setPassword(mypass);
         rb.setHeader(http.authentication.preemptive, true);

 The URL definitely exists and is listening - I can post it using other
 clients.

 Access to restricted URI denied

 I suspect I'm not even getting out of the browser but thought that it
 should work as long as I'm on the same domain - would a different port
 (which I do have) cause the same security gate to close?

 Cheers,

 Chilly.

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



navigating between uibinder templates

2010-02-03 Thread dk

Hi,

I've got a large domain object,  150 fields (it's an insurance
application) and was wondering if I could split the uibinder templates
across this object. So, say for instance sake,  page1.ui.xml,
page2.ui.xml, etc.

I've managed to get two templates onto the same page,
navigation.ui.xml and page1.ui.xml, how do I swap page1 out for page2?


Is this conceptually possible? I don't have deep experience with gwt
so the answer may be something basic I haven't understood yet.

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



@UiHandler SuggestBox

2010-01-30 Thread dk

Hi,

I'm trying to attach a selectionHandler on a SuggestBox using the
UIHandler annotation; as per;

@UiHandler(vehicleClass)
void handleSelection(SelectionEvent e) {
  Window.alert(selection Event!);
}

The console tells me that

03:35:01.456 [ERROR] Parameter 'SelectionEvent' is not an event
(subclass of GwtEvent).

But using the javadocs, tells me that it is..

What am I missing here?

regards,
dk-

-- 
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: probably silly FormPanel vs FireBug question

2010-01-29 Thread dk
If you are doing a GET request then the data is in the body of the
request and does not show up in firebug.  If you do a POST request
then the query string data is shown through FB in its own POST tab in
the requst display.

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



textbox + event questions

2009-11-17 Thread dk
Hi,

Naive, little 'ol me is back.  This time with TextBox and event
questions.

I have a textbox and a button.  When the page first loads the textbox
is empty and the button is disabled.  If one or more non-white-space
characters are typed in the box then then I want the button to become
enabled.  I am sort-of doing this now -- except that it takes two
characters to trigger the events.

searchTerm.addChangeHandler(new ChangeHandler() {
@Override
public void onChange(ChangeEvent event) {
if (searchTerm.getValue().trim().equals()) {
searchButton.setEnabled(false);
} else {
searchButton.setEnabled(true);
}
}
});
searchTerm.addKeyPressHandler(new KeyPressHandler() {
@Override
public void onKeyPress(KeyPressEvent event) {
if (searchTerm.getValue().trim().equals()) {
searchButton.setEnabled(false);
} else {
searchButton.setEnabled(true);
if (event.getCharCode() == KeyCodes.KEY_ENTER) {
getInfo();
}
}
}
});


I started with only the ChangeHandler but I do not seem to understand
what defines chenge.  I know that my audience will want to use
enter as a submit so I added the KeyPressHandler.

So with the above I see the following: With a blank TextBox I have a
disabled searchButton.  If I type one non-whitespace character in the
textbox nothing happens -- the searchButton does not become enabled.
If I type a second non-whitespace character then the button does
become enabled.

Maybe I should use a KeyDown handler instead of a ChangeHandler?

--

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




Re: textbox + event questions

2009-11-17 Thread dk
Yep, KeyUp is the way to go.  I am now using a KeyUp handler to do the
button enable/disable and a KeyPress to capture the Enter key.

--

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




Re: RequestBuilder returning empty argument result?

2009-11-10 Thread dk

Hi RPB,

Thanks for the links.  There is a lot of good info in there.  I don't
think my issue is with SOP though.  There is something wacky about
what I am doing this time and I am not seeing it.

So, here is a more complete description of my environment: my
development platform is a recent Ubuntu distro with eclipse 3.4.2
and GWT 1.7.1.  The target platform is running RHEL 5.4 and Apache-2.

I have changed/rewritten the code several times today and nothing
is working.  The section of the GWT code that should take in the JSON
data now looks like:

public void getInfo() {
RequestBuilder req;
LOG(getInfo:a);

req = new RequestBuilder(RequestBuilder.POST,
 URL.encode(baseURL + archive.cgi));
LOG(getInfo:a1);
req.setHeader(Content-Type,
  application/x-www-form-urlencoded);
LOG(getInfo:a3);
try {
req.sendRequest(null, new RequestCallback() {
public void onError(Request request, Throwable e) {
Window.alert(getInfo failed:  + e.toString());
}

public void onResponseReceived(Request request,
   Response response) {
JSONObject Info;
if (response.getStatusCode() == 200) {
try {
LOG(getInfo:onResponseReceived:a: +
response.getText());
Info = JSONParser.parse(response.getText()
   ).isObject
();
}
catch (NullPointerException e) {
LOG(getInfo:onResponseReceived:e1:+
e.getMessage());
throw new RuntimeException(
 Failed to send JSON
request);
}
catch(IllegalArgumentException e) {
LOG(getInfo:onResponseReceived:e2:+
e.getMessage());
throw new RuntimeException(
 Failed to send JSON
request);
}
catch(Exception e) {
LOG(getInfo:onResponseReceived:e3:+
e.getMessage());
throw new RuntimeException(
 Failed to send JSON
request);
}
LOG(getInfo:onResponseReceived:b);

if (Info == null) {
throw new RuntimeException(
  Get info returned
null);
}

LOG(getInfo:onResponseReceived:c);
refreshList(Info);
LOG(getInfo:onResponseReceived:d);
} else {
LOG(getInfo:onResponseReceived:f:+
response.getStatusText());
}
}
});
} catch (RequestException e) {
// TODO Auto-generated catch block
LOG(getInfo:b+e.getMessage());
}
LOG(getInfo:a4);
}


A valid URL to point this to is:
http://apache-dev.itg.beckman.illinois.edu/communications/forum2/archive.cgi

the LOG() call are going to a JSNI method that calls console.log()
for FireBug.

At this instant the sendRequest() method is not being fired at all.

I have used sendRequest with null, empty () and dummy data values
(dummy=dummy).  I have tried to use the send() method instead of
sendRequest() and have tried the setRequestData() method with send().
I have added and removed various header arguments to set the encoding
and the Accept pragmas in this code and in my CGI script.  I have
had both expect content-types of:

text/plain
text/javascript
application/javascript
application/json

I have set the request type above to both GET and POST.
I have set a request header to:

req.setHeader(Content-Type, application/x-www-form-
urlencoded);

I have deleted the resulting source dir in the war directory.

many hours ago FireBug would show a connection in the console with
a return status of 200 but an error icon as well.  You could see
request and response headers but no JSON payload.  You could open
the request in another browser and see the JSON string.  You could
point your browser to the archive.cgi URL and see the JSON string
but RequestBuilder does not seem to be actually sucking the data in.

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

RequestBuilder returning empty argument result?

2009-11-09 Thread dk

Hi,

This is about GWT 1.7.1 on a RedHat EL 5.4 system.

I have been messing with GWT for a while now.  I am not an expert and
am really still a java newbie.  I have the following code snippet
in an application I am writing.  There is an existing CGI app and
I am replacing the GUI with GWT and using the existing CGI scripts
for the data operations.

I am setting up a RequestBuilder call to retrieve data from a CGI
script.  That script generates data and sends it as a JSON string back
to this routine.  The issue is that I am receiving an:

empty argument

message that is generated by the JSONParser.  The message comes
through the catch clause that holds the

LOG(getInfo:onResponseReceived:e2:

line.

I *know* the CGI script is doing its thing.  I can run it from the
command line and visit its URL and I get JSON'd data that looks OK
to my eye.  The code section looks like:


public void getInfo() {
RequestBuilder req;
LOG(getInfo:a);

req = new RequestBuilder(RequestBuilder.GET,
 URL.encode(baseURL + archive.cgi));

LOG(getInfo:b:+req.getUrl());

try {
req.sendRequest(null, new RequestCallback() {
public void onError(Request request, Throwable e) {
Window.alert(getInfo failed:  + e.toString());
}

public void onResponseReceived(Request request,
   Response response) {
JSONObject Info;
try {
LOG(getInfo:onResponseReceived:a:);
Info = JSONParser.parse(response.getText()
   ).isObject
();
}
catch (NullPointerException e) {
LOG(getInfo:onResponseReceived:e1: +
 e.getMessage());
throw new RuntimeException(
 Failed to send JSON
request);
}
catch(IllegalArgumentException e) {
LOG(getInfo:onResponseReceived:e2: +
e.getMessage());
throw new RuntimeException(
 Failed to send JSON
request);
}
catch(Exception e) {
LOG(getInfo:onResponseReceived:e3: +
e.getMessage());
throw new RuntimeException(
 Failed to send JSON
request);
}


Here is a sample JSON'd string.

{searchTerm:,pending:[h2Calendar for Fall 2009/h2
\n,h3Tuesday, November 10, 2009br/MRI Stuff/h3\nh4Speaker:
Andrew a href=\mailto:and...@north.com\;img src=\/images/email.jpg
\ alt=\(email)\//a, Radiology and Biomedical Engineering/h4
\nh4Time: 12:00PM/h4\nh4Location: Room 5602/h4\nh4Abstract:/
h4\npTranscatheter and percutaneous liver-directed approaches are
widely used for the treatment of ... procedures./p\n,h3Tuesday,
November 17, 2009br/Title Forthcoming/h3\nh4Speaker: Chas
Conway/h4\nh4Time: 12:00PM/h4\nh4Location: /h4
\nh4Abstract:/h4\npAbstract Forthcoming/p\n,h3Tuesday,
November 24, 2009\nbr/No Forum - Thanksgiving Vacation/h3
\n,h3Tuesday, December 1, 2009br/Title Forthcoming/h3
\nh4Speaker: Yi Lu, Professor/h4\nh4Time: 12:00PM/h4
\nh4Location: /h4\nh4Abstract:/h4\npAbstract Forthcoming/p
\n,h3Tuesday, December 8, 2009br/Title Forthcoming/h3
\nh4Speaker: /h4\nh4Time: 12:00PM/h4\nh4Location: /h4
\nh4Abstract:/h4\n\n,h32009-12-09br/Fall Semester Ends/h3
\n]}


This was produced from a Perl cgi script using CGI.pm and JSON::XS


FireFox/FireBug shows the request call and the headers but the result
is missing.

This code is not really different than other working code and the
CGI is not really all that different either.

I have tried using a POST method and setting

req.setHeader(Content-Type, application/x-www-form-
urlencoded);

though I am not sending any data to the script.

I have tried setting

req.sendRequest(null, new RequestCallback() {
req.sendRequest(, new RequestCallback() {
req.sendRequest(dummy=value, new RequestCallback() {

and it is still happening.

It must be something very trivial that I am not seeing.  Can you help?

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



JSONNull oddness?

2009-09-25 Thread dk

Hi,

I have probably missed something simple but JSONNull is not acting as
I expect.  At least in my current testing phase my incoming JSON data
does contain some null values.  In Perl terms my in-bound JSON
object is an array of hashes.

I can get the JSON string and parse it.  I create te JSONObject and am
trying to do some sanity checking of the contents.  It is common for
me to want to ask the question, Does the current JSONObject have the
key foo and is the value of that key NOT null?

if (data.containsKey(foo)  ! data.get(foo).isNull().toString
().equals(null)

The thing is this always fails.  I must be doing the null test
incorrectly but a fix is not immediately apparent.

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-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: JSONNull oddness?

2009-09-25 Thread dk

heh, never mind.  I was of course using the idea in the wrong way.
Everything is fine.  Have a nice day
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



one Composite widget with multiple valueChangeHandlers of different types

2009-09-18 Thread dk

Hi,

I have finally gotten a handle on using ChangeHandlers and
ValueChangeHandlers, yea! what great tools.  A number of people here
helped me get a clue. Thanks

My current issue is that i have a Composite widget that contains a
DatePicker (valueChangeHandler returns Date) and another widget I made
that has a ValueChangeHandler that returns String.

Is there a way for these to coexist in the same composite widget?  I
am given an error that says ValueChangeHandler can not be implemented
more than once with different types


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



datepicker year problem

2009-08-01 Thread dk

Hello,

I want to get birthday of users with datepicker but what I see from
the samples is that datepicker has no support for  next and previous
year buttons (which is usually  ). It has only month support (
).

Am I missing sth?

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



eclipse, gwt plugin and overnight madness

2009-07-23 Thread dk

Hi,

I have been using gwt 1.6, eclipse (Ganymede), and the gwt eclipse
plug-in under Ubuntu for awhile.  This morning I came in to find that
my GWT imports have all gone away and there are a few sun... and
javax... imports instead.

import javax.swing.event.ChangeEvent;
import javax.xml.ws.Response;

import sun.java2d.pipe.SpanShapeRenderer.Composite;

Deleting these and then doing a Source-Organise Imports just adds
them back.

Some configuration option must have been changed after some system
update but I can not find the right settings.  Where are the gwt-plug-
in settings stored?  This must be a path issue.

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



1.7 and Firebug logging

2009-07-23 Thread dk

Should the construct :

static public native void LOG(String msg) /*-{
console.log(msg);
}-*/;

work under 1.7?  This was in my 1.6.x code and works but I am not
seeing anything with 1.7.  I am going to roll back to 1.6 for the
moment
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



How do you fire Change Events?

2009-07-08 Thread dk

Hi,

I am back with more Handler questions.  This is currently the most
opaque GWT topic for me.

I am building a Composite widget that will have at least a Grid and a
Button.  The Grid will act a little like a ListBox in that one or more
rows can be selected.  I am not using a ListBox because I need
formatted Columns of row content.

The button will be enabled or disabled depending on the number of
selected rows.  If the button is enabled then there must be at least
one selected Grid row.  If the button is clicked then I want to fire a
ChangeEvent.

Ok, I have done a little homework and I have asked about
ClickListeners in the past so I have some small understanding of
ClickListeners, ChangeListeners are a different beast.

I want to add a ChangeListener but I am not seeing how to fire the
Change event.

I am registering ChangeEvents by:

public HandlerRegistration addChangeHandler(ChangeHandler handler)
{
return addDomHandler(handler, ChangeEvent.getType());
}

I pulled that straight from another Discussions post.  I know that I
could use addHandler instead of addDomHandler.  I have seen that
addDomHandler sinks the event and addHandler does not.  Should I
care if the event(s) are sunk?

When the button is clicked I want to fire a change event.  Here I lose
it.  I am looking at using:

fireEvent(GwtEventChangeEvent.getType());

but Eclipse reports a typo on the closing .  I am also looking at:

ChangeEvent.fireNativeEvent(nativeEvent, this);

but to what should I set nativeEvent?  Should I use this
fireNativeEvent method at all?

All the best,

--~--~-~--~~~---~--~~
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: Content Management System

2009-07-06 Thread dk

My 2 cents worth is that you can either modify your existing GWT app
to allow for new product/image creation/editing/deletion or you will
have to write RPC or other Request tools that can modify/query the
CMS's data store.

I have not looked under the hood of many of the CMS's out there but
the one or two I have looked at seem to have pretty complex database/
file layouts and connections.  It seems easier to conceptualize
modifying the GWT app than trying to hook into the CMS's internal
structure.

On Jul 6, 11:55 am, Tracy Greene tracyeringre...@gmail.com wrote:
 I want to build my application using GWT then after it is built use a
 CMS to allow the client to update content such as adding a new product
 or change an image then publish those changes.

 Is this possible? Or are they two separate things that can't work
 together?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Another 1.6 event handler question

2009-06-09 Thread dk

Hi,

In pre-1.6 I could implement ClickListener and then in my code...

Button foo = new Button();
foo.addClickListener(this);
...
etc

I know that in 1.6 I implement ClickHandler and then

...
foo.addClickHandler(this);
...

My question today is about creating the onClick method.  Before I
could do the following:

private void onClick(Widget sender) {
if (sender == foo) {
// do the click processing for Button foo
}
}

In 1.6 the onClick method now has the argument (ClickEvent event).
How do I go from the event to knowing which widget caused the event?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



eclipse, gwt 1.6 java.awt.Composite

2009-05-18 Thread dk

Hi

I goofed and can not figure out how to recover.  I am just trying gwt
1.6, I have not tried this with older versions.

I am creating a small test and am building a composite widget.  I
typed:

public class NavBar
   implements Composite {

StackPanel navBar = new StackPanel();
...

and Eclipse underliend Composite as it does if there is not a matching
import.  When I was presented with a list of possible imports I
accidentally clicked on java.awt.Composite.  Now Eclipse seems to have
that branded onto its brain.  I can delete the java.awt.Composite
import line and add in an import for
com.google.gwt.user.client.ui.Composite but I then get messages about:

The type Composite cannot be a superinterface of NavBar; a
superinterface must be an interface.

How do I recover from this?
--~--~-~--~~~---~--~~
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: eclipse, gwt 1.6 java.awt.Composite

2009-05-18 Thread dk

Oh joy.  Of course you do... I was looking straight at that and didn't
see it.

thanks

On May 18, 10:36 am, Isaac Truett itru...@gmail.com wrote:
 In GWT, Composite is a class rather than an interface. You would
 extend Composite, not implement it.

--~--~-~--~~~---~--~~
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: first shot at 1.6: flextable and clickhandlers

2009-05-04 Thread dk

Thank you Adam

Dean...K...
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



first shot at 1.6: flextable and clickhandlers

2009-05-01 Thread dk

Hi,

I am ttying out 1.6.4 for the first time with a simple project.  I
want a FlexTable of some size and I want to know when a table cell is
clicked.  I want to know which cell was clicked.

I am confused.  I see the addClickHandler method on FlexTables but I
am not seeing the path that leads from adding the onClick handler to
finding the row/col coordinates of the clicked table cell.

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



RPC Bean Problem when deploying

2009-01-01 Thread dk

I am trying to deploy my gwt project to tomcat but the following
problem occurs. I tried all the suggestions in the list  but still the
same exception occurs.

Why The applicaiton has no problem in hosted mode but give the
following exception when I deploy it to tomcat.

any help will be appriciated

thanks

note:I added the necessary files to web-inf/classes


Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
'com.mycompany.client.toServer.Student' was not included in the set of
types which can be serialized by this SerializationPolicy or its Class
object could not be loaded. For security purposes, this type will not
be serialized.
at
com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize
(StandardSerializationPolicy.java:83)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize
(ServerSerializationStreamWriter.java:581)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject
(AbstractSerializationStreamWriter.java:129)
at
com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize
(Collection_CustomFieldSerializerBase.java:43)
at
com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize
(ArrayList_CustomFieldSerializer.java:36)
... 32 more
--~--~-~--~~~---~--~~
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 with GWT RPC call with List of DTO objects

2008-12-14 Thread HT(dk)

Read:
http://code.google.com/intl/da/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideSerializableTypes

And in general read:
http://code.google.com/intl/da/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideRemoteProcedureCalls


On Dec 13, 9:52 pm, Cris mmmkris...@gmail.com wrote:
 Hi
 My requirement is as below.
 1. I have a DTO  as below with setters and getters for the same
  package com.gwt.sample.client.data

  public class TempDTO implements IsSerializable
  {
    private String name;
    private String condition;
  }

 2. My RPC stuff is as below
    package com.gwt.sample.client
    public interface MyService extends RemoteService
    {
      List getNames();
    }

   package com.gwt.sample.client
   public interface MyServiceAsync
   {
     void getNames(AsyncCallback async);
   }

 3. Servlet is
   public class MyServlet extends RemoteServiceServlet implements
 MyService
   {
     public List getNames()
     {
       List rs = new ArrayList();
       TempDTO dto1 = new TempDTO();
       dto1.setName(A1);
       dto1.setCondition(Set);
       rs.add(dto1);
       return rs;
     }
   }

 When made a request to this MyServlet I am getting strange error in
 browser Could not complete the operation due to error c00ce514
 number:
 This error message is (throwable.getMessage()) is displaying in
 onFailure() method.

 The same code is working fine if I pass List of strings. The problem
 is only with List of DTOs.

 Please, can anyone help me.

 Thansk,
 Cris

--~--~-~--~~~---~--~~
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: Text-based serialisation

2008-11-03 Thread dk


hmm.. Not sure that I can really do a load test with junit.. my
scenario is a bit more complicated than that.. Also, not sure I wish
to write too much code to enable load testing.. as I'm then kindof
load testing something a bit different than what the production code
really is.

Also, I'm not interested in load testing the the rpc deserialisation,
more about performance testing our gwt app, but I need some way of
generating a known load on the back-end so that I can measure the
response rate of the client (using another tool).

The more I think about this, the more I think I need another
entrypoint to the application, that takes simpler text payloads.. I
also need to be able to record this traffic..

I've created an issue..
http://code.google.com/p/google-web-toolkit/issues/detail?id=3075sort=-id

Inside the enterprise, the ability to have a position on performance
is quite important.


On Nov 3, 10:08 am, Isaac Truett [EMAIL PROTECTED] wrote:
 Unless you're actually trying to load test RPC deserialization, just
 separate your business logic from the RPC servlet implementation and
 load test the business logic with, for example, JUnit.

 On Sun, Nov 2, 2008 at 5:59 PM, Ian Petersen [EMAIL PROTECTED] wrote:

  On Sun, Nov 2, 2008 at 5:54 PM, dk [EMAIL PROTECTED] wrote:
  I'm interested in generating a load on the serverside. Our performance
  testing tool, Rational Performance Tester, needs to manipulate the
  serialised data that is sent between the client and the server. It
  doesn't really like the gwt-rpc format.

  Is there a way to plug-in another serialisation format? easily..
  Without having to change any code.. I've looked at various threads on
  json, but they all seem like we have to change code on the server-
  side..

  Is this possible? Am I barking up the wrong tree?

  This seems like a recurring request.  Maybe you should file an issue
  requesting that GWT support load-testing of RPC services, and then try
  to encourage others on the list to star the issue.

  Ian
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Text-based serialisation

2008-11-02 Thread dk


People,

I'm interested in generating a load on the serverside. Our performance
testing tool, Rational Performance Tester, needs to manipulate the
serialised data that is sent between the client and the server. It
doesn't really like the gwt-rpc format.

Is there a way to plug-in another serialisation format? easily..
Without having to change any code.. I've looked at various threads on
json, but they all seem like we have to change code on the server-
side..

Is this possible? Am I barking up the wrong tree?

regards,
dk-

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---