سؤال

I would like the index page to show a list of products directly, say top 10 newest or something. How do I do this? How do I get JSF to run a method in a backingbean on a GET request and display the results?

هل كانت مفيدة؟

المحلول

Create a request/session scoped bean, make the @PostConstruct update the properties with the data you want to show, access the properties from the JSF.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top