[JBoss Seam] - Changing Seam component properties via Remoting
by dkane
Hello
I have a Java class that is responsible for some graphics in my web-application. I have turned this class into Seam component. Actually this is session-scoped graphic provider for a4j:mediaOutput element (image) . This works well.
There is some plain JavaScript code on web-page that changes properties of this component. These changes are implemented via Seam Remoting.
The problem is following : properties changed in backing stateful bean via Remoting does not change accordingly in the context instance of the component. I guess I need some explicit outjection back to context after Remoting call, but don't know how to program that. Otherwise, any consequent non-remoting invocation of the component turns backing bean into previous state .
Thanks in advance for explanations.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066615#4066615
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066615
18Â years, 9Â months
[JBoss Portal] - Giving Admin Priviledges to another Role
by roth
Hi
I am trying something supposedly simple. I want to give Admin priviledges to the 'User' role, in preparation for a later switch to ldap. I am using JBoss 4.2.1 on Windows XP with the portal svn trunk.
What I did so far:
For the admin portal in In jboss-portal.sar\conf\data\default-object.xml, add
| <security-constraint>
| <policy-permission>
| <action-name>viewrecursive</action-name>
| <role-name>User</role-name>
| </policy-permission>
| </security-constraint>
|
After I cleaned out the portal database, this had the effect that the little admin link appears when logged in as 'User' (who belongs to the 'User' group).
So far, so good. Now I would like to give access to the User and Role portlets.
In jboss-portal.sar\portal-core.war\WEB-INF\portlet-instances.xml, I added
| <security-constraint>
| <policy-permission>
| <role-name>User</role-name>
| <action-name>view</action-name>
| </policy-permission>
| </security-constraint>
|
twice, once for the USerPortletInstance, and once for the RolePortletInstance. I cleared out the database again, but this had no effect. Both the 'Role Management' and 'User Portlet' windows appear, but without any content.
I don't find anything suspicious in the logfile. What am I missing?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066610#4066610
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066610
18Â years, 9Â months