1. #21
    Ext User pedrosousa's Avatar
    Join Date
    Oct 2008
    Location
    Portugal [Aveiro]
    Posts
    17
    Vote Rating
    0
    pedrosousa is on a distinguished road

      0  

    Default


    Quote Originally Posted by gslender View Post
    ok, so I tried you sample and it works fine ?

    I'm using JDK 1.6 / GWT 1.5.3 / GXT 1.2.1 / ofcgxt 1.2.3


    So I'm not sure what else to say?
    Ok, thanks. Now I find out that GXT 1.2 has some problem. I tested the app with GXT 1.2.1 and it works fine.

    Regards,
    --
    Pedro Sousa

  2. #22
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    Quote Originally Posted by widget View Post
    How to properly load data to ext.ux.ofcggxt's store before render it?

    Will work GxtChartWidget with RPCProxy?
    A RPC test case and few bug fixes (to correct null values and cast errors) have been placed in SVN. In saying that, not much was really added to impact your problem - ie if it worked locally then it would have worked remotely - assuming the data was correctly produced by the server.

  3. #23
    Ext User
    Join Date
    Oct 2008
    Posts
    91
    Vote Rating
    0
    Michi_de is on a distinguished road

      0  

    Default


    Hi,
    i have some problems, using the OFCGXT stuff.
    [ERROR] Line 108: No source code is available for type ext.ux.ofcgxt.client.GxtChartWidget<M>; did you forget to inherit a required module?
    Into my App.gwt.xml i put this code inside:
    Code:
          <!-- Other module inherits                                      -->
          <inherits name='com.rednels.ofcgwt.OFCGWT'/>
    like its said in the OFCGWT getting started guide.

    Seems like there is something wrong with this inherit?

    There is even more i'm wondering about:
    How actually i can use this chart widgets and implement them into my Gxt application?

    My approach was:
    Code:
    GxtChartWidget<Statistic> chart = new GxtChartWidget<Statistic>();
            chart.setStore(statisticStore);
            
            PieChartProvider<Statistic> provider = new PieChartProvider<Statistic>("abc", "def");
            
            chart.setModelChartProvider(provider);
    Is this a correct way to use this charts? And why there are this different package names?
    (com.rednles.stuff... and ext.ux.stuff.. )
    Is there a way i can use a piechart, more easy, with the com.rednels.ofcgwt.client.model.elements.PieChart ? I havent found an API for the ext.ux.stuff ...

  4. #24
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    Quote Originally Posted by Michi_de View Post
    Into my App.gwt.xml i put this code inside:
    Code:
          <!-- Other module inherits                                      -->
          <inherits name='com.rednels.ofcgwt.OFCGWT'/>
    like its said in the OFCGWT getting started guide.
    did you also include the jar file in the launch and compile classpath for GWT ?

  5. #25
    Ext User
    Join Date
    Oct 2008
    Posts
    91
    Vote Rating
    0
    Michi_de is on a distinguished road

      0  

    Default


    I created a user library, containing the jar file.
    Should i use the simple jar file instead?

    /edit:
    now i added the "external jar file" into my application (properties on app: Java Build Path: Libraries: Add External Jars)
    and also in the run configuration (run configurations... : classpath: Add External Jars).

    Still same error..

  6. #26
    Ext User
    Join Date
    Oct 2008
    Posts
    91
    Vote Rating
    0
    Michi_de is on a distinguished road

      0  

    Default


    Now i've tested to use a chartwidget within a servlet (not compiled by the GWT compiler). Now there is no error anymore... so it seems, i included the jars correctly, but the error seems to come from my App.gwt.xmp ?

    this is what my xml looks like:
    Code:
    <module>
    
          <!-- Inherit the core Web Toolkit stuff.                        -->
          <inherits name='com.google.gwt.user.User'/>
          <inherits name='com.extjs.gxt.ui.GXT'/>    
          <!-- Inherit the default GWT style sheet.  You can change       -->
          <!-- the theme of your GWT application by uncommenting          -->
          <!-- any one of the following lines.                            -->
          <inherits name='com.google.gwt.user.theme.standard.Standard'/>
          <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
          <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>     -->
    
          <set-property name="gwt.suppressNonStaticFinalFieldWarnings" value="true" />
          
          <!-- Other module inherits                                      -->      
          <inherits name='com.rednels.ofcgwt.OFCGWT'/>
          
          <!-- Specify the app entry point class.                         -->
          <entry-point class='ShortcutManager.client.App'/>
          
          <servlet path="/service" class="ShortcutManager.server.ShortcutServiceImpl" />
        
          <!-- Specify the application specific style sheet.              -->
          <stylesheet src='App.css' />
        
    </module>

  7. #27
    Ext User
    Join Date
    Oct 2008
    Posts
    91
    Vote Rating
    0
    Michi_de is on a distinguished road

      0  

    Default


    Finally... i found that the right inherit is:

    <inherits name='ext.ux.ofcgxt.OFCGXT' />

    ....

    My next question is more OFCGWT specific. Not a problem, just a little bit of understanding the use of this plugin:

    I want to create an application like this one:
    Code:
    +--ContentPanel-----------------------------------+
    | +--HorizontalPanel----------------------------+ |
    | | GRID | CHART                                | |
    | +---------------------------------------------+ |
    +-------------------------------------------------+
    How to realize something like this? I just want the Chart on the right hand side of the grid.

    Using the horizontalpanel doesnt work. What Layouts and Panels i should use?

  8. #28
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    Have a look at http://code.google.com/p/ext-ux-ofcg...ient/Demo.java

    Whilst this is vertical, conceptually you'd do the same thing but with a Orientation.HORIZONTAL for the RowLayout

  9. #29
    Ext User
    Join Date
    Oct 2008
    Posts
    91
    Vote Rating
    0
    Michi_de is on a distinguished road

      0  

    Default


    In your example you add the viewport into the rootpanel.
    I need to add my HorizontalPanel into a ContentPanel.

    I tried to put a viewport (with the charts and grids) into my ContentPanel. But it just don't work.
    It looks like something like that:

    Code:
    public class StatisticsPanel extends ContentPanel {
        public StatisticsPanel () {
            ContentPanel cp1 = new ContentPanel();
            ContentPanel cp2 = new ContentPanel();
            
            cp1.add(new Button("Panel1 Button"));
            cp2.add(new Button("Panel2 Button"));
            
            Viewport vp = new Viewport();
            vp.setLayout(new RowLayout(Orientation.HORIZONTAL));
            vp.add(cp1, new RowData(300, 400, new Margins(10)));
            vp.add(cp2, new RowData(350, 300, new Margins(10)));
            
            add(vp);
    }
    As you can see in the attached picture:
    the bothe ContentPanels (cp1 and cp2) seem to start somewhere in the upper left, outside my content panel. (i cant see the buttons actually...)
    The content panel himselfs just don't get rendered correct. His borders in the right and bottom are just somewhere out of my application.

    Please any help

    Man, the documentation for all the GXT and stuff is just way too poor. I need days to learn something easy like this... just because the only way to learn is watch complex code and then try and error...
    realy frustrating
    Attached Images

  10. #30
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    You are adding a viewport to some other component. Viewport should be the most top component.