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

commandbutton doesnt work when i choose a selectonemenu item in primefaces

when i choose a item in the selectonemenu, my commandbutton's actionlistener doesnt work, and it never works until I load the page, this is my code
1
vote
0 answers

PrimeFaces DataTable with custom LazyDataModel does not work with commandButton inside columns

I have a datatable with a LazyDataModel that works fine with paging. However I put buttons in a column and they do not fire. If I remove the lazy mode these buttons work fine. The truth is I tried everything and just removing the lazy mode works. …
1
vote
0 answers

My commandButton should not work but does, why?

I'm working in Java with JSF and CSS in NetBeans and I have a button that keeps working despite my best efforts to sabotage it. I used a commandButton in one of my pages "boekEdit.xhtml" it was supposed to work like this: in boekEdit.xhtml: …
1
vote
0 answers

jsf: conditionally rendered primefaces command buttons does not invoke backing bean

I am using Primefaces components framework with Java Server Faces web application development. I faced this problem for past two days. When I click statistic input switch component that will render two p:commandButton after that click switch…
1
vote
1 answer

VBA Excel Run code despite userform-window then stop on button click

Found some tips here and in google, but can't implement properly. Say I have a loop that runs, and I need to show a box with a button "Cancel". The code must run till I press the button. In the following example I used For Loop and show iteration…
DDR
  • 459
  • 5
  • 15
1
vote
1 answer

Adding element to commandButton value

I want to create such button in JSF. But h:commandButton only allow to set the value of the button in attribute called "value". So I tried to create my button like…
nrofis
  • 8,975
  • 14
  • 58
  • 113
1
vote
2 answers

p:commandButton refreshes entire page instead of partially whereas f:ajax works fine

I try to update a part of the page on button click. Right now, I have the following : template.xhtml
user1882509
  • 21
  • 1
  • 3
1
vote
0 answers

How do I program the command button to change the document format before attaching to an email?

Situation: I am trying to create a form that will automatically attach itself to an email when clicking the Submit button, but once the submit button is clicked, the macros are removed from the document. Background: I have been able to create a…
novice
  • 11
  • 2
1
vote
1 answer

commandButton in Primefaces dialog triggers action only on subsequent clicks

I ran into a bit of a problem with Primefaces dialog and the actionListener on my commandButton. To provide a bit of backdrop: The application I maintain currently uses an older version of ICEfaces. I've been tasked to find out if replacing it…
Sebastian_H
  • 349
  • 3
  • 13
1
vote
1 answer

Clicking p:commandButton causes the value of p:selectOneMenu being set twice

I ran into an issue with PrimeFaces - consider form with SelectOneMenu being put inside of Inplace. Next to the Inplace we have a CommandButton that is meant to reset the value of the SelectOneMenu. The form looks like this:
Sva.Mu
  • 1,141
  • 1
  • 14
  • 24
1
vote
1 answer

Primefaces openDialogue not working

Prerequisites: JSF 2.1 Primefaces 5.2 Glassfish 3.1 User Story: When clicking on a CommandButton, a Window should pop up. Implementation: commandbutton bean public void…
CodeFanatic
  • 11,434
  • 1
  • 20
  • 38
1
vote
1 answer

Button Event isn't displaying value until 2nd click (vb6)

I created a tcp connection in vb6 to grab the weight off of a scale and display that weight after pressing a button. The problem is that the weight is not displayed until the SECOND (2nd) click of the button, not the first. I have set a break point…
Dallas
  • 197
  • 1
  • 3
  • 14
1
vote
0 answers

In which case that we need to pass request parameter via f:param

Learning about JSF , I try to understand in which case that we need to pass request parameter
1
vote
1 answer

Ignore custom validation, but not the required="true" depending on button pressed

I am using JSF and I want to validate a form. In the form is a text field that is validated by required="true" and a validator method.
chocolate cake
  • 2,129
  • 5
  • 26
  • 48
1
vote
1 answer

jsf commandButton does not call method from bean

I checked a dozen of answers on similar question to this one, but none helped me solve the issue. Here is the body .xhtml file, where logout button does not work. This page is shown after login, if that is relevant.
Sarpy
  • 265
  • 1
  • 7
  • 18