jsf-1.2

h:graphicImage not reRender

故事扮演 提交于 2019-12-11 23:17:55
问题 i have a jsf file where i have selectOneMenu and a h:graphicImage.Now the problem is when i send onchange request through selectOneMenu and want to reRender the h:graphicImage and want to show and hide boolean in action bean.But not work properly. Actully first i investigate it very carefully that when i send action through selectOneMenu the boolean value set correctly in bean but not set the reRender value properly.If i refresh page then it work properly.Anyone who i can solve it if i want

JSF page splitting

喜欢而已 提交于 2019-12-11 19:14:52
问题 During working with JSF 1.2 one page code is too large and JDeveloper gave too large code in service method exception. Now I want to split my JSF file in smaller files. During splitting I need some help and suggestion. Beacuse the whole page binds with a single bean, is it also necessary to split the bean? If not, then how to overcome this? What is the best way to split JSF file and include in main page? 回答1: You don't need to split the bean. You could just split the page fragments over

NullPointerException while trying to load application context in JSF 1.2

試著忘記壹切 提交于 2019-12-11 14:12:42
问题 Null pointer exception is coming while trying to load application context while migrating to jsf 1.2. Below is the stack trace [ERROR] [com.sun.faces.lifecycle.InvokeApplicationPhase] [] - # {CustomerSearchBean.searchCustomers}: javax.faces.el.EvaluationException: java.lang.NullPointerException javax.faces.FacesException: #{CustomerSearchBean.searchCustomers}: javax.faces.el.EvaluationException: java.lang.NullPointerException at com.sun.faces.application.ActionListenerImpl.processAction

ajax behaviour in jsf 1.2

本秂侑毒 提交于 2019-12-11 13:23:54
问题 I have a selectonlistbox and I want to reload a panelgrid everytime the selectbox selection is made/changed. I am try to use just jsf 1.2. I know it can be done easily using a4j or faces 2, but if anyone knows any good way to achieve this in jsf 1.2, I would really appreciate it. A simple example would help a lot too. Thanks 回答1: You basically need to create a custom Ajax aware ViewHandler and a custom XML ResponseWriter and custom tags which generates the desired JavaScript code to perform

JSF 1.2 : Not able to retrieve bean values in xhtml page

巧了我就是萌 提交于 2019-12-11 12:45:07
问题 Am using JSF 1.2 . I have a servlet. When this servlet is hit, am getting the data from request parameters, in doPost, and I need to set it in bean so that I can show it on xhtml page. My code is like below. userId= request.getParameter("userID"); MyBean myBean = new MyBean(); myBean.initialize(userId); In initialize method of myBean am setting userId value into a globalVariable. In my logs in bean, globalVariable value is getting printed. But its not getting displayed on xhtml page. Am

Disable User Selection in <h:selectOneRadio>

限于喜欢 提交于 2019-12-11 11:47:13
问题 I am trying to disable user selection in tag. <h:selectOneRadio id="wildcard" value="#{NewService.isWildCard}" label="#{msg.org_IsWildCard}" readonly="true" layout="lineDirection"> <f:selectItem id="yes" itemLabel="YES" itemValue="1" /> <f:selectItem id="no" itemLabel="NO" itemValue="0" /> </h:selectOneRadio> However on my GUI I am still able to select radio button value. Please tell me what is wrong in the code..Also the BackingBean code is pretty simple..I am just passing 0 or 1 in

JSF bean action method return string test

Deadly 提交于 2019-12-11 08:35:01
问题 I tried to understand from this question the difference between returning null and "" in JSF action, but couldn't experience in real. Below is the quote form the OP From what I understand, when a JSF action returns "" (empty String) the user stays on the current page but the view is refreshed. However, when the action returns null the user still stays on the current page but the old view is reused I am in a confusion of understanding the difference between returning "" , null and "viewid

JSF page not rendering as HTML

二次信任 提交于 2019-12-11 03:07:29
问题 I'm trying to get a very basic JSF page running. Using Websphere 7.0 as the server so I'm trying to stick with JSF 1.2. The browser isn't rendering the html, by which I mean that it's simply displaying all the html code including doctype, etc. My first guess might be that it's not getting passed through the FacesServlet, but when the url-pattern doesn't match it gets page not found. Is it a JSF version issue? Any other ideas? Thanks folks I've included jstl-api-1.2.jar and jstl-imp-1.2.jar in

SAP Netweaver hot deployment

社会主义新天地 提交于 2019-12-11 02:55:58
问题 I am completely new to SAP netweaver in fact SAP. I am working in a project which is based on Java/J2ee(JSF, Icefaces) and SAP netweaver combination. Currently, we are building/deploying the application using ant, for every small change in jspx file or some html file, we have do re-build. Just wanted to know, if I can browse the deployment location like other application servers(Jboss,tomcat,weblogic) and manually deploy the respective changed file. Any possibility. Does it have hot

Print current html page on printer from java bean in jsf

一笑奈何 提交于 2019-12-11 02:39:51
问题 i need to change javascript window.print() command with java backing bean process. here, i am using Jsf1.2 as programmatic, print any web page, we use window.print(). which opens one menu to select printer to print page. now i need to compress this process with java bean method call.but it not works for me anyhow. what i actually need is, when i click on print button on webpage. it directly print on selected printer(this printer selection done in backing bean with PrintServiceLookup