[JBoss Seam] - Extended EL or ICEFaces rowSelector
by jrosskopf
Hello,
I (more or less) copied the following code from the seam-icesfaces example.
| <div id="adminList">
| <h:outputText value="No Accounts Found" rendered="#{accounts != null and accounts.rowCount==0}" />
| <ice:dataTable id="accounts" value="#{accounts}" var="a" rendered="#{accounts.rowCount>0}">
| <h:column>
| <f:facet name="header">Username</f:facet>
| <ice:outputText value="#{a.uid}" onmouseovereffect="#{highlight}" />
| </h:column>
| <h:column>
| <f:facet name="header">Password</f:facet>
| <ice:outputText value="#{a.password}" onmouseovereffect="#{highlight}" />
| </h:column>
| <h:column>
| <f:facet name="header">Action</f:facet>
| <s:link value="View Account" action="#{accountFacade.accountSelection(a)}"/>
| </h:column>
| </ice:dataTable>
| </div>
|
When I click on the "View Account" link the method "accountSelection" in my backing-bean gets invoked, but always with a null argument. And I´m unable to find the difference between my code and the example.
Another question is, if there is a possibility to use ICEFaces DataTable Row selector in the meanwhile? I tried it this afternoon for a couple of hours. In the logfiles I saw a couple of xmlhttp roundtrips, but as I´m a newbie in web-development in general and ajax especially, debugging is tedious.
Regards
---
Joachim
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996295#3996295
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996295
19 years, 4 months
[JBoss jBPM] - HibernateException: null index column for collection
by smichea
Hello,
In a method of a stateless EJB3 I deployed the hello world process (of StarterKit) in a MySQL database, then manage to create an instance for it.
Later in another function, I try to create a process instance with those 2 instructions
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| ProcessInstance processInstance = jbpmContext.newProcessInstance("test");
I then obtain the following exception :
| javax.ejb.EJBException: org.hibernate.HibernateException: null index column for collection: org.jbpm.graph.def.ProcessDefinition.definitions
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
| ...
| ...
| at org.hibernate.collection.PersistentMap.values(PersistentMap.java:198)
| at org.jbpm.graph.exe.ProcessInstance.<init>(ProcessInstance.java:103)
| at org.jbpm.JbpmContext.newProcessInstance(JbpmContext.java:371)
| ...
|
I tried several process with no success... and can't figure out where is the problem.
My config : WinXP/JBoss4.0.4GA/JBPM3.1/MySQL
jbpm.cfg.xml :
| <jbpm-configuration>
| <jbpm-context>
| <service name="persistence">
| <factory>
| <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
| <field name="isTransactionEnabled"><false /></field>
| </bean>
| </factory>
| </service>
| <service name='message' factory='org.jbpm.msg.db.DbMessageServiceFactory' />
| <service name='scheduler' factory='org.jbpm.scheduler.db.DbSchedulerServiceFactory' />
| <service name='logging' factory='org.jbpm.logging.db.DbLoggingServiceFactory' />
| <service name='authentication' factory='org.jbpm.security.authentication.DefaultAuthenticationServiceFactory' />
| </jbpm-context>
| </jbpm-configuration>
|
For Hibernate I tried both MySQLDialect and MySQLInnoDBDialect
Thanks in advance,
Sebastien
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996282#3996282
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996282
19 years, 4 months