managed-bean

Xpages falling out of server side cache

孤街浪徒 提交于 2019-12-11 10:46:18
问题 This issue may have to do with a very specific Domino version (see below), so I start with a few technical details: Server in question is a virtualized Windows 2008 R2 64bit machine. Domino release is IBM Domino (r) Server (64 Bit) (Release 9.0.1FP4 HF70 for Windows/64) The latest JVM security patch (9.0.1.4 dated 20150724) is installed. I may be wrong but I feel that the issue started after we installed the latest patches ( FP4 HF70 and JVM ): On an Xpage I have a very simple "Refresh" type

Java EE 6, 5, 7 | List of managed beans or classes: EJBs , JSF beans and ..? [closed]

跟風遠走 提交于 2019-12-11 08:22:04
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . could someone one the current list of managed Beans or classes in Java EE 5,6,7? apart from EJBs and JSF managed beans, are they other

Help understanding JSF's multiple calls to managed bean

為{幸葍}努か 提交于 2019-12-11 08:12:56
问题 I'm using h:datatable, here's the revelant line of my code: <h:dataTable value="#{account.latestIncomes}" var="mov" > ..... </h:dataTable> then I have a Request scoped managedBean with the getter for the latest Incomes: public List<Movs> getlatestIncomes() { if (incomes == null) incomes = this.cajaFacade.getLatestIncomes(20); return incomes; } this getter gets called 8 times, and I'm not using it anywhere else, only on the value for the dataTable. Why is this happening? If you need more code

Updating a dialog with ajax of primefaces?

落花浮王杯 提交于 2019-12-11 07:44:34
问题 I have 2 dialogs. Dialog(list) and Dialog(create). On dialog list I have a <p:dataTable/> that contain values that are inserted of Dialog(create). Dialog list, open Dialog create to insert values. What I want is after insert values in dialog(create) automatically dialog(list) refresh with values inserted. Looking for a solution, I found any suggestions to use update of <p:commandButton/> with ajax of primefaces. I am trying this but still haven't success. How I can do update dialog(list)

JSF managed property for multivalues

会有一股神秘感。 提交于 2019-12-11 06:37:28
问题 As suggested by BalusC as an answer to this question, I wanto to create a managed property like this: @ManagedProperty("#{paramValues.freetext}") private String[] ftValues; public String[] getFtValues(){ return ftValues; } public void setFtValues(String[] values){ ftValues = values; } In my project every managed bean declaration and settings has done in the faces-config.xml file. Putting the annotation in the code as suggested, doesn't bring me any result. ftValues is always null, even if I

JSF file download NullPointerException with view Parameter

血红的双手。 提交于 2019-12-11 05:25:03
问题 I hope I get this one straight: I try to create an JSF 2.0 Page optimized for mobile use on Tomcat 7 . Therefore I use Mojarra 2.1.6 and PrimeFaces (Core 3.1.1 and Mobile 0.9.1). My scenario: User visits simplified URL, e.g. www.someurl.eu/view.xhtml/12345678 ServletFilter rewrites Url to www.someurl.eu/view.xhtml?id=12345678 Url Parameter gets provided to ManagedBean Necessery Data gets evaluated and published to my view.xhtml On my view.xhtml a button for download is provided My problem: By

java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

心已入冬 提交于 2019-12-11 04:24:30
问题 I'm trying to create a pdf export from A jsf page using jasper report. and I was fighting to get the solution, so this is the stack after submit the button. I'm using glassfich not jboss, and I use windows xp as an os, netbeans as an ide WARNING: #{domBean.print()}: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser javax.faces.FacesException: #{domBean.print()}: java.lang.NoClassDefFoundError: Could not initialize class net.sf

Disable scanning of CDI beans in WAR

一世执手 提交于 2019-12-11 03:36:20
问题 I have WAR package with CDI beans. Deployment of the package is very slow because every time during deployment the package is scanned for CDI beans. Is there any option to disable this process? 回答1: The correct way is to disable discovery in the beans.xml of the relevant archive: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp

How to get state of SelectBooleanCheckbox in Ajax Listener?

旧城冷巷雨未停 提交于 2019-12-11 01:18:33
问题 I'm trying to do some action in the ManagedBean based on the state of the checkbox. Checkbox is here: <p:selectBooleanCheckbox id="cb"> <p:ajax listener="#{myBB.checkboxChanged}"/> </p:selectBooleanCheckbox> The signature of the listener method is this: public void checkboxChanged(AjaxBehaviorEvent event) The listener method is called as expected, but I'm not sure how to get the state of the checkbox(if it is selected) This is false all the time: ((SelectBooleanCheckbox)event.getSource())

Injecting Managed Bean into Webservice

夙愿已清 提交于 2019-12-10 23:27:00
问题 I'm trying to inject a Managed Bean within a Webservice but the injected Bean is allways null. Does anybody knows why and if so could you provide some hints or a workaround? @WebService(targetNamespace = "http://impl.soap.valueservice.drivelog.com/", endpointInterface = "com.drivelog.valueservice.soap.impl.ValueService", portName = "ValueServiceImplPort", serviceName = "ValueServiceImplService") public class ValueServiceImpl implements ValueService { @Inject private ValueServiceFacade