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

  • Home
  • SEARCH
  • 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 8438407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:42:25+00:00 2026-06-10T07:42:25+00:00

I am using PrimeFaces 3.2 with JSF 2 in a glassfish 3.1.2. I have

  • 0

I am using PrimeFaces 3.2 with JSF 2 in a glassfish 3.1.2.

I have a <p:dataTable> which displays search results containing information on different issues (the issues are assigned to users).
If somebody clicks on the icon of the assigned user a <p:dialog> pops up.
The user icon and the according dialog are implemented using a composite.
Inside the composite I am using some jQuery functions which need a unique ID for each dialog component – I am not able to find a way to solve this problem.

My investigations so far:

I need to set the widgetVar attribute, which works fine as long as I have only one user in the list but it seems that inside a dataTable the widgetVar is not unique for many composites.
Since the user can be displayed more than one time inside the search result, I am not able to setup an widgetVar like this:

<ui:param name="myWidgetVar" value="widget_#{user.id}" />

and use it this way

<p:dialog widgetVar="#{myWidgetVar}">

also using #{cc.id} does not resolve the problem ’cause it only returns the id of the widget without the naming-container part which is always the same.

I need the complete id as displayed in html (e.g.: form:jdt123:dialog:456) – how can I get this?

Does anyone know what to do?

Thanks Pete

  • 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-10T07:42:26+00:00Added an answer on June 10, 2026 at 7:42 am

    My solution is using #{cc.clientId} which I did not know yet.
    This gives me the complete html element id constisting of the series of identifiers glued with the UINamingContainer#getSeparatorChar (e.g.: form:jdt123:dialog:jdt456)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Primefaces 3.2 with jsf 2 and glassfish 3.1.2. I have a
I have an application developed using Primefaces 2.2.1 and JSF 2.0, deployed on Glassfish
I'm using JSF 2 and PrimeFaces 2.1 on GlassFish. I have a page that
I recently migrated my JSF app(using primefaces) from glassfish 3.1 to tomcat7 server. Previously
I'm using Primefaces 3.3.1 and have question. I have p:commandButton inside p:column of p:dataTable.
We are using Primefaces 3M4 and one of our pages has a p:dataTable which
I have a problem using JSF 2.0, PrimeFaces and the tuckey.org UrlRewriteFilter. The problem
I tried this example using Primefaces-3.3.1, JSF 2.1, Glassfish 3.1.2 and IntelliJ IDEA 11.1.3
I am trying to create a datatable using JSF primefaces. I know there is
I am using JSF 2.0 and PrimeFaces 2.2.1. In my template.xhtml, I have a

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.