1. #1
    Ext User
    Join Date
    Jan 2009
    Posts
    61
    Vote Rating
    2
    venu is on a distinguished road

      0  

    Default how to navigate from login page to home page in gxt

    how to navigate from login page to home page in gxt


    Hi,
    I am new to GWT & gxt. I am confused on how to integrate a couple of pages in gxt application.

    I am using GWT, gxt and JSon.

    Here is my scenerio:
    I had 2 pages.
    1) Login page which is designed using the FormPanel - Used to authenticate user.
    2) Home page containing gxt Basic Grid showing all the existing users.

    Individually these pages are well displayed.

    Now i want to integrate these pages. Once the user is authenticated in login page i want to display the home page. So how to redirect or display the home page in gxt.

    Thanks,
    Venu

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

      0  

    Default


    You should create two seperate applications then.
    The first one is using a servlet, to validate the user (within a database for example) and save this into the session.
    The second application should check via a servlet for the userdata in the session.

    This would be just the solution i would suggest, if u need to use 2 different html pages.
    There are sure other ways to solve this, but all of them will use only ONE html page for all this stuff.

  3. #3
    Ext User
    Join Date
    Jan 2009
    Posts
    61
    Vote Rating
    2
    venu is on a distinguished road

      0  

    Default


    Thanks Michi_de, for your reply.

    Can you send me an example or direct me to any web resource that shows how to do the below explained scenario using a single html page.

    Thanks,
    Venu

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

      0  

    Default


    To do so, you will need to learn the MVC pattern first. Its a common pattern for web application design.
    An Ext GWT application using this pattern is the mail example. (plus, it has a login panel)
    You should read this blog, it sure will help you a lot
    http://christianposta.com/blog/?p=6

  5. #5
    Ext User
    Join Date
    Oct 2008
    Location
    Warsaw(PL)/Cottbus(GER)
    Posts
    215
    Vote Rating
    0
    EagleEye666666 is on a distinguished road

      0  

    Default


    Quote Originally Posted by Michi_de View Post
    To do so, you will need to learn the MVC pattern first. Its a common pattern for web application design.
    An Ext GWT application using this pattern is the mail example. (plus, it has a login panel)
    You should read this blog, it sure will help you a lot
    http://christianposta.com/blog/?p=6
    sorry for interrupting here, but i think what he wants to implement is a PURE html page for loggin in, i guess for saving cookie and remember me after the login it will start the GXT app.

    I think it should be such problem.
    @venu it is depending if you are using a framework like spring security or a manual implemented method. (from some secret source i know that this guy who is writing this blog has implemented a pure html page login with a GXT app )

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

      0  

    Default


    Quote Originally Posted by EagleEye666666 View Post
    sorry for interrupting here, but i think what he wants to implement is a PURE html page for loggin in,
    Well, then why should he say
    Can you send me an example or direct me to any web resource that shows how to do the below explained scenario using a single html page.
    In a single html page you will need to use more then just html. It would be not very helpful, to use html page to login and then show the application on the same.

    @venu,
    there are lots of different ways to solve this problem:

    1. way
    2 html page
    login - use html
    application - use gxt in another html page

    This should be the easy way, to build your application. You will need a good knowledge in session handling, html and gxt.

    2. way
    1 html page
    login - use html
    app - use gxt in the same page

    Not that clever solution... in my opinion.

    3. way
    1 html page
    login - use gxt
    app - use gxt

    This way you will need to learn MVC and all the stuff i linked above...

  7. #7
    Ext User
    Join Date
    Jan 2009
    Posts
    61
    Vote Rating
    2
    venu is on a distinguished road

      0  

    Default


    Thanks.

    I want to try with 1st and 3rd options to know better which one is the best option.

  8. #8
    Ext GWT Premium Member
    Join Date
    Jul 2009
    Posts
    56
    Vote Rating
    0
    kaushikGXT is on a distinguished road

      0  

    Default


    Quote Originally Posted by venu View Post
    Thanks.

    I want to try with 1st and 3rd options to know better which one is the best option.
    Hi Venu,

    If you have implemented the mentioned options, could you please tell me the pro's and con's and which is the best one.

    Thank you!

  9. #9
    Ext User
    Join Date
    Jun 2010
    Posts
    1
    Vote Rating
    0
    Elangovan is on a distinguished road

      0  

    Default how to use formpanel in GWT to set the action servlet.I need servlet code please

    how to use formpanel in GWT to set the action servlet.I need servlet code please


    I also have the same problem.. I need the sample login application implemented with servlet in gwt. it may use ext or not.. if anybody have kindly post it.. it is urgent pls..Thank u in advance

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar