XML as DataSource for JSF app

I am using xml files as the data for a JSF app. I know how to use dataproviders attached to databases in order to display and update data to and from the jsf page. Is there a simple way to do this with XML as the data source?

Let me just add I would like to be able to do CRUD on the xml

Similar Messages

  • Unable to delete EPMA Planning app & re-use datasource for new app

    We have EPMA Planning application (v11.1.1.3)
    I am trying to delete a deployed planning application and try to use the same datasource for creating new application.
    I have deleted the application from EPMA application library and deleted it from Planning directory in Shared Services. But, still that datasource is not showing up as available datasource for new application.
    Any ideas to how I can re-use the datasource. Please advise.
    Thanks,
    DV

    You may need to update the planning system tables.
    Go into the planning system relational tables
    Table HSPSYS_APPLICATION, delete row relating to planning app, note the app_id.
    Table HSPSYS_PROPERTIES, delete records with id that you have just stored.
    Table HSPSYS_DATASOURCES, update app_id to -1 for the datasource you use for the planning app.
    Restart Planning.
    Try again.
    Ok?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Siebel CRM Modules as DataSource for OBI Apps other than EBS R12

    I want to install Siebel CRM modles that will help me serving as SourceSystem for OBI Applications to R&D DAC & associated prebuilt Informatica mappings.
    {noformat}Name                                                                                                                Part Number                       Size (Bytes){noformat}
    {noformat}Siebel Business Applications Version 8.1.1.0 Quick Installation Guide                                               V14590-01                      390K{noformat}
    {noformat}Siebel Business Applications Version 8.1.1.0 Bookshelf                                                              V14591-01                      149M{noformat}
    {noformat}Siebel Business Applications Version 8.1.1.0 Third-Party Documentation                                      V14959-01                      6.9M{noformat}
    {noformat}Siebel Business Applications Version 8.1.1.0 (SEA) Base Applications for Windows (Part 1 of 2)      V15364-01 Part 1 of 2      1.9G{noformat}
    {noformat}Siebel Business Applications Version 8.1.1.0 (SEA) Base Applications for Windows (Part 2 of 2)      V15364-01 Part 2 of 2      460M{noformat}
    Siebel Business Applications Version 8.1.1.0 (SEA) Sample Database                                              V15406-01                      1.2G
    Siebel Business Applications Version 8.1.1.0 Siebel Business Rules                                              V15464-01                      442M
    Siebel Business Applications Version 8.1.1.0 (SEA) Siebel Client (Part 1 of 2)                              V15359-01 Part 1 of 2      1.9G
    Siebel Business Applications Version 8.1.1.0 (SEA) Siebel Client (Part 2 of 2)                              V15359-01 Part 2 of 2      1.7G
    Siebel Business Applications Version 8.1.1.0 (SEA) Siebel Tools                                                      V15388-01                      1.9G
    Siebel Business Applications Version 8.1.1.0 (SEA) Self-Service Applications                                     V15041-01                      406M
    Siebel Business Applications Version 8.1.1.0 (SEA) Strong Encryption Pack                                      V15383-01                      225M
    Siebel Business Applications Version 8.1.1.0 (SEA) ImageCreator Files                                              V15373-01                      213M
    Siebel Business Applications Version 8.1.1.0 (SEA) English Language Extension Pack (Part 1 of 2)      V15367-01 Part 1 of 2      1.9G
    Siebel Business Applications Version 8.1.1.0 (SEA) English Language Extension Pack (Part 2 of 2)      V15367-01 Part 2 of 2      602M
    Siebel Business Applications Version 8.1.1.0 eMail Marketing Integrated Server Windows              V14834-01                      98M
    Siebel Smart Answer Connector for Windows                                                                              V16621-01                      317M
    Oracle Business Intelligence Product Support Information (CD)                                                      B45928-01                      116K
    Oracle BI Publisher Enterprise 10.1.3.4.0 for Microsoft Windows (Part 1 of 2)                              B50931-01 Part 1 of 2        598M
    Oracle BI Publisher Enterprise 10.1.3.4.0 for Microsoft Windows (Part 2 of 2)                              B50931-01 Part 2 of 2              162M
    Oracle BI Publisher Desktop 10.1.3.4.0 for Microsoft Windows                                                      B50929-01                      118M-----------------------------
    Can any one please help me with
    1. all the part numbers to download for a full fledged R&D set up?
    2. what other components are required to integrate siebel crm w/ obiee, obi apps, infa prebuilt mappings
    3. any installtion guide for reference.
    Appreciate your time.

    Hi
    If you do the install from the sofware lsited (btw I would challenge the choice of the SEA vs the SIA) , you will face an issue for your project as you will end up with an empty database and you will not be able to extract any data for dashboards.
    Check the licence agreement on the virtual machine available with SIebel preinstalled as you might use them to save on the effort of install and also get some sample data to play with.
    Best Regards
    EvtLogLvl

  • Good Hosting for JSF app

    Hey guys,
    I'm looking for a stable and easy upgradeable hosting provider who offers Dedicated Solaris servers that I can upgrade to if the net hits the fan. I don't have experience with Solaris hosting, but I would love to get me some if you know what I mean.
    Thanks in advance.

    Just look for JSP/Servlet hosting.
    Here is an overview of all JSP/Servlet hosters: http://www.google.com/search?q=jsp+servlet+hosting

  • Getting xml file from web for iPhone App

    Im having an app get an xml file from the web and process it. Ive got the processing part down, ive even got the downloading part done. Problem is so far ive only downloaded a generic xml file hardcoded into the app. I need the user to input a value of the file to get. As a matter of fact, ive been thinking that i may even use the UniqueIdentifier for the iphone to make the file unique enough without the hassle of having to search thru user/pass combinations. So i have the webform to have users enter the values and then their iphones unique ID. But i need to have the user get the unique ID from their phone. Unfortunately ive been able to find this:
    UIDevice *device = [UIDevice currentDevice];
    NSString *uniqueIdentifier = [device uniqueIdentifier];
    [device release];
    NSLog(@"Device GUID:%@", uniqueIdentifier);
    but this number does not show up on the iPhone UserInterface, so my user would have no way of knowing what his/her uniqueIdentifier is
    So my question is 2-fold:
    1. If UniqueIdentifier is the best way to go, how do i have my users visualize their UniqueIdentifier in order to give their xml file that name?
    2. If the user/pass is the best way to go, id have to store user, pass and file name in a database online and have the user create an account which would generate a unique idFilename for him/her and that way fetch the file.

    Hi Marcio -
    I suspect I don't understand your requirements, so if my reply is irrelevant, please tell us a little more about what you're trying to do.
    Marcio Valenzuela wrote:
    1. If UniqueIdentifier is the best way to go, how do i have my users visualize their UniqueIdentifier in order to give their xml file that name?
    I'm not sure what you mean by visualize. If you want the user to see the device id, why not populate a label or text field with it? Otherwise, why not just insert the id into the request yourself? E.g.:
    UIDevice *device = [UIDevice currentDevice];
    NSString *uniqueIdentifier = [device uniqueIdentifier];
    // [device release]; <-- do not release object you don't own
    NSLog(@"Device GUID:%@", uniqueIdentifier);
    textField1.text = uniqueIdentifier; // if we think the user wants to see this
    [self addIdToRequest:uniqueIdentifier]; // implementation is an exercise for the student
    2. If the user/pass is the best way to go, id have to store user, pass and file name in a database online and have the user create an account which would generate a unique idFilename for him/her and that way fetch the file.
    This is up to you. If the download isn't confidential info, it might be ok to rely on the device id. Otherwise you clearly put the owner's info at risk in case someone else operates the device.
    Im having an app get an xml file from the web and process it.
    I'm not sure why you included this info about the downloaded data format, and that's one reason I'm not sure I understand the problem. But I hope the above will help you see what needs to be clarified.
    - Ray

  • Quiz app in jsp using xml as datasource

    Hi if one wants to set up a simple application like a quiz app that stores all its question in an xml file.
    The basic structure is like a java class reading from the xml using DOM/SAX then writing the info in the bean then getting that info in a jsp file.
    But i am having some problem with the code.
    First problem is how do i read a set of records from the xml file to the bean and then transfer it to the jsp page. I am using a simple java bean no EJB's
    Any help appreciated

    Does the javabean represent one question or does it represent all the questions (so - do you have QuestionBean or QuestionsBean)?
    For the sake of discussion, let's say that you have a QuestionBean - it represents one question; (it may also contain answers, too?)
    Let's also create an object that will hold the questions. How about calling this QuizBean?
    Your Parser.java would use jdom to read in the xml file. For each question node it finds, it creates a QuestionBean and sets the properties.
    hi steve until here its quite clear...
    but why do we need to create another quiz bean, cant we read each time from the xml file, yes the xml file has questions and answers.
    suppose there is a next button in the jsp page and each time its hit this happens
    xml >> parser.jsp ( fetches a question with answer ) >> bean.java >> jsp
    sorry steve i am kind of newbie in jsp, i have always used microsoft technologies, so ..... :)
    questions.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Subject>
              <Topic Name="science">
              <Questions>
                   <Ques>What is the color of the sky?</Ques>
                   <wrong>green</wrong>
                   <wrong>yellow</wrong>
                   <wrong>brown</wrong>
                   <correct>blue</correct>
              </Questions>
              <Questions>
                   <Ques>what is xml?</Ques>
                   <wrong>i dont know</wrong>
                   <wrong>we dont know</wrong>
                   <wrong>you dont know!!!</wrong>
                   <correct>use google :)</correct>
              </Questions>
              <Questions>
                   <Ques>where is delhi ?</Ques>
                   <wrong>bombay</wrong>
                   <wrong>pakistan LOL</wrong>
                   <wrong>usa</wrong>
                   <correct>near noida</correct>
              </Questions>
         </Topic>
         </Subject>

  • CMS for JSF Web App

    Hello Experts,
    I am new to Java Web Development, just moving from PHP, HTML, CSS and JS.
    Normally, when I build web apps.. I create a simple CMS using PHP and MySQL for the website. So am wondering if there is a CMS for JSF Web Apps.
    I am new, so am open to suggestions and advise.
    Thanks in advance,
    Shina

    There is Flexive. http://www.flexive.org/
    But like Java itself, it is aimed more at enterprise solutions and thus is far more complex than your average PHP CMS "solution".

  • Was changed app behavior for JSF 1.1 (commandLink action)

    I use very simple navigation approach. Inside commandLink tag I have set action property (new_patient):
    <h:panelGrid id="ACTION" columns="6" styleClass="entity-action" columnClasses="entity-action-column">
    <h:form>
    <h:commandLink styleClass="jclink" action="new_patient" >
    <h:outputText value="New Entity" />
    </h:commandLink>
    </h:form>
    And I have the navigation rule:
    <navigation-rule>
    <from-view-id>/pages/EntityListLayout.jsp</from-view-id>
    <navigation-case>
    <from-outcome>new_patient</from-outcome>
    <to-view-id>/pages/EntityDetailLayout.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    I don't use any action listeners and backing beans to navigate from this place.
    It worked fine for JSF 1.0 and doesn't work for JSF 1.1 (I have javascript assertion: document.forms._id15... is null or not an object). What was changed? May be I miss something? Or from 1.1 I should use some bean method with return "new_patient"?
    Thanks a lot.

    2. there is bug in datatable - immediate command reset
    interface component submited value to benas value
    Is it fixed ?
    Can you please help me reproduce this bug? Can you perhaps post a JSP
    fragment that shows the problem?example ;
    <f:form>
    <h:dataTable value="tData.model" var="data" .... >
    <h:inputText value="data.field" ... />
    </h:dataTable>
    <h:commandButton immediate="true" action="action" />
    </f:form>
    begin value for field is for instance '1' (from bean data)
    I type '2' and click Button (with immediate and value be leave unchanged)
    JSF return value from field to '1' (from bean)
    Button can be in <h:dataTable> - it is same
    When i try this with simple component (without <h:dataTable> )value leave '1'
    myfaces work fine
    regards

  • Is JSF 1.0 redistributable for commercial apps

    We need to write a JSF app and plan to use JSF 1.0 but it says they are sun licensed binaries. So do we need some licensing or can we just use them and redistribute them? Please suggest.
    Thanks

    You can.
    see http://forum.java.sun.com/thread.jsp?forum=427&thread=515575&tstart=15&trange=15

  • Initial forward in RichFaces app gets 404, but simple JSF app works fine

    (I asked about this on the RichFaces forum, but perhaps this isn't a RichFaces issue.)
    've just started to look deeply into JSF. I'm deploying some test apps to WebLogic 9.2.2. I have two simple apps I'm testing. One is a plain JSF app, and the other is the "echo" RichFaces app.
    When I go to the URL for the plain JSF app, the "index.jsp" successfully forwards to the main page, and it shows up.
    When I go to the URL for the RichFaces "echo" app, I immediately get a 404.
    I added some debug, so I know that it executes my "index.jsp". I also set a breakpoint in org.ajax4jsf.webapp.BaseFilter.doFilter(), and I see it hit that. I also added a debugging lifecycle listener.
    So, with this debug enabled, I get this:
    [DEBUG] BaseFilter - Filter start request processing at 12/31/07 12:05 PM for uri: /AjaxEcho/faces/echo.jsp
    [DEBUG] BaseFilter - Filter request output to XML
    BeforePhase: RESTORE_VIEW 1
    AfterPhase: RESTORE_VIEW 1
    BeforePhase: RENDER_RESPONSE 6
    AfterPhase: RENDER_RESPONSE 6
    [DEBUG] BaseFilter - Finished request processing total time 31ms for uri: /AjaxEcho/faces/echo.jsp
    As that didn't tell me anything, I enabled debug for "com.sun.faces" and "org.ajax4jsf", which produced the output following this. I still don't see any obvious clues here.
    [DEBUG] BaseFilter - Filter start request processing at 12/31/07 1:57 PM for uri: /AjaxEcho/faces/echo.jsp
    [DEBUG] BaseFilter - Filter request output to XML
    [DEBUG] BaseXMLFilter - XML filter service start processing request
    [DEBUG] LifecycleImpl - execute(com.sun.faces.context.FacesContextImpl@1539b09)
    [DEBUG] AjaxPhaseListener - Process before phase RESTORE_VIEW 1
    [DEBUG] InitPhaseListener - Perform additional framework initialization on first request
    BeforePhase: RESTORE_VIEW 1
    [DEBUG] RestoreViewPhase - Entering RestoreViewPhase
    [DEBUG] ViewHandlerImpl - URL pattern of the FacesServlet executing the current request /faces
    [DEBUG] AjaxStateManager - Can't restore view state : no saved view states in se ssion
    [DEBUG] AjaxViewHandler - Detect session expiration in AJAX request - view don't restored for a viewId /echo.jsp
    [DEBUG] RestoreViewPhase - New request: creating a view for /echo.jsp
    [DEBUG] ViewHandlerImpl - Created new view for /echo.jsp
    [DEBUG] ViewHandlerImpl - Locale for this view as determined by calculateLocale en
    [DEBUG] ViewHandlerImpl - RenderKitId for this view as determined by calculateRenderKitId HTML_BASIC
    [DEBUG] RestoreViewPhase - Exiting RestoreViewPhase
    AfterPhase: RESTORE_VIEW 1
    [DEBUG] InitPhaseListener - Remove init phase listener from factories
    [DEBUG] LifecycleImpl - removePhaseListener(ANY 0,org.ajax4jsf.event.InitPhaseListener@b61de0
    [DEBUG] AjaxPhaseListener - Process after phase RESTORE_VIEW 1
    [DEBUG] LifecycleImpl - Skipping rest of execute() because of a reload
    [DEBUG] LifecycleImpl - render(com.sun.faces.context.FacesContextImpl@1539b09)
    [DEBUG] AjaxPhaseListener - Process before phase RENDER_RESPONSE 6
    [DEBUG] AjaxPhaseListener - PhaseListener enter Before RenderView Phase with ViewId /echo.jsp and RenderKitId HTML_BASIC
    BeforePhase: RENDER_RESPONSE 6
    [DEBUG] RenderResponsePhase - Entering RenderResponsePhase
    [DEBUG] RenderResponsePhase - About to render view /echo.jsp
    [DEBUG] ViewHandlerImpl - About to render view /echo.jsp
    [DEBUG] ViewHandlerImpl - URL pattern of the FacesServlet executing the current request /faces
    [DEBUG] ViewHandlerImpl - Found no URL patterns mapping to FacesServlet
    [DEBUG] AjaxContext - Process component tree for collect used scripts and styles
    [DEBUG] InternetResourceBuilder - Return instance of internet resource builder org.ajax4jsf.resource.ResourceBuilderImpl@1011211
    [DEBUG] RenderResponsePhase - Exiting RenderResponsePhase
    AfterPhase: RENDER_RESPONSE 6
    [DEBUG] AjaxPhaseListener - Process after phase RENDER_RESPONSE 6
    [DEBUG] BaseXMLFilter - create HTML/XML parser for content type: null
    [DEBUG] BaseXMLFilter - Parser not have support for the such content type, send response as-is
    [DEBUG] BaseFilter - Finished request processing total time 17721ms for uri: /AjaxEcho/faces/echo.jsp

    I got this working, but it sure seems odd to me. In the working JSF app, I didn't notice that the forward from "index.jsp" references "/faces/main.jsp", even though "main.jsp" is in the root of the app. I changed my RichFaces app to do the same, so it references the "fake" root directory of "/faces". Now it works fine, it's just odd looking. I didn't notice this being called out in the JSF book (Complete Reference).

  • The ELResolvers for JSF were not registered with the JSP container

    I'm trying to configure mojarra on tomcat6 (because I want to use Elastic Beanstalk). tomcat complains:
    Feb 8, 2011 10:24:17 AM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
    INFO: JSF1027: [null] The ELResolvers for JSF were not registered with the JSP container.
    I have tried all sorts of combinations of replacing EL2.2 libs in tomcat/lib, putting the libs in WEB-INF/lib, and the context param:
    <context-param>
    <param-name>com.sun.faces.expressionFactory</param-name>
    <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
    </context-param>
    JSF pages seem to work but I'd rather have a clean startup. Please assist. Thx in advance.

    Thx for replying.
    I have jstl-1.2.jar:
         <dependency>
                   <groupId>javax.servlet</groupId>
                   <artifactId>jstl</artifactId>
                   <version>1.2</version>
    <scope>provided</scope>
              </dependency>
    Which version numbers are you referring to in *.xml? The following?
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    version="2.5">
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
    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-facesconfig_2_0.xsd"
    version="2.0">

  • Using Spring in Nitrox for JSF

    Hallo -- I have a full domain model implemented with Hibernate and Spring, making extensive use of Spring's Hibernate APIs, so need to be able to include Spring support in my Nitrox JSF app.
    The problem is, all I can find is seemingly contradictory articles on how to do this.
    Can anyone give me a breakdown of the steps I need to take to include Spring support & access the Spring beans I've wired in a Nitrox JSF app.?
    Like, what web.xml entries, what faces-config.xml entries, etc.?
    I have been struggling w/ this for some time & am getting very close to a deadline, so any & all help would be very appreciated!
    Cheers,
    doug.

    Yes, it is doable but using a trick which I can think of so far. First of all, it is understood that JSF will always display the page name in the URL from which the request was submitted.
    Now, you can have a single page named 'ConstantPage.jsp' with layout defined say, top, left body, right and footer portion, usually this will define your complete page layout.
    Now, just a trick is that, all page will simply navigate to ContsantPage.jsp, and this jsp itself will include required portion (dynamic page) required to display the current complete page.
    In this fashion, your application will always show /faces/'ConstantPage.jsp in browser URL, and page contents will vary based on the provided page name to include.
    Hope this will solve your problem, efficiently.
    Edited by: Rajneesh.K.Rajput on Dec 7, 2009 1:45 AM

  • ** Tomcat JSF App Timeout  ---HTTP Status 500 -could not be restored.

    ** Tomcat JSF App Timeout ---------------HTTP Status 500 -----javax.servlet.ServletException: viewId:/welcome.jsf - View /welcome.jsf could not be restored.
    Hi Guys,
    I have a JSF app running under Tomcat 6. It works great...fast and Stable...
    I have a problem with session timeouts..
    I get this error when I leave the browser open to a page and try to use any links..
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: viewId:/welcome.jsf - View /welcome.jsf could not be restored.
          javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)
          org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
          org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:265)
          org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:376)
          org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503)
    I have this in my web.xml
    <error-page>
    <error-code>500</error-code>
    <location>/error500.jsp</location>
    <error-code>404</error-code>
    <location>/error500.jsp</location>
    <error-code>400</error-code>
    <location>/error500.jsp</location>
    <error-code>403</error-code>
    <location>/error500.jsp</location>
    </error-page>Any help out there??
    Thanks
    Phil

    Thanks BalusC,
    I have added
    <error-page>
         <exception-type>javax.faces.application.ViewExpiredException</exception-type>
         <location>/errorTimeOut.jsp</location>
    </error-page>
    <error-page>
         <exception-type>java.lang.Exception</exception-type>
         <location>/errorTimeOut.jsp</location>
    </error-page>and
    <context-param>
            <param-name>com.sun.faces.enableRestoreView11Compatibility</param-name>
            <param-value>true</param-value>
    </context-param>It now seems to work without any timeout.
    Have a great weekend and thanks for your help again.
    Phil

  • Using Studio Enterprice to create JSF apps

    Hello,
    After reviewing the Sun Java studio creator it has been decided that we still wan't to use the Sun Java studio Enterprise as our IDE of choice. Now, I have created a simple jsp file with the following jsf code in it:
    -------- 8< ------
    <html>
    <f:view>
    <h:outputText value="Hello World" />
    </f:view>
    Simple enough. I have included the following libraries in project->properties->libraries:
    jsf.api.jar
    jsf-impl.jar
    And created a faces-config.xml in the WEB-INF folder that lookes like this:
    -------- 8< ----
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    </faces-config>
    When I try to run the project using the Appl server 8.1 I get this error presented in my webbrowser:
    ---------- 8< -------
    javax.servlet.ServletException: Cannot find FacesContext
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:830)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:763)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:83)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
    Anyone that can help me figure this one out?

    Well, You are on the right track. The problem seemed to be associated with the web.xml and faces-config.xml (the later one is edited graphicaly with Borland).
    Now, Here is some example of web.xml and faces-config.xml that workes for me. Hope this helpes some newbees like me out there...
    web.xml
    ---------- 8< ---------
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <servlet>
    <servlet-name>FacesServlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    faces-config.xml
    --------------- 8< ---------------
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    </faces-config>
    Managed beans and navigation rules goes goes between the faces-config> -tags of cource

  • Can a web service be used as the datasource for a View Object?

    Has anyone used a web service as the datasource for a View Object?
    I am trying to do the same thing as "Publishing BC4J Components as a Web Service" example, except I want to recreate the View Objects on the client so that I can iterate through them and display them on a web page.
    I probably have two choices:
    1. Use the web service as the datasource.
    2. Use a file as the datasource with no data and then populate the View Objects from the XML from the Web Service.
    Please advise.
    Thank you.
    Richard Catlin
    SAIC

    You can adapt the examples provided in the BC4J Toy Store demo for how to build a programmatically-populated view object to create a view object that fetches its data from a web service.
    The methods that you need to override are the same for any kind of programmatically-populated view object.

Maybe you are looking for

  • USE of Function module-- urgent

    hi, can any one explain the use of "OPEN_FI_PERFORM_00002050_P " thnx

  • Photoshop 10 can't open image CD's from another Photoshop file.

    My Windows 7 and Photoshop Elements 10 will not open image CD's downloaded from another Photoshop file. Could open them in a previosu Windows XP and older Photoshop. Now get message: "This file does not have a program associated with it for performin

  • PS6 keeps crashing randomly

    CS6 has been working fine for months and now just loads of problems ..... Photoshop CS6 12gb ram 64 bit windows 7 scratch disck - primary c: with K: as secondary PS6 randomly crashes when I use topaz labs plug ins I also get the following message whe

  • How to install linux on the mac pro. is it cause warranty issues?

    Dear Users, I want to install linux os on my mac pro notebook. Any suggestion is welcomed. is it cause the warranty issues?

  • Thin drive

    hi.. may i know ,how to use java thin drive,then how to create database connection in oracle.. reply me.. [email protected]