myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mamallan Uthaman <mamallan.utha...@oracle.com>
Subject Re: Is it possible to set width for label of a tr:panelLabelAndMessage ?
Date Wed, 19 Aug 2009 18:54:00 GMT
Hi Ikiris,

You can set the label width using <tr:panelFormLayout>. Please find my 
example below

<tr:panelFormLayout labelWidth="40%">
   <tr:panelLabelAndMessage label="Label 1">
       <tr:inputText />
   </tr:panelLabelAndMessage>
</tr:panelFormLayout>

Thanks
Mamallan

PS: If you want to try label width in pixels, just set labelWidth=200 
instead of labelWidth=200px.



IKiris@pershing.com wrote:
>
> Is it possible to set width for label of a tr:panelLabelAndMessage ?
>
>
>
> I would like to use skins if possible.
>
> I looked at    http://myfaces.apache.org/trinidad/skin-selectors.html
>
> But I don't see a selector for label of panelLabelAndMessage .
>
> I tried couple of things, which did not work.
>
>
>
>
> I also tried setting inlineStyle on a outputLabel as following. But 
> the width seems to be ignored;
>
> <tr:panelLabelAndMessage>
>   <tr:panelGroupLayout layout=/"horizontal"/>
>           <tr:outputLabel value=/"IBD # :"/ 
> inlineStyle=/"width:800px"/></tr:outputLabel>
>         <tr:inputText value="#{bfeSearchCriteria.ibdNum}" 
> required=/"false"/>
>                 <tr:validateRegExp 
> pattern=/"(\s)*((\w)(\w)(\w))((\s)*(,)(\s)*((\w)(\w)(\w)))*(\s)*"/
>                                   messageDetailNoMatch=/"IBD# can be 3 
> alpha numeric characters([0-9][a-z][A-Z][_])"//>
>          </tr:inputText>
>          <f:facet name=/"help"/>
>                      <tr:outputText value=/"Enter your 3 digit IBD 
> Number"//>
>          </f:facet>
>          <f:facet name=/"end"/>
>                      <tr:outputText value=/"(Enter multiple, separated 
> by comma)"/ inlineStyle=/"font-size: x-small;"//>
>          </f:facet>
>   </tr:panelGroupLayout>
> </tr:panelLabelAndMessage>
>
> Regards,
> ________________________
> Ilker Kiris
>
> ******************************************************
> IMPORTANT: Any information contained in this communication is intended 
> for the use of the named individual or entity. All information 
> contained in this communication is not intended or construed as an 
> offer, solicitation, or a recommendation to purchase any security. 
> Advice, suggestions or views presented in this communication are not 
> necessarily those of Pershing LLC nor do they warrant a complete or 
> accurate statement.
>
> If you are not an intended party to this communication, please notify 
> the sender and delete/destroy any and all copies of this 
> communication. Unintended recipients shall not review, reproduce, 
> disseminate nor disclose any information contained in this 
> communication. Pershing LLC reserves the right to monitor and retain 
> all incoming and outgoing communications as permitted by applicable law.
>
> Email communications may contain viruses or other defects. Pershing 
> LLC does not accept liability nor does it warrant that email 
> communications are virus or defect free.
> ******************************************************

Mime
View raw message