Priti Tiwary wrote:
> Hi,
> few qs related to factories
>
> 1) I can see that several factories in rave and sun package have
> almost the same code. what decides when to use rave:components and
> when to use sun:components ?
These are 2 different component sets that are supported by
JSFTemplating. If you're using rave (Creator) components, then use
rave:... if you're using Sun's components (i.e. Lockhart), you should
use "sun:".
> 2) i need javax.faces.component.UIData component , where to declare
> component/factory mapping? previously we had componentTypes.xml file
> to declare this mappings..what is the analogous place now.?
Do you have a factory? In order to do the mapping, you'll have to map
it to some factory. The factory can have an @annotation that defines
the mapping. See the other factories. If you want, you can add a
factory to the JSFTemplating project for this class... you can add it
under the "basic" package (com.sun.jsftemplating.component.factory.basic).
I hope this helps!
Ken
>
> Priti