Tiny Online ContestsJens Noschinski, Thomas Honné, Kersten Schuster, Andreas Schäfer
JSF - JavaServer Faces similar to JSPweb pages (xhtml and jsp files)source packages (java files) easier handlingfaces-config.xmlnavigation rulesvalidatorsbean definitionsapplication beanssession beansrequest beans
Page flow: faces-config.xml
Navigation Example<navigation-rule>    <from-view-id>/login.jsp</from-view-id>    <navigation-case>            <from-action> #{UserBean.login} </from-action><from-outcome>success</from-outcome>            <to-view-id> /member/profile.jsf </to-view-id>    </navigation-case>    <navigation-case>            <from-action> #{UserBean.login} </from-action><from-outcome>fail</from-outcome>            <to-view-id> /login.jsf </to-view-id>            <redirect />    </navigation-case></navigation-rule>
MySQL Database table userssaves a user‘s nickname, password, country, … table contestscontains all contests with title, start date and ending date tables textcontributions, imagecontributionscontains what each user has contributed table keywordskeywords belonging to the current writing contest table ratingscontains how users have rated other users‘ contributions
JavaScript Plain JSvalidate registration entries while typingcheck words in writing contests  jQueryLightBoxdisplay large images in an overlayRating StarsMenu Fade In“Geoweather“ AJAXcheck if typed nickname already existsrating systemsave voting when user clicked on stars
Offer a web service java class declared as web service contains function declared as web methodreturns string or integer value Tiny Online Contestsoffers currently running contestoffers current number of registered usersoffers method to add two integers our sample clientgets connection via generated WSDL fileuses the methods in a simple JSF application

[Final Presentation] Tiny Online Contests

  • 1.
    Tiny Online ContestsJensNoschinski, Thomas Honné, Kersten Schuster, Andreas Schäfer
  • 2.
    JSF - JavaServerFaces similar to JSPweb pages (xhtml and jsp files)source packages (java files) easier handlingfaces-config.xmlnavigation rulesvalidatorsbean definitionsapplication beanssession beansrequest beans
  • 3.
  • 4.
    Navigation Example<navigation-rule> <from-view-id>/login.jsp</from-view-id> <navigation-case> <from-action> #{UserBean.login} </from-action><from-outcome>success</from-outcome> <to-view-id> /member/profile.jsf </to-view-id> </navigation-case> <navigation-case> <from-action> #{UserBean.login} </from-action><from-outcome>fail</from-outcome> <to-view-id> /login.jsf </to-view-id> <redirect /> </navigation-case></navigation-rule>
  • 5.
    MySQL Database tableuserssaves a user‘s nickname, password, country, … table contestscontains all contests with title, start date and ending date tables textcontributions, imagecontributionscontains what each user has contributed table keywordskeywords belonging to the current writing contest table ratingscontains how users have rated other users‘ contributions
  • 6.
    JavaScript Plain JSvalidateregistration entries while typingcheck words in writing contests jQueryLightBoxdisplay large images in an overlayRating StarsMenu Fade In“Geoweather“ AJAXcheck if typed nickname already existsrating systemsave voting when user clicked on stars
  • 7.
    Offer a webservice java class declared as web service contains function declared as web methodreturns string or integer value Tiny Online Contestsoffers currently running contestoffers current number of registered usersoffers method to add two integers our sample clientgets connection via generated WSDL fileuses the methods in a simple JSF application