Richfaces colorPicker not show all components - jboss

I'm using of Richfaces to implement the color picker function in a Web App, but it doesn't show any text box field to enter RGB manually, pick color using pointer is the only way to choose color. Anyone knows what the issue is?
Fyi, I'm using Richfaces 3.3.3.
It should be like this: http://livedemo.exadel.com/richfaces-demo/richfaces/colorPicker.jsf?c=colorPicker
But in my app, it only shows this:

Related

Default Colour on Radio Buttons

I am putting together a simple form for a friend and they want when a button is selected to change from amber, too green.
I have attached PDF to give an idea of what I am looking for. Much like a data validation on excel, but for the life of me I cannot figure out how to do it.
Default: Amber
when clicked: Green
It is certainly possible with PDFs to do that since the appearance of a form field is defined by arbitrary drawing instructions.
However, whether you can do that with a PDF editor wholely depends on the capabilities of the PDF editor.

Add color picker to Umbraco Form Settings

I want to add a color picker to umbraco for setting, so when the User create a new form he/she is able to add a background color, text color from the form setting. I have checked for solutions but there is no proper solution for this. i could only find of adding css class in it. Could someone please advice me on this.
You will need to create your own custom Umbraco Forms control to do that. There's documentation at https://our.umbraco.com/documentation/Add-ons/UmbracoForms/Developer/Extending/Adding-a-Fieldtype that guides you through that task.

OpenXML SDK PowerPoint set chart color

I am writing a module for a VB.NET web page, which takes values from a database and inserts them into Office documents. Using the Open XML SDK in Visual Studio, I have managed to modify both Excel and PowerPoint files, but I have an issue with the color in PowerPoint's charts:
How can I change the color of a PowerPoint chart using the Open XML SDK, without also making the color separate itself from the theme?
Details below.
After adding my values to the worksheet behind the chart, and updating the visual lines/bars, all of the series appear to be using the same color. Therefore I also need to set the color of the series in the chart. I currently do this with the following code:
Dim barChart1 As DocumentFormat.OpenXml.Drawing.Charts.BarChart = chartPart.ChartSpace.Descendants(Of BarChart).First
Dim barChartSeries = barChart1.Descendants(Of BarChartSeries).ToList
barChartSeries(0).ChartShapeProperties.Descendants(Of SolidFill).First.SchemeColor = New SchemeColor() With
{ .Val = DocumentFormat.OpenXml.Drawing.SchemeColorValues.Accent4}
Basically, I set the first bar in the chart to use Accent4 as its color. Accent1, 2, 3 and so on correspond to the colors in the color palette of the PowerPoint presentation's theme. After this code runs, the first bar of the chart will be using the fourth color of the current palette.
The problem I'm facing is that after the color is set with code, the color value appears to be saved separately from the actual theme colors.
If I open the PowerPoint file and change the theme, all colors change except the ones I modified. In this example, the first bar of the chart would keep the fourth color for the previous theme, instead of using the fourth color of the new theme as it's supposed to.
This becomes a problem because my company's clients are supposed to be able to change the theme to one that suits them better, but they can't do that easily if some of the colors stick.
I'm using the Accent colors because the alternative seems to be setting an actual RGB color value, which leads to the same problem. I have tried the PowerTools plugin by Eric White, which simplifies the process of updating the charts, but it does not appear to solve the color problem. I may be using it wrong, but I've been unable to find specific info on how to debug color issues.
Thank you in advance for any help.
I'm not sure if this is true for VB.NET and OpenXML, but in the PPT object model, Scheme colors are still supported to maintain compatibility with pre-2007 versions of PowerPoint. New versions use color themes, not schemes. (yeah, I know. Welcome to the BizarroWorld that is PowerPoint).
In VBA, you'd use something like this to set the fill color of the shape referred to by oSh to Accent Color 2 in the current color THEME.
oSh.Fill.ForeColor.ObjectThemeColor = msoThemeColorAccent2

How to use GWT color picker

I found gwt example for color picker. For example here is one link : http://www.subshell.com/en/subshell/blog/Implementing-a-Color-Picker-Dialog-With-Canvas-and-GWT100.html. But I want color picker something like below image :
How to develop this type of color picker in GWT. In GWT is tit possible to develop this type of color picker? Or is there any better way to develop this type of color picker?
Please help.
You already have half of the solution as per the shared link. Think of your custom color picker as a panel consisting of 2X2 grid and a button panel in bottom. Your 2X2 grid contains 4 panels:
Basic colors: Buttons of fixed colors
Subshell color picker
Custom colors: Button of custom colors
Add to custom colors: Input fields to take RGB & other values
Can you integrate some javascript and HTML5 in this? If you can this tutorial was amazing for me to develop my website's one by using the canevas. Check it out
http://www.webdesignerdepot.com/2013/03/how-to-create-a-color-picker-with-html5-canvas/

Eclipse RCP Clear Button in Textinput

I just started working on an eclipse RCP application in my company and search now for following component:
In the eclipse preference dialog is a text input field with a eraser which clears the text box (see image).
Is there a component in eclipse RCP which does exactly that? Or one where I can set an image in a text input field, so I can implement just the functionality.
Or have I to write my own component extending from Text?
Thanks.
Eclipse does not offer such a component, so you will have to implement one yourself.
But I wouldn't extend Text for this. Simply create a Composite with SWT.BORDER style, and a Text and Button as children. If you don't give the Text a border, it looks like the button is within the text box. Instead of the Button you could use a ToolBar with a single ToolItem, both with the SWT.FLAT style. This will look much better than a regular button.
Text text = new Text(parent, SWT.SEARCH | SWT.ICON_CANCEL);
This is present in Luna's API, don't know about older versions. You can check more here: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet309.java?view=co