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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:03:40+00:00 2026-05-25T11:03:40+00:00

I have datatable and a dropdown within a xhtml. If I am deleting p:datatable

  • 0

I have datatable and a dropdown within a xhtml. If I am deleting p:datatable code within this page then I am able to call the valueChangeListener of dropdown , but if p:datatable is present in xhtml, then I am not able to call it.

Xhtml code is

<ui:define name="content">
    <f:view>
        <h:form id="accountSummaryForm" prependId="false">
            <h:selectBooleanCheckbox id="checkbox" value="true" />
            <h:outputLabel value="Show certificates preview on sumit"></h:outputLabel>
            <h:outputLabel value="Show certificates preview on sumit"></h:outputLabel>
            <h:outputText align="left"
                value="Value is #{reqSummaryHandler.certNumber}" />
            <p:dataTable id="reqActList" paginatorAlwaysVisible="true"
                var="reqInfo" value="#{reqSummaryHandler.certActListModel}"
                paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                paginator="true" rows="#{label.accountList_defaultNumberOfRows}"
                selectionMode="single"
                rowsPerPageTemplate="#{label.accountList_numberOfRows}" width="60%">
                <p:column style="text-align:center;" filterBy="" sortBy=""
                    width="5%">
                    <f:facet name="header">
                        <h:outputLabel value="#{label.certNumber}" />
                    </f:facet>
                    <h:outputText align="left" value="#{reqInfo.certNumber}" />
                </p:column>
                <p:column style="text-align:center;" filterBy="" sortBy=""
                    width="5%">
                    <f:facet name="header">
                        <h:outputLabel value="Version" />
                    </f:facet>
                    <h:outputText align="left" value="#{reqInfo.certVersionNbrString}" />
                </p:column>
                <p:column style="text-align:center;" filterBy="" sortBy=""
                    width="5%">
                    <f:facet name="header">
                        <h:outputLabel value="Insured" />
                    </f:facet>
                    <ui:repeat value="#{reqInfo.clientList}" var="insuredInfo">
                        <h:outputText align="left"
                            value="#{insuredInfo.generalPartyInfo.nameInfo.commName.commercialName}" />
                    </ui:repeat>
                </p:column>
                <p:column style="text-align:center;" filterBy="" sortBy=""
                    width="5%">
                    <f:facet name="header">
                        <h:outputLabel value="Certificate Holder" />
                    </f:facet>
                    <ui:repeat value="#{reqInfo.certificateHolderInfoList}"
                        var="certHoldInfo">
                        <h:outputText align="left"
                            value="#{certHoldInfo.additionalInterest.generalPartyInfo.nameInfo.commName.commercialName}" />
                    </ui:repeat>
                </p:column>
                <p:column style="text-align:center;" filterBy="" sortBy=""
                    width="5%">
                    <f:facet name="header">
                        <h:outputLabel value="Activity Performed" />
                    </f:facet>
                    <h:outputText align="left" value="#{reqInfo.effectiveTypeCd}" />
                </p:column>
                <p:column style="text-align:center;" filterBy="" sortBy=""
                    width="5%">
                    <f:facet name="header">
                        <h:outputLabel value="Certificate Status" />
                    </f:facet>
                    <h:outputText align="left" value="#{reqInfo.statusCd}" />
                </p:column>
                <p:column style="text-align:center;" filterBy="" sortBy=""
                    width="5%">
                    <f:facet name="header">
                        <h:outputLabel value="Third Party" />
                    </f:facet>
                    <h:outputText align="left"
                        value="#{reqInfo.certWordingEndorsementInd}" />
                </p:column>
                <p:column style="text-align:center;" filterBy="" sortBy=""
                    width="5%">
                    <f:facet name="header">
                        <h:outputLabel value="Manual Form" />
                    </f:facet>
                    <h:outputText align="left" value="#{reqInfo.manualEntryInd}" />
                </p:column>
                <p:column style="text-align:center;" filterBy="" sortBy=""
                    width="5%">
                    <f:facet name="header">
                        <h:outputLabel value="Manual Addendum" />
                    </f:facet>
                    <h:outputText align="left" value="#{reqInfo.mnlAddendumInd}" />
                </p:column>
                <p:column style="text-align:center;" filterBy="" sortBy=""
                    width="5%">
                    <f:facet name="header">
                        <h:outputLabel value="Path" />
                    </f:facet>

                    <p:cellEditor>
                        <f:facet name="output">
                            <h:outputText align="left" value="#{reqInfo.routePathCd}"
                                readonly="true" />
                        </f:facet>
                        <f:facet name="input">
                            <h:selectOneMenu value="#{reqInfo.routePathCd}">
                                <f:selectItem itemLabel="Issue  Distribute" itemValue="A" />
                                <f:selectItem itemLabel="Send to Underwriter" itemValue="B" />
                                <f:selectItem itemLabel="Issue  Do Not Distribute"
                                    itemValue="C" />
                            </h:selectOneMenu>
                        </f:facet>
                    </p:cellEditor>
                    <p:rowEditor rendered="#{reqInfo.statusCd eq 'A'}" />
                </p:column>
                <p:column style="text-align:center;white-space: normal;nowrap">
                    <f:facet name="header">
                        <h:outputLabel value="Action" />
                    </f:facet>
                    <ui:repeat value="#{reqInfo.availableFunctions.functionNameArray}"
                        var="linkInfo">
                        <p:commandLink id="View" value="#{linkInfo}" ajax="false" />
                        <br />
                    </ui:repeat>
                </p:column>
            </p:dataTable>
            <p:spacer width="50" height="0"></p:spacer>
            <p:spacer width="50" height="0"></p:spacer>
            <p:spacer width="3" height="0"></p:spacer>
            <p:spacer width="3" height="0"></p:spacer>
            <p:spacer width="3" height="0"></p:spacer>
            <p:spacer width="3" height="0"></p:spacer>
            <p:spacer width="3" height="0"></p:spacer>
            <p:spacer width="3" height="0"></p:spacer>
            <h:outputLabel value="Assign Path" style="font-weight:bold" />
            <p:spacer width="5" height="10" />
            <h:selectOneMenu id="dropdown2"
                valueChangeListener="#{reqSummaryHandler.DoPathProcessing1}"
                value="#{reqSummaryHandler.certNumber}" onchange="submit();">
                <f:selectItem itemLabel="Issue  Distribute" itemValue="A" />
                <f:selectItem itemLabel="Send to Underwriter" itemValue="B" />
                <f:selectItem itemLabel="Issue  Do Not Distribute" itemValue="C" />
            </h:selectOneMenu>
        </h:form>
    </f:view>
</ui:define>

And listener code is

    public void DoPathProcessing1(ValueChangeEvent event) {
    String newValue = (String) event.getNewValue();
    System.out.println("Path"
            + certActListModel.getRowData().getRoutePathCd());
    certActListModel.getRowData().setRoutePathCd(newValue);

    System.out.println("value is " + newValue);
}

Any idea why it is not working?

I am using jsf-api-2.0.3 and primefaces-2.2.1

  • 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-25T11:03:40+00:00Added an answer on May 25, 2026 at 11:03 am

    You are using both the value and the valueChangeListener attributes of the drop down component. Why would you do this?

    Just having value="#{reqSummaryHandler.certNumber} will call setCertNumber(String certNumber) in your managed bean. Why not just put this code into the setter method?

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

Sidebar

Related Questions

I have DataTable which feeds a dropdown list. The values of this dropdown persist
I have a dropdown. I need to bind with two field of datatable value
I have a datatable that has a date column, but I am stumped as
I have a dropdown list that I am binding to a datatable. Here is
I have this DataTable with the following structure: ID | VALUE ---------------- 1 |
Good day. I have a dropdown list control called audioList. Whenever the page loads
I'm using ICEFaces. I have datatable with multiple columns. One I load the page
----> I have datatable which is passing to another page in session variable. ---->
I have the following piece of code: DataRow CreateRow(DataTable dt, string name, string country)
I have datatable with column name tag and 100 rows of data.I need to

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.