Announcement

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

    #16
    imports

    When does one include form isomorphic and when does one include from smart gwt?

    Evan

    Comment


      #17
      Can we ask that you please read what we're saying a bit more closely:

      Server-side classes are com.isomorphic.*, client-side classes are com.smartgwt.*. The APIs we referred to (addToTemplateContext() for example) are server-side APIs.
      Just for completeness, one uses server-side classes when writing server-side code, and one uses client-side classes when writing client-side code.

      Comment


        #18
        guide

        I went to page 42 of the guide and started reading.

        From the text below I take it to mean that the server side is "automatically parsed by a servelt" so I am not doing anything.

        While from 1, is what I am doing with my new DSRequest and my fetch on a listgrid. That sounds fine.
        What is the correct include path for both the list grid and the DSRequest for step 1 of this server framework?

        Thanks,
        Evan

        1. DSRequest serialization: requests from DataSources are automatically serialized and delivered to the server.
        2. DSRequest parsing: requests are automatically parsed by a servlet included with the Smart GWT server framework, and become com.isomorphic.datasource.DSRequest Java Objects.
        3. Authentication, validation, and role-based security checks are performed based on declarations in your DataSource descriptor (.ds.xml file). For example, requiresRole="manager".

        Comment


          #19
          Looks like most or all of this material must be new to you. Please read at a minimum the entire Server Framework chapter; as far as we can tell, you've never added any server-side Java code, and this chapter explains how that works in depth.

          Comment


            #20
            ok

            Hello,

            Ok.

            Let me review your posts and see if you answer the following question. Which I have been asking.

            How do I pass an array of strings from the client to my .ds.xml
            Such that I can use this array of strings in my #foreach.

            Thanks,
            Evan

            Comment


              #21
              Yes, we have answered that question (actually multiple approaches have been provided). First, review the QuickStart Guide, then, re-read the posts. Once you've understood some basics about the product, the posts should be very easily understood as well.

              Comment


                #22
                where I got confused

                I got confused by your post as follows. I thought you were asking me to do this on the client code. And clearly you were asking me to do it on the server. Though I did not realize that.


                Second, it may be that $advancedCriteria has an issue where it can't return Arrays - we'll check on this - but if so, you can get around this by retrieving the Array value in Java (use dsRequest.getCriterialValue("arrEnt")) and providing it to the Velocity context separately (use dsRequest.addToTemplateContext()).

                However,
                I would like to do this from the client. As I have not written any server code to do a DSRequest. Is there no way for me to pass an array of strings from the client to my .ds.xml without writing server code?

                Evan

                Comment


                  #23
                  perhaps

                  If array of strings can't be passed in advanced criteria. Can I pass a map or some other type of collection? I noticed foreach can iterate over a map, so perhaps this will work?

                  Evan

                  Comment


                    #24
                    would it have worked

                    Hello,

                    So should $advancedCriteria be able to return my array of strings? And it is broken? If it was working did I have my code right so far?

                    Evan

                    Comment


                      #25
                      This is getting absurd, but..

                      You *can* pass an array of strings in AdvancedCriteria (see post #9 - isOneOf operator takes Arrays. Also post #11: explicitly told you again that you can pass Arrays in criteria).

                      You are in fact *already* successfully passing an Array to the server in AdvancedCriteria (your log shows this). The Array is being communicated intact, it's just not a valid value for the "equals" operator, but it would be for other operators.

                      Now, you need to add server code to process that Array (post #9 again). No, there is no way to write code that does this from the client.

                      Comment


                        #26
                        isOneOf

                        Oh I did not know this was an operator. Will try that.

                        Thanks,
                        Evan

                        Comment


                          #27
                          OperatorId.

                          Hello,

                          Nothing is easy I guess

                          isOneOf is not defined on OperatorId.

                          So how would I use this operator in the client code when I construct my criterion.

                          Evan

                          Comment


                            #28
                            In_set

                            Hello,

                            I will use the IN_SET operator as it takes an array.

                            Thanks!
                            Evan

                            Comment


                              #29
                              operatorid

                              Hello,

                              Great I am now getting some sql and can move forward.

                              Looks like using an operator other than equal that takes an array worked great.

                              Thank you for sticking with me. Postings/EMail are a hard way to debug and this is going to be amazingly useful to us.

                              Thanks,
                              Evan

                              Comment

                              Working...
                              X