Persistance of beans in JSF-based sites

I'm new to Java EE 5, so take it easy on me. I'm trying to learn some Java EE stuff, focusing first on JavaServer Faces. I've got an idea for a little site I want to build as part of my learning process, but there's one thing I haven't figured out how to do.
I basically want to make a few JSF pages with some persistent beans. Can JSF-managed beans be made persistant? Can JSF use EJBs as JSF-managed beans? What's the best way to do all of this?
Thanks in advance.

ya i have declared even my console says the init of the jsp file is successful.
so i could reach to the jsp but it is not able to instantiate the bean managed class. also the stacktrace says cannot find that class even though the compiled .class file is in classes folder inside WEB-INF.
thanx,
Karthik

Similar Messages

  • How to have ItemId in the URL in JSF based application

    I have a JSF based application and I am using faces-config.xml to navigate and I am using /redirect to navigate form case to case.
    The application lists products and upon selecting one, a product detail is displayed. I would like to have productId as part of the page URL so that URL can be emailed and the receiver can paste the received URL into browser and retrieve the product detail.
    Currently the URL is not rewritten to have session id in it.
    I am not ever sure where to start on this.

    Is this line correct?
    <value>#{param.productId}</value>
    Try it out yourself ;)
    This is clear and helpful. However I don't know how
    to create this URL
    (http://example.com/shop/products.jsf?productId=100)
    in the first place. The URL I have is in the form of
    http://example.com/shop/products.faces.
    Is adding '?productId=100' to the URL something
    configurable or it has to be done programmatically
    via URL rewriting?You can implement it in several ways:
    JSF<h:outputLink value="products.faces">
        <h:outputText value="click here" />
        <f:param name="productId" value="100" />
    </h:outputLink>
    <%-- or --%>
    <h:outputLink value="products.faces?productId=100">
        <h:outputText value="click here" />
    </h:outputLink>Or write a servlet listening on /shop/, scan the current request URI for product.faces, get the productId from the backing bean's session and rewrite the URL using request.getRequestDispatcher("product.faces?productId=" + productId).forward(request, response).
    Maybe there are more clever solutions using configfiles, but I don't have much experience (yet) with such GET request thingies in conjunction with JSF.

  • Uploaded Bootstrap based site onto BC and not working correctly using IE8

    Having a problem with a Bootstrap based site that I've uploaded to a BC test site. Seems OK when viewed by everything except IE8. I have all the usual IE8 workarounds in and these work correctly on my usual external server and local host but not on BC test site . Will this resolve itself  when the site goes live ?

    Version 2 is fine to work with, it's a well designed structure. Version 3 uses some new CSS (some style name changes and new styles replacing others). The IE8 issue could be related to a new base styles. Before you do anything check/compare the paths or the CSS and JS between versions. 
    Maybe test Bootstrap 3 without any javascript, and just a very basic layout of a header, a few columns and a footer. If the IE8 issue persists, try removing CSS style tags until it breaks or resolves. Of course it may break first, so create a custom CSS file and copy the styles you want to test into that, then you can look at editing the custom copy until it resolves or breaks (don't edit the original Bootstrap CSS file as you custom CSS can override it providing you place it in the page header after the main CSS). There's a good chance you'll find the problem.
    Also see:
    http://getbootstrap.com/getting-started/#migration
    Message was edited by: Simon Darby

  • Persistent Chat Pool Behavior for Multiple Sites

    We plan to have 4 Lync 2013 Standard Persistent Chat servers, 1 in each site.  They will be part of the same Persistent Chat pool.
    Is there a way I can force Lync clients within a site to connect to its local persistent chat sever?  I am trying to accomplish this without a hardware load balancer. 
    Not sure if you need to know but our front end pool setup consists of:
    1 Lync 2013 Standard server (Production site A)
    1 Lync 2013 Standard server (DR site A)
    1 Lync 2013 Standard server (Production site B)
    1 Lync 2013 Stanrdard server (DR site B)
    We are using pool pairing for DR. 
    Thanks.

    These are typically DNS load balanced.  If you want to force it, you'll have to have your DNS servers reply with the most local address.  This isn't an easy task with Windows DNS.  I can think of ways to hack it (keep the pool name out of
    an AD replicated zone and use pinpoint DNS that would be manually updated for this).
    That being said, I wouldn't kill myself over it.  The amount of traffic used for persistent chat is very low as it's really just text chat being sent back and forth.  Also, the real data is in the SQL server DB, not the PC role, so unless
    you're splitting that across four sites, I'd just leave it.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications

  • Issue with frames-based sites in Sf-3(L); Looking for confirmation

    Is anyone else having issues with Safari 3 (Leopard) and frames-based sites? Specifically, frame sizes not being obeyed?
    For example, phpMyAdmin's left Navi frame is, in most themes, supposed to be about 180px wide; if need be, the frame is coded to show scrollbars (again, in all the themes I've used so far anyway).
    However, Safari 3.0.4 on Leopard apparently ignores this and resizes the left Navi frame to an unusably narrow width (for reasons unknown - it's not the the right frame is especially full or anything), with no scroll bars either! However, the very same phpMyAdmin site works fine in Firefox 2, where frame widths show up exactly as they are supposed to.
    Is anyone else having or can duplicate this issue?

    I've been having this problem for months, Safari 3 beta and now Safari 3 on Tiger as well as Leopard.

  • Performance Tunning and Optimization in Site Studio based sites.

    Hi all,
    I am hosting a site studio based site but performance test number are not encouragin. I have made sure not execute lots of service. I am using LoadRunner for performance evaluation.
    Can some body please share with me the Performance strategy they are using, the general guidelines for performance improvement. It will help me a lot.
    thanks in advance and regards,
    swapnil

    You could setup a cache server.. Id recommend looking into squid! :)
    http://www.squid-cache.org/
    Here is a guide to optimising UCM
    http://download.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/admin/performance_tuning_10en.pdf

  • Persist Entity Bean in flat file?

    Is it possible to persist entity bean in a flat file? I need to persist a single value (sequence number) and I can not use database to do so.
    I would need to run this in a clustered environment and need to recover the value if something goes wrong. The statefull bean would almost do except when one server fails before it replicates value onto another box.
    thx.

    Steve Edens wrote:
    I'm also trying to get a grip on the best way to handle some static application properties in a clustered environment. My need mostly relates to
    a need to read in some flat file type properties and then store them someplace
    where business logic can call them as needed.. Like a static hashmap or
    something. But someone mentioned Entity beans, BMP, etc..
    Now.. here's the strange part of the message.
    Back in 1999 I traveled over to our west coast office in San Francisco. I was meeting and greeting the staff there and along the way I had a short
    meeting with someone named Bisera Ferrero. I mention this event because I
    was really impressed with the beauty and charm of Bisera. Therefore, I guess
    I'm a fan. I rememered the name.. a little. Really, I had sort of forgotten
    about it until reading this forum this morning. So.. who knows. I guess
    there could be a lot of Bisera Ferrero names on our planet.
    Good luck in your quests..

  • Migrating a Path Based Site Collection to a Host Named Site Collection where the content database is greater than 135 GB

    Hi
    I have a 136 GB content database which will not back up via Backup-SPSite ( Microsoft say you cannot backup more than 100GB).
    So with out Backup / Restore how can I convert a Path Based Site Collection to a Host Named Site Collection  with my 136 GB content database which incidentally uses Remote Blob Storage ?
    Thanks
    Nigel 
    Nigel Price NJPEnterprises

    I see two options:
    Make the Backup-SPSite work despite being over 100GB (that's going to be a supported limit rather than a hard boundary)
    Externalise some of the content and then re-insert it after the move.

  • ISight Camera not working of flash based sites even after adobe update.

    Hi there everyone. Hope you can help me out.
    I've been trying to use my webcam on chatroulette, which as i take it is a flash based site, and the isight camera would not work.
    So I downloaded the adobe flashplayer upgrade, hoping to fix this problem.
    Now when i go to the site, the isight light turns green, but then safari crashes. And the only options i have are to try again, or send an error report.
    ( both of which I've done )
    Any suggestions would be greatly appreciated in this matter.
    Thanks so much.
    Jan.

    mykellex wrote:
    So I downloaded the adobe flashplayer upgrade, hoping to fix this problem.
    Adobe strongly recommends that you first uninstall any previous version of Flash Player, using the uninstaller:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157
    Follow the instructions closely, such as closing ALL applications first before installing.
    Repair permissions and restart your computer after the installation is completed.
    Was any of the above done?

  • Best Available IDE for JSF based applications

    I m working on JEE project. Now i am supposed to implement my web modules in JSF, so i just want to ask, What is best IDE available for JSF to use?
    I have used JBuilder (It Lacks Design View for GUI).
    I also have used NetBeans (same problem).
    and at last,
    Sun Creator 2 does not support JBOSS.
    So please help me out in this regard, so that i could start with optimal IDE for JSF based development.
    Thanks in advance. [asif]
    (I wish microsoft to make an IDE for JEE.)

    have a look at myEclipse.
    btw, there are several threads about this concern. use search.

  • Installed Adobe 9 reader, now no pdf's will open automatically from web based sites.

    When I go to web based sites such as Renaissance learning I have been able to download the pdf reports and have them open right away on my desktop. It no longer happens I get an adobe window that says it can't open them and I should download them. But you can't download them.

    This is a common problem with the Mac version of the Adobe Acrobat plugin. Could you '''disable''' it here:
    Tools > Add-ons > Plugins category
    Then the PDF should load either in the stand-alone Adobe Reader or in Preview. (Not sure how to influence that.)

  • JSF based applications cause X connection to localhost:10.0 broken

    Hi
    My weblogic 10.3 (and 11g) servers seems to go down when i run jsf based applications. The message in the stdout logs are:
    INFO: Added Library from: zip:/...richfaces-ui-3.2.2.GA.jar!/META-INF/richfaces.taglib.xml
    X connection to localhost:10.0 broken (explicit kill or server shutdown).
    This seems to be connected to a new jsf based application that i installed recently. Any ideas on the cause of this ?
    /Laban
    Edited by: Laban on 2009-sep-01 06:25

    Hi,
    From the following infor it could be mostly an network issue.
    X connection to localhost:10.0 broken (explicit kill or server shutdown)
    but, still to confirm may I req you to help me with the server logs (or error logs) of your weblogic server.
    regards,
    Zeno

  • How to help an image-based site's Google indexing?

    I've a client whose site, due to budget and time constraints, is made up mostly of images. It's not a high-traffic site, but it's a site whose target audience requires more visual "wow" than most. I am prefacing with this because I just know someone's going to say "use more text" and that's not what I'm here asking about.
    Instead, my question has to do with Search Engine Indexing of sites made up mostly of images. Perhaps Flash-based sites have the same problem, but I don't believe in those. The site in question has no Flash. It's 100% valid HTML markup, only that it's got more images than text. Even the company address and phone numbers are images. Don't argue with me, it just is, and had to be this one unique time. ;-)
    Could I compensate for the lack of text by creating a DIV loaded with company info, putting it immediately after the body tag in the code, and placing it outside the viewport so no one ever sees it?
    I thought of simply putting a display:hidden on it, but thought crawlers like Google's probably look for that bit of code. It's so easy to check for, after all.
    Will placing a div outside the viewport with pertinent text in it help with the SEO concerns? At least a little bit?

    I think you already know the answer to this question so I won't beat a dead horse here.
    Could I compensate for the lack of text by creating a DIV loaded with company info, putting it immediately after the body tag in the code, and placing it outside the viewport so no one ever sees it?
    Google frowns on site owners who try to manipulate search results by seeding pages with hidden keywords.   I'm not suggesting for one moment that YOU would do that but lots of people have tried this with very bad results -- blacklisting or total removal from Search results.
    Let's say you have a graphic banner in your header with the company name, slogan and phone number on it.  It's obviously got content on it but it's not indexable.  I think you could safely use an object replacement technique by adding a real text equivalent to the header and setting text-indent to -99999px.  This makes the text readable by screen readers and bots that don't use CSS while keeping it out of view of sighted humans. Just make certain that whatever text you use has a graphic equivalent on the page or you run the risk of being blacklisted.
    In addition, be sure to apply alt and title attributes to every graphic. Search engines don't place much importance on them but they won't penalize you for using them either.
    Best of luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Using Rename() method to change the Url of path based site collection

    Hello All,
    Is it correct to use
    SPSite.Rename() method for changing the url of path based site collection(except the root)?
    For example:
    Old Site Url: http://portal.contoso.net/sites/HR
    New Site Url: http://portal.contoso.net/sites/HROLD
    It is working in SharePoint 2013 test environment, but I will be happy to receive some feedback from you about this.
    Ivan Yankulov
    SharePoint Admin/Consultant
    http://spyankulov.blogspot.com/
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft

    Hi Lvan,
    Yes, the server object model SPSite.Rename()  method works on an SPSite object to change the URL of a site collection which is host named or path based.
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • My ipod safari redirect to local Mexico site, how do i stop it soI can go to MSN and other US based sites w/o the redirect

    my ipod safari redirect to local Mexico site, how do i stop it soI can go to MSN and other US based sites w/o the redirect

    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
      least ten seconds, until the Apple logo appears
    - Go to Settings>Safari and Clear History, Data and Cookies
    - Go to Settings>wifi>the connected network and change the DNS to Google's 8.8.8.8

Maybe you are looking for

  • List of values not properly working in the selection screen.

    Dear Mates, In BEx query all the selection parameters are working and showing all the list of values. Created the same report in crystal from BEx query, for one particular selection it is not showing the list of values or drop down. Just showing "DIS

  • Mac and Windows on same iTunes Library? NAS?

    I moved my mac iTunes library to a NAS, hoping that all machines in the house (Mac and Windows) could access and update the library (but not at the same time because of file locking).  So I moved the .itl and .xml files over to the NAS as well but so

  • Smart objects come in blurry?

    When pasting a vector logo or icon from illustrator into photoshop cs5 as a smart object into a web template, the object is blurry or pixelated. This is happening with multiple files. Is there a setting somewhere causing this? Any other ideas? Thanks

  • Charging on iPod docks!!

    Hey guys, I've got a question for you. I use the XtremeMac Battery Pack http://www.ilounge.com/index.php/news/comments/xtrememacs-micropack-extends-ipod -playback-time/ I bought this for my original video iPod. It actually does work and docks and cha

  • Mail Recipient Validation

    Does anybody have experience with mail recipient validation against LDAP for instance ? Any hints and suggestions appreciated. Thanks