Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    smart gwt

    Hi, all
    I am new to smart gwt(i have medium experience with gwt and gwt rpc).
    Today i read many things about smart gwt smartclient and so on.
    For our new project we think to use smart gwt.
    I am little confused about the client-server communication.
    As i understand smart client is framework that could be used in different language platforms (eg .net php java so on). And smart gwt wraps cmartclient and gives chance to the java developers to develop ajax content in swing style.
    So as i understand for now the client-server communication could happen :
    1) If we override transformResponse method and use standard gwt RPC.
    2) If we buy smartclient server(that is optimized for java platform) and use smart gwt rpc( i don't know how could i implement that)
    3) If we use json, xml approach (or i am wrong?)
    4) IF we use REST datasource

    Am i wrong and am i missing something?
    It seems that 2) if we have money to spend is the best for java project that use ejb.
    But what to do if i don't have money to buy that license.
    One more thing could you give me some links with client-server examples.
    Best regards and i am glad that am i am joining this community gwt is great!

    #2
    1) Correct. See the sticky thread in this forum for a good example.

    2) if you have the SmartClient Server aka SmartGWT EE, you wouldn't bother with GWT-RPC, it would just be extra work. But this is not yet available.

    3 & 4) are generally the same. RestDataSource works with either XML or JSON and provides a pre-built protocol that you just need to have your server match.

    Comment


      #3
      Hello,

      I am trying to use the SmartClient 7.0beta Enterprise backend with the SmartGWT front end. I had it so it worked but now it doesn't. We are a current Enterprise 6.5.1 user.

      === 2009-03-17 16:30:08,588 [-app] INFO ISCInit - Isomorphic SmartClient Framework (7.0beta/EVAL Deployment 2008-11-12) - Initialization Complete

      I am also user smartgwt-1.0b2 and gwt-windows-1.5.3.

      I was trying to use some code like this.

      Code:
      import com.isomorphic.rpc.RPCManager;
      
      		// SmartGWT server
      		RPCManager rpc = null;
      		try {
      			rpc = new RPCManager(request, response);
      		} catch (Exception e) {
      			// TODO Auto-generated catch block
      			e.printStackTrace();
      		}
      		
      		// SC return
      		if (rpc != null) {
      			Object data = rpc.getData();
      			System.out.println("client sent: " + data.toString());
      			try {
      				rpc.send("here's a response");
      			} catch (Exception e) {
      				// TODO Auto-generated catch block
      				e.printStackTrace();
      			}
      		}
      I am getting the following on the Creation of the RPCManager
      09/03/17 17:33:56.97 oca-web: Servlet error
      java.lang.ExceptionInInitializerError

      I also noticed in the previous version of SmartClient, the constructor also took the ServletOutputStream as the third argument.

      Could the problem be that the ISCInit starts in one app and then the then the RPCManager gets created in another web container but the Jar itself is shared from the J2EE application?

      Any guidance on FCS timelines and will GWT be version 1.6 in the final product?

      Any help appreciated,
      Eric

      Comment


        #4
        Is there another way?

        Are there any other choices? I mean with java? And if i understand you smartGWT EE == smartGWT + SmartClient Server which is not implemented yet? As a java developer i can't use it? So the only choices for me are either REST with JSON(or xml), or GWT_RPC(overriding transformResponse to use it with GWT rpc)? That is not very good i think. This transformResponse override is done in order to keep compatibility with old system that uses gwt and it is abit strange for me to use json or xml to transfer data as i am a java developer.


        Originally posted by Isomorphic
        1) Correct. See the sticky thread in this forum for a good example.

        2) if you have the SmartClient Server aka SmartGWT EE, you wouldn't bother with GWT-RPC, it would just be extra work. But this is not yet available.

        3 & 4) are generally the same. RestDataSource works with either XML or JSON and provides a pre-built protocol that you just need to have your server match.

        Comment


          #5
          I am using smartgwt 2.4 and gwt 1.7.0 with eclipse and maven , the problem is that when iam using this version of smartGWT (2.4) i have a bad screen after execution of my project ( my screen is not clair in internet explorer ,the same thing with firefox and other). but when iam using other version of smartgwt especially 2.1 the screen is good . and for me it is necessary to use smartgwt 2.4 because it contains many composantes and api which i want to use in my project . there is some thing to do(plugin .. .?)? .
          Last edited by azta; 16 Apr 2011, 05:04.

          Comment

          Working...
          X