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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:02:00+00:00 2026-06-03T06:02:00+00:00

I have this dataTable: <h:dataTable value=#{orderController.orderList} var=order styleClass=table table-striped> <h:column> <f:facet name=header>#</f:facet> <h:outputText value=#{order.orderNo}

  • 0

I have this dataTable:

<h:dataTable value="#{orderController.orderList}" var="order"
                                     styleClass="table table-striped">
                            <h:column>
                                <f:facet name="header">#</f:facet>
                                <h:outputText value="#{order.orderNo}" escape="false"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">Cliente</f:facet>
                                <h:outputText value="#{order.client}" escape="false"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">Data</f:facet>
                                <h:outputText value="#{order.date}" escape="false"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">Status</f:facet>
                                <h:outputText value="#{order.status}" escape="false"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header"></f:facet>
                                <h:form>
                                    <h:commandButton action="#{orderController.orderDetail}" value="Detalhe" styleClass="btn btn-info"/>
                                </h:form>
                            </h:column>
</h:dataTable>

I’m showing a list of orders and each list has a button “Detail” that will redirect the user to the orderDetail.html page inside views/fornecedores.

I’ve debugged and when I click on the commandButton, it is not calling my bean function.[

I have also tried this: <h:commandButton action="views/fornecedores/orderDetail.html" value="Detalhe" styleClass="btn btn-info"/> and nothing, it keeps redirecting me to the same page, orderSearch.html.

What I need is to call the method that will receive a orderNo parameter and will load the object and redirect to the orderDetail.html page.

What am I doing wrong or what is the best way to this approach?

  • 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-03T06:02:02+00:00Added an answer on June 3, 2026 at 6:02 am

    In this particular case, that can happen when you’re nesting forms which is illegal in HTML. This can also happen when the #{orderController} is request scoped and the orderList content depends on a request based value which causes that the list is incompatibly changed when the form submit is to be processed.

    So, make sure that you aren’t nesting multiple <h:form> components in each other and make sure that the #{orderController} is a @ViewScoped bean and that you aren’t manipulating the orderList in its getter method.

    See also:

    • commandButton/commandLink/ajax action/listener method not invoked or input value not updated

    As to your concrete functional requirement, the <h:link> with <f:param> and <f:viewParam> is a more sane approach for this. It’s bookmarkable and more SEO friendly. See also Communication in JSF 2.0 – Processing GET request parameters.

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

Sidebar

Related Questions

<ice:column style=width: 30px;> <f:facet name=header> <ice:selectBooleanCheckbox value=#{createToolsOrderInwardsBean.test} partialSubmit=true valueChangeListener=#{createToolsOrderInwardsBean.selectInwardQuantityChk} id=slc-tlmanage-selectallee></ice:selectBooleanCheckbox> </f:facet> <ice:selectBooleanCheckbox value=#{currentRow.chkInwardQuantity} immediate=true
I have 3 collection datatable that shows in this below Month: January ID NAME
I have a method private static DataTable ParseTable(HtmlNode table) and sometimes this method has
I have this DataTable with the following structure: ID | VALUE ---------------- 1 |
I have this Google Bar Chart: function drawChart() { var data = new google.visualization.DataTable();
I have this code in a business class. internal ListItemCollection GetAllAgents() { DataTable table
I have a datatable with three columns Id name value value1 I want to
I have an asp:ImageButton with OnClick=Btn_OnClick. In Btn_OnClick I have this line: DataTable dtTable
hello I have this code that use to sort a datatable. Dim sortingIndex As
I have a Datatable function like this public DataTable LoadCategory(SetupCategoryBO scBO) { DBConnect myConnection

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.