Generate docx, odt report with Struts2 XDocReport Result
Hi Struts2 User, If you need to generate docx (MS Word), odt (OpenOffice) report with Struts2 (like Jasper), you can use XDocReporthttp://code.google.com/p/xdocreport/ where you can design your odt, docx report with MS Word or OpenOffice by using Velocity/Freemarker syntax to set fields to replace (no need to write your report with XML like Jasper or use private designer, the designer of the report is MS Word or OpenOffice). Note just that XDocReport manages simple report (replace fields, manage loop, condition, etc). XDocReport provides org.apache.struts2.views.xdocreport.XDocReportResult which is a Struts2 Result to generate report with docx, odt and convert it to another format PDF/XHTML if you wish. For XDocReport Struts2 Result please read http://code.google.com/p/xdocreport/wiki/DocxReportingStruts2 We have used org.apache.struts2.views.xdocreport package name because if Struts2 is interested with the XDocReport Result, we can gives you the code (like you have done with Struts2 Jasper) Struts2 developers, if you are interested to host the code of the Struts2 Result XDocReport, don't hesitate to contact me. We use Maven to build XDocReport and you can use pom on the Maven central repository to have dependencies to XDocReport. Regards Angelo
Help to improve Struts2 IDE, eclipse plugins
Hi Struts2 Team, I had posted a message to the user forum about my Struts2 IDE eclipse plugin which manage (completion, validation, hyperlink, text hover, Ctrl+Shift+G) struts.xml, JSP taglib and XWork validator. You can see documentation at https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/docs/org.appache.struts2.ide.odt (or for RTF https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/docs/org.appache.struts2.ide.rtf ) I managing wilcard but I would like know if you ar einterested with this Plugins? I'm using Struts2 mailer sample to see several cases with struts.xml but I would like know if there is somebody which can validate the plugins and tell me how I could improve it. Today there is NOT Update site, you must get from SVN projects and start a second Eclipse, but if you wish I could create one just to testing. If you are not intersested, tell me and I will stop to spam you. Thank a lot for your help. Regards Angelo
Re: Help to improve Struts2 IDE, eclipse plugins
Hi Frans, Many thanks for your reply. Cool:) But we are in phase learning how to start create plugins Ok, I could help you if you wish. Our main interest for rest based plugins Im' neebie with Struts2. Coudl you give me some links to see what you mean. I will add u to chat about this work Where can I chat together about that? But if complete that will be awesome if we get struts ide as complete as possible, this can increase struts popularity Yes it's the goal. My goal is to show that WTP/XML Search could be interesting for WTP Eclipse. I have managed XML Jetty files too and Jetty fondation seems intersted too. Have you seen doc about Struts IDE? Do you like it? I have almost finished to manage Struts2 mailer cases (I must finish wilcard) and improve some features (show in completion for properties only one key and not key for _fr, _en... properties, manage field name with several getter...) I tell me too if having OGNL support could be interesting? /m/ -Original Message- From: Angelo zerr angelo.z...@gmail.com Date: Thu, 3 Feb 2011 09:58:35 To: dev@struts.apache.org Reply-To: Struts Developers List dev@struts.apache.org Subject: Help to improve Struts2 IDE, eclipse plugins Hi Struts2 Team, I had posted a message to the user forum about my Struts2 IDE eclipse plugin which manage (completion, validation, hyperlink, text hover, Ctrl+Shift+G) struts.xml, JSP taglib and XWork validator. You can see documentation at https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/docs/org.appache.struts2.ide.odt (or for RTF https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/docs/org.appache.struts2.ide.rtf ) I managing wilcard but I would like know if you ar einterested with this Plugins? I'm using Struts2 mailer sample to see several cases with struts.xml but I would like know if there is somebody which can validate the plugins and tell me how I could improve it. Today there is NOT Update site, you must get from SVN projects and start a second Eclipse, but if you wish I could create one just to testing. If you are not intersested, tell me and I will stop to spam you. Thank a lot for your help. Regards Angelo
Re: Akrogen plugin eclipse to generate Struts 2.x components
I have translated the page of the 1.0.2 version of Akrogen you can go at http://akrogen.sourceforge.net/1_0_2/index.htmlhttp://akrogen.sourceforge.net/fr/1_0_2/index.html Regards Angelo 2007/3/23, Angelo zerr [EMAIL PROTECTED]: Hi, I post my message in this forum, because perhaps somebody would be interset with my project. I'm developping plugin eclipse Akrogen http://akrogen.sourceforge.net/index.html which is able to generate code. With Akrogen you can write your wizard page with XML. But I'm developping new version of Akrogen to have capability to describes the wizard page with XUL by using Wazzabi library http://wiki.wazaabi.org/index.php/Main_Page which is able to transform XUL description into SWT. You can see screenshot at http://akrogen.sourceforge.net/fr/1_0_2/index.html (sorry it's only frensh, but I can translate it if you have interested). Akrogen looks like EclipseWork, but with Akrogen you can : * describes your wizard page with XUL (DONE). * describe the wizard page with XML component (XUL) and after you can write XML Wizard which call XML component and synchronize parameters between several components (TODO). * customize template engine (add your own template engine). By default Akrogen support Velocity Freemarker and XSLT (DONE). * manage XML context (DONE), properties context (TODO) and JavaClass context(TODO) * generate Wizard page by using the selected file with loop marco (ex : you select hibernate mapping and you can loop on property to display a combo which display the property with checkbox) (TODO). * manage command (TODO). When you click into finsh button of the wizard, it launch Ant target (It avoid to edit a properties file). * manage listener (TODO) to update the value of the textbox with another value of the textbox (ex : you type package name, it update the textbox directory ou by replacing . with /) Akrogen use Catalog (Templates, Components, Wizards,...) which is linked with Eclipse project. So I would like create Struts 2.x catalog which will contain all the component used into Struts 2.x (Interceptor, Result, DOJO,...). So I'm searching somebody to write the template, component,... for Struts 2.x. If you have interest with my project you can install the current Akrogen version (see http://akrogen.sourceforge.net/plugin_installation.html) (You cannot describes the component with XUL with this version) BUT this version will change soon, as soon as I have stable 1.0.2 version. You can install it with local Site (Update manager) that you can found here http://sourceforge.net/project/showfiles.php?group_id=164259 If you are interested to help me giving some idea, developping the Akrogen plugin or writing templates, components for Struts 2.x, tell me. I hope that somebody will be interest with my post. Regards Angelo
Re: Akrogen plugin eclipse to generate Struts 2.x components
Sorry for my error you can go at http://akrogen.sourceforge.net/1_0_2/index.html 2007/3/23, Angelo zerr [EMAIL PROTECTED]: I have translated the page of the 1.0.2 version of Akrogen you can go at http://akrogen.sourceforge.net/1_0_2/index.htmlhttp://akrogen.sourceforge.net/fr/1_0_2/index.html Regards Angelo 2007/3/23, Angelo zerr [EMAIL PROTECTED]: Hi, I post my message in this forum, because perhaps somebody would be interset with my project. I'm developping plugin eclipse Akrogen http://akrogen.sourceforge.net/index.html which is able to generate code. With Akrogen you can write your wizard page with XML. But I'm developping new version of Akrogen to have capability to describes the wizard page with XUL by using Wazzabi library http://wiki.wazaabi.org/index.php/Main_Page which is able to transform XUL description into SWT. You can see screenshot at http://akrogen.sourceforge.net/fr/1_0_2/index.html (sorry it's only frensh, but I can translate it if you have interested). Akrogen looks like EclipseWork, but with Akrogen you can : * describes your wizard page with XUL (DONE). * describe the wizard page with XML component (XUL) and after you can write XML Wizard which call XML component and synchronize parameters between several components (TODO). * customize template engine (add your own template engine). By default Akrogen support Velocity Freemarker and XSLT (DONE). * manage XML context (DONE), properties context (TODO) and JavaClass context(TODO) * generate Wizard page by using the selected file with loop marco (ex : you select hibernate mapping and you can loop on property to display a combo which display the property with checkbox) (TODO). * manage command (TODO). When you click into finsh button of the wizard, it launch Ant target (It avoid to edit a properties file). * manage listener (TODO) to update the value of the textbox with another value of the textbox (ex : you type package name, it update the textbox directory ou by replacing . with /) Akrogen use Catalog (Templates, Components, Wizards,...) which is linked with Eclipse project. So I would like create Struts 2.x catalog which will contain all the component used into Struts 2.x (Interceptor, Result, DOJO,...). So I'm searching somebody to write the template, component,... for Struts 2.x. If you have interest with my project you can install the current Akrogen version (see http://akrogen.sourceforge.net/plugin_installation.html) (You cannot describes the component with XUL with this version) BUT this version will change soon, as soon as I have stable 1.0.2version. You can install it with local Site (Update manager) that you can found here http://sourceforge.net/project/showfiles.php?group_id=164259 If you are interested to help me giving some idea, developping the Akrogen plugin or writing templates, components for Struts 2.x, tell me. I hope that somebody will be interest with my post. Regards Angelo
Re: Struts 2 AJAX only with dojo?
Thank you for your answers. I undrestand better why Struts2 use dojo. I think It's very important to explain in the Struts2 documentation the dojo choice (portlet environment,...), because a lot of people use prototype/scriptaculous (like AjaxTags). I forwarded your mail into Rails forums, to see if there is a solution to use prototype into environnment portlet. If I have not a solution I will try new version of dojo to see how it works. But it seems that Scriptaculous effect is better than dojo like drag/drop. In my open source project, I use a great treeview tafeltree based on Srciptaculous) see demo at : http://jscontrolstags.sourceforge.net/controls/treeview/treeview.html There is a lot of functionnality, like open with AJAX, drag/drop, copy tree node, edit node,... I must study dojo before. Thank you again 2006/11/5, Musachy Barroso [EMAIL PROTECTED]: I had never used Dojo before I started playing with struts. The thing I didn't liked was the lack of documentation, but with 0.4 they improved it a lot (http://dojotoolkit.org/api/?). Another thing is that everything seems to change really fast, but it is shaping out, and the namespaces are a welcomed addition. When my patch gets through I will start working on the documentation of the widgets that are already implemented, and start working on the autocomplete widget. So Angelo, if you decide to take Dojo for a spin, there are plenty of things to do over here :) musachy On 11/4/06, Frank W. Zammetti [EMAIL PROTECTED] wrote: On Sat, November 4, 2006 5:29 pm, Martin Cooper wrote: It's not a question of which one has the most widgets. Prototype, and hence script.aculo.us, is fragile, especially in a portlet environment, so we cannot, in good conscience, encourage people to use that to build robust enterprise-ready applications. Since Struts supports portlet development, we don't want to have to say oh, but you shouldn't use our AJAX tags if you're building portlets. Many people are rather fond of Prototype, so I think it might be a good thing to explain why Martin calls it fragile, for those that might not be aware... Prototype modifies some intrinsic Javascript objects. Arrays for example have some additional methods, among other things. Some of this can conceivably (and in practice sometimes) break other code that depends on those intrinsic objects working a certain way. Especially in a portlet environment, where you aren't in complete control of the full page, this can lead to some very unexpected consequences... it would really suck to create a portlet that your company gives to its clients that you've tested every which way you can and found it to work, then find it breaks in your clients' portals because they have some portlet you don't and which doesn't play nice with these changes Prototype makes. Another problem with Prototype is that it isn't properly (or at least fully) namespaced... for example, Prototype defines a Field and Form object in global scope (well, it DID... I haven't looked to see if recent versions may have corrected this). Especially these two examples, which are clearly pretty common names that other developers may choose as well, can easily lead to conflicts. Again, in a portal environment, where you aren't developing a complete page and therefore can't be sure what might be present on the page at any given time, you can run into some big problems because of this. I don't think anyone is saying Prototype is inherently bad... if you are writing a typical webapp where you are in control of the entire page, you can quite easily work around these issues, or never run into them in the first place, and be perfectly happy with Prototype, and to be sure, many people are (as well as scriptaculous, and others that use Prototype). In a portal environment though, the rules of the game are quite different, and Prototype can lead to issues because of these two points. I'm not sure why you say you can't write valid XHTML with Dojo; you can. There are three ways of adding Dojo widgets to your apps. Yes, not all of them will give you XHTML that will validate, but at least one of them does. I think Angelo is clearly referring to the markup approach to widget creation... correct me if I'm wrong Martin, but isn't it in fact true that with that approach you cannot write valid XHTML because of widgetId, dojoType, etc? Of course your right, that's not the only way to use widgets... but you mentioned three ways... out of curiosity, what's the third, aside from markup and programmatic creation? And as for effects, they're getting better all the time. Have you tried 0.4yet? Indeed... with Dojo, it's important to realize that it's still relatively early in its lifecycle... with each new versions comes pretty big improvements... I looked at it for the first time roughly a year or so ago, and it looked interesting, but very immature (I in fact wrote a
Struts 2 AJAX only with dojo?
Hi, I downloaded and studied struts 2, and I find the new concepts of struts2 (I'm struts 1.2.9 user) very pleasant. In struts2 distribution, UI Ajax component are based on dojo toolkit. My question is : dojo will be the only ajax implementation in struts2? Or have you intention to integrate other AJAX frameworks like prototype, scriptaculous? I send my question because I'm developping taglib for manage ui with Ajax (slider, treeview ) on my project JSControlsTags at http://jscontrolstags.sourceforge.net/ and I have intention to develop AjaxMessageQueue to receive for instance logs of log4j into client console. I would like see how JSControlsTags could add new control for struts2, but my project is based on Prototype and Scriptaculous libraries (not dojo). Thank you for your answer Regards Angelo
Re: Struts 2 AJAX only with dojo?
Thank you frank for your answer. According to your explanation, I must create new theme scriptaculous which extends xhtml theme. There is compete between several AJAX framework like dojo, prototype,... I'm under the impression that Struts2 want use dojotoolkit. What's Struts2 choice? Use only dojo? Integrate another framework, like prototype/scriptaculous? Regards Angelo Struts 2 will use 2006/11/4, Frank W. Zammetti [EMAIL PROTECTED]: As I understand it, and someone will correct me if I'm wrong, with Struts 2 you can create a new theme to use whatever toolkit you'd like. Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! On Sat, November 4, 2006 11:57 am, Angelo zerr wrote: Hi, I downloaded and studied struts 2, and I find the new concepts of struts2 (I'm struts 1.2.9 user) very pleasant. In struts2 distribution, UI Ajax component are based on dojo toolkit. My question is : dojo will be the only ajax implementation in struts2? Or have you intention to integrate other AJAX frameworks like prototype, scriptaculous? I send my question because I'm developping taglib for manage ui with Ajax (slider, treeview ) on my project JSControlsTags at http://jscontrolstags.sourceforge.net/ and I have intention to develop AjaxMessageQueue to receive for instance logs of log4j into client console. I would like see how JSControlsTags could add new control for struts2, but my project is based on Prototype and Scriptaculous libraries (not dojo). Thank you for your answer Regards Angelo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] JSPTabControl taglib (was Re: Bearing down on Struts Action 1.3.2)
Ok thank you Ted, you for your adwice. Angelo 2006/4/28, Ted Husted [EMAIL PROTECTED]: Thanks for mentioning this project, Angelo. In the future, you can start a new thread for product announcements. It's also helpful to include [ANN] or [ANNOUNCE]' in the subject line. When you are ready for a stable release, the user@struts.apache.org list is usually the best place to announce extensions and taglibs. -Ted. On 4/27/06, Angelo zerr [EMAIL PROTECTED] wrote: Hello; I mail you to announce JSPTabControl project is created. JSPTabControl is JSP taglib for manage tabs in your JSP. This taglib generate tabs with pure CSS tabs technique (using li and ul). JSPtabControl give you several features : 1. tab control (body and header) and tab page (body and header) can be easily customized with CSS. 2. titles of tab header page can be localized, by using Struts AplicationResources or Resource Bundle file properties. 3. select a tab with JAVA code (for example in your action struts). 4. keep last tab selected after posting form. 5. set a state (INVISIBLE, READ-ONLY, FORBIDDEN, ERROR, ...) with JAVA code for a particulary tab page : 5.1. to manage render of tab page (header and body) by using CSS. 5.2. to execute function javascript swith events (eg : when tab page has FORBIDDEN state, you could execute javascrit message alert You are not authorized to access this tab! when user click in this tab page). You can manage any states. States are configurate (Style class and Javascript to execute) into XML file. States can be used for exemple to manage role in your WEB Application. 6. use EL syntax (see JSTL specification) in JSPTabControl attributes taglib (with, height,...) to evaluate JSP expressions dynamically. You can find JSPTabControl WEB site at http://jsptabcontrol.sourceforge.net/ and download it at http://sourceforge.net/project/showfiles.php?group_id=161371 Regards Angelo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bearing down on Struts Action 1.3.2
Hello; I mail you to announce JSPTabControl project is created. JSPTabControl is JSP taglib for manage tabs in your JSP. This taglib generate tabs with pure CSS tabs technique (using li and ul). JSPtabControl give you several features : 1. tab control (body and header) and tab page (body and header) can be easily customized with CSS. 2. titles of tab header page can be localized, by using Struts AplicationResources or Resource Bundle file properties. 3. select a tab with JAVA code (for example in your action struts). 4. keep last tab selected after posting form. 5. set a state (INVISIBLE, READ-ONLY, FORBIDDEN, ERROR, ...) with JAVA code for a particulary tab page : 5.1. to manage render of tab page (header and body) by using CSS. 5.2. to execute function javascript swith events (eg : when tab page has FORBIDDEN state, you could execute javascrit message alert You are not authorized to access this tab! when user click in this tab page). You can manage any states. States are configurate (Style class and Javascript to execute) into XML file. States can be used for exemple to manage role in your WEB Application. 6. use EL syntax (see JSTL specification) in JSPTabControl attributes taglib (with, height,...) to evaluate JSP expressions dynamically. You can find JSPTabControl WEB site at http://jsptabcontrol.sourceforge.net/ and download it at http://sourceforge.net/project/showfiles.php?group_id=161371 Regards Angelo