jsf 1.2 - Iterating over a list in JSF 1.2 -
is there way of iterating on list in jsf 1.2 without using third party components? know can using tomahawk. know can done using jstl, keeping last resort. cannot use <ui:repeat>
since using jsf 1.2. there elegant way <ui:repeat>
in jsf 1.2?
the jsf 1.2 component can iterate on list
<h:datatable>
.
in jsp, other "standard" (i.e. not "3rd party") tag can iterate on list
jstl <c:foreach>
. using jstl shouldn't harm if list
you'd iterate on available during view build time. you'll run trouble when it's available during view render time, example because it's been nested in <h:datatable>
, should iterating on property of table's var
. won't work due reasons mentioned in jstl in jsf2 facelets... makes sense?
there no other ways without using 3rd party library such tomahawk's <t:datalist>
, unless you're open reinventing wheel creating custom uicomponent
yourself. not trivial job.
it's possible integrate facelets 1.x in jsf 1.2. guide described in facelets 1.x docbook. going quite of work if have existing jsf application using jsp view technology; you'd need convert jsp facelets. it'll in end make upgrade path jsf 2.x easier. see a.o. migrating jsf 1.2 jsf 2.0 , why facelets preferred on jsp view definition language jsf2.0 onwards?
Comments
Post a Comment