├── .gitignore ├── authorization ├── pom.xml └── src │ ├── main │ ├── assembly │ │ └── assembly.xml │ ├── java │ │ └── org │ │ │ └── jboss │ │ │ └── seam │ │ │ └── security │ │ │ └── examples │ │ │ └── authorization │ │ │ ├── AuthenticatorImpl.java │ │ │ ├── PrivilegedActions.java │ │ │ ├── annotations │ │ │ ├── Admin.java │ │ │ ├── Foo.java │ │ │ └── User.java │ │ │ ├── exception │ │ │ └── ExceptionHandler.java │ │ │ └── security │ │ │ └── Restrictions.java │ └── webapp │ │ ├── META-INF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── beans.xml │ │ ├── faces-config.xml │ │ ├── security.drl │ │ ├── templates │ │ │ └── default.xhtml │ │ └── web.xml │ │ ├── home.xhtml │ │ ├── index.html │ │ └── style │ │ ├── btn_newuser.png │ │ └── default.css │ └── test │ └── java │ └── org │ └── jboss │ └── seam │ └── security │ └── examples │ └── authorization │ └── ftest │ └── AuthorizationTest.java ├── booking ├── .gitignore ├── features.txt ├── pom.xml ├── readme.md └── src │ ├── main │ ├── assembly │ │ └── assembly.xml │ ├── java │ │ └── org │ │ │ └── jboss │ │ │ └── seam │ │ │ └── examples │ │ │ └── booking │ │ │ ├── account │ │ │ ├── Authenticated.java │ │ │ ├── ConfirmPasswordValidator.java │ │ │ ├── CurrentPasswordValidator.java │ │ │ ├── CurrentUserManager.java │ │ │ ├── PasswordManager.java │ │ │ └── Registrar.java │ │ │ ├── booking │ │ │ ├── BookingAgent.java │ │ │ ├── BookingHistory.java │ │ │ ├── Confirmed.java │ │ │ ├── ReservationDateRangeValidator.java │ │ │ └── ReservationNotifier.java │ │ │ ├── bootstrap │ │ │ └── ApplicationInitializer.java │ │ │ ├── exceptioncontrol │ │ │ ├── ConversationExceptionHandler.java │ │ │ └── GeneralExceptionHandler.java │ │ │ ├── i18n │ │ │ └── DefaultBundleKey.java │ │ │ ├── inventory │ │ │ ├── HotelSearch.java │ │ │ └── SearchCriteria.java │ │ │ ├── log │ │ │ └── BookingLog.java │ │ │ ├── model │ │ │ ├── Booking.java │ │ │ ├── Booking_.java │ │ │ ├── CreditCardType.java │ │ │ ├── Hotel.java │ │ │ ├── Hotel_.java │ │ │ ├── User.java │ │ │ └── User_.java │ │ │ ├── reference │ │ │ ├── CalendarReferenceProducer.java │ │ │ ├── CreditCardExpiryYears.java │ │ │ ├── CreditCardReferenceProducer.java │ │ │ └── Month.java │ │ │ └── security │ │ │ └── BookingAuthenticator.java │ ├── resources-glassfish │ │ └── WEB-INF │ │ │ └── classes │ │ │ └── META-INF │ │ │ └── persistence.xml │ ├── resources-jbossas6 │ │ └── WEB-INF │ │ │ └── classes │ │ │ └── META-INF │ │ │ └── persistence.xml │ ├── resources-jbossas7 │ │ └── WEB-INF │ │ │ └── classes │ │ │ └── META-INF │ │ │ └── persistence.xml │ ├── resources │ │ ├── META-INF │ │ │ └── seam-beans.xml │ │ ├── import.sql │ │ ├── messages.properties │ │ └── messages_de.properties │ └── webapp │ │ ├── META-INF │ │ └── MANIFEST.MF │ │ ├── WEB-INF │ │ ├── beans.xml │ │ ├── faces-config.xml │ │ ├── layout │ │ │ └── template.xhtml │ │ ├── pretty-config.xml │ │ └── web.xml │ │ ├── account.xhtml │ │ ├── book.xhtml │ │ ├── confirm.xhtml │ │ ├── denied.xhtml │ │ ├── error.xhtml │ │ ├── favicon.ico │ │ ├── home.xhtml │ │ ├── hotel.xhtml │ │ ├── img │ │ ├── 1-star.gif │ │ ├── 2-star.gif │ │ ├── 3-star.gif │ │ ├── 4-star.gif │ │ ├── 5-star.gif │ │ ├── bg.gif │ │ ├── bg01.png │ │ ├── bg02.png │ │ ├── bg03.png │ │ ├── bg04.png │ │ ├── btn.bg.gif │ │ ├── btn.bg.gold.png │ │ ├── cal-next.png │ │ ├── cal-prev.png │ │ ├── clean.jpg │ │ ├── cnt.bg.gif │ │ ├── div-background.png │ │ ├── div.bg.png │ │ ├── dtpick.gif │ │ ├── gold-2.png │ │ ├── hdr.ad.jpg │ │ ├── hdr.bar.jpg │ │ ├── hdr.bg.gif │ │ ├── hdr.bg.png │ │ ├── hdr.title.gif │ │ ├── header_line.gif │ │ ├── hotel01.jpg │ │ ├── hotel01.png │ │ ├── hotel02.jpg │ │ ├── input.bg.gif │ │ ├── sdb.bg.gif │ │ ├── spinner.gif │ │ ├── spinnerold.gif │ │ └── th.bg.gif │ │ ├── index.html │ │ ├── password.xhtml │ │ ├── register.xhtml │ │ ├── resources │ │ ├── components │ │ │ ├── model │ │ │ │ ├── displayAccount.xhtml │ │ │ │ └── displayHotel.xhtml │ │ │ └── property │ │ │ │ ├── input.xhtml │ │ │ │ └── output.xhtml │ │ └── css │ │ │ ├── booking.css │ │ │ └── screen.css │ │ └── search.xhtml │ └── test │ ├── java │ └── org │ │ └── jboss │ │ └── seam │ │ └── examples │ │ └── booking │ │ ├── ftest │ │ ├── AbstractBookingTest.java │ │ ├── BookingTest.java │ │ ├── ChangePasswordTest.java │ │ └── RegistrationTest.java │ │ └── test │ │ ├── AuthenticatedUserProducer.java │ │ ├── BookingAgentTest.java │ │ ├── Dependencies.java │ │ └── HotelSearchTest.java │ ├── resources-glassfish-embedded │ ├── sun-resources.xml │ └── test-persistence.xml │ ├── resources-glassfish-remote │ └── test-persistence.xml │ ├── resources-jbossas │ └── test-persistence.xml │ └── resources │ └── arquillian.xml ├── catch-basic-servlet ├── pom.xml └── src │ ├── main │ ├── assembly │ │ └── assembly.xml │ ├── java │ │ └── org │ │ │ └── jboss │ │ │ └── seam │ │ │ └── exception │ │ │ └── examples │ │ │ └── basicservlet │ │ │ ├── handler │ │ │ ├── HandlerOutput.java │ │ │ └── StandardHandlerDeclaration.java │ │ │ └── navigation │ │ │ └── NavigationServlet.java │ ├── resources │ │ ├── beans.xml │ │ └── org │ │ │ └── jboss │ │ │ └── seam │ │ │ └── exception │ │ │ └── examples │ │ │ └── basicservlet │ │ │ └── messages.properties │ └── webapp │ │ ├── WEB-INF │ │ ├── beans.xml │ │ └── web.xml │ │ └── index.jsp │ └── test │ ├── java │ └── org │ │ └── jboss │ │ └── seam │ │ └── exception │ │ └── examples │ │ └── basicservlet │ │ └── ftest │ │ └── BasicServletTest.java │ └── resources │ └── .gitignore ├── gwthelloworld ├── pom.xml ├── src │ ├── jboss6 │ │ ├── jboss-web.xml │ │ └── web.xml │ ├── jetty │ │ └── web.xml │ ├── main │ │ └── java │ │ │ ├── ErraiApp.properties │ │ │ ├── ErraiService.properties │ │ │ └── org │ │ │ └── jboss │ │ │ └── seam │ │ │ └── example │ │ │ └── gwt │ │ │ └── helloworld │ │ │ ├── GwtHelloworld.gwt.xml │ │ │ ├── client │ │ │ ├── GwtHelloworld.java │ │ │ ├── MessageEvent.java │ │ │ └── ResponseEvent.java │ │ │ └── server │ │ │ └── GwtHelloworldService.java │ └── resources │ │ └── META-INF │ │ └── beans.xml └── war │ ├── WEB-INF │ ├── beans.xml │ ├── classes │ │ ├── ErraiApp.properties │ │ ├── ErraiService.properties │ │ └── org │ │ │ └── jboss │ │ │ └── seam │ │ │ └── example │ │ │ └── gwt │ │ │ └── helloworld │ │ │ ├── GwtHelloworld.gwt.xml │ │ │ ├── client │ │ │ ├── GwtHelloworld$1.class │ │ │ ├── GwtHelloworld.class │ │ │ ├── GwtHelloworld.java │ │ │ ├── MessageEvent.class │ │ │ ├── MessageEvent.java │ │ │ ├── ResponseEvent.class │ │ │ └── ResponseEvent.java │ │ │ └── server │ │ │ ├── GwtHelloworldService.class │ │ │ └── GwtHelloworldService.java │ ├── jetty-env.xml │ └── web.xml │ ├── gwtHelloworld.css │ └── gwtHelloworld.html ├── idmconsole ├── pom.xml └── src │ ├── main │ ├── assembly │ │ └── assembly.xml │ ├── java │ │ └── org │ │ │ └── jboss │ │ │ └── seam │ │ │ └── security │ │ │ └── examples │ │ │ └── idmconsole │ │ │ ├── action │ │ │ ├── ChangePasswordAction.java │ │ │ ├── GroupAction.java │ │ │ ├── GroupDTO.java │ │ │ ├── GroupSearch.java │ │ │ ├── RoleAction.java │ │ │ ├── RoleSearch.java │ │ │ ├── UserAction.java │ │ │ ├── UserDTO.java │ │ │ └── UserSearch.java │ │ │ ├── converter │ │ │ ├── GroupConverter.java │ │ │ └── RoleTypeConverter.java │ │ │ ├── model │ │ │ ├── IdentityObject.java │ │ │ ├── IdentityObjectAttribute.java │ │ │ ├── IdentityObjectCredential.java │ │ │ ├── IdentityObjectCredentialType.java │ │ │ ├── IdentityObjectRelationship.java │ │ │ ├── IdentityObjectRelationshipType.java │ │ │ ├── IdentityObjectType.java │ │ │ ├── IdentityPermission.java │ │ │ ├── IdentityRoleName.java │ │ │ └── PopulateDatabase.java │ │ │ └── producer │ │ │ └── EntityManagerProducer.java │ ├── resources-glassfish │ │ └── WEB-INF │ │ │ └── classes │ │ │ └── META-INF │ │ │ └── persistence.xml │ ├── resources-jbossas6 │ │ └── WEB-INF │ │ │ ├── beans.xml │ │ │ └── classes │ │ │ └── META-INF │ │ │ └── persistence.xml │ ├── resources-jbossas7 │ │ └── WEB-INF │ │ │ └── classes │ │ │ └── META-INF │ │ │ └── persistence.xml │ ├── resources │ │ └── META-INF │ │ │ └── seam-beans.xml │ └── webapp │ │ ├── META-INF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── beans.xml │ │ ├── faces-config.xml │ │ ├── security.drl │ │ ├── templates │ │ │ └── default.xhtml │ │ └── web.xml │ │ ├── changepassword.xhtml │ │ ├── groupdetail.xhtml │ │ ├── home.xhtml │ │ ├── index.html │ │ ├── managegroups.xhtml │ │ ├── manageroletypes.xhtml │ │ ├── manageusers.xhtml │ │ ├── menu.xhtml │ │ ├── roledetail.xhtml │ │ ├── roletypedetail.xhtml │ │ ├── style │ │ ├── btn_newuser.png │ │ └── default.css │ │ └── userdetail.xhtml │ └── test │ └── java │ └── org │ └── jboss │ └── seam │ └── security │ └── examples │ └── idmconsole │ └── ftest │ └── IdmConsoleTest.java ├── jsf-servlet-permalink ├── pom.xml ├── readme.txt └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── jboss │ │ │ └── seam │ │ │ └── examples │ │ │ └── permalink │ │ │ ├── Blog.java │ │ │ ├── BlogEntry.java │ │ │ ├── BlogEntryRepository.java │ │ │ ├── Comment.java │ │ │ └── CommentBoard.java │ ├── resources │ │ ├── META-INF │ │ │ └── beans.xml │ │ └── log4j.xml │ └── webapp │ │ ├── META-INF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── fragments │ │ │ ├── categories.xhtml │ │ │ ├── comments.xhtml │ │ │ ├── commonViewParams.xhtml │ │ │ ├── entryContent.xhtml │ │ │ ├── entryList.xhtml │ │ │ ├── otherCategories.xhtml │ │ │ └── singleEntry.xhtml │ │ ├── jetty-env.xml │ │ ├── layout │ │ │ └── template.xhtml │ │ └── web.xml │ │ ├── category.xhtml │ │ ├── css │ │ ├── legacy.css │ │ └── style.css │ │ ├── entry.xhtml │ │ ├── favicon.ico │ │ ├── home.xhtml │ │ ├── img │ │ ├── bodybg.gif │ │ ├── headerbg.gif │ │ ├── rss.gif │ │ ├── search.png │ │ ├── searchbg.gif │ │ ├── technorati.gif │ │ ├── wgradient.png │ │ └── wrapper.gif │ │ └── index.html │ └── test │ ├── java │ └── org │ │ └── jboss │ │ └── seam │ │ ├── examples │ │ └── permalink │ │ │ ├── WhenNavigatingToCategoryPage.java │ │ │ └── WhenNavigatingToHomePage.java │ │ └── test │ │ ├── AbstractScenario.java │ │ └── FacesTesterHolder.java │ └── resources │ └── unit-test-suite.xml ├── openid-op ├── pom.xml ├── readme.txt └── src │ ├── main │ ├── assembly │ │ └── assembly.xml │ ├── java │ │ └── org │ │ │ └── jboss │ │ │ └── seam │ │ │ └── security │ │ │ └── examples │ │ │ └── openid │ │ │ ├── AttributeVO.java │ │ │ ├── Attributes.java │ │ │ ├── Configuration.java │ │ │ ├── DialogueAwareViewHandler.java │ │ │ ├── DialoguePhaseListener.java │ │ │ ├── Login.java │ │ │ ├── OpIdentity.java │ │ │ ├── OpenIdProviderCustomizer.java │ │ │ ├── OpenIdProviderSpiImpl.java │ │ │ └── PropertyReader.java │ ├── resources │ │ └── META-INF │ │ │ └── seam-beans.xml │ └── webapp │ │ ├── Attributes.xhtml │ │ ├── AuthenticationFailed.xhtml │ │ ├── Configuration.xhtml │ │ ├── Index.xhtml │ │ ├── Login.xhtml │ │ ├── META-INF │ │ └── MANIFEST.MF │ │ ├── Menu.xhtml │ │ ├── PageTemplate.xhtml │ │ ├── SessionManagement.xhtml │ │ ├── UserInfo.xhtml │ │ ├── WEB-INF │ │ ├── .faces-config.xml.jsfdia │ │ ├── beans.xml │ │ ├── context.xml │ │ ├── faces-config.xml │ │ └── web.xml │ │ ├── index.jsp │ │ └── styles.css │ └── test │ ├── java │ └── org │ │ └── jboss │ │ └── seam │ │ └── security │ │ └── examples │ │ ├── openid │ │ ├── DeploymentTest.java │ │ └── MavenArtifactResolver.java │ │ └── openidClient │ │ └── OpenIdTestClient.java │ ├── resources-jbossas │ ├── jndi.properties │ └── test-persistence.xml │ └── resources │ ├── arquillian.xml │ └── openIdProviderCustomizer.properties ├── openid-rp ├── pom.xml ├── readme.txt └── src │ ├── main │ ├── assembly │ │ └── assembly.xml │ ├── java │ │ └── org │ │ │ └── jboss │ │ │ └── seam │ │ │ └── security │ │ │ └── examples │ │ │ └── id_consumer │ │ │ ├── Configuration.java │ │ │ ├── OpenIdRelyingPartyCustomizer.java │ │ │ ├── OpenIdRelyingPartySpiImpl.java │ │ │ └── PropertyReader.java │ ├── resources │ │ └── META-INF │ │ │ └── seam-beans.xml │ └── webapp │ │ ├── AuthenticationFailed.xhtml │ │ ├── Configuration.xhtml │ │ ├── Index.xhtml │ │ ├── Login.xhtml │ │ ├── META-INF │ │ └── MANIFEST.MF │ │ ├── Menu.xhtml │ │ ├── PageTemplate.xhtml │ │ ├── UserInfo.xhtml │ │ ├── WEB-INF │ │ ├── .faces-config.xml.jsfdia │ │ ├── beans.xml │ │ ├── context.xml │ │ ├── faces-config.xml │ │ └── web.xml │ │ ├── index.jsp │ │ └── styles.css │ └── test │ ├── java │ └── org │ │ └── jboss │ │ └── seam │ │ └── security │ │ └── examples │ │ └── openidrp │ │ └── ftest │ │ └── OpenIdRpTest.java │ └── resources │ └── ftest.properties ├── pom.xml ├── princess-rescue ├── pom.xml ├── readme.txt └── src │ ├── main │ ├── assembly │ │ └── assembly.xml │ ├── java │ │ └── org │ │ │ └── jboss │ │ │ └── seam │ │ │ └── examples │ │ │ └── princessrescue │ │ │ ├── GameManager.java │ │ │ ├── GameMessage.java │ │ │ ├── GameRoom.java │ │ │ ├── Room.java │ │ │ ├── RoomType.java │ │ │ └── ShootEffect.java │ ├── jbossas-resources │ │ └── web.xml │ ├── resources │ │ ├── META-INF │ │ │ └── seam-beans.xml │ │ └── jetty-env.xml │ └── webapp │ │ ├── META-INF │ │ └── MANIFEST.MF │ │ ├── WEB-INF │ │ ├── beans.xml │ │ ├── faces-config.xml │ │ ├── jetty-env.xml │ │ ├── templates │ │ │ └── default.xhtml │ │ └── web.xml │ │ ├── home.xhtml │ │ ├── index.jsp │ │ ├── play.xhtml │ │ └── resources │ │ ├── css │ │ └── screen.css │ │ └── gfx │ │ ├── banner.png │ │ └── weld.png │ └── test │ ├── java │ └── org │ │ └── jboss │ │ └── seam │ │ └── examples │ │ └── princessrescue │ │ └── ftest │ │ └── PrincessRescueTest.java │ └── resources │ └── arquillian.xml ├── quiz ├── pom.xml ├── readme.txt └── src │ ├── main │ ├── assembly │ │ └── assembly.xml │ ├── java │ │ └── org │ │ │ └── jboss │ │ │ └── seam │ │ │ └── examples │ │ │ └── quiz │ │ │ ├── Answer.java │ │ │ ├── GeographicQuiz.java │ │ │ ├── HistoricQuiz.java │ │ │ ├── Question.java │ │ │ ├── Quiz.java │ │ │ ├── QuizManager.java │ │ │ └── QuizQualifier.java │ ├── jbossas-resources │ │ └── web.xml │ ├── resources │ │ ├── META-INF │ │ │ └── seam-beans.xml │ │ └── jetty-env.xml │ └── webapp │ │ ├── META-INF │ │ └── MANIFEST.MF │ │ ├── WEB-INF │ │ ├── beans.xml │ │ ├── faces-config.xml │ │ ├── jetty-env.xml │ │ ├── templates │ │ │ └── default.xhtml │ │ └── web.xml │ │ ├── geographicQuiz.xhtml │ │ ├── historicQuiz.xhtml │ │ ├── home.xhtml │ │ ├── index.jsp │ │ └── resources │ │ ├── css │ │ └── screen.css │ │ └── gfx │ │ ├── banner.png │ │ └── weld.png │ └── test │ ├── java │ └── org │ │ └── jboss │ │ └── seam │ │ └── examples │ │ └── quiz │ │ └── ftest │ │ ├── AbstractQuizTest.java │ │ ├── GeographicQuizTest.java │ │ └── HistoricQuizTest.java │ └── resources │ └── arquillian.xml ├── readme.md ├── release.properties ├── simple ├── pom.xml └── src │ ├── main │ ├── assembly │ │ └── assembly.xml │ ├── java │ │ └── org │ │ │ └── jboss │ │ │ └── seam │ │ │ └── security │ │ │ └── examples │ │ │ └── simple │ │ │ └── SimpleAuthenticator.java │ └── webapp │ │ ├── META-INF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── beans.xml │ │ └── web.xml │ │ ├── home.xhtml │ │ └── index.html │ └── test │ └── java │ └── org │ └── jboss │ └── seam │ └── security │ └── examples │ └── simple │ └── ftest │ └── SimpleTest.java ├── timeanddate ├── pom.xml ├── readme.txt └── src │ ├── main │ ├── assembly │ │ └── assembly.xml │ ├── java │ │ └── org │ │ │ └── jboss │ │ │ └── seam │ │ │ └── international │ │ │ └── examples │ │ │ └── timeanddate │ │ │ ├── converters │ │ │ ├── JdkDateTimeZoneToStringDateConverter.java │ │ │ └── JodaDateTimeToStringDateConverter.java │ │ │ ├── locale │ │ │ ├── CustomLocaleConfiguration.java │ │ │ ├── LocaleBean.java │ │ │ └── LocaleConverter.java │ │ │ ├── model │ │ │ └── TimeZoneRegions.java │ │ │ └── worldclock │ │ │ └── AvailableTimeZonesBean.java │ ├── resources │ │ ├── resources.properties │ │ ├── resources_ja_JP.properties │ │ └── resources_pt_BR.properties │ └── webapp │ │ ├── META-INF │ │ └── MANIFEST.MF │ │ ├── WEB-INF │ │ ├── beans.xml │ │ ├── faces-config.xml │ │ └── web.xml │ │ ├── index.xhtml │ │ ├── resources │ │ └── css │ │ │ └── style.css │ │ ├── template.xhtml │ │ └── worldsclock.xhtml │ └── test │ ├── java │ └── org │ │ └── jboss │ │ └── seam │ │ └── international │ │ └── examples │ │ └── timeanddate │ │ └── ftest │ │ └── TimeAndDateTest.java │ └── resources │ └── arquillian.xml └── wicket-scala-publish ├── pom.xml ├── readme.md └── src ├── main ├── assembly │ └── assembly.xml ├── java │ └── org │ │ └── jboss │ │ └── seam │ │ └── wicket │ │ └── example │ │ └── publish │ │ ├── persistence │ │ ├── CustomEntityHome.java │ │ └── EntityDao.java │ │ └── qualifier │ │ ├── Articles.java │ │ ├── ConversationalDataRepository.java │ │ ├── DataRepository.java │ │ ├── Links.java │ │ └── Sessions.java ├── resources │ ├── META-INF │ │ ├── beans.xml │ │ └── persistence.xml │ ├── log4j.properties │ └── nopxx.properties ├── scala │ └── org │ │ └── jboss │ │ └── seam │ │ └── wicket │ │ └── example │ │ └── publish │ │ └── scala │ │ ├── bean │ │ ├── ArticleHome.scala │ │ └── SessionListener.scala │ │ ├── bootstrap │ │ ├── ApplicationInitializer.scala │ │ └── HomePageApplication.scala │ │ ├── factory │ │ └── PublishFactory.scala │ │ ├── model │ │ ├── Article.scala │ │ ├── BaseEntity.scala │ │ └── Session.scala │ │ ├── page │ │ ├── AdminPage.html │ │ ├── AdminPage.scala │ │ ├── ArticleEditPanel.html │ │ ├── ArticleEditPanel.scala │ │ ├── ArticleListPanel.html │ │ ├── ArticleListPanel.scala │ │ ├── ArticleTab.html │ │ ├── ArticleTab.scala │ │ ├── BasePage.html │ │ ├── BasePage.scala │ │ ├── HomePage.html │ │ ├── HomePage.scala │ │ ├── SessionsListPanel.html │ │ ├── SessionsListPanel.scala │ │ ├── SessionsTab.html │ │ └── SessionsTab.scala │ │ ├── persistence │ │ ├── DataRepositoryProducer.scala │ │ └── EntityHome.scala │ │ └── ui │ │ └── ArticleListView.scala └── webapp │ ├── META-INF │ └── context.xml │ ├── WEB-INF │ ├── beans.xml │ ├── jetty-env.xml │ ├── jetty-web-fragment.xml │ └── web.xml │ ├── script │ ├── centreIt-1.1.5-compressed.js │ ├── jquery-1.4.4.min.js │ ├── jquery-ui-1.8.6.custom.min.js │ ├── jquery.cleditor.js │ └── jquery.cleditor.min.js │ └── stylesheet │ ├── cupertino │ ├── images │ │ ├── ui-bg_diagonals-thick_90_eeeeee_40x40.png │ │ ├── ui-bg_flat_15_cd0a0a_40x100.png │ │ ├── ui-bg_glass_100_e4f1fb_1x400.png │ │ ├── ui-bg_glass_50_3baae3_1x400.png │ │ ├── ui-bg_glass_80_d7ebf9_1x400.png │ │ ├── ui-bg_highlight-hard_100_f2f5f7_1x100.png │ │ ├── ui-bg_highlight-hard_70_000000_1x100.png │ │ ├── ui-bg_highlight-soft_100_deedf7_1x100.png │ │ ├── ui-bg_highlight-soft_25_ffef8f_1x100.png │ │ ├── ui-icons_2694e8_256x240.png │ │ ├── ui-icons_2e83ff_256x240.png │ │ ├── ui-icons_3d80b3_256x240.png │ │ ├── ui-icons_72a7cf_256x240.png │ │ └── ui-icons_ffffff_256x240.png │ └── jquery-ui-1.8.6.custom.css │ ├── images │ ├── banner.png │ ├── banner2.png │ ├── buttons.gif │ ├── toolbar.gif │ └── weld.png │ ├── jquery.cleditor.css │ ├── screen.css │ └── tabs │ ├── bg.gif │ ├── left.gif │ ├── left_on.gif │ ├── right.gif │ └── right_on.gif └── test ├── resources-jbossas ├── jndi.properties └── test-web.xml ├── resources-jetty ├── test-jetty-env.xml └── test-web.xml ├── resources ├── arquillian.xml ├── ftests.xml ├── test-beans.xml ├── test-jetty-env.xml └── test-persistence.xml └── scala └── org └── jboss └── seam └── wicket └── example └── publish └── scala └── test ├── DaoTest.scala ├── EntityHomeTest.scala ├── MavenArtifactResolver.scala ├── MockDataRepositoryProducer.scala └── PublishPageTest.scala /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | .classpath 3 | .project 4 | .settings 5 | *.sw? 6 | transaction.log 7 | -------------------------------------------------------------------------------- /authorization/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 5 | security-example-authorization-distribution 6 | 7 | zip 8 | 9 | ${project.build.finalName} 10 | 11 | 12 | ${project.basedir} 13 | true 14 | 15 | ${project.build.directory}/** 16 | .classpath 17 | .project 18 | .settings/** 19 | src/main/assembly/** 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /authorization/src/main/java/org/jboss/seam/security/examples/authorization/AuthenticatorImpl.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.authorization; 2 | 3 | import javax.inject.Inject; 4 | 5 | import org.jboss.seam.security.Authenticator; 6 | import org.jboss.seam.security.BaseAuthenticator; 7 | import org.jboss.seam.security.Credentials; 8 | import org.jboss.seam.security.Identity; 9 | import org.picketlink.idm.impl.api.model.SimpleUser; 10 | 11 | /** 12 | * @author Shane Bryzak 13 | */ 14 | public class AuthenticatorImpl extends BaseAuthenticator implements Authenticator { 15 | @Inject 16 | Identity identity; 17 | @Inject 18 | Credentials credentials; 19 | 20 | @Override 21 | public void authenticate() { 22 | if ("demo".equals(credentials.getUsername())) { 23 | identity.addRole("admin", "USERS", "GROUP"); 24 | } 25 | 26 | if ("user".equals(credentials.getUsername())) { 27 | identity.addGroup("USERS", "GROUP"); 28 | } 29 | 30 | // Let any user log in 31 | setStatus(AuthenticationStatus.SUCCESS); 32 | setUser(new SimpleUser(credentials.getUsername())); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /authorization/src/main/java/org/jboss/seam/security/examples/authorization/annotations/Admin.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.authorization.annotations; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | import org.jboss.seam.security.annotations.SecurityBindingType; 9 | 10 | @SecurityBindingType 11 | @Retention(RetentionPolicy.RUNTIME) 12 | @Target({ElementType.TYPE, ElementType.METHOD}) 13 | public @interface Admin { 14 | } 15 | -------------------------------------------------------------------------------- /authorization/src/main/java/org/jboss/seam/security/examples/authorization/annotations/Foo.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.authorization.annotations; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | import javax.enterprise.util.Nonbinding; 9 | 10 | import org.jboss.seam.security.annotations.SecurityBindingType; 11 | 12 | /** 13 | * @author Shane Bryzak 14 | */ 15 | @SecurityBindingType 16 | @Retention(RetentionPolicy.RUNTIME) 17 | @Target({ElementType.TYPE, ElementType.METHOD}) 18 | public @interface Foo { 19 | String bar(); 20 | 21 | @Nonbinding String zzz() default ""; 22 | } 23 | -------------------------------------------------------------------------------- /authorization/src/main/java/org/jboss/seam/security/examples/authorization/annotations/User.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.authorization.annotations; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | import org.jboss.seam.security.annotations.SecurityBindingType; 9 | 10 | /** 11 | * @author Shane Bryzak 12 | */ 13 | @SecurityBindingType 14 | @Retention(RetentionPolicy.RUNTIME) 15 | @Target({ElementType.TYPE, ElementType.METHOD}) 16 | public @interface User { 17 | } 18 | -------------------------------------------------------------------------------- /authorization/src/main/java/org/jboss/seam/security/examples/authorization/exception/ExceptionHandler.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.authorization.exception; 2 | 3 | import javax.inject.Inject; 4 | 5 | import org.jboss.seam.international.status.Messages; 6 | import org.jboss.seam.security.AuthorizationException; 7 | import org.jboss.solder.exception.control.CaughtException; 8 | import org.jboss.solder.exception.control.Handles; 9 | import org.jboss.solder.exception.control.HandlesExceptions; 10 | 11 | /** 12 | * Handles user authorization exceptions 13 | * 14 | * @author Shane Bryzak 15 | */ 16 | @HandlesExceptions 17 | public class ExceptionHandler { 18 | @Inject Messages messages; 19 | 20 | public void handleAuthorizationException(@Handles CaughtException evt) { 21 | messages.error("You do not have the necessary permissions to perform that operation", ""); 22 | evt.handled(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /authorization/src/main/webapp/META-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /authorization/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 14 | 15 | 16 | org.jboss.seam.security.SecurityInterceptor 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /authorization/src/main/webapp/WEB-INF/security.drl: -------------------------------------------------------------------------------- 1 | package Permissions; 2 | 3 | dialect 'mvel' 4 | 5 | import org.jboss.seam.security.permission.PermissionCheck; 6 | import org.picketlink.idm.api.Role; 7 | import org.picketlink.idm.api.User; 8 | import org.picketlink.idm.api.Group; 9 | 10 | rule IsDemoUser 11 | no-loop 12 | activation-group "permissions" 13 | when 14 | check: PermissionCheck(resource == "foo", permission == "execute", granted == false) 15 | User(id == "demo") 16 | then 17 | check.grant(); 18 | end 19 | 20 | rule IsInUserGroup 21 | no-loop 22 | activation-group "permissions" 23 | when 24 | check: PermissionCheck(resource == "bar", permission == "execute", granted == false) 25 | Group(name == "USERS") 26 | then 27 | check.grant(); 28 | end 29 | -------------------------------------------------------------------------------- /authorization/src/main/webapp/WEB-INF/templates/default.xhtml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | Seam Security - Authorization example 8 | 9 | 10 | 11 | 12 |
13 | 27 | 28 |
29 | 30 |
31 |
32 |
33 | 34 | -------------------------------------------------------------------------------- /authorization/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /authorization/src/main/webapp/style/btn_newuser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/authorization/src/main/webapp/style/btn_newuser.png -------------------------------------------------------------------------------- /authorization/src/main/webapp/style/default.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | padding: 0; 4 | background-color: #5c6066; 5 | font-family: Verdana, sans-serif; 6 | font-size: 0.9em; 7 | } 8 | 9 | div#header { 10 | height: 80px; 11 | background-color: #eeeeee; 12 | } 13 | 14 | div#headerMenu { 15 | float: right; 16 | } 17 | 18 | div#title { 19 | padding-top: 22px; 20 | font-size: 22px; 21 | font-weight: bold; 22 | margin-left: 180px; 23 | } 24 | 25 | div#container { 26 | margin: 0px auto; 27 | padding: 2px 2px 2px 4px; 28 | border: 1px solid #666666; 29 | width: 865px; 30 | background: #FFFFFF; 31 | } 32 | 33 | div#sidebar { 34 | font-size: 0.9em; 35 | width: 160px; 36 | float: left; 37 | border: 1px solid #666666; 38 | background: #EAECEE; 39 | padding: 4px 4px 24px 4px; 40 | margin-top: 8px; 41 | } 42 | 43 | div#content { 44 | padding: 4px 4px 4px 4px; 45 | margin-left: 180px; 46 | } 47 | 48 | div.menuitem a { 49 | font-weight: bold; 50 | text-decoration: none; 51 | } 52 | 53 | input.newuser { 54 | background: url(btn_newuser.png) top left no-repeat; 55 | height: 39px; 56 | width: 113px; 57 | margin: 4px 4px 4px 4px; 58 | border: 0px; 59 | cursor: pointer; 60 | } 61 | 62 | -------------------------------------------------------------------------------- /booking/.gitignore: -------------------------------------------------------------------------------- 1 | temp-testng-customsuite.xml 2 | test-output 3 | -------------------------------------------------------------------------------- /booking/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | dist 7 | 8 | zip 9 | 10 | ${project.build.finalName} 11 | 12 | 13 | ${project.basedir} 14 | true 15 | 16 | ${project.build.directory}/** 17 | .classpath 18 | .project 19 | .settings/** 20 | .gitignore 21 | src/main/assembly/** 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /booking/src/main/java/org/jboss/seam/examples/booking/i18n/DefaultBundleKey.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.seam.examples.booking.i18n; 18 | 19 | import org.jboss.seam.international.status.builder.BundleKey; 20 | 21 | /** 22 | * @author Dan Allen 23 | */ 24 | public class DefaultBundleKey extends BundleKey { 25 | 26 | public static final String DEFAULT_BUNDLE_NAME = "messages"; 27 | 28 | public DefaultBundleKey(String key) { 29 | super(DEFAULT_BUNDLE_NAME, key); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /booking/src/main/java/org/jboss/seam/examples/booking/model/Booking_.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.examples.booking.model; 2 | 3 | import java.util.Date; 4 | 5 | import javax.persistence.metamodel.SingularAttribute; 6 | import javax.persistence.metamodel.StaticMetamodel; 7 | 8 | @StaticMetamodel(Booking.class) 9 | public abstract class Booking_ { 10 | 11 | public static volatile SingularAttribute id; 12 | public static volatile SingularAttribute beds; 13 | public static volatile SingularAttribute smoking; 14 | public static volatile SingularAttribute creditCardName; 15 | public static volatile SingularAttribute creditCardNumber; 16 | public static volatile SingularAttribute hotel; 17 | public static volatile SingularAttribute checkinDate; 18 | public static volatile SingularAttribute creditCardExpiryYear; 19 | public static volatile SingularAttribute creditCardExpiryMonth; 20 | public static volatile SingularAttribute checkoutDate; 21 | public static volatile SingularAttribute user; 22 | public static volatile SingularAttribute creditCardType; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /booking/src/main/java/org/jboss/seam/examples/booking/model/CreditCardType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.seam.examples.booking.model; 18 | 19 | /** 20 | * @author Dan Allen 21 | */ 22 | public enum CreditCardType { 23 | VISA, MasterCard, AMEX, Discover 24 | } 25 | -------------------------------------------------------------------------------- /booking/src/main/java/org/jboss/seam/examples/booking/model/Hotel_.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.examples.booking.model; 2 | 3 | import java.math.BigDecimal; 4 | 5 | import javax.persistence.metamodel.SingularAttribute; 6 | import javax.persistence.metamodel.StaticMetamodel; 7 | 8 | @StaticMetamodel(Hotel.class) 9 | public abstract class Hotel_ { 10 | 11 | public static volatile SingularAttribute id; 12 | public static volatile SingularAttribute zip; 13 | public static volatile SingularAttribute price; 14 | public static volatile SingularAttribute address; 15 | public static volatile SingularAttribute stars; 16 | public static volatile SingularAttribute name; 17 | public static volatile SingularAttribute state; 18 | public static volatile SingularAttribute country; 19 | public static volatile SingularAttribute city; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /booking/src/main/java/org/jboss/seam/examples/booking/model/User_.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.examples.booking.model; 2 | 3 | import javax.persistence.metamodel.SingularAttribute; 4 | import javax.persistence.metamodel.StaticMetamodel; 5 | 6 | @StaticMetamodel(User.class) 7 | public abstract class User_ { 8 | 9 | public static volatile SingularAttribute username; 10 | public static volatile SingularAttribute email; 11 | public static volatile SingularAttribute name; 12 | public static volatile SingularAttribute password; 13 | 14 | } 15 | -------------------------------------------------------------------------------- /booking/src/main/resources-glassfish/WEB-INF/classes/META-INF/persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | jdbc/__default 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /booking/src/main/resources-jbossas6/WEB-INF/classes/META-INF/persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | java:/DefaultDS 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /booking/src/main/resources-jbossas7/WEB-INF/classes/META-INF/persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | java:jboss/datasources/ExampleDS 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /booking/src/main/resources/META-INF/seam-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 25 | 26 | 27 | 28 | bookingAuthenticator 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /booking/src/main/resources/import.sql: -------------------------------------------------------------------------------- 1 | -- If you are using Hibernate as the JPA provider, you can use this file to load seed data into the database using SQL statements 2 | -- The portable approach is to use a startup component (such as the @PostConstruct method of a @Startup @Singleton) or observe a lifecycle event fired by Seam Servlet 3 | -------------------------------------------------------------------------------- /booking/src/main/resources/messages_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/resources/messages_de.properties -------------------------------------------------------------------------------- /booking/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /booking/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | org.jboss.seam.faces.context.conversation.ConversationBoundaryInterceptor 9 | 10 | 11 | org.jboss.seam.examples.booking.bootstrap.ApplicationInitializer 12 | 13 | 14 | -------------------------------------------------------------------------------- /booking/src/main/webapp/denied.xhtml: -------------------------------------------------------------------------------- 1 | 3 | 9 | 10 | 11 | 12 |
13 |

Access Denied

14 |
15 | 16 |
17 |

You are not authorized to perform the requested action.

18 | 19 |

#{facesContext.externalContext.requestMap['javax.servlet.error.message']}

20 |
21 | 22 |
23 | 24 |
25 | -------------------------------------------------------------------------------- /booking/src/main/webapp/error.xhtml: -------------------------------------------------------------------------------- 1 | 3 | 9 | 10 | 11 | 12 |
13 |

Error Encountered

14 |
15 | 16 |
17 |

An unexpected error has occurred.

18 | 19 |

#{facesContext.externalContext.requestMap['javax.servlet.error.message']}

20 |
21 | 22 |
23 | 24 |
25 | -------------------------------------------------------------------------------- /booking/src/main/webapp/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/favicon.ico -------------------------------------------------------------------------------- /booking/src/main/webapp/img/1-star.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/1-star.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/2-star.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/2-star.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/3-star.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/3-star.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/4-star.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/4-star.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/5-star.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/5-star.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/bg.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/bg01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/bg01.png -------------------------------------------------------------------------------- /booking/src/main/webapp/img/bg02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/bg02.png -------------------------------------------------------------------------------- /booking/src/main/webapp/img/bg03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/bg03.png -------------------------------------------------------------------------------- /booking/src/main/webapp/img/bg04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/bg04.png -------------------------------------------------------------------------------- /booking/src/main/webapp/img/btn.bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/btn.bg.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/btn.bg.gold.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/btn.bg.gold.png -------------------------------------------------------------------------------- /booking/src/main/webapp/img/cal-next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/cal-next.png -------------------------------------------------------------------------------- /booking/src/main/webapp/img/cal-prev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/cal-prev.png -------------------------------------------------------------------------------- /booking/src/main/webapp/img/clean.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/clean.jpg -------------------------------------------------------------------------------- /booking/src/main/webapp/img/cnt.bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/cnt.bg.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/div-background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/div-background.png -------------------------------------------------------------------------------- /booking/src/main/webapp/img/div.bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/div.bg.png -------------------------------------------------------------------------------- /booking/src/main/webapp/img/dtpick.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/dtpick.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/gold-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/gold-2.png -------------------------------------------------------------------------------- /booking/src/main/webapp/img/hdr.ad.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/hdr.ad.jpg -------------------------------------------------------------------------------- /booking/src/main/webapp/img/hdr.bar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/hdr.bar.jpg -------------------------------------------------------------------------------- /booking/src/main/webapp/img/hdr.bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/hdr.bg.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/hdr.bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/hdr.bg.png -------------------------------------------------------------------------------- /booking/src/main/webapp/img/hdr.title.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/hdr.title.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/header_line.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/header_line.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/hotel01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/hotel01.jpg -------------------------------------------------------------------------------- /booking/src/main/webapp/img/hotel01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/hotel01.png -------------------------------------------------------------------------------- /booking/src/main/webapp/img/hotel02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/hotel02.jpg -------------------------------------------------------------------------------- /booking/src/main/webapp/img/input.bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/input.bg.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/sdb.bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/sdb.bg.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/spinner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/spinner.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/spinnerold.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/spinnerold.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/img/th.bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/booking/src/main/webapp/img/th.bg.gif -------------------------------------------------------------------------------- /booking/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /booking/src/main/webapp/resources/components/model/displayAccount.xhtml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /booking/src/test/java/org/jboss/seam/examples/booking/test/AuthenticatedUserProducer.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.examples.booking.test; 2 | 3 | import javax.enterprise.inject.Produces; 4 | import javax.persistence.EntityManager; 5 | import javax.persistence.PersistenceContext; 6 | 7 | import org.jboss.seam.examples.booking.account.Authenticated; 8 | import org.jboss.seam.examples.booking.model.User; 9 | 10 | public class AuthenticatedUserProducer { 11 | @PersistenceContext 12 | EntityManager em; 13 | 14 | @Produces 15 | @Authenticated 16 | public User getRegisteredUser() { 17 | return em.find(User.class, "ike"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /booking/src/test/java/org/jboss/seam/examples/booking/test/Dependencies.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.examples.booking.test; 2 | 3 | import org.jboss.shrinkwrap.api.Archive; 4 | import org.jboss.shrinkwrap.api.GenericArchive; 5 | import org.jboss.shrinkwrap.resolver.api.DependencyResolvers; 6 | import org.jboss.shrinkwrap.resolver.api.maven.MavenDependencyResolver; 7 | 8 | public interface Dependencies { 9 | 10 | static final Archive[] SOLDER = DependencyResolvers.use(MavenDependencyResolver.class).loadMetadataFromPom("pom.xml") 11 | .artifact("org.jboss.seam.solder:seam-solder").exclusion("*").resolveAs(GenericArchive.class) 12 | .toArray(new Archive[0]); 13 | static final Archive[] JODA_TIME = DependencyResolvers.use(MavenDependencyResolver.class).loadMetadataFromPom("pom.xml") 14 | .artifact("joda-time:joda-time").exclusion("*").resolveAs(GenericArchive.class).toArray(new Archive[0]); 15 | static final Archive[] INTERNATIONAL = DependencyResolvers.use(MavenDependencyResolver.class) 16 | .loadMetadataFromPom("pom.xml").artifact("org.jboss.seam.international:seam-international").exclusion("*") 17 | .resolveAs(GenericArchive.class).toArray(new Archive[0]); 18 | } 19 | -------------------------------------------------------------------------------- /booking/src/test/resources-glassfish-embedded/sun-resources.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 7 | 11 | 12 | 13 | 14 | 25 | 26 | -------------------------------------------------------------------------------- /booking/src/test/resources-glassfish-embedded/test-persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | jdbc/arquillian 9 | org.jboss.seam.examples.booking.model.User 10 | org.jboss.seam.examples.booking.model.Hotel 11 | org.jboss.seam.examples.booking.model.Booking 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /booking/src/test/resources-glassfish-remote/test-persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | jdbc/__default 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /booking/src/test/resources-jbossas/test-persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | java:/DefaultDS 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /booking/src/test/resources/arquillian.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | -Xmx1024m -XX:MaxPermSize=512m 9 | 10 | 11 | 12 | 13 | false 14 | 15 | 16 | 17 | true 18 | target/selenium-server-output.log 19 | 20 | 21 | -------------------------------------------------------------------------------- /catch-basic-servlet/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | zip 7 | 8 | ${project.build.finalName} 9 | 10 | 11 | ${project.basedir} 12 | true 13 | 14 | ${project.build.directory}/** 15 | .classpath 16 | .project 17 | .settings/** 18 | src/main/assembly/** 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /catch-basic-servlet/src/main/resources/beans.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/catch-basic-servlet/src/main/resources/beans.xml -------------------------------------------------------------------------------- /catch-basic-servlet/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 22 | 23 | -------------------------------------------------------------------------------- /catch-basic-servlet/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /catch-basic-servlet/src/test/resources/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /gwthelloworld/src/jboss6/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.wfktest-app 4 | -------------------------------------------------------------------------------- /gwthelloworld/src/main/java/ErraiApp.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/gwthelloworld/src/main/java/ErraiApp.properties -------------------------------------------------------------------------------- /gwthelloworld/src/main/java/ErraiService.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2009 JBoss, a divison Red Hat, Inc 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # 18 | # Specify the Authentication/Authorization Adapter sendNowWith use 19 | # 20 | #errai.authentication_adapter=org.jboss.errai.persistence.server.security.HibernateAuthenticationAdapter 21 | #errai.authentication_adapter=org.jboss.errai.bus.server.security.auth.JAASAdapter 22 | 23 | ## 24 | ## This property indicates whether or not authentication is required for all communication with the bus. Set this 25 | ## to 'true' if all access to your application should be secure. 26 | ## 27 | errai.require_authentication_for_all=false -------------------------------------------------------------------------------- /gwthelloworld/src/main/java/org/jboss/seam/example/gwt/helloworld/GwtHelloworld.gwt.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /gwthelloworld/src/main/java/org/jboss/seam/example/gwt/helloworld/client/MessageEvent.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.example.gwt.helloworld.client; 2 | 3 | import org.jboss.errai.bus.server.annotations.ExposeEntity; 4 | 5 | /** 6 | * Generated. 7 | */ 8 | @ExposeEntity 9 | public class MessageEvent { 10 | private int id; 11 | private String message; 12 | 13 | public MessageEvent() { 14 | } 15 | 16 | public MessageEvent(String message) { 17 | this.message = message; 18 | } 19 | 20 | public int getId() { 21 | return id; 22 | } 23 | 24 | public void setId(int id) { 25 | this.id = id; 26 | } 27 | 28 | public String getMessage() { 29 | return message; 30 | } 31 | 32 | public void setMessage(String message) { 33 | this.message = message; 34 | } 35 | } -------------------------------------------------------------------------------- /gwthelloworld/src/main/java/org/jboss/seam/example/gwt/helloworld/client/ResponseEvent.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.example.gwt.helloworld.client; 2 | 3 | import org.jboss.errai.bus.server.annotations.ExposeEntity; 4 | 5 | /** 6 | * Generated. 7 | */ 8 | @ExposeEntity 9 | public class ResponseEvent { 10 | private int id; 11 | private String message; 12 | 13 | public ResponseEvent() { 14 | } 15 | 16 | public ResponseEvent(String message) { 17 | this.message = message; 18 | } 19 | 20 | public int getId() { 21 | return id; 22 | } 23 | 24 | public void setId(int id) { 25 | this.id = id; 26 | } 27 | 28 | public String getMessage() { 29 | return message; 30 | } 31 | 32 | public void setMessage(String message) { 33 | this.message = message; 34 | } 35 | } -------------------------------------------------------------------------------- /gwthelloworld/src/main/java/org/jboss/seam/example/gwt/helloworld/server/GwtHelloworldService.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.example.gwt.helloworld.server; 2 | 3 | import javax.enterprise.context.ApplicationScoped; 4 | import javax.enterprise.event.Event; 5 | import javax.enterprise.event.Observes; 6 | import javax.inject.Inject; 7 | 8 | import org.jboss.seam.example.gwt.helloworld.client.MessageEvent; 9 | import org.jboss.seam.example.gwt.helloworld.client.ResponseEvent; 10 | 11 | /** 12 | * Generated 13 | */ 14 | @ApplicationScoped 15 | public class GwtHelloworldService { 16 | @Inject 17 | private Event responseEvent; 18 | 19 | public void handleMessage(@Observes MessageEvent event) { 20 | System.out.println("Received Message: " + event.getMessage()); 21 | responseEvent.fire(new ResponseEvent(event.getMessage() + ":" + System.currentTimeMillis())); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /gwthelloworld/src/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /gwthelloworld/war/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /gwthelloworld/war/WEB-INF/classes/ErraiApp.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/gwthelloworld/war/WEB-INF/classes/ErraiApp.properties -------------------------------------------------------------------------------- /gwthelloworld/war/WEB-INF/classes/ErraiService.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2009 JBoss, a divison Red Hat, Inc 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # 18 | # Specify the Authentication/Authorization Adapter sendNowWith use 19 | # 20 | #errai.authentication_adapter=org.jboss.errai.persistence.server.security.HibernateAuthenticationAdapter 21 | #errai.authentication_adapter=org.jboss.errai.bus.server.security.auth.JAASAdapter 22 | 23 | ## 24 | ## This property indicates whether or not authentication is required for all communication with the bus. Set this 25 | ## to 'true' if all access to your application should be secure. 26 | ## 27 | errai.require_authentication_for_all=false -------------------------------------------------------------------------------- /gwthelloworld/war/WEB-INF/classes/org/jboss/seam/example/gwt/helloworld/GwtHelloworld.gwt.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /gwthelloworld/war/WEB-INF/classes/org/jboss/seam/example/gwt/helloworld/client/GwtHelloworld$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/gwthelloworld/war/WEB-INF/classes/org/jboss/seam/example/gwt/helloworld/client/GwtHelloworld$1.class -------------------------------------------------------------------------------- /gwthelloworld/war/WEB-INF/classes/org/jboss/seam/example/gwt/helloworld/client/GwtHelloworld.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/gwthelloworld/war/WEB-INF/classes/org/jboss/seam/example/gwt/helloworld/client/GwtHelloworld.class -------------------------------------------------------------------------------- /gwthelloworld/war/WEB-INF/classes/org/jboss/seam/example/gwt/helloworld/client/MessageEvent.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/gwthelloworld/war/WEB-INF/classes/org/jboss/seam/example/gwt/helloworld/client/MessageEvent.class -------------------------------------------------------------------------------- /gwthelloworld/war/WEB-INF/classes/org/jboss/seam/example/gwt/helloworld/client/MessageEvent.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.example.gwt.helloworld.client; 2 | 3 | import org.jboss.errai.bus.server.annotations.ExposeEntity; 4 | 5 | /** 6 | * Generated. 7 | */ 8 | @ExposeEntity 9 | public class MessageEvent { 10 | private int id; 11 | private String message; 12 | 13 | public MessageEvent() { 14 | } 15 | 16 | public MessageEvent(String message) { 17 | this.message = message; 18 | } 19 | 20 | public int getId() { 21 | return id; 22 | } 23 | 24 | public void setId(int id) { 25 | this.id = id; 26 | } 27 | 28 | public String getMessage() { 29 | return message; 30 | } 31 | 32 | public void setMessage(String message) { 33 | this.message = message; 34 | } 35 | } -------------------------------------------------------------------------------- /gwthelloworld/war/WEB-INF/classes/org/jboss/seam/example/gwt/helloworld/client/ResponseEvent.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/gwthelloworld/war/WEB-INF/classes/org/jboss/seam/example/gwt/helloworld/client/ResponseEvent.class -------------------------------------------------------------------------------- /gwthelloworld/war/WEB-INF/classes/org/jboss/seam/example/gwt/helloworld/client/ResponseEvent.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.example.gwt.helloworld.client; 2 | 3 | import org.jboss.errai.bus.server.annotations.ExposeEntity; 4 | 5 | /** 6 | * Generated. 7 | */ 8 | @ExposeEntity 9 | public class ResponseEvent { 10 | private int id; 11 | private String message; 12 | 13 | public ResponseEvent() { 14 | } 15 | 16 | public ResponseEvent(String message) { 17 | this.message = message; 18 | } 19 | 20 | public int getId() { 21 | return id; 22 | } 23 | 24 | public void setId(int id) { 25 | this.id = id; 26 | } 27 | 28 | public String getMessage() { 29 | return message; 30 | } 31 | 32 | public void setMessage(String message) { 33 | this.message = message; 34 | } 35 | } -------------------------------------------------------------------------------- /gwthelloworld/war/WEB-INF/classes/org/jboss/seam/example/gwt/helloworld/server/GwtHelloworldService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/gwthelloworld/war/WEB-INF/classes/org/jboss/seam/example/gwt/helloworld/server/GwtHelloworldService.class -------------------------------------------------------------------------------- /gwthelloworld/war/WEB-INF/classes/org/jboss/seam/example/gwt/helloworld/server/GwtHelloworldService.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.example.gwt.helloworld.server; 2 | 3 | import org.jboss.seam.example.gwt.helloworld.client.MessageEvent; 4 | import org.jboss.seam.example.gwt.helloworld.client.ResponseEvent; 5 | 6 | import javax.enterprise.context.ApplicationScoped; 7 | import javax.enterprise.event.Event; 8 | import javax.enterprise.event.Observes; 9 | import javax.enterprise.inject.Any; 10 | import javax.inject.Inject; 11 | 12 | /** 13 | * Generated 14 | */ 15 | @ApplicationScoped 16 | public class GwtHelloworldService { 17 | @Inject 18 | private Event responseEvent; 19 | 20 | public void handleMessage(@Observes MessageEvent event) { 21 | System.out.println("Received Message: " + event.getMessage()); 22 | responseEvent.fire(new ResponseEvent(event.getMessage() + ":" + System.currentTimeMillis())); 23 | } 24 | } -------------------------------------------------------------------------------- /gwthelloworld/war/gwtHelloworld.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: white; 3 | color: black; 4 | font-family: Arial, sans-serif; 5 | font-size: small; 6 | margin: 8px; 7 | } -------------------------------------------------------------------------------- /gwthelloworld/war/gwtHelloworld.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | gwtHelloworld 4 | 5 | 6 | 7 | 9 |

gwtHelloworld!

10 | 11 | -------------------------------------------------------------------------------- /idmconsole/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 5 | security-example-idmconsole-distribution 6 | 7 | zip 8 | 9 | ${project.build.finalName} 10 | 11 | 12 | ${project.basedir} 13 | true 14 | 15 | ${project.build.directory}/** 16 | .classpath 17 | .project 18 | .settings/** 19 | src/main/assembly/** 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/action/GroupDTO.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.idmconsole.action; 2 | 3 | /** 4 | * Data transfer object for group information 5 | * 6 | * @author Shane Bryzak 7 | */ 8 | public class GroupDTO { 9 | private String name; 10 | private String groupType; 11 | 12 | public void setName(String name) { 13 | this.name = name; 14 | } 15 | 16 | public String getName() { 17 | return name; 18 | } 19 | 20 | public void setGroupType(String groupType) { 21 | this.groupType = groupType; 22 | } 23 | 24 | public String getGroupType() { 25 | return groupType; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/action/RoleSearch.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.idmconsole.action; 2 | 3 | import java.io.Serializable; 4 | import java.util.ArrayList; 5 | import java.util.List; 6 | 7 | import javax.enterprise.inject.Model; 8 | import javax.inject.Inject; 9 | 10 | import org.picketlink.idm.api.IdentitySession; 11 | import org.picketlink.idm.api.RoleType; 12 | import org.picketlink.idm.common.exception.FeatureNotSupportedException; 13 | import org.picketlink.idm.common.exception.IdentityException; 14 | 15 | /** 16 | * Action class used to search for role types 17 | * 18 | * @author Shane Bryzak 19 | */ 20 | public 21 | @Model 22 | class RoleSearch implements Serializable { 23 | private static final long serialVersionUID = -1014495134519417515L; 24 | 25 | @Inject 26 | IdentitySession identitySession; 27 | 28 | private List roleTypes; 29 | 30 | @Inject 31 | public void loadRoleTypes() throws IdentityException, FeatureNotSupportedException { 32 | roleTypes = new ArrayList(); 33 | 34 | for (RoleType roleType : identitySession.getRoleManager().findRoleTypes()) { 35 | roleTypes.add(roleType.getName()); 36 | } 37 | } 38 | 39 | public List getRoleTypes() { 40 | return roleTypes; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/action/UserDTO.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.idmconsole.action; 2 | 3 | /** 4 | * Used to transfer user information to a view layer 5 | * 6 | * @author Shane Bryzak 7 | */ 8 | public class UserDTO { 9 | private String username; 10 | private boolean enabled; 11 | 12 | public String getUsername() { 13 | return username; 14 | } 15 | 16 | public void setUsername(String username) { 17 | this.username = username; 18 | } 19 | 20 | public boolean isEnabled() { 21 | return enabled; 22 | } 23 | 24 | public void setEnabled(boolean enabled) { 25 | this.enabled = enabled; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/converter/GroupConverter.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.idmconsole.converter; 2 | 3 | import javax.faces.component.UIComponent; 4 | import javax.faces.context.FacesContext; 5 | import javax.faces.convert.Converter; 6 | import javax.faces.convert.FacesConverter; 7 | 8 | import org.picketlink.idm.api.Group; 9 | import org.picketlink.idm.impl.api.model.SimpleGroup; 10 | 11 | @FacesConverter("groupConverter") 12 | public class GroupConverter implements Converter { 13 | 14 | @Override 15 | public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) { 16 | return new SimpleGroup(arg2, "GROUP"); 17 | } 18 | 19 | @Override 20 | public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) { 21 | return ((Group) arg2).getName(); 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/converter/RoleTypeConverter.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.idmconsole.converter; 2 | 3 | import javax.faces.component.UIComponent; 4 | import javax.faces.context.FacesContext; 5 | import javax.faces.convert.Converter; 6 | import javax.faces.convert.FacesConverter; 7 | 8 | import org.picketlink.idm.api.RoleType; 9 | import org.picketlink.idm.impl.api.model.SimpleRoleType; 10 | 11 | @FacesConverter("roleTypeConverter") 12 | public class RoleTypeConverter implements Converter { 13 | @Override 14 | public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) { 15 | return new SimpleRoleType(arg2); 16 | } 17 | 18 | @Override 19 | public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) { 20 | return ((RoleType) arg2).getName(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectCredentialType.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.idmconsole.model; 2 | 3 | import java.io.Serializable; 4 | 5 | import javax.persistence.Entity; 6 | import javax.persistence.GeneratedValue; 7 | import javax.persistence.Id; 8 | 9 | import org.jboss.seam.security.annotations.management.IdentityProperty; 10 | import org.jboss.seam.security.annotations.management.PropertyType; 11 | 12 | /** 13 | * Lookup table containing credential types 14 | * 15 | * @author Shane Bryzak 16 | */ 17 | @Entity 18 | public class IdentityObjectCredentialType implements Serializable { 19 | private static final long serialVersionUID = 282711089697868242L; 20 | 21 | private Long id; 22 | private String name; 23 | 24 | @Id 25 | @GeneratedValue 26 | public Long getId() { 27 | return id; 28 | } 29 | 30 | public void setId(Long id) { 31 | this.id = id; 32 | } 33 | 34 | @IdentityProperty(PropertyType.NAME) 35 | public String getName() { 36 | return name; 37 | } 38 | 39 | public void setName(String name) { 40 | this.name = name; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectRelationshipType.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.idmconsole.model; 2 | 3 | import java.io.Serializable; 4 | 5 | import javax.persistence.Entity; 6 | import javax.persistence.GeneratedValue; 7 | import javax.persistence.Id; 8 | 9 | import org.jboss.seam.security.annotations.management.IdentityProperty; 10 | import org.jboss.seam.security.annotations.management.PropertyType; 11 | 12 | /** 13 | * Lookup table containing relationship types 14 | * 15 | * @author Shane Bryzak 16 | */ 17 | @Entity 18 | public class IdentityObjectRelationshipType implements Serializable { 19 | private static final long serialVersionUID = -67640567413388470L; 20 | 21 | private Long id; 22 | private String name; 23 | 24 | @Id 25 | @GeneratedValue 26 | public Long getId() { 27 | return id; 28 | } 29 | 30 | public void setId(Long id) { 31 | this.id = id; 32 | } 33 | 34 | @IdentityProperty(PropertyType.NAME) 35 | public String getName() { 36 | return name; 37 | } 38 | 39 | public void setName(String name) { 40 | this.name = name; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectType.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.idmconsole.model; 2 | 3 | import java.io.Serializable; 4 | 5 | import javax.persistence.Entity; 6 | import javax.persistence.GeneratedValue; 7 | import javax.persistence.Id; 8 | 9 | import org.jboss.seam.security.annotations.management.IdentityProperty; 10 | import org.jboss.seam.security.annotations.management.PropertyType; 11 | 12 | /** 13 | * A lookup table containing identity object types 14 | * 15 | * @author Shane Bryzak 16 | */ 17 | @Entity 18 | public class IdentityObjectType implements Serializable { 19 | private static final long serialVersionUID = -8333008038699510742L; 20 | 21 | private Long id; 22 | private String name; 23 | 24 | @Id 25 | @GeneratedValue 26 | public Long getId() { 27 | return id; 28 | } 29 | 30 | public void setId(Long id) { 31 | this.id = id; 32 | } 33 | 34 | @IdentityProperty(PropertyType.NAME) 35 | public String getName() { 36 | return name; 37 | } 38 | 39 | public void setName(String name) { 40 | this.name = name; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityRoleName.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.idmconsole.model; 2 | 3 | import static org.jboss.seam.security.annotations.management.EntityType.IDENTITY_ROLE_NAME; 4 | 5 | import java.io.Serializable; 6 | 7 | import javax.persistence.Entity; 8 | import javax.persistence.GeneratedValue; 9 | import javax.persistence.Id; 10 | 11 | import org.jboss.seam.security.annotations.management.IdentityEntity; 12 | 13 | /** 14 | * This is a simple lookup table containing role names 15 | * 16 | * @author Shane Bryzak 17 | */ 18 | @IdentityEntity(IDENTITY_ROLE_NAME) 19 | @Entity 20 | public class IdentityRoleName implements Serializable { 21 | private static final long serialVersionUID = 8775236263787825703L; 22 | 23 | private Long id; 24 | private String name; 25 | 26 | @Id 27 | @GeneratedValue 28 | public Long getId() { 29 | return id; 30 | } 31 | 32 | public void setId(Long id) { 33 | this.id = id; 34 | } 35 | 36 | public String getName() { 37 | return name; 38 | } 39 | 40 | public void setName(String name) { 41 | this.name = name; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/producer/EntityManagerProducer.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.idmconsole.producer; 2 | 3 | import javax.enterprise.context.ConversationScoped; 4 | import javax.enterprise.inject.Produces; 5 | import javax.persistence.EntityManagerFactory; 6 | import javax.persistence.PersistenceUnit; 7 | 8 | import org.jboss.solder.core.ExtensionManaged; 9 | 10 | /** 11 | * @author Shane Bryzak 12 | */ 13 | public class EntityManagerProducer { 14 | @Produces 15 | @ExtensionManaged 16 | @ConversationScoped 17 | @PersistenceUnit 18 | EntityManagerFactory emf; 19 | } 20 | -------------------------------------------------------------------------------- /idmconsole/src/main/resources-glassfish/WEB-INF/classes/META-INF/persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | jdbc/__default 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /idmconsole/src/main/resources-jbossas6/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 11 | 12 | 13 | org.jboss.seam.transaction.TransactionInterceptor 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /idmconsole/src/main/resources-jbossas6/WEB-INF/classes/META-INF/persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | java:/DefaultDS 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /idmconsole/src/main/resources-jbossas7/WEB-INF/classes/META-INF/persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | java:jboss/datasources/ExampleDS 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /idmconsole/src/main/resources/META-INF/seam-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /idmconsole/src/main/webapp/META-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /idmconsole/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 9 | 10 | 11 | org.jboss.seam.transaction.TransactionInterceptor 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /idmconsole/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | Faces Servlet 13 | javax.faces.webapp.FacesServlet 14 | 1 15 | 16 | 17 | 18 | 19 | Faces Servlet 20 | *.jsf 21 | 22 | 23 | 24 | 25 | 26 | facelets.DEVELOPMENT 27 | true 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /idmconsole/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /idmconsole/src/main/webapp/menu.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 12 | 13 | 16 | 17 | 20 | 21 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /idmconsole/src/main/webapp/style/btn_newuser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/idmconsole/src/main/webapp/style/btn_newuser.png -------------------------------------------------------------------------------- /idmconsole/src/main/webapp/style/default.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | padding: 0; 4 | background-color: #5c6066; 5 | font-family: Verdana, sans-serif; 6 | font-size: 0.9em; 7 | } 8 | 9 | div#header { 10 | height: 80px; 11 | background-color: #eeeeee; 12 | } 13 | 14 | div#headerMenu { 15 | float: right; 16 | } 17 | 18 | div#title { 19 | padding-top: 22px; 20 | font-size: 22px; 21 | font-weight: bold; 22 | margin-left: 180px; 23 | } 24 | 25 | div#container { 26 | margin: 0px auto; 27 | padding: 2px 2px 2px 4px; 28 | border: 1px solid #666666; 29 | width: 865px; 30 | background: #FFFFFF; 31 | } 32 | 33 | div#sidebar { 34 | font-size: 0.9em; 35 | width: 160px; 36 | float: left; 37 | border: 1px solid #666666; 38 | background: #EAECEE; 39 | padding: 4px 4px 24px 4px; 40 | margin-top: 8px; 41 | } 42 | 43 | div#content { 44 | padding: 4px 4px 4px 4px; 45 | margin-left: 180px; 46 | } 47 | 48 | div.menuitem a { 49 | font-weight: bold; 50 | text-decoration: none; 51 | } 52 | 53 | input.newuser { 54 | background: url(btn_newuser.png) top left no-repeat; 55 | height: 39px; 56 | width: 113px; 57 | margin: 4px 4px 4px 4px; 58 | border: 0px; 59 | cursor: pointer; 60 | } 61 | 62 | -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/resources/log4j.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/META-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/WEB-INF/fragments/categories.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 |

Categories

8 |
    9 | 10 |
  • 11 | 12 | 13 | 14 |
  • 15 |
    16 |
17 | 18 |
19 | -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/WEB-INF/fragments/commonViewParams.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/WEB-INF/fragments/otherCategories.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 |

Other Categories

8 |
    9 | 10 |
  • 11 | 12 | 13 | 14 |
  • 15 |
    16 |
17 | 18 |
19 | -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/WEB-INF/jetty-env.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | app/Manager 10 | 11 | 12 | javax.inject.manager.Manager 13 | org.jboss.webbeans.resources.ManagerObjectFactory 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/category.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/css/legacy.css: -------------------------------------------------------------------------------- 1 | .clear { 2 | height: 1px; 3 | } 4 | 5 | body { 6 | font-size: 62.5%; 7 | } 8 | -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/entry.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/jsf-servlet-permalink/src/main/webapp/favicon.ico -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/home.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/img/bodybg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/jsf-servlet-permalink/src/main/webapp/img/bodybg.gif -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/img/headerbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/jsf-servlet-permalink/src/main/webapp/img/headerbg.gif -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/img/rss.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/jsf-servlet-permalink/src/main/webapp/img/rss.gif -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/img/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/jsf-servlet-permalink/src/main/webapp/img/search.png -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/img/searchbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/jsf-servlet-permalink/src/main/webapp/img/searchbg.gif -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/img/technorati.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/jsf-servlet-permalink/src/main/webapp/img/technorati.gif -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/img/wgradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/jsf-servlet-permalink/src/main/webapp/img/wgradient.png -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/img/wrapper.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/jsf-servlet-permalink/src/main/webapp/img/wrapper.gif -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/test/java/org/jboss/seam/examples/permalink/WhenNavigatingToCategoryPage.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.examples.permalink; 2 | 3 | import java.util.List; 4 | 5 | import org.jboss.seam.test.AbstractScenario; 6 | import org.testng.annotations.Test; 7 | 8 | import static org.testng.Assert.*; 9 | 10 | /** 11 | * @author Dan Allen 12 | */ 13 | public class WhenNavigatingToCategoryPage extends AbstractScenario { 14 | private static final String CATEGORY_PAGE = "/category.xhtml"; 15 | 16 | @Test(groups = {"integration", "scenario"}) 17 | public void shouldSetCategoryFromViewParameter() throws Exception { 18 | tester.requestPage(CATEGORY_PAGE + "?name=General"); 19 | String category = getValue("blog.category", String.class); 20 | assertEquals(category, "General"); 21 | } 22 | 23 | @Test(groups = {"integration", "scenario"}) 24 | public void shouldDisplayEntriesInCategory() throws Exception { 25 | tester.requestPage(CATEGORY_PAGE + "?name=JSF 2"); 26 | List entriesForPage = getValue("blog.entriesForPage", List.class); 27 | assertNotNull(entriesForPage); 28 | assertEquals(entriesForPage.size(), 3); 29 | for (BlogEntry entry : entriesForPage) { 30 | assertEquals(entry.getCategory(), "JSF 2"); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/test/java/org/jboss/seam/test/FacesTesterHolder.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.test; 2 | 3 | import com.steeplesoft.jsf.facestester.FacesTester; 4 | 5 | /** 6 | * @author Dan Allen 7 | */ 8 | public class FacesTesterHolder { 9 | private static FacesTester tester; 10 | 11 | public static synchronized FacesTester instance() { 12 | if (tester == null) { 13 | tester = new FacesTester(); 14 | } 15 | 16 | return tester; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /jsf-servlet-permalink/src/test/resources/unit-test-suite.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /openid-op/readme.txt: -------------------------------------------------------------------------------- 1 | OPENID-RP EXAMPLE 2 | 3 | 4 | What is it? 5 | =========== 6 | 7 | This demo web application shows how to turn your application into an OpenID 8 | provider (OP). It makes use of the OpenID submodule of Seam Security. 9 | 10 | 11 | How to deploy it? 12 | ================= 13 | 14 | The application is packaged as a war file and should run in any JEE6 15 | environment. It has been tested on JBoss AS 6. Before deploying the application, 16 | you need to map this host name to the localhost: 17 | 18 | www.openid-op.com 19 | 20 | On Unix based systems, you do this by putting the following lines in 21 | '/etc/hosts': 22 | 23 | 127.0.0.1 www.openid-op.com 24 | 25 | 26 | Some background info 27 | ==================== 28 | 29 | The Identity Provider is preconfigured to run at port 8080 and to use the http 30 | protocol for communicating with Relying Parties (RPs). These settings are ok 31 | for a test setup, but please be aware that in production, you'd use http on 32 | port 443. In the test application these settings are done programmatically 33 | (by the OpenIdProviderCustomizer). 34 | 35 | 36 | How to use the application 37 | ========================== 38 | 39 | Start the application and fetch this URL in your browser: 40 | 41 | http://www.openid-op.com:8080/openid-op 42 | 43 | There you can login and logout locally. If you also install the example OpenID 44 | relying party, you can experience delegated and single logon. -------------------------------------------------------------------------------- /openid-op/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | zip 7 | 8 | ${project.build.finalName} 9 | 10 | 11 | ${project.basedir} 12 | true 13 | 14 | ${project.build.directory}/** 15 | .classpath 16 | .project 17 | .settings/** 18 | src/main/assembly/** 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /openid-op/src/main/java/org/jboss/seam/security/examples/openid/AttributeVO.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.openid; 2 | 3 | import org.jboss.seam.security.external.openid.api.OpenIdRequestedAttribute; 4 | 5 | public class AttributeVO { 6 | private OpenIdRequestedAttribute requestedAttribute; 7 | 8 | private String attributeValue; 9 | 10 | public OpenIdRequestedAttribute getRequestedAttribute() { 11 | return requestedAttribute; 12 | } 13 | 14 | public void setRequestedAttribute(OpenIdRequestedAttribute requestedAttribute) { 15 | this.requestedAttribute = requestedAttribute; 16 | } 17 | 18 | public String getAttributeValue() { 19 | return attributeValue; 20 | } 21 | 22 | public void setAttributeValue(String attributeValue) { 23 | this.attributeValue = attributeValue; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /openid-op/src/main/java/org/jboss/seam/security/examples/openid/Configuration.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.openid; 2 | 3 | import javax.enterprise.inject.Model; 4 | import javax.inject.Inject; 5 | 6 | import org.jboss.seam.security.external.openid.api.OpenIdProviderConfigurationApi; 7 | 8 | @Model 9 | public class Configuration { 10 | @Inject 11 | private OpenIdProviderConfigurationApi confApi; 12 | 13 | public String getXrdsURL() { 14 | return confApi.getXrdsURL(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /openid-op/src/main/java/org/jboss/seam/security/examples/openid/DialoguePhaseListener.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.openid; 2 | 3 | import javax.enterprise.event.Observes; 4 | import javax.inject.Inject; 5 | import javax.servlet.ServletRequest; 6 | 7 | import org.jboss.seam.security.external.dialogues.api.DialogueManager; 8 | import org.jboss.seam.servlet.event.Initialized; 9 | import org.jboss.seam.servlet.http.RequestParam; 10 | 11 | public class DialoguePhaseListener { 12 | private static final long serialVersionUID = -3608798865478624561L; 13 | 14 | public final static String DIALOGUE_ID_PARAM = "dialogueId"; 15 | 16 | @Inject 17 | private DialogueManager manager; 18 | 19 | @Inject 20 | @RequestParam("dialogueId") 21 | private String dialogueId; 22 | 23 | public void requestInitialized(@Observes @Initialized final ServletRequest request) { 24 | if (dialogueId != null && !manager.isAttached()) { 25 | manager.attachDialogue(dialogueId); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /openid-op/src/main/java/org/jboss/seam/security/examples/openid/OpenIdProviderCustomizer.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.openid; 2 | 3 | import java.util.Properties; 4 | 5 | import javax.enterprise.event.Observes; 6 | import javax.inject.Inject; 7 | import javax.servlet.ServletContext; 8 | 9 | import org.jboss.seam.security.external.openid.api.OpenIdProviderConfigurationApi; 10 | import org.jboss.seam.servlet.event.Initialized; 11 | import org.jboss.seam.solder.resourceLoader.Resource; 12 | 13 | 14 | public class OpenIdProviderCustomizer { 15 | @Inject 16 | @Resource("openIdProviderCustomizer.properties") 17 | private Properties properties; 18 | 19 | public void servletInitialized(@Observes @Initialized final ServletContext context, OpenIdProviderConfigurationApi op) { 20 | 21 | PropertyReader propertyReader = new PropertyReader(properties); 22 | 23 | op.setHostName(propertyReader.getString("hostName", "www.openid-op.com")); 24 | op.setPort(propertyReader.getInt("port", 8080)); 25 | op.setProtocol(propertyReader.getString("protocol", "http")); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /openid-op/src/main/resources/META-INF/seam-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /openid-op/src/main/webapp/AuthenticationFailed.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 |

Authentication failed.

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /openid-op/src/main/webapp/Configuration.xhtml: -------------------------------------------------------------------------------- 1 | 5 | 6 |

Configuration

7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 | -------------------------------------------------------------------------------- /openid-op/src/main/webapp/Index.xhtml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /openid-op/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /openid-op/src/main/webapp/Menu.xhtml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | | 10 | | 11 | | 13 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /openid-op/src/main/webapp/PageTemplate.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /openid-op/src/main/webapp/SessionManagement.xhtml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 9 | 10 | 11 | 12 |

Session Info

13 | 14 |

Logged in user

15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 |
25 | -------------------------------------------------------------------------------- /openid-op/src/main/webapp/UserInfo.xhtml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 9 | 10 | 11 | 12 |

User info

13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 |
25 | -------------------------------------------------------------------------------- /openid-op/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | 12 | 13 | 14 | 16 | 17 | -------------------------------------------------------------------------------- /openid-op/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /openid-op/src/main/webapp/WEB-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /openid-op/src/main/webapp/WEB-INF/faces-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | openidop 9 | 10 | 11 | org.jboss.seam.security.examples.openid.DialogueAwareViewHandler 12 | 13 | 14 | 15 | /Login.xhtml 16 | 17 | #{login.login} 18 | LOCAL_LOGIN 19 | /SessionManagement.xhtml 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /openid-op/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | javax.faces.PROJECT_STAGE 9 | Development 10 | 11 | 12 | 13 | index.jsp 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /openid-op/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | Initial Redirect Page 4 | 5 | 6 | <% response.sendRedirect("Index.jsf"); %> 7 | 8 | 9 | -------------------------------------------------------------------------------- /openid-op/src/main/webapp/styles.css: -------------------------------------------------------------------------------- 1 | .page { 2 | width: 800px; 3 | margin-left: auto; 4 | margin-right: auto; 5 | } 6 | 7 | .menu { 8 | margin-top: 15px; 9 | height: 50px; 10 | background: #d5a5ac; 11 | padding: 5px; 12 | } 13 | 14 | .content { 15 | margin-top: 15px; 16 | top: 100px; 17 | margin-left: auto; 18 | margin-right: auto; 19 | background: white; 20 | padding: 5px; 21 | } 22 | 23 | .propertyName { 24 | padding: 5px; 25 | background-color: #aaaaaa; 26 | } 27 | 28 | .propertyValue { 29 | padding: 5px; 30 | background-color: #dddddd; 31 | } 32 | -------------------------------------------------------------------------------- /openid-op/src/test/resources-jbossas/jndi.properties: -------------------------------------------------------------------------------- 1 | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory 2 | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces 3 | java.naming.provider.url=jnp://localhost:1099 4 | -------------------------------------------------------------------------------- /openid-op/src/test/resources-jbossas/test-persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | java:/DefaultDS 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /openid-op/src/test/resources/arquillian.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 13 | 14 | 15 | 16 | 7070 17 | src/test/resources-glassfish-embedded/sun-resources.xml 18 | 19 | 20 | 21 | 22 | 23 | 8080 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /openid-op/src/test/resources/openIdProviderCustomizer.properties: -------------------------------------------------------------------------------- 1 | hostName=localhost -------------------------------------------------------------------------------- /openid-rp/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 5 | security-example-openid-rp-distribution 6 | 7 | zip 8 | 9 | ${project.build.finalName} 10 | 11 | 12 | ${project.basedir} 13 | true 14 | 15 | ${project.build.directory}/** 16 | .classpath 17 | .project 18 | .settings/** 19 | src/main/assembly/** 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /openid-rp/src/main/java/org/jboss/seam/security/examples/id_consumer/Configuration.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.id_consumer; 2 | 3 | import javax.enterprise.inject.Model; 4 | import javax.inject.Inject; 5 | 6 | import org.jboss.seam.security.external.openid.api.OpenIdRelyingPartyConfigurationApi; 7 | 8 | /** 9 | * This bean is used purely to provide information to the view layer 10 | */ 11 | @Model 12 | public class Configuration { 13 | @Inject 14 | private OpenIdRelyingPartyConfigurationApi confApi; 15 | 16 | public String getRealm() { 17 | return confApi.getRealm(); 18 | } 19 | 20 | public String getXrdsURL() { 21 | return confApi.getXrdsURL(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /openid-rp/src/main/java/org/jboss/seam/security/examples/id_consumer/OpenIdRelyingPartyCustomizer.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.security.examples.id_consumer; 2 | 3 | import java.util.Properties; 4 | 5 | import javax.enterprise.event.Observes; 6 | import javax.inject.Inject; 7 | import javax.servlet.ServletContext; 8 | 9 | import org.jboss.seam.security.external.openid.api.OpenIdRelyingPartyConfigurationApi; 10 | import org.jboss.solder.servlet.event.Initialized; 11 | import org.jboss.solder.resourceLoader.Resource; 12 | 13 | 14 | public class OpenIdRelyingPartyCustomizer { 15 | @Inject 16 | @Resource("openIdRelayingParty.properties") 17 | private Properties properties; 18 | 19 | public void servletInitialized(@Observes @Initialized final ServletContext context, OpenIdRelyingPartyConfigurationApi op) { 20 | 21 | PropertyReader propertyReader = new PropertyReader(properties); 22 | 23 | op.setHostName(propertyReader.getString("hostName", "www.openid-rp.com")); 24 | op.setPort(propertyReader.getInt("port", 8080)); 25 | op.setProtocol(propertyReader.getString("protocol", "http")); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /openid-rp/src/main/resources/META-INF/seam-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 20 | 21 | 24 | 25 | org.jboss.seam.security.external.openid.OpenIdRpInApplicationScopeProducer 26 | 27 | 28 | 29 | openIdAuthenticator 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /openid-rp/src/main/webapp/AuthenticationFailed.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 |

Authentication failed.

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /openid-rp/src/main/webapp/Configuration.xhtml: -------------------------------------------------------------------------------- 1 | 5 | 6 |

Configuration

7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 | -------------------------------------------------------------------------------- /openid-rp/src/main/webapp/Index.xhtml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /openid-rp/src/main/webapp/Login.xhtml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 |

Login

8 | 9 | 10 | Either choose a pre-configured OpenID provider: 11 | 12 | 13 | 14 | 15 | 16 | If you have selected the Custom OpenID provider, please provide a URL: 17 |

18 | 19 | 20 |
21 | 22 |
23 |
24 | -------------------------------------------------------------------------------- /openid-rp/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /openid-rp/src/main/webapp/Menu.xhtml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | | 10 | | 12 | | 13 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /openid-rp/src/main/webapp/PageTemplate.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /openid-rp/src/main/webapp/UserInfo.xhtml: -------------------------------------------------------------------------------- 1 | 6 | 10 | 11 | 12 |

User info

13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 |
25 | -------------------------------------------------------------------------------- /openid-rp/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /openid-rp/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /openid-rp/src/main/webapp/WEB-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /openid-rp/src/main/webapp/WEB-INF/faces-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | openidrp 9 | 10 | 11 | -------------------------------------------------------------------------------- /openid-rp/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | javax.faces.PROJECT_STAGE 9 | Development 10 | 11 | 12 | 13 | index.jsp 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /openid-rp/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | Initial Redirect Page 4 | 5 | 6 | <% response.sendRedirect("Index.jsf"); %> 7 | 8 | 9 | -------------------------------------------------------------------------------- /openid-rp/src/main/webapp/styles.css: -------------------------------------------------------------------------------- 1 | .page { 2 | width: 800px; 3 | margin-left: auto; 4 | margin-right: auto; 5 | } 6 | 7 | .menu { 8 | margin-top: 15px; 9 | height: 50px; 10 | background: #d5a5ac; 11 | padding: 5px; 12 | } 13 | 14 | .content { 15 | margin-top: 15px; 16 | top: 100px; 17 | margin-left: auto; 18 | margin-right: auto; 19 | background: white; 20 | padding: 5px; 21 | } 22 | 23 | .propertyName { 24 | padding: 5px; 25 | background-color: #aaaaaa; 26 | } 27 | 28 | .propertyValue { 29 | padding: 5px; 30 | background-color: #dddddd; 31 | } 32 | -------------------------------------------------------------------------------- /openid-rp/src/test/resources/ftest.properties: -------------------------------------------------------------------------------- 1 | myopenid.username= 2 | myopenid.password= 3 | google.username= 4 | google.password= 5 | yahoo.username= 6 | yahoo.password= 7 | -------------------------------------------------------------------------------- /princess-rescue/readme.txt: -------------------------------------------------------------------------------- 1 | To run the example with embedded jetty: 2 | 3 | mvn jetty:run -Pjetty 4 | 5 | Then navigate to: 6 | 7 | http://localhost:9090/princess-rescue/home.jsf 8 | 9 | To deploy the example to jbossas 7: 10 | 11 | export JBOSS_HOME=/path/to/jboss 12 | mvn arquillian:run -Pjavaee -Darquillian=jbossas-managed-7 13 | 14 | To deploy the example to jbossas 6: 15 | 16 | export JBOSS_HOME=/path/to/jboss 17 | mvn arquillian:run -Pjavaee -Darquillian=jbossas-managed-6 18 | 19 | To deploy the example to Glassfish: 20 | 21 | mvn arquillian:run -Pjavaee -Darquillian=glassfish-remote-3.1 22 | 23 | and then copy the resulting war to the Glassfish deploy directory. 24 | 25 | To run ftest following congigurations are supported: 26 | 27 | mvn clean verify -Pjavaee -Darquillian=jbossas-managed-7 28 | mvn clean verify -Pjavaee -Darquillian=jbossas-remote-7 29 | 30 | mvn clean verify -Pjavaee -Darquillian=jbossas-managed-6 31 | mvn clean verify -Pjavaee -Darquillian=jbossas-remote-6 32 | 33 | mvn clean verify -Pjavaee -Darquillian=glassfish-remote-3.1 34 | -------------------------------------------------------------------------------- /princess-rescue/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | config-princess-rescue-dist 7 | 8 | 9 | zip 10 | 11 | ${project.build.finalName} 12 | 13 | 14 | ${project.basedir} 15 | true 16 | 17 | ${project.build.directory}/** 18 | .classpath 19 | .project 20 | .settings/** 21 | gfembed*/** 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /princess-rescue/src/main/java/org/jboss/seam/examples/princessrescue/Room.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.seam.examples.princessrescue; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | @Retention(RetentionPolicy.RUNTIME) 23 | public @interface Room { 24 | String value(); 25 | } 26 | -------------------------------------------------------------------------------- /princess-rescue/src/main/java/org/jboss/seam/examples/princessrescue/RoomType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.seam.examples.princessrescue; 18 | 19 | public enum RoomType { 20 | NORMAL, MONSTER, GAMEOVER; 21 | } 22 | -------------------------------------------------------------------------------- /princess-rescue/src/main/java/org/jboss/seam/examples/princessrescue/ShootEffect.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.seam.examples.princessrescue; 18 | 19 | public enum ShootEffect { 20 | NOTHING, KILL, ANNOY; 21 | } 22 | -------------------------------------------------------------------------------- /princess-rescue/src/main/jbossas-resources/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | Faces Servlet 12 | javax.faces.webapp.FacesServlet 13 | 1 14 | 15 | 16 | 17 | 18 | Faces Servlet 19 | *.jsf 20 | 21 | 22 | 23 | 24 | 25 | facelets.DEVELOPMENT 26 | true 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /princess-rescue/src/main/resources/jetty-env.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | BeanManager 9 | 10 | 11 | javax.enterprise.inject.spi.BeanManager 12 | org.jboss.weld.resources.ManagerObjectFactory 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /princess-rescue/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /princess-rescue/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/princess-rescue/src/main/webapp/WEB-INF/beans.xml -------------------------------------------------------------------------------- /princess-rescue/src/main/webapp/WEB-INF/faces-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | -------------------------------------------------------------------------------- /princess-rescue/src/main/webapp/WEB-INF/jetty-env.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | BeanManager 9 | 10 | 11 | javax.enterprise.inject.spi.BeanManager 12 | org.jboss.weld.resources.ManagerObjectFactory 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /princess-rescue/src/main/webapp/WEB-INF/templates/default.xhtml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | Princess Rescue 8 | 9 | 10 | 11 | 12 |
13 |
14 | 15 | 16 | [Template content will be inserted here] 17 | 18 |
19 | 26 |
27 |
28 | 29 | -------------------------------------------------------------------------------- /princess-rescue/src/main/webapp/home.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 |

Welcome to Princess Rescue

9 | 10 |

The princess has been kidnaped by a dragon, and you are the only one who can save her. Armed only with your 11 | trusty bow you bravely head into the dragon's lair, who know what horrors you will encounter, some say the 12 | caves are even home to the dreaded Wumpus.

13 | 14 | 15 | 16 | 17 |
18 |
19 | -------------------------------------------------------------------------------- /princess-rescue/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <% response.sendRedirect("home.jsf"); %> 2 | -------------------------------------------------------------------------------- /princess-rescue/src/main/webapp/resources/css/screen.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | padding: 0; 4 | background-color: #EAECEE; 5 | font-family: Verdana, sans-serif; 6 | font-size: 0.9em; 7 | } 8 | 9 | #container { 10 | margin: 0 auto; 11 | padding: 0 20px 10px 20px; 12 | border: 1px solid #666666; 13 | width: 865px; /* subtract 40px from banner width for padding */ 14 | background: #FFFFFF url(#{request.contextPath}/resources/gfx/banner.png) no-repeat; 15 | padding-top: 110px; 16 | } 17 | 18 | #sidebar { 19 | font-size: 0.9em; 20 | width: 225px; 21 | float: right; 22 | border: 1px solid #666666; 23 | background: #EAECEE; 24 | padding: 0 15px 5px 15px; 25 | } 26 | 27 | #sidebar ul { 28 | padding-left: 30px; 29 | } 30 | 31 | #footer { 32 | clear: both; 33 | text-align: center; 34 | color: #666666; 35 | font-size: 0.85em; 36 | } 37 | 38 | code { 39 | font-size: 1.1em; 40 | } 41 | 42 | span.invalid { 43 | padding-left: 3px; 44 | color: red; 45 | } 46 | -------------------------------------------------------------------------------- /princess-rescue/src/main/webapp/resources/gfx/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/princess-rescue/src/main/webapp/resources/gfx/banner.png -------------------------------------------------------------------------------- /princess-rescue/src/main/webapp/resources/gfx/weld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/princess-rescue/src/main/webapp/resources/gfx/weld.png -------------------------------------------------------------------------------- /princess-rescue/src/test/resources/arquillian.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | -Xmx1024m -XX:MaxPermSize=512m 9 | 10 | 11 | 12 | 13 | false 14 | 15 | 16 | 17 | 18 | true 19 | target/selenium-server-output.log 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /quiz/readme.txt: -------------------------------------------------------------------------------- 1 | To run the example with embedded jetty: 2 | 3 | mvn jetty:run -Pjetty 4 | 5 | Then navigate to: 6 | 7 | http://localhost:8080/config-quiz/home.jsf 8 | 9 | To deploy the example to jbossas 7: 10 | 11 | export JBOSS_HOME=/path/to/jboss 12 | mvn clean package arquillian:run -Pjavaee -Darquillian=jbossas-managed-7 13 | 14 | To deploy the example to jbossas 6: 15 | 16 | export JBOSS_HOME=/path/to/jboss 17 | mvn clean package arquillian:run -Pjavaee -Darquillian=jbossas-managed-6 18 | 19 | To deploy the example to Glassfish: 20 | 21 | mvn clean package arquillian:run -Pjavaee -Darquillian=glassfish-remote-3.1 22 | 23 | and then copy the resulting war to the Glassfish deploy directory. 24 | 25 | To run ftest following congigurations are supported: 26 | 27 | mvn clean verify -Pjavaee -Darquillian=jbossas-managed-7 28 | mvn clean verify -Pjavaee -Darquillian=jbossas-remote-7 29 | 30 | mvn clean verify -Pjavaee -Darquillian=jbossas-managed-6 31 | mvn clean verify -Pjavaee -Darquillian=jbossas-remote-6 32 | 33 | mvn clean verify -Pjavaee -Darquillian=glassfish-remote-3.1 34 | -------------------------------------------------------------------------------- /quiz/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | config-quiz-dist 7 | 8 | 9 | zip 10 | 11 | ${project.build.finalName} 12 | 13 | 14 | ${project.basedir} 15 | true 16 | 17 | ${project.build.directory}/** 18 | .classpath 19 | .project 20 | .settings/** 21 | gfembed*/** 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /quiz/src/main/java/org/jboss/seam/examples/quiz/Answer.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.examples.quiz; 2 | 3 | import java.io.Serializable; 4 | 5 | /** 6 | * Representation of quiz answer configured by XML 7 | * 8 | * @author Tomas Remes 9 | * 10 | */ 11 | public class Answer implements Serializable { 12 | 13 | /** 14 | * 15 | */ 16 | private static final long serialVersionUID = -4175021231494836019L; 17 | private String answerText; 18 | private int id; 19 | private boolean isCorrect; 20 | 21 | /** 22 | * 23 | * @return answer id 24 | */ 25 | public int getId() { 26 | return id; 27 | } 28 | 29 | public void setId(int id) { 30 | this.id = id; 31 | } 32 | 33 | /** 34 | * 35 | * @return answer text 36 | */ 37 | public String getAnswerText() { 38 | return answerText; 39 | } 40 | 41 | public void setAnswerText(String answerText) { 42 | this.answerText = answerText; 43 | } 44 | 45 | /** 46 | * 47 | * @return true if current answer is right 48 | */ 49 | public boolean isCorrect() { 50 | return isCorrect; 51 | } 52 | 53 | public void setCorrect(boolean isCorrect) { 54 | this.isCorrect = isCorrect; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /quiz/src/main/java/org/jboss/seam/examples/quiz/Quiz.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.examples.quiz; 2 | 3 | /** 4 | * Quiz interface defines key methods. 5 | * 6 | * @author Tomas Remes 7 | * 8 | */ 9 | public interface Quiz { 10 | 11 | /** 12 | * Save action resolves question answer. 13 | */ 14 | public void saveQuestion(); 15 | 16 | /** 17 | * 18 | * @return actual score 19 | */ 20 | public int getScore(); 21 | 22 | /** 23 | * Next question action. 24 | */ 25 | public void nextQuestion(); 26 | 27 | /** 28 | * Resets score, questions and answers for new quiz. 29 | */ 30 | public void resetQuiz(); 31 | 32 | /** 33 | * 34 | * @return actual question 35 | */ 36 | public Question getActualQuestion(); 37 | 38 | } 39 | -------------------------------------------------------------------------------- /quiz/src/main/java/org/jboss/seam/examples/quiz/QuizManager.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.examples.quiz; 2 | 3 | import java.io.Serializable; 4 | 5 | /** 6 | * Managing quiz instances, which are configured by XML. 7 | * @author Tomas Remes 8 | * 9 | */ 10 | public class QuizManager implements Serializable { 11 | 12 | /** 13 | * 14 | */ 15 | private static final long serialVersionUID = -7683924919459973725L; 16 | 17 | private HistoricQuiz historicQuiz; 18 | 19 | private Quiz geographicQuiz; 20 | 21 | public HistoricQuiz getHistoricQuiz() { 22 | return historicQuiz; 23 | } 24 | 25 | public void setHistoricQuiz(HistoricQuiz historicQuiz) { 26 | this.historicQuiz = historicQuiz; 27 | } 28 | 29 | public Quiz getGeographicQuiz() { 30 | return geographicQuiz; 31 | } 32 | 33 | public void setGeographicQuiz(Quiz geographicQuiz) { 34 | this.geographicQuiz = geographicQuiz; 35 | } 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /quiz/src/main/java/org/jboss/seam/examples/quiz/QuizQualifier.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.examples.quiz; 2 | 3 | import java.lang.annotation.Retention; 4 | import java.lang.annotation.RetentionPolicy; 5 | 6 | @Retention(RetentionPolicy.RUNTIME) 7 | public @interface QuizQualifier { 8 | 9 | String value(); 10 | } 11 | -------------------------------------------------------------------------------- /quiz/src/main/jbossas-resources/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | Faces Servlet 12 | javax.faces.webapp.FacesServlet 13 | 1 14 | 15 | 16 | 17 | 18 | Faces Servlet 19 | *.jsf 20 | 21 | 22 | 23 | 24 | 25 | facelets.DEVELOPMENT 26 | true 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /quiz/src/main/resources/jetty-env.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | BeanManager 9 | 10 | 11 | javax.enterprise.inject.spi.BeanManager 12 | org.jboss.weld.resources.ManagerObjectFactory 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /quiz/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /quiz/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/quiz/src/main/webapp/WEB-INF/beans.xml -------------------------------------------------------------------------------- /quiz/src/main/webapp/WEB-INF/faces-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | configQuiz 9 | 10 | /geographicQuiz.xhtml 11 | 12 | 13 | #{quizManager.geographicQuiz.resetQuiz} 14 | #{true} 15 | /home.xhtml 16 | 17 | 18 | 19 | 20 | 21 | /historicQuiz.xhtml 22 | 23 | 24 | #{quizManager.historicQuiz.resetQuiz} 25 | #{true} 26 | /home.xhtml 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /quiz/src/main/webapp/WEB-INF/jetty-env.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | BeanManager 9 | 10 | 11 | javax.enterprise.inject.spi.BeanManager 12 | org.jboss.weld.resources.ManagerObjectFactory 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /quiz/src/main/webapp/WEB-INF/templates/default.xhtml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | Quiz example 10 | 11 | 12 | 13 | 14 |
15 |
16 | 17 |
18 | 25 |
26 |
27 |
28 | 29 | -------------------------------------------------------------------------------- /quiz/src/main/webapp/home.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 |

Quiz

10 |

Welcome to seam-config quiz example. You can run following quizzes and earn 10 points for every correct answer.

11 |

12 |
13 | 14 | 15 |

16 | 17 |
18 | 19 |
20 | -------------------------------------------------------------------------------- /quiz/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <% response.sendRedirect("home.jsf"); %> 2 | -------------------------------------------------------------------------------- /quiz/src/main/webapp/resources/css/screen.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | padding: 0; 4 | background-color: #EAECEE; 5 | font-family: Verdana, sans-serif; 6 | font-size: 0.9em; 7 | } 8 | 9 | #container { 10 | margin: 0 auto; 11 | padding: 0 20px 10px 20px; 12 | border: 1px solid #666666; 13 | width: 865px; /* subtract 40px from banner width for padding */ 14 | background: #FFFFFF url(#{request.contextPath}/resources/gfx/banner.png) no-repeat; 15 | padding-top: 110px; 16 | } 17 | 18 | #content input { 19 | margin:5px 0 10px 0; 20 | float:left; 21 | } 22 | 23 | label { 24 | text-align: left; 25 | width: auto; 26 | display: block; 27 | float: left; 28 | line-height: 14px; 29 | margin: 5px 0 0 10px; 30 | } 31 | #linkForm{ 32 | margin:10px 0 10px 0; 33 | 34 | } 35 | 36 | 37 | #sidebar { 38 | font-size: 0.9em; 39 | width: 225px; 40 | float: right; 41 | border: 1px solid #666666; 42 | background: #EAECEE; 43 | padding: 0 15px 5px 15px; 44 | } 45 | 46 | #sidebar ul { 47 | padding-left: 30px; 48 | } 49 | 50 | #footer { 51 | clear: both; 52 | text-align: center; 53 | color: #666666; 54 | font-size: 0.85em; 55 | } 56 | 57 | code { 58 | font-size: 1.1em; 59 | } 60 | 61 | span.invalid { 62 | padding-left: 3px; 63 | color: red; 64 | } 65 | -------------------------------------------------------------------------------- /quiz/src/main/webapp/resources/gfx/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/quiz/src/main/webapp/resources/gfx/banner.png -------------------------------------------------------------------------------- /quiz/src/main/webapp/resources/gfx/weld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/quiz/src/main/webapp/resources/gfx/weld.png -------------------------------------------------------------------------------- /quiz/src/test/resources/arquillian.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | -Xmx1024m -XX:MaxPermSize=512m 9 | 10 | 11 | 12 | 13 | false 14 | 15 | 16 | 17 | 18 | true 19 | target/selenium-server-output.log 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /simple/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 5 | security-example-simple-distribution 6 | 7 | zip 8 | 9 | ${project.build.finalName} 10 | 11 | 12 | ${project.basedir} 13 | true 14 | 15 | ${project.build.directory}/** 16 | .classpath 17 | .project 18 | .settings/** 19 | src/main/assembly/** 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /simple/src/main/webapp/META-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /simple/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /simple/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | Faces Servlet 13 | javax.faces.webapp.FacesServlet 14 | 1 15 | 16 | 17 | 18 | 19 | Faces Servlet 20 | *.jsf 21 | 22 | 23 | 24 | 25 | 26 | facelets.DEVELOPMENT 27 | true 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /simple/src/main/webapp/home.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 |

This example demonstrates how to implement a simple Authenticator

7 | 8 | 9 |
Currently logged in as: #{identity.user.id}
10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 |
23 | 24 |
25 | 26 | 27 |
28 | 29 |
30 | 31 |
32 | 33 |
34 | 35 |
36 | 37 | Tip: you can login with a username/password of demo/demo. 38 | 39 |
40 | 41 |
42 | 43 | 44 | -------------------------------------------------------------------------------- /simple/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /timeanddate/readme.txt: -------------------------------------------------------------------------------- 1 | DEPLOY 2 | ==================== 3 | For JBoss AS don't forget to set the JBOSS_HOME variable to your jboss installation 4 | Deploy to jbossas 7: 5 | --------------------- 6 | 7 | mvn clean package arquillian:run -Darquillian=jbossas-managed-7 8 | 9 | Deploy to jbossass 6: 10 | --------------------- 11 | 12 | mvn clean package arquillian:run -Darquillian=jbossas-managed-6 13 | 14 | Deploy to glassfish : 15 | --------------------- 16 | 17 | mvn clean package arquillian:run -Darquillian=glassfish-remote-3.1 18 | 19 | 20 | RUN FTEST 21 | ===================== 22 | You can run functional tests using following configurations: 23 | 24 | mvn clean verify -Darquillian=jbossas-managed-7 25 | mvn clean verify -Darquillian=jbossas-remote-7 26 | 27 | mvn clean verify -Darquillian=jbossas-managed-6 28 | mvn clean verify -Darquillian=jbossas-remote-6 29 | 30 | mvn clean verify -Darquillian=glassfish-remote-3.1 31 | -------------------------------------------------------------------------------- /timeanddate/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 5 | distsources 6 | 7 | zip 8 | 9 | ${project.build.finalName} 10 | 11 | 12 | ${project.basedir} 13 | true 14 | 15 | ${project.basedir}/src/** 16 | pom.xml 17 | 18 | 19 | ${project.build.directory}/** 20 | .classpath 21 | .project 22 | .settings/** 23 | src/main/assembly/** 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /timeanddate/src/main/java/org/jboss/seam/international/examples/timeanddate/converters/JdkDateTimeZoneToStringDateConverter.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.international.examples.timeanddate.converters; 2 | 3 | import java.text.DateFormat; 4 | import java.text.SimpleDateFormat; 5 | import java.util.Calendar; 6 | import java.util.Date; 7 | import java.util.TimeZone; 8 | 9 | import javax.faces.component.UIComponent; 10 | import javax.faces.context.FacesContext; 11 | import javax.faces.convert.Converter; 12 | 13 | import org.jboss.seam.international.examples.timeanddate.worldclock.AvailableTimeZonesBean; 14 | 15 | /** 16 | * Converter used to convert a java.util.TimeZone to a formatted date 17 | * 18 | * @author jose.freitas 19 | */ 20 | public class JdkDateTimeZoneToStringDateConverter implements Converter { 21 | 22 | @Override 23 | public Object getAsObject(FacesContext facesComponent, UIComponent uiComponent, String value) { 24 | // not going to be used for now 25 | return null; 26 | } 27 | 28 | @Override 29 | public String getAsString(FacesContext facesComponent, UIComponent uiComponent, Object object) { 30 | Date now = Calendar.getInstance((TimeZone) object).getTime(); 31 | DateFormat dfm = new SimpleDateFormat(AvailableTimeZonesBean.STANDARD_DATE_TIME_FORMAT); 32 | 33 | return dfm.format(now); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /timeanddate/src/main/java/org/jboss/seam/international/examples/timeanddate/converters/JodaDateTimeToStringDateConverter.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.international.examples.timeanddate.converters; 2 | 3 | import javax.faces.component.UIComponent; 4 | import javax.faces.context.FacesContext; 5 | import javax.faces.convert.Converter; 6 | 7 | import org.jboss.seam.international.examples.timeanddate.worldclock.AvailableTimeZonesBean; 8 | import org.joda.time.DateTime; 9 | import org.joda.time.format.DateTimeFormat; 10 | import org.joda.time.format.DateTimeFormatter; 11 | 12 | /** 13 | * Converter used to convert a Joda DateTime to a formatted date 14 | * 15 | * @author jose.freitas 16 | */ 17 | public class JodaDateTimeToStringDateConverter implements Converter { 18 | 19 | @Override 20 | public Object getAsObject(FacesContext facesComponent, UIComponent uiComponent, String value) { 21 | // not going to be used for now. 22 | return null; 23 | } 24 | 25 | @Override 26 | public String getAsString(FacesContext facesComponent, UIComponent uiComponent, Object object) { 27 | DateTimeFormatter fmt = DateTimeFormat.forPattern(AvailableTimeZonesBean.STANDARD_DATE_TIME_FORMAT); 28 | DateTime dateTime = (DateTime) object; 29 | 30 | return fmt.print(dateTime); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /timeanddate/src/main/java/org/jboss/seam/international/examples/timeanddate/locale/CustomLocaleConfiguration.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.international.examples.timeanddate.locale; 2 | 3 | import javax.annotation.PostConstruct; 4 | 5 | import org.jboss.seam.international.locale.LocaleConfiguration; 6 | 7 | /** 8 | * @author Marek Schmidt 9 | */ 10 | public class CustomLocaleConfiguration extends LocaleConfiguration { 11 | 12 | @PostConstruct 13 | public void setup() { 14 | 15 | addSupportedLocaleKey("en"); 16 | addSupportedLocaleKey("pt_BR"); 17 | 18 | } 19 | } -------------------------------------------------------------------------------- /timeanddate/src/main/java/org/jboss/seam/international/examples/timeanddate/locale/LocaleConverter.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.international.examples.timeanddate.locale; 2 | 3 | import java.util.List; 4 | import java.util.Locale; 5 | 6 | import javax.faces.component.UIComponent; 7 | import javax.faces.context.FacesContext; 8 | import javax.faces.convert.FacesConverter; 9 | import javax.faces.convert.Converter; 10 | import javax.inject.Inject; 11 | 12 | /** 13 | * Faces Converter for java.util.Locale 14 | * @author Marek Schmidt 15 | */ 16 | @FacesConverter("localeConverter") 17 | public class LocaleConverter implements Converter { 18 | 19 | @Inject 20 | List availableLocales; 21 | 22 | @Override 23 | public Object getAsObject(FacesContext arg0, UIComponent arg1, String localeString) { 24 | for (Locale locale : availableLocales) { 25 | if (locale.toString().equals(localeString)) { 26 | return locale; 27 | } 28 | } 29 | 30 | return null; 31 | } 32 | 33 | @Override 34 | public String getAsString(FacesContext arg0, UIComponent arg1, Object locale) { 35 | return locale.toString(); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /timeanddate/src/main/java/org/jboss/seam/international/examples/timeanddate/model/TimeZoneRegions.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.international.examples.timeanddate.model; 2 | 3 | import javax.inject.Named; 4 | 5 | /** 6 | * Enum for regions 7 | * 8 | * @author jose.freitas 9 | */ 10 | @Named 11 | public enum TimeZoneRegions { 12 | AFRICA("Africa"), 13 | AMERICA("America"), 14 | ASIA("Asia"), 15 | AUSTRALIA("Australia"), 16 | ATLANTIC("Atlantic"), 17 | EUROPE("Europe"), 18 | INDIAN("Indian"), 19 | PACIFIC("Pacific"); 20 | 21 | String region; 22 | 23 | TimeZoneRegions(String region) { 24 | this.region = region; 25 | } 26 | 27 | public String getRegion() { 28 | return region; 29 | } 30 | 31 | 32 | } 33 | -------------------------------------------------------------------------------- /timeanddate/src/main/resources/resources.properties: -------------------------------------------------------------------------------- 1 | title=Time And Date 2 | header.text=Seam International Example 3 | menu.home=home 4 | menu.worldsclock=worldsclock 5 | menu.selectlocale=Select locale 6 | welcome.text=This example application demonstrates several features of the Seam International module. 7 | default.time.zone=Default Time Zone 8 | table.worldsclock.title=World Clock with Seam 3 9 | table.worldsclock.column.zone=Zone 10 | table.worldsclock.column.hour=Hour 11 | message.localechange=You have changed your Locale to {0}. -------------------------------------------------------------------------------- /timeanddate/src/main/resources/resources_ja_JP.properties: -------------------------------------------------------------------------------- 1 | title=\u6642\u9593\u304A\u3088\u3073\u65E5\u4ED8 2 | header.text=Seam International Example 3 | menu.home=\u30DB\u30FC\u30E0 4 | menu.worldsclock=\u4E16\u754C\u6642\u8A08 5 | welcome.text=\u3053\u308C\u306F\u3001seam international\u306E\u4F7F\u7528\u6CD5\u306E\u3044\u304F\u3064\u304B\u3092\u793A\u3059\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u306E\u4F8B\u3067\u3059\u3002 6 | default.time.zone=\u30C7\u30D5\u30A9\u30EB\u30C8\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3 7 | table.worldsclock.title=\u4E16\u754C\u6642\u8A08 Seam3 8 | table.worldsclock.column.zone=\u5730\u57DF 9 | table.worldsclock.column.hour=\u6642\u523B 10 | -------------------------------------------------------------------------------- /timeanddate/src/main/resources/resources_pt_BR.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/timeanddate/src/main/resources/resources_pt_BR.properties -------------------------------------------------------------------------------- /timeanddate/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | -------------------------------------------------------------------------------- /timeanddate/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /timeanddate/src/main/webapp/WEB-INF/faces-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | resources 9 | resources 10 | 11 | 12 | 13 | Converter used to convert DateTime to a String date patterned in "HH:mm:ss MM/dd/YYYY" 14 | jodaDateTimeToStringDateConverter 15 | org.jboss.seam.international.examples.timeanddate.converters.JodaDateTimeToStringDateConverter 16 | 17 | 18 | 19 | Converter used to convert DateTimeZone to a String date patterned in "HH:mm:ss MM/dd/YYYY" 20 | jdkDateTimeZoneToStringDateConverter 21 | org.jboss.seam.international.examples.timeanddate.converters.JdkDateTimeZoneToStringDateConverter 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /timeanddate/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Seam International Time and date Example 4 | 5 | javax.faces.PROJECT_STAGE 6 | Development 7 | 8 | 9 | 15 10 | 11 | 12 | Faces Servlet 13 | javax.faces.webapp.FacesServlet 14 | 1 15 | 16 | 17 | index.xhtml 18 | 19 | 20 | Faces Servlet 21 | *.xhtml 22 | *.seam 23 | 24 | -------------------------------------------------------------------------------- /timeanddate/src/main/webapp/index.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 |
11 | 12 |
13 |
14 | 15 |
16 | -------------------------------------------------------------------------------- /timeanddate/src/test/resources/arquillian.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | -Xmx1024m -XX:MaxPermSize=512m 9 | 10 | 11 | 12 | 13 | false 14 | 15 | 16 | 17 | 18 | true 19 | target/selenium-server-output.log 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 5 | distsources 6 | 7 | zip 8 | 9 | ${project.build.finalName} 10 | 11 | 12 | ${project.basedir} 13 | true 14 | 15 | ${project.basedir}/src/** 16 | readme.md 17 | pom.xml 18 | 19 | 20 | ${project.build.directory}/** 21 | .classpath 22 | .project 23 | .settings/** 24 | src/main/assembly/** 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/java/org/jboss/seam/wicket/example/publish/qualifier/Articles.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.seam.wicket.example.publish.qualifier; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | import javax.inject.Qualifier; 25 | 26 | /** 27 | * @author oranheim 28 | */ 29 | @Qualifier 30 | @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) 31 | @Retention(RetentionPolicy.RUNTIME) 32 | public @interface Articles { 33 | 34 | } 35 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/java/org/jboss/seam/wicket/example/publish/qualifier/ConversationalDataRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.seam.wicket.example.publish.qualifier; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | import javax.inject.Qualifier; 25 | 26 | /** 27 | * @author oranheim 28 | */ 29 | @Qualifier 30 | @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) 31 | @Retention(RetentionPolicy.RUNTIME) 32 | public @interface ConversationalDataRepository { 33 | } 34 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/java/org/jboss/seam/wicket/example/publish/qualifier/DataRepository.java: -------------------------------------------------------------------------------- 1 | package org.jboss.seam.wicket.example.publish.qualifier; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | import javax.inject.Qualifier; 9 | 10 | /** 11 | * @author oranheim 12 | */ 13 | @Qualifier 14 | @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) 15 | @Retention(RetentionPolicy.RUNTIME) 16 | public @interface DataRepository { 17 | } 18 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/java/org/jboss/seam/wicket/example/publish/qualifier/Links.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.seam.wicket.example.publish.qualifier; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | import javax.inject.Qualifier; 25 | 26 | /** 27 | * @author oranheim 28 | */ 29 | @Qualifier 30 | @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) 31 | @Retention(RetentionPolicy.RUNTIME) 32 | public @interface Links { 33 | 34 | } 35 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/java/org/jboss/seam/wicket/example/publish/qualifier/Sessions.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.seam.wicket.example.publish.qualifier; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | import javax.inject.Qualifier; 25 | 26 | /** 27 | * @author oranheim 28 | */ 29 | @Qualifier 30 | @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) 31 | @Retention(RetentionPolicy.RUNTIME) 32 | public @interface Sessions { 33 | 34 | } 35 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.appender.Stdout=org.apache.log4j.ConsoleAppender 2 | log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout 3 | #log4j.appender.Stdout.layout.conversionPattern=%-5p - %-26.26c{1} - %m\n 4 | #log4j.appender.Stdout.layout.conversionPattern=%d{HH:mm:ss,SSS} %-5p [%-26.26c{1}] %m\n 5 | log4j.appender.Stdout.layout.conversionPattern=%d{HH:mm:ss,SSS} %-5p [%c{1}] %m\n 6 | log4j.rootLogger=INFO,Stdout 7 | log4j.logger.eris.services=DEBUG 8 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/resources/nopxx.properties: -------------------------------------------------------------------------------- 1 | java.naming.factory.initial=bitronix.tm.jndi.BitronixInitialContextFactory 2 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/scala/org/jboss/seam/wicket/example/publish/scala/model/Session.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.seam.wicket.example.publish.scala.bean 18 | 19 | import scala.reflect.BeanProperty 20 | import java.util.Date 21 | 22 | /** 23 | * @author oranheim 24 | */ 25 | @serializable 26 | class Session { 27 | 28 | @BeanProperty 29 | var id: String = _ 30 | 31 | @BeanProperty 32 | var createdOn: Date = _ 33 | 34 | } -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/scala/org/jboss/seam/wicket/example/publish/scala/page/AdminPage.html: -------------------------------------------------------------------------------- 1 | 3 | 4 |
5 |
6 |

Administration

7 |
8 | 9 |
10 |
11 | [tabbed panel will be here] 12 |
13 |
14 |
15 | 16 |
17 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/scala/org/jboss/seam/wicket/example/publish/scala/page/ArticleTab.html: -------------------------------------------------------------------------------- 1 | 3 | 4 |
5 | 6 |
7 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/scala/org/jboss/seam/wicket/example/publish/scala/page/BasePage.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.seam.wicket.example.publish.scala.page 18 | 19 | import org.apache.wicket.markup.html.WebPage 20 | import org.apache.wicket.markup.html.link.BookmarkablePageLink 21 | import org.jboss.seam.wicket.example.publish.scala.wicket._ 22 | 23 | /** 24 | * @author oranheim 25 | */ 26 | class BasePage extends WebPage { 27 | 28 | add(new BookmarkablePageLink[HomePage]("Home", classOf[HomePage])) 29 | add(new BookmarkablePageLink[AdminPage]("Admin", classOf[AdminPage])) 30 | 31 | } 32 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/scala/org/jboss/seam/wicket/example/publish/scala/page/HomePage.html: -------------------------------------------------------------------------------- 1 | 3 | 4 |
5 |
6 |

7 | 8 |

9 |
10 | 11 |
12 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/scala/org/jboss/seam/wicket/example/publish/scala/page/SessionsListPanel.html: -------------------------------------------------------------------------------- 1 | 3 | 4 |
5 |
6 | 7 | 10 | 11 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
Http Sessions caputured by the 8 | HttpSession observer 9 |
Session IdCreated On
[Some ID][Some Date]
27 |
28 |
29 | 30 |
31 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/scala/org/jboss/seam/wicket/example/publish/scala/page/SessionsTab.html: -------------------------------------------------------------------------------- 1 | 3 | 4 |
5 | 6 |
7 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/META-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 10 | 11 | 24 | 25 | 26 | org.jboss.seam.wicket.example.publish.scala.bootstrap.ApplicationInitializer 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_flat_15_cd0a0a_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_flat_15_cd0a0a_40x100.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_glass_50_3baae3_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_glass_50_3baae3_1x400.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-icons_2694e8_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-icons_2694e8_256x240.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-icons_3d80b3_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-icons_3d80b3_256x240.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-icons_72a7cf_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-icons_72a7cf_256x240.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-icons_ffffff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/cupertino/images/ui-icons_ffffff_256x240.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/images/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/images/banner.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/images/banner2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/images/banner2.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/images/buttons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/images/buttons.gif -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/images/toolbar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/images/toolbar.gif -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/images/weld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/images/weld.png -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/tabs/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/tabs/bg.gif -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/tabs/left.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/tabs/left.gif -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/tabs/left_on.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/tabs/left_on.gif -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/tabs/right.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/tabs/right.gif -------------------------------------------------------------------------------- /wicket-scala-publish/src/main/webapp/stylesheet/tabs/right_on.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seam/examples/0649f68efaa81acc48ec17c3e7c99759fa852334/wicket-scala-publish/src/main/webapp/stylesheet/tabs/right_on.gif -------------------------------------------------------------------------------- /wicket-scala-publish/src/test/resources-jbossas/jndi.properties: -------------------------------------------------------------------------------- 1 | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory 2 | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces 3 | java.naming.provider.url=jnp://localhost:1099 4 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/test/resources-jbossas/test-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | weld-scala-publish-wicket-test 9 | 10 | 11 | Wicket Filter 12 | org.apache.wicket.protocol.http.WicketFilter 13 | 14 | applicationClassName 15 | org.jboss.seam.wicket.example.publish.bootstrap.HomePageApplication 16 | 17 | 18 | 19 | 20 | Wicket Filter 21 | /* 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/test/resources-jetty/test-jetty-env.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | BeanManager 10 | 11 | 12 | javax.enterprise.inject.spi.BeanManager 13 | org.jboss.weld.resources.ManagerObjectFactory 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/test/resources/arquillian.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 7 | 8 | target/ 9 | 10 | 11 | 12 | 9090 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/test/resources/ftests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/test/resources/test-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 10 | 11 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /wicket-scala-publish/src/test/resources/test-jetty-env.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | BeanManager 10 | 11 | 12 | javax.enterprise.inject.spi.BeanManager 13 | org.jboss.weld.resources.ManagerObjectFactory 14 | 15 | 16 | 17 | 18 | 19 | 20 | --------------------------------------------------------------------------------