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

h:commandButton not working inside h:dataTable

I am trying to execute an action through commandButton inside a dataTable, but the action is not invoked when the commandButton is placed inside the datatable as shown below
Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294
6
votes
1 answer

keep getting javax.faces.application.ViewExpiredException: viewId with jsf 2

Whatever I do I get javax.faces.application.ViewExpiredException: viewId. I know how to handle the exception (redirect to the main page again if I get the error), the issue is that any action I call from a commandButton is not executed. Basically I…
user2846482
  • 131
  • 1
  • 3
  • 9
6
votes
2 answers

Applying style to because I basically need

Does anyone know how to put the same styles from the commandbutton to all commandlinks? I want that all links appear like this (overriding links styles and using the button styles): A normal button: A hovered button: A pressed button: My current…
John Alexander Betts
  • 4,718
  • 8
  • 47
  • 72
6
votes
1 answer

Handling Events for OLEObject CommandButtons created at Runtime

I have struggled with this problem for while now...I want to do something very simple. I want to create multiple commandbuttons at runtime, and then handle events for these commandbuttons with one procedure. So I have built a "withevents" class to…
Sunny Sampath
  • 133
  • 2
  • 7
5
votes
1 answer

Excel VBA changing color for CommandButton

I'm having problem with changing colors of my CommandButton. In the spreadsheet I add design button as form or ActiveX. Then in VBA I try: Activesheet.shapes("CommandButton1").visible = false This one works just fine. But then I…
Matthew C
  • 75
  • 1
  • 2
  • 4
5
votes
1 answer

java.lang.NullPointerException at org.primefaces.component.menubar.MenubarRenderer.encodeSubmenuIcon

I am working at a primefaces dynamic menubar. The content of the menubar should be updated as a commandbutton is pressed. Here is my very simple xhtml page
INElutTabile
  • 866
  • 2
  • 20
  • 38
5
votes
2 answers

Creating a Class to Handle Access Form Control Events

I'm trying to create a Class which will handle multiple Control Events in Access. This is to save the repetition of typing out many lines of identical code. I've followed the answer located on the following page, but with a few adjustments to tailor…
Jiminy Cricket
  • 1,377
  • 2
  • 15
  • 24
5
votes
2 answers

primefaces with custom css file

Good morning, i have a problem in applying a style sheet on a primefaces commandButton , the button element is as follows: and the style sheet: .styleOrange { …
Eslam Hamdy
  • 7,126
  • 27
  • 105
  • 165
5
votes
2 answers

What does attribute do?

What is difference between when setting the global attribute of to false or setting it to true. I was going through the primefaces showcase but couldn't understand the difference.
Wizard Sultan
  • 830
  • 7
  • 22
  • 45
5
votes
1 answer

p:commandButton vs. h:commandButton

When I am using a PrimeFaces p:commandButton I don't see the the validation messages for inputs (both the default h: ones or the PrimeFaces p: ones.) For example with When I am using…
Caron
  • 96
  • 1
  • 2
  • 9
4
votes
1 answer

Using office icons as image on command button within userform

I'm creating some userforms for use within OutLook (2010). I'd like to utilize some of the office icons as images on the various command buttons. Is there anyway I can refer to office icons in such a way as to avoid having to distribute the *.ico…
Jerry Travers
  • 71
  • 1
  • 5
4
votes
1 answer

Dynamically call method in EL, which is evaluated from a String

i have a submit button. This submit button has an "action" attribute. But this action attribute should always call another function (some kind of generic). So i want to call a function dynamically. This is because i need to reuse this component. I…
sofarsoghood
  • 243
  • 2
  • 16
4
votes
2 answers

Passing a parameter with h:commandButton

I have a a4j:commandButton which is supposed to redirect me to an appropriate "Edit" page based on an Id, which I wanted to pass as a parameter, something like this:
Mateusz Dymczyk
  • 14,969
  • 10
  • 59
  • 94
4
votes
1 answer

Dynamic ui include and commandButton

I have a page which includes content from another page dynamically (this is done by a method in the bean) firstPage.xhtml This…
sciFi
  • 161
  • 1
  • 2
  • 9
4
votes
1 answer

How can I create toggle buttons in JSF?

How can I create toggle buttons in JSF? Basically, I need two buttons "in" and "out". They essentially call the same managed bean, but as a result of every click the one should be disabled and the other should be enabled and vice versa. How can…
user489152
  • 907
  • 1
  • 23
  • 42
1
2
3
30 31