Hi Jon,
AFAIK Trinidad does not support server-side rendered buttons.The documentation has not been updated I think.

-- Abhi

On 7/13/07, Jon Bitmead <jon.bitmead@lon.ac.uk> wrote:
Hi,

I am trying to construct a trinidad skin which uses server side buttons.
Having looked at the lists I am unsure whether this feature has been
removed since ADF Faces. Documentation seems to suggest it hasn't been,
although I cannot get trinidad to render anything but an HTML button.

Is there an example app about which uses these types of buttons?

Here are my files in a basic application I created for testing this
problem (all files are in the correct places and respond to changes)


----------- /shared/skins/small/small2.css ----------
.AFDarkForeground:alias {color:#900000;}
.AFDarkBackground:alias {background-color:#333333;}

.AFButtonServerText:alias { font-weight: bold; background-color:
#ecf1f2; -ora-text-antialias: true}
.AFButtonServerTextDisabled:alias { font-weight: normal; color: gray;
background-color: #ecf1f2; -ora-text-antialias: true}

.AFButtonStartIcon:alias { content: url(images/button/blaf2bns.gif);  }
.AFButtonEndIcon:alias   { content: url(images/button/blaf2bne.gif);  }
.AFButtonTopBackgroundIcon:alias {   content:
url(images/button/blaf2bnt.gif); }
.AFButtonBottomBackgroundIcon:alias {  content:
url(images/button/blaf2bnb.gif); }

af|body { margin: 0px; font-size: 18pt;  }


----------/WEB-INF/trinidad-skins.xml--------
<?xml version=" 1.0" encoding="UTF-8"?>
<skins xmlns="http://myfaces.apache.org/trinidad/skin">
  <skin>
    <id>small.desktop</id>
    <family>small</family>
    <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
    <style-sheet-name>shared/skins/small/small2.css</style-sheet-name>

  </skin>
</skins>

--------/WEB-INF/trinidad-config.xml--------------
<?xml version="1.0" encoding="UTF-8"?>
<trinidad-config xmlns=" http://myfaces.apache.org/trinidad/config">
  <!-- Enable debug output -->
<debug-output>false</debug-output>

  <!-- Pick accessibility options based on a per-user managed bean -->
<accessibility-mode>default</accessibility-mode>
<output-mode>default</output-mode>
  <skin-family>small</skin-family>

</trinidad-config>

----------/WEB-INF/faces- config.xml---------
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE faces-config PUBLIC
  "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
  " http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

<faces-config>
   <application>
      <locale-config>
            <default-locale>en_gb</default-locale>
      </locale-config>
      <default-render-kit-id>
          org.apache.myfaces.trinidad.core
      </default-render-kit-id>
    </application>


<!-- Global navigation -->
  <navigation-rule>
      <from-view-id>/*</from-view-id
  </navigation-rule>

</faces-config>

---------/WEB-INF/web.xml------------

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd ">
    <distributable />
    <!-- Faces params -->

    <context-param>
        <param-name>javax.faces.CONFIG_FILES</param-name>
        <param-value>

        </param-value>
    </context-param>
    <context-param>
        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
        <param-value>.jspx</param-value>
    </context-param>

    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
    </context-param>

    <filter>
        <filter-name>Trinidad Filter</filter-name>

<filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
    </filter>



    <filter-mapping>
        <filter-name>Trinidad Filter</filter-name>
        <servlet-name>Faces Servlet</servlet-name>

    </filter-mapping>

    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
        <servlet-name>resources</servlet-name>

<servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
    </servlet>


    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>resources</servlet-name>
        <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>

    <welcome-file-list>
        <welcome-file>
            index.jsf
        </welcome-file>
    </welcome-file-list>
</web-app>


--------------
Thanks!

Jon Bitmead
University of London