myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: [INFO] new sandbox slideShow component - ImageLoop
Date Fri, 02 Feb 2007 12:01:34 GMT
One question,

why does a page developer have to add all these buttons to let a user
work nicely with the slide show?

        <s:imageLoop id="imageloop" forceId="true" delay="1000"
minDelay="200" maxDelay="4000" transitionTime="500" width="200"
height="200">
          <s:imageLoopItem url="images/imageloop1.png"/>
          <s:imageLoopItems value="#{imageLoopBean.imageCollection}"/>
          <s:imageLoopItems value="#{imageLoopBean.imageArray}"/>
        </s:imageLoop>
        <t:commandButton onclick="getImageLoop('imageloop').start();
return false" value="Start"/>
        <t:commandButton onclick="getImageLoop('imageloop').stop();
return false" value="Stop"/>
        <t:commandButton onclick="getImageLoop('imageloop').back();
return false" value="Back"/>
        <t:commandButton onclick="getImageLoop('imageloop').forward();
return false" value="Next"/>
        <t:commandButton
onclick="getImageLoop('imageloop').accelerate(); return false"
value="+"/>
        <t:commandButton
onclick="getImageLoop('imageloop').decelerate(); return false"
value="-"/>
        <t:commandButton onclick="getImageLoop('imageloop').reset();
return false" value="Reset"/>

        <t:commandButton
onclick="getImageLoop('imageloop').setImageIndex(0); return false"
value="1"/>
        <t:commandButton
onclick="getImageLoop('imageloop').setImageIndex(1); return false"
value="2"/>
        <t:commandButton
onclick="getImageLoop('imageloop').setImageIndex(2); return false"
value="3"/>




Isn't it a good idea that we give it to the component to rendered them ?
and providing attributes to disable (or just not render) them ?

thx

On 2/2/07, Matthias Wessendorf <matzew@apache.org> wrote:
> looks nice!
>
> thx felix
>
> On 2/2/07, Gerald Müllan <gmuellan@apache.org> wrote:
> > Hi,
> >
> > there is a new very nice slideShow component in sandbox, called ImageLoop.
> > It is - one more time - a conversion of a dojo widget.
> >
> > Many thanks to Felix Röthenbacher for contributing this to MyFaces.
> >
> > If anyone is interested in a live-example:
> >
> > http://example.irian.at/example-sandbox-20070202/imageloop.jsf
> >
> > cheers,
> >
> > Gerald
> >
> > --
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
>
>
> --
> Matthias Wessendorf
> http://tinyurl.com/fmywh
>
> further stuff:
> blog: http://jroller.com/page/mwessendorf
> mail: mwessendorf-at-gmail-dot-com
>


-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Mime
View raw message