[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3596) Add @SelectItems for exporting a list or hash to a List<SelectItem> context variable
by Dan Allen (JIRA)
Add @SelectItems for exporting a list or hash to a List<SelectItem> context variable
------------------------------------------------------------------------------------
Key: JBSEAM-3596
URL: https://jira.jboss.org/jira/browse/JBSEAM-3596
Project: Seam
Issue Type: Feature Request
Components: Core
Reporter: Dan Allen
Priority: Minor
Fix For: 2.1.0.GA
There are times when the UI needs a collection of SelectItem objects, yet the business logic does not need to be aware of this requirement. Thus, we have a similar situation as with JSF data models.
It would be helpful to have an annotation counterpart to @DataModel named @SelectItems that outjects a list or hash as a list of SelectItem objects. If the property's type is a list, the label is assumed to be the same as the value. If the property's type is a hash, the entry's key is the option value and the entry's value is the option label.
@SelectItems
List<String> options;
@SelectItems
Hash<String, String> options;
In the case of a list, we could allow a label to be defined using path notation in an annotation property named labelPath.
@SelectItems(labelPath = "name")
List<User> users;
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 5 months
[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-3268) Calling AuctionService webservice gives marshalling error
by Shane Bryzak (JIRA)
[ https://jira.jboss.org/jira/browse/JBSEAM-3268?page=com.atlassian.jira.pl... ]
Shane Bryzak closed JBSEAM-3268.
--------------------------------
Resolution: Done
Fixed, and also added the findAuctions call to the test page. Thanks!
> Calling AuctionService webservice gives marshalling error
> ---------------------------------------------------------
>
> Key: JBSEAM-3268
> URL: https://jira.jboss.org/jira/browse/JBSEAM-3268
> Project: Seam
> Issue Type: Patch
> Components: Examples
> Affects Versions: 2.0.2.SP1
> Environment: WinXP
> JBoss 4.2.0.GA
> JDK 1.5.0_01
> Reporter: Jan Hoeve
> Assignee: Shane Bryzak
> Fix For: 2.1.1.CR1
>
> Attachments: patch.txt
>
>
> After deploying the seambay example in Jboss, I encountered the following error while invoking the webservice AuctionService from soapUI:
> [com.sun.istack.SAXException2: A cycle is detected in the object graph. This will cause infinitely deep XML: org.jboss.seam.example.seambay.Auction@1df2b92 -> org.jboss.seam.example.seambay.AuctionImage@1d90a6e -> org.jboss.seam.example.seambay.Auction@1df2b92]
> at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:295)
> at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:221)
> at org.jboss.ws.core.jaxws.JAXBSerializer.serialize(JAXBSerializer.java:83)
> After looking at the annotations in Auction and AuctionImage it just is very clear: the association between the two classes is bidirectional; and thus causing the Marshaller to throw this error. (Because it cannot find out when to stop following references).
> After googling/thinking I added an @XmlTransient annotation to AuctionImage#getAuction (see patch) , and thus breaking the loop when marshalling.
> Now the webserive produces some result and is not giving errors anymore!
> The problem-yet-to-solve (curious how you guys would solve): With this XmlTransient, xml2object unmarshalling is not fully supported anymore (I broke the loop...).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 5 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3481) components.xml is read twice if the jboss-seam.jar is declared in application.xml as well as in manifest classpath
by Jay Balunas (JIRA)
components.xml is read twice if the jboss-seam.jar is declared in application.xml as well as in manifest classpath
------------------------------------------------------------------------------------------------------------------
Key: JBSEAM-3481
URL: https://jira.jboss.org/jira/browse/JBSEAM-3481
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.1.0.BETA1
Reporter: Jay Balunas
Assignee: Pete Muir
Fix For: 2.1.0.GA
This issue was exposed while working on JBSEAM-3363, and using patched jsf jars from Ryan Lubke which fixes the initial problem (see note below on using Ryan's patch).
We do not see the duplicate seam phase listener issue any longer, but we continue to see this error.
08:50:53,573 ERROR [[/Stantest]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
java.lang.IllegalStateException: duplicate factory for: org.jboss.seam.web.webSession (duplicate is specified in components.xml)
at org.jboss.seam.core.Init.checkDuplicateFactoryExpressions(Init.java:222)
at org.jboss.seam.core.Init.checkDuplicateFactory(Init.java:215)
at org.jboss.seam.core.Init.addFactoryValueExpression(Init.java:278)
This is because we are reading in the components.xml file from the jboss-seam.jar twice as this log shows:
2008-09-30 10:21:08,245 INFO [org.jboss.seam.init.Initialization] reading /WEB-INF/components.xml
2008-09-30 10:21:08,396 INFO [org.jboss.seam.init.Initialization] reading jar:file:/jboss/apps/jboss-4.2.3.GA/server/default/deploy/Stantest.ear/jboss-seam.jar!/META-INF/components.xml
2008-09-30 10:21:08,400 INFO [org.jboss.seam.init.Initialization] reading jar:file:/jboss/apps/jboss-4.2.3.GA/server/default/tmp/deploy/tmp3645jboss-seam.jar!/META-INF/components.xml
To use Ryan's patch:
----------------------
Use the attached jsf jars in the jsf-libs directory, and update JBOSS_HOME/server/default/deploy/jboss-web.deployer/conf/web.xml to include the following context param:
<context-param>
<param-name>com.sun.faces.duplicateJARPattern</param-name>
<param-value>^tmp\d+(\S*\.jar)</param-value>
</context-param>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 5 months