Details
-
Type:
New Feature
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: EE-4.2.0.GA
-
Component/s: ACE-Components
-
Labels:None
-
Environment:ICEfaces 4.2+ ace:schediule component
-
Assignee Priority:P2
-
Affects:Sample App./Tutorial
Description
The export would need to be configurable to export a date range and also in terms of which view to export as (Day, Week, Month).
-
- noBean1.PNG
- 7 kB
-
- noBean2.PNG
- 10 kB
-
- ice11238-1.png
- 61 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
r51443: added new fieldsToExport, dateFormat, exportAllEvents, sortBy, and sortAscending attributes and functionality to ace:scheduleExporter component
r51445: added ace:scheduleExporter showcase demos
Let's move the "Export File" button above the schedule component so you don't have to scroll down to see it in both demos pls.
Otherwise, looks good.
r51472: moved export button above schedule
Make it look like the ace:dataExporter demo config/export panel.
r51503: made exporter controls look nicer
Started testing with ICEfaces 4 trunk r51558, Tomcat 8, IE 11, FF 47, Chrome 57.
Issues found:
1.) The bean code used in the showcase ace:scheduleExporter > Overview and Configuration Demos is not rendered. Tab is empty.
2.) In both showcase demos no schedule data is exported the when toggling to week or day mode unless the week or day is changed with the navigation arrows first.
To reproduce issue 2:
1.) Open showcase in a cache cleared browser and go to the ace:schedule > Overview demo
2.) In the configuration panel toggle the "Week" or "Day" radio button
3.) Press the Export File button. Open the file to view it. Only the file headers are shown such as Title, Start Date, Location etc..
4.) Using the schedule navigation arrows toggle either forward or back one day or week.
5.) Press Export File button. Open the file, now the exported events are shown.
r51562: fix to update the current date values from the request parameters before computing the current date in view
This fixes issue 2 above.
As for issue 1, I'm able to see the code of xhtml and java resources in the source code tabs. Is this still an issue for you?
Checked for missing bean source code using the latest showcase.war from IF4 continuous Jenkins build 2560. There is still no bean code rendered in the source code section in either of the ace:scheduleExporter demos. xhtml code is present, just the bean code is missing.
See attached screen shots noBean1.png and noBean2.png.
Server log:
26-May-2017 09:26:04.785 SEVERE [http-apr-8080-exec-4] org.icefaces.samples.show case.util.SourceCodeLoaderConnection.get Broken URL for the source code loader ( http://localhost:8080/showcase/sourcecodeStream.html?path=), check your web.xml. java.io.IOException: Server returned HTTP response code: 500 for URL: http://loc alhost:8080/showcase/sourcecodeStream.html?path=%2FWEB-INF%2Fclasses%2Forg%2Fice faces%2Fsamples%2Fshowcase%2Fexample%2Face%2FscheduleExporter%2FscheduleExporter ConfigurationBean.java at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon nection.java:1626) at java.net.URLConnection.getContent(URLConnection.java:748) at java.net.URL.getContent(URL.java:1051) at org.icefaces.samples.showcase.util.SourceCodeLoaderConnection.get(Sou rceCodeLoaderConnection.java:155) at org.icefaces.samples.showcase.util.SourceCodeLoaderConnection.get(Sou rceCodeLoaderConnection.java:40) at javax.el.MapELResolver.getValue(MapELResolver.java:65) at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELR esolver.java:176) at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELRe solver.java:203) at org.apache.el.parser.AstValue.getValue(AstValue.java:169) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:1 84) at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpress ion.java:109) at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper. java:194) at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper. java:182) at javax.faces.component.UIOutput.getValue(UIOutput.java:174) at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(Ht mlBasicInputRenderer.java:205) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue( HtmlBasicRenderer.java:355) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBa sicRenderer.java:164) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java: 920) at org.icefaces.ace.util.Utils.renderChild(Utils.java:71) at org.icefaces.ace.util.Utils.renderChildren(Utils.java:53) at org.icefaces.ace.util.Utils.renderChild(Utils.java:69) at org.icefaces.ace.component.tabset.TabSetRenderer.renderTabBody(TabSet Renderer.java:460) at org.icefaces.ace.component.tabset.TabSetRenderer.doTab(TabSetRenderer .java:541) at org.icefaces.ace.component.tabset.TabSetRenderer.doTabs(TabSetRendere r.java:481) at org.icefaces.ace.component.tabset.TabSetRenderer.recursivelyRenderSaf e(TabSetRenderer.java:344) at org.icefaces.ace.component.tabset.TabSetRenderer.recursivelyRenderSaf e(TabSetRenderer.java:352) at org.icefaces.ace.component.tabset.TabSetRenderer.encodeEnd(TabSetRend erer.java:281) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java: 920) at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java :78) at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.j ava:62) at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRen derer.java:294) at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRend erer.java:141) at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRendere r.java:77) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java: 920) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863) at javax.faces.render.Renderer.encodeChildren(Renderer.java:176) at org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWr apper.java:41) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase. java:890) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive( HtmlBasicRenderer.java:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(Group Renderer.java:114) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase. java:890) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive( HtmlBasicRenderer.java:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(Group Renderer.java:114) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase. java:890) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive( HtmlBasicRenderer.java:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(Group Renderer.java:114) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase. java:890) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859) at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPar tialViewContext.java:300) at javax.faces.context.PartialViewContextWrapper.processPartial(PartialV iewContextWrapper.java:219) at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:1004) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView (FaceletViewHandlingStrategy.java:432) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewH andler.java:134) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrap per.java:337) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePha se.java:120) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52 ) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica torBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAcce ssLogValve.java:616) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:522) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp 11Processor.java:1095) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process( AbstractProtocol.java:672) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpo int.java:2500) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoin t.java:2489) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskTh read.java:61) at java.lang.Thread.run(Thread.java:745) 26-May-2017 09:26:11.312 SEVERE [http-apr-8080-exec-8] org.icefaces.samples.show case.util.SourceCodeLoaderConnection.get Broken URL for the source code loader ( http://localhost:8080/showcase/sourcecodeStream.html?path=), check your web.xml.
Verified issue 2 resolved ICEfaces 4 trunk r51564, Tomcat 8, MS Edge, IE 11, 10, 9, 8, FF 47, Chrome 57.
ICEfaces 4 trunk r51570. Bean code still missing from ace:scheduleExporter showcase demos. See attached screenshots and server log as above.
It's weird. I still see the bean source doe being loaded correctly. I updated to latest revision and redeployed the showcase app, as in the attached screenshot.
With which server and which browser did you test?
I've been testing with Tomcat 7. Maybe that has something to do with it.
Confirmed the missing bean code issue occurs only when tested with Tomcat 8.0.15 and 8.0.32 (possibly other 8.x versions), and does not occur when tested with Tomcat 7.
r51513: fixed letter casing of ace:scheduleExporter resources, in order to prevent them from not being found on Tomcat 8
Verified missing bean code ICEfaces 4 trunk r51631, Tomcat 8/7, MS Edge, IE 11, 10, 9, 8,Chrome 59, FF 47.
r51414: added new ace:scheduleExporter component
This is a fully working first version. Other features/attributes that still need to be added are exportAllEvents, fieldsToExport, dateFormat, and sortBy.
A quick way to test is to add the following tag to any ace:schedule showcase demo: