myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mathias.werl...@daimlerchrysler.com
Subject Antwort: RE: New Component
Date Mon, 04 Jul 2005 09:15:37 GMT
If you output only HTML then you can use HtmlSelectManyListbox.

If it's posssible to use only methods provided by UISelectMany, then use 
the superclass instead. But you have to make sure that the Listbox 
renderer is used by the component.

mpetrakovsky@tecnonexo.com schrieb am 01.07.2005 13:58:16:

> 
> I define this Class... but I have a dude...
> The two list inside of this Class... must be HtmlSelectManyListBox or
> UISelectMany ?
> 
> 
> public class HtmlShuttleList extends UIPanel {
> 
>     public static final String SHUTTLE_LIST_FAMILY = "SLFAMILY";
> 
>     HtmlSelectManyListbox validList;
> 
>     HtmlSelectManyListbox selectedList;
> 
>     HtmlCommandButton addButton, addAllButton, removeButton,
> removeAllButton;
> 
> --
> Mariano G. Petrakovsky
> Programmer · Software Factory
> AXG Tecnonexo -  www.tecnonexo.com
> 
> Development facilities:Av. Maipú 1252 8º (C1006ACT) · Buenos Aires ·
> Argentina.
> Tel.: (54-11) 4878-0005 - Fax: (54-11) 4878-0065.
> 
> Headquarters: 1604 Spring Hill Road, Suite 160 Vienna · VA 22182 · USA.
> Tel.: (202) 986-7541 - Fax: (202) 787-3891.
> 
> 
> · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
· · · · · · · 
· ·
> · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
· · · · · · · 
· ·
> · · · ·
> 
> 
> -----Mensaje original-----
> De: news [mailto:news@sea.gmane.org]En nombre de Werner Punz
> Enviado el: Viernes, 01 de Julio de 2005 13:34
> Para: users@myfaces.apache.org
> Asunto: Re: New Component
> 
> 
> Hi Mariano, the best way to do this is to find a component which does
> most of the wanted functionality and then write a child class of the
> tag, the renderer and the component (if needed)
> 
> You can use UIComponent as a base, but you will save lots of work if you
> start with a more high level approach (Most components derive from
> something higher than UIComponent or UIInput)
> 
> For the ShuttleList a Panel or a Div might be a good starting point as a
> base because you need some kind of Panel Functionality anway.
> 
> Werner
> 
> 
> 
> Mariano Petrakovsky wrote:
> > After long time, I'm decide to create a custom component. :P
> >
> > I want to do a component like ShuttleList of ADF, Two 
SelectManyListBox,
> > four CommandButtons (Add, Add All, Remove, Remove All). The elements
> inside
> > Lists can move together Lists.
> >
> > My cuestion is... can extends an existent UIComponent to do this or... 
I
> > extends of UIComponent Class :(?
> > How think is the better mode to do this component? :)
> > Thanxs!!!
> >
> >
> 
> 
> 
> 

Mime
View raw message