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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:44:17+00:00 2026-06-16T19:44:17+00:00

i have created datatable with four selectOneMenu in it whenever i change the first

  • 0

i have created datatable with four selectOneMenu in it
whenever i change the first selectOneMenu values of second selectOneMenu need to be populated on the same row and again on the selection of second selectOneMenu third needs to populate
i had done this by passing row number value to each selectOneMenu (with intention which particular selectOneMenu user must has clicked on) but whenever i pass the value with f:param i am getting null value on the controller but same can be printed with outputText on datatable

please guide

<t:dataTable id="insertTaskDataTable" border="1"
                value="#{insertTask.taskList}" var="taskInfo" rowIndexVar="row"  
                iterationStatusVar="it">
                <t:column>
                <h:inputHidden  id="id" value="#{row}"/>
                </t:column>                 
            <t:column>
                <f:facet name="header">#{bundle['GROUP_HEADER']}</f:facet>
                <h:selectOneMenu id="taskGroup" value="#{taskInfo.groupList.comboValue}" onchange="document.getElementById('addTask:filterButton').click();">
                    <f:param  name="idTaskGroup" value="#{row}"/>
                    <t:outputText  name="id" value="#{row}"/>
                     <f:selectItems value="#{taskInfo.groupList.comboValues}" />
                </h:selectOneMenu>

            </t:column>
            <t:column>
                <f:facet  name="header">#{bundle['ACTIVITY_HEADER']}</f:facet>
                <h:selectOneMenu id="taskActivity" value="#{taskInfo.activityList.comboValue}">
                <f:ajax  render="taskSubActivity" listener="#{insertTask.handleActivityChange}"></f:ajax>   
                <f:selectItems value="#{taskInfo.activityList.comboValues}" />
                </h:selectOneMenu>

            </t:column>
            <t:column>
                <f:facet name="header">#{bundle['SUBACTIVITY_HEADER']}</f:facet>
                <h:selectOneMenu id="taskSubActivity" value="#{taskInfo.subActivityList.comboValue}">
                    <f:selectItems value="#{taskInfo.subActivityList.comboValues}" />
                </h:selectOneMenu>

            </t:column>
            <t:column>
                <f:facet name="header">#{bundle['COMPLEXTIY_HEADER']}</f:facet>
                <h:selectOneMenu id="taskComplexity" value="#{taskInfo.complexityList.comboValue}">
                    <f:selectItems value="#{taskInfo.complexityList.comboValues}" />
                </h:selectOneMenu>

            </t:column>

            <t:column>
                <f:facet name="header">#{bundle['BENCHMARK_EFFORT_HEADER']}</f:facet>
                <t:inputText  value="#{taskInfo.benchMarkHrs}" />
                <t:outputLabel value="hrs"/>
                <t:inputText  value="#{taskInfo.benchMarkMin}" />
                <t:outputLabel value="min"/>

            </t:column>

            <t:column>
                <f:facet name="header">#{bundle['DESCRIPTION_HEADER']}</f:facet>
                <t:inputText value="#{taskInfo.taskdescription}" />
            </t:column>


        </t:dataTable>
    </t:div>

            <a4j:commandButton id="filterButton" style="visibility:hidden;display:none" action="#{insertTask.handleGroupChange}" render="insertTaskDataTable" />
  • 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-16T19:44:18+00:00Added an answer on June 16, 2026 at 7:44 pm

    Hi Guys i got solution

    here it is,

        <t:dataTable id="insertTaskDataTable" border="1"
                    value="#{insertTask.taskList}" var="taskInfo" rowIndexVar="row"  
                    iterationStatusVar="it" rendered="#{insertTask.taskList[0] != null}" >
    
                <t:column>
                    <f:facet name="header">#{bundle['GROUP_HEADER']}</f:facet>
                    <h:selectOneMenu id="taskGroup" value="#{taskInfo.groupList.comboValue}"  onchange="document.getElementById('addTask:insertTaskDataTable:#{row}:groupButton').click();">
    
                         <f:selectItems value="#{taskInfo.groupList.comboValues}" />
                    </h:selectOneMenu>
    
                </t:column>
                <t:column>
                    <f:facet name="header">#{bundle['CATEGORY_HEADER']}</f:facet>
                    <h:selectOneMenu id="taskCategory" value="#{taskInfo.categoryList.comboValue}"  onchange="document.getElementById('addTask:insertTaskDataTable:#{row}:categoryButton').click();">
                         <f:selectItems value="#{taskInfo.categoryList.comboValues}" />
                    </h:selectOneMenu>
    
                </t:column>
                <t:column>
                    <f:facet  name="header">#{bundle['ACTIVITY_HEADER']}</f:facet>
                    <h:selectOneMenu id="taskActivity" value="#{taskInfo.activityList.comboValue}"  onchange="document.getElementById('addTask:insertTaskDataTable:#{row}:activityButton').click();">
    
                    <f:selectItems value="#{taskInfo.activityList.comboValues}" />
                    </h:selectOneMenu>
    
                </t:column>
                <t:column>
                    <f:facet name="header">#{bundle['SUBACTIVITY_HEADER']}</f:facet>
                    <h:selectOneMenu id="taskSubActivity" value="#{taskInfo.subActivityList.comboValue}" onchange="document.getElementById('addTask:insertTaskDataTable:#{row}:subActivityButton').click();">
                        <f:selectItems value="#{taskInfo.subActivityList.comboValues}" />
                    </h:selectOneMenu>
    
                </t:column>
                <t:column>
                    <f:facet name="header">#{bundle['COMPLEXTIY_HEADER']}</f:facet>
                    <h:selectOneMenu id="taskComplexity" value="#{taskInfo.complexityList.comboValue}">
                        <f:selectItems value="#{taskInfo.complexityList.comboValues}" />
                    </h:selectOneMenu>
    
                </t:column>
    
                <t:column>
                    <f:facet name="header">#{bundle['BENCHMARK_EFFORT_HEADER']}</f:facet>
                    <t:outputText  value="#{taskInfo.benchMarkHrs}" style="height: 10px; width: 50px;" />
                    <t:outputLabel value=" hrs"/>
                    <t:outputText value="#{taskInfo.benchMarkMin}" style="height: 10px; width: 50px;" />
                    <t:outputLabel value="min"/>
    
                </t:column>
    
                <t:column>
                    <f:facet name="header">#{bundle['DESCRIPTION_HEADER']}</f:facet>
                    <t:inputText value="#{taskInfo.taskdescription}" />
                    <h:commandButton id="groupButton" style="visibility:hidden;display:none" actionListener="#{insertTask.handleGroupChange}">
                        <f:attribute name="groupid" value="#{row}" />
                    </h:commandButton>
                    <h:commandButton id="categoryButton" style="visibility:hidden;display:none" actionListener="#{insertTask.handleCategoryChange}">
                        <f:attribute name="categoryid" value="#{row}" />
                    </h:commandButton>
                    <h:commandButton id="activityButton" style="visibility:hidden;display:none" actionListener="#{insertTask.handleActivityChange}">
                    <f:attribute name="activityid" value="#{row}" />
                    </h:commandButton>
                    <h:commandButton id="subActivityButton" style="visibility:hidden;display:none" actionListener="#{insertTask.handleSubActivityChange}">
                    <f:attribute name="subactivityid" value="#{row}" />
                    </h:commandButton>
                </t:column>
    
    
    
    
            </t:dataTable>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have a DataTable and want to create a new row I first
i have a datatable i created below i need to list all rows' cell
i have created a datatable dynamically from a text file .Now i need to
I have created a datatable and trying to insert that datatable through SqlBulkCopy but
I have a strongly typed DataTable created with the VS2005/VS2008 DataSet designer. The table
I have a DataTable that I manually created and loaded with data using C#.
I have a GridView to which I bind a dataTable that I manually created.
I have an ASP.NET GridView that has four columns. The first three are typical
I have created a datatable with three fields namely TimeTask, TaskItem and Count (count
I have created a class that returns a datatable, when I use the class

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.