uicomponents

Adding external CSS file to a BoilerplateJS project

蓝咒 提交于 2019-12-11 02:11:05
问题 I'm trying to incorporate some UI components to a BoilerplateJS project that I'm currently working on, to be specific I want to implement this [http://wijmo.com/wiki/index.php/Getting_Started_with_Wijmo] sample inside a BoilerplateJs component. How can I add the external css files to my BoilerplateJs project. 回答1: There are several ways to import style-sheets. Directly in the index file. (Best suited for style-sheets of libraries such as jQueryUI and Wijmo in your case) As a theme, in themes

@Inject-ed value null in @FacesComponent

断了今生、忘了曾经 提交于 2019-12-10 10:25:07
问题 I have the impression that CDI is not working with classes that have a @javax.faces.component.FacesComponent . Is this true? Here's my example, that doesn't work. The MyInjectableClass is used at other points in the code where injection is not a problem, so it must be about the @FacesComponent annotation I think. The class I want to inject: @Named @Stateful public class MyInjectableClass implements Serializable { private static final long serialVersionUID = 4556482219775071397L; } The

JSF ResponseWriter custom components

微笑、不失礼 提交于 2019-12-10 10:14:50
问题 I know about startElement, endElement, and writeAttribute methods on ResponseWriter. My problem is that I want to for example output a h:commandLink by declaring it like HtmlCommandLink link = new HtmlCommandLink(); . How can I output other UIComponents like this in my own component? I might want to use some RichFaces ajax stuff in my components aswell so hoping I can avoid making it all by scratch. Edit: What I'm trying to do is create my own tag library with the following tag <myTags

JSF 2.0: How to add UIComponents and their contents to view root?

妖精的绣舞 提交于 2019-12-06 10:33:53
I am building a custom UIComponent and adding elements (and other stock UIComponents) inside it. The component renders ok, however it cannot be found from the ViewRoot . Let's say I have: ResponseWriter writer; @Override public void encodeBegin(FacesContext context) throws IOException { writer = context.getResponseWriter(); writer.startElement("div", this); writer.writeText("testing", null); writer.writeAttribute("id", getClientId(context) + ":testDiv", null); } @Override public void encodeEnd(FacesContext context) throws IOException { writer.endElement("div"); } Adding that as: <x

@Inject-ed value null in @FacesComponent

北战南征 提交于 2019-12-06 04:02:38
I have the impression that CDI is not working with classes that have a @javax.faces.component.FacesComponent . Is this true? Here's my example, that doesn't work. The MyInjectableClass is used at other points in the code where injection is not a problem, so it must be about the @FacesComponent annotation I think. The class I want to inject: @Named @Stateful public class MyInjectableClass implements Serializable { private static final long serialVersionUID = 4556482219775071397L; } The component which uses that class; @FacesComponent(value = "mycomponents.mytag") public class MyComponent

.NET Query Builder component

浪尽此生 提交于 2019-12-06 01:26:53
问题 Can anyone reccomend a free .NET libary which allows you to expose a SQL Query builder to your users in a windows form app? I'd like my users to be able to run relatively straight forward SELECT statements, including some JOINS and other multi-table operations without getting into the real nitty-gritty of SQL. Thanks, sweeney 回答1: Report Builder is part of SQL Server Reporting Services, and it lets you do all of that and more. You can setup non-MSSQL data sources as well. We have non

Accessing dynamic UIComponents in JSF Managed Bean

爱⌒轻易说出口 提交于 2019-12-05 02:46:25
问题 I have a JSF page in which I am iterating a list within <h:dataTable> to display some rows containing checkbox, some text and a textbox. I have to validate the <h:dataTable> so that when a user checks the checkbox, he has to enter some text inside the textbox. This is my JSF page. <h:form prependId="false" id="form"> <h:dataTable id="rm" width="100%" cellspacing="4" value="#{controller.alertTriggers}" var="alt" columnClasses="c1,c2,c3,c4"> <h:column> <h:selectBooleanCheckbox value="#{alt

.NET Query Builder component

人盡茶涼 提交于 2019-12-04 06:03:51
Can anyone reccomend a free .NET libary which allows you to expose a SQL Query builder to your users in a windows form app? I'd like my users to be able to run relatively straight forward SELECT statements, including some JOINS and other multi-table operations without getting into the real nitty-gritty of SQL. Thanks, sweeney Report Builder is part of SQL Server Reporting Services, and it lets you do all of that and more. You can setup non-MSSQL data sources as well. We have non-developers use it all the time for creating reports with joins, grouping and so on with no SQL code. The license is

Java Framework Choice Question

半城伤御伤魂 提交于 2019-12-03 14:12:43
问题 We do have many frameworks available in Java. Struts, Swing, JSF 2.0, Spring etc are used as per their priority. Actually, I don't know how many they are as well! But, as I am fresher to Java, even learning after their architecture, I cannot decide which framework can be used with what type of Projects ! Also, I am confused with mixed use of framework like Spring + JSF. What is the benefit to it ? Another thing making me confusing is about the UI components available in market. Like, we do

How to display buffered image in JSF without writing image on disk?

巧了我就是萌 提交于 2019-12-01 09:32:01
I have a buffered image and I need to display it in a JSF page. Is there any UI component available which can display a buffered image directly? I am using JSF 2.2. If you only have the buffered image, you could use the Omnifaces library to which allows you to render images by passing a byte[] to the component <o:graphicImage value="#{bean.image}" dataURI="true" /> If you have the buffered image you could convert to byte array like so: ByteArrayOutputStream baos = new ByteArrayOutputStream(); ImageIO.write([image],[image_extension], baos); byte[] imageToPassAsValueAttr = baos.toByteArray();