[ANN] Book examples available

In case you're interested in examples of a fairly complex "real-world" internationalized JSF application with scrollable, sortable and editable tables, and custom components/renderers for tabbed panels, a tree control, and a few other cool things, you may want to download the examples for my upcoming JSF book. Binaries and source code is available at http://www.hansbergsten.com/.
The book should be in the stores next week.

Hi Hans,
Thanks for your response. I looked up your example codebase, and have tried to follow it as closely as possible for enabling valueChangeEvents once Enter-key is presses from the InputText field, but I am still getting no callbacks (in the fastProductPageBean). I would appreciate if you could tell me what I am doing wrong here.
My code is as below:
1. the jsf file is as below:
<f:view>
<h:form>
<h:dataTable value="#{FastProductPageBeanList.dataModel}" var="fastProductPageBean"
headerClass="tableHeader"
rowClasses="oddRows,evenRows">
<h:column>
<f:facet name="header">
<h:outputText value="Contract Name"/>
</f:facet>
<h:outputText id="contractName" value="#{fastProductPageBean.contractName}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Exp. Date"/>
</f:facet>
<h:outputText id="expiryDate" value="#{fastProductPageBean.expiryDate}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Fra Date"/>
</f:facet>
<h:outputText id="fraDate" value="#{fastProductPageBean.fraDate}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Price"/>
</f:facet>
<h:outputText id="price" value="#{fastProductPageBean.price}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Bid"/>
</f:facet>
<h:inputText id="bid" size="8" value="#{fastProductPageBean.bidVolume}"
styleClass="textField" valueChangeListener="#{fastProductPageBean.handleBidOrderChangeEvent}">
</h:inputText>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Ask"/>
</f:facet>
<h:inputText id="ask" size="8" value="#{fastProductPageBean.askVolume}"
styleClass="textField" valueChangeListener="#{fastProductPageBean.handleAskOrderChangeEvent}" />
</h:column>
</h:dataTable>
</h:form>
</f:view>
2. the managed bean declaration is as below:
<managed-bean>
<description> The FAST product-page backing file mean </description>
<managed-bean-name>FastProductPageBeanList</managed-bean-name>
<managed-bean-class>com.tullib.otcweb.handlers.fast.FastProductPageBeanList </managed-bean-class>
<managed-bean-scope> session </managed-bean-scope>
</managed-bean>
3. the backing javabeans are as below:
public class FastProductPageBeanList implements java.io.Serializable{
private DataModel dataModel;
public FastProductPageBeanList() {}
public DataModel getDataModel() {
return dataModel;
public void setDataModel(final DataModel dataModel) {
this.dataModel = dataModel;
and,
public class FastProductPageBean implements java.io.Serializable{
public static final String BID_ORDER_PREFIX = "bid";
public static final String ASK_ORDER_PREFIX = "ask";
public static final String KEY_GENERATION_DELIMITER="$";
private String contractName;
private String expiryDate;
private String fraDate;
private String price;
private String bidVolume;
private String askVolume;
public FastProductPageBean() {}
public FastProductPageBean(String contractName,
String expiryDate,
String fraDate,
String price,
IFASTOrder bidOrder,
IFASTOrder askOrder) {
this.contractName = contractName;
this.expiryDate = expiryDate;
this.fraDate = fraDate;
this.price = price;
if(bidOrder != null)
bidVolume = String.valueOf(bidOrder.getVolume());
if(askOrder != null)
askVolume = String.valueOf(askOrder.getVolume());
public String getBidVolume() {
return bidVolume;
public void setBidVolume(String bidVolume) {
this.bidVolume = bidVolume;
System.out.println("Contract = " + contractName + ", New bid amount is = " + bidVolume);
public String getAskVolume() {
return askVolume;
public void setAskVolume(String askVolume) {
this.askVolume = askVolume;
System.out.println("Contract = " + contractName + ", New ask amount is = " + askVolume);
public String getContractName() {
return contractName;
public void setContractName(String contractName) {
this.contractName = contractName;
public String getExpiryDate() {
return expiryDate;
public void setExpiryDate(String expiryDate) {
this.expiryDate = expiryDate;
public String getFraDate() {
return fraDate;
public void setFraDate(String fraDate) {
this.fraDate = fraDate;
public String getPrice() {
return price;
public void setPrice(String price) {
this.price = price;
public void handleBidOrderChangeEvent(ValueChangeEvent event)
throws AbortProcessingException {
if (null != event.getNewValue()) {
ExternalContext ctx = FacesContext.getCurrentInstance().getExternalContext();
ctx.log("Received new BidOrder for amount = " + event.getNewValue() + " for product =" + OTCProduct.FAST);
public void handleAskOrderChangeEvent(ValueChangeEvent event)
throws AbortProcessingException {
if (null != event.getNewValue()) {
ExternalContext ctx = FacesContext.getCurrentInstance().getExternalContext();
ctx.log("Received new AskOrder for amount = " + event.getNewValue() + " for product =" + OTCProduct.FAST);
Thanks a lot. I'll appreciate your help.
Deepak

Similar Messages

  • Regarding iTunes U courses, would I be able to link to books/sites (like say an amazon hardback book or link to a kindle book they can purchase and download).  Considering that not all books are available on iBooks I'm hoping this is allowed.   Also the p

    Regarding iTunes U courses, would I be able to link to books/sites (like say an amazon hardback book or link to a kindle book they can purchase and download).  Considering that not all books are available on iBooks I'm hoping this is allowed.   Also the possibility on monetizing since amazon gives commission for linking.  
    This question is for both the uncredited (private) courses and the bigger accredited accounts.    I am a  developer trying to learn how to help my area schools and also have some ideas for my own courses.    Obviously keeping within the iTunes U app would be preferred in most cases (to the learning experience) since they can take notes and see them within the app itself.
    If the reply comes from a non-apple employee please let me know (or better yet, link to) where that is clarified.   I would hate to develop something just to later find out it is against the apple iTunes U agreement.

    Fair question
    And, to be even more fair, I have to tell you that I get that every single day. And it's getting worse (or better, depending on how you look at it).
    I always try to let people know it's a long way until you get to a confortable point, a point where you can create something. And that's exactly what I am trying to do, or at least asking how/if I should do it. And then I let them know where to start. That's what I want.
    Thanks.

  • SOA Suite Order booking example error

    Hello!
    I have installed a SOA Suite 10.1.3.1.0 and SOA Demo order booking example. But SOAOrderBooking BPEL process doesn't work. I have this error:
    file:/D:/WORK/OraSOA/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_SOAOrderBooking_1.0_937b09d1bd8dae1b33b028b2871aef63.tmp/OrderSequence.wsdl [ OrderSequence_ptt::OrderSequence(OrderSequenceInput_msg,OrderSequenceOutputCollection) ] - WSIF JCA Execute of operation 'OrderSequence' failed due to: DBWriteInteractionSpec Execute Failed Exception.
    unknown failed. Descriptor name: [unknown]. [Caused by: The method 'commit' cant be called when a global transaction is active.]
    ; nested exception is:
         ORABPEL-11616
    DBWriteInteractionSpec Execute Failed Exception.
    unknown failed. Descriptor name: [unknown]. [Caused by: The method 'commit' cant be called when a global transaction is active.]
    Caused by Исключение [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.DatabaseException
    Внутреннее исключение: java.sql.SQLException: The method 'commit' cant be called when a global transaction is active. Error Code:0.
    I read some topics on this forum about this problem, but I still can't find out out any solutions. Could you help? Thanks in advance.

    try to check this Errors using external transaction controller in session bean + POJO conf.
    Also, can you tell us more about your DB Adapter? are you executing any Pl/SQL proc ? Did you try to change anything in toplink file ro WSDL file, like a field or the query ?

  • HT4059 Why are books not available even though they appear as search results in Apple Canada iBook Store?

    Why are books not available even though they appear as search results in Apple Canada iBook Store?

    You can only buy from your own country's store - to be able to buy from another country's store you need a valid billing address in that country and be in that country when buying from it. You can try requesting that they be added to US store, but ultimately it's the book's publisher that will have to grant Apple a license to sell it there : http://www.apple.com/feedback/itunes.html
    Are they available in other ebook stores/apps that you have access to e.g. Amazon/Kindle, Nook, Kobo etc ?

  • I have never been able to open my itunes store.  I was on the phone with support for 1.5 hours today, no luck. I would like to purchase a book only available on itunes.  Can someone please help!

    I have never been able to open my itunes store.  I was on the phone with support for 1.5 hours today, no luck. I would like to purchase a book only available on itunes.  Can someone please help!
    I have tried
    -  setting time and date
    -  uninstalling
    -  upgrading itunes
    -  changing credit card
    Any other suggestions?

    Update your safari.  Install this:  http://support.apple.com/kb/dl1569
    The itunes store relies on certain components of safari, regardless of if you use it or not.

  • About ODI dose any books are available in Indian Market??

    Dear All,
    about ODI dose any books are available in Indian Market??
    Thanks & Regards
    Zakeer
    [email protected]

    hi Zakeer,
    If you contact the Oracle University they will provide you the enough materials for ODI
    thansk,
    SAichand.v

  • HT5071 If my book is available for purchase on the iBooks store can I have a multi-book app for purchase in the App Store containing the book at the same time?

    If my book is available for purchase on the iBooks store can I have a multi-book app for purchase in the App Store containing the book at the same time?

    1.) No one here can tell you what the app review teams will/won't accept/reject, sorry.
    2.) App Reviewers have been rejecting a certain percentage of apps based on their determination that the app is too book-like, saying the dev should make a book instead.

  • Does Adobe have an e-book creator available from Creative Cloud?

    As a very new user to the Creative Cloud, does Adobe have an e-book creator available from Creative Cloud? I am a technical writer/editor with numerous articles I have authored, for publication as e-books/e-articles.
    1.) how to create/format as an e-book / e-article
    2.) which site to market through eludes me.
    Any help appreciated.
    PurpleJacques

    Moved from the Creative Cloud to the InDesign forum. They will be able to help you here.
    Thanks CaramelMacchiato.
    Free 35 minute video in two parts on Adobe TV:
    http://tv.adobe.com/watch/instant-indesign/creating-an-ebook-with-indesign-part-1/
    http://tv.adobe.com/watch/instant-indesign/creating-an-ebook-with-indesign-part-2/
    7 hour 30 minute video series on Lynda.com:
    http://www.lynda.com/EPUB-tutorials/InDesign-CS6-EPUB-Kindle-iPad/98834-2.html
    You can get a free trial to Lynda.com from http://www.lynda.com/trial/plans?btn=course_trial.

  • Hi Apple! :) uhm i would like to ask if when Paid Books be available on iTunes Philippines? 'cause so many Filipinos loves to read books :)) Hope you will get to it Please? :)

    Hi Apple! uhm i would like to ask if when Paid Books be available on iTunes Philippines? 'cause so many Filipinos loves to read books :)) Hope you will get to it Please?

    For Apple to see your request, use
    http://www.apple.com/feedback
    Nobody in these forums can tell you anything about Apple's plans.

  • Student discount on mac book are available only for American students or is it available for other nationalities buying from the American Apple store.

    Student discount on mac book are available only for American students or is it available for other nationalities buying from the American Apple store?
    Thank You

    Hi yousra1994,
    Welcome to Apple Support Communities.
    You can find the terms and conditions for the U.S. Education Discount on the Apple Student Discount page:
    http://store.apple.com/us/browse/campaigns/education_pricing
    Here is what it says about eligibility:
    Those eligible to purchase from the Apple Store for Education Individuals include faculty, staff, students and parents as follows:
    K12 - Any employee of a public or private K-12 institution in the United States is eligible, including homeschool teachers. In addition, school board members who are currently serving as elected or appointed members are eligible. PTA or PTO executives currently serving as elected or appointed officers are eligible.
    Higher Education - Faculty and staff of Higher Education institutions in the United States; and students attending, or accepted into a Higher Education institution in the United States are eligible to purchase. Purchases from the Apple Store for Education Individuals are not for institutional purchase or resale.
    Higher Education Parents - Parents purchasing on behalf of their child, who is a student currently attending or accepted into a public or private Higher Education Institution in the United States, are eligible to purchase.
    Have a great day,
    Jeremy

  • Is there any Calendar examples available with anything like Outlook?

    Hi,
    I'm going to be creating a Calendar module to schedule tasks, meetings, etc.
    Is there any Calendar examples available with anything like Outlook?
    Thank you, Bill

    Earl,
    Send me the development link etc and I'll look at the Javascript errors.
    [email protected]
    Input: My thought was to have a Month area with the choices you have AND then be able to select the weekly choices TOO. The the day of the week TOO..
    Ex: select June, July, Aug
    Week 1,3,5 (if exists) or Weekly
    If this is a copy, which I imagine it is, we could both add to it... or we could import another version and I could add onto it there...
    What do you think... build on each others ideas... both save time in the long run??
    Let me know, Bill

  • Classroom in a Book Examples Do Not Work.

    I am working through the Dreamweaver CS4 Classroom in a Book, while working on a MacPro OS X 10.6.1 Snow Leopard.
    Many examples do not function as advertised. This is one example:
    On page 114, the user is asked to insert a Spry menu into the page. When this is done the properties panel should appear, in which the Text, Links, Titles and so on can be entered. On my system the properties panel does not appear as it should. Instead, the properties panel for HTML and CSS remains present. It is not possible to enter the attributes as intended in the lesson. I can enter them manually into the markup, but since this will not result in correctly generated script (it is generated Javascript) it is pointless to do this. The failure of the Dreamweaver GUI makes it impossible to proceed with the lesson.
    I tried to repair this situation be deleting the files and copying them anew from the CD ROM. then started again. The error was repeated.
    My file setup is slightly different from the default. I always make an extra directory for the HTML files, named html
        ~/username/Documents/DW CIB/html/
        ~/username/Documents/DW CIB/css/
        ~/username/Documents/DW CIB/images/
        ~/username/Documents/DW CIB/js/
        ~/username/Documents/DW CIB/SpryAssets/
          and so on.
    But this is not the problem, as the system is seeing this. For example, the links inserted to the pages are automatically correct:
       <link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    Is there an issue here with Mac and Snow Leopard? Or are more people having these problems? Or am I missing something here?

    Benjamin Rossen wrote:
    I have a reason for using a different directory structure. I like to see all the .html files in alphabetic order, and not interrupted by the directories containing images, scripts and other resources. These directories are particularly disturbing if they are open.
    You have two options:
    Buy a Windows computer. Windows organizes files and folders that way by default.
    On your Mac, expand the Files panel so you can see the Type column header. Click Type, and the files will be reorganized the way you prefer.
    I put only the index.html in the site root, with a redirect on it to home.html in the lower directory, so that only one .html file is in the default root directory of the site. Now I know the Dreamweaver will not function correctly when I do this. 
    I think this is not good. I recommend that Adobe augment the system to operate correctly for any file structure built by the user.
    Dreamweaver does operate correctly for  any file structure, but it can't detect a redirect.

  • Why isn't the legend of korra book 3 available on iTunes

    Does anyone know why the legend of korra book 3 is not available in the U.S. iTunes store????

    Nickelodeon Legend of Korra pulled from iTunes Store..

  • How to make Book WSDL available for download?

    Hi,
    I would like to download Book WSDL v2.0. The Web service API document says "To download the Book WSDL, you must be given access to the Book object". However, i did not find any option inside "role management>record types access" to make it available for access.
    Can anyone explain how the BOOK WSDL can be enabled for download?
    Note: I am not using Trial Account.
    Thanks
    Ravish
    Edited by: 833189 on Mar 11, 2011 8:35 AM

    Thanks for input.
    I have ensured that "Company Profile > Company Data Visibility Settings > Display Book Selector" setting is enabled. I did not find any BOOK specific privilege under role management wizard.
    Can you please tell me the exact setting that i need to ensure for BOOK WSDL access?
    Note: My user's role is admin.

  • Unable to view Books On itunnes WHile some of Itunee Books is available please tell me how i will Find that?

    I have Books Uploded and it Live on Ibooks Store SOme of itunnes store it visible after search But In some of Itunne Store its not avilable in mine how i will get url of tha I books Store please help me
    plz tell me how i will get URL of my Books from Itunnes i am unable to find from  Google search also please Help.

    Which stores  your book appears will depend  on your  chosen  teritory settings and possibly language.
    Another factor is-  in iBooks Author > Inspector > Document ( first icon top left) did you fill in the All teh  informations required?  Its there to help you with content  information but mainly its the metatdata  simlar to that in websites - which helps with a store searche.
    When you search  - if you search titles,  make sure you also select the  correct categories.. the ones you entered in iTunes Producer when you  uploaded the book.   It can also take some  time to show on the store searchs.
    Failing that use search  for your name or the name you used.
    Finding a book on Google will depend on a lot of factors. Example.. a new website  indexed by Google can tale a minimum of 12 weeks and may appear on search results page 100.
    Stay with  the store to do your searching.
    As mentioned by Tom,  it helps if you include the books titles, your name (  unless you prefer some privacy)  and catagories.

Maybe you are looking for

  • How can I get a refund at the App Store when it isn't offered ?

    Perhaps the Apple attack dogs will like this post better. How do I get a refund for a costly app that, after requesting a refund, appears to not offer one? How does one know if an app meets one's needs unless you try it first? This seems so obvious,

  • Raw Files from LR do not open automatically in Photoshop raw processor

    I like to edit my images in Photoshop. Could you please advise why after I upload raw files into LR and using photoshop as external editor, the file opens but not in the PS (photoshop) raw processor. I have to work around this by first finding the im

  • What do I have to do to make it not Analyze for hours...

    Simply explained: My import settings look like this: And when I press Import this happens: Now, this is a simple projcet with talking heads. I have no rolling shutters, or anyting. All I want it to do is create optimized media. I do not want my poor

  • Photo albums not appearing in Safari on iPad

    Greetings, Using iWeb, I have successfully dragged photo albums onto a page and published the page (part of several). The published page displays and works properly when viewed in Safari on any standard laptop or workstation. The albums do not displa

  • TS3988 I can't sync my iCloud with my mack using Mavericks, what can I do?

    Hi I'm trying to sync my power book with the iCloud, I'm using Mavericks 10.9.4 and is just not working! Here is a quick video of my problem so you can understand more in detail of what's going on! http://youtu.be/qnRWgoP-9K8 Thanks for the help!