Hi Tobago,

I have a little problem filling a UIMenu (I took a look at the mailing list
and no one had the problem) : I've tried this:


     *public* UIMenu getPhoneMenu() {

           *return* phoneMenu;

     }





     *public* *void* setPhoneMenu(UIMenu phoneMenu) {

           PhoneNumber number = *super*.getThroughEl( "phone", PhoneNumber.
*class* );

           *this*.phoneMenu = phoneMenu;

           phoneMenu.setId( "phoneTypes" );

           phoneMenu.getAttributes().*put*( "image", "image/phone_types/"+
number.getType() +".PNG" );

           *for*( PhoneType type : PhoneType.*values*() ) {

                 UICommand command = *new* UICommand();

                 phoneMenu.getChildren().*add*( command );

                 Map<String, Object> attributes = command.getAttributes();

                 attributes.*put*( "image", "image/phone_types/"+ type +".
PNG" );

                 attributes.*put*( "label", type.toString().toLowerCase()
);

           }

     }


It doesn't work, it seems UIMenu has in its attributes Map the list of
the Command ids it contains...
Are the factories used to interpret the jsf structure designed to be used by
third parties? Or there another solution for creating my UIMenu

Regards,

--
Zied Hamdi

Reply via email to