incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Danny Robinson" <>
Subject Popup Component for Contribution
Date Wed, 29 Nov 2006 21:01:59 GMT
Guys, <>

As a learning exercise on how Trinidad components are built, I've pulled
together a popup component and implemented it as a 'panelPopup' in
Trinidad.  If there's interest, then I'd be happy to contribute this to

In posts over the last few months there was support (Simon, Adam, etc.) for
a popup component in Trinidad to perform functions such as a lightweight
date picker.  With guidance from Matthias , I've posted code and demo below,
and created an enhancement request for a popup component here :

While it's not totally finished (IE & firefox tested only), it does have
provide some useful functionality for simple popups.  It is similar in
functionality to the other panels, in that you can include any child
components and provides a number of skinning selectors (see below) for you
to customize.  It also optionally allows you to specify a title and close
facets.  Long term I want to add iframe/dialog functionality.

Screenshot (with embedded tr:chooseDate) :

Demo WAR:
Download the code :



  <f:facet name="control">
    <tr:outputText value="Popup Menu" />
  <tr:panelGroupLayout layout="vertical">
  <tr:commandLink text="here" immediate="true"></tr:commandLink>
  <tr:commandLink text="there" immediate="true"></tr:commandLink>
  <tr:commandLink text="anywhere" immediate="true"></tr:commandLink>
  <tr:commandLink text="somewhere" immediate="true"></tr:commandLink>

<trc:panelPopup position="center">
  <f:facet name="control">
    <tr:outputText value="Centered Test" />
    <tr:outputText value="This popup should be centered on screen" />

  <f:facet name="control">
    <tr:outputText value="Title - Closer" />
  <f:facet name="title">
    <tr:outputText value="This is a title" />
  <f:facet name="close">
    <tr:icon name="closePopupIcon"></tr:icon>
    <tr:outputText value="Title test content, no closer" />

panelPopup Skin Selectors
af|panelPopup::container {
    border: 1px solid #0c479d;
    background-color: #FFFFFF;

af|panelPopup::titlebar {
    background-color: #0c479d;
    color: #FFFFFF;
    padding: 2px 2px 2px 2px;

af|panelPopup::title-text {
    text-align: left;

af|panelPopup::close-icon {
    text-align: right;

af|panelPopup::content {
    padding: 2px 2px 2px 2px;

Outstanding Items
 Currently have to add the following to <tr:document>
<!-- TODO - Not sure how to get this automatically included by Trinidad -->
<f:facet name="metaContainer">
    <script language="JavaScript"

Chordiant Software Inc.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message