[jboss-user] [Beginner's Corner] - Re: Can I restart an APP using JMX console?

2009-09-02 Thread griffitm
Thanks! I actually found the answer in the wiki: http://www.jboss.org/community/wiki/RedeployFromTheJMXConsole View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253123#4253123 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p

[jboss-user] [Beginner's Corner] - Can I restart an APP using JMX console?

2009-09-02 Thread griffitm
Hi all, How can I restart an application in the JBoss container (a war file app) that is not responding without restarting the entire AS? I think there must be a JMX bean to do this, but I cannot find it. Any reply would be appreciated. Best Regards, MG View the original post : http://www

[jboss-user] [JBoss Seam] - Re: EntityQuery Restrictions/SG problems with Integer Field

2007-11-15 Thread griffitm
Pete, Thanks for pointing this out (can't be my code, must be a bug in the compiler) ;-) It makes sense the object was immutable. I was able to get it working. Thanks. MG View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105096#4105096 Reply to the post : h

[jboss-user] [JBoss Seam] - Re: EntityQuery Restrictions/SG problems with Integer Field

2007-11-13 Thread griffitm
I don't understand this reply... anonymous wrote : lujan99 -- ERROR: The list changes the number of items.!!! Below is the entire callstack from the exception: Thanks to all, MG 07:57:17,885 ERROR [STDERR] Nov 13, 2007 7:57:17 AM com.sun.facelets.FaceletViewHandler handleRenderException | S

[jboss-user] [JBoss Seam] - EntityQuery Restrictions/SG problems with Integer Field in q

2007-11-12 Thread griffitm
Hello All, I am having a problem with a component generated from SeamGen. I have a query form that allows the user to search the resultList as such: | | | | | Number | | | ... |

[jboss-user] [JBoss Seam] - ClassCast Exception when trying to get a Seam Managed Statef

2007-11-08 Thread griffitm
Hi All, I am getting this error when trying to get a seam managed component from a servlet. java.lang.ClassCastException: org.javassist.tmp.java.lang.Object_$$_javassist_0 | at action.gov.hhs.fda.ocio.fdaaa.servlet.ExcelExportServlet.service(ExcelExportServlet.java:42) | at

[jboss-user] [JBoss Seam] - Re: DataTable Sorting Example

2007-10-26 Thread griffitm
Update to my problem: Adding action="pageControllerBean.action" fixed the pagination problem. This is strange, maybe a bug? The initial result set that I was trying to paginate was being managed by a stateful session bean that encapsulated an EntityQuery object. I had some logging code in the

[jboss-user] [JBoss Seam] - Re: Sorting Detail data in Master/Detail

2007-10-26 Thread griffitm
Ok, I found that I can at least control the detail records by using the JPA annotation @OrderBy on the many to one relationship as such: | @OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="section") | @OrderBy("dueDate") | public Set getDeliverables(){ | return this.

[jboss-user] [JBoss Seam] - Sorting Detail data in Master/Detail

2007-10-26 Thread griffitm
All, I have some seam generated pages show master/detail records. If you've used seamgen generate-entities to create entities and pages then you know what I mean. If I have a relationship between 2 tables (A) Status and (B) Deliverables -- I start from the status page viewing a list. This l

[jboss-user] [JBoss Seam] - Re: EntityQuery Restrictions

2007-10-26 Thread griffitm
It seems that if you specify a query declaratively using the framework entity query, you loose the ability to sort data in a data table, because the data is always returned in the same order by the query. Can you pass the order by clause dynamically by declaring it as something that is a parame

[jboss-user] [JBoss Seam] - Re: DataTable Sorting Example

2007-10-26 Thread griffitm
The root cause of the exception was null pointer in isNextExists(); The error seems to be related to getMaxResults() returning a null if no resultset has been defined. Adding max-results=25 to the framework query fixed the error, but it seems like the error should be caught in getMaxResults and

[jboss-user] [JBoss Seam] - Re: EntityQuery Restrictions

2007-10-25 Thread griffitm
This seems to work: | @Override | public String getOrder(){ | if(super.getOrder() == null){ | return "status.sortOrder"; | } | return super.getOrder(); | | } | View the original post :

[jboss-user] [JBoss Seam] - Re: EntityQuery Restrictions

2007-10-25 Thread griffitm
Overriding the getOrder method as below then disables the clickable sorting feature of the data tables: | | | | | | | #{status.description} | | No longer seems to work

[jboss-user] [JBoss Seam] - Re: DataTable Sorting Example

2007-10-25 Thread griffitm
Ok, I tried restructuring this as a framework query, and the query works, but the pagination throws an exception. First the query as defined in components.xml: | |d.dueDate > #{search.fromDate} |d.dueDate < #{search.toDate} |

[jboss-user] [JBoss Seam] - Re: DataTable Sorting Example

2007-10-24 Thread griffitm
Pete, I thought of doing this as a declared query, in components.xml -- but the search is a on a date range of a field on the entity bean. All of the examples I've seen use the instance of the entity to back the search form, and to submit the form values for the query -- Unless you use a sess

[jboss-user] [JBoss Seam] - Re: EntityQuery Restrictions

2007-10-24 Thread griffitm
Doh! Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098528#4098528 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098528 ___ jboss-user mailing list jboss-user@lists.j

[jboss-user] [JBoss Seam] - Re: DataTable Sorting Example

2007-10-24 Thread griffitm
Pete, Thanks for the reply. I can have a stateful session bean that extends EntityQuery? I guess I didn't think of that. What I ended up doing was using EntityQuery to perform my query, and exposing the methods from EntityQuery that are used by the JSF pages for sort/filtering. It mostly wo

[jboss-user] [JBoss Seam] - EntityQuery Restrictions

2007-10-24 Thread griffitm
Hello All, I have some components generated by seamgen, specifically the EntityQuery Lists that relate to a list of entity objects. The seam generated search form allows the restrictions to be passed to the query: | public class StatusList extends EntityQuery { | | private static f

[jboss-user] [JBoss Seam] - Need Hibernate Filter Example

2007-10-24 Thread griffitm
Hello All, I have a scenario where I want users to only be able to view/edit data that they have access to based on what group they happen to be in. My thought was to use Hibernate Filter for this, and the reference guide gives a brief note on Hibernate filters in section 8.6. Using Hibernate

[jboss-user] [JBoss Seam] - Re: Form Element ID changed

2007-10-19 Thread griffitm
Thanks for the reply. I was able to use the prototype form.getInputs('text') to get an array of my form elements and replace the values that way. However, this doesn't work like I expected. Even though the HTML form contains the correct values, the bean that the search is bound to has the old v

[jboss-user] [JBoss Seam] - Form Element ID changed

2007-10-19 Thread griffitm
Hello All, Using Seam 2.0.0CR1, I have a form where I want to change the value of a element based on the selection of a DDLB. It seems overkill to use Ajax, and to make a round trip to the server in order to change the value of an HTML input -- so I wrote a simple JS function to change the

[jboss-user] [JBoss Seam] - DataTable Sorting Example

2007-10-18 Thread griffitm
Hello All, I have a seam-gen app that gives me a pretty good head start for the simple crud operations needed to maintain a database. I like the pagination of data that is baked in to the JSF pages as the data sources for the components are backed by the EntityQuery objects. However, I have a

[jboss-user] [JBoss Seam] - Re: PropertyNotFoundException, something I am overlooking...

2007-10-18 Thread griffitm
Arg! Now I am getting a LazyInitializationException: | 09:34:39,137 ERROR [LazyInitializationException] could not initialize proxy - no Session | org.hibernate.LazyInitializationException: could not initialize proxy - no Session when I execute my query: deliverables = em.createQuery("select d

[jboss-user] [JBoss Seam] - Re: PropertyNotFoundException, something I am overlooking...

2007-10-17 Thread griffitm
Doh! That was it. Thanks for the shove. More proof that EJB3, although much better than previous versions is not idiot (me) proof. Cheers! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096338#4096338 Reply to the post : http://www.jboss.com/index.html?mod

[jboss-user] [JBoss Seam] - PropertyNotFoundException, something I am overlooking...

2007-10-17 Thread griffitm
Hello All, I am trying to implement a search function, and I have been using the seam booking demo as a reference. I am not sure how my code is materially different from the example, but I am getting this error: javax.el.PropertyNotFoundException: /DeliverableSearch.xhtml @21,113 value="#{deli

[jboss-user] [JBoss Seam] - Re: seam-gen EntityList, how to disable auto search

2007-10-17 Thread griffitm
I too have a related need. I want to be able to provide a date range search on an Entity that has a due date field. It sounds like this can't be done with EntityQuery? I have to write a session bean and handle it that way? Any advice? Best Regards, MG View the original post : http://www.jbo

[jboss-user] [JBoss Seam] - Conditional Cross Field Validation on Entity Bean

2007-10-16 Thread griffitm
Maybe this is more of an EJB3 question, but is it possible to have a conditional cross field validation using annotation on my entity bean? I have 2 fields on an entity I want to do something like: if field1= 'Other' then require field2 Can this be done with annotations? Thanks in advance, MG

[jboss-user] [JBoss Seam] - Re: Audit Interceptor with State

2007-10-15 Thread griffitm
I created the required tables and still get the same error, has anyone been able to successfully get this example to work in an application? Any help would be much appreciated. Cheers! MG View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095434#4095434 Reply t

[jboss-user] [JBoss Seam] - Re: Audit Interceptor with State

2007-10-15 Thread griffitm
Ok, it helps if you bind the auditHomeEntityManager, I did that and got past the initial error. Now when I try to edit the entity that is marked @Auditable I get this error on update: 17:53:35,633 FATAL [application] java.lang.IllegalArgumentException: Unknown entity: uk.co.splendid.audit.AuditL

[jboss-user] [JBoss Seam] - Re: Audit Interceptor with State

2007-10-15 Thread griffitm
Trying to drop in the Audit function, here's what I did: | Added the lib to my classpath | Changed my entity to inherit from AuditHome instead of Entity Home | Added @Auditable annotation to the field I want to track | | When I deploy the application and try to access the class that is

[jboss-user] [JBoss Seam] - Re: Create New Entity -> Page Round Trip & Update autoincrem

2007-10-09 Thread griffitm
Since I seem to be having this conversation with myself, I thought I'd post the solution so I would know what I did wrong. When I used seamgen to generate the entities seam generate-entities It did not properly add the @GeneratedValue annotation to the entity class for the autoincrement field i

[jboss-user] [JBoss Seam] - Re: Create New Entity -> Page Round Trip & Update autoincrem

2007-10-09 Thread griffitm
In the struts world, I've dealt with this by getting the ID after update and explicitly updating my model with the id after the DB update. This is usually done in the struts action class. Is there a similar metaphor for doing this in seam? Do I need to have a stateless session bean that updates

[jboss-user] [JBoss Seam] - Re: Create New Entity -> Page Round Trip & Update autoincrem

2007-10-09 Thread griffitm
These are seamgen generated variable and class names, based on the tables that are backed by the EJB3 entity beans. If the names of the variables are wrong, its because they were generated incorrectly. I don't think that is the case. Can someone point me to a request/response cycle for SEAM?

[jboss-user] [JBoss Seam] - Re: Create New Entity -> Page Round Trip & Update autoincrem

2007-10-08 Thread griffitm
It seems as if persisting the entity is not tied to the correct instance? My page navigation all look as follows: | | | The value that is tied to the HTML for, (therefor the value that I would believe to be forwarded as a parameter after the persist method is: | |

[jboss-user] [JBoss Seam] - Create New Entity -> Page Round Trip & Update autoincrement

2007-10-08 Thread griffitm
Re: Create New Entity -> Page Round Trip & Update autoincrement Hello all, I am new to seam & JSF in general, I have searched the forum for this problem and could not find anything related. I am using an application that was generated by seamgen. I have an entity, called status. If I creat

[jboss-user] [EJB 3.0] - Re: Create New Entity -> Page Round Trip & Update autoincrem

2007-10-08 Thread griffitm
Oops, I meant to submit this for Seam forum. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092676#4092676 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092676 ___ jboss-user

[jboss-user] [EJB 3.0] - Create New Entity -> Page Round Trip & Update autoincrement

2007-10-08 Thread griffitm
Hello all, I am new to seam & JSF in general, I have searched the forum for this problem and could not find anything related. I am using an application that was generated by seamgen. I have an entity, called status. If I create a new status, the proper table is updated, but upon the round

[jboss-user] [JBoss Seam] - Re: Simple selectOneMenu Example/seamgen

2007-10-04 Thread griffitm
Upgrading to 2.0.0.CR1 fixed the problem. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091715#4091715 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091715 ___ jboss

[jboss-user] [JBoss Seam] - Re: Simple selectOneMenu Example/seamgen

2007-10-03 Thread griffitm
Pete, Thanks for the reply. I am using 2.0.0.BETA1 w/JBoss 4.2.1.GA. I'll download the latest. I assume I can just overwrite my project/lib directory with the libs in the latest distro. Do I need to do anything else (other than a clean build?) Cheers! MG View the original post : http://www

[jboss-user] [JBoss Seam] - Re: Simple selectOneMenu Example/seamgen

2007-10-03 Thread griffitm
Pete, Thanks for the reply. Something really strange is going on. The best way to describe what is happening is I have several of these drop down lists, one for status, one for priority, etc. I can go in and make an unrelated change to the xhtml fragment, compile and deploy it and the error b

[jboss-user] [JBoss Seam] - Re: Simple selectOneMenu Example/seamgen

2007-10-02 Thread griffitm
Ok, I got the problem sorted. The problem was that I had the convertEntity tag before selectOneMenu. The solution was to move it AFTER the selectOneMenu, thusly: | | status | | | | |

[jboss-user] [JBoss Seam] - Re: Simple selectOneMenu Example/seamgen

2007-10-02 Thread griffitm
Damian, Thanks for the reply. I thought I was on the right track from looking at this related link: http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamEntityConverter Here is my deliverableHome class: | package gov.hhs.fda.ocio.fdaaa.entity; | | import org.jboss.seam.annotations.In; | impor

[jboss-user] [JBoss Seam] - Simple selectOneMenu Example/seamgen

2007-10-01 Thread griffitm
Hi All, I am coming from a struts back ground, and I am lost for where to start trying to debug this problem. I have an Object (Delivery) with an association from a pick list (Status) I created a seam-gen project and played around with it, but I don't want to have to navigate to a different