[JBoss-user] [JBoss Seam] - Re: Clean Seam installation - but errors, errors, errors...

2006-07-10 Thread petemuir
Perhaps you should try the 1.0.1.GA release of Seam? (http://labs.jboss.com/portal/jbossseam/download/index.html). I think no garuntees are made about CVS head being runnable. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956562#3956562 Reply to the post :

[JBoss-user] [JBoss Seam] - Re: Seam mailer component

2006-07-10 Thread petemuir
I added a link on the Wiki to the blog entry under a new heading - Components. Would you prefer a copy of the entry? I've also added a JasperReports component that compiles (at the time Seam starts) reports designs defined in components.xml and makes them available for injection. View the

[JBoss-user] [JBoss Seam] - Re: Seam mailer component

2006-07-10 Thread petemuir
No it can only send email. When I wrote this I started off with the JavaMail API (which jboss has an impl of) which CAN be used to receive email but changed to commons email (which is build on JavaMail API) as it presented an easier to use interface. And I have no need to receive emails ;) I

[JBoss-user] [JBoss Seam] - Re: How to use Annotation attributes that are variables

2006-07-10 Thread petemuir
From http://java.sun.com/j2se/1.5.0/docs/guide/language/annotations.html anonymous wrote : | Annotations consist of an at-sign (@) followed by an annotation type and a parenthesized list of element-value pairs. The values must be compile-time constants. View the original post :

[JBoss-user] [JBoss Seam] - Re: Entities with one/many_to_many relationships and SEAM

2006-07-10 Thread petemuir
Look at the SelectItems thread, it discusses support for selectitems and contains links to a couple of SelectItems implementations (but I don't think either of them are finalised). I'll try to get mine packaged properly over the next day or two and I may alter the API. View the original post

[JBoss-user] [JBoss Seam] - Re: Entities with one/many_to_many relationships and SEAM

2006-07-10 Thread petemuir
I'm sorry, I'm not quite sure what you mean. The @SelectItems annotation (mine, not Jim's) in concert with the EntityConverter allows you to select multiple objects (from a generated list) and set them 'directly' (via the value attribute) as a collection on any object. The only caveat is that

[JBoss-user] [JBoss Seam] - Re: How to tweak output based on HTTP header for wired/mobil

2006-07-10 Thread petemuir
http://facelets.dev.java.net is the facelets homepage, it's linked off there, nabble carries it, perhaps others. Gavin et al, this is perhaps something that that should be on the FAQ. In fact, can the FAQ be a wiki page so it is easily editable? Or developed on the wiki or something? View

[JBoss-user] [JBoss Seam] - Re: Long running transaction - multiple save points?

2006-07-09 Thread petemuir
Do the popups share entitiy beans or are entities attached to only one popup? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956411#3956411 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956411

[JBoss-user] [JBoss Seam] - Re: Is Master-Detail possible in Seam

2006-07-09 Thread petemuir
Yes it is. Perhaps if you post code and where you are having problems someone can help? The problem you mention, duplicate entry of child row: perhaps you aren't creating a new child object for the second add? I have such a page, it is based on a generic superclass that provides the standard

[JBoss-user] [JBoss Seam] - Re: DataModelSelection without Outjection?

2006-07-09 Thread petemuir
Please show the getter and setter for #{messageManager.message} Also you could show a simple facelets page which produces the error and the stacktrace. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956414#3956414 Reply to the post :

[JBoss-user] [JBoss Seam] - Re: DataModelSelection without Outjection?

2006-07-09 Thread petemuir
I'm not sure about the set up of your pages but you do have @In(create=true,required=false) with no equivalent message = new FMessage() in the second code segment. This could cause an NPE. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956418#3956418 Reply to

[JBoss-user] [JBoss Seam] - Re: Long running transaction - multiple save points?

2006-07-09 Thread petemuir
I think I understand what you're trying to design (perhaps I don't thought ;) I do something similar: For new users/whatever I have a wizard that includes the relevant detail page for that step. For editing I use a tabbed panel (tomahawk atm) and include the detail page (same as included for

[JBoss-user] [JBoss Seam] - Re: Is Master-Detail possible in Seam

2006-07-09 Thread petemuir
@TransactionAttribute(TransactionType.NOT_SUPPORTED) FlushMode.NEVER got removed from the EJB3 spec unfortunately, I know hibernate were going to provide it anway but it doesn't seem to be there atm. View the original post :

[JBoss-user] [JBoss Seam] - Seam mailer component

2006-07-09 Thread petemuir
I created a manager component for Apache Commons email; I've included an example to show how to use it. * http://bigbob.splendid.co.uk/mailer.zip - Mailer component * http://jroller.com/page/pmuir?entry=mailer_component_for_seam - Blog Entry View the original post :

[JBoss-user] [JBoss Seam] - Re: the bundled hibernate doesn't work @oneToOne shared prim

2006-07-08 Thread petemuir
I suggest you ask in the EJB3 or hibernate forum. This problem is nothing to do with Seam. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956339#3956339 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956339 Using Tomcat

[JBoss-user] [JBoss Seam] - Re: what is the mc-conf.jar?

2006-07-08 Thread petemuir
anonymous wrote : can anyone explain about the mc-conf.jar? I want to know if that file is the same for every application or it will differ? if no, which configuration should be placed on that file. I'm not sure myself, but google tells me

[JBoss-user] [JBoss Seam] - Re: the bundled hibernate doesn't work @oneToOne shared prim

2006-07-08 Thread petemuir
Can you post all your code including the AccountOwner class. It would also be easier to help if you simplyfy your problem to as basic a class as possible BUT include all the code in the class. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956342#3956342

[JBoss-user] [JBoss Seam] - Re: Accessing a protected JSF page causes

2006-07-08 Thread petemuir
It looks to me as though your pages.xml file is not well formed and causing a parsing exception. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956343#3956343 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956343 Using

[JBoss-user] [JBoss Seam] - Re: How to tweak output based on HTTP header for wired/mobil

2006-07-08 Thread petemuir
anonymous wrote : 1. How do I read an HTTP header value that was passed by the client? I think FacesContext.getCurrentInstance().getExternalContext().getRequestHeaderMap(); will contain this. anonymous wrote : 2. How do I intercept the (partially?) rendered output, tweak it, and send it on

[JBoss-user] [JBoss Seam] - Re: the bundled hibernate doesn't work @oneToOne shared prim

2006-07-08 Thread petemuir
There is a lot of discussion on the hibernate ejb forum about this. I did try something similar a few months ago and couldn't get it to work. But, looking at the hibernate annotations test suite there are tests which show it working - take a look, copy the example that seems most like what you

[JBoss-user] [JBoss Seam] - Re: the bundled hibernate doesn't work @oneToOne shared prim

2006-07-08 Thread petemuir
Ok, I see what you mean; I agree, I think this is something that should work. Looking at what I wrote I used @PostPersist to set the Id on OneToOne relationships, but then I don't seem to have cascaded the persist so I'm not sure if that will work in this case. View the original post :

[JBoss-user] [JBoss Seam] - Re: selectBooleanCheckbox with a dataTable

2006-07-08 Thread petemuir
Often when an action method seems not to be called it is because an error occured in the JSF lifecycle BEFORE the INVOKE_APPLICATION phase (which is when the action method is called). Do you see in any errors (probably related to model update) in h:messages /? View the original post :

[JBoss-user] [JBoss Seam] - Re: Help on converting to myfaces/tiles + JSF + EJB3 + Seam

2006-07-07 Thread petemuir
JSF automatically loads faces-config.xml so you shouldn't have a specific reference to it in web.xml. You only need to put other files to load in javax.faces.CONFIG_FILES. If you do include it it gets loaded twice and hence all sorts of bad stuff happens (e.g. two Seam Phase Listeners are

[JBoss-user] [JBoss Seam] - Re: Seam 1.0.0.GA

2006-07-07 Thread petemuir
You shouldn't need to do either (1) or (2) you mention to get Seam examples to work. Did you follow http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamInstallation, specifically using the JEMS installer NOT the JBoss AS installer with ejb3 profile? Gavin's instructions at the top of this post are

[JBoss-user] [JBoss Seam] - Re: dataTable with method execution per row

2006-07-07 Thread petemuir
You could always preprocess the list. Mark the status field in the user Entity @Transient (so that it isn't persisted by the container). In updateUserList() iterate over the list created by the database query setting status as you go (here you could interogate other entites, SOAP, whatever).

[JBoss-user] [JBoss Seam] - Re: @Unwrap bug?

2006-07-06 Thread petemuir
http://jira.jboss.com/jira/browse/JBSEAM-283 might be relevant? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955924#3955924 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955924 Using Tomcat but need to do more? Need to

[JBoss-user] [JBoss Seam] - Re: Enable Seam Debug Logging

2006-07-05 Thread petemuir
By default JBoss logs to $JBOSS_HOME/server/default/log/server.log . By default it logs Seam debug messages. Or are you not using JBoss? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955433#3955433 Reply to the post :

[JBoss-user] [JBoss Seam] - Re: Enable Seam Debug Logging

2006-07-05 Thread petemuir
I don't know anything about Tomcat, sorry. But you'll need to find out where it logs to (what you get in eclipse is the console output which is typically less verbose than the log) and, then, if there are no debug messags from Seam, adjust the Tomcat log configuration so that they do appear.

[JBoss-user] [JBoss Seam] - Re: @Out(jected) list Scope problem

2006-07-05 Thread petemuir
The value of the context variable someList will only last for each request BUT the value of someList in the action component will last for the entire conversation. For the factory method to run the component value must be null as well. Either make the component stateless or set someList to

[JBoss-user] [JBoss Seam] - Re: Misunderstanding of how @In works.

2006-07-05 Thread petemuir
Try changing | @In(create=true) | private CalculatorBean cb; | to | @In(create=true, value=calculator) | private CalculatorBean cb; | Seam uses the name of the component variable as the name of the context variable by default; in the code you gave the context variable

[JBoss-user] [JBoss Seam] - Re: i18n gotcha suggested by Seam manual

2006-07-05 Thread petemuir
Try the alternative syntax: | h:outputText value=#{messages['repeat.password']} / | h:outputText value=#{messages['repeat-password']} / | I agree, the dot notation is most useful as it allows you 'package' messages e.g. customer.name, button.ok. View the original post :

[JBoss-user] [JBoss Seam] - Re: @SelectItems and @SelectItemsSelection annotations?

2006-07-05 Thread petemuir
I'm just packaging my @SelectItems implementation to put it on the wiki. What package name is best to use? Something under org.jboss.seam? org.jboss.seam.extensions.selectitems perhaps? Also what namespace for taglib.xml. Seam's uses http://jboss.com/products/seam/taglib so perhaps

[JBoss-user] [JBoss Seam] - Re: @SelectItems and @SelectItemsSelection annotations?

2006-07-05 Thread petemuir
I think that contrib is better than extensions. I'm pretty sure that the xml namespace must be a uri which limits choice somewhat. Seam Gods, what say ye? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955688#3955688 Reply to the post :

[JBoss-user] [JBoss Seam] - Re: @SelectItems and @SelectItemsSelection annotations?

2006-07-04 Thread petemuir
I've put my version here: http://bigbob.splendid.co.uk/selectitems.tar.gz. It works well but isn't well packaged (no examples etc.). If I get time to tidy it up I'll put it on the wiki. anonymous wrote : | The attached files provide a @SelectItems databinder for Seam. It has a label

[JBoss-user] [JBoss Seam] - Re: Event Producer VS Event Consumer.(Component-driven event

2006-07-04 Thread petemuir
I have used component driven events a few times in my application and have found having the payload in contexts to be good. I think that it 'fits' well with seam design: the data/objects required by the consumer may be from the payload, or from session or application contexts. By using the

[JBoss-user] [JBoss Seam] - Re: How to access datatable row from a converter. All is co

2006-07-01 Thread petemuir
I would suggest using a Validator to do validation, not a Converter (concept clarity, aviods a pointless getAsString() method). A few ideas: I'm not sure you can get anything except the value in this case - the component and its parent (etc) are of no use. My best suggestion is to write a

[JBoss-user] [JBoss Seam] - Re: How to access datatable row from a converter. All is co

2006-07-01 Thread petemuir
For your 'limit' validator you could go pass in the limit value directly to your custom validator: my:validateLimit limit=#{backingBean.limit} / - again how it works with dataTable I'm not sure. The trouble with the inbuilt: f:validateLongRange minimum=0 maximum=#{backingBean.limit} / is

[JBoss-user] [JBoss Seam] - Re: Error during model data update, but no exception in the

2006-06-29 Thread petemuir
Model update is a JSF lifecycle phase, it has nothing to do with entity persistence. I've found model update errors often occur when the object it refers to is null, but I would suggest using the debugger to find out more Depending on the setting of hibernate.hbm2ddl.auto in persistence.xml

[JBoss-user] [JBoss Seam] - Re: Stateful session bean vs. session Context, which one is

2006-06-29 Thread petemuir
Seam has a number of contexts available (http://docs.jboss.com/seam/1.0.1.GA/reference/en/html/concepts.html#d0e2021). SFSBs are used for any stateful context, SLSBs are used for a stateless context. They are all useful in the same project for different things - look at the booking store

[JBoss-user] [JBoss Seam] - Re: Request parameter arrays?

2006-06-29 Thread petemuir
You could try getting the value programmatically | @In FacesContext facesContext | ... | | facesContext.getExternalContext().getRequestParameterMap().get(schoolList); | Alternatively why not use a JSF component (selectManyListbox) and inject selection as a list View the original

[JBoss-user] [JBoss Seam] - Re: Jboss seam tomahaw integration of jscookmenu

2006-06-29 Thread petemuir
Are you sure you don't have two copies of the Tomahawk/Myfaces jars in your source path? It looks to me like although you have an array of NavigationMenuItem it's not being recognised as such. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954433#3954433

[JBoss-user] [JBoss Seam] - Re: Stateful session bean vs. session Context, which one is

2006-06-29 Thread petemuir
http://docs.jboss.com/seam/1.0.1.GA/reference/en/html/configuration.html#d0e4853 @PeristenceContext/@PersistenceContext(type=EXTENDED) are the EJB3/JPA standard annotations for injecting a PC. @In(create=true) is the Seam way, which, as discussed in the manual, means that

[JBoss-user] [JBoss Seam] - Re: Request parameter arrays?

2006-06-29 Thread petemuir
Caused by: org.jboss.seam.RequiredException: In attribute requires value for component: infozapAction.context is the cause of your exception. NB you can also access the FacesContext as | FacesContext ctx = FacesContext.getCurrentInstance(); | View the original post :

[JBoss-user] [JBoss Seam] - Re: Request parameter arrays?

2006-06-29 Thread petemuir
Yeah, facesContext is the name of a provided seam component View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954453#3954453 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954453 Using Tomcat but need to do more? Need to

[JBoss-user] [JBoss Seam] - Re: Request parameter arrays?

2006-06-29 Thread petemuir
If getting it via FacesContext works (for a multi select) but not via @RequestParameter I suggest you file a bug in Jira. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954454#3954454 Reply to the post :

[JBoss-user] [JBoss Seam] - Re: Stateless Login Problems

2006-06-29 Thread petemuir
I think you are on the right track by switching to a Seam managed persistence context. Have you configured a SMPC in components.xml called em as described in the docs[1]? [1]http://docs.jboss.com/seam/1.0.1.GA/reference/en/html/configuration.html#d0e4853 View the original post :

[JBoss-user] [JBoss Seam] - Re: Why use the @In annotion?

2006-06-29 Thread petemuir
Have you read http://docs.jboss.com/seam/1.0.1.GA/reference/en/html/concepts.html#d0e2511 and the examples in Chapter 1? For your example, a JSF input component with a value=#{mo} would have the value entered by the user injected into your backing bean. View the original post :

[JBoss-user] [JBoss Seam] - Re: Stateless Login Problems

2006-06-29 Thread petemuir
I suggest you post a (simple as possible) example of the JSF pages, classes and stacktrace where you get the LIE View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954505#3954505 Reply to the post :

[JBoss-user] [JBoss Seam] - Re: Cannot configure datasource

2006-06-28 Thread petemuir
I think this is becuase the datasource you reference in persistence.xml isn't available. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3953956#3953956 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953956 Using Tomcat but

[JBoss-user] [JBoss Seam] - Re: Acces EntityManager from outside of ejb beans(Custome JS

2006-06-27 Thread petemuir
You can look up the entity manager in JNDI. In persistence.xml ensure that the EntityManager is registered in JNDI: property name=jboss.entity.manager.jndi.name value=java:/EntityManager / and then look it up in JNDI in the validator. Alternatively you can use Component.newInstance(...) to

[JBoss-user] [JBoss Seam] - Re: HELP: do you have to publish every changes you made manu

2006-06-14 Thread petemuir
You can use hotcode replacement when in debug mode for java code (allows replacement of function body). You can use exploded ear/war/jar for jsf pages, you still need to get the .xhtml/.jsp file from your development location into the exploded ear (but you could write an ant task for this that

[JBoss-user] [JBoss Seam] - Re: HELP: do you have to publish every changes you made manu

2006-06-14 Thread petemuir
Deploy the ear to the JBOSS_HOME/server/default/deploy directory exploded (as a directory with a .ear extension) and copy any updates to the exploded war inside the ear; jboss will take care of updating its temp directories itself. The ant copy task is useful for this. |

[JBoss-user] [JBoss Seam] - Re: HELP: do you have to publish every changes you made manu

2006-06-14 Thread petemuir
As I said above the hot code replacement function works in debug mode. Changes made when in debug mode within function bodies will change the code in the deployed ear. Works well for me for non-'structural' changes. View the original post :

[JBoss-user] [JBoss Seam] - Re: HELP: do you have to publish every changes you made manu

2006-06-14 Thread petemuir
Yes, I have those options specified. Have you managed to get the Eclipse debugger to connect to JBoss? I simply have the server and the port specified in my remote application configuation. Launching the debug configuration gives me a list of running processes on JBoss, from there I can do

[JBoss-user] [JBoss Seam] - Re: Multiple datamodel in one bean

2006-05-30 Thread petemuir
It 'attaches' the DataModelSelection(Index) to the correct DataModel. i.e. | @DataModel | List searchResults; | | @DataModelSelection(searchResults) | Object searchResult; | | @DataModel | private List questionnairesChoisis; | | @DataModelSelection(questionnairesChoisi)

[JBoss-user] [JBoss Seam] - Re: Persistence context propagation.

2006-05-30 Thread petemuir
I use Seam Managed EntityManager for this and it works as you suggest. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947731#3947731 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947731

[JBoss-user] [JBoss Seam] - Re: SeamExtendedManagedPersistencePhaseListener

2006-05-24 Thread petemuir
It's fixed (for me at least) in JBoss 4.0.4GA / Seam 1.0.0CR3 (which is a huge relief!) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946132#3946132 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946132

[JBoss-user] [JBoss Seam] - Re: @SelectItems and @SelectItemsSelection annotations?

2006-05-24 Thread petemuir
[EMAIL PROTECTED] wrote : By the way, I have not quite finished the databinder stuff, I still have one more commit to do today. So sit tight Gavin, did you get this finished for CR3? as I'm having problems getting the DataSelector stuff to fire. If you have finished it then I'll to

[JBoss-user] [JBoss Seam] - Re: @SelectItems and @SelectItemsSelection annotations?

2006-05-24 Thread petemuir
Sorry. My bad. I was navigating without calling any action/property on the bean so it (obviously) wasn't injecting the Selection into the bean. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946291#3946291 Reply to the post :

[JBoss-user] [JBoss Seam] - Re: Conceptual problem: Reusable lists?

2006-05-24 Thread petemuir
Surely something like | @Stateless | @Name(employeeManager) | public class EmployeeManagerBean implements EmployeeManager { | |@DataModel(scope=PAGE) |private ListEmployee employees; | |@In(required=false) |private Boolean internal; | |

[JBoss-user] [JBoss Seam] - Re: Transition out of pageflow

2006-05-23 Thread petemuir
Ok, I'll try to explain better ;) I want to do pageflow - decision - JSF outcome (dependent on user selected option from list). You can get around it by entering each possible outcome from the decison as a page: | | decision name=nextTask expression=#{addVenueNextTask} |

[JBoss-user] [JBoss Seam] - Re: Setting properties on injected bean

2006-05-23 Thread petemuir
To me it doesn't look like you've started a conversation on itemEditor - hence the error message. It seems unlikely that a long running conversation is starting in itemEditor without any method @Begin. You can check if a new conversation is acutally created on the debug page. If you inject a

[JBoss-user] [JBoss Seam] - Re: Seam component hides managed bean

2006-05-23 Thread petemuir
Pretty sure it does was it says on the tin! You have a JSF variable and a Seam component with the same name. http://www.jboss.com/index.html?module=bbop=viewtopict=82004 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3945728#3945728 Reply to the post :

[JBoss-user] [JBoss Seam] - Re: @SelectItems and @SelectItemsSelection annotations?

2006-05-23 Thread petemuir
I think a component repository is a very good idea. Allow people to plug stuff into seam as they like and make changes if needed. I can immediately see that a data binder for select items and for the myfaces tree stuff. Perhaps the wiki is a good a place? For soemthing like SelectItems it's

[JBoss-user] [JBoss Seam] - Re: @SelectItems and @SelectItemsSelection annotations?

2006-05-23 Thread petemuir
Oh and is it planned for there to be explicit SelectItems support added to Seam or do we need to write it ourselves using the DataBinder stuff? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3945798#3945798 Reply to the post :

[JBoss-user] [JBoss Seam] - Re: @SelectItems and @SelectItemsSelection annotations?

2006-05-23 Thread petemuir
I've now written an implementation of this, but on my last CVS update I've noticed that there is now a DataBinder that will do this as well! Here it is but I think that Gavin's version is much more elegant! Only a couple of days wasted!

[JBoss-user] [JBoss Seam] - Re: Transition out of pageflow

2006-05-23 Thread petemuir
For posterity: Problem Statement Next page to goto at end of wizard (using a pageflow) is determined by user-selected selectItem. Implementation Use a decision node to select an ad-hoc (JSF) outcome, decision based on value of selectItem Flaw in implementation Transitions from decision

[JBoss-user] [JBoss Seam] - Re: s:link not supported for JSP?

2006-05-23 Thread petemuir
AFAIK the seam tags only work with Facelets as the view handler and not with JSP. There are no Tag files atm. If you aren't using facelets and starting afresh you should definitely consider using it. View the original post :

[JBoss-user] [JBoss Seam] - Re: Debug page

2006-05-22 Thread petemuir
Do you have | context-param | param-nameorg.jboss.seam.core.init.debug/param-name | param-valuetrue/param-value | /context-param | in your web.xml (or the equivalent in your seam.properties) - assuming you are on a recent CVS version? View the original post

[JBoss-user] [JBoss Seam] - Re: Transition out of pageflow

2006-05-19 Thread petemuir
Sure addVenue.jpdl.xml | ?xml version=1.0 encoding=UTF-8? | | pageflow-definition | name=addVenue |start-page name=details view-id=/secure/venue/addVenue_details.xhtml | transition name=next to=travel/transition | transition name=cancel to=cancel/transition |

[JBoss-user] [JBoss Seam] - Re: Fileupload

2006-05-19 Thread petemuir
You do need the commons-fileupload and its dependencies (I think I had to add commons-io and commons-lang) jars from apache. It looks like it can't find them - classpath issue or perhaps you don't have them? View the original post :

[JBoss-user] [JBoss Seam] - Re: Fileupload

2006-05-19 Thread petemuir
I'm not at my desk at the moment so I'm not sure of the exact files. I remember having issues with packaging the commons stuff in the ear and ended up just putting them in the jsf-libs directory directly. View the original post :

[JBoss-user] [JBoss Seam] - Re: myfaces-1.1.3

2006-05-18 Thread petemuir
Its a problem with myfaces logging. They've swallowed the ClassNotFoundException and displayed that error message instead. Make sure your jboss-seam.jar is in a location that is on the classpath (I have mine in the META-INF/lib of my ear); you'll need to update your application.xml to

[JBoss-user] [JBoss Seam] - Re: JBPM EL exceptions

2006-05-18 Thread petemuir
Yes it does. Here's an example of what I mean Excerpt from CreateClientBean | @End | public void create() { | log.info(Running create method); | throw new RuntimeException(Create method throws a runtime exception); |

[JBoss-user] [JBoss Seam] - Re: Strange behavior using JSTL (MyFaces)

2006-05-17 Thread petemuir
As I understand it (this is quite likely to be a facelets centric view ;) ) | // Your code | ... |h:dataTable value=#{dataModel} var=row | h:column#{row.col1}/h:column | h:column#{row.col2}/h:column |/h:dataTable | |c:forEach items=#{list} var=row |

[JBoss-user] [JBoss Seam] - Re: Strange behavior using JSTL (MyFaces)

2006-05-17 Thread petemuir
Oh, and JSF 1.1doesn't use unified EL (as mentioned in your link). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3944144#3944144 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944144

[JBoss-user] [JBoss Seam] - Re: @SelectItems and @SelectItemsSelection annotations?

2006-05-17 Thread petemuir
I've been thinking about ways to do this. I'm currently stuck on one aspect: To do this successfully a JSF converter is needed. The converter needs to do getAsObject, the way I've seen this done is | Object o = entityManager.find(Entity.class, id); | but this requires a handle on the

[JBoss-user] [JBoss Seam] - Re: s:validate and facelets tag (source) file

2006-05-17 Thread petemuir
In case anyone else finds it useful I've put my solution here: http://jroller.com/page/pmuir?entry=modelvalidator I did a fairly simple modification to the Seam code and added a handler to accomodate EL expressions for the property attribute View the original post :

[JBoss-user] [JBoss Seam] - Re: Partial validation

2006-05-17 Thread petemuir
You could try using the s:validate ui component; it will validate just the field it is attached to using the hibernate validator. I've found it a much more flexible/robust approach (but it does require you to add the tag to each input - potentially a big job!) View the original post :

[JBoss-user] [JBoss Seam] - Transition out of pageflow

2006-05-17 Thread petemuir
Use case: Wizard style conversation (using jPDL) results in a summary page. Summary page summarises the information the user has entered and provides a list (selectOneRadio) of 'what do you want to do next' options (e.g. create another entry, generate paperwork). Summary page has back (defined

[JBoss-user] [JBoss Seam] - JBPM EL exceptions

2006-05-17 Thread petemuir
If an exception occurs evaluating the expression of an action inside a transition then an exception is thrown [1]. It doesn't include the oiginal cause of the error making it hard to debug. If possible could the original exception be included? Or is this one for the jBPM people? Thanks Peter

[JBoss-user] [JBoss Seam] - Re: Strange behavior using JSTL (MyFaces)

2006-05-16 Thread petemuir
In facelets c:forEach is evaluated at compile time (afaik, see http://wiki.java.net/bin/view/Projects/FaceletsFAQ#What_s_the_difference_between_c but as I mentioned you can use ui:repeat as a render-time replacement. View the original post :

[JBoss-user] [JBoss Seam] - Re: Strange behavior using JSTL (MyFaces)

2006-05-16 Thread petemuir
The c:forEach is evaluated at compile-time, the h:dataTable is evaluated at render-time. This means that the section variable is not available at compile-time to the c:forEach. So you could change your h:dataTable to be another c:forEach (using a list to back it), or, if you use facelets, you

[JBoss-user] [JBoss Seam] - s:validate and facelets tag (source) file

2006-05-11 Thread petemuir
Hi I'm just experimenting with the s:validate validator component provided as part of the seam-ui library. The code checks to see that a valid value attribute by looking for a value attribute of {model.field} and determines the model from that by stripping off the .field part. My problem is

[JBoss-user] [JBoss Seam] - Re: Errorhandling with Interceptor. Advice needed.

2006-05-11 Thread petemuir
Louis et al I would be very interested in hearing your conclusions (when you come to them ;-) ) on this topic as I will have to work with error handling at some point. I noticed there is a bug open about this: http://jira.jboss.com/jira/browse/JBSEAM-186 I'll post back here if/when I make

[JBoss-user] [JBoss Seam] - Re: s:validate and facelets tag (source) file

2006-05-11 Thread petemuir
Would you accept/consider a patch to allow | s:validate property=model.field / | where property could be a static value or EL that evaluated to a String. The property attribute version would need to take precedence over the value attribute for working out model.field. Or should I

[JBoss-user] [JBoss Seam] - Re: best practice advice needed: checking for user session

2006-05-10 Thread petemuir
http://www.jboss.com/index.html?module=bbop=viewtopict=74300 Is a general discussion on implementing security using JAAS and servlet security - if you follow the example posted by Louis you can easily secure a directory of pages. If the user isn't logged they get transparently redirected to

[JBoss-user] [JBoss Seam] - Re: could not register synchronization with JTA TransactionM

2006-05-10 Thread petemuir
This (I think) is a bug in the JBoss implementation of EJB3 - see: http://www.jboss.com/index.html?module=bbop=viewtopict=81756 and http://www.jboss.com/index.html?module=bbop=viewtopict=81613 I'm not sure if there is an ETA for this to be fixed or not. EJBTHREE-540 which deals with it is

[JBoss-user] [JBoss Seam] - Re: JAAS and SEAM

2006-05-09 Thread petemuir
To get the username: if ( facesContext.getExternalContext().getUserPrincipal() == null ) { | // User not logged in | } else { | String username = facesContext.getExternalContext().getUserPrincipal().getName().toString(); | } From this you can just use a normal EJB/Hibernate

[JBoss-user] [JBoss Seam] - Re: JAAS and SEAM

2006-05-08 Thread petemuir
Louis, Superb example - allowed me to get everything up and running smoothly. Thanks Peter View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3941850#3941850 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941850

[JBoss-user] [JBoss Seam] - Re: Suggested enhancement to @Observer annotation

2006-05-07 Thread petemuir
I've added this to JIRA as http://jira.jboss.com/jira/browse/JBSEAM-229 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3941718#3941718 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941718

[JBoss-user] [JBoss Seam] - Roles Scope

2006-04-22 Thread petemuir
In the Seam documentation it states in 6.1 that if 'no scope is explicitly specified, the default depends on the component type' however when I don't specify a scope the scope on the component is set to UNSPECIFIED. I'm using CVS20060418. | @Name(admin) | @Stateless |

[JBoss-user] [JBoss Seam] - Re: Using hibernate validator.

2006-04-06 Thread petemuir
See http://www.jboss.com/index.html?module=bbop=viewtopict=79422 The workaround suggested by dahm works fine - you'll need to restart jboss each time you replace the file (I think...) and you will need to specify messages for the properties defined by hibernate. Actually, is it possible to

[JBoss-user] [JBoss Seam] - Re: ValidatorMessages

2006-03-23 Thread petemuir
Thanks. I'll wait for the new release and add in my messages then. I take it in the fixed version putting a ValidatorMessages_en.properties file in the root of the jar is correct? Peter View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932138#3932138 Reply

[JBoss-user] [JBoss Seam] - Long running conversation and Hibernate Validation

2006-03-20 Thread petemuir
I'm trying to get validation to work in long running conversations:- | @Begin(join=true) | public String findVenues() { | // Utility method, sets up an outjected DataModel | findAll(); | // Redirect to result display page |

[JBoss-user] [JBoss Seam] - ValidatorMessages

2006-03-17 Thread petemuir
I'm trying to get custom validator messages working. I have sms.ear -- sms.jar -- ValidatorMessages.properties ... -- sms.war ... When I deploy the ear to Jboss 4.0.4RC1 an exception is thrown complaining that the key postcode cannot be found (see below) however executing |