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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:25:28+00:00 2026-05-22T22:25:28+00:00

I have a JSf form, I am tryin’ to use jQuery Ui dialog plugin

  • 0

I have a JSf form, I am tryin’ to use jQuery Ui dialog plugin to submit the form.
here’s the code snippet.

function confirmSubmit() {
          $('#dialog').dialog('open');
          return false;
      }

    $('#dialog').dialog({
        autoOpen : false,
        width : 400,
        modal : true,
        resizable : false,
        buttons : {
            "Submit Form" : function() {
                 document.myForm.submit();
            },
            "Cancel" : function() {
                $(this).dialog("close");
            }
        }
    });
<h:form id="myForm"> 
<h:commandLink action="#{Bean.search}" type="submit" onclick="return confirmSubmit()"   id="search" styleClass="buttonSearch">
                 </h:commandLink>    

The “document.myForm.submit();” part in the dialog box isn’t working i.e., no calls goes to the server and in the server console I see the error:

11:45:32,738 SEVERE [lifecycle]
JSF1054: (Phase ID: RENDER_RESPONSE 6,
View ID: /PRT01/IMCM0101.jsp)
Exception thrown during phase
execution:
javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@ec333b]

The dialog box is appearing correctly but once i press the submit button “document.myForm.submit();” code is executed and the form is NOT submitted instead the above described error comes on the server console.

  • 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-22T22:25:29+00:00Added an answer on May 22, 2026 at 10:25 pm

    It’s done, some JSF parameters were missing. which jsf adds during form submissiom, I added them using jQuery:

    $("a[id$='search']").click(function() {
        var input = $("<input>").attr("type", "hidden").attr("name",   "myForm:search").val("myForm:search");
        $('#myForm').append($(input));
        $("p#dialog-email").html(titleVar);
        $('#dialog').dialog('open');
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All the tutorials I have seen seem to use *.jsf , *.faces , or
I have been trying with limited success to code a JSF application. In one
I have a little problem I am trying to use MartkItUp JQuery rich text
If you have a JSF <h:commandLink> (which uses the onclick event of an <a>
In JSF is it possible to have a datatable displays records as follows? [Name
Is there any documentation about introducing jBoss seam to an old Hibernate/JSF project? Have
Have you guys had any experiences (positive or negative) by placing your source code/solution
I've got the following JSF form: <h:form> <ui:repeat value=#{list.categories} var=cat> <h:selectOneRadio id=sel1Rad value=#{list.choose} layout=pageDirection>
I am setting up a form using JSF (I'm pretty new at this) and
I am trying to implement a scenario using JSF. I have a commandExButton and

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.