Questions tagged [commandbutton]

JSF tag to create a POST botton.

The <h:commandButton> is a JSF UI component which generates a HTML <input type="submit"> element which submits its parent <form method="post">.

456 questions
1
vote
0 answers

ActionListener method of a CommandButton inside form and panel grid don't work

I've created a CRUD page which can add, delete, update a table in the database. However, I have problem with the p:commandButton. The actionListener is not fired and I don't see any error in the console. cpret.xhtml
Nazih Heni
  • 11
  • 4
1
vote
0 answers

Hide commandbutton to print document via a created button

This is my first post on here, I will try to be as clear as possible :) I'm creating a Microsoft Word form for users to fill in, this form is protected and only the forms can be filled in the rest of the document is protected with the password:…
user2794639
  • 21
  • 1
  • 4
1
vote
2 answers

Primefaces commandButton action doesn't work

I have a Primefaces project with the following xhtml file:
Stefanos Kargas
  • 10,547
  • 22
  • 76
  • 101
1
vote
1 answer

's action listener not firing with attribute type="button"

Is it possible to fire action,actionListener of a with attribute type="button". I have a requirement where in a form there are text boxes and command buttons. If I press enter in any text box then commandButton is invoked. So I…
Diganta
  • 671
  • 3
  • 11
  • 27
1
vote
1 answer

Excel VBA Grouping Command Buttons on Worksheets

I have seen a lot of information on getting several command buttons to do similar things, but everything I've seen is about user forms. I want to have a group of command buttons move data from a cell to another cell. I just don't want to copy and…
Link
  • 396
  • 1
  • 4
  • 15
1
vote
1 answer

JSF2 Primefaces Enter key keycode=13 not working with commandButton

The real question: I'm trying to understand the interaction between a javascript snippet I found and the Primefaces commandButton. The javascript snippet is assigned to the onkeypress attribute of the JSF h:form tag. I have this snippet working on…
Dean
  • 301
  • 4
  • 11
1
vote
1 answer

h:commandbutton with ajax calls wrong action methods

I have problem with jsf with tag. If it has tag, it calls other action and actionListener methods in the backing bean. If it doesn't have the tag it calls its own right action method. here is my…
Odgiiv
  • 683
  • 1
  • 11
  • 32
1
vote
1 answer

Primefaces toggle color of dataGrid element by button click

I would like to change the background color of an datgrid element by clicking on a commandbutton. I have no idea at the moment how to do this. When I click on the following button, the element of the grid item is added to a list and I want to change…
LStrike
  • 1,598
  • 4
  • 26
  • 58
1
vote
1 answer

Excel Command Button Unintentionally Clearing Copy Buffer?

Background I have an Excel 2007 form where the user enters some data into a textbox and if they click the OK command button, a macro runs based on that text. However, in the case that they copy a string from somewhere else (eg Ctrl + C) and then…
Kurt Wagner
  • 3,295
  • 13
  • 44
  • 71
1
vote
2 answers

VB script to export to pdf in Command Button (ActiveX) in Word 2010

Ok, so I have this Word 2010 Macro enabled template with my handy dandy forms that people can fill out. I have created a button that says "Convert to PDF" because people dont know how to do it natively. I entered the VB editor of the particular…
jparnell8839
  • 530
  • 1
  • 11
  • 26
1
vote
1 answer

Unable to navigate to next page when clicked on button (JSF)

I am currently learning jsf. I have written A simple jsf application where my target is to navigate from one page to another page. However, I am unable to navigate at all. In my code there are two jsp files; one is createcustomer.jsp and the other…
developer
  • 9,116
  • 29
  • 91
  • 150
1
vote
0 answers

p:command button ajax="false" (with p:fileUpload) only working on second click in IE

I'm using primefacas fileUpload with simple mode(not using advanced mode due to some other reasons). I use style="display:none" to make the fileUpload "hidden", then add in a inputText with a commandbutton to represent the fileUpload(because by this…
heng heng
  • 693
  • 3
  • 13
  • 25
1
vote
0 answers

PrimeFaces commandButton is not working

I know this is a very common issue which happens for a variety of reasons, but although I have searched about it a lot, I didn't manage to find a solution for my case. My primefaces commandButton is inside an h:form and is declared as follows: …
kasimoglou
  • 384
  • 3
  • 17
1
vote
1 answer

PrimeFaces component doesn't update as desired (nested buttons generated)

I have commandButton component on my JSF page: I'm trying to…
Juvanis
  • 25,802
  • 5
  • 69
  • 87
1
vote
1 answer

Recalculate Custom VBA functions, Only on Request

My Problem is this: I would like to use a custom ribbon Command button or even a simple command button inside the spreadsheet to initialize an OLEDB database connection and update/recalculate all the assoicated user defined functions that require…