If you using Maven this is easy( if you don't I recommend you look on it, NetBeans 6.7 has great Maven support ).
Simply add such dependency:
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-ui</artifactId>
<version>3.3.1.GA</version>
</dependency>
<dependency>
<groupId>org.icefaces</groupId>
<artifactId>icefaces</artifactId>
<version>1.8.1</version>
</dependency>
Also you need add JBoss repository to main pom.
<repository>
<id>jboss-repository</id>
<name>jboss repository</name>
<url>http://repository.jboss.com/maven2/
</url>
</repository>
And all work fine in NetBeans.