Integration JSF + JasperReport

Hello, somebody has some example or articule that talk about the integration between JSF and JasperReport?
The integration between Spring and JasperReport is very well documented, but i haven't seen nothing about JSF + JasperReport.
Any help well be appreciated.

ellie80 wrote:
Hello, I am using netBeans to create a visual jsf project.I want inside my visual project to insert a map and add markers and infowindows on it.I have heard that google web toolkit is one of the best tools for map integration, but I don't know if I can use it with my visual jsf project.I have downloaded the plugin for gwt but when I create a project that has both gwt and visual jsf, it doesn't build.The thing is that I need the visual jsf part of my project because I have components bound to data.Do you know how I can use both gwt and visual jsf?Or do you know another way of adding a map in visual jsf?Thanks a lot in advance!You don't need GWT, necessarily, to do what you're wanting to do. The blueprints project has a Google Maps mahsup component. I don't know if it has visual jsf support or not, though:
https://blueprints.dev.java.net/ajaxcomponents.html

Similar Messages

  • Problem integrating JSF with Spring

    Here is faces-config.xml
    <application>
    <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
    </application>
    <managed-bean>
    <managed-bean-name>dateuser</managed-bean-name>
    <managed-bean-class>com.datesite.user.DateUser</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>entityManagerDateUser</property-name>
    <property-class>com.datesite.user.EntityManagerDateUser</property-class>
    <value>#{entityManagerDateUser}</value>
    </managed-property>
    </managed-bean>
    </faces-config>
    Here is the deployment exception
    javax.faces.FacesException: javax.faces.FacesException: Error performing conversion of value com.datesite.user.EntityM
    anagerDateUser@380b4f9 of type class $Proxy35 to type class com.datesite.user.EntityManagerDateUser for managed bean d
    ateuser.
    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:53
    7)
    Seems liek it can't figure out which class to instantiate?
    Please help.

    I've used the spring integration but I have not encountered this issue.
    It looks to me like Spring is giving out a proxy implementation that cannot be used in place of the actual class. Some things you might want to try:
    1) Configure Spring to create the bean upon initialization instead of waiting for it to be used.
    2) Remove any aspect-oriented configuration from the spring bean (including transaction support) to see if that makes a difference.
    3) Consider the possibility of a class loading conflict, i.e. was the spring container loaded by a different class loader than the one for the web application?
    Finally I would consider posting this on the forums at springframework.org.

  • Strategy for integrating JSF/JSP with EJB?

    Both JSF/JSP and EJB seem to be developing independently of each other. What is a good strategy for integrating them? I'm not sure how access my entity/session beans from my web pages.

    Follow the MVC architecture. Don't access EJB's from JSF/JSP pages. Here are some basic rules to follow.
    1) never put java code in JSP's. JSP's are for viewing data only. They should never contain business logic nor be tied to the business tier.
    2) JSP's should always send HTTP requests to servlets. Use the servlets to control the flow of the application and make decisions on which JSP should be returned to the client. Make calls to the EJB's from the servlet to perform business logic.

  • Steps of Integrating JSF with struts

    Can anybody tell me the steps of intrgrate JSF with Struts
    Regds
    Amit Verma

    It's a better idea to upgrade your memory amount up to at least 1GB.

  • Problems integrating JSF managed bean with Session EJB with JDeveloper

    HI All,
    I am developeing a JSF-EJB application using Jdeveloper11g. On deploying the application I am getting the following errors on deployment.
    <19/08/2010 2:53:49 PM EST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1282193629318' for task '17'. Error is: 'weblogic.application.ModuleException: Could not setup environment'
    weblogic.application.ModuleException: Could not setup environment
         at weblogic.servlet.internal.WebAppModule.activateContexts(WebAppModule.java:1499)
         at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:442)
         at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:375)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.ModuleStateDriver.activate(ModuleStateDriver.java:95)
         Truncated. see log file for complete stacktrace
    Caused By: weblogic.deployment.EnvironmentException: [J2EE:160101]Error: The ejb-link 'MetaDataBean' declared in the ejb-ref or ejb-local-ref 'MetaData' in the application module 'ViewControllerWebApp.war' could not be resolved. The target EJB for the ejb-ref could not be found. Please ensure the link is correct.
         at weblogic.deployment.BaseEnvironmentBuilder.addEJBLinkRef(BaseEnvironmentBuilder.java:453)
         at weblogic.deployment.EnvironmentBuilder.addEJBReferences(EnvironmentBuilder.java:485)
         at weblogic.servlet.internal.CompEnv.activate(CompEnv.java:157)
         at weblogic.servlet.internal.WebAppServletContext.activate(WebAppServletContext.java:3117)
         at weblogic.servlet.internal.WebAppModule.activateContexts(WebAppModule.java:1497)
         Truncated. see log file for complete stacktrace
    >
    <19/08/2010 2:53:49 PM EST> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application 'data-catalog'.>
    <19/08/2010 2:53:49 PM EST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'data-catalog'.>
    <19/08/2010 2:53:49 PM EST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Could not setup environment
         at weblogic.servlet.internal.WebAppModule.activateContexts(WebAppModule.java:1499)
         at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:442)
         at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:375)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.ModuleStateDriver.activate(ModuleStateDriver.java:95)
         Truncated. see log file for complete stacktrace
    Caused By: weblogic.deployment.EnvironmentException: [J2EE:160101]Error: The ejb-link 'MetaDataBean' declared in the ejb-ref or ejb-local-ref 'MetaData' in the application module 'ViewControllerWebApp.war' could not be resolved. The target EJB for the ejb-ref could not be found. Please ensure the link is correct.
         at weblogic.deployment.BaseEnvironmentBuilder.addEJBLinkRef(BaseEnvironmentBuilder.java:453)
         at weblogic.deployment.EnvironmentBuilder.addEJBReferences(EnvironmentBuilder.java:485)
         at weblogic.servlet.internal.CompEnv.activate(CompEnv.java:157)
         at weblogic.servlet.internal.WebAppServletContext.activate(WebAppServletContext.java:3117)
         at weblogic.servlet.internal.WebAppModule.activateContexts(WebAppModule.java:1497)
         Truncated. see log file for complete stacktrace
    Thanks
    Edited by: user5108636 on 18/08/2010 22:46

    Please find attached the source code of JSF managed bean, local business interface, session bean and web.xml
    MANAGED BEAN_
    package view.backing;
    import java.util.List;
    import javax.ejb.EJB;
    import javax.faces.component.UISelectItems;
    import javax.faces.component.html.HtmlSelectManyListbox;
    import model.ejb.session.MetaDataBean;
    public class SearchMetaDataBean {
    @EJB MetaDataBean metaDataService;
    private List<String> tables;
    private List<String> columns;
    private HtmlSelectManyListbox selectManyListbox1;
    private UISelectItems selectItems1;
    public void setTables(List<String> tables) {
    this.tables = tables;
    public List<String> getTables() {
    return metaDataService.getTables();
    public void setColumns(List<String> columns) {
    this.columns = columns;
    public List<String> getColumns() {
    return columns;
    public void setSelectManyListbox1(HtmlSelectManyListbox selectManyListbox1) {
    this.selectManyListbox1 = selectManyListbox1;
    public HtmlSelectManyListbox getSelectManyListbox1() {
    return selectManyListbox1;
    public void setSelectItems1(UISelectItems selectItems1) {
    this.selectItems1 = selectItems1;
    public UISelectItems getSelectItems1() {
    return selectItems1;
    LOCAL INTERFACE_
    package model.ejb.session;
    import java.util.List;
    import javax.ejb.Local;
    @Local
    public interface MetaDataLocal {
    public List<String> getTables();
    public List<String> getColumns(String tableName);
    SESSION BEAN_
    package model.ejb.session;
    import javax.ejb.Local;
    import java.sql.Connection;
    import java.sql.DatabaseMetaData;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.annotation.PostConstruct;
    import javax.annotation.Resource;
    import javax.ejb.Stateless;
    import javax.sql.DataSource;
    @Stateless(name="MetaData")
    @Local
    public class MetaDataBean implements MetaDataLocal{
    @Resource(name="jdbc/DWDS")
    private DataSource dataSource;
    private Connection connection;
    private List<String> tables = new ArrayList<String>();
    private List<String> columns = new ArrayList<String>();
    private DatabaseMetaData dmd;
    @PostConstruct
    public void initialize(){
    try{
    connection = dataSource.getConnection();
    DatabaseMetaData dmd;
    dmd = connection.getMetaData();
    }catch(SQLException sqle){
    sqle.printStackTrace();
    public MetaDataBean() {
    public List<String> getTables(){
    try{                 
    if (dmd ==null){
    //System.out.println("Database meta data not available");
    tables.add("None");
    }else{
    ResultSet rs = dmd.getSchemas();
    ResultSet rs1 = null;
    while(rs.next()) {
    if (rs.getString(1).equalsIgnoreCase("AV_DATA")){
    rs1 = dmd.getTables(null,rs.getString(1),"%",null);
    while(rs1.next()) {
    tables.add(rs1.getString(3));
    }catch (SQLException sqle){
    sqle.printStackTrace();
    return tables;
    public List<String> getColumns(String tableName){
    try{
    ResultSet rsColumns = dmd.getColumns("", "AV_DATA", tableName, null);
    while(rsColumns.next()){
    columns.add(rsColumns.getString(4));
    }catch (SQLException sqle){
    sqle.printStackTrace();
    return columns;
    WEB.XML_
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <ejb-local-ref>
    <ejb-ref-name>MetaData</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local>model.ejb.session.MetaDataLocal</local>
    <ejb-link>MetaDataBean</ejb-link>
    </ejb-local-ref>
    </web-app>
    Edited by: user5108636 on 18/08/2010 22:45
    Edited by: user5108636 on 18/08/2010 22:46

  • Integrating JSF with Spring

    I get the following exception
    javax.faces.el.EvaluationException: Expression Error: Named Object: 'studentService' not found.
    Any pointers as to why does this error occur would be great help.
    Following is my web.xml
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
         <context-param>
         <param-name>javax.faces.CONFIG_FILES</param-name>
         <param-value>/WEB-INF/faces-config.xml</param-value>
         </context-param>
         <context-param>
         <param-name>contextConfigLocation</param-name>
         <param-value>/WEB-INF/applicationContext.xml</param-value>
         </context-param>
         <listener>
         <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
         </listener>
    <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>
    <!-- Faces Servlet -->
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup> 1 </load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    faces-config.xml
    <application>
         <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
    </application>
         <managed-bean>
         <description>
         Backing bean that contains Student information.
         </description>
         <managed-bean-name>studentBackingBean</managed-bean-name>
         <managed-bean-class>com.lms.student.impl.ui.StudentBackingBean</managed-bean-class>
         <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
         <property-name>studentService</property-name>
         <value>#{studentService}</value>
         </managed-property>
         </managed-bean>
    applicationContext.xml
         <bean id="studentService" class="com.lms.student.impl.service.StudentServiceImpl">
         <property name="studentDAO" ref="studentDAO"/>
         </bean>
    I have spring2.0 jar and jsf 1.1 RI jar

    I believe it has nothing to do with how spring bean is configured
    If I look at the stach trace
    javax.faces.el.EvaluationException: Expression Error: Named Object: 'studentService' not found.
         at com.sun.faces.config.ManagedBeanFactory.getScopeForSingleExpression(ManagedBeanFactory.java:998)
         at com.sun.faces.config.ManagedBeanFactory.hasValidLifespan(ManagedBeanFactory.java:931)
         at com.sun.faces.config.ManagedBeanFactory.evaluateValueBindingGet(ManagedBeanFactory.java:892)
         at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:553)
         at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:234)
         at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:253)
         at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78)
         at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:108)
    Should be some scoping error.

  • [ANN] JSF/Spring integration solution

    We developed a solution for integrating JSF with the Spring framework (http://www.springframework.org/), a well-designed, extensible and easy-to-use Java framework built around an Inversion of Control container (see http://martinfowler.com/articles/injection.html).
    Our glue code wraps the JSF context into a Spring context and thus merges them. This way, the JSF context becomes part of Spring and vice versa. This is done in a implementation independent way so that it can be used with any JSF implementation.
    For source code, documentation and an example application see http://sourceforge.net/projects/jsf-spring.
    Any comments are greatly appreciated!

    I'm experiencing problem in using the
    jsf-spring-2.4-example sample application. The
    following errors was returned:
    ============================================
    javax.servlet.ServletException:
    javax.servlet.jsp.JspException:
    org.springframework.beans.factory.BeanDefinitionStoreException:
    IOException parsing XML document from resource
    [WEB-INF/faces-config.xml] of ServletContext; nested
    exception is java.net.UnknownHostException:
    java.sun.com
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:821)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
    org.apache.jsp.showNames_jsp._jspService(showNames_jsp.java:91)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    org.springframework.web.jsf.RequestHandledFilter.doFilter(RequestHandledFilter.java:116)
    ============================================
    As far as I understand, the error was caused by some
    class within the sample application which tries to
    connect to the Internet. When I'm currently connected
    to the Internet which I cannot always do because I'm
    using a prepaid connection, the error suddenly
    disappear. This makes testing of the application
    difficult when constant Internet connection is absent.
    I hope you can shed light to me regarding this matter.
    Thank you very much!

  • JSF/Spring integration - managed-property problem

    I am using JSF 1.1_01 (MyFaces 1.1), Spring 1.2, Ajax4Jsf.
    The JSF application has h:selectOneMenu .
    On change event of h:selectOneMenu sets "selectedValue" into backing bean as shown below:
    page.jsp
    <h:selectOneMenu value="#{test.selectedDevice}" >
    <f:selectItem itemValue="0" itemLabel="--New--"/>
    <f:selectItem itemValue="1" itemLabel="WorkStation"/>
    <f:selectItem itemValue="2" itemLabel="Router"/>
    <f:selectItem itemValue="3" itemLabel="Switch"/>
    <ajax:support action="#{test.loadDevice}" event="onchange" reRender="t2,t3,t4,t5"/>
    </h:selectOneMenu>
    TestBean.java (Backing Bean)
    public String getSelectedDevice() {
    logger.info(" *** In getSelectedDevice *** ");
    if (selectedDevice == null) {
    selectedDevice = "0"; // This will be the default selected item.
    return selectedDevice;
    public void setSelectedDevice(String selectedDevice) {
    logger.info(" *** In setSelectedDevice *** ");
    this.selectedDevice = selectedDevice;
    Here are the configuration file snippets for integrating JSF Spring
    web.xml
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/applicationContext.xml</param-value>
    </context-param>
    faces-config.xml
    <application>
    <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
    </application>
    <managed-bean>
    <managed-bean-name>test</managed-bean-name>
    <managed-bean-class>test.TestBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>deviceManager</property-name>
    <property-class> test.DeviceTypeManager </property-class>
    <value>#{deviceManager}</value>
    </managed-property>
    </managed-bean>
    The above code results in the following error
    javax.faces.FacesException: Cannot get value for expression '#{test.selectedDevice}'
    The error occurs only if i include <managed-property> inside the <managed-bean> in faces-config.xml.
    The moment i remove <managed-property> from face-config.xml the error disappears & page gets rendered properly.
    The purpose in having <managed-property> inside managed-bean is to call Spring's Manager class (i.e. deviceManager) from JSF application
    Any pointers/suggestions in resolving the error will be highly appreciated
    Regards
    Bansi

    The TestBean have a property for DeviceManager along with setter/getter methods as shown below. Sorry for not including in earlier posting
    TestBean.java (Backing Bean)
    private DeviceTypeManager deviceManager;
    public DeviceTypeManager getDeviceManager() {
         return deviceManager;
    public void setDeviceManager(DeviceTypeManager deviceManager) {
         this.deviceManager = deviceManager;
    Here are the two scenarios
    Scenario 1 : without <managed-property> the code works fine
    Scenario 2 : with <managed-property> the code results in following error
    javax.faces.FacesException: Cannot get value for expression '#{test.selectedDevice}'
    Scenario 1 has only JSF whereas Scenario 2 has JSF-Spring integration
    The Scenario 1 works absolutely fine as the expression '#{test.selectedDevice}' gets its value from setter/getter method in the backing bean(TestBean.java) . This is expected behaviour & wondering why it doesn't work similarly in Scenario 2 instead it complains
    Cannot get value for expression '#{test.selectedDevice}'
    I am willing to upload the war file. Any pointers/suggestions in resolving the error will be highly appreciated
    Regards
    Bansi

  • JSF / Struts - I can't see attributes of my form.

    Hi,
    i've a problem with JSF. I'm using struts in my projects and I need to use a JSF component. So, i integrated JSF & Struts using struts-faces.jar. I converted my jsp file and I succeeded to fill combos but when I submitted form I can't get attributes of my form in action. ( i can see but all of them are null)
    Anybody help me?
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="/WEB-INF/struts-faces.tld" prefix="s"%>
    <%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
    <%@taglib uri="http://www.ibm.com/jsf/rte" prefix="r"%>
    <script>
         function gonder() {
              if ( confirm('E-Postay&#305; göndermek istedi&#287;inizden emin misiniz?') ) {
                   document.forms[0].action = "/Admin/admin/testMail.do?method=kurumUygulamaGonder";
                   //alert("document.forms[0].elements['_id0:konu'].value : " + document.forms[0].elements['_id0:konu'].value);
                   document.forms[0].submit();
    </script>
    <f:view>
         <body>
         <hx:scriptCollector id="scriptCollector1">
              <s:form action="/admin/testMail" >
                   <jsp:include page="/common/header_center.jsp" />
                   <center>
                   <fieldset style="width: 80%">
                        <table border="0" align="center" id="oddEvenTable" width="98%">
                             <tbody>
                                  <tr class="listOddEven">
                                       <td><h:outputText value="Kurum" /></td>
                                       <td><br>
                                            <h:selectManyListbox styleClass="selectManyListbox"
                                       id="kurumlar" value="#{mailForm.kurumlar}" size="7">
                                       <f:selectItems
                                            value="#{selectitems.requestScope.kurumList.kurumAdi.kurumAdi.toArray}" id="selectItems0" />
                                  </h:selectManyListbox>
                                       </td>
                                       <td></td>
                                       <td><h:outputText value="Uygulama" /></td>
                                       <td>
                                            <h:selectManyListbox styleClass="selectManyListbox"
                                       id="uygulamalar" value="#{mailForm.uygulamalar}" size="7">
                                       <f:selectItems
                                            value="#{selectitems.requestScope.uygulamaList.uygulamaAdi.uygulamaAdi.toArray}"
                                            id="selectItems1" />
                                  </h:selectManyListbox>                         
                                       </td>
                                  </tr>
                                  <tr class="listOddEven">
                                       <td><h:outputText value="Konu" /></td>
                                       <td colspan="4"><h:inputText id="konu" size="118" value="#{mailForm.konu}"/></td>
                                  </tr>
                                  <tr class="listOddEven">
                                       <td><h:outputText value="&#304;çerik" /></td>
                                       <td align="center" colspan="4"><r:inputRichText width="702"
                                            height="352" id="content" value="#{mailForm.content}"></r:inputRichText>
                                       </td>
                                  </tr>
                                  <tr class="listOddEven">
                                       <td colspan="5" align="center" valign="middle">
                                       <hx:commandExButton
                                                 type="button" value="Gönder" styleClass="commandExButton"
                                                 id="btnKriterlereGoreAra" onclick="gonder()">
                                            </hx:commandExButton>
                                       </td>
                                  </tr>
                             </tbody>
                        </table>
                   </fieldset>
                   </center>
              </s:form>
    </f:view>

    Settings>Mail, Contacts, Calendars>Show
    http://i1224.photobucket.com/albums/ee374/Diavonex/382b7c7505f26ac775b54ce257655 5b4.jpg

  • JSF Tiles Stylesheet solution

    This is just a post for other newbies (like me !) out there who might have struggled with integrating JSF & Tiles. It turns out my problem was not integration related at all & nor was it related to JSF (probably) or Tiles. I just did not know how to load a stylesheet correctly. The way I did it the first time was:
    <head>
    <link rel="stylesheet" href="./config/styles.css" type="text/css"/>
    </head>
    This worked fine the first time the page was displayed. Now if there was a validation error JSF would re-display the same page with all styles missing. The page would have the correct Tiles layout nonetheless.
    After much searching up all the wrong alleys (such as integration between the two etc.), I finally arrived at the correct way to load the .css file:
    <head>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/config/styles.css" type="text/css" />
    </head>
    Now the path is derived from the contextPath of the application each time and the pages do not lose their styles.
    ...just in case someone else hits this and ends up looking here.
    Ciao, Bhishma

    Thanks Bhishma your solution was very usefull, I wish to know if you have some blog or something where I could write to you, for to be in touch and share experiences from our countries, sorry for my bad english

  • Exception invoking JSF : Not in GZIP format

    Hi,
    I am trying integrating jsf and spring.
    I am using JBoss server, JSF1.2 and Spring Framework 2.5.
    When I submit my jsf page, I am getting this exception:
    06:57:34,839 FATAL [renderkit] Not in GZIP format
    java.io.IOException: Not in GZIP format
         at java.util.zip.GZIPInputStream.readHeader(Unknown Source)
         at java.util.zip.GZIPInputStream.<init>(Unknown Source)
         at java.util.zip.GZIPInputStream.<init>(Unknown Source)
         at com.sun.faces.renderkit.ResponseStateManag
    Have you experienced this problem earlier? Let me know?
    Edited by: Laddha on Nov 21, 2007 12:14 PM
    Edited by: Laddha on Nov 21, 2007 2:01 PM
    Edited by: Laddha on Nov 21, 2007 2:07 PM

    It is working now, I just hand coded the jsf page now. Probably content copied earlier was problem.

  • Physically printing a report from Apex using BI Publisher

    Hi,
    I know it is possible to generate and download a PDF (or any other format) in Apex using BI Publisher (Apex 4.0.2)
    But is it possible to physically PRINT a report in a specified printer? For example, the user clicks a button and the report comes out of the printer just like that.
    Note: I am NOT after a solution where the report is firstly displayed on the screen and then the user performs some action to print it from there (that is pretty easy to do.)
    I know that BI Publisher can do it, as its web service has an option to do so.
    Thanks
    Luis

    Hi Luis,
    not sure this is possible.
    Only SOME of the features of BI Publisher are used from APEX as a service to create the reports.
    *) I am not aware of any parameters / attributes in APEX so that you could specify a printer directly
    *) It is not part of the API you could use instead manually:
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDGFADB
    I have just recently implemented that myself for an integration with JasperReports. It is currently in beta test:
    http://daust.blogspot.de/2012/08/jasperreportsintegration-200-beta-test.html
    Thus your options are:
    *) I am not sure that BI publisher allows that but perhaps you could first call the apex utility function apex_util.get_print_document to retrieve the blob from bi publisher. Then perhaps (if allowed) send the blob again by yourself and using the print features of bi publisher.
    Here you would have to write the utl_http communication yourself.
    *) If bi publisher doesn't allow the separate process (generation first and then sending it to a printer) then you would also have to write a j2ee application which does that.
    *) another option could be to store the generated blob in the filesystem on the database and call a shell script from within the database. This shell script would send it to the network printer.
    Hope that helps,
    ~Dietmar.

  • Getting exception in ValueResolver

    Hi,
    I am getting following exception while integrating JSF with Spring
    E com.sun.faces.application.ApplicationImpl createAndMaybeStoreManagedBeans Can't set managed bean property: 'searchAppService'.
    javax.faces.FacesException: Can't set managed bean property: 'searchAppService'.
         at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:582)
         at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:234)
         at com.sun.faces.application.ApplicationImpl.createAndMaybeStoreManagedBeans(ApplicationImpl.java:899)
         at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:84)
    Faces-config entry
    <application>
         <variable-resolver>
              org.springframework.web.jsf.DelegatingVariableResolver
         </variable-resolver>
    </application>
    Cheers,
    Manish

    Read the stacktrace. There is more in it. The root cause for example which is missing in the stacktrace you posted.

  • ManagedBean is not accessible, using JSF2.2, Spring 4.0 and SpringSecurity 3.2

    Dear All,
    I am developing a Dynamic Web Application, using JSF 2.2, Spring Framework 4.0 and Spring Security 3.2. I, first, integrated JSF and Spring framework (JSF Page => ManagedBean => Service => DAO). It was working fine. But when I introduced Spring Security, I am unable to access ManagedBean in JSF page and getting no error at all. ManagedBean is not even invoked (even constructor is not called). I have been surfing for this issue for 2 days now, but couldn’t find any resolution.
    My config files are as following:
    faces-config.xml
        [code=java]<?xml version="1.0" encoding="UTF-8"?>
        <faces-config
            xmlns="http://xmlns.jcp.org/xml/ns/javaee"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd"
        version="2.2">
            <application>
         <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
            </application>
        </faces-config>[/code]
    Web.xml
       [code=java] <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
      id="WebApp_ID" version="3.0">
      <display-name>my-app-ui</display-name>
      <welcome-file-list>
      <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
      <!-- Spring Framework -->
      <listener>
      <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
      </listener>
      <listener>
      <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
      </listener>
      <!-- Spring context config locations -->
      <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>classpath*:/applicationContext.xml</param-value>
      <param-value>classpath*:/securityConfig.xml</param-value>
      </context-param>
      <!-- PROJECT STAGE START FOR DEVELOPEMENT MARK IT AS DEVELOPMENT. FOR TESTING / PRODUCTION REMOVE THIS -->
      <context-param>
      <param-name>javax.faces.PROJECT_STAGE</param-name>
      <param-value>Development</param-value>
      </context-param>
      <!-- Spring Security -->
      <filter>
      <filter-name>springSecurityFilterChain</filter-name>
      <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
      </filter>
      <filter-mapping>
      <filter-name>springSecurityFilterChain</filter-name>
      <url-pattern>/*</url-pattern>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>REQUEST</dispatcher>
      </filter-mapping>
      <!-- JSF -->
      <servlet>
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.html</url-pattern>
      </servlet-mapping>
      </web-app>
    [/code]
    applicationconContext.xml
      [code=java]<beans xmlns="http://www.springframework.org/schema/beans" 
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
       xmlns:tx="http://www.springframework.org/schema/tx"  
       xsi:schemaLocation="http://www.springframework.org/schema/beans  
      http://www.springframework.org/schema/beans/spring-beans.xsd 
      http://www.springframework.org/schema/context  
      http://www.springframework.org/schema/context/spring-context.xsd"> 
      <context:annotation-config />
      <context:component-scan base-package="com.myapp.managedbean"/>
      <context:component-scan base-package="com.myapp.service"/>
      <context:component-scan base-package="com.myapp.domain"/>
      <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
      <property name="jndiName" value="java:comp/env/jdbc/myDS" />
      </bean>
      <bean id="txManager"
      class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
      <property name="dataSource" ref="dataSource" />
      </bean>
      </beans> 
    [/code]
    securityConfig.xml
      [code=java]<b:beans xmlns="http://www.springframework.org/schema/security" 
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:b="http://www.springframework.org/schema/beans"
       xsi:schemaLocation="http://www.springframework.org/schema/beans  
      http://www.springframework.org/schema/beans/spring-beans.xsd 
      http://www.springframework.org/schema/security
      http://www.springframework.org/schema/security/spring-security.xsd "> 
      <debug />
      <http pattern="/resources/**" security="none" />
      <http pattern="/login*" security="none" />
      <http auto-config="true" use-expressions="true" disable-url-rewriting="true" >
      <intercept-url pattern="/**" access="authenticated" />
      <form-login authentication-failure-url="/loginfailed.html"
      default-target-url="/" always-use-default-target="true"/>
      <access-denied-handler error-page="/denied.html"/>
      <session-management invalid-session-url="/session-expire.html" session-fixation-protection="none" />
      <logout delete-cookies="JSESSIONID" invalidate-session="true" />
      <http-basic />
      </http>
      <authentication-manager>
       <authentication-provider>
      <user-service>
       <user name="user_admin" password="password" authorities="ROLE_USER,ROLE_ADMIN" />
       <user name="user" password="password" authorities="ROLE_USER" />
      </user-service>
       </authentication-provider>
      </authentication-manager>
      </b:beans>
    [/code]
    first-jsf-page.xhtml
      [code=java]<!DOCTYPE html >
      <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets">
      <head>
      </head>
      <body>
      Managed bean data: #{myMB.fetchDataFromService()}
      </body>
      </html>[/code]
    ManagedBean
       [code=java] @Component("myMB")
        @Scope("session")
        public class MyMB implements Serializable {
            public MyMB () {
      System.out.println("Constructor called");
      @Autowired 
      @Qualifier("myService") 
      public MyService myService;
      Public String fetchDataFromService() {
      System.out.println("Invoking Service"); 
      return myService.getMessage(); 
    [/code]
    MyService
      [code=java]public interface MyService {
      public String getMessage(); 
      }[/code]
    MyServiceImpl
      [code=java]@Service("myService") 
      public class MyServiceImpl implements MyService { 
      @Override 
      public String getMessage() { 
       return "JSF and Spring Integrtion - Done"; 
      }  [/code]
    If I remove "DelegatingFilterProxy" from Web.xml, everything works fine. Kindly help me out here.
    I am using Eclipse and tomcat server.

    bump anyone please ?

  • Import JAR files (integrating JasperReports)

    Dear all,
    I'm using JDeveloper 11.1.1.3.0 on Windows 7 32bit.
    I search this forum and I google a lot, but I couldn't find any workable solution.
    I downloaded the newest version of JasperReport and iReport from the official website. I've done some tutorials from this site and everything seems to work fine.
    Now I want to integrate JDev with JasperReports. I create new Fusion Web Application ADF, I get the properties of Model project, Libraries and Classpath tab, add Library and click New... I set the Library name as JasperReports, location as Project, check Deploy ad Default. I add to Class path every JAR files in E:\JasperReports\jasperreports-3.7.6\lib and to Source path the whole directory E:\JasperReports\jasperreports-3.7.6\src. I get sure that the Export is checked and I save all the changes.
    I create a new Java Class JasperTest and I use this sample code:
    import net.sf.jasperreports.engine.*;
    import net.sf.jasperreports.engine.export.*;
    import java.util.*;
    public class JasperTest {
        public static void main(String[] args) {
            String fileName = "test.jasper";
            String outFileName = "test.pdf";
            HashMap hm = new HashMap();
            try {
                // Fill the report using an empty data source
                JasperPrint print = JasperFillManager.fillReport(fileName, hm, new JREmptyDataSource());
                // Create a PDF exporter
                JRExporter exporter = new JRPdfExporter();
                // Configure the exporter (set output file name and print object)
                exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, outFileName);
                exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
                // Export the PDF file
                exporter.exportReport();
            } catch (JRException e) {
                e.printStackTrace();
                System.exit(1);
            } catch (Exception e) {
                e.printStackTrace();
                System.exit(1);
    }I cant compile this, it gives me Error(1,1): package net.sf.jasperreports.engine does not exist etc..
    I cant import any class from JasperReports. Did I something wrong with importing the JAR files to my project ? Maybe I should set some system environment variable ? What else I can do ?
    Any help will be appraciated.
    Regards,
    Wojtek.

    Hi,
    I am also facing the same problem, I have few Jasper Reports which are closely integrated with my APEX applications, but for this i am using another application ( Jasper reports) which deployed in tomcat. This application hardly have 20 lines of java code, so i thought of embedding same in PL/SQL itself, But i am facing problem while importing JAR files i.e.
    1. Where to put these JAR files so that i can import them in my PL/SQL.
    2. I also tried using JAVALOAD function, but that also not worked for me.
    Please give me some solution how to go about it??

Maybe you are looking for

  • Multiple instances of same portlet on same page

    Dead horse, I know, but I am afraid I still don't get it: I use ONE JSP to extract data as XML, parse the data using XSL, render it. A portlet has some variables that may vary between instances of the same portlet on the same page. I am familiar with

  • X-Fi Xtrememusic w/ Heatsink Lower RMAA Resul

    Hi, I just purchased the X-Fi Xtrememusic and am loving the quality of the Analog out with my headphones. I'm curious though, because accorfing to this http://audio.rightmark.org/downloads/Sound%20Blaster%20X-Fi%20Testing%20Methodology%20And%20Result

  • Display records as tiles on page

    Hi to everyone, I need you help again. I m having a datacontrol consisting of blob column consisting of images, when query result should display only images as tiles on page, facing problem of how to display them as tiles in page (ike google image se

  • Is Rosetta still part of Mac OSX post Leopard?

    The reason I ask is that I have a number of PPC only games (Myst games mostly) that I understand will only run on my Intel iMac (Mac OS 10.5.2) under Rosetta. Thank you

  • HT2693 I need assistance locating SIRI, anyone!?

    i have an iphone 4s, but SIRI is not on my phone. How do I get it to show up on the screen? I've been working on this thing for an hour now, so any suggestions would be appreciated!! Thanks