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 8709339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:20:37+00:00 2026-06-13T04:20:37+00:00

I use JSF and PrimeFaces and I try to modify render by changing or

  • 0

I use JSF and PrimeFaces and I try to modify render by changing or adding some CSS lines.

I added my CSS file named “styles.css” to my .xhtml page and it’s loaded after those of PrimeFaces so I can override default values.

PrimeFaces create a div in my page :

<div id="j_idt13:universe" class="ui-selectonemenu ui-widget ui-state-default ui-corner-all ui-helper-clearfix" style="width: 86px;">
....
</div>

I’m trying to change 86px size to 100% so in my styles.css I added :

#j_idt13:universe{
    width: 100%;    
}

but it doesn’t work…With Firebug when I inspect source code, my #j_idt13:universe doesn’t appear anywhere…

I can change some CSS by accessing class selector(.class) but not with id selector (#id).

In my case, how can I change 86px to 100% please ?

Thanks

Olivier

  • 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-06-13T04:20:38+00:00Added an answer on June 13, 2026 at 4:20 am

    The colon : is a special character in CSS selectors representing the start of a pseudo selector. If you want to represent the colon literally as part of the element ID or class name, then you have to escape it using \.

    #j_idt13\:universe {
    
    }
    

    Note that this doesn’t work in IE6/7. You’d need to use \3A instead (with a trailing space).

    #j_idt13\3A universe {
    
    }
    

    Also note that this will fail when you add another JSF component to the view, because j_idt13 is an autogenerated ID depending on the component’s position in the view, not a fixed ID. Rather give the parent UINamingContainer component a fixed ID, or better, give the target component a style class, so that you can just use the class selector.

    See also:

    • How to use JSF generated HTML element ID with colon ":" in CSS selectors?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use primefaces 3.3 with JSF 2. When I try to
I use Spring 3.2 and Spring-security 3.1 along with jsf + primefaces and hibernate4
I use Hibernate, Spring and JSF (Primefaces) in my project. I want to create
I am new with Primefaces and I try to use a treeTable from Primefaces
I use Primefaces 3.1, JSF 2.1.6 on Glassfish 3.1.1. I have loads of commandbuttons
I need to use jQuery and jQuery UI in JSF template pages, however, Primefaces
I have a (JSF 2.0/ Primefaces 2.2RC-SNAPSHOT) app that has <p:layout> I use a
In our organization, we'd like to use JSF 2.0, Primefaces and Spring Webflow on
I use the simple File upload of Primefaces in development with Netbeans. My test
Can I use jsf component libraries(primefaces) with spring mvc .I have problem with client

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.