[jboss-user] [JBoss Seam] - Re: Seam + Facelets - pre-rendered xhtml source available to

2007-02-26 Thread petemuir
https://facelets.dev.java.net/nonav/docs/dev/docbook.html#config-webapp-security View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022792#4022792 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022792 __

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-26 Thread petemuir
The WACL should *always* be used as jsf-facelets.jar is in WEB-INF/lib. We don't think its facelets that is the problem, but probably JBoss AS. Anyway, I now have a reasonably simple working testcase of this going wrong (I just need to tidy it up a bit and make it easier to run) - hopefully i'l

[jboss-user] [JBoss Seam] - Re: selectOneMenu and commandButton conflict

2007-02-26 Thread petemuir
Oops, no, this is better | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022357#4022357 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022357 ___ jboss-u

[jboss-user] [JBoss Seam] - Re: selectOneMenu and commandButton conflict

2007-02-26 Thread petemuir
At the very least it should be this | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022328#4022328 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022328

[jboss-user] [JBoss Seam] - Re: Combining list and all CRUD functionality on a single pa

2007-02-26 Thread petemuir
anonymous wrote : I'd like to show my list with key fields only and my edit form with fields for each detail for the selected item. | So when do I start a conversation?On each select? This is the pattern I use for a list/detail page. I I were using an editable table, I would start the conversa

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-25 Thread petemuir
anonymous wrote : And, I found that even if the classloader inside FaceletsRenderer is the WACL then the UCL may be used to initialise facelets. Oops, no, thats not right... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022164#4022164 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-25 Thread petemuir
So, I've run into this (in anger) as well now. 1) Facelets scans the classpath for .taglib.xml files inside of META-INF, and loads them if it finds them (thats what all the load implicit stuff you see is). 2) The UCL doesn't scan WEB-INF/lib (as this is a special war thing). So, if you get th

[jboss-user] [JBoss Seam] - Re: Any way to apply same attribute/value to several tags?

2007-02-25 Thread petemuir
You could easily do this using a container tag (take a look at UIValidateAll) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022120#4022120 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022120 _

[jboss-user] [JBoss Seam] - Re: Combining list and all CRUD functionality on a single pa

2007-02-25 Thread petemuir
anonymous wrote : I'm just wondering whether it makes sense to combine listing and all create, read, update and delete functionality all on the same page? | JSF allows you to do this easily (an editable table, which is a nightmare in PHP type stuff). I suppose you just choose what is best fo

[jboss-user] [JBoss Seam] - Re: problem with the rendered attribute

2007-02-24 Thread petemuir
You would be better off asking this in a JSF forum (Sun's JSF forum perhaps, or myfaces user list if you are using myfaces) as this really isn't a Seam question. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021774#4021774 Reply to the post : http://www.jb

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-24 Thread petemuir
"bsmithjj" wrote : Pete, | | Here is a report on the classloader situation just before I invoke my SLSB that sends email: Sorry, I meant on entry to the method called by JSF (i.e. is something changing your classloader between JSF calling the action method and you calling the MailSenderBea

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-24 Thread petemuir
Brad, I've managed to replicate your problem doing this: Thread.currentThread().setContextClassLoader(facesContext.getClass().getClassLoader()); inside FaceletsRenderer.render() (in the mail example facesContext is using the UCL). I'm not sure under what circumstances the context's classloader

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-24 Thread petemuir
And * If you place everything in the ear myfaces blows up when rendering email * Placing the relevant taglibs where both classloaders can get them is a workaround I *think* that the FaceletsRenderer needs to make sure its using the correct classloader? View the original post : http://www.jbos

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-24 Thread petemuir
So, to sumamrise the problem as I understand it: * the FaceletsRenderer calls out to facelets to render the page (making no alteration to the classloader used) * Normally the classloader used is the WebappClassLoader (it is in the examples always afaics) HOWEVER sometimes it ends up being the JB

[jboss-user] [EJB 3.0] - Re: Altering the transaction timeout

2007-02-24 Thread petemuir
Thanks for the reply James and sorry for the delay in replying - my forum subscriptions went wrong for a bit ;) I'll try this out on Monday. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021586#4021586 Reply to the post : http://www.jboss.com/index.html?mo

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-23 Thread petemuir
This is very useful information :) I'm hoping to work on this at some point this weekend. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021208#4021208 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021208 ___

[jboss-user] [JBoss Seam] - Re: How convertEntity works with the noSelectionLabel

2007-02-23 Thread petemuir
There were some problems with s:selectItems in 1.1.6 (fixed in CVS) which meant that noSelectionLabel didn't work quite right. So, in CVS, if the noSelectionLabel is selected a value of null will be passed to the entity converter, which passes this straight through to the backing bean. I know

[jboss-user] [JBoss Seam] - Re: DataModel selection not getting outjected

2007-02-23 Thread petemuir
You would be better off using 1.1.6 (or 1.1.7 when its released next week) - 1.0.0 is old now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021120#4021120 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021120 ___

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-23 Thread petemuir
Just to check, you're calling Renderer.instance().render(template) from a method that has been called "directly" from JSF not via a JBPM action (or some other indirect method e.g. Events) - i.e. the render is by the method called from JSF or by a method it calls etc. I know there are issues cal

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-23 Thread petemuir
Also, I'll see if I can replicate the problem by restructuring the mail example along the ear layout you've described above. If you could post your application.xml that would help with this :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021054#4021054 Re

[jboss-user] [JBoss Seam] - Re: Wiki entry: SeamEntityHomeForLongRunningContexts

2007-02-23 Thread petemuir
Feel free to update the wiki page :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021023#4021023 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021023 ___ jboss-user mailing

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-22 Thread petemuir
The only reason I ask for a seam-gen based project is that it comes with a build.xml/structure I'm familiar with hence reducing the complexity for me. I'm not going to ask you to send your whole project through as it would takes days to understand it. I'm pretty sure (as are you I think) the pr

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-22 Thread petemuir
As I've said before, this problem is subtle and so to be able to help any further I need a simple example (ideally built on seam-gen) showing the problem. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020812#4020812 Reply to the post : http://www.j

[jboss-user] [JBoss Seam] - Re: Easy way to secure all pages in an app?

2007-02-22 Thread petemuir
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020640#4020640 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020640 ___ jboss-user mailing list jboss-user@lists.jboss.org htt

[jboss-user] [JBoss Seam] - Re: Setting a

2007-02-22 Thread petemuir
So I think the thing is here that unless Seam actually started providing a basic User class (which would be a bad thing as this is domain model specific) there is no sensible way to store any information about the user on Identity. FWIW I just extend Identity and add get/setUser methods to it (

[jboss-user] [JBoss Seam] - Re: injection into stateless bean (which is called from an M

2007-02-22 Thread petemuir
Please post some code, your description is hard to follow. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020602#4020602 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020602

[jboss-user] [JBoss Seam] - Re: , and Trinidad

2007-02-21 Thread petemuir
1, 2) Yup, they really need to create an xhtml div/css based renderer (IMO) - I suppose we should start nagging ;) http://jira.jboss.org/jira/browse/JBSEAM-501 - easy but waiting on them releasing :( Can you just use h:input***? View the original post : http://www.jboss.com/index.html?module=

[jboss-user] [JBoss Seam] - Re: , and Trinidad

2007-02-21 Thread petemuir
You know that Trinidad does most of this for you right? (but if you want to customise what it looks like...) - it flags invalid fields with a cross, and puts the error message underneath. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020038#4020038 Reply to

[jboss-user] [JBoss Seam] - Re: Date

2007-02-20 Thread petemuir
Just use a factory View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019597#4019597 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019597 ___ jboss-user mailing list jboss-user@l

[jboss-user] [JBoss Seam] - Re: Setting a

2007-02-20 Thread petemuir
The message can be overridden in your resource bundle with the property key org.jboss.seam.loginSuccessful. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019591#4019591 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=40

[jboss-user] [JBoss Seam] - Re: Commented code + value change listeners parsed by Seam e

2007-02-20 Thread petemuir
2) As it's in the commented code it gets treated as a valuebinding rather than a method binding (JSF is attempting to just write it out as part of the comment). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019589#4019589 Reply to the post : http://www.jbo

[jboss-user] [JBoss Seam] - Re: Is managing conversations in *.page.xml files good pract

2007-02-20 Thread petemuir
It's pretty new (since 1.1.5 or 1.1.6) (hence no examples) but I have to say I find it wonderful (I use a mix of .page.xml and pages.xml - and there should be /path/to//view/pages.xml soon for a medium-granularity approach). I find it fits *really* well with putting navigation in pages.xml - its

[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-02-20 Thread petemuir
"lightbulb432" wrote : For example, in a list of entities I'd like to show next to it the result of a query (i.e. that value isn't stored as a property of the entity, but is evaluated as a result of a query). You could use the map hack for this (look at Seam's isUserInRole) or preprocess as I m

[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-02-20 Thread petemuir
"lightbulb432" wrote : What is the recommended method of executing a query for each line in a DataModel or list of entities on a page upon each load? You can't do it like this. You would have to preprocess the list in your factory method. Normally you can avoid doing this by getting the datamo

[jboss-user] [JBoss Seam] - Re: selectOneMenu and commandButton conflict

2007-02-20 Thread petemuir
#{application.name} references a String, you are trying to set it with a Application object. Likewise for language.Read up on JSF converters and what they do. And take a look at the EntityConverter on the wiki as it does what you are trying to do for you... View the original post : http:

[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-20 Thread petemuir
It looks to me like ejb3 is swallowing the stack trace (it has an annoying habit of doing this in async stuff). We need the stack of the original exception (wrap your code in a try-catch and use e.printStackTrace()). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtop

[jboss-user] [JBoss Seam] - Re: SFSB vs SLSBs for implementing actions in a conversation

2007-02-20 Thread petemuir
"lawrieg" wrote : Are you saying that all you have to do to make a Seam-managed Javabean component is inject EntityManager and mark all methods as @Transactional and it will then give you the same behaviour as a SFSB (i.e. the only difference is that Seam handles storing and fetching the compone

[jboss-user] [JBoss Seam] - Re: selectOneMenu and commandButton conflict

2007-02-20 Thread petemuir
You've probably got errors occuring on the coversion, validation or update model phase. Put an h:messages component on the page to see. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019302#4019302 Reply to the post : http://www.jboss.com/index.html?module=

[jboss-user] [JBoss Seam] - Re: SFSB vs SLSBs for implementing actions in a conversation

2007-02-20 Thread petemuir
"lawrieg" wrote : Now where I'm getting bit lost (and I might be being a bit thick because I'm full of flu and didn't get much sleep last night) is how you would actually implement the Seam-managed Javabeans approach. How does Seam know to make a regular Javabean into a Seam-managed Javabean (an

[jboss-user] [JBoss Seam] - Re: How to disable action in

2007-02-20 Thread petemuir
Just | | surely? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019277#4019277 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019277 ___ jboss-user mailing list jbos

[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-02-20 Thread petemuir
As mentioned in the docs you can only use the EL enhancement on method bindings, not value bindings (i.e. a get/is/set) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019243#4019243 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mod

[jboss-user] [JBoss Seam] - Re: When is @Out necessary?

2007-02-20 Thread petemuir
You might want to outject something from a conversation scoped component (where you can use your SMPC to prevent LIEs) to the businessprocess scope. As for variable name - perhaps in a large app where you want shorter names in the class? View the original post : http://www.jboss.com/index.htm

[jboss-user] [JBoss Seam] - Re: Factory and injection in EntityHome

2007-02-19 Thread petemuir
Build a very very simple example (that *just* shows this) created using seam-gen from current CVS, remove the lib dir, and email it to me (pmuir at bleepbleep dot org dot uk) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019043#4019043 Reply to the post :

[jboss-user] [JBoss Seam] - Re: SFSB vs SLSBs for implementing actions in a conversation

2007-02-19 Thread petemuir
Tbh I haven't found much difference between one strategy and the other - you don't have to write interfaces with Seam Java Beans (+1), its fewer annotations, and I generally have no need of anything a SF/SLSB gives me over a JavaBean ( + I use the EntityHome/EntityController stuff very extensive

[jboss-user] [JBoss Seam] - Re: SFSB vs SLSBs for implementing actions in a conversation

2007-02-19 Thread petemuir
Just to complicate it even further you can use Seam managed JavaBeans with methods marked @Transactional and an SMPC instead (these are by default conversational - e.g. EntityHome). I tend to use these instead of SLSB/SFSB View the original post : http://www.jboss.com/index.html?module=bb&op=v

[jboss-user] [JBoss Seam] - Re: Problem debugging Seam apps in Eclipse/JBossIDE

2007-02-19 Thread petemuir
Nope. I use an seam-gen based ant script, I just add -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n as 'VM arguements' to the server launch config, start it in normal mode, then attach a debugger as described. I've never got it to launch using the debug start. View the

[jboss-user] [JBoss Seam] - Re: outject problem

2007-02-19 Thread petemuir
Sorry, I'm blind :( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018905#4018905 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018905 ___ jboss-user mailing list jboss-user@

[jboss-user] [JBoss Seam] - Re: outject problem

2007-02-19 Thread petemuir
You probably need to be in a conversation View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018896#4018896 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018896 ___ jboss-user ma

[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-19 Thread petemuir
Post the stack trace. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018893#4018893 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018893 ___ jboss-user mailing list jboss-use

[jboss-user] [JBoss Seam] - Re: Problem debugging Seam apps in Eclipse/JBossIDE

2007-02-19 Thread petemuir
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=98294 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018865#4018865 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018865

[jboss-user] [JBoss Seam] - Re: parameterised method receives null object

2007-02-19 Thread petemuir
You've misspelt the parameter. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018860#4018860 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018860 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: Help, who uses EntityHome with SFSB? I don't know how to

2007-02-19 Thread petemuir
[url]http://jira.jboss.org/jira/browse/JBSEAM-474[/ur] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018848#4018848 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018848 ___

[jboss-user] [JBoss Seam] - Re: extended EL & rendered=

2007-02-19 Thread petemuir
No, it's for method bindings only. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018833#4018833 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018833 ___ jboss-user mailing l

[jboss-user] [JBoss Seam] - Re: Seam, Trinidad, Ajax4Jsf and Facelets

2007-02-19 Thread petemuir
I never managed to get the EL extension working with Trinidad (no Ajax4JSF in there) - have others? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018826#4018826 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018826 __

[jboss-user] [JBoss Seam] - Re: Fill selectOneMenu on page load.

2007-02-19 Thread petemuir
"grdzeli_kaci" wrote : i could not find about converter into seam-ui examples. | examples/ui/src/org/jboss/seam/example/ui/Converters View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018755#4018755 Reply to the post : http://www.jboss.com/index.html?module=

[jboss-user] [JBoss Seam] - Re: Fill selectOneMenu on page load.

2007-02-19 Thread petemuir
That (obviously) is a problem with your converter. Either try the entityConverter as I suggested or take a look at the Seam ui-example for how to write a suitable converter. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018733#4018733 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Fill selectOneMenu on page load.

2007-02-19 Thread petemuir
try | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018722#4018722 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018722 ___ jboss-user mailing list jbos

[jboss-user] [JBoss Seam] - Re: java.lang.out of memory error permgen space

2007-02-18 Thread petemuir
Yup, I find jrockit avoids all the permgen stuff and decreases my JBoss AS start time to about 3/5ths. Apparently Java 6 also improves performance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018584#4018584 Reply to the post : http://www.jboss.com/index.

[jboss-user] [JBoss Seam] - Re: refdoc ant target is broken in CVS

2007-02-18 Thread petemuir
Oops. Thanks for that, fixed in CVS View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018521#4018521 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018521 ___ jboss-user mailing

[jboss-user] [JBoss Seam] - Re: s:selectItems - whto work

2007-02-18 Thread petemuir
Please wait for 1.1.7.GA or use Seam from CVS (sorry, this was a bug in 1.1.6.GA) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018472#4018472 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018472

[jboss-user] [JBoss Seam] - Re: Problem with Hibernate

2007-02-17 Thread petemuir
You need to post the exception (and full stack trace) that occurs earlier in startup View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018339#4018339 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018339 _

[jboss-user] [JBoss Seam] - Re: Problems with navigations with null outcomes

2007-02-17 Thread petemuir
Try | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018319#4018319 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=40183

[jboss-user] [JBoss Seam] - Re: Seam Gen template error?

2007-02-17 Thread petemuir
Put it in JIRA :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018318#4018318 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018318 ___ jboss-user mailing list jboss-user@li

[jboss-user] [JBoss Seam] - Re: Disable event-based validation

2007-02-17 Thread petemuir
Ask this on the hibernate JSR-220 forum. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018316#4018316 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018316 ___ jboss-user mai

[jboss-user] [JBoss Seam] - Re: @DataModel doesn't load the first time

2007-02-17 Thread petemuir
Sounds like for some reason the datamodel isn't getting outjected straight away. Perhaps try outputting a logical outcome and specifying a redirect navigation rule *might* help. Otherwise you could try explicitly clearing the searchResults varialbe in basicSearch() - or try using an EntityQuer

[jboss-user] [JBoss Seam] - Re: OneToMany does not load

2007-02-17 Thread petemuir
Put a break point on the District.getStores() method and see what the stores variable contains. If it has only one store then the problem is hibernate related (so ask there as you'll get more help), otherwise come back here. Make sure you are working with an uptodate version of the entity. Vi

[jboss-user] [JBoss Seam] - Re: s:selectItems - whto work

2007-02-16 Thread petemuir
For problem 1: Is your SMPC called entityManager? If not are you correctly telling the entityConverter what it is called (see the wiki). If you put a breakpoint at AbstractEntityConverter:170 can you check that (a) whether the correct Lookup is used and (b) whether the correct entityManager is

[jboss-user] [JBoss Seam] - Re: EntityHome persist problem

2007-02-16 Thread petemuir
1) Make sure you are in a conversation 2) components.xml IIRC but that error is more serious and means the entityconverter hasn't been able do its job. Make sure you are using 1.1.6 not 1.1.5. Are you getting that error when you don't select an option? View the original post : http://www.jb

[jboss-user] [JBoss Seam] - Re: Remove from list using EntityHome

2007-02-16 Thread petemuir
"lightbulb432" wrote : "petemuir" wrote : My best guess as to why it fails from what you've said is that by passing the instance through the datamodel like that it has become unmanaged so cannot be removed - you can check this by calling entityManager.contains().

[jboss-user] [JBoss Seam] - Re: Remove from list using EntityHome

2007-02-16 Thread petemuir
This is an equally valid way of doing it (and neat as well - avoids exposing your id's to the world) but I guess it's tricky to get working. My best guess as to why it fails from what you've said is that by passing the instance through the datamodel like that it has become unmanaged so cannot be

[jboss-user] [JBoss Seam] - Re: EntityHome persist problem

2007-02-16 Thread petemuir
Put a h:message component on the selectOneListbox (or better still keep a h:messages component running for the whole page during devel) and check what validation/update/conversion errors you are getting. And I've never had a problem with the style the ref manual recommends for EntityHome's and

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-16 Thread petemuir
Also, specifically, I would make sure you have facelets and myfaces-impl not in the ear root but either in jsf-libs or WEB-INF/lib View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017643#4017643 Reply to the post : http://www.jboss.com/index.html?module=bb&op=

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-16 Thread petemuir
I agree its classloading related. As I said, I can take a look, but i'm not convinced I would have any more luck than you! So, this is how I lay it out: 1) Use the default JBoss (4.0.5.GA) install (so myfaces in jsf-libs) 2) Put everything I can, especially the jars that provide UI (so jsf-face

[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-16 Thread petemuir
You have in your components.xml right? As Seam's Identity is not marked @Install(value=false) by putting that line in components.xml you end up creating an Identity component (which has APPLICATION precedence (as per the defaults)). So, what you in fact need to do, in components.xml, is to c

[jboss-user] [JBoss Seam] - Re: Protected methods on Seam components

2007-02-16 Thread petemuir
[Sorry about the rant below - I would claim its an attempt to drag back on topic, but as I can't answer the question I guess it isn't ;)] "fhh" wrote : It means that they are only accessible from subclasses or from any class of that package. Anyway, that is not a security feature. It is used to

[jboss-user] [JBoss Seam] - Re: Exception getting value of property resultList of base o

2007-02-16 Thread petemuir
This is key part of the above stack trace: Caused by: org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [select user from User user] I would infer from this that something went wrong with your generate entities. Does the User object exist and is it mapped? View the original post

[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-16 Thread petemuir
I use this: @Name("org.jboss.seam.security.identity") | public class Identity extends org.jboss.seam.security.Identity { | | ... | |public static Identity instance() { | if ( !Contexts.isSessionContextActive() ) { | throw new IllegalStateException("No active sess

[jboss-user] [JBoss Seam] - Re: Remove from list using EntityHome

2007-02-16 Thread petemuir
Use page parameters: | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017531#4017531 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017531 ___ jbos

[jboss-user] [JBoss Seam] - Re: Inject Seam Component In Entity Bean

2007-02-16 Thread petemuir
It makes it harder to use a bad architecture/design ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017521#4017521 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017521 ___

[jboss-user] [JBoss Seam] - Re: Inject Seam Component In Entity Bean

2007-02-16 Thread petemuir
No, bijection (and almost all other Seam annotations) doesn't happen in entities. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017507#4017507 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017507

[jboss-user] [EJB 3.0] - Altering the transaction timeout

2007-02-15 Thread petemuir
Hi I'm trying to import a large amount of data (using JDBC) and I hit the TransactionTimeout (as defined in jta-service.xml). I know I can alter the timeout in jta-service.xml, but I would really prefer to just alter it for the import method, not the whole application. Is this possible? TIA

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-15 Thread petemuir
No, I've only tested with the version that Seam is currently including (1.1.12). If you've worked through my above suggestions, please put a simple example that shows the problem in JIRA and I'll work through it. Btw, sorry about being terse yesterday ;) View the original post : http://www.jbo

[jboss-user] [JBoss Seam] - Re: Partial Validation

2007-02-15 Thread petemuir
1) Use ajax (a4j works well with Seam, and the booking example shows partial validation) 2) Don't use ajax, make sure the fields which aren't validated til later aren't rendered until the first set of fields are valid. View the original post : http://www.jboss.com/index.html?module=bb&op=viewt

[jboss-user] [JBoss Seam] - Re: Problem injecting DataModelSelection between two SFSB

2007-02-15 Thread petemuir
@DataModel and @DataModelSelection should be on the same bean. If you want to use two beans then you should use the page parameter method (see a seam-gen built project for an example) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016944#4016944 Reply to th

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-14 Thread petemuir
Hmm. I have to say I haven't seen this before. Can you get the mail example working? I would suggest following it's layout - jboss-seam-mail.jar and jboss-seam-ui.jar, jsf-facelets.jar in WEB-INF/lib rather than the ear (and really myfaces-api/impl as well) Otherwise, I would suggest wrappi

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-14 Thread petemuir
myfaces or ri? portal or normal? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016549#4016549 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016549 ___ jboss-user mailing lis

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-02-14 Thread petemuir
What environment are you in? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016521#4016521 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016521 ___ jboss-user mailing list jb

[jboss-user] [JBoss Seam] - Re: s:selectItems - whto work

2007-02-14 Thread petemuir
Could you create a jira and attach a compileable, runnable project that shows the problem. Thanks :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016429#4016429 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016429

[jboss-user] [JBoss Seam] - Re: s:selectItems - whto work

2007-02-14 Thread petemuir
Are you inside a conversation? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016394#4016394 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016394 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: Seam and XML configuration files doubt

2007-02-14 Thread petemuir
I think that /path/to/my/pages.xml is a good idea (similar to /my/package/components.xml). If you like this, please add a feature request to JIRA (Gavin may say no, but we can see ;) ) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016349#4016349 Reply to t

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-02-14 Thread petemuir
But beware, if you are using core:resourceBundle in components.xml, you'll need to change it to point at your overridden resource bundle View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016327#4016327 Reply to the post : http://www.jboss.com/index.html?module

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-02-14 Thread petemuir
Not quite ExtendedResourceBundle.java | ... | @Name("org.jboss.seam.core.resourceBundle") | public class ExtendedResourceBundle extends org.jboss.seam.core.ResourceBundle | ... | @Override | protected ResourceBundle loadBundle(String bundleName) { | try { | Resou

[jboss-user] [JBoss Seam] - Re: Advise needed: Conversations vs. navigation menu

2007-02-14 Thread petemuir
well, as long as the navigation item will take an f:param you can do it that way (see the Seam ref docs). You can have more than one conversation running at once, you just can't have more than one active conversation! View the original post : http://www.jboss.com/index.html?module=bb&op=viewto

[jboss-user] [JBoss Seam] - Re: Advise needed: Conversations vs. navigation menu

2007-02-14 Thread petemuir
Just make sure that a navigation doesn't propagate the conversation (remember non-Faces requests don't, or use an s:link with propagation="none"). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016281#4016281 Reply to the post : http://www.jboss.com/index.ht

[jboss-user] [JBoss Seam] - Re: Facelet TagHandler in seam.

2007-02-13 Thread petemuir
I assume you mean jsf-facelets.jar in WEB-INF/lib folder - if not that might be the problem. Otherwise you need to you need to make sure that jsf-facelets.jar is available to the classloader that is loading the tag - i.e. if jsf-facelets jar is in the war, the ComponentHandler should be as wel.

[jboss-user] [JBoss Seam] - Re: pages.xml Versus *.jpdl.xml

2007-02-13 Thread petemuir
My rule of thumb is to use a pageflow where there is a natural flow (often some sort of wizard) - the user wants to be able to work their way through solving a complex problem. On the other hand pages.xml is brilliant for even the most complex (in my book lots of tabs) CRUD. I really like bein

[jboss-user] [JBoss Seam] - Re: and selectMany

2007-02-13 Thread petemuir
The ui-example example demonstrates s:selectItems. As the entity converter is not currently in Seam, there isn't an example for it in Seam ;) http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamEntityConverter - the dist for this contains an example directory - the directory is based upon the old S

[jboss-user] [JBoss Seam] - Re: and selectMany

2007-02-13 Thread petemuir
Please read the tips and troubleshooting section on the wiki. N.B. You would be better off using 1.1.6, s:selectItems and ec:entityConverter. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015960#4015960 Reply to the post : http://www.jboss.com/index.html?m

[jboss-user] [JBoss Seam] - Re: Seam Mail and multipart/alternative bug ?

2007-02-13 Thread petemuir
Thanks, this is fixed in CVS http://jira.jboss.org/jira/browse/JBSEAM-770 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015872#4015872 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015872

[jboss-user] [JBoss Seam] - Re: Seam mail did not work in Tomcat

2007-02-13 Thread petemuir
http://jira.jboss.org/jira/browse/JBSEAM-840 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015764#4015764 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015764 ___ jboss-user

<    5   6   7   8   9   10   11   12   13   14   >