Re: [FRIDAY] WebDev Pushmi-Pullyu
respect for the http://www.ghettojava.com/blog/default/ . 2007/3/9, Ted Husted <[EMAIL PROTECTED]>: On 3/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > There is also much confusion across the board regarding WW and S2. Are they > the same? Is support dead for S1? Unless you have had your nose pressed up > to the incubator for the past year, It really is confusing. Is there something that we didn't cover here? * http://struts.apache.org/roadmap.html > What about publishing a Cook Book or bolster up the guides and tutorials to > reveal more than snippets of experimental code. What about a "book" on the > framework? I love the motivation behind this effort, but I actually wonder > if S2 was released prematurely. I think we'd all love to see things like that, but we need volunteers to step up and do the work. AFAIK, all of the committers work fulltime elsewhere during the day, and we give to open source what we can, after hours, on our own dime. If anyone would like to join in the fun, the best place to start is the How to Help FAQ. * http://struts.apache.org/helping.html -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need more comprehensive AJAX Implementation Instructions
[EMAIL PROTECTED] wrote: I have to agree with stanlick with this. I would agree more work need to be done. I have abandoned in my project the more complex themes of struts and kept it in the "simple" theme (with customized tag templates here and there) because of these "" tags coming out of nowhere. If you imply a deduction that a tag implies in the presence of a and that are in truth [label] i'm imposing an obsolete html table structure to a page. What if I wanted to use and ? use the xhtml_css theme What if I wanted to use a different table structure? Then you have the opportunity to customize each theme to your particular and specific need (two fields inside a simple tag, for instance ?) Also, is counter-intuitive for html users that a actually renders a table, instead of simply render a tag. I haven't looked lately, but I imagine there is a tag in there somewhere, otherwise I don't see how it would work. Even in the dojo theme, I believe the As for documentation, I recommend and effort to map the relation between tag x freemarker template so this tag customization becomes easier without having to browse the struts.view.jsp code. Although this would be a worthwhile documentation effort, I'm not convinced that it is that necessary. Each of the freemarker templates are named after the tag, and I have never had to look at the tags java code in order to determine which template is rendered. Dave Newton <[EMAIL PROTECTED]> 09/03/2007 18:40 Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: Need more comprehensive AJAX Implementation Instructions --- [EMAIL PROTECTED] wrote: Also, I have yet to see what an Action class might actually look like to handle the asynchronous call. It looks like any other Action. (BTW, Tiles is supported in S2 via the Tiles plugin, but Tiles 2 is still a bit fluxful.) d. Don't get soaked. Take a quick peek at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need more comprehensive AJAX Implementation Instructions
This is crazy! Are you suggesting that maybe a FORM tag is written if you modify the templates? I would understand if you said maybe there is not a FORM tag generated if you DO modify the templates! Any solid framework should be usable first and modifiable second. Is the framework usable without writing framework code first? Scott On 3/10/07, Ian Roughley <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: > I have to agree with stanlick with this. > I would agree more work need to be done. > I have abandoned in my project the more complex themes of struts and kept > it in the "simple" theme (with customized tag templates here and there) > because of these "" tags coming out of nowhere. > If you imply a deduction that a tag implies in the presence of a > and that are in truth > [label] i'm imposing an > obsolete html table structure to a page. What if I wanted to use and > ? use the xhtml_css theme > What if I wanted to use a different table structure? > Then you have the opportunity to customize each theme to your particular and specific need > (two fields inside a simple tag, for instance ?) > Also, is counter-intuitive for html users that a actually renders > a table, instead of simply render a tag. > I haven't looked lately, but I imagine there is a tag in there somewhere, otherwise I don't see how it would work. Even in the dojo theme, I believe the > As for documentation, I recommend and effort to map the relation between > tag x freemarker template so this tag customization becomes easier without > having to browse the struts.view.jsp code. > Although this would be a worthwhile documentation effort, I'm not convinced that it is that necessary. Each of the freemarker templates are named after the tag, and I have never had to look at the tags java code in order to determine which template is rendered. > > > > Dave Newton <[EMAIL PROTECTED]> > 09/03/2007 18:40 > Please respond to > "Struts Users Mailing List" > > > To > Struts Users Mailing List > cc > > Subject > Re: Need more comprehensive AJAX Implementation Instructions > > > > > > > --- [EMAIL PROTECTED] wrote: > >> Also, I have yet to see what an Action class might >> actually look like to handle the asynchronous call. >> > > It looks like any other Action. > > (BTW, Tiles is supported in S2 via the Tiles plugin, > but Tiles 2 is still a bit fluxful.) > > d. > > > > > > Don't get soaked. Take a quick peek at the forecast > with the Yahoo! Search weather shortcut. > http://tools.search.yahoo.com/shortcuts/#loc_weather > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- Scott [EMAIL PROTECTED]
Re: Need more comprehensive AJAX Implementation Instructions
Let me break this down for you: If you use the xhtml theme, it generates a table for the form, an each input element is placed on a row with its label. If you use the simple theme, it is just that, a form with input elements. If you want to use divs, you can just overwrite one of the themes if you want to make it reusable OR you can use the simple theme and put divs inside. Do you have questions? Ask. Do you have suggestions? Please post them. Do you want to help? Submit a CLA and you will be able to edit the wiki. "Now please, with sugar on top", stop trolling. musachy On 3/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: This is crazy! Are you suggesting that maybe a FORM tag is written if you modify the templates? I would understand if you said maybe there is not a FORM tag generated if you DO modify the templates! Any solid framework should be usable first and modifiable second. Is the framework usable without writing framework code first? Scott On 3/10/07, Ian Roughley <[EMAIL PROTECTED]> wrote: > > > > [EMAIL PROTECTED] wrote: > > I have to agree with stanlick with this. > > > I would agree more work need to be done. > > I have abandoned in my project the more complex themes of struts and > kept > > it in the "simple" theme (with customized tag templates here and there) > > because of these "" tags coming out of nowhere. > > If you imply a deduction that a tag implies in the presence of > a > > and that are in truth > > [label] i'm imposing > an > > obsolete html table structure to a page. What if I wanted to use > and > > ? > use the xhtml_css theme > > What if I wanted to use a different table structure? > > > Then you have the opportunity to customize each theme to your particular > and specific need > > (two fields inside a simple tag, for instance ?) > > Also, is counter-intuitive for html users that a actually > renders > > a table, instead of simply render a tag. > > > I haven't looked lately, but I imagine there is a tag in there > somewhere, otherwise I don't see how it would work. Even in the dojo > theme, I believe the > > As for documentation, I recommend and effort to map the relation between > > tag x freemarker template so this tag customization becomes easier > without > > having to browse the struts.view.jsp code. > > > Although this would be a worthwhile documentation effort, I'm not > convinced that it is that necessary. Each of the freemarker templates > are named after the tag, and I have never had to look at the tags java > code in order to determine which template is rendered. > > > > > > > > Dave Newton <[EMAIL PROTECTED]> > > 09/03/2007 18:40 > > Please respond to > > "Struts Users Mailing List" > > > > > > To > > Struts Users Mailing List > > cc > > > > Subject > > Re: Need more comprehensive AJAX Implementation Instructions > > > > > > > > > > > > > > --- [EMAIL PROTECTED] wrote: > > > >> Also, I have yet to see what an Action class might > >> actually look like to handle the asynchronous call. > >> > > > > It looks like any other Action. > > > > (BTW, Tiles is supported in S2 via the Tiles plugin, > > but Tiles 2 is still a bit fluxful.) > > > > d. > > > > > > > > > > > > > Don't get soaked. Take a quick peek at the forecast > > with the Yahoo! Search weather shortcut. > > http://tools.search.yahoo.com/shortcuts/#loc_weather > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > -- Scott [EMAIL PROTECTED] -- "Hey you! Would you help me to carry the stone?" Pink Floyd
Re: Need more comprehensive AJAX Implementation Instructions
--- [EMAIL PROTECTED] wrote: > Are you suggesting that maybe a FORM tag is written > if you modify the templates? > > On 3/10/07, Ian Roughley wrote: >> I haven't looked lately, but I imagine there is a >> tag in there somewhere, otherwise I don't see >> how it would work. I think he's suggesting there's a form tag, which obviously there is. --- [EMAIL PROTECTED] continued: > Any solid framework should be usable first and > modifiable second. Is the framework usable without > writing framework code first? I have two S2 apps behind me and a third on the way (hopefully a public-facing site, finally!) I'm not sure what you mean by "framework code", but I haven't had to fork S2 yet. I've actually found it quite capable and *very* easy to develop with, and WebWork has been around for quite awhile. As Musachy said, if you have specific issues, file a report on JIRA or enumerate them. I am not a committer or anything but I am happy to work on documentation issues as time permits. I am still not sure what specific issues you're having with the Ajax documentation, but if you have suggestions, make them: the docs were enough to get me started but can always be better. d. TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. http://tv.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logic:iterate tag!
OK, so you have an object in session scope under the key 'AFFFiles', which is an ArrayList containing FileObj instances. Did you mean to fill it with the FileReceiptFormBean instances instead maybe? If not, what properties does a FileObj have? L. Swaminathan Subramanian wrote: Hi Laurie! Thanks for the prompt response. I am pasting code snippets at every level (ActionForm, Action class and view). This did not work. Please let me know if I am missing something here. Thanks again! //*ActionForm class //core java classes import java.util.ArrayList; import java.util.Collection; // Java extension classes import javax.servlet.http.HttpServletRequest; // third-party classes import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; // local project classes import com.foo.foo1.web.Constants; import com.foo.foo1.soapcalls.FileObj; public final class FileReceiptFormBean extends ActionForm { // File specific property variables private String fileName; private String fileType; private String fileSize; private String fileModifiedDate; private String multipleFiles; private String fileURL; private ArrayList alObjFile; private FileObj objFile; public String getFileName() { return (this.fileName); } public void setFileName(String fileName) { this.fileName = fileName; } public String getfileType() { return (this.fileType); } public void setfileType(String fileType) { this.fileType = fileType; } public String getfileSize() { return (this.fileSize); } public void setfileSize(String fileSize) { this.fileSize = fileSize; } public String getfileModifiedDate() { return (this.fileModifiedDate); } public void setfileModifiedDate(String fileModifiedDate) { this.fileModifiedDate = fileModifiedDate; } public String getmultipleFiles() { return (this.multipleFiles); } public void setmultipleFiles(String multipleFiles) { this.multipleFiles = multipleFiles; } public String getfileURL() { return (this.fileURL); } public void setfileURL(String fileURL) { this.fileURL = fileURL; } public ArrayList getAlObjFile() { return (this.alObjFile); } public void setAlObjFile(ArrayList alObjFile) { this.alObjFile = alObjFile; } public FileObj getObjFile() { return (this.objFile); } public void setObjFile(FileObj FileObj) { this.objFile = objFile; } } //*End ActionForm class //*Action class ArrayList alAFFFile = new ArrayList(); FileObj[] objFiles = null; objFiles = intf.getFiles(ctx, filename); String affUrl = ""; for ( int i=0; i < objAFFFiles.length; i++) { affUrl = objFiles[i].fileURL; FileReceiptFormBean frfBean = new FileReceiptFormBean(); frfBean.setFileName(objFiles[i].fileName); frfBean.setfileType(objFiles[i].fileType); frfBean.setfileSize(objFiles[i].fileSize); frfBean.setfileModifiedDate(objFiles[i].fileModifiedDate); frfBean.setmultipleFiles(objFiles[i].multipleFiles); objFiles[i].fileURL = LoadFileUrlCreator.create(affUrl, "application/zip", true); frfBean.setfileURL(objAFFFiles[i].fileURL); alFile.add(objAFFFiles[i]); } session.setAttribute("AFFFiles", alAFFFile); //*End Action class //*view.jsp - Original Message From: Laurie Harper <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Thursday, March 8, 2007 5:11:20 PM Subject: Re: logic:iterate tag! Swaminathan Subramanian wrote: All, I am working on application using Struts 1.0. I am trying to display an ArrayList of complex objects using the logic:iterate tag.. Here's some more details - FileObj fileName fileSize fileType fileModifiedDate Action class FileObj[] objFiles = null; objFiles = intf.getFiles(ctx, filename); I tried several approaches as mentioned in different posts but I am not able to display this ArrayList of FileObjects. If somebody could outline a list of steps to be followed to do this, I would apprecuate it. Thanks in advance! -SS Well, you'll need to expose the objFiles property to the JSP somehow (by putting it in request/session scope, or in your form bean, for example). Asuming you've done that, and that you have appropriate getters on your FileObj, you can access it like this: L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a PS3 game guru. Get your game face on with the latest PS3 ne
Re: [S2] Struts-Faces: Tomahawk tree
The discussion of using the Tomahawk components without Tiles had raised my hopes. My app uses Tiles extensively without JSF, so removing Tiles from the app is not practical. However based on Rodrigo's comment, I was hoping that removing Tiles from the relevant page only would work. No such luck. As long as Tiles is configured in the app, the advanced Tomahawk components will not load, with the "MyFacesExtensionFilter" config problem previously discussed.This is a really serious problem for me. Has anyone found a solution? I did not find any bug report on this issue. Thanks, Ray Clough [EMAIL PROTECTED] " Rodrigo Pereira wrote: > Are you using Tiles? > I guess the issue relies here. If I try to use Tomahawk w/o Tiles, no > problem, but when I use tiles, booom, I get an error. > > Thanks, > Rodrigo Pereira > " -- View this message in context: http://www.nabble.com/Struts-Faces%3A-Tomahawk-tree-tf3339562.html#a9416161 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]