This question already has an answer here: Using java.util.Map in h:dataTable 3 answers Using JSF: Is it possible to iterate over a Map whose values contain Maps? I have a Map that looks like this: Map<String, Map<String, String>> myMap; I woul
I am new to jsp and jsf. I want to insert '%' symbol in textbox. But I am not able to insert % symbol in textbox using jsp and jsf. My jsf code is : <h:inputText class="form-control input-sm input-element" id="oligoName" name="
I need a value from my application scope managed bean in my session scope managed bean. Not sure how to get this done. Saw a poste here: https://guedebyte.wordpress.com/2012/05/19/accessing-beans-from-java-code-in-xpages-learned-by-reading-the-source
I have a rather strange issue with a webpage I'm working on in JSF. Basically, when I include the stylesheet for the website, using an h:outputStylesheet tag, the outputLabel component representing the document's title disappears. The outputLabel is
I'm trying to export my PF chart as picture following the showcase: enter link description here <h:form id="form1"> <p:chart type="line" value="#{chartView.lineModel1}" style="width:500px;height:300px" widg
I am getting the following error when I want to save the data of my picklist 'Group [id=null, groupName=TEST, distinguishedName="distinguishedNameForGroup"' für 'null Converter'. This is the converter I use for it @FacesConverter(value="gro
I need advice on a few design principles regarding CRUD operations in my JSF project. A very simple example: I have a basic screen with a form that get submitted. In my bean I declare a database connection in my method and a string object which I pop
I have a nested datatable with row expension so far so god, but I want to keep all rows collapsed (open) how to achieve this on primefaces? thanks in advance. Sorry, I didn't tell what version of primefaces am I using, version 3.5.According to the Pr
i have external javascript file for drawing google charts and in this js file i want to access backing bean to get json string. js file: window.onload = function(){ if(typeof(google)!= undefined){ google.load('visualization', '1.0', {'packages':['cor
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 probl
I am using JSF 2 and primefaces 3.5. I have an inputText which must be a number between Long.MIN_VALUE and Long.MAX_VALUE. <p:inputText id="startRange" value="#{attributeBean.attribute.startRange}"> <f:convertNumber /> <
I have a datatable <p:dataTable id="db" value="#{notificationBox.notificationsList}" var="notificationForm" rows="15" emptyMessage="${msgs.getMessage('table.empty.message')}" paginator="true"
I was using the Richfaces4, everything looks good. But just right after I add following line to my pom.xml: <dependency> <groupId>org.primefaces</groupId> <artifactId>primefaces</artifactId> <version>3.5</version>
This question already has an answer here: How do I pass JSF managed bean properties to a JavaScript function? 3 answers Can anyone tell me how to get the managed bean property value inside the javascript method something like function fonction1() { v
JSF custom composite components input.xhtml <cc:interface> <cc:attribute name="validator"/> </cc:interface> <cc:implementation> <h:inputText validator="#{cc.attrs.validator}"/> </cc:implementation> *
When i construct my input manually i can focus on it however when i use a JSF tag to generate my inputs the form name is appended to the id and i can't reference it anymore. I've tried $("#username").focus(); and $("#loginForm:username"
Before I was using JSF, the following code was working in JSP files: <c:if test="${not (empty request.error)}"> Error: ${request.getAttribute("error")} </c:if> Now, when I am using JSF, I am getting this error: /login.xhtml
I will appreciate if someone help me with the following problem. I have a jasper report which i fill in a PrintingBean and its all good. The moment I clicked on a print preview button (opening the applet) my app throws a null pointer exception at: if
I am using Java 6, jsf 1.2, spring on tomcat and if I do an operation after a timeout from a certain page, I get the exception below. My question is why doesn't the page get redirected to my error page /error/error.jsf? This is the web.xml (I have no
I have a Java application runnning on a Glassfish server using JSF 2.0.2. at JSF level I have the following method call. <h:commandLink action="#{printWB.doOpenVehicleToPrintInPDF}" target="_blank">Print</h:commandLink> My
Hi am trying to get the value of p:selectOneMenu from jquery , but i dint got as yet. am using JSF and primefaces as my UI component. <p:selectOneMenu style="width:150px" id="skill" value="#{loginBean.skill}" required=&quo
I want to use Mojarra 2.1 with Tomcat 7, so I added following dependencies in my pom file: <dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-api</artifactId> <version>2.1.2</version> </dependency>
I havent found a real solution for this problem, even when it is really common... I have this context: JSF application running on Glassfish Server v3.1, JDK6. All in my personal computer with WinVista (This last should not be important). Using SSL an
we are migrating our application from an existing custom web application framework to JSF/IceFaces. we store window description in database: what kind of fields are on the window, what are their labels, etc. Can I have my xhtml pieces generated dynam
I have a working knowledge of Struts2 and Spring. I want to develop an application that manages information for multiple companies. I am totally confused about what technologies are best for my application. For instance: Struts2, and Hibernate MVC wi
I have a problem with my first JSF/IceFaces (version 1.8.2) application running on JBoss 5.1.0. I recieve an exception after a while, telling me about session problems. This is weird, because i do not use sessions in my code at all. The following log
For debug reasons, I want to see the ouput of my ResponseWriter directly in standard output. Because the response will be processed by JavaScript I am not able to see the output there. Is there an easy solution to redirect the ResponseWriter to stand
I want to disable mouse left click. I use the following script but not work. <h:form> <a4j:commandButton value="TestButton" onclick="alert('button cliked')"/> </h:form> JavaScript is : <script type="text/javas
Assume that we have Spring bean UserController with singleton scope. All my further reasoning is based on my assumption that "singleton" scope is almost similar to application scope i.e. we have only one instance for all users. If this is wrong
This question already has an answer here: How to use JSF generated HTML element ID with colon ":" in CSS selectors? 2 answers JSF is setting the ID of an input field to search_form:expression. I need to specify some styling on that element, but