commandbutton

Show a commandbutton on datapulled lines

[亡魂溺海] 提交于 2020-12-13 03:09:47
问题 Once every 3 months we make a file available for our engineers. This Excel files, pulls data from an Access file and shows it in Excel format. Since some of this data doesn't change, we don't know whether the engineers haven't looked at it or whether the value isn't changed. What i'm trying to implement is some sort of "confirmation" button so we know the value shown is actually confirmed. What i'm trying to do is enter an extra column in our access file called "confirmation". When we pull

Show a commandbutton on datapulled lines

南楼画角 提交于 2020-12-13 03:09:40
问题 Once every 3 months we make a file available for our engineers. This Excel files, pulls data from an Access file and shows it in Excel format. Since some of this data doesn't change, we don't know whether the engineers haven't looked at it or whether the value isn't changed. What i'm trying to implement is some sort of "confirmation" button so we know the value shown is actually confirmed. What i'm trying to do is enter an extra column in our access file called "confirmation". When we pull

Get CommandButton name/ID in a cell

天涯浪子 提交于 2020-04-30 14:26:57
问题 I have a spreadsheet with CommandButtons in cells. I would simply like to Get the name/ID of the commandbutton in a particular cell without a button being clicked. How could I go about it ? I have been using this code but its inefficient as I have to type every button ID one by one. I have about 60 buttons. Sub Worksheet_Calculate() If Cells(6, 3).Value = 0 Then Me.Buttons("Button 55").Enabled = False Me.Buttons("Button 55").Font.ColorIndex = 16 Else Me.Buttons("Button 55").Enabled = True Me

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

我与影子孤独终老i 提交于 2020-01-11 11:55:08
问题 Who can explain the following behaviour? When disabling a command button in JavaScript, the action method is never executed. <h:form> <h:commandButton value="test" action="#{bean.test}" onclick="disabled=true" /> </h:form> 回答1: When a HTML form element is disabled, then its name=value pair won't be sent as HTTP request parameter and hence JSF will never find it in the request parameter map. For command buttons this in turn means that the action is never invoked. You need to disable the button

Why to add process=“@this” explicitly to p:commandButton to get action invoked?

我与影子孤独终老i 提交于 2020-01-10 10:35:06
问题 I know that we need to add explicitly process="@this" to get the p:commandbutton action get invoked and I also know that process attribute defaults to @form in primefaces. Since process is defaulted to @form shouldn't the button also get processed along with the other elements in the form and its action should get invoked. Can anyone explain the exact reason behind this? 回答1: Process @form mean the current form of the commandLink/Button Process @this mean the current component of the

Validation of ViewParam and a4j:commandButton

与世无争的帅哥 提交于 2019-12-25 06:29:34
问题 I think i came across a bug of @ViewScoped with a4j:commandButton . I have a very complex form where all actions use a4j, except those that need to upload data. And depending on the order of the commands the validation of the viewParam breaks. Here is the working code: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java

Update component in a different window/tab without manually refreshing it

非 Y 不嫁゛ 提交于 2019-12-25 02:57:08
问题 I have different pages with different layouts, for example index.xhtml and user.xhtml, each page has it's own template. If I make a change in user.xhtml I want to update a datatable in index.xhtml. index.xhtml: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:p="http://primefaces.org/ui"> <ui:composition template="/template.xhtml"> <ui:define name="body"> <h:form id=

Excel VBA changing color for CommandButton

眉间皱痕 提交于 2019-12-23 16:07:04
问题 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 try: Activesheet.shapes.Fill.ForeColor.RGB = RGB(220, 105, 0) It runs without error but nothing changes; color remains as it was before. Could you please help me with this? 回答1: Just try it like this: ActiveSheet.CommandButton1.BackColor = RGB(220, 105, 0) 来源: https:

JSF & ui:repeat - issue with adding an object to cart

我怕爱的太早我们不能终老 提交于 2019-12-23 01:06:15
问题 Once again I need some help with my pizza-search-programm I have written with Java Server Faces. The program: A user can search for pizzas by entering a form. A filtered search is possible as the user can decide whether he searches for a pizza name, a pizza id or other specified criteria. The program will generate a SQL query which returns pizza objects and stores it into a list of objects. A JSF page displays the list of pizza objects by iterating them through a ui:repeat tag. Pizza name,

Validate input as required only if certain command button is pressed

懵懂的女人 提交于 2019-12-20 13:19:28
问题 I have specific use case for JSF validation. For example I have an inputText field: <p:inputText id="input" required="#{myBean.required}" value="#{myBean.value}" maxlength="20" disabled="#{myBean.disabled}"> <p:ajax event="blur" process="@this" update="name" listener="#{myBean.listener}"/> </p:inputText> Value of input is number (in some cases it can also be a string, because this is part of composite component, but problem is better described if we assume this is a number). This input is