[OS-webwork] Velocity Views
For JSP views, its simple enough to simply forward to them, since they are able to retrieve the required data to render. Velocity templates are dumb and operate on a push-basis (except for the use of velocity tools), in the sense that they require objects to be placed in the context for them. What's the best practice for accomplishing this if forwarding from an action? Regards, Kelvin The book giving manifesto - http://how.to/sharethisbook --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Velocity Views
Kelvin, See the velocity examples that ship with webwork, and also compare the velocity templates (in /template/xhtml) with the JSP templates in the same directory. Velocity uses the velocity servlet, which allows the values to be looked up on the stack if they are not found in the context. You may want to have a look at the source for the WebWorkVelocityServlet. Cheers, Scott Kelvin Tan wrote: For JSP views, its simple enough to simply forward to them, since they are able to retrieve the required data to render. Velocity templates are dumb and operate on a push-basis (except for the use of velocity tools), in the sense that they require objects to be placed in the context for them. What's the best practice for accomplishing this if forwarding from an action? Regards, Kelvin The book giving manifesto - http://how.to/sharethisbook --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork -- ATLASSIAN - http://www.atlassian.com Expert J2EE Software, Services and Support --- Need a simple, powerful way to track and manage issues? Try JIRA - http://www.atlassian.com/software/jira --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] SV: [OS-webwork] File upload with WW/velocity?
Testing the FileUploadTest with Tomcat 4.1 LE, I get a NullPointerException at Enumeration names = ServletActionContext.getMultiPartRequest(); Is there any initialisation I am missing? My default.properties: multipart parser #webwork.multipart.parser=cos webwork.multipart.parser=pell # use javax.servlet.context.tempdir by default webwork.multipart.saveDir= webwork.multipart.maxSize=2097152 /peter [ (PrefixActionFactoryProxy)] Error loading action prefixes. Only using default prefixes:webwork.action.test,webwork.action.standard [ (ActionSupport)] Action executing.. java.lang.NullPointerException at com.scancoin.license.action.FileUploadTest.doExecute(FileUploadTest.j ava:35) at webwork.action.ActionSupport.execute(ActionSupport.java:114) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher. java:113) at webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:1 61) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) -Ursprungligt meddelande- Från: Rickard Öberg [mailto:[EMAIL PROTECTED]] Skickat: den 4 februari 2003 09:50 Till: [EMAIL PROTECTED] Ämne: Re: [OS-webwork] File upload with WW/velocity? [EMAIL PROTECTED] wrote: Hi, I'm new to Webwork and want to use Velocity with it. How can I upload a file into the framework? I couldn't find any documentation on that. There's an example of file upload included in the dowload. Just take a look at that. /Rickard -- Rickard Öberg [EMAIL PROTECTED] Senselogic Got blog? I do. http://dreambean.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ Title: SV: [OS-webwork] File upload with WW/velocity? Testing the FileUploadTest with Tomcat 4.1 LE, I get a NullPointerException at Enumeration names = ServletActionContext.getMultiPartRequest(); Is there any initialisation I am missing? My default.properties: multipart parser #webwork.multipart.parser=cos webwork.multipart.parser=pell # use javax.servlet.context.tempdir by default webwork.multipart.saveDir= webwork.multipart.maxSize=2097152 /peter [ (PrefixActionFactoryProxy)] Error loading action prefixes. Only using default prefixes:webwork.action.test,webwork.action.standard [ (ActionSupport)] Action executing.. java.lang.NullPointerException at com.scancoin.license.action.FileUploadTest.doExecute(FileUploadTest.j ava:35) at webwork.action.ActionSupport.execute(ActionSupport.java:114) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher. java:113) at webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:1 61) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
[OS-webwork] Help needed with parametric action
Greetings, I'm having some troubles when trying to pass parameters to one of my actions and I'm stumped: I believe I must be missing something embarassingly simple, but it appears I'm too dumb to figure it out for myself... The problem: I have a class that extends ActionSupport and implements both ApplicationAware and ParameterAware, but the setParameters method always receives an empty map... I call this action in a JSP page in this way: %@ taglib uri=WebWorkTags prefix=webwork % webwork:action name='content.BlogPostAction' webwork:param name='lowerBoundDay' value=3 / webwork:param name='upperBoundDay' value=-1 / /webwork:action I've placed some logging calls in doExecute() and setParameters(), and they're both called as I expect: [2003-02-06 16:51:44,822] DEBUG com.datafaber.action.content.BlogPostAction - setParameters - pParameters = {} [2003-02-06 16:51:44,952] DEBUG com.datafaber.action.content.BlogPostAction content.BlogPostAction - Action executing.. [2003-02-06 16:51:44,962] DEBUG com.datafaber.action.content.BlogPostAction content.BlogPostAction - doExecute - mParameters = {} However, the Map object passed to setParameters is empty! What I'm doing wrong? Am I using an incorrect syntax in my JSP? Am I totally off-base here and should be doing this in an entirely different way? Thanks for any help. Sebastiano Pilla E-TREE S.p.a. Via Fonderia 43 - 31100 Treviso (Italy) phone +39.0422.3107 fax +39.0422.310888 http://www.e-tree.com http://www.webanana.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] SV: [OS-webwork] File upload with WW/velocity?
The null pointer is in your code - so you should be able to see what the problem is. Check FileUploadTest.java line 35. Cheers, Scott [EMAIL PROTECTED] wrote: Testing the FileUploadTest with Tomcat 4.1 LE, I get a NullPointerException at Enumeration names = ServletActionContext.getMultiPartRequest(); Is there any initialisation I am missing? My default.properties: multipart parser #webwork.multipart.parser=cos webwork.multipart.parser=pell # use javax.servlet.context.tempdir by default webwork.multipart.saveDir= webwork.multipart.maxSize=2097152 /peter [ (PrefixActionFactoryProxy)] Error loading action prefixes. Only using default prefixes:webwork.action.test,webwork.action.standard [ (ActionSupport)] Action executing.. java.lang.NullPointerException at com.scancoin.license.action.FileUploadTest.doExecute(FileUploadTest.j ava:35) at webwork.action.ActionSupport.execute(ActionSupport.java:114) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher. java:113) at webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:1 61) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) -Ursprungligt meddelande- Från: Rickard Öberg [mailto:[EMAIL PROTECTED]] Skickat: den 4 februari 2003 09:50 Till: [EMAIL PROTECTED] Ämne: Re: [OS-webwork] File upload with WW/velocity? [EMAIL PROTECTED] wrote: Hi, I'm new to Webwork and want to use Velocity with it. How can I upload a file into the framework? I couldn't find any documentation on that. There's an example of file upload included in the dowload. Just take a look at that. /Rickard -- Rickard Öberg [EMAIL PROTECTED] Senselogic Got blog? I do. http://dreambean.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ Testing the FileUploadTest with Tomcat 4.1 LE, I get a NullPointerException at Enumeration names = ServletActionContext.getMultiPartRequest(); Is there any initialisation I am missing? My default.properties: multipart parser #webwork.multipart.parser=cos webwork.multipart.parser=pell # use javax.servlet.context.tempdir by default webwork.multipart.saveDir= webwork.multipart.maxSize=2097152 /peter [ (PrefixActionFactoryProxy)] Error loading action prefixes. Only using default prefixes:webwork.action.test,webwork.action.standard [ (ActionSupport)] Action executing.. java.lang.NullPointerException at com.scancoin.license.action.FileUploadTest.doExecute(FileUploadTest.j ava:35) at webwork.action.ActionSupport.execute(ActionSupport.java:114) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher. java:113) at webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:1 61) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
Re: [OS-webwork] Help needed with parametric action
Did you verify that your form is actually SUBMITTING a multipart request? Your form needs to specify the encoding type as 'multipart/form-data'. Just a thought... Quoting Sebastiano Pilla [EMAIL PROTECTED]: Greetings, I'm having some troubles when trying to pass parameters to one of my actions and I'm stumped: I believe I must be missing something embarassingly simple, but it appears I'm too dumb to figure it out for myself... The problem: I have a class that extends ActionSupport and implements both ApplicationAware and ParameterAware, but the setParameters method always receives an empty map... I call this action in a JSP page in this way: %@ taglib uri=WebWorkTags prefix=webwork % webwork:action name='content.BlogPostAction' webwork:param name='lowerBoundDay' value=3 / webwork:param name='upperBoundDay' value=-1 / /webwork:action I've placed some logging calls in doExecute() and setParameters(), and they're both called as I expect: [2003-02-06 16:51:44,822] DEBUG com.datafaber.action.content.BlogPostAction - setParameters - pParameters = {} [2003-02-06 16:51:44,952] DEBUG com.datafaber.action.content.BlogPostAction content.BlogPostAction - Action executing.. [2003-02-06 16:51:44,962] DEBUG com.datafaber.action.content.BlogPostAction content.BlogPostAction - doExecute - mParameters = {} However, the Map object passed to setParameters is empty! What I'm doing wrong? Am I using an incorrect syntax in my JSP? Am I totally off-base here and should be doing this in an entirely different way? Thanks for any help. Sebastiano Pilla E-TREE S.p.a. Via Fonderia 43 - 31100 Treviso (Italy) phone +39.0422.3107 fax +39.0422.310888 http://www.e-tree.com http://www.webanana.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Help needed with parametric action
Oops... I obviously replied to the wrong message. Apologies. Quoting Tim Dwelle [EMAIL PROTECTED]: Did you verify that your form is actually SUBMITTING a multipart request? Your form needs to specify the encoding type as 'multipart/form-data'. Just a thought... Quoting Sebastiano Pilla [EMAIL PROTECTED]: Greetings, I'm having some troubles when trying to pass parameters to one of my actions and I'm stumped: I believe I must be missing something embarassingly simple, but it appears I'm too dumb to figure it out for myself... The problem: I have a class that extends ActionSupport and implements both ApplicationAware and ParameterAware, but the setParameters method always receives an empty map... I call this action in a JSP page in this way: %@ taglib uri=WebWorkTags prefix=webwork % webwork:action name='content.BlogPostAction' webwork:param name='lowerBoundDay' value=3 / webwork:param name='upperBoundDay' value=-1 / /webwork:action I've placed some logging calls in doExecute() and setParameters(), and they're both called as I expect: [2003-02-06 16:51:44,822] DEBUG com.datafaber.action.content.BlogPostAction - setParameters - pParameters = {} [2003-02-06 16:51:44,952] DEBUG com.datafaber.action.content.BlogPostAction content.BlogPostAction - Action executing.. [2003-02-06 16:51:44,962] DEBUG com.datafaber.action.content.BlogPostAction content.BlogPostAction - doExecute - mParameters = {} However, the Map object passed to setParameters is empty! What I'm doing wrong? Am I using an incorrect syntax in my JSP? Am I totally off-base here and should be doing this in an entirely different way? Thanks for any help. Sebastiano Pilla E-TREE S.p.a. Via Fonderia 43 - 31100 Treviso (Italy) phone +39.0422.3107 fax +39.0422.310888 http://www.e-tree.com http://www.webanana.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] Action Properties HttpSession
Hi all, Ok, go along with me for a minute heh, Im wondering if there is some really cool WebWork way to accomplish what Im thinking. 1.) An action has 10 properties on it; I want these properties to be available for the life of the HttpSession for other views to use, and I want them accessible in a beanlike manner, In order to accomplish this I have to do the following as far as I can tell. Write a bean that has the same property code basically as inside the action; populate it with the info from the actions properties. Place that bean into the HttpSession inside my action, and proceed This feels very kludgey to me, so I must be thinking incorrectly. My question is there a better way to do this? The only thing I can think of is to not have the properties on the Action, but in its own bean to begin with via Beanutils, and then add that to the session. Regards, -Andre Mermegas
Re: [OS-webwork] Velocity Views
I have checked them out, but the context is no different from the stack. At some point, the objects you need have to be placed on the stack. The question is, what is the best practice for where these objects should be added? In the action? I've found that its often advantageous, when working with templating engines especially (which require two components- servlet + template), to separate view logic (retrieval of data to display) from action logic (which actually does something, ie modify data, etc). Wondering how WebWork supports this... Regards, Kelvin The book giving manifesto - http://how.to/sharethisbook On Thu, 06 Feb 2003 23:27:21 +1100, Scott Farquhar said: Kelvin, See the velocity examples that ship with webwork, and also compare the velocity templates (in /template/xhtml) with the JSP templates in the same directory. Velocity uses the velocity servlet, which allows the values to be looked up on the stack if they are not found in the context. You may want to have a look at the source for the WebWorkVelocityServlet. Cheers, Scott Kelvin Tan wrote: For JSP views, its simple enough to simply forward to them, since they are able to retrieve the required data to render. Velocity templates are dumb and operate on a push-basis (except for the use of velocity tools), in the sense that they require objects to be placed in the context for them. What's the best practice for accomplishing this if forwarding from an action? Regards, Kelvin The book giving manifesto - http://how.to/sharethisbook --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com ___ Opensymphony- webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Irc.werken.com
h...I didn't manage to attend the meeting. Wondering if there are irc logs or meeting minutes available... Regards, Kelvin The book giving manifesto - http://how.to/sharethisbook On Wed, 5 Feb 2003 05:42:44 -0800, Jason Carreira said: Can anyone else attach to irc.werken.com? I can't seem to connect. Jason -- Jason Carreira Technical Architect, Notiva Corp. phone:585.240.2793 fax:585.272.8118 email:[EMAIL PROTECTED] --- Notiva - optimizing trade relationships (tm) --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Irc.werken.com
Yes, there are, I just haven't had time to put them up yet. Hopefully tonight, no later than this weekend. - Original Message - From: Kelvin Tan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 5:13 PM Subject: Re: [OS-webwork] Irc.werken.com h...I didn't manage to attend the meeting. Wondering if there are irc logs or meeting minutes available... Regards, Kelvin The book giving manifesto - http://how.to/sharethisbook On Wed, 5 Feb 2003 05:42:44 -0800, Jason Carreira said: Can anyone else attach to irc.werken.com? I can't seem to connect. Jason -- Jason Carreira Technical Architect, Notiva Corp. phone:585.240.2793 fax:585.272.8118 email:[EMAIL PROTECTED] --- Notiva - optimizing trade relationships (tm) --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] ui:textfield id attribute is missing
Does anyone know why the "id" attribute was removed from the ui tags? I now get the following runtime error: unexpected attribute `id' in `ui:textfield' This now became a very big issue with my migration from 1.2 to 1.3. I'm willing to do the work to put it back in but I was just curious on the reason (e.g. oversight). Thanks, Kirk Rasmussen Lucasfilm Ltd.
Re: [OS-webwork] Velocity Views
Not really. Velocity templates are dumb. They don't retrieve data to display (not in the original push model at least. Turbine and Scarab came up with a Pull model), they display data given to them in the context. I see Velocity templates as containing presentation logic, not view logic. Maybe I'm being pedantic, but I define presentation logic as containing the formatting, positional and aesthetic elements, and view logic as retrieving the data for the presentation logic to render. Let me give you an example. Say we have a simple view logic class which given a UUID, retrieves and materializes a User object from the database. Now, this view can be reused by any template which requires the retrieval of a single User, like a template for display a user's profile (read-only), a template for display of user profile (as a form), perhaps a template which requires renders various stuff on the same page, one of which is the display of user profile... Do you see where I'm driving at? Regards, Kelvin The book giving manifesto - http://how.to/sharethisbook On Thu, 6 Feb 2003 17:33:00 -0800, Patrick Lightbody said: Maybe I'm missing the question. The Action does something, the velocity template retrieves data to display. -Pat --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Velocity Views
Yup, makes sense. Sounds like you need action chaining possibly. - Original Message - From: Kelvin Tan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 5:46 PM Subject: Re: [OS-webwork] Velocity Views Not really. Velocity templates are dumb. They don't retrieve data to display (not in the original push model at least. Turbine and Scarab came up with a Pull model), they display data given to them in the context. I see Velocity templates as containing presentation logic, not view logic. Maybe I'm being pedantic, but I define presentation logic as containing the formatting, positional and aesthetic elements, and view logic as retrieving the data for the presentation logic to render. Let me give you an example. Say we have a simple view logic class which given a UUID, retrieves and materializes a User object from the database. Now, this view can be reused by any template which requires the retrieval of a single User, like a template for display a user's profile (read-only), a template for display of user profile (as a form), perhaps a template which requires renders various stuff on the same page, one of which is the display of user profile... Do you see where I'm driving at? Regards, Kelvin The book giving manifesto - http://how.to/sharethisbook On Thu, 6 Feb 2003 17:33:00 -0800, Patrick Lightbody said: Maybe I'm missing the question. The Action does something, the velocity template retrieves data to display. -Pat --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Irc.werken.com
Uh, this question is obviously pre-mature, but I can't keep it down. Is there any indication of a proposed date for initial release for xwork? What's the recommendation for someone planning to start using webwork? hold out for xwork, or jump in and use webwork as it is now and look to migrate (faint!) later? In other words, was there any mention of backwards compatibility and/or migration path... KT On Thu, 6 Feb 2003 17:32:04 -0800, Patrick Lightbody said: Yes, there are, I just haven't had time to put them up yet. Hopefully tonight, no later than this weekend. - Original Message - From: Kelvin Tan [EMAIL PROTECTED] To: opensymphony- [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 5:13 PM Subject: Re: [OS-webwork] Irc.werken.com h...I didn't manage to attend the meeting. Wondering if there are irc logs or meeting minutes available... Regards, Kelvin The book giving manifesto - http://how.to/sharethisbook On Wed, 5 Feb 2003 05:42:44 -0800, Jason Carreira said: Can anyone else attach to irc.werken.com? I can't seem to connect. Jason -- Jason Carreira Technical Architect, Notiva Corp. phone:585.240.2793 fax:585.272.8118 email: [EMAIL PROTECTED] --- Notiva - optimizing trade relationships (tm) --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony- webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com ___ Opensymphony- webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Velocity Views
Thanks. Thought as much... I'm guessing most WW users don't use Velocity? KT On Thu, 6 Feb 2003 17:47:30 -0800, Patrick Lightbody said: Yup, makes sense. Sounds like you need action chaining possibly. - Original Message - From: Kelvin Tan [EMAIL PROTECTED] To: opensymphony- [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 5:46 PM Subject: Re: [OS-webwork] Velocity Views Not really. Velocity templates are dumb. They don't retrieve data to display (not in the original push model at least. Turbine and Scarab came up with a Pull model), they display data given to them in the context. I see Velocity templates as containing presentation logic, not view logic. Maybe I'm being pedantic, but I define presentation logic as containing the formatting, positional and aesthetic elements, and view logic as retrieving the data for the presentation logic to render. Let me give you an example. Say we have a simple view logic class which given a UUID, retrieves and materializes a User object from the database. Now, this view can be reused by any template which requires the retrieval of a single User, like a template for display a user's profile (read-only), a template for display of user profile (as a form), perhaps a template which requires renders various stuff on the same page, one of which is the display of user profile... Do you see where I'm driving at? Regards, Kelvin The book giving manifesto - http://how.to/sharethisbook On Thu, 6 Feb 2003 17:33:00 -0800, Patrick Lightbody said: Maybe I'm missing the question. The Action does something, the velocity template retrieves data to display. -Pat --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony- webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com ___ Opensymphony- webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Velocity Views
On Thu, 6 Feb 2003 21:44:46 -0800, Patrick Lightbody said: I use both. This is a total guess, but I'd say maybe 25% use velocity. -pat So for V, do you use view logic in a separate action and action-chain, or do you just place everything in one action (business + view logic)? What about others on the list, how do you do it? KT --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] Commons Jelly
Did a search in the archives and didn't find anything noteworthy re: WW + Jelly, so thought I'd bring it up. Has this been discussed before? Perhaps not just using it as another view, but in a more integrated fashion, ala OGNL and the current EL? After all, Jelly has a large collection of existing taglibs, and support for JEXL... Regards, Kelvin The book giving manifesto - http://how.to/sharethisbook --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Velocity Views
Interesting. flamebaitI happen to come from the Turbine + hardcore Velocity (JSP sucks, mostly) camp, so would be interested to know why you choose JSP + Velocity, and not either. /flamebait Does it have anything to do with WebWork support for either? On Thu, 6 Feb 2003 22:14:47 -0800, Patrick Lightbody said: I do a few different things depending on the weather, how much I ate that day, and the time of day: 1) not even use Actions for the deeper layers and just use normal java objects for the business code 2) use Actions, but not chain and instead call them with GenericDispatcher (a la OSWorkflow) 3) use actiong chaining -Pat - Original Message - From: Kelvin Tan [EMAIL PROTECTED] To: opensymphony- [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 10:11 PM Subject: Re: [OS-webwork] Velocity Views On Thu, 6 Feb 2003 21:44:46 -0800, Patrick Lightbody said: I use both. This is a total guess, but I'd say maybe 25% use velocity. -pat So for V, do you use view logic in a separate action and action- chain, or do you just place everything in one action (business + view logic)? What about others on the list, how do you do it? KT --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com ___ Opensymphony- webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Commons Jelly
Can you give some deeper examples of how this might occur? I'm thinking it could just be a view technology, so maybe you can show me other examples where it is more than a view. -Pat - Original Message - From: Kelvin Tan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 10:27 PM Subject: [OS-webwork] Commons Jelly Did a search in the archives and didn't find anything noteworthy re: WW + Jelly, so thought I'd bring it up. Has this been discussed before? Perhaps not just using it as another view, but in a more integrated fashion, ala OGNL and the current EL? After all, Jelly has a large collection of existing taglibs, and support for JEXL... Regards, Kelvin The book giving manifesto - http://how.to/sharethisbook --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Velocity Views
Kelvin Tan wrote: Interesting. flamebaitI happen to come from the Turbine + hardcore Velocity (JSP sucks, mostly) camp, so would be interested to know why you choose JSP + Velocity, and not either. /flamebait Does it have anything to do with WebWork support for either? I'm currently using Velocity for about 90%, and JSP for the rest. The 10% JSP are usually forms, since the form tags are not available in Velocity yet. /Rickard -- Rickard Öberg [EMAIL PROTECTED] Senselogic Got blog? I do. http://dreambean.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork