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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:55:13+00:00 2026-06-10T05:55:13+00:00

i have a requirement where a state dropdown populates the city. so i used

  • 0

i have a requirement where a state dropdown populates the city. so i used autosubmit on the statedropdown & a valuechangeListener to refersh the city dropdown using partial triggers, since i want my values on the client side i have used the valuepassthru on the state dropdown but this prevents my valluechange listener from being called.

If i set the valuepassthru attibute to false the valuechange listener is called but i need the valuepassthru to be set to true to access the value at client side javascript.

My binded object on the state is a string and the options are list of selectItems so i thought this could be a issue and used a custome converter but that didnt work either

Any thoughts on what could be reason for not triggering the valuechangelistener with autosubmit and valuepassthrough=true? any help on this is highly appreciated

I am using trinidad componets for the dropdown and Jsf1.1
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-06-10T05:55:14+00:00Added an answer on June 10, 2026 at 5:55 am

    Do you only need the selected value, or do you need to access all values? If you only need the selected value you can add some Javascript in your bean’s value change listener:

    FacesContext context = FacesContext.getCurrentInstance();
    ExtendedRenderKitService erks = Service.getRenderKitService(
      context
    , ExtendedRenderKitService.class
    );
    String jsValue = StringEscapeUtils.escapeJavaScript(value);
    erks.addScript(context, "alert('"+ jsValue +"');");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a requirement to store the present state of application using UIApplicationWillTerminateNotification and
I have a requirement to add conditional disabled & class attributes to a dropdown
I have a requirement where I can use JS Fiddle dropdown to populate States
I have the requirement where I do need to change the System.State field of
For an app I'm building, a requirement is to have the state subtly visible
I have one dropdown box inside the item template. As per of my requirement
I have a NetworkStream which I read asynchronously (using async/await) await Task<int>.Factory.FromAsync((cb, state) =>
I have a requirement for SEO purposes where I need to route by State
I have few tables like Country,state city which has static data. User do not
I have requirement where some times I would like to load children as well

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.