[jboss-user] [JBoss Seam] - Re: Redirect on value change

2007-10-22 Thread thatrichard
1. This may sound like an unbelievably silly question, but: What do you mean by my "submit method"? With, for example, h:commandButton, you specifiy the method via the action parameter. The submit method in my example is a javascript call fired by the browser when the field changes. That, I

[jboss-user] [JBoss Seam] - Redirect on value change

2007-10-21 Thread thatrichard
I want to change the page when a user selects a value in a combo box. There must be a standard way of doing this in Seam, but I'm not finding it. Can anyone point me in the right direction? I can force the submit as follows: | | ... | But how do I get this submission to fire a redire

[jboss-user] [JBoss Seam] - Context management for custom servlets

2007-10-14 Thread thatrichard
I'm using Seam-2.0.0.Beta1. According to the docs: anonymous wrote : 25.1.4.6. Context management for custom servlets | | ...Seam provides a servlet filter that can be applied to any other servlet that needs access to Seam components. | | This filter allows custom servlets to interact

[jboss-user] [JBoss Seam] - Seam generated Eclipse project won't stop building

2007-09-07 Thread thatrichard
I've just used seam-gen (Beta 2) to generate a project. I opened the project in Eclipse and ran the default build target. That went fine. Thereafter, the build script ran itself every few seconds. I eventually figured out that to stop this I needed to disable the .exploded Builder in my Eclip

[jboss-user] [JBoss Seam] - Handling context-based validation

2007-08-15 Thread thatrichard
I have a "Claim" object. Whether or not it is valid depends on what the user is trying to do. My person object will require payee information to be valid for the purpose of payment, but not otherwise. Ideally, I'd do something like this: |public void makePayment(Party payee) { |

[jboss-user] [JBoss Seam] - Error in documentation for Seam-2.0.0-BETA1?

2007-08-05 Thread thatrichard
The documentation reads: anonymous wrote : 21.4.2. Remote calls within the current conversation scope | | In some circumstances it may be required to make a remote call within the scope of the current view's conversation. To do this, you must explicitly set the conversation ID to that of th

[jboss-user] [JBoss Seam] - Re: Post-injection hook (or how to avoid injection races?)

2007-08-05 Thread thatrichard
Hi Michael I need the setTitle method because the title needs to be modified before being set. (I tried to indicate this with //modify the title.) Ultimately, I'm trying to support a combobox with an "other" field. In the full class, the values of the combobox and "other" textfield are bound

[jboss-user] [JBoss Seam] - Post-injection hook (or how to avoid injection races?)

2007-08-05 Thread thatrichard
Consider this component | @Name("personEditor") | @Stateful | @Scope(ScopeType.CONVERSATION) | @Conversational | public class PersonEditorBean implements PersonEditor { | |@In |private Person person; | |@In |public void setTitle(String title) { |

[jboss-user] [JBoss Seam] - Bug? EL and Anonymous Classes

2007-07-18 Thread thatrichard
I'm using Seam2/JBoss4.2. I get an exception when using EL to reference a method on an anonymous class. You can view the relevant code at http://www.jboss.org/index.html?module=bb&op=viewtopic&t=112929 In short: 1. I bind an anonymous class using Contexts.getConversationContext().set("someNam

[jboss-user] [JBoss Seam] - Re: Problem with Hibernate sessions post-Seam2 migration

2007-07-18 Thread thatrichard
I did and I meant to post it here for you but got sidetracked. I believe that this was a driver problem. In my case, for some reason, this problem only occurred when I used JDK1.5.0.11. With JDK 1.6, everything works ok. I suspect that this was because my database driver is for 1.6, but I h

[jboss-user] [JBoss Seam] - Re: Reccomend me a SEAM book

2007-07-18 Thread thatrichard
I recommend "Java Persistence with Hibernate" (http://www.amazon.com/exec/obidos/ASIN/1932394885/hiberthejavao-20) Although this is a Hibernate book, the "Introducing Seam" chapter is about 70 pages long and which gives some pretty detailed information. I've also got the Heute book and "Beginni

[jboss-user] [JBoss Seam] - Urgent - running seam-2-beta without a network connection

2007-07-09 Thread thatrichard
I'm in a demo without network connectivity. Nothing works because Dom4J cannot load the Seam DTDs. Does anyone know how to turn off DTD related validation so as to run without a network connection. Thanks Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopi

[jboss-user] [EJB/JBoss] - Re: Seam 2: EL and anonymous classes

2007-07-07 Thread thatrichard
Apologies. I've posted this to the wrong forum. Is there a way I can move it to JBoss Seam Users? Thanks Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061573#4061573 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=r

[jboss-user] [EJB/JBoss] - Seam 2: EL and anonymous classes

2007-07-07 Thread thatrichard
1. I'm using the Seam2 beta with JBoss 4.2 and I am having a problem with the following expression. Expression | | When the expression is evaluated it throws an IllegalAccessException (see bottom). The class is anonymous, the method is public and also overrides an abstract method. Is

[jboss-user] [JBoss Seam] - Re: Problem with Hibernate sessions post-Seam2 migration

2007-06-29 Thread thatrichard
(For anyone else reading this thread - I had not changed the "core" prefix of my hibernate-session-factory element) That seems to have resolved something, but now there is a problem with my datasource, which is defined in a *-ds.xml file as below. I will keep looking into this but, as this conf

[jboss-user] [JBoss Seam] - Re: Problem with Hibernate sessions post-Seam2 migration

2007-06-29 Thread thatrichard
Ok, I changed the "session" to "hibernateSession" 1. In components.xml, i.e. | | and 2. In all of my session beans, e.g. | @In | private Session hibernateSession; | I'm now getting the exception below. I remember having quite a hard time getting this part of the configuration

[jboss-user] [JBoss Seam] - Re: CommandLink in DataTable: Session vs Conversation scope

2007-06-27 Thread thatrichard
Hi Peter Thanks for the post, but there is an h:messages tag on my page - I've just posted the core code for readability. I don't get any messages in this scenario (although I get validation messages in other contexts, so the h:messages is working). Any other ideas? Richard View the original

[jboss-user] [JBoss Seam] - CommandLink in DataTable: Session vs Conversation scope

2007-06-27 Thread thatrichard
Here is a bean and jsf form that implement a simple search. The emboldened commandLink ought to be invoking the bean's "select" method, which it does. However, this only works when I include the emboldened Scope annotation. Without it, the scope will be Conversation and the conversation will b

[jboss-user] [JBoss Seam] - Re: Nested conversation - passing selection to parent conver

2007-06-13 Thread thatrichard
Trying to answer that question has made me that a nested conversation is in fact not necessary - inappropriate even. I've now collapsed the conversations, but the following problem remains - here is the code :) The flow is as follows (relevant code in bold) 1. The Registration form conversatio

[jboss-user] [JBoss Seam] - Nested conversation - passing selection to parent conversati

2007-06-13 Thread thatrichard
I have a long-running conversation in which the user fills out a form. Some fields are filled by selecting existing objects from the database. The selection is done via a nested conversation. The nested conversation starts when the user clicks on a "select" link. The associated method is tag

[jboss-user] [JBoss Seam] - Re: JSF/Bean binding dropped when using s:link

2007-06-12 Thread thatrichard
Many thanks, Peter. It would be handy to clarify this in s:link section of the Seam documentation. Best regards Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053533#4053533 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting

[jboss-user] [JBoss Seam] - JSF/Bean binding dropped when using s:link

2007-06-12 Thread thatrichard
Short version: When I navigate using an s:link then any data entered into form fields disappears. Everything works ok when I use commandLinks. Long version: I've created a tabbed form using a conversation. The user moves between tabs by clicking on links. At any time, the user can persist the