[JBoss Seam] - framework:entity-query class attribute
by fernando_jmt
I was using entity-query, now I need to make some extensions to EntityQuery provided by Seam. I assumed that using the class atribute for the framework:entity-query I can define a subclass of the EntityQuery. Is my assumption correct?
| public class MyEntityQuery extends org.jboss.seam.framework.EntityQuery {
| ...some stuff
| }
|
components.xml
| <framework:entity-query name="userListing" ejbql="select u from User u" auto-create="true" max-results="5" scope="SESSION" class="com.app.MyEntityQuery"/>
|
|
Above code does not work. It seems that Seam EntityQuery is used even if I declare a class attribute.
One of the errors I got when adding new properties to the extended EntityQuery:
| Caused by: javax.faces.el.PropertyNotFoundException: /admin/userList.xhtml @130,105 value="#{userListing.currentPage}": Bea
| n: org.jboss.seam.framework.EntityQuery_$$_javassist_1, property: currentPage
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:58)
| at javax.faces.component.UIOutput.getValue(UIOutput.java:80)
| at javax.faces.component.UIInput.getValue(UIInput.java:88)
| at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getValue(RendererUtils.java:278)
| ... 59 more
|
do I am misunderstanding the use of such class attribute? or is it a bug?
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044159#4044159
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044159
19 years, 1 month
[JBoss jBPM] - problem using jbpm with tomcat 5.5 and mysql 5.0
by bcsppl
i tried setting up jbpm on tomcat 5.5 using mysql 5.0 as the database but encountered some problem. i've read the wiki and did as instructed but i still couldnt get it right. did i do sth wrong? here is the things that i did
1. copied the jbpm-console.war from the deploy folder to the tomcat webapps folder
2. made these changes to hibernate.cfg.xml
anonymous wrote :
| org.hibernate.dialect.MySQLInnoDBDialect
|
| com.mysql.jdbc.Driver
| jdbc:mysql://localhost:3307/jbpm
| root
| admin
|
| org.hibernate.transaction.JDBCTransactionFactory
|
3. add this to $CATALINA_HOME/conf/Catalina/localhost
anonymous wrote :
|
|
4. updated the database with these
anonymous wrote : UPDATE jbpm_id_membership j, jbpm_id_user u
| SET j.NAME_ = u.NAME_
| WHERE j.USER_ = u.ID_
|
| UPDATE jbpm_id_membership j, jbpm_id_group g
| SET j.ROLE_ = g.NAME_
| WHERE j.GROUP_ = g.ID_
5. copied all the jars from jbpm-jpdl-3.2.GA\lib\*.jar to my $CATALINA_HOME\webapps\jbpm-console\WEB-INF\lib
the mysql connector is in my tomcat common lib folder
i'm using port 3307 for mysql and jbpm is the database name i've created in mysql
did i left out something???
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044152#4044152
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044152
19 years, 1 month
[JBoss Seam] - Re: CRUD screen
by carlos.abreu
Hy everyone,
Damian, defined very well what i want to do on the CRUD page "all-on-one-page"....
My principal objective, is to have my Actions Session Beans in a pattern. Because almost 90% of the screens of my application, will have the same behaviors...
With the Help of Christian an Delphi i created the structure of my application in a very elegant way...
Therefore, the only behavior that is missing for my Actions is the edition of the entities data.
So my question is in the html form in the CRUD page... Can u tell me, how can i set the fields in the form with the data that i select in the data table ?
I don't know if i am expressing clearly, please let me know....
I can sent the source code by e-mail if anyone interested...
thanks,
Carlos
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044148#4044148
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044148
19 years, 1 month