openfaces

How to invoke a method with Openfaces/JSF without rendering page?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-05 09:28:51
问题 I am trying to invoke a Save method in a bean with Openfaces 3. While Firefox is not rendering the page, Internet Explorer does. I'm currently using this code lines: <o:commandLink value="Save" action="#{beanX.save}"> <h:graphicImage url="/images/save_48.png" /> </o:commandLink> but I was trying o:ajax as well: <o:commandLink value="Save" action="#{beanX.save}"> <h:graphicImage url="/images/save_48.png" /> <o:ajax event="click" render="@none" /> </o:commandLink> Any ideas? I've found a way to

How to invoke a method with Openfaces/JSF without rendering page?

≯℡__Kan透↙ 提交于 2020-01-05 09:28:07
问题 I am trying to invoke a Save method in a bean with Openfaces 3. While Firefox is not rendering the page, Internet Explorer does. I'm currently using this code lines: <o:commandLink value="Save" action="#{beanX.save}"> <h:graphicImage url="/images/save_48.png" /> </o:commandLink> but I was trying o:ajax as well: <o:commandLink value="Save" action="#{beanX.save}"> <h:graphicImage url="/images/save_48.png" /> <o:ajax event="click" render="@none" /> </o:commandLink> Any ideas? I've found a way to

Best way to validate ajax updates in JSF 2.0?

萝らか妹 提交于 2019-12-20 10:48:40
问题 Our team is writing its first JSF 2.0 application since using Stripes for many years, and I have some questions on the best way to use the f:ajax tag and validate the input. A lot of questions I've seen answered have a form with multiple inputs and then a submit button), but we would like to maintain individual input fields updated immediately upon change and persisted to the database (with no submit button. We had this working fine in Stripes using Prototype's Ajax.Request, but it was an

JSF o:tabbedPane issue changing SelectedIndex

喜欢而已 提交于 2019-12-11 10:48:36
问题 im working with JSF 2.0 and the OpenFaces <o:tabbedPane> im having some troubles changing the tabs.. i have an index with four jsf pages includes. like this <o:tabbedPane loadingMode="client" tabGapWidth="3" id="pestana" tabClass="tab_form" rolloverTabClass="tab_form2" selectedTabClass="tab_form3" tabAlignment="bottomOrRight" style="width:100%;" binding="#{GeneralBean.panelTabs}"> <o:subPanel caption="1" styleClass="pestanas"> <ui:include src="/datosDeLaCotizacion.jsf"/> </o:subPanel> <o

FacesMessage listener

妖精的绣舞 提交于 2019-12-10 11:36:12
问题 What is the way for debugging JSF messages. Can I implement some listener and catch all error messages that JSF is about to display? 回答1: You could with a PhaseListener hook on the beforePhase() of the PhaseId.RENDER_RESPONSE. E.g. public class MessagesListener implements PhaseListener { @Override public PhaseId getPhaseId() { return PhaseId.RENDER_RESPONSE; } @Override public void beforePhase(PhaseEvent event) { Iterator<FacesMessage> messageIterator = event.getFacesContext().getMessages();

Best way to validate ajax updates in JSF 2.0?

a 夏天 提交于 2019-12-03 01:35:35
Our team is writing its first JSF 2.0 application since using Stripes for many years, and I have some questions on the best way to use the f:ajax tag and validate the input. A lot of questions I've seen answered have a form with multiple inputs and then a submit button), but we would like to maintain individual input fields updated immediately upon change and persisted to the database (with no submit button. We had this working fine in Stripes using Prototype's Ajax.Request, but it was an extra step I'd like to avoid if possible. Essentially we have a page with a bunch of inputs on it directly

WebSphere ClassNotFoundException with deployed dynamic web project

旧街凉风 提交于 2019-12-01 04:47:07
问题 Problem I am currently experiencing a ClassNotFoundException with a deployed EAR (with OpenFaces web project) on WebSphere 7.0 application server. The EAR deploys with no problems, but when I go to access a page from the web project (included in the EAR), I get the ClassNotFoundException (below). I have exported the EAR to make sure that everything was there and the WAR file is included. When I looked inside the WAR file, the class that is not being found is included in the WEB-INF/classes

Jsf Error : java.lang.ClassCastException

喜欢而已 提交于 2019-11-30 08:50:21
问题 i am using jsf 2.0 on glassfish 3.0.1 to build an interface to my search engine , when i used Openfaces components on my jsf page and whenever i submit a form i get this error message : java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.sun.faces.application.view.StateHolderSaver i didnt find any help on the web , please what is the problem ? and how to get rid of it ? thanks. 回答1: This is known as JSF issue 1427. Partial state saving may fail when ajax requests are fired

Jsf Error : java.lang.ClassCastException

橙三吉。 提交于 2019-11-29 07:47:23
i am using jsf 2.0 on glassfish 3.0.1 to build an interface to my search engine , when i used Openfaces components on my jsf page and whenever i submit a form i get this error message : java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.sun.faces.application.view.StateHolderSaver i didnt find any help on the web , please what is the problem ? and how to get rid of it ? thanks. BalusC This is known as JSF issue 1427 . Partial state saving may fail when ajax requests are fired on a page which is been opened by a JSF POST navigation case. There are three solutions, in