seam

How to migrate from RAMJobStore to JobStoreCMT for persisted Quartz jobs in Seam

纵然是瞬间 提交于 2019-12-10 10:45:29
问题 I am trying to get a simple example of the Quartz scheduler working in JBoss Seam 2.2.0.GA. Everything works fine using the RAMJobStore setting, but changing the store from org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore to org.quartz.jobStore.class org.quartz.impl.jdbcjobstore.JobStoreCMT org.quartz.jobStore.driverDelegateClass org.quartz.impl.jdbcjobstore.PostgreSQLDelegate org.quartz.jobStore.useProperties false org.quartz.jobStore.dataSource quartzDatasource ## FIXME Should be a

JSF/Seam: How to download and print a dynamically generated PDF file without user intervention?

我的梦境 提交于 2019-12-10 06:36:30
问题 I have a JSF/Seam web app which has a page with a form which, when submitted (button clicked), causes a PDF file to be dynamically created (in Java, server side) based on the form input. Currently what I have working is that the resulting PDF is returned to the browser as a file download, so the user can opt to save it or open it in Acrobat Reader for subsequent printing. What I would like to happen is that the PDF is sent to the browser and printed (client side) without further user

How do you specify OrderBy clause on two columns

℡╲_俬逩灬. 提交于 2019-12-09 17:33:19
问题 We would like to orderBy 2 columns in the Seam EntityQuery interface as well as the JPA model. How do we do this? @Entity public class A{ @OrderBy(???) // should this be hardcoded here, is it database agnostic List<B> bobjects; } @Entity public class B { public short startTimeHrs; public short startTimeMins; } @Name("bList") public class B extends EntityQuery { setOrderColumn("startTimeHrs, startTimeMins"); // Is this correct? setOrderDirection("asc"); } 回答1: If you are talking about javax

Has anyone successfully run integration tests with Jboss embedded, Seam and Maven?

て烟熏妆下的殇ゞ 提交于 2019-12-09 12:42:54
问题 Have been trying to get integration testing working with my seam project and the Jboss embedded container but am not having much success. Have been doing a lot of reading and have been trying what is mentioned in this JIRA but am not having any luck. Amy currently just trying to get the 'testproject-master-JBSEAM-2371.zip' project working but am getting the following exception ERROR [org.jboss.embedded.DeploymentScanner] Failed to deploy org.jboss.deployers.spi.DeploymentException: No

What community version of Jboss is recommended for jdk 1.7 and why

℡╲_俬逩灬. 提交于 2019-12-09 07:33:12
问题 I need to migrate from Jboss 5.1.0 GA to any other that supports jdk 1.7. I'm currently using jboss 5.1 with seam 2, jdk 1.6 and sqlserver 2008 r2. What community version of Jboss is recommended for jdk 1.7 and why? Thanks in advance! 回答1: You can actually get JBoss AS 5.1.0 GA to run on JDK 7, see JBAS-6981. All of the following options will work with JDK 7: JBoss AS 5.1.0 (plus the fix for JBAS-6981) JBoss AS 6.1.0 JBoss AS 7.1.1 JBoss EAP 6.2 WildFly AS 8 CR 1 The right solution depends on

Close a lightBox primefaces from iframe Button

╄→гoц情女王★ 提交于 2019-12-08 09:56:40
问题 I use primefaces lightbox component with seam. I have a firstpage.xhtml page, where I have a button that display a lightbox with iframe parameter, that will display a secondpage.xhtml that have some form fields and a "Close Window" button. Code of firstpage.xhtml > <ui:composition xmlns="http://www.w3.org/1999/xhtml" > xmlns:ui="http://java.sun.com/jsf/facelets" > xmlns:h="http://java.sun.com/jsf/html" > xmlns:f="http://java.sun.com/jsf/core" > xmlns:p="http://primefaces.prime.com.tr/ui" >

How do you create components.xml for debug/development in Seam

∥☆過路亽.° 提交于 2019-12-08 07:00:33
问题 Has anyone created two versions of components.xml like the components-dev.properties or the other dev or prod versions? How did you do this? We have some custom components that we are using for Development that is created in components.xml that I would like to move to its own components-dev.xml but I don't how to do this. Any ideas? The codes that I would like to move are generally like this: <component name="fooBar" class="org.bar.FooBar" /> 回答1: You can conditionally install a component

problem with seam and mdb on jboss5.1

你说的曾经没有我的故事 提交于 2019-12-08 04:39:05
问题 I have a problem when using a mdb as a seam component. In the bean I inject some other seam somponents. The problem is that when the server restart after a crash and the mdb is deployed it starts reading the messages but seam is not initialized yet and I got an exception(listed above). If i start the server whith the queues empty and submit a message to queue after the server start it is working ok. Is there a posibility to stop or delay the sending off messages on server startup and start

Webservice using Seam

孤者浪人 提交于 2019-12-08 01:01:49
问题 I am new to Seam and want to develop Webservice using Seam.I have an aggressive deadline Where i can find the details to develop the Webservice using Seam.Any good document, book, website etc. 回答1: As mentioned in the other question you could use JAX-WS. However if you'd rather use REST services (JAX-RS) then either: Read up on JAX-WS in the Seam Docs Check out Stéphane Épardaud's article here; or Have a look at Sun Jersey which is an implementation of JAX-RS. EDIT : Norman Richards from the

Java/JSF i18n long texts (terms,faq)

a 夏天 提交于 2019-12-07 08:15:20
问题 in most cases i just have a lot of short text strings combined somewhere in the page. But on a few occasions i have just a page with long static text, like terms or faq. Now, just put the paragraph also in the resource bundle or build a switch to either terms_en.xhtml and so on. Whats the best/default way to handle long texts in JSF? 回答1: Typically there are two approaches: Put the text no matter how long into resource files. I believe you do not want to do that for it is cumbersome and