[JBoss Seam] - Checkbox in TreeNODe
by evdelst
Hi,
I am not sure if it is a richfaces or Seam question, so I double posted.
I want to put a h:selectBooleanCheckbox in a treenode.
The problem is, it shows up, but I can never select it.
For a datatable, I use a bean with a Map<MyDataObject,Boolean> and a setSelection(MyDataObject) method in the (stafefull) bean. This works nicely, giving me a Map of selected objects.
In the tree, my template looks like this:
<rich:tree value="#{testMaintenance.testTree}" var="data" nodeFace="#{data.class.simpleName}" id="tree" switchType="client">
| <rich:treeNode id="tn" type="Test"><h:commandLink value="#{data.id}" action="#{testMaintenance.selectTest(data)}"/>
| </div> <h:selectBooleanCheckbox value="#{testMaintenance.selection[data]}"/> #{data.person.lastName} #{data.organisation.name}
| </rich:treeNode>
|
In my bean:
public Map<Test, Boolean> getSelection() { return this.selection; }
|
| public void setSelection(Test t) {
| logger.info("check "+t.getId());
| selection.put(t,true);
| }
|
If I put a h:inputText in the treenode, I can type into that field.
This pattern works for DataTable. Has anyone tried this with a rich:Tree?
Edwin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059046#4059046
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059046
18Â years, 9Â months
[JBoss Messaging] - fails to start: IllegalStateException: Router already has lo
by bartvh
Setup:A two node cluster JBoss 4.2 with JBM 1.3.0 serverMySQL persistenceA distributed topic on both nodesAn MDB with a durable subscription and client ID, installed on both nodes
During tests, I have been starting and stopping the nodes one after the other and also together, but now I have arrived at a situation where starting either node fails:
java.lang.IllegalStateException: Router[4da9ec16] already has local queue
| at org.jboss.messaging.core.plugin.postoffice.cluster.RoundRobinRouter.add(RoundRobinRouter.java:171)
| at org.jboss.messaging.core.plugin.postoffice.cluster.RoundRobinRouter.add(RoundRobinRouter.java:114)
| at org.jboss.messaging.core.plugin.postoffice.cluster.DefaultClusteredPostOffice.addToConditionMap(DefaultClusteredPostOffice.java:1536)
| at org.jboss.messaging.core.plugin.postoffice.DefaultPostOffice.addBinding(DefaultPostOffice.java:753)
| at org.jboss.messaging.core.plugin.postoffice.DefaultPostOffice.loadBindings(DefaultPostOffice.java:619)
| at org.jboss.messaging.core.plugin.postoffice.cluster.DefaultClusteredPostOffice.loadBindings(DefaultClusteredPostOffice.java:1594)
| at org.jboss.messaging.core.plugin.postoffice.DefaultPostOffice.start(DefaultPostOffice.java:141)
| at org.jboss.messaging.core.plugin.postoffice.cluster.DefaultClusteredPostOffice.start(DefaultClusteredPostOffice.java:327)
| at org.jboss.messaging.core.plugin.ClusteredPostOfficeService.startService(ClusteredPostOfficeService.java:449)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
A trace log of the server shows that the server is trying two times to add a binding for the durable subscription.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059029#4059029
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059029
18Â years, 9Â months