You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by janw <ja...@gmx.de> on 2006/08/18 14:11:14 UTC

Popup over Datascroller arrows

Hello,

is it possible to show a popup over a datascroller arrow?
I tried this, but the result was that there was no "arrow first" rendered.

    <h:panelGrid>
      <t:dataScroller ...>
        <t:popup id="popup_datascroller_first" styleClass="popup"
          ...>
          <f:facet name="first">
            <t:graphicImage url="images/arrow-first.gif" border="1" />
          </f:facet>
          <f:facet name="popup">
            <h:outputText
              value="Go to first page" />
          </f:facet>
      </t:popup>
      ...

-- 
View this message in context: http://www.nabble.com/Popup-over-Datascroller-arrows-tf2126867.html#a5868562
Sent from the MyFaces - Users forum at Nabble.com.


Re: Popup over Datascroller arrows

Posted by Mike Kienenberger <mk...@gmail.com>.
Unfortunately, the facets have to be on the dataScroller, not a child
of dataScroller.
Furthermore, the children of such facets have to be UIGraphic components.

You can either submit patches to support alternate behavior, or you
can ignore the facets and design your own button layout directly in
DataScroller.  I don't know if the facets really add all that much
behavior other than performing specific actions.

Personally, I'd like to see the facets redesigned to support
components other than graphicImages.  That would be the course I'd
recommend if you have time to work on patches.

On 8/18/06, janw <ja...@gmx.de> wrote:
>
> Hello,
>
> is it possible to show a popup over a datascroller arrow?
> I tried this, but the result was that there was no "arrow first" rendered.
>
>     <h:panelGrid>
>       <t:dataScroller ...>
>         <t:popup id="popup_datascroller_first" styleClass="popup"
>           ...>
>           <f:facet name="first">
>             <t:graphicImage url="images/arrow-first.gif" border="1" />
>           </f:facet>
>           <f:facet name="popup">
>             <h:outputText
>               value="Go to first page" />
>           </f:facet>
>       </t:popup>
>       ...
>
> --
> View this message in context: http://www.nabble.com/Popup-over-Datascroller-arrows-tf2126867.html#a5868562
> Sent from the MyFaces - Users forum at Nabble.com.
>
>