You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Alberto Molpeceres <al...@gmail.com> on 2006/01/04 18:41:45 UTC

List of available images in inputHTML component

Hi Sylvain and everyone,

I'm again the guy who wanted to develop some image gallery
functionality on inputHTML editor. I've been working offsite for a few
weeks, but now I want to finish it. Today I've been updating my copy
of MyFaces.

Well, if we want to use Kupu's image library (and I wnat to), I have
to create an XML file with the content of the gallery. Here there are
to posibilities: a map with image content, or simply read the content
of a folder given as attribute to inputHTML tag. I like this second
option, altough the first one is appealing too.

Well, the I need to write this file to a temp file or to generate it
on the fly upon request using the resource extension filter. Could you
help me with this?. I mean, could you say me which options makes more
sense to you?. And if using a the extension filter, could you explain
me how it works or how it should work?.

Any Idea or tip?.

  al.

On 11/14/05, Sylvain Vieujot <sv...@apache.org> wrote:
>  I don't like this external config file.
>  I think the proper way of doing this is to overload the Kupu method that
> configures the images library box.
>
>  So, we could pass to the inputHtml tag a Map containing images URLs as Key,
> and Images descriptions as held Objects.
>
>  What do you think ?
>
>  Sylvain.
>