33 thoughts on “Integrating Sencha Touch Login Form with Spring Security”

  1. Very nice example. Thanks for all of your posts! They have been the best examples I’ve found while trying to learn Sencha Touch. I’m not familiar with Spring Security at all so could you elaborate on what is need to test your example code either locally or on my server?

    1. thanks. to run locally you will need a java appserver. for simplicity, I suggest you download the spring sts (http://www.springsource.com/products/eclipse-downloads).
      After you install, import the code to the ide. File -> Import -> select ‘Existing Projects into Workspace’. Once the project loaded into the workspace, follow the Step 4 & 5 in http://wp.me/pIacA-7u to run it.

      If you are not running on java, you can just extract the javascript. it is pretty independent of the spring security. anyway let me know if you have any problem running it on ur desktop.

  2. Hi wowi..!!
    Thanska mill for your such a efforts. I did my same login screen in a different way, but this is totally new to me//!!

  3. Hi, thanks a lot! great article. Do you know what happen when you try to use this form localy and submit to a https login url? It is not working and that is very dificult to fix… could you help me? thanks a lot!

  4. I downloded the example and tried but I am getting required resource not found error. so can you please give complete demo for this application.

    1. Hi, the error you encountered related to cross-domain Ajax. You can try JSOP for cross-domain. Which part of the function are you trying to cross-domain?

  5. How would you place the username on the page, once you are logged in? For example is there some conditional logic you can put on a Ext.Panel that would put the username, logout button there only if you are logged in?

    1. Hi,
      you can put the logout and name and the conditional logic in a DIV tag

      ... ...

      then in the Ext.Panel specify the contentEl. Ext.Panel ({ contentEl: 'logout-panel' ... ... });

  6. Hey man.
    Great example but I am new to this….

    Can you please tell me where is the user/password for login successfully?
    Thanks

  7. Hi, how do you validate that the user has not autenticated in the dashboard panel. In example if I access directly to the url of the dashboard?

  8. Hi,
    Great example. Have been searching ages. Best one found.
    I have deployed the war file successfully on a tomcat server. Problem is, after logging in, I end up @ my tomcat’s home page. Please help.

      1. 1.) I tried Firefox as well as chrome for Demo http://spring-mvc-mlogin.cloudfoundry.com/app/login.do
        but could not able to run.

        2) Also I have configured the project in eclipse.
        And not able to execute it on internal browser also.

        Whenever I hit the tab “http://localhost:8080/spring-mvc-login/app/login.do”

        I am just getting the output on console as:
        INFO : org.xaab.springmvc.LoginController – INSIDE LOGIN!
        INFO : org.xaab.springmvc.LoginController – INSIDE LOGIN!

        Not able to see the login form.

        Please help

    1. Hi Mack,
      Yes u can. They are defined in the ‘applicationContext-security.xml’ file.
      The password has been encoded with the ‘md5’ hash code so u have two options:

      1. Remove the line ” and set the password to what ever you want,
      OR
      2. Find out what the ‘md5’ hash code is for the password you want to use and set that as the password.

  9. Thanks a lot osbeug001,

    I will prefer second option.

    One more question:
    It may be silly question but I am not aware of it.

    What is the flow of this application.
    As I know for
    1. sencha app.js is the entry point
    2. Then view port
    3. Then Controller.js

    In our application how Spring helps in authentication?

    I am not able to find out the flow of this application.
    Can u please tell me the workflow of this application?

    How Spring-JSON involves in the entire application?

    Please help

    Thanks in Advance

  10. Interactive eye is a marketting company they are distributing the products of touch magix.The product
    involves both technology and equipment that enables organizations to
    involve their audience instantly by providing an interactive world.
    This products are useful in trade shows,
    retail stores,corporate presentation ,corporate showrooms, lounges, billboards, museums and more.
    It also provides a variety of interactive display technologies to attract the audience so that they can not pay attention to anything else.The
    products are interactive wall,interactive floor,interactive bar,magix fone,magix table.
    Interactive wall and interactive floor will work based on the
    gesture based tracking technology that turns any wall area into a
    multi-point interactive surface. A person is engaged in an unforgettable experience of
    interaction with the wall because the movements are converted into wow-like interactions on the display with audio feedback.It will operate by calculate the accurate gestures of one’s
    hand or foot. Thus, by identifying exact pointing area and motion, our product allows more people to interact with each other on the
    projection area. Interactive Bar is an innovative product
    that transforms a regular bar into an interactive platform to enable restaurant
    and bar patrons to network and engage in collaborative activities and create a
    great ambient experience.Integrated video-projectors project any
    content on the milky bar-surface. The intelligent tracking system of
    the Interactive Bar detects all objects touching the surface.
    This input is used to let the projected content interact dynamically with the movements
    on the counter. Objects can be illuminated at their position or virtual
    objects can be interacted with the hands for example
    Butterflies sit on your hand while you sip on
    your favorite drink, sending a message through sliding an interactive note across the bar to the stranger sitting on the other side of the
    bar, or a flowing water illusion allowing you to create ripples
    in the water.This product can be installed across any hospitality
    venue as a tool to give its customers an avenue to engage and interact amongst themselves through next-gen
    motion and gesture technology. The state-of-the-art features of the Interactive Bar
    not only engage the audience, but create a memorable experience.MagixFone which
    gives your audience the ability to control the
    screen for playing games, answering quizzes, sending social messages
    and much more.A user can dial or text a number given on screen at the point of interaction and
    the MagixFone hardware picks-up the call and allows the user to use his/her mobiles keypad or voice to
    interact with the display. Then the another one multi touch product is magix kiosk.It allows 6 to 40 simultaneous touches on the scree and it provides
    30 applications and high brightness LED display.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s