Hi Darren,
can you add these infos somewhere into our wiki ?
-M
On 6/29/07, Jeanne Waldman <[EMAIL PROTECTED]> wrote:
Hi Darren
I wanted to add a little bit of detail.
You can see in the trinidad-skins.xml in the demo bundle how you can add
a resource bundle name:
<skin>
<id>
purple.desktop
</id>
<family>
purple
</family>
<render-kit-id>
org.apache.myfaces.trinidad.desktop
</render-kit-id>
<style-sheet-name>
skins/purple/purpleSkin.css
</style-sheet-name>
<bundle-name>
org.apache.myfaces.trinidaddemo.resource.SkinBundle
</bundle-name>
</skin>
And the resource bundle code looks like this:
package org.apache.myfaces.trinidaddemo.resource;
import java.util.ListResourceBundle;
public class SkinBundle extends ListResourceBundle
{
@Override
public Object[][] getContents()
{
return _CONTENTS;
}
static private final Object[][] _CONTENTS =
{
{"af_tableSelectMany.SELECT_COLUMN_HEADER", "Select A Lot"},
{"af_tableSelectOne.SELECT_COLUMN_HEADER", "Select Just One"},
};
}
Simon Lessard wrote:
> Hello Darren
>
> The issue I filled was about error messages mainly. Shuttle labels are
> controlled by the skin's resource bundle. I already tried a vote to
> remove that feature, but as Adam rightfully answered me, we need that
> feature to set title and shortDesc of icons for screenreaders or in
> case the image become unavailable for example.
>
> Anyway, you can change those labels by setting a resource bundle in
> your skin definition. Then redefine they key with an empty value and
> you'll get rid of the "Move" and "Move all" labels. You can find the
> right bundle keys in SelectManyShuttleRenderer file in trinidad-implt
> project. For reference, the keys are:
>
> SHUTTLE_NO_ITEMS_FEEDBACK
> SHUTTLE_NO_ITEM_SELECTED_FEEDBACK
> af_selectManyShuttle.DESCRIPTION_LABEL
> af_selectManyShuttle.MOVE_ALL_TIP
> af_selectManyShuttle.MOVE_TIP
> af_selectManyShuttle.REMOVE_ALL_TIP
> af_selectManyShuttle.REMOVE_TIP
> af_selectManyShuttle.MOVE_ALL
> af_selectManyShuttle.MOVE
> af_selectManyShuttle.REMOVE_ALL
> af_selectManyShuttle.REMOVE
>
>
> Regards,
>
> ~ Simon
>
> On 6/29/07, *Darren McEntee* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Is there anything with the skin selectors attributes, that can
> alter this, that you know of?
>
> Thanks,
> Darren.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>] On
> Behalf Of Matthias Wessendorf
> Sent: 29 June 2007 10:49
> To: MyFaces Discussion
> Subject: Re: [Trinidad] skin-selectors
>
> I would expect the Button ontop of the string,
> but looks like it renders
>
> <a ...> button</a>
> <a ... > text </a>
> ...
>
> -M
>
> On 6/29/07, Darren McEntee <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >
> >
> >
> > Thanks Matthias,
> >
> > Looks like I'll have to stick to what I have.
> >
> >
> >
> > Is it possible to do something like this?:
> >
> >
> >
> > -
> >
>
http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/HowTo_1.gif
> >
> > -
> >
>
http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/HowTo_3.jpg
> >
> >
> >
> > i.e. icon above/below these message bundled Strings?
> >
> >
> >
> > Thanks,
> >
> > Darren.
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> [mailto: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>] On
> Behalf Of
> > Matthias Wessendorf
> > Sent: 29 June 2007 10:06
> > To: MyFaces Discussion
> > Subject: Re: [Trinidad] skin-selectors
> >
> >
> >
> >
> > Darren,
> >
> >
> >
> > there was an issue, filed by Simon, to enable customization of
> >
> > MessageBundle Strings:
> >
> > https://issues.apache.org/jira/browse/ADFFACES-417
> >
> >
> >
> > The move, moveall,... are defined in CoreBundle file, and AFAIK it's
> >
> > not possible to customize the Strings.
> >
> >
> >
> > When you look at the English CoreBundle file, you'll notice, that
> >
> > there are entries like
> >
> > <!--Link text for moving all the items-->
> >
> > <resource key="af_selectManyShuttle.MOVE_ALL">Move
> > All</resource>
> >
> > <resource key="af_selectOrderShuttle.MOVE_ALL">Move
> > All</resource>
> >
> > <!--Link text for moving selected items-->
> >
> > <resource key="af_selectManyShuttle.MOVE">Move</resource>
> >
> > <resource
> > key="af_selectOrderShuttle.MOVE">Move</resource>
> >
> > <!--Link text for removing all the items-->
> >
> > <resource key="af_selectManyShuttle.REMOVE_ALL">Remove
> > All</resource>
> >
> > <resource key="af_selectOrderShuttle.REMOVE_ALL">Remove
> > All</resource>
> >
> > <!--Link text for removing selected items-->
> >
> > <resource
> > key="af_selectManyShuttle.REMOVE">Remove</resource>
> >
> > <resource
> > key="af_selectOrderShuttle.REMOVE">Remove</resource>
> >
> >
> >
> >
> >
> > -Matthias
> >
> >
> >
> > On 6/29/07, Darren McEntee <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > > Thanks for the reply Peter,
> >
> > >
> >
> > > Here is the current state of my component:
> >
> > >
> >
> > >
> >
> > >
> >
> > > http://www.traxmusic.org/work/selectManyShuttle.png
> >
> > >
> >
> > >
> >
> > >
> >
> > > But I would like to customise the wording of the "move", "move
> All" etc...
> >
> > >
> >
> > > Is that possible? Or have the text above or below each icon,
> to make it
> >
> > > align properly.
> >
> > >
> >
> > >
> >
> > >
> >
> > > Any suggestions?
> >
> > >
> >
> > >
> >
> > >
> >
> > > Thanks,
> >
> > >
> >
> > > Darren.
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > > -----Original Message-----
> >
> > > From: Petr Kotek [mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>]
> >
> > > Sent: 28 June 2007 19:22
> >
> > > To: MyFaces Discussion
> >
> > > Subject: Re: [Trinidad] skin-selectors
> >
> > >
> >
> > >
> >
> > >
> >
> > > Hi Darren,
> >
> > >
> >
> > >
> >
> > >
> >
> > > there is my skin for selectManyShuttle:
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
>
-------------------------------------------------------------------------------------------
> >
> > >
> >
> > >
> >
> > >
> >
> > > /* tr:selectManyShuttle Component
> >
> > > -------------------------------- */
> >
> > >
> >
> > > /* Style Selectors
> >
> > > ............................................... */
> >
> > >
> >
> > >
> >
> > >
> >
> > > .OraShuttleHeader {
> >
> > >
> >
> > > padding: 0px 0px 0px 0px;
> >
> > >
> >
> > > font-size: 100%;
> >
> > >
> >
> > > }
> >
> > >
> >
> > >
> >
> > >
> >
> > > af|selectManyShuttle td {
> >
> > >
> >
> > > vertical-align: middle;
> >
> > >
> >
> > > }
> >
> > >
> >
> > >
> >
> > >
> >
> > > af|selectManyShuttle .OraLink {
> >
> > >
> >
> > > display: none;
> >
> > >
> >
> > > }
> >
> > >
> >
> > >
> >
> > >
> >
> > > af|selectManyShuttle::box-content {
> >
> > >
> >
> > > padding: 1px 0px 0px 0px;
> >
> > >
> >
> > > margin: 0px -1px 0px 0px;
> >
> > >
> >
> > > }
> >
> > >
> >
> > >
> >
> > >
> >
> > > /* Repair of missing cellspacing in table */
> >
> > >
> >
> > > af|selectManyShuttle::box-content table {
> >
> > >
> >
> > > border-spacing: 0px;
> >
> > >
> >
> > > }
> >
> > >
> >
> > > /* Repair of new line char in tag span, which add right margin */
> >
> > >
> >
> > > af|selectManyListbox {
> >
> > >
> >
> > > display: block;
> >
> > >
> >
> > > }
> >
> > >
> >
> > >
> >
> > >
> >
> > > @agent ie {
> >
> > >
> >
> > > .OraShuttleHeader {
> >
> > >
> >
> > > padding: 2px 0px 0px 0px;
> >
> > >
> >
> > > }
> >
> > >
> >
> > > af|selectManyShuttle::box-content {
> >
> > >
> >
> > > padding: 0px 0px 0px 0px;
> >
> > >
> >
> > > margin: -2px;
> >
> > >
> >
> > > }
> >
> > >
> >
> > > }
> >
> > >
> >
> > >
> >
> > >
> >
> > > /* Icon Selectors
> >
> > > ................................................ */
> >
> > >
> >
> > >
> >
> > >
> >
> > > af|selectManyShuttle::move-all-icon {
> >
> > >
> >
> > > content: url(images/crcBtnArrowRight2.gif);
> >
> > >
> >
> > > width: 22px;
> >
> > >
> >
> > > height: 20px;
> >
> > >
> >
> > > }
> >
> > >
> >
> > >
> >
> > >
> >
> > > af|selectManyShuttle::move-icon {
> >
> > >
> >
> > > content: url(images/crcBtnArrowRight.gif);
> >
> > >
> >
> > > width: 22px;
> >
> > >
> >
> > > height: 20px;
> >
> > >
> >
> > > }
> >
> > >
> >
> > >
> >
> > >
> >
> > > af|selectManyShuttle::remove-icon {
> >
> > >
> >
> > > content: url(images/crcBtnArrowLeft.gif);
> >
> > >
> >
> > > width: 22px;
> >
> > >
> >
> > > height: 20px;
> >
> > >
> >
> > > }
> >
> > >
> >
> > >
> >
> > >
> >
> > > af|selectManyShuttle::remove-all-icon {
> >
> > >
> >
> > > content: url(images/crcBtnArrowLeft2.gif);
> >
> > >
> >
> > > width: 22px;
> >
> > >
> >
> > > height: 20px;
> >
> > >
> >
> > > }
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
>
-------------------------------------------------------------------------------------------
> >
> > >
> >
> > > Directory structure is:
> >
> > >
> >
> > >
> >
> > >
> >
> > > .../WEB_INF
> >
> > >
> >
> > > .../css/images - there are gifs
> >
> > >
> >
> > >
> >
> > >
> >
> > > Skin CSS file is in .../css directory.
> >
> > >
> >
> > >
> >
> > >
> >
> > > Regards,
> >
> > >
> >
> > > Peter
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > > Darren McEntee wrote:
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > Hi, can anyone shed some light on skinning a section of the
> >
> > >
> >
> > > > tr:selectManyShuttle...
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > I'm trying to skin it differently, and I have added some
> icons: move,
> >
> > >
> >
> > > > moveAll, remove and removeAll icons to the component.
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > But its turns out like the image attached.
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > My skin.css:
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > /* --- selectManyShuttle data icon rendering (User
> Administration) ---
> > */
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > af|selectManyShuttle::move-icon{content:
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > url(/skins/bgskin/images/move.gif);}
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > af|selectManyShuttle::move-all-icon{content:
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > url(/skins/bgskin/images/moveAll.gif);}
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > af|selectManyShuttle::remove-icon{content:
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > url(/skins/bgskin/images/remove.gif);}
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > af|selectManyShuttle::remove-all-icon{content:
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > url(/skins/bgskin/images/removeAll.gif);}
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > Is it possible to change the text on specific components
> like this
> >
> > >
> >
> > > > one? Or even just have the icons on their own, as it
> currently does
> >
> > >
> >
> > > > not align correctly?
> >
> > >
> >
> > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > Thanks,
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > Darren.
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > -----Original Message-----
> >
> > >
> >
> > > > From: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>] On
> Behalf
> >
> > >
> >
> > > > Of Matthias Wessendorf
> >
> > >
> >
> > > > Sent: 28 June 2007 16:58
> >
> > >
> >
> > > > To: MyFaces Discussion
> >
> > >
> >
> > > > Subject: Re: [Trinidad] skin-selectors
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > ****** This Message Originated From The Internet Please Be
> Aware Of
> >
> > >
> >
> > > > Suspicious Attachments And Content ******
> >
> > >
> >
> > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > myfaces.apache.org/trinidad/skin-selectors.html
> <http://myfaces.apache.org/trinidad/skin-selectors.html>
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > On 6/28/07, Darren McEntee <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > Is there an alternative to this page for skin selectors as
> it's a 404.
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > > http://incubator.apache.org/adffaces/skin-selectors.html
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > Thanks,
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > Darren.
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > P Please consider the environment before printing this email
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > > _________________________________________________________
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > 1. The information contained in this E-mail, including any
> files
> >
> > >
> >
> > > > transmitted
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > with it, is confidential and may be legally privileged.
> This E-mail is
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > intended only for the personal attention of the stated
> addressee(s).
> > Any
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > access to this E-mail, including any files transmitted
> with it, by
> >
> > >
> >
> > > > any other
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > person is unauthorised. If you are not an addressee, you
> must not
> >
> > >
> >
> > > > disclose,
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > copy, circulate or in any other way use or rely on the
> information
> >
> > >
> >
> > > > contained
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > in this E-mail or any files transmitted with it. Such
> unauthorised
> >
> > >
> >
> > > > use may
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > be unlawful. If you have received this E-mail in error,
> please inform
> >
> > > the
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > sender immediately and delete it and all copies from your
> system. You
> >
> > > may
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > not forward this E-mail without the permission of the sender.
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > 2. The views expressed in this E-mail are those of the
> author, and do
> >
> > > not
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > necessarily represent the views of AMT-SYBEX. Internet
> communications
> >
> > > are
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > not secure and AMT-SYBEX cannot, therefore, accept legal
> >
> > >
> >
> > > > responsibility for
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > the contents of this message nor for any damage caused by
> viruses.
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > AMT-SYBEX Limited is a UK company, registration number
> GB03036807 at
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > address The Spirella Building, Bridge Road, Letchworth,
> SG6 4ET.
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > AMT-SYBEX (NI) Limited is a UK company, registration
> number NI024104
> > at
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > > For more information on the AMT-SYBEX Group visit
> >
> > >
> >
> > > > http://www.amt-sybex.com
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > > _________________________________________________________
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > --
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > Matthias Wessendorf
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > further stuff:
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > blog: http://matthiaswessendorf.wordpress.com/
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > mail: matzew-at-apache-dot-org
> >
> > >
> >
> > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > P Please consider the environment before printing this email
> >
> > >
> >
> > > >
> >
> > >
> >
> > >
> >
> > >
> >
> > > --
> >
> > >
> >
> > >
> >
> > >
> >
> > > Petr Kotek
> >
> > >
> >
> > > CRC Data spol. s r.o.
> >
> > >
> >
> > > U krc(ské vodárny 26 - vývojové pracovište(
> >
> > >
> >
> > > 140 00 Praha 4
> >
> > >
> >
> > > tel: +420 241 442 464
> >
> > >
> >
> > > fax: +420 241 442 645
> >
> > >
> >
> > > GSM: +420 602 339 057
> >
> > >
> >
> > > www.crcdata.cz <http://www.crcdata.cz>
> >
> >
> >
> >
> >
> > --
> >
> > Matthias Wessendorf
> >
> >
> >
> > further stuff:
> >
> > blog: http://matthiaswessendorf.wordpress.com/
> <http://matthiaswessendorf.wordpress.com/>
> >
> > mail: matzew-at-apache-dot-org
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> mail: matzew-at-apache-dot-org
>
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org