Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3939038
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:15:13+00:00 2026-05-20T00:15:13+00:00

Look the following code <h:selectManyCheckbox layout=pageDirection styleClass=pressReviewTable> <f:selectItems value=#{theme.articles} var=prArt itemLabel=#{prArt.prLabel} itemValue=#{prArt.id} itemLabelEscaped=false/> </h:selectManyCheckbox>

  • 0

Look the following code

<h:selectManyCheckbox layout="pageDirection" styleClass="pressReviewTable">
 <f:selectItems value="#{theme.articles}" var="prArt" itemLabel="#{prArt.prLabel}" itemValue="#{prArt.id}" itemLabelEscaped="false"/>
</h:selectManyCheckbox>

I try to put some html on on the itemLabel like a <b> but i have the following error:

The value of attribute “itemLabel”
associated with an element type
“f:selectItems” must not contain the
‘<‘ character.

I find a trick to put directly in #{prArt.prLabel} the html but i’m not satisfied with that. I use mojarra and primefaces.

I want to do something like :

<f:selectItems value="#{theme.articles}" var="prArt" itemLabel="<b>#{prArt.value1}</b> : <font>#{prArt.value2}</font>" itemValue="#{prArt.id}" itemLabelEscaped="false"/>

What’s the other way? If there…

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T00:15:13+00:00Added an answer on May 20, 2026 at 12:15 am

    Since each item label get printed as <label> in HTML, you can just use CSS

    <h:selectManyCheckbox styleClass="foo">
    

    with

    .foo label { font-weight: bold; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Pls look at following code <select name=VideoType id=VideoType style=width:60px> <option value=All>All</option> <option value=Movie>Movie</option> <option
Look at the following code: for(var j = 0; j <= 12; j++) {
take a look at the following code var a = new View(); a =
Take a look at the following code: Number.prototype.isIn = function () { for (var
please have a look at the following code. When the value of i ==
Please have a look on the following code - var abc_text = Hello; var
Take a look at the following code: method TMakerRect.Clone: TMakerObject; var newRect:TMakerRect; begin newRect
Look at the following code: ECHO A2 MKDIR -v /tmp/My Batch Script File Assignment
Please look at the following code: char* test ( ) { char word[20]; printf
having a look at the following code: CCSprite* testsprite = [CCSprite spriteWithFile:@test.png]; CCLOG(@1. count:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.