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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:36:00+00:00 2026-05-31T20:36:00+00:00

I got stuck with this problem. I wrap two tables inside of a h:form.

  • 0

I got stuck with this problem. I wrap two tables inside of a h:form. I also tried to wrap nested tables in different h:form tags. So my goal is a listener to get fired in the server side when a user click a check box. I use execute=”@this” because I don’t want to sent all the inputs…. The javascript event in onevent attribute gets fired, but NEVER the listener in the sever. I can see a request is sent to the sever, when I click the checkbox. I don’t know why it doesn’t get called.

VIEW:

  <h:form>
                <table id="trades">
                    <th class="image_cell"></th>
                    <th>Type</th>
                    <th>Portfolio</th>
                        <ui:repeat var="trade" value="#{controller.errorTrades}">
                            <tr class="trade error">
                                <td class="image_cell error"><h:graphicImage styleClass="expandable" url="resources/images/plus.png"></h:graphicImage></td>
                                <td id="type" class="error">#{trade.type}</td>
                                <td class="error">#{trade.portfolio}</td>
                            </tr>
                            <tr class="operations">
                                <td id="#{trade.murexId}" class="operation_row" colspan="4">
                                        <table id="operations">
                                            <tr class="header">
                                                <th class="empty_cell"></th>
                                                <th class="operation_cell">Operation</th>
                                                <th>Time Transaction</th>
                                                <th>Comment</th>
                                                <th id="delete">Delete</th>
                                            </tr>
                                            <ui:repeat var="operation" value="#{trade.operationsSortList}">
                                                <tr class="operation">
                                                    <th class="empty_cell"></th>
                                                    <td id="operation" class="operation_cell color">#{operation.operation}</td>
                                                    <td class="color">#{operation.time}</td>
                                                    <td class="color">#{operation.coment}</td>
                                                    <td class="color checkbox">
                                                        <h:selectBooleanCheckbox title="delete">
                                                            <f:ajax execute="@this" event="click" listener="#{controller.onDelete}" onevent="onDeleteProcess" />
                                                            <f:attribute name="murexId" value="#{trade.murexId}" />
                                                            <f:attribute name="operationId" value="#{operation.id}" />
                                                        </h:selectBooleanCheckbox>                                              
                                                    </td>
                                                </tr>
                                            </ui:repeat>
                                        </table>
                                </td>
                            </tr>
                        </ui:repeat>
                </table>
            </h:form>

CONTROLLER:

@ViewScoped
public class Controller 
{
    private ArrayList trades;
    private ArrayList errorTrades = new ArrayList();

    .......code

    public boolean onDelete(AjaxBehaviorEvent event) 
    {
        long murexId = 0;
        BigDecimal operationId = null;
        boolean result = false;
        Trade trade;
        Iterator itop;
        Operation operation;
        ......code

        return true;
    }
}

I will really appreciate it if someone can help me out.

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-05-31T20:36:01+00:00Added an answer on May 31, 2026 at 8:36 pm

    ALMOST SOLVED

    I got it working. I wrap the second ui:repeat with h:form and the I use execute=”@form” instead of execute=”@this”. That’s why I put “almost solved”… Any idea why this happens?

        <h:form>
            <ui:repeat var="operation" value="#{trade.operationsSortList}">
                  <tr class="operation">
                       <th class="empty_cell"></th>
                       <td id="operation" class="operation_cell color">#{operation.operation}</td>
                       <td class="color">#{operation.time}</td>
                       <td class="color">#{operation.coment}</td>
                       <td class="color checkbox">
                           <h:selectBooleanCheckbox title="delete">
                                 <f:ajax execute="@this" event="click" listener="#{controller.onDelete}" onevent="onDeleteProcess" />
                                 <f:attribute name="murexId" value="#{trade.murexId}" />
                                 <f:attribute name="operationId" value="#{operation.id}" />
                          </h:selectBooleanCheckbox>                                              
                       </td>
                 </tr>
         </ui:repeat>
    </h:form>
    

    Thanks for your support!

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

Sidebar

Related Questions

I got stuck in this problem for an hour. I am thinking this is
I have post the similar question before,but this time the problem is different,I got
I have been puzzled by this weird problem and it got me stuck. Please
I'm quite new to javascript programming and got stuck in this problem: I have
I'm stuck on this problem here. I've got an application which reads out an
i find regex kinda confusing so i got stuck with this problem: i need
I'm stuck with this pretty silly thing; I got a textfile like this; Hello::140.0::Bye
I've got stuck in a problem with gflags when trying to find some memory
I am working on a problem and got stuck at a wall I have
i'm now stuck on this problem for days and i haven't been able 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.