[jboss-user] [JBoss Seam] - Re: Structure of Seam project for multi client distribution

2007-12-17 Thread jcruise
If your persistence.xml is not in the same archive as your entity classes you might need to explicitly include class elements for the mapped classes e.g. | ...stuff... | | com.myco.model.Role | com.myco.model.User | | ...stuff... | Cheers J View the original post : http://www

[jboss-user] [JBoss Seam] - Re: generating forms programatically

2007-11-30 Thread jcruise
The renderers are just the metadata-driven generic form templates. I chose to use facelets to generate the forms rather than building custom jsf controls because it has such great composition functionality. I considered writing a jsf control for a custom grid or panel that was driven by my metad

[jboss-user] [JBoss Seam] - Re: generating forms programatically

2007-11-29 Thread jcruise
The general strategy that I used was: 1. Build some framework classes that know how to extract basic field level metadata from ejb/hibernate config info at runtime. Automatically extracted metadata includes types, lengths, relationships etc. I also provide attributes in these framework classes

[jboss-user] [JBoss Seam] - Re: Getting JBPM to use the seam managed persistence context

2007-11-29 Thread jcruise
Ok. |public static Object getInstance(Class clazz, ScopeType scope, boolean create) |{ | return getInstance( getComponentName(clazz), scope, create ); |} | I can see that the static instance() call does ultimately result in retrieving the component by name. Cons

[jboss-user] [JBoss Seam] - Re: Getting JBPM to use the seam managed persistence context

2007-11-29 Thread jcruise
OK. I assumed, perhaps erroneously, that the component overriding rules would only work if you looked up the component by name. I believed that this code would always return an instance of ManagedJbpmContext. |public static JbpmContext instance() |{ | if ( !Contexts.isEvent

[jboss-user] [JBoss Seam] - Re: generating forms programatically

2007-11-28 Thread jcruise
I dynamically construct forms using the c: tags. These allow you to manipulate the JSF component tree and dyanically select uicomponents to include based on your application metadata. You can't do this using tags like ui:repeat which don't change the component tree. The downside of using the c:

[jboss-user] [JBoss Seam] - Re: Getting JBPM to use the seam managed persistence context

2007-11-16 Thread jcruise
Ok. Do you have any interest in a patch to allow us to do something like this in components.xml: | | | | where jbpmConfiguration would a reference to either config1 or config2 Note that the current managed JbpmContext has a hard dependency on the default jbpm implementatio

[jboss-user] [JBoss Seam] - Getting JBPM to use the seam managed persistence context

2007-11-14 Thread jcruise
Is there any way of elimnating the hibernate.cfg.xml for jbpm? I am trying to implement a multi-tenant application, with separate database connections per customer. I can easily select the entityManagerFactory dynamically for the main application, but this doesn't change the process db. Which is

[jboss-user] [JBoss Seam] - Re: jbpm timer transaction issues

2007-11-14 Thread jcruise
http://jira.jboss.org/jira/browse/JBSEAM-2251 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104857#4104857 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104857 ___ jboss-use

[jboss-user] [JBoss Seam] - Re: jbpm timer transaction issues

2007-11-14 Thread jcruise
Are you running on tomcat or Jboss AS? I get this error whenever I have the jbpm scheduler service even configured. It appears whenever I try to close a process instance. So, I've been working around it by just disabling the scheduler service. I'll file a JIRA issue for my problem. View the

[jboss-user] [JBoss Seam] - Re: Problems understanding Seam's jBPM support

2007-11-14 Thread jcruise
Just use injection to get the context: | @In private JbpmContext jbpmContext; | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104498#4104498 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104498 ___

[jboss-user] [JBoss Seam] - Data separation in a multi-tenant application

2007-09-28 Thread jcruise
I am trying to implement multiple db support from a single web app. This bascially involves allowing the users to select their db on login. I have an ok strategy for switching the main app db. I simply define multiple entityManagerFactories and then use an expression for the entityManager compo

[jboss-user] [JBoss jBPM] - Re: Where to route obsolete parent token in token multiplica

2007-08-08 Thread jcruise
Hi Mark, I am trying to solve a similar problem, but am a bit of a custom node newbie ... do you have any code that you can share for your custom fork node? Optimistically, J View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072329#4072329 Reply to the post :

[jboss-user] [JBoss Seam] - Re: authenticator.sessionContext CVS

2007-08-07 Thread jcruise
I think this stuff has changed a bit in 2.0. I can't see a component id for the sessionContext anymore, so I use: | Context sessionContext = Contexts.getSessionContext(); | Hope this helps. Cheers J View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=407168

[jboss-user] [JBoss Seam] - Re: Exception Handling Error -> redirect URL is wrong

2007-08-03 Thread jcruise
I'll put something together and post it on Monday. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070645#4070645 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070645 ___ jbos

[jboss-user] [JBoss Seam] - Re: opensymphony clickstream

2007-08-03 Thread jcruise
It's not built in to seam, but I got it integrated in about 30mins. Just required migrating the jsp example to facelets. I actually removed it from my production app because I became paranoid that it might interact badly with the other filters in the stack ... but I had no evidence for that :

[jboss-user] [JBoss Seam] - Re: Exception Handling Error -> redirect URL is wrong

2007-08-03 Thread jcruise
I also posted about this a while back. It seems like the URL's became relative. In my case it's worse - I have to use the external name, e.g. .jsf rather than .xhtml. I guess I need an update ... or a drink. Cheers J View the original post : http://www.jboss.com/index.html?module=bb&op=viewtop

[jboss-user] [JBoss Seam] - problem with exception handler in CVS HEAD

2007-07-25 Thread jcruise
Exception handling seems to have changed / broken in the latest CVS HEAD. The view-id parameter now seems to assume a relative url, with a jsf extension. This happens even when I am using seam in debug mode. I am getting the following error on an exception: | HTTP Status 404 - /MyApp/myFolde

[jboss-user] [JBoss Seam] - Re: jboss-el limitations for lvals?

2007-07-16 Thread jcruise
If I understand your quetion correctly, it wasn't used to directly set the value on a ValueHolder, it was setting a parameter on a facelet source tag: e.g. not | | but more like: | | | | | | if that helps :) - I don't have the original code to hand any more. Cheers

[jboss-user] [JBoss Seam] - Re: Seam 2 B1 - Ending a process instance fails.

2007-07-10 Thread jcruise
built latest seam and jbpm-jpdl from cvs. Same problem. Workaround is to disable the db scheduler service in jbpm.cfg.xml. Cheers J View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062770#4062770 Reply to the post : http://www.jboss.com/index.html?module=bb&o

[jboss-user] [JBoss Seam] - Seam 2 B1 - Ending a process instance fails.

2007-07-10 Thread jcruise
Tomcat 6 Seam 2 B1 Jboss Embedded Beta 2 Signalling the last task on a process causes the following exception: | Caused by: org.jbpm.JbpmException: couldn't delete jobs for '[EMAIL PROTECTED]' | at org.jbpm.db.JobSession.deleteJobsForProcessInstance(JobSession.java:211) | at org

[jboss-user] [JBoss Seam] - Re: Dropping clean MC support was a Bad Thing :(

2007-07-09 Thread jcruise
Przemek. Thanks for the ref. That shaved off about 10secs. Which is good. Cheers J View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062003#4062003 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062003 _

[jboss-user] [JBoss Seam] - Re: Dropping clean MC support was a Bad Thing :(

2007-07-09 Thread jcruise
+1 Not to mention that I now have 50sec start times instead of 17sec start times since the move to embedded from mc. FYI the upgrade for me involved: upgrading to tomcat 6. upgrading to jboss embedded. downgrading to Java 1.5 (for bug in Jboss embedded) upgrading to eclipse 3.3 (for tomcat 6 su

[jboss-user] [JBoss Seam] - Seam2 Beta s:formattedText bug?

2007-07-04 Thread jcruise
if the value property is null then you get an NPE from the renderer e.g. | java.lang.NullPointerException | at java.io.PrintWriter.write(PrintWriter.java:401) | at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.write(HtmlResponseWriter.java:495) | at org.jboss.seam.ui

[jboss-user] [JBoss Seam] - jboss-el limitations for lvals?

2007-07-01 Thread jcruise
In Seam 1.2.1GA I was not using jboss-el, and I had a value expression passed to a facelet source tag that looked something like this: | value="#{not empty f.expression ? f.expressionValue : f.componentProperty ? value[f.component][f.property] : value[f.name]}" | Now with Seam 2.0B1 (and

[jboss-user] [JBoss Tools (users)] - Re: Couldn't install eclipse plug-ins

2007-06-29 Thread jcruise
Huh? Not sure why we are getting our wires crossed here. My ignorance I'm sure :) To recap: - I install the Jboss tools beta as per instructions. All is good. - I go to add other plugins that I need to get my work done. Apparently there are errors in the jboss tools beta config that I just downl

[jboss-user] [JBoss Tools (users)] - Re: Couldn't install eclipse plug-ins

2007-06-29 Thread jcruise
OK I fixed this by editing a couple of feature.xml files. D:\Development\Seam2\eclipse\features\org.jboss.ide.eclipse.as.feature_1.0.0.200706241629-nightly: | | | | | | | | | |

[jboss-user] [JBoss Tools (users)] - Re: Couldn't install eclipse plug-ins

2007-06-29 Thread jcruise
I also get the message JBossIDE JBossAS Adapter Feature (1.0.0.200706241629-nightly) requires plug-in "org.eclipse.wst.common.project.facet.core (1.1.0)", or equivalent. when using help->software updates->find and install->search for new features and then try and install a new feature e.g. sub

[jboss-user] [JBoss Seam] - Testing without EJB

2007-05-25 Thread jcruise
Hi Does anybody know how to bootstrap the microcontainer in a test class or console app? I am using pojo/hibernate/tomcat so I don't want to use the embedded ejb-3. I tried simply extending SeamTest, using code a bit like this: | public class Administration extends SeamTest { | | En

[jboss-user] [JBoss Seam] - Re: is xhtml a good choice for Facelets templates?

2007-05-24 Thread jcruise
I guess that a lot of us are using facelets as building blocks in componentized user interfaces. In my current application, only the top level templates could rightly be called xhtml files i.e. they look something like: | http://www.w3.org/TR/html4/strict.dtd";> | http://www.w3.org/1999/xht

[jboss-user] [JBoss Seam] - Re: ELSupport exception on javasisst-proxies (coerceToType)

2007-05-17 Thread jcruise
Is this similar to the problem to that I posted yesterday? http://jboss.com/index.html?module=bb&op=viewtopic&t=108741 (the last post being the relevant one) I think this is the situation when you have a select list of POJO objects that you want to assign to a target seam component. If this isn

[jboss-user] [JBoss Seam] - Re: problem with 1.2.1 / tomcat upgrade

2007-05-16 Thread jcruise
Talking to myself in public is such fun. On reflection (and by that I mean the human rather than the virtual form of introspection) I can now see that directly assigning the seam component would be problematic as the component value must be set in a seam context, and the EL RI isn't seam aware

[jboss-user] [JBoss Seam] - Re: problem with 1.2.1 / tomcat upgrade

2007-05-16 Thread jcruise
So here's the line that's causing the failure in the ELSupport class: | if (obj != null && type.isAssignableFrom(obj.getClass())) { | return obj; | } | My JSF code looks like this: | | |

[jboss-user] [JBoss Seam] - problem with 1.2.1 / tomcat upgrade

2007-05-16 Thread jcruise
Hola! I upgraded my 1.2.0PATCH1 tomcat installation with 1.2.1 GA. I basically upgraded the seam libs and any other libs that were newer in the lib directory, including the jsf-facelets and el implementations. I initially had a problem with the switch from cglib to javassist in that one of m