Thanks, i'll give it a try. Forgot how easy it was to create custom function with facelets
En l'instant précis du 12/19/06 16:35, David Chandler s'exprimait dans toute sa noblesse: > In facelets, you can create an EL function to do this. > > See > https://facelets.dev.java.net/nonav/docs/dev/docbook.html#taglib-function > > /dmc > > On 12/19/06, David Delbecq <[EMAIL PROTECTED]> wrote: >> Hello, >> >> i'd like, in jsf to print a statement like this: >> >> You have #{someBean.someArray.size} item(s) just before a facelets >> c:forEach. >> >> example: >> You have 28 item(s): item1, item2, item3, ... (get full list of items) >> >> While i can do the partial iteration without problem, i am wondering how >> to the array size (Or in more general, any collection size) >> I'd like to avoid creation of a method someBean.getSomeArraySize() as >> it's seems to me it's like doing double work (getSommeArray returns and >> array and getSommeArray returns information present in Array) >> > >

