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
1 answer

JSF commandButton make sure action is completed

How can i make sure that the action of this commandButton is completed, before I go to the next page?
4ndro1d
  • 2,926
  • 7
  • 35
  • 65
1
vote
2 answers

How to render the p:commandButton at last row of the p:datatable?

I need to render the at last entry of the only . consider if p:datatable having n no.of rows means i have render the p:commandButton at nth row only.
Arunprasad
  • 567
  • 4
  • 14
  • 29
1
vote
0 answers

Create f:ajax based registration with a few forms so that each of them disappearing after step

I'm trying to make registration with a few steps using JSF. Everything is based on f:ajax because page not have to be reloaded. When i press "Show First Step" button the result appears. I'm pressing "SecondStep" button and second step appears. But…
Russell
  • 11
  • 1
1
vote
0 answers

JSF page is losing CSS styles in the master template when clicked on submit

I am new to the StackOverflow , though I've been following it for quite a while. The issue is : I have a JSF page like a confirmation page where the users land from a different page. Now the confirmation page contains a whole lot of templates(which…
1
vote
2 answers

Action of JSF h:commandButton not invoked after setting disabled=true in JavaScript

Who can explain the following behaviour? When disabling a command button in JavaScript, the action method is never executed.
membersound
  • 81,582
  • 193
  • 585
  • 1,120
0
votes
1 answer

Excel Form Listbox VBA: how to sort last date and time entry

I want to ask help about this code I have here: Private Sub CommandButton1_Click() Dim Row As Long Row = ThisWorkbook.Sheets("ExcelEntryDB").Cells(Rows.Count, "C").End(xlUp).Row Me.ListBox1.ColumnCount = 3 Me.ListBox1.ColumnHeads = True …
Shiela
  • 500
  • 1
  • 7
  • 20
0
votes
1 answer

Slow the time it takes to activate a MS Word VBA commandbutton click() when the mouse is hovered over it

I have a large MS Word userform with a line of a dozen commandbutton click() buttons, which works great. The problem is that when I scroll to a command button, beneath them, those buttons accidentally get activated: resulting in text in my documents…
Ken
  • 1
0
votes
0 answers

VBA USERFORM BUTTON CAPTION COLOR / NONUNIFORM

Is there a way to make it so when a VBA MS Word Userform toggle button is clicked only part of the caption text changes colors? E.g. "Upper (case) / Lower (case)." Upper turns from black to green when clicked, before reverting to black after a few…
Ken
  • 1
0
votes
1 answer

Compile error: Argument not optional on CommandButton_Click

I've added a Command Button to one of my workbooks to trigger execution of a macro. The attached code is very simple: Private Sub CommandButton1_Click() Call Evaluate End Sub However, when I click the button, I get a Compile error: argument not…
0
votes
2 answers

Copying only one column of Userform ListBox data to single cell in separate spreadsheet with commas separating data

I've created a multicolumn ListBox (2 columns) where I can search a customer name and have the results show customer part names in column 1 and corresponding part numbers in column 2. Once a user searches a customer name, I want to be able to…
Jess
  • 3
  • 2
0
votes
1 answer

Import data from and old sheet to an actual sheet, but the macro button from the old sheet is getting copy to, but I can´t remove it

I need to import data from an old sheet (Planilha Teste 1 VBA) to an actual sheet (Pasta teste para importar dados de outra planilha), but the macro button (CADASTRAR) from the old sheet is getting copy too and I don´t know how to solve it. The VBA…
0
votes
0 answers

Delete a CommandButton in Word and paste it in the next page with the same name so that it still has the macro assigned to it using VBA

I need a CommandButton named 'CommandButton2', which when clicked deletes itself and goes to the next page and pastes itself along with some other data. I need the button to have the same recurring function so that whenever it is clicked, it…
0
votes
0 answers

Duplicate sheet with command buttons and hyperlinks to new sheet and a new name

I have an excel sheet named “Recipes” that has formulas and data references that I want to fill out and click a “Save & New” button that duplicates the sheet with the command buttons included to a “Recipe 1”, “Recipe 2”, etc. sheet. A bonus feature…
James
  • 1
0
votes
0 answers

Hide command button for printing

I got a command button to insert and resize an image (company logo). When printing I want this command button to be hidden, but the logo has of course to be visible. My problem is that if the command button is hidden, then the logo is hidden as…
CNA
  • 3
  • 1
0
votes
1 answer

How to copy rows from one worksheet into a table in another worksheet without overwriting the data

I am looking to copy a row in worksheet called "Updates" to a table in "6.2022 Basis". I have my VBA set up, but I am having trouble getting it to work without it overwriting a row of data in my table. Is there a way to make my VBA add a new row in…
jmowalker
  • 1
  • 2