cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Tooltips in Woody
Date Fri, 24 Oct 2003 13:54:40 GMT
Hi all,

I just added tooltip support in Woody (needed that quickly for my 
project). For this, you just need to add a <wd:hint> in the widget 
definition.

Example (from the updated "Various" sample):
  <wd:booleanfield id="somebool">
    <wd:label>Put me <em>on</em> or <em>off</em>.</wd:label>
    <wd:hint>Yes, you can click!</wd:hint>
  </wd:booleanfield>

The styling stylesheets put this hint into a "title" attribute on the 
various inputs. However, I encountered some difficulties with IE: this 
attribute is not displayed on dropdown menus and lists (i.e. the 
<select> element) whereas Mozilla displays it cleanly. Any hint on this?

I also made provision for a <wd:help> element meant to produce a more 
detailed help using a popup window. But the corresponding styling is not 
yet implemented.

Enjoy,
Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com




Mime
View raw message