Announcement Announcement Module
Collapse
No announcement yet.
Flex buttons and spring security Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Flex buttons and spring security

    Hi guys
    I have 6 buttons(4 user related buttons and 2 admin related buttons) in my mxml file on the flex side.
    When a USER logs in I want to show him
    4 user related buttons and hide 2 admin related buttons
    an when ADMIN logs in I want to hide 4 user related buttons
    and show 2 admin buttons.
    If I use a jsp I can do this pretty easily using spring security tags.
    Can I acchieve the same in my mxml file?

    Thanks.
    Last edited by jaggernat; Feb 9th, 2011, 09:28 PM.

  • #2
    The "secured" sample in the Test Drive shows a very similar example. In particular, take a look at the DataGrid code and how we only show the productId column for ROLE_ADMIN users.

    Comment


    • #3
      thanks for the reponse.
      Last edited by jaggernat; Feb 10th, 2011, 03:00 PM.

      Comment


      • #4
        i downloaded the test drive (Spring BlazeDS Integration Test Drive with Spring 3.0) from this link

        http://static.springsource.org/sprin...html/ch06.html

        but when i try to unzip the zip file it says its corrupted?

        Are you having the same problem?

        thanks

        Comment

        Working...
        X