jsf-2

Conditional Navigation of rich:dataTable using rich:dataScroller

不羁的心 提交于 2020-01-17 01:01:52
问题 When the user tries to switch on to the next page of the rich:dataTable using rich:dataScroller, basing on a JS condition, an Alert will be displayed. If OK'd then only the 2nd page has to be shown. If Cancel'd then the first page itself should be displayed. In richfaces3.3, there was onPageChange event on dataScroller, which is not available in richfaces 4.3. Pls suggest. 来源: https://stackoverflow.com/questions/20370046/conditional-navigation-of-richdatatable-using-richdatascroller

what should I keep in what scope

不打扰是莪最后的温柔 提交于 2020-01-16 19:46:08
问题 I am creating new website using JSF 2.0 and MySQL. Below is what I have. Note Here in each table I am only considering 1-2 fields just for explanation purpose. In real I will have many fields depending on requirement. I have n number of Applicants. ApplicantDataTable +++++++++++++++++++ appId PK appName +++++++++++++++++++ Each applicant will have many projects. ProjectDataTable +++++++++++++++++++ proId PK proName appId FK +++++++++++++++++++ Each project will have many stages and for each

what should I keep in what scope

本秂侑毒 提交于 2020-01-16 19:46:05
问题 I am creating new website using JSF 2.0 and MySQL. Below is what I have. Note Here in each table I am only considering 1-2 fields just for explanation purpose. In real I will have many fields depending on requirement. I have n number of Applicants. ApplicantDataTable +++++++++++++++++++ appId PK appName +++++++++++++++++++ Each applicant will have many projects. ProjectDataTable +++++++++++++++++++ proId PK proName appId FK +++++++++++++++++++ Each project will have many stages and for each

Avoid Going on back page after Logout in JSF application

喜夏-厌秋 提交于 2020-01-16 18:24:23
问题 I am disabling the user to go back on the previous page after he has logged out. Controls comes in the filter but the page are still there in cache. I have used the filter suggested in this answer : BalusC Answer My filter looks like : @WebFilter public class NoCacheFilter implements Filter { @Override public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletResponse response = (HttpServletResponse) res; System.err

Prime Faces: how to navigate from page A to (slow) page B with progress “Loading…” indicator

不羁岁月 提交于 2020-01-16 16:26:11
问题 I am using Prime Faces (JSF UI library). I would like to navigate from page A to page B, but with some kind of progress indicator because page B is slow, it takes time to load. How should I do this? 回答1: You can do this with adding AJAX loading on page B. On page B you have something like this: <h:head> <script type="text/javascript"> function onLoadCallback(data) { if (data.status == "begin") { dialogWidget.show(); } else { dialogWidget.hide(); } } </script> </h:head> <h:body> <f:ajax event=

Prime Faces: how to navigate from page A to (slow) page B with progress “Loading…” indicator

我与影子孤独终老i 提交于 2020-01-16 16:26:02
问题 I am using Prime Faces (JSF UI library). I would like to navigate from page A to page B, but with some kind of progress indicator because page B is slow, it takes time to load. How should I do this? 回答1: You can do this with adding AJAX loading on page B. On page B you have something like this: <h:head> <script type="text/javascript"> function onLoadCallback(data) { if (data.status == "begin") { dialogWidget.show(); } else { dialogWidget.hide(); } } </script> </h:head> <h:body> <f:ajax event=

migrating to facelets 2.0 from facelets 1.x

与世无争的帅哥 提交于 2020-01-16 12:04:08
问题 I'm building a web App using JSF 2.0 and had a jaf-facelets.1.1.10 jar in my WEB-INF > lib folder, so now I'm trying to remove that so I can use the built int facelets 2.0 I was reading through this Question which balusC answered and I've done that, except teh part where it saysI need to replace FaceletViewHandler by ViewHandlerWrapper. for that I saw this question, but I don't have any faceletViewhandler classes in my project. as of now, my webxml looks like this ( please check taht I didn't

Java EE 7 Application not deploying on Glassfish 4 Sever after switching from Mojarra to MyFaces

こ雲淡風輕ζ 提交于 2020-01-16 07:16:08
问题 Currently we have a problem when we try to deploy our Java EE 7 application to a glassfish 4.0 server. Before we changed the JSF implementation from JSF Mojarra 2.2.0 to MyFaces 2.2.2 it worked pretty well. Heres the error log: >2014-03-24T16:05:42.356+0100|Schwerwiegend: Unable to obtain InjectionProvider from init time FacesContext. Does this container implement the Mojarra Injection SPI? 2014-03-24T16:05:42.357+0100|Schwerwiegend: Die Anwendung wurde bei Systemstart nicht einwandfrei

Java EE 7 Application not deploying on Glassfish 4 Sever after switching from Mojarra to MyFaces

狂风中的少年 提交于 2020-01-16 07:16:05
问题 Currently we have a problem when we try to deploy our Java EE 7 application to a glassfish 4.0 server. Before we changed the JSF implementation from JSF Mojarra 2.2.0 to MyFaces 2.2.2 it worked pretty well. Heres the error log: >2014-03-24T16:05:42.356+0100|Schwerwiegend: Unable to obtain InjectionProvider from init time FacesContext. Does this container implement the Mojarra Injection SPI? 2014-03-24T16:05:42.357+0100|Schwerwiegend: Die Anwendung wurde bei Systemstart nicht einwandfrei

binding on p:dataTable which is included multiple times causes ID unqiueness exceptions

。_饼干妹妹 提交于 2020-01-16 01:55:48
问题 I'm attempting to use a special PrimeFaces data exporter implementation as being used in this answer: https://stackoverflow.com/a/14413932/396732 Our use case however is a little more complex, e.g. using Facelets to show the respective datatable for export, which has row expansions with sub tables in them. insiderListManagerDialogs.xhtml: <ui:include src="insiderListManagerListDialog.xhtml"> <ui:param name="idPrefix" value="il-emp" /> <ui:param name="widgetVarPrefix" value="ilEmp" /> <ui