Announcement

Collapse
No announcement yet.
This is a sticky topic.
X
X
  • Filter
  • Time
Clear All
new posts

    #61
    Spikelee can you send me a ping mail on csergiu77@yah__.com
    I would like to exchage some info related to smartgwt ee.
    Thx

    Comment


      #62
      Originally posted by Isomorphic
      A new release of SmartGWT EE is available for download.
      Hi Isomorphic,

      I was wondering if you would consider added version numbers to the isomorphic_*.jar files to make it easier to upgrade from version to version? With version numbers you can just glance and see if you need to replace the jar.

      Also, I'm not seeing the smartgwt-skins.jar or the isomorphic_js_parser.jar. Are they not needed or replaced/included?

      Thanks,
      Eric

      Comment


        #63
        Hi Eric,
        You'll need to update your isomorphic_*.jar files pretty much with every new release of SmartGWT EE unless no SmartGWT Server code change was made between releases which is quite unlikely. We'll add a version to the jar files in a future release.

        You don't need isomorphic_js_parser.jar. We'll update the Eclipse project files in the next release.

        smartgwt-skins.jar is required only if you're using themes other than Enterprise. We'll add this file in our next release. Out of curiosity, which theme are you currently using?

        Comment


          #64
          Originally posted by smartgwt.dev
          <clip>

          smartgwt-skins.jar is required only if you're using themes other than Enterprise. We'll add this file in our next release. Out of curiosity, which theme are you currently using?
          I have this in my module file - not sure it's correct but I like what I see.

          <inherits name='com.smartclient.theme.enterprise.EnterpriseResources' />

          Thanks for the quick reply,
          Eric

          Comment


            #65
            Okay, that's the Enterprise theme.

            Comment


              #66
              Visual builder

              Originally posted by Isomorphic
              @ceravolo the problem is that it's simpler than you think :) For a basic connection to Hibernate no Java is generated or needs to be written.

              Go into the Visual Builder and pick "New", then "Existing SQL Table (via Hibernate)". You will see a list of beans you have registered with Hibernate. Pick one, pick Next, pick "Save DataSource". Your new DataSource is the first in the list and can be immediately dragged onto components within Visual Builder and used for search, update, add, remove.

              To load it in your application use the technique shown in the samples of creating a .jsp with a loadDS tag as the only contents, and using <SCRIPT src=> to load that .jsp. Having done so, you get the live DataSource instance via DataSource.get("dataSourceId").

              You don't need to write any Java until you want to add business logic - see the DMI settings on SupplyItemSpringDMI.ds.xml in this sample for an example of that.

              Note we're also eliminating the need to create a .jsp with a loadDS tag in the next revision.
              Where can i find the visual builder? I'm using myeclipse

              Comment


                #67
                Visual Builder is included in the Showcase. The Showcase is included in the SmartGwt EE package as a deployable .war.

                Comment


                  #68
                  You can alternatively inherit

                  Code:
                  <inherits name="com.smartgwtee.tools.Tools"/>
                  and programatically call

                  Code:
                  com.smartgwtee.tools.client.SCEE.openVisualBuilder();
                  We'll look into adding a simple convenience project with an ant target that launches the Visual Builder.

                  Comment


                    #69
                    A new SmartGWT Pro / Enterprise package has been released with radically expanded documentation, including documentation of all elements and attributes that are legal in .ds.xml files, and overviews of how to use them. See the first post in the thread for pointers into the some of the most interesting new documentation, as well as the download link for the new version.

                    If the new documentation still leaves you with questions, this is a good place to post them.

                    Comment


                      #70
                      Edit profile dependent data

                      Hello,

                      I was wondering how profile dependent data editing is best done with smartgwtee. For example, I have an application when clients can log in, and they would have the possibility to edit their own contact data. How would I make sure they only edit their own data? Is there some way to bind session dependent data to the database query? Or would this require a javabean datasource?

                      Best regards, Bo

                      Comment


                        #71
                        @valbosoft See the User-Specific Data sample.

                        Comment


                          #72
                          starter question

                          Ok, great example.

                          I'm trying to get my grips on smartgwt ee. I thought an easy step by step approach would be the best, so I want to change the SQL CRUD example in the showcase to connect to my own PostgreSQL database. However, it doesn't seem to obtain the correct datasource (I'm sure it must be a stupid little detail).
                          What I did was:
                          1. I created a datasource with the datasource wizard.
                          2. I placed it in the /ds directory
                          3. I changed server.properties, uncommented the postgresql definitions, changed them to the correct database settings; just to be sure I also put this databse as the default.
                          4. In SQLCrudSample.java, I changed the datasource definition to: DataSource dataSource = DataSource.get("agenda");

                          When I access the example in the browser, I get the following error:
                          Code:
                          Uncaught JavaScript exception [java.lang.NullPointerException: null
                          	at com.smartgwt.client.widgets.grid.ListGrid.setDataSource(ListGrid.java:7943)
                          	at com.smartgwt.sample.showcase.client.dataintegration.java.crud.SqlCrudSample.getViewPanel(SqlCrudSample.java:89)
                          	at com.smartgwt.sample.showcase.client.ShowcasePanel.<init>(ShowcasePanel.java:82)
                          So somehow the datasource isn't recognized. Any clues?

                          Regards, Bo

                          Comment


                            #73
                            The datasource has not been loaded. Did you load the DataSource definition?

                            Load the DataSource definition client-side by including the following line in the body of your GWT host html file.

                            <script src='sc/DataSourceLoader?dataSource=employees,supplyItem'></script>

                            Specify a comma separated list of DataSource ID's for the dataSource parameter. The above line would load the employees and supplyItem datasources from the server.
                            See the Getting Started doc.

                            Comment


                              #74
                              Ok, that worked! Thanks.

                              Comment


                                #75
                                Ok, the getting started page is a good tip!

                                There I see that there's a skeleton project. Is this included in the smartgwtee-1.2.1 file? I can't seem to find it.. Any other place?

                                Comment

                                Working...
                                X