I want to display list from the ArrayList on the JSF page. I have used JSTL c:forEach to display the data.
The applicaiton is of 2 screens. On the first screen user selects a product from drop down and on second page, the corresponding versions of the products are displayed with the help of JSTL. The second page has hyperlink to go back to first page, if user wants to change the selected product.
The application runs fine for the first iteration. However, from second iteration onwards, (when user goes back to first page from second page) it displays the versions of the old product. When the data is printed in log from the backend bean, it displays the updated records. Somewhere the data is getting cached in c:forEach. Does any one knows any solution to this?
JSTL should be an option of last resort when using JSF. It doesn't always mesh well with the JSF infrastructure and it violates a fundamental tenet of the JSF philosophy: keeping the Controller logic and View (JSF page) separate from each other.
Got idle CPU cycles? Join the war on COVID-19 by donating them to find the coronavirus' weak spots. folding@home Runs in the background. https://foldingathome.org
posted 11 years ago
The list needs to be shown in the bulleted format. Is there any way that i can use any JSF component to do this? If not, then i have to use outputText and form the bullted list in StringBuffer and then set it to the outputText.
Being formating of the content is the part of view, i dont want it to be part of backend bean. Hence i opted for the JSTL.
However, if i dont have any option, then i have to build this UI logic in the backend bean and dispay the content using JSF component - outputText.