[jboss-user] [JBoss Seam] - Re: null injected values

2007-11-23 Thread andreigh.ts
Hi, can you recommend a workaround, someting... We cannot go live with this bug! Please give some advice. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4107392#4107392 Reply to the post :

[jboss-user] [JBoss Seam] - Re: null injected values

2007-11-12 Thread andreigh.ts
I cannot find a JIRA issue about this? Should I raise one? Can anybody confirm is a bug? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4103577#4103577 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103577

[jboss-user] [JBoss Seam] - Re: DataModel bug in Seam 2

2007-11-12 Thread andreigh.ts
anonymous wrote : We had a similar behavior after migrating to 2.0.0CR2. We changed the scope of the DataModel to PAGE and the problems vanished. I don't think PAGE context works if you have s:link or s:button in the page, because they don't propagate the PAGE context. View the original post

[jboss-user] [JBoss Seam] - Re: DataModel bug in Seam 2

2007-11-12 Thread andreigh.ts
an alternate workaround would be to refresh the datamodel every time the page loads, using a page action... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4103754#4103754 Reply to the post :

[jboss-user] [JBoss Seam] - Re: null injected values

2007-11-12 Thread andreigh.ts
JIRA issue raised: http://jira.jboss.com/jira/browse/JBSEAM-2242 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4103780#4103780 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103780

[jboss-user] [JBoss Seam] - Re: null injected values

2007-11-10 Thread andreigh.ts
I am outjecting them alright, on the conversation scope. Normally they have not null values when injecting them. The problem only occurs when I call bean method(by clicking a button), BEFORE the page that contains that button finishes to render in the browser. I guess it is a sort of

[jboss-user] [JBoss Seam] - Re: DataModel bug in Seam 2

2007-11-10 Thread andreigh.ts
Is there a workaround or a patch available for this? DataModels are practically unusable due to this... Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4103410#4103410 Reply to the post :

[jboss-user] [JBoss Seam] - null injected values

2007-11-09 Thread andreigh.ts
I am inside a long running conversation and I have a search page with a search button that triggers myBean.search(). myBean has several conversation scoped variables, injected with @In. While the search page is rendered in the browser, before the render finishes, I click the search button that

[jboss-user] [JBoss Seam] - Re: DataModel bug in Seam 2

2007-11-09 Thread andreigh.ts
can you confirm it's a bug? is there a workaround? Do we need to rollback to 1.2.1 ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4103249#4103249 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103249

[jboss-user] [JBoss Seam] - DataModel bug in Seam 2

2007-11-08 Thread andreigh.ts
Hello we have migrated from Seam 1.2.1 to Seam 2.0 and there is an annoing behavior of DataModel - if the DatgaModel is on a long running conversation and holds a list of database entities, the values of the entities are null after the first display of the page. To be more concrete: The bean

[jboss-user] [JBoss Seam] - Facelets version shipped with Seam

2007-09-17 Thread andreigh.ts
What is the facelets version that comes with Seam? (In the manifest it says Implementation-Version: ${release.version} :) I am asking this because I am trying to fix this issue (http://jira.jboss.com/jira/browse/ASPATCH-237) , and the last version of facelets (1.1.12) does is not compatible

[jboss-user] [JBoss Seam] - Problem using parameters for custom hibernate messages

2007-09-05 Thread andreigh.ts
I have an entoty bean with a property that has a max 255 length. I want to customize the default hibernate validator.length message, in order to display only the max value, not the min value (default validator.length is defined as 'length must be between {min} and {max}'). So I have this

[jboss-user] [JBoss Seam] - Re: Bug with EVENT scope

2007-09-04 Thread andreigh.ts
So if I understand correctly, when using SLSB, it is possible that the container serves the same object, because of caching. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4080734#4080734 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Bug with EVENT scope

2007-09-04 Thread andreigh.ts
Thanks. Please note the following bug in the seam 2 documentation: in chapter 3.1.4(Conversation context), it says that: anonymous wrote : | Some conversations last for just a single request. Conversations that span multiple requests must be demarcated using annotations provided by Seam. |

[jboss-user] [JBoss Seam] - Re: Bug with EVENT scope

2007-09-04 Thread andreigh.ts
Yes, redirect in pages.xml. I suppose it does a browser redirect that generates a new http request. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4080816#4080816 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4080816

[jboss-user] [JBoss Seam] - Bug with EVENT scope

2007-09-03 Thread andreigh.ts
Hi, I have a search button in a page, that executes an action in the EVENT scoped component and then redirects to the same page. If the component is a POJO, then Seam instantiates 2 components (one for executing the action and one for displaying the page after redirect). If the component is a

[jboss-user] [JBoss Seam] - Conversation scoped component automatically outjected

2007-06-22 Thread andreigh.ts
Hi, I am injecting a component with @In, from Conversation scope(the componenet was previously created). After modifying it in the action method (triggered from xhtml), the modification is visible in view (i.e. component is outjected). | @Stateless | @Name(requestWizard_information) |

[jboss-user] [JBoss Seam] - Re: Conversation scoped component automatically outjected

2007-06-22 Thread andreigh.ts
Yes, it is clear to me that the modification can be seen in view because in this case @In injects the reference to the object in the context. I was expecting that @In to inject a copy of the object from the context... Like in the case of EVENT scope. If I use the same code, but EVENT scope, the

[jboss-user] [JBoss Seam] - s:validate support for validation groups?

2007-06-22 Thread andreigh.ts
Hi, I need to design a page that has 2 submit buttons - each of them targeting different controls. For all controls I use s:validate. The natural design would be to have 2 different forms for it, but the problem is that, from a rendering perspective(what the user sees) they must be nested -

[jboss-user] [JBoss Seam] - Re: DataModel using Set does not work

2007-06-14 Thread andreigh.ts
Is there an example of how to use Set as a @DataModel ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054224#4054224 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054224 ___

[jboss-user] [JBoss Seam] - Re: DataModel using Set does not work

2007-06-14 Thread andreigh.ts
Thanks, it works. Now I understand, @DataModel outjects a brand new object with a new name (default variable name). This also means that the variable should be created with @Factory (usually). Now I don't understand why my initial approach worked with List and array :) View the original post :

[jboss-user] [JBoss Seam] - Re: DataModel using Set does not work

2007-06-14 Thread andreigh.ts
There is something weird how this @DataModel functions, maybe it can be documented somewhere. In my example the @DataModel exposes the Set of a hibernate entity(from one-many relationship). If the @DataModel is a property of a stateful bean (conversation scope), then modifying the hibernate

[jboss-user] [JBoss Seam] - Re: DataModel using Set does not work

2007-06-14 Thread andreigh.ts
Thank you all for the answers. Can you please help me out - There still are some problems and searching on the forum seemsto be bugs, but I am not sure. Can you please confirm. Here are the problems: 1) Stateful component - Conversation scope; outjecting Set DataModel (defaulting to

[jboss-user] [JBoss Seam] - DataModel using Set does not work

2007-06-13 Thread andreigh.ts
Hi, I am trying to use java.util.Set as a @DataModel but it throws an exception (javax.faces.el.PropertyNotFoundException Bean: org.hibernate.collection.PersistentSet) when trying to display the xhtml. Replacing Set with List or array works very well. Here is the code: The Hibernate

[jboss-user] [JBoss Seam] - inject/outject servlet context init parameter

2007-06-01 Thread andreigh.ts
Is is possible to inject/outject an initialization parameter (defined with context-param in web.xml), in a Seam EJB3 component? Using @In(paramName) and @Out(paramName) does not work. (I am more interested in outjecting it, since reading can be done via facesContext) View the original post

[jboss-user] [JBoss Seam] - Re: Creating Mock for identity component

2007-05-29 Thread andreigh.ts
[EMAIL PROTECTED] wrote : What you are doing should work. Does anyone have any idea why it actually doesn't work and throws that exception? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4049187#4049187 Reply to the post :

[jboss-user] [JBoss Seam] - Slow integration testing suite based on SeamTest - improveme

2007-05-24 Thread andreigh.ts
As the framework is designed right now, the embedded server starts for each testing class that extends SeamTest (basically every class that has integration tests using FacesRequest). This is done via SeamTest.init() which is annotated with @Configuration(beforeTestClass=true). Starting the

[jboss-user] [JBoss Seam] - Re: Slow integration testing suite based on SeamTest - impro

2007-05-24 Thread andreigh.ts
Looking in the source code for SeamTest.init() I see that it creates and initializes a servletContext and also creates conversationViewRootAttributes. I was thinking that recreating servletContext and conversationViewRootAttributes might be nedded in order to clear some context variables (that

[jboss-user] [JBoss Seam] - Creating Mock for identity component

2007-05-22 Thread andreigh.ts
I am unable to mock the Identity component (so that I can bypass authentication and permission checking in testing). I am using SeamTest and in the FacesRequest I am calling my ping component: | public class PingTest extends SeamTest { | | @Test(groups = { dev }) | public