jsf-2

create a popup using jsf in a jsp

ぃ、小莉子 提交于 2019-12-13 06:51:36
问题 I'm trying to make a registration application using JSF 2.0 with jsp as pages. My page has several input fields, once the user enters all the data and clicks on the submit button, database has to be updated with user entered data. I want to generate a popup window here stating that "REGISTRATION COMPLETE, your REFERENCE ID is 00001" where the reference ID is from back end. Here is the code which I tried <h:commandButton id="submitBtn" value="Submit" action="#{regBean.submitDetails}" onclick=

How do I set up a Google AppEngine webapp with JSF 2.2, JPA 2.0 and Dependency Injection features? [closed]

梦想的初衷 提交于 2019-12-13 06:38:21
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago . A couple of weeks ago I was asked to create a web application to run on Google Cloud Platform (SDK v1.9.48 by the time this post was typed in). After configuring AppEngine settings (creating account, project, cloud database, source code repository, etc, etc, etc...), I was ready to develop my first

How to show water mark in filter in primefaces?

心不动则不痛 提交于 2019-12-13 06:23:35
问题 I have filters for columns. Here i want to show water mark in filter (As Shown in figure in red circle) I am using prime faces 3.4 I have tred this <h:form id="parametersListForm" prependId="false"> <p:dataTable id="parameteresList" value="#{parameterController.lstParameter}" var="parameters" selectionMode="single" selection="#{parameterController.selectedParameter}" styleClass="tnt-main-table"> <p:ajax event="rowSelect" update=":parameterDetailsForm" listener="#{parameterController

JSF2 + IceFaces 2 - Retrieve UIComponent from ViewRoot

爷,独闯天下 提交于 2019-12-13 06:22:35
问题 I've got hard time resolving the following. My problem is quite simple : I would like to highlight in red the forms fields that triggered validation errors. The error messages are placed correctly in the FacesContext using a context.addMessage(...) line. I'd like my system to be generic. All form fields having a message attached are automatically highlighted. I've found on this site a link to this excellent article : http://www.jroller.com/mert/entry/how_to_find_a_uicomponent With it, I did

Column-specific context menu for Primefaces DataTable

被刻印的时光 ゝ 提交于 2019-12-13 06:19:39
问题 How can I define context menu for each column differently in Primefaces datatable? Putting <p:contextMenu> inside <p:column> does not work properly. I want context menu to be different depending on which column user right-clicked in. This does not work (context menu is created the same for all columns): <p:dataTable value="#{values}" var="value" selectionMode="single" selection="#{selectedValue}" id="table"> <p:column headerText="Col 1"> <h:outputText value="#{value.balance}"> <f

<f:ajax> Parent is not composite component or of type ClientBehaviorHolder on a selection one menu

雨燕双飞 提交于 2019-12-13 06:19:09
问题 I am trying to get a second selection method to show up depending on what was selected for the first value. Now i need to do this over 38 times for a form i am making but i want to see if i can get it working for one question first. Here is the code i have so far cut on the jsf page. The values are all the same for the other 38 questions. I just recreated the project and so far the bean is currently empty but i know i should be able to atleast see the form first which is what i am hoping to

Expanding Accordion Panel in PrimeFaces with a RadioButton click

一笑奈何 提交于 2019-12-13 06:07:20
问题 Below is the snapshot of the layout I'm trying to achieve. I have two questions/problems here: Right now,the page loads with all the accordian panels open. I want it initially to be in the closed state (like in option 1). On click of the Radio button near the tab, the tab should expand. If I click on another radio button, the new tab associated with the radio button should expand, and the other one should close. How do we accomplish this ? I don't see any toggle function or anything

GSON with servlet

柔情痞子 提交于 2019-12-13 06:06:54
问题 My Folder Structure: Servlet: @WebServlet(name = "KPItoGSON", urlPatterns = {"/KPItoGSON/*"}) public class KPItoGSON extends HttpServlet { /** * Processes requests for both HTTP * <code>GET</code> and * <code>POST</code> methods. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */ protected void processRequest(HttpServletRequest request, HttpServletResponse response)

How to get the value of <p:editor> after update

女生的网名这么多〃 提交于 2019-12-13 06:04:22
问题 As a feature in my JSF Web application, i need online editing for word documents. In order to update a word document that i have in my database table i do the following : 1/create the datatable and the column which contains the Commandlinks that shows the dialogue that has the <p:editor> .(used datatable binding in a sessionscoped Managedbean) //the creation of the column that has Commandlinks. CommandLink rapstatelink = (CommandLink) application.createComponent(CommandLink.COMPONENT_TYPE);

How to hide element in responce of ajax call

不羁的心 提交于 2019-12-13 05:50:58
问题 I have a JSF page. <div id="SaarcImage"> <h:panelGrid id="saarcImagesTable" columns="4" style="position: relative; top: 50px;" columnClasses="nameColumn" > <span class="asterisk">*</span><span class="labels"> #{label.saarcCountryMap}: </span> <p:fileUpload id="cityMap" widgetVar="uploader" description="Image" update="countryMap" allowTypes="*.jpg;*.png;*.gif;*.jpeg;" auto="true" fileUploadListener="#{countryPages_Detail.imageUpload}"> </p:fileUpload> <p:graphicImage id="countryMap" value="#