seam

Seam Equivalent of Spring PersistenceUnitPostProcessor

流过昼夜 提交于 2019-12-24 06:19:03
问题 We have a very comfortable setup using JPA through Spring/Hibernate, where we attach a PersistenceUnitPostProcessor to our entity manager factory, and this post processor takes a list of project names, scans the classpath for jars that contain that name, and adds those jar files for scanning for entities to the persistence unit, this is much more convenient than specifying in persistence.xml since it can take partial names and we added facilities for detecting the different classpath

Richfaces DataTable PDF export

谁都会走 提交于 2019-12-24 05:36:04
问题 I'm using Seam 2.2.1 for a little project of mine. I know there is a excel export for richfaces:dataTable but is there something like this for PDFs too? I don't really want to write a PDF export with iText . Regards 回答1: You can easily export the generated HTML to PDF with Seam PDF It does use iText internally, but you don't have to write any iText code. Create a link that takes the same List you are using iterate the RichFaces datatable. <p:table columns="2" headerRows="1" widthPercentage=

Using a4j:repeat or ui:repeat inside rich:dataTable doesn't render radio buttons properly

与世无争的帅哥 提交于 2019-12-24 00:30:06
问题 While using <c:forEach> the items values is not substituted properly. If i use <a4j:repeat> or <ui:repeat> instead of <c:forEach> inside a <rich:dataTable >, radio button is not rendering properly. I also found reason for this in http://community.jboss.org/wiki/Cantusea4jrepeattoiteratethemenuItemstabsetc How do I resolve this issue? <f:selectItems> is working inside but i want to send a choice type to server <rich:dataTable var="answer" value="#{answers}"> <rich:column> <f:selectOneRadio

seam-gen doesn't generate EntityQuery interfaces for @ManyToMany members

£可爱£侵袭症+ 提交于 2019-12-23 21:40:35
问题 @org.jboss.seam.annotations.security.management.UserRoles exposed in the User interface returns a simple List method. seam-gen doesn't generate EntityQuery interfaces for @ManyToMany members like the getUserRoles mentioned above. How do we enable this, so that the resultant roles are shown in a paginated fashion. Edit 1: This is the declaration in User.java @ManyToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH}, fetch = FetchType.LAZY) @JoinTable(name = "user_role

Seam 2.2.0 URL rewrite not working

﹥>﹥吖頭↗ 提交于 2019-12-23 19:15:56
问题 I'm trying a simple example of URL rewriting, but it's not working for me. I'm using Seam 2.2.0 deployed to JBoss 5.1.0. My pages.xml contains: <page view-id="/html/index.xhtml"> <rewrite pattern="/home" /> </page> and <page view-id="/html/common/redirect.xhtml" action="#{redirectAction.redirect}"> <rewrite pattern="/link" /> ... My components.xml contains: <web:rewrite-filter view-mapping="*.seam"/> As far as I can tell from the documentation, that should be all I need. However, none of the

Hibernate - Entity Manager Factory

匆匆过客 提交于 2019-12-23 17:52:50
问题 I have been recently running into an issue in which my web application will not start properly and the stack trace doesn't indicate exactly what happened. I have been able to isolate it to an event listener that I wrote. Whenever I attempt to activate it, I get a very generic exception: org.jboss.seam.InstantiationException: Could not instantiate Seam component: entityManagerFactory at org.jboss.seam.Component.newInstance(Component.java:2144) at org.jboss.seam.contexts.Contexts.startup

Why can't I have a session bean as a JSF backing bean in Java EE 5

戏子无情 提交于 2019-12-23 15:53:29
问题 AFAIK, the whole purpose of JBoss Seam is to integrate EJB and JSF. The book Seam in Action says that: By design, EJB components cannot be bound directly to a JSF view. It’s great that EJB components are scalable, transactional, thread-safe, and secure, but it doesn’t do much good if they are completely isolated from the web tier, accessible only through a JSF backing bean acting as an intermediary. But I couldn't find the reason/motive of such impossibility, why are they isolated from the

ICEfaces/Seam file upload component not uploading files

大兔子大兔子 提交于 2019-12-23 12:16:18
问题 Update I'm currently over at the ICEfaces forums to get my problem solved - sadly, none of the provided options led to a solution now, but they indeed gave me some more insight into the whole JSF topic (credits go to BalusC for that, as often :-)). I will try to keep this thread up to date and post an answer if the problem is finally solved to help others which may encounter it. My findings so far are: Disabling the Seam Multipart Filter is required because it prevents the fileEntry-component

SeamPhaseListener - Could not start transaction - Seam 2.3, JSF 2 Tomcat 7, WAR

早过忘川 提交于 2019-12-23 06:05:06
问题 [EDIT] The working project can be found at: https://github.com/joergi77/JSF2_Richfaces4_Seam_23 [/EDIT] I migrated our old project to a newer setup. Old setup Seam 2.2.2.Final JSF 1.2 Richfaces 3.3.3.Final JBoss 5.1 GA EAR EJB Java EE5 New setup: Seam 2.3.1.Final JSF 2.1.2 Richfaces 3.3.3.Final (should be compatible to JSF 2) Tomcat 7.0.57 WAR NO EJB Java 7 The WAR file was already deployable and working with SEAM 2.2 and JSF 1.2. on the Tomcat 7.0.57 After that I was upgrading to SEAM 2.3

Creating Tagged PDF Document in Seam iText

我怕爱的太早我们不能终老 提交于 2019-12-23 04:26:08
问题 I am trying to create an accessible PDF using Seam and their iText implementation. I cannot find any references to whether or not this is possible. It seems that iText itself can handle it; the PDF on this example is tagged. But all of the PDFs that we create aren't and I can't seem to figure out how to add it. Here's some sample code from one of our documents: <?xml version="1.0" encoding="UTF-8"?> <p:document xmlns:p="http://jboss.com/products/seam/pdf" xmlns:ui="http://java.sun.com/jsf