[JBoss Seam] - Converters scope
by adamw
Hello,
a default scope for @Converter bean is, as I noticed, event. I'm not sure if what I'm describing here is a Seam or Facelets bug, but my first bet would be on the fact that if a bean is event-scoped then there is at most one instance created for a request.
My problem was as follows: I have a converter, declared using @Converter and @Name. This converter has an attribute, so I created a tag to be able to put the attribute as a tag attribute, as described here: https://facelets.dev.java.net/nonav/docs/dev/docbook.html#taglib-create-c....
Now, if I have the tag more than once on the page, the bean attribute, during conversion, is always set to the value of the attribute in the last tag on the page.
I solved this problem by declaring the converter to have a stateless scope. No idea if this is the "correct" way --- but maybe it's worth mentioning in the manual.
--
Adam
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100610#4100610
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100610
17Â years, 2Â months
[JBoss Seam] - Re: no such setter method: org.jboss.seam.security.Identity.
by jbeaken
Sure can, by the way, using local repository in cases such as com.ricall.*;
<build>
| <plugins>
| <plugin>
| <artifactId>maven-ear-plugin</artifactId>
| <configuration>
| <displayName>Ricall</displayName>
| <modules>
| <webModule>
| <groupId>com.ricall</groupId>
| <artifactId>site-webapplication</artifactId>
| <bundleFileName>ricall.war</bundleFileName>
| <contextRoot>/</contextRoot>
| </webModule>
| <jarModule>
| <groupId>com.ricall</groupId>
| <artifactId>site-component</artifactId>
| <bundleFileName>ricall.jar</bundleFileName>
| <includeInApplicationXml>
| true
| </includeInApplicationXml>
| </jarModule>
| <jarModule>
| <groupId>com.ricall</groupId>
| <artifactId>template-component</artifactId>
| <bundleFileName>ricall-template.jar</bundleFileName>
| <includeInApplicationXml>
| true
| </includeInApplicationXml>
| </jarModule>
| <jarModule>
| <groupId>com.ricall.seam</groupId>
| <artifactId>jboss-seam</artifactId>
| <includeInApplicationXml>
| true
| </includeInApplicationXml>
| </jarModule>
| <jarModule>
| <groupId>com.ricall.drools-core</groupId>
| <artifactId>drools-core</artifactId>
| <includeInApplicationXml>
| true
| </includeInApplicationXml>
| </jarModule>
| <jarModule>
| <groupId>
| com.ricall.drools-compiler
| </groupId>
| <artifactId>drools-compiler</artifactId>
| <includeInApplicationXml>
| true
| </includeInApplicationXml>
| </jarModule>
| <jarModule>
| <groupId>com.ricall.commons</groupId>
| <artifactId>commons-jci-core</artifactId>
| <includeInApplicationXml>
| true
| </includeInApplicationXml>
| </jarModule>
| <jarModule>
| <groupId>com.ricall.commons</groupId>
| <artifactId>commons-jci-janino</artifactId>
| <includeInApplicationXml>
| true
| </includeInApplicationXml>
| </jarModule>
| <!--jarModule>
| <groupId>commons-lang</groupId>
| <artifactId>commons-lang</artifactId>
| <includeInApplicationXml>true</includeInApplicationXml>
| </jarModule-->
| <jarModule>
| <groupId>com.ricall.janino</groupId>
| <artifactId>janino</artifactId>
| <includeInApplicationXml>
| true
| </includeInApplicationXml>
| </jarModule>
| <jarModule>
| <groupId>com.ricall.jBPM</groupId>
| <artifactId>jBPM</artifactId>
| <includeInApplicationXml>
| true
| </includeInApplicationXml>
| </jarModule>
| <jarModule>
| <groupId>com.ricall.stringtemplate</groupId>
| <artifactId>stringtemplate</artifactId>
| <includeInApplicationXml>
| true
| </includeInApplicationXml>
| </jarModule>
| <jarModule>
| <groupId>com.ricall.antlr</groupId>
| <artifactId>antlr</artifactId>
| <includeInApplicationXml>
| true
| </includeInApplicationXml>
| </jarModule>
| <jarModule>
| <groupId>antlr</groupId>
| <artifactId>antlr</artifactId>
| <includeInApplicationXml>
| true
| </includeInApplicationXml>
| </jarModule>
| <jarModule>
| <groupId>com.ricall.richfaces</groupId>
| <artifactId>richfaces-api</artifactId>
| <includeInApplicationXml>
| true
| </includeInApplicationXml>
| </jarModule>
| <jarModule>
| <groupId>com.ricall.richfaces</groupId>
| <artifactId>richfaces-impl</artifactId>
| <includeInApplicationXml>
| true
| </includeInApplicationXml>
| </jarModule>
| <jarModule>
| <groupId>com.ricall.richfaces</groupId>
| <artifactId>richfaces-ui</artifactId>
| <includeInApplicationXml>
| true
| </includeInApplicationXml>
| </jarModule>
| </modules>
| <container>
| <containerId>jboss4x</containerId>
| <home>c:/Java/jboss-4.2.1.GA</home>
| </container>
| </configuration>
| </plugin>
| </plugins>
| </build>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100604#4100604
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100604
17Â years, 2Â months