[JBoss Seam] - Selectable linklist without <h:dataTable>
by knuwu
I have a List of items stored in a session bean and i've created a link list on the page. When I click on the link, I want to transfer the underlying item to the action methode.
I used enhanced EL for that purpose, but the parameter of methode selectModule() is always 'null'.
| <div id="configList">
| <ul>
| <c:forEach var="module" items="#{configSelector.moduleList}">
| <li><s:link value="#{module.name}"
| action="#{configSelector.selectModule(module)}"/></li>
| </c:forEach>
| </ul>
| </div>
|
| @Stateful
| @Name("configSelector")
| @Scope(ScopeType.SESSION)
| public class ConfigurationSelectorImpl implements ConfigurationSelector {
|
| @Logger private Log log;
|
| private ArrayList<Module> moduleList = new ArrayList<Module>();
|
| @Out(required=false)
| private Module selectedModule;
|
| @SuppressWarnings("unused")
| @Create
| public void initModuleList() {
| moduleList.add(AdminModule.getInstance());
| }
|
| public ArrayList<Module> getModuleList () {
| return this.moduleList;
| }
|
| public void selectModule(Module pModule) {
| this.selectedModule = pModule;
| log.info("#0 selected", this.selectedModule.getName());
| }
|
| @Destroy @Remove
| public void destroy() {}
|
| }
|
I can't use <h:dataTable> because I do not want to render the list in a table.
I'm surely missing something. Please help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031213#4031213
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031213
19Â years, 1Â month
[Security & JAAS/JBoss] - NegotiateKerberos
by bengao
I try to following the instruction
http://wiki.jboss.org/wiki/Wiki.jsp?page=NegotiateKerberos
but I got following error
| 16:47:10,109 INFO [ServiceConfigurator] Problem configuring service jboss.security:service=JaasSecurityManager
| org.jboss.deployment.DeploymentException: Exception setting attribute CallbackHandlerClassName = org.jboss.web.tomcat.security.AdvancedWebCallbackHandler on mbean jboss.security:service=JaasSecurityManager; - nested throwable: (java.lang.NoClassDefFoundError: org/jboss/web/tomcat/security/WebCallbackHandler)
| at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:698)
| at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:490)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.lang.NoClassDefFoundError: org/jboss/web/tomcat/security/WebCallbackHandler
| at java.lang.ClassLoader.defineClass1(Native Method)
| at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
| at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
| at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
| at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
|
Can someone help me to identify which Jar file I missed?
thanks,
Ben
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031206#4031206
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031206
19Â years, 1Â month