Hi
As far as I can tell you can't to it out-of-the-box as a styleClass
would apply to all records feteched in the element.
However, if you can live with a bit slower solution, you could use
this easy hack:
Instead of using <db:select /> tag use the built-in
(String)currentRow_TABLENAME.get("COLUMNNAME") and with iteration,
copy the values into a String[]
The you write
<select>
<% for (i = 0; i < s.length; i ++) {
if ((s[i].equals("blabla")||s[i].equals("blabla2")) {
%>
<option style="background: #ffffff;" value="<%= s[i] %>">s[i]</option>
<% } else { %>
<option style="background: #ffaacc;" value="<%= s[i] %>">s[i]</option>
<% } } %>
</select>
Instead of using (String)currentRow_TABLENAME.get("COLUMNNAME") you
could naturally also write your own class for it, grabbing DBForms'
connection something like this:
Connection conn = null;
try { conn = DbFormsConfigRegistry.instance().lookup().getConnection(); }
catch (IllegalArgumentException iae) { LOG.error(iae); }
catch (Exception e) { LOG.error(e); }
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms