Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    25
    Vote Rating
    1
    sanbenwu is on a distinguished road

      0  

    Default how to run the gxt3 desktopapp

    how to run the gxt3 desktopapp


    there are somebody success run the example of gxt3 desktopapp?
    if exist you can help me? thks.

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,717
    Vote Rating
    87
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    If you aren't able to see the 3.0.1 explorer at http://sencha.com/examples/ or the nightly build at http://staging.sencha.com:8080/examples-dev/, you can run the gxt-examples.war file present in the GXT download zip by dropping it into a servlet container's webapps/ directory. We check that each release works with both Jetty and Tomcat, though other servlet containers should be supported as well.

  3. #3
    Sencha User
    Join Date
    Dec 2012
    Posts
    25
    Vote Rating
    1
    sanbenwu is on a distinguished road

      0  

    Default


    thank you for your answer,i have successed solve the problem of run the example.
    because ,i need use the desktop for my project.and now i have the other problem of that i want to control the component show or hide by login user.
    such as there are a TextField and a TextButton on my page.if the user 'admin' login into the web system,she can see the TextButton. and the others can't see the TextButton. if you can, give me the detail.thks!

  4. #4
    Sencha User
    Join Date
    Dec 2012
    Posts
    25
    Vote Rating
    1
    sanbenwu is on a distinguished road

      0  

    Default how to control the widget show or hide

    how to control the widget show or hide


    i want to control the widget show or hide by login user.
    such as a TextField and a TextButton on my page.if the user 'admin' login into the web system,she can see the TextButton. and the others can't see the TextButton.
    now i do like this.
    MyWindow extends Window{
    @Override
    protected void onShow() {
    super.onShow();
    int count = getWidgetCount();
    for (int i = 0; i < count; i++) {
    Widget o = getWidget(i);
    if(o instanceof TextButton) {
    //there i want to get the widget such as TextButton ,TextField ,PasswordField ...
    //then compare with the data from database ,if the user have the permission(the TextButton or others shoud be see by the user)
    //
    //set the widget show otherwise the widget hide .

    }
    }
    }
    }
    if you have good idea .
    could you tell me the details .
    thks!

  5. #5
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,717
    Vote Rating
    87
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Code:
    if (!user.isAdmin()) {
        someButtonForAdminOnly.setVisible(false);
        //or, something like someButtonForAdminOnly.removeFromParent();
    }
    Like that?

    EDIT: merged threads -
    o.setVisible(false) is how you'd do this in your loop, though the window only has one child, so that won't really make sense. Instead, why not have a reference to the thing that need to change, like I had in the first block of code?

  6. #6
    Sencha User
    Join Date
    Dec 2012
    Posts
    25
    Vote Rating
    1
    sanbenwu is on a distinguished road

      0  

    Default


    first thank you for your answer.
    but i think you don't anderstand my means.
    because i want to control the widget show or hide by user's permission. and it on the client(gxt) .
    your code should run on server.

  7. #7
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,717
    Vote Rating
    87
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Why can't this run on the client? I'm assuming that at least some state about the page has to be passed from the server to the client, otherwise the rest of the desktop doesn't make any sense. Even if the user tampers with that data and cheats to pretend they are 'admin', the server should know better than to run an admin-only method run by a non-admin user.

    If you don't want any logic to be run on the client, you shouldn't be using GWT/GXT or even JavaScript at all.

  8. #8
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    411
    Vote Rating
    21
    icfantv will become famous soon enough icfantv will become famous soon enough

      0  

    Default


    @sanbenwu-

    I think you are confusing JSPs w/ what GWT/GXT can do. JSP pages are generated on the server side and sent (in the form of HTML, and maybe J/S) to the client-side. In this situation, you can control what is rendered based on a user's permissions.

    GWT and GXT work in a completely opposite manner. In general, all code is available client-side and thus there can be no expectation of security.

    If you would like to control how your UI renders based on permissions, we are doing this by sending the user's roles down to the client, reading them, and generating the UI based on their roles. That said, we still use method-level security in our GWT servlets (using Spring Security) to ensure that the user is in the right role to call a given GWT RPC method.

    If this interests you, it's a pretty involved process, but allows you to develop a pretty large-scale and fairly secure application if done correctly.

  9. #9
    Sencha User
    Join Date
    Dec 2012
    Posts
    25
    Vote Rating
    1
    sanbenwu is on a distinguished road

      0  

    Default


    thks for all authers to give me the answer.
    i think i need introduce the thoughts of about control the widget.
    1:on the client by the user permission control the widget show or hide
    and the same time on the server use the spring aop control fetch the data.
    2:on the client the i don't know the name and the type of the widget.

Thread Participants: 2

Tags for this Thread