on 10-07-2008 5:14 PM
Hello!
It's question for my understanding, I think.
I have JSPDynpage: JSP, class, bean.
If I want to dynamic show/hide (add/remove) some elements(button, for example) on my page, what should I do?
When I have only class(Dynpage) it's simple, but I have JSPDynpage.
Hi Paul,
Since you are using JSPDynpage, and need to show/hide buttons, you will need to so in the .jsp file of your portal application.
for. eg. the edit button needs to be showed to the Administrator and not to the enduser.
In this case i will write the code to access the logged in user details in the .java file. Here once i find that the user is an admin i will save a boolean flag called checkAdminFlag in the bean to true.
Then in the .jsp file i will access the bean and retrieve the value of the checkAdminFlag. Depending on the value the edit button is made visible or not in a if condition.
Hope this helps.
Regards,
Melwyn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This question is still actual
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.