Re: [ANN] YUI plugin

2007-06-20 Thread Mark P Ashworth
Good Day, Thanks for the great looking datepicker control. Is it possible to post the source code for the Java classes because I am trying to create my own plugin for some the Open Flash Chart component and would like to do it in a similar way to your YUI plug-in. Thank you in advance. Mark P

Re: [ANN] YUI plugin

2007-06-20 Thread Roberto Nunnari
Very nice! Thank you Musachy! Just one question: The label for the date field is empty.. the JSP: ... [EMAIL PROTECTED] prefix=yui uri=/struts-yui-tags% yui:head datepicker=true/ yui:datepicker id=toDate name=toDate value=%{'2006-10-20'} / ... the generated HTML: ... tr td

Re: [OT] Serious memory leak

2007-06-20 Thread Balazs Michnay
Chris, Thanks a lot, these changes really did help, now MySQL reports that only one connection is used all over the website. I really do appreciate your help. Regards, MB - Original Message From: Christopher Schultz [EMAIL PROTECTED] To: Struts Users Mailing List

Re: Spring-webflow exception

2007-06-20 Thread Rikard
Well as you said it was an xml config issue. But worked that out, i got an class not found exception in the log. The interface MapAdaptable could not be found. After a little investigation i found that the interface is in the spring-binding-1.0.3.jar. Once included the jar i got your example up

where is the ognl source?

2007-06-20 Thread David Harland
Hi, I have been to www.ognl,org and can only find the source for 2.6.9 where are the struts 2 team getting the new releases from as it seems to be a dead site? Thanks Dave. __ Ufi Limited Registered in England No. 3980770

Investigating the ValueStack

2007-06-20 Thread setecastronomy
In order to better understand the ValueStack I wrote the following code to explore it: ValueStack myStack = ActionContext.getContext().getValueStack(); out.println(Stack size + myStack.size() + br/); java.util.Map myMap = myStack.getContext(); for (Object pollo :

[S2][ANN] Unit Testing Struts 2 Actions wired with Spring using JUnit article

2007-06-20 Thread Ted Husted
[arenselist] Hopefully this entry serves as some search engine friendly documentation on how one might unit test Struts 2 actions configured using Spring, something I would think many, many people want to do. This used to be done using StrutsTestCase in the Struts 1.x days but Webwork/Struts

Re: problem with showing ActionMessages

2007-06-20 Thread Yoge
Try messages.add(Globals.MESSAGE_KEY,new ActionMessage(invalid.login)); ie use Globals.MESSAGE_KEY instead of ActionMessages.GLOBAL_MESSAGE -- Yoge, AdventNet, Inc. 925-965-6430 [EMAIL PROTECTED] site24x7.com http://www.site24x7.com/ On 6/20/07, Aleksandar Matijaca [EMAIL PROTECTED] wrote:

Re: Query on struts application design

2007-06-20 Thread Yoge
Another alternative, Move all the images/css specific to abc.com to a subdirectory named /abc/... Let all the images related to xyz.com be in another sub-directory /xyx/ Change path of images in your application to /abc or /xyz based on the request.*getRemoteHost*() . -- Yoge, AdventNet, Inc.

PROBLEM SOLVED - Re: problem with showing ActionMessages

2007-06-20 Thread Aleksandar Matijaca
First of all, thank you all for replying. Jeff you are right, invalid.login was put into the WRONG PROPERTIES file. I moved the projects around, and a new Properties file was created, however, the struts-config.xml was not updated with the location of the new properties file, instead, the old

Validation and XHTML

2007-06-20 Thread lextest
Hello, We have a client using Struts 1.2.9. They are experiencing a problem when trying to use client side validation on a struts page that is using html:xhtml. It's the exact problem described in this bug report: http://issues.apache.org/struts/browse/STR-2482 The above link leads me to

javax.el.ExpressionFactory

2007-06-20 Thread GEDA
Hi. I created an interceptor which extends AbstractInterceptor and implements StrutsStatics. Also I added it in the applicationcontext.xml of the Spring framework. My problem is the following and I don't know where to get the missing class: Jun 20, 2007 2:32:16 PM

[S2] FreeMarker template and custom tag

2007-06-20 Thread Mark P Ashworth
Good Day, I have a custom tag that I am developing and I am trying to figure out where the parameter.id values come from. For example, lt;#if parameters.align?existsgt; align=${parameters.align?html} lt;/#ifgt; This is used in the graph.ftl that is in template.simple. My tag has those

Ajax form submission doesn't work after the DIV is updated

2007-06-20 Thread FanCo
I am developing a web page which contains two layouts (left right). On the left side, there are some buttons. And the right side, it is a DIV which use s:div/ to create. It will invoke the JavaScript to send a request to one specific S2 action and updates the div with the return page

Re: [OT] Serious memory leak

2007-06-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Balazs, Balazs Michnay wrote: Thanks a lot, these changes really did help, now MySQL reports that only one connection is used all over the website. I really do appreciate your help. No problem. Another good tip is to set your connection pool size

Re: Ajax form submission doesn't work after the DIV is updated

2007-06-20 Thread Dave Newton
Does your s:div.../ have executeScripts=true? d. --- FanCo [EMAIL PROTECTED] wrote: I am developing a web page which contains two layouts (left right). On the left side, there are some buttons. And the right side, it is a DIV which use s:div/ to create. It will invoke the

Re: where is the ognl source?

2007-06-20 Thread Niall Pemberton
On 6/20/07, David Harland [EMAIL PROTECTED] wrote: Hi, I have been to www.ognl,org and can only find the source for 2.6.9 where are the struts 2 team getting the new releases from as it seems to be a dead site? http://www.opensymphony.com/ognl/ Niall Thanks Dave.

Re: Struts2 limitations with DOJO

2007-06-20 Thread Musachy Barroso
I'm not really sure about limitations, if you have specific questions, I could help. Just one word of advise, stay away from the datetimepicker tag until 2.1. regards musachy On 6/20/07, tom tom [EMAIL PROTECTED] wrote: Hi, Can someone let us know the limitations of using DOJO library with

Re: [ANN] YUI plugin

2007-06-20 Thread Musachy Barroso
You need to set the label with the label attribute, just like the other Struts tags. regards musachy On 6/20/07, Roberto Nunnari [EMAIL PROTECTED] wrote: Very nice! Thank you Musachy! Just one question: The label for the date field is empty.. the JSP: ... [EMAIL PROTECTED] prefix=yui

Re: Validation and XHTML

2007-06-20 Thread Niall Pemberton
On 6/20/07, lextest [EMAIL PROTECTED] wrote: Hello, We have a client using Struts 1.2.9. They are experiencing a problem when trying to use client side validation on a struts page that is using html:xhtml. It's the exact problem described in this bug report:

Re: [ANN] YUI plugin

2007-06-20 Thread Musachy Barroso
Hi Mark, The code is proprietary, so I can't give it away. Just kidding, go here: http://code.google.com/p/struts2yuiplugin/ and click on the source tab, the license is Apache 2 ;) //anyone can host a project at googlecode : http://code.google.com/hosting/ regards musachy On 6/20/07, Mark P

Re: Spring Action Instantiation

2007-06-20 Thread stanlick
I'm using the spring id only. On 6/19/07, Adam Ruggles [EMAIL PROTECTED] wrote: Are you specifying the entire class name in the action mapping definition instead of using the spring bean id? [EMAIL PROTECTED] wrote: It appears as though I am not getting a new Action instance created for

Re: Spring Action Instantiation

2007-06-20 Thread stanlick
I'm using Spring 2.x and the attribute scope=prototype On 6/19/07, Zarar Siddiqi [EMAIL PROTECTED] wrote: It sounds to me like your Action class might be configured as a singleton. If that's the case the action class' constructor would only be called once on startup. Make sure you have

Re: Spring Action Instantiation

2007-06-20 Thread stanlick
I replaced the spring bean id in my action mapping with the fully qualified class name to rule Spring out completely. I am still never seeing the log4j output in the constructor of my action class! I have double checked my log4j.properties and the debug output would be written out if the

RE: Validation and XHTML

2007-06-20 Thread homerlex
Yes - They are seeing id instead of name in the generated form tag. You are correct about the commons jar. They had an old version of that. I just tested with 1.3.1 and it works fine. Thanks for your help and the speedy reply. Regards -Original Message- From: Niall Pemberton

Re: Spring Action Instantiation

2007-06-20 Thread stanlick
Oooop! The struts.xml change did not force the context to reload! Now that I have changed the class in the action mapping to the fully qualified class name, it *is* being instantiated on each request! So why is it not working with the Spring bean id? On 6/20/07, [EMAIL PROTECTED] [EMAIL

nested s:iterator

2007-06-20 Thread Hartrich, James CTR USTRANSCOM J6
How would one iterate a bean's collectionhashmap row values by key of bean's collectionstring columnName? Here's what I have on the jsp: s:iterator id=row value=bean.tableColumnData status=rowStatus s:iterator id=columnName value=bean.tableColumns status=status s:property

Re: Spring Action Instantiation

2007-06-20 Thread Martin Gainty
Assuming Spring is your AOP framework Logging is now an Advised entity to be injected at compile time or runtime via 'pointcut' details on implementation are located here http://www.devx.com/Java/Article/30799/0/page/1 to quote 'Because this FactoryBean concept is how Spring wraps beans and then

Re: Spring Action Instantiation

2007-06-20 Thread Dave Newton
?! --- Martin Gainty [EMAIL PROTECTED] wrote: Assuming Spring is your AOP framework Logging is now an Advised entity to be injected at compile time or runtime via 'pointcut' details on implementation are located here http://www.devx.com/Java/Article/30799/0/page/1 to quote 'Because

RE: nested s:iterator

2007-06-20 Thread Hartrich, James CTR USTRANSCOM J6
Quick follow up to correct myself. This works: s:property value=#row[(#columnName)]/ I referenced the following documentation http://www.ognl.org/2.6.7/Documentation/html/LanguageGuide/expressionEva luation.html James -Original Message- From: Hartrich, James CTR USTRANSCOM J6

Re: nested s:iterator

2007-06-20 Thread Dave Newton
--- Hartrich, James CTR USTRANSCOM J6 wrote: s:property value=#row.columnName/ I'd probably try something like #row[#columnName] (or maybe #row[(#columnName)] to force OGNL to eval again); I'm doing something similar but I don't have the example in front of me at the moment. d.

Re: Ajax form submission doesn't work after the DIV is updated

2007-06-20 Thread FanCo
I didn't set the executeScripts attribute for the DIV. So the default value should be false. What is the function of this attribute if it is true? newton.dave wrote: Does your s:div.../ have executeScripts=true? d. --- FanCo [EMAIL PROTECTED] wrote: I am developing a web page

RE: nested s:iterator

2007-06-20 Thread Dave Newton
--- Hartrich, James CTR USTRANSCOM J6 wrote: Quick follow up to correct myself. This works: s:property value=#row[(#columnName)]/ Yeah, that ;) d. Fussy? Opinionated? Impossible to please? Perfect.

Re: [S2] App generate lot (2GB) of garbage!

2007-06-20 Thread Ing. Andrea Vettori
I discussed the problem with the freemarker team and I used a suggestion that PARTIALLY resolved. They said : = You can use the code below to enable the model cache, assuming myConfiguration is the reference to your Configuration object:

Re: Spring Action Instantiation

2007-06-20 Thread stanlick
Spring is my IOC container. So are you suggesting Spring is *not* instantiating action classes on each request? I am confused that it would be creating the beans used by the actions on each invocation but not the action itself. Also, I am not sure how Spring could advise which methods to call

Re: Ajax form submission doesn't work after the DIV is updated

2007-06-20 Thread Musachy Barroso
Scripts in the html returned will be executed (script.../script) http://struts.apache.org/2.x/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-ExecuteJavaScriptinthereturnedcontent musachy On 6/20/07, FanCo [EMAIL PROTECTED] wrote: I didn't set the executeScripts attribute for

Re: Spring Action Instantiation

2007-06-20 Thread Roger Varley
On 20/06/07, Dave Newton [EMAIL PROTECTED] wrote: ?! I didn't understand a word of that either :-) --- Martin Gainty [EMAIL PROTECTED] wrote: Assuming Spring is your AOP framework Logging is now an Advised entity to be injected at compile time or runtime via 'pointcut' details on

Re: Spring Action Instantiation

2007-06-20 Thread Musachy Barroso
That should be it, and scope=prototype has always done the trick for me, why don't you post relevant parts of the spring conf file? regards musachy On 6/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Oooop! The struts.xml change did not force the context to reload! Now that I have

Re: Spring Action Instantiation

2007-06-20 Thread stanlick
!-- Actions -- bean id=pufAction class=actions.PayrollUpdateAction scope=prototype property name=payrollUpdate ref=anUpdate/ /bean !-- Add actions here -- action name=PayrollUpdate_* method={1} class=pufAction result name=inputPayrollUpdate/result

properties at times not found

2007-06-20 Thread Roberto Nunnari
Hello. I have an action with a getter for a List. In the execute method of the action I can verify the list is not empty. But in the jsp view, at times it reports an empty list. the action: public class StorySearch extends ActionSupport { private ListStory stories = null; ...

RE: properties at times not found

2007-06-20 Thread Scott Trafton
If you are trying to load your list by using a parameter passed in.. say and Id from a link or another page, you might need to use the paramsPrepareParamsStack interceptor and implement Preparable in you action. I ran into a similar problem the other day. You would need to put your code to

Re: properties at times not found

2007-06-20 Thread Roberto Nunnari
Hello Scott. ..but.. the list is a property of the action, and it's populated in the execute method.. the JSP, should be rendered after the execute method has returned, and so at that time it should be safe to get the stories from the action, as by now it should be set and ready. Do I miss

Re: javax.el.ExpressionFactory

2007-06-20 Thread cilquirm
This is most probably not related to Struts. I can't claim to know the intrinsics of your setup but it looks like you're missing some jars need for JSF. It might be that you're running an older version of the J2EE stack. javax.el.ExpressionFactory comes with J2EE 5, and is part of JSF 1.2

HDIV for Struts2

2007-06-20 Thread gorka
Hi all, HDIV project is an Apache-licensed Struts' Security extension that adds security functionalities to Struts, maintaining the API and Struts specification. This implies that we can use HDIV in applications developed in Struts in a transparent way to the programmer and without adding any

[S2] Incorrect validation behaviour

2007-06-20 Thread Célio Cidral Junior
I have a couple of actions with validation configuration. The validation works fine for most of them, except for one in which case all the fields are always invalidated even when I fill them correctly. Also, I noticed that, after submitting the form, the values of the fields are not preserved. I

Re: properties at times not found

2007-06-20 Thread Roberto Nunnari
Hi again Scott. I tried anyways adding default-interceptor-ref name=paramsPrepareParamsStack/ to my struts.xml but it doesn't help.. Any more hints? Roberto Nunnari wrote: Hello Scott. ..but.. the list is a property of the action, and it's populated in the execute method.. the JSP, should

RE: properties at times not found

2007-06-20 Thread Scott Trafton
If you do the following I am pretty sure it would work, assuming you are pasing in the id for dataManager.searchStories(id) . Action class: public class StorySearch extends ActionSupport implements Preparable { private ListStory stories = null; private String id;

Re: Spring Action Instantiation

2007-06-20 Thread Musachy Barroso
That looks right to me :) musachy On 6/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: !-- Actions -- bean id=pufAction class=actions.PayrollUpdateAction scope=prototype property name=payrollUpdate ref=anUpdate/ /bean !-- Add actions here -- action

Restricting Direct Access to Jsp

2007-06-20 Thread Archer
Hi, I am using struts 1.3.8 for my application. Can anybody please help me how to restrict access to jsp pages directly in struts. I am not having any of jsp in web-inf, so I need to restrict direct access to JSP. Any suggestion will be a great help to me. -- Regards Archer

Re: Restricting Direct Access to Jsp

2007-06-20 Thread Manos Batsis
Archer wrote: Hi, I am using struts 1.3.8 for my application. Can anybody please help me how to restrict access to jsp pages directly in struts. I am not having any of jsp in web-inf, so I need to restrict direct access to JSP. Any suggestion will be a great help to me. Too many ways to do

action mappings

2007-06-20 Thread Emil.I
Hello, I got an exception that my action mappings cannot be located... eg. namespace /program action name viewInvoices. - [UNKNOWN LOCATION] ... etc. so i gave my action an incorrect name eg. (viewInvoice) and guess what my action was suddenly located, even tough I triple checked that the s:url

Re: properties at times not found

2007-06-20 Thread Emil.I
Hello, i had a similar problem, u may need a concrete implementation for your property something like: private ListStory stories = new LinkedListStory(); public ListStory getStories() { return stories; } and make sure to override toString() in your Story class... don't know what else to tell

Re: properties at times not found

2007-06-20 Thread Jeff Amiel
On 6/20/07, Roberto Nunnari [EMAIL PROTECTED] wrote: In the execute method of the action I can verify the list is not empty. But in the jsp view, at times it reports an empty list. Are you saying that 'sometimes' when the search actually brings back results (and you output it via that for

Re: Restricting Direct Access to Jsp

2007-06-20 Thread Archer
Thank you for the input Manos.I am new to struts and security implementation. So I am trying different things. My present implemetation has restricted access to JSP pages depending on role. I thought of restricting complete access to JSP pages itself as the jsp pages get the input from action

RE: Restricting Direct Access to Jsp

2007-06-20 Thread munawar soomro
Fellows, I am unable to start apache tomcat server running simple application. The reason is that it cannot find mappings as given below, any input is appreciated. thanks Munwar Soomro Log messages: WARNING: Unable to load config class

unable to start tomcat5.5 with struts2

2007-06-20 Thread munawar soomro
Fellows, I am unable to start apache tomcat server running simple application. The reason is that it cannot find mappings as given below, any input is appreciated. thanks Munwar Soomro Log messages: WARNING: Unable to load config class

Implementing wizard like interface in struts

2007-06-20 Thread semaj
Hi there, May be someone has already solved this problem. I need to implement a wizard like page flow in my strut web application. This is what I've done: 1. Created one big action form and put it in session scope. 2. Created action class extending DispatchAction 3. Created several jsps. I

Re: properties at times not found

2007-06-20 Thread Roberto Nunnari
Hi Jeff. Jeff Amiel wrote: On 6/20/07, Roberto Nunnari [EMAIL PROTECTED] wrote: In the execute method of the action I can verify the list is not empty. But in the jsp view, at times it reports an empty list. Are you saying that 'sometimes' when the search actually brings back results (and

Re: properties at times not found

2007-06-20 Thread Jeff Amiel
On 6/20/07, Roberto Nunnari [EMAIL PROTECTED] wrote: Yes. That's it. It happens at random times.. not always. When it happens, all I get instead of the table in the browser is: Nothing found to display. makes no sensesure you don't have a local variable inside the execute method called

Re: javax.el.ExpressionFactory

2007-06-20 Thread GEDA
Thanks anyway for your answer. I have to say there are a great bunch of good guys on this forum. The thing is that I am not using intentionally the JSF framewrok. I just added an interceptor to the application. What is the problem here ? cilquirm wrote: This is most probably not related to

Re: javax.el.ExpressionFactory

2007-06-20 Thread cilquirm
Did you see what happens when you take out the interceptor? As I see it, you should still be getting this error ( since I postulate they are unrelated :) ) If not, then this indeed is a mystery. GEDA wrote: Thanks anyway for your answer. I have to say there are a great bunch of good

Re: [S2] FreeMarker template and custom tag

2007-06-20 Thread Mark P Ashworth
Good Day, I thought I would post a reply in case anyone needs to find the answer. Well it seems that the UIBean has an evaluateParams and so to get my parameters visible in the template is to do something like... public void evaluateParams() { super.evaluateParams(); if(width

Re: javax.el.ExpressionFactory

2007-06-20 Thread GEDA
cilquirm wrote: Did you see what happens when you take out the interceptor? As I see it, you should still be getting this error ( since I postulate they are unrelated :) ) I am sure they are unrelated ... I will try to rule it out from the struts.xml file If not, then this

S2 Design Question

2007-06-20 Thread stanlick
I have discovered an optimized (very little code) solution to CRUD using S2. My next question has to do with CRUD across a 1:M domain model. I have the Preparable and ModelDriven technique working nicely with the id (PK) being set in the BaseAction class. What I would like to work through next

Re: javax.el.ExpressionFactory

2007-06-20 Thread Dave Newton
What plugin libs are you using vs. having in WEB-INF/lib? For example, do you have the JSF plugin? d. --- GEDA [EMAIL PROTECTED] wrote: cilquirm wrote: Did you see what happens when you take out the interceptor? As I see it, you should still be getting this error ( since I

[ANN] Connext Graphs

2007-06-20 Thread Mark P Ashworth
Good Day, The first beta release of Connext Graphs is ready. This release provides a Struts 2 plug-in so that pages can use the Open Flash Chart library. The next release will focus on the data model so that actions can easily create the data source that the chart uses to render. The library

Re: properties at times not found

2007-06-20 Thread Roberto Nunnari
Jeff Amiel wrote: On 6/20/07, Roberto Nunnari [EMAIL PROTECTED] wrote: Yes. That's it. It happens at random times.. not always. When it happens, all I get instead of the table in the browser is: Nothing found to display. makes no sensesure you don't have a local variable inside the

Re: properties at times not found

2007-06-20 Thread Jeff Amiel
On 6/20/07, Roberto Nunnari [EMAIL PROTECTED] wrote: humm... If it's truly 'random' like that there are only 4 things that could be happening. 1. Display tag is broken (not likely) 2. You occasionally have another element in some other scope with the same name that is being picked up

Updating a Map of data

2007-06-20 Thread jrtalley
I am trying to write a page that views and updates values from MBeans. My Action class has a method that exposes a Map of MBean client objects which mostly contain properties from the MBean. I am using the Preparable interface where the prepare() method populates the map. The view portion is

Re: [ANN] Connext Graphs

2007-06-20 Thread Musachy Barroso
Adding and entry in the plugin registry will help users find it: http://cwiki.apache.org/S2PLUGINS/home.html regards musachy On 6/20/07, Mark P Ashworth [EMAIL PROTECTED] wrote: Good Day, The first beta release of Connext Graphs is ready. This release provides a Struts 2 plug-in so that

Problem using list conversions

2007-06-20 Thread Telmo Costa
Hi, I’m trying to use list conversions. I was testing the example in “Type Conversion” guide (http://struts.apache.org/2.0.8/docs/type-conversion.html). I had the example running, but when I tried to change the attribute id from MyBean to type String, it won’t work when using “big” strings, or

Re: javax.el.ExpressionFactory

2007-06-20 Thread Niall Pemberton
On 6/20/07, cilquirm [EMAIL PROTECTED] wrote: This is most probably not related to Struts. I can't claim to know the intrinsics of your setup but it looks like you're missing some jars need for JSF. It might be that you're running an older version of the J2EE stack. javax.el.ExpressionFactory

Re: properties at times not found

2007-06-20 Thread Roberto Nunnari
Jeff Amiel wrote: On 6/20/07, Roberto Nunnari [EMAIL PROTECTED] wrote: humm... If it's truly 'random' like that there are only 4 things that could be happening. 1. Display tag is broken (not likely) don't think so.. the same thing happens also with another action that puts a list

Re: Struts2 limitations with DOJO

2007-06-20 Thread tom tom
When it comes to custom widgets, what is the support from the S2 framework, what is the best way to access those via S2 Thanks --- Musachy Barroso [EMAIL PROTECTED] wrote: I'm not really sure about limitations, if you have specific questions, I could help. Just one word of advise, stay away

Re: Struts2 limitations with DOJO

2007-06-20 Thread Musachy Barroso
Struts doesn't add anything on top of dojo except for a few custom widgets (bind, and binddiv), an others that extend the dojo ones to add functionality (autocompleter, datepicker, timepicker, tree, treenode) musachy On 6/20/07, tom tom [EMAIL PROTECTED] wrote: When it comes to custom

Re: Nested Struts

2007-06-20 Thread Asaf Paris Mandoki
Is there a way to use the s:action tag to call actions of other webapps deployed on the same container? Is there a way to get the result of an action from inside another action class? On 6/20/07, Asaf Paris Mandoki [EMAIL PROTECTED] wrote: I'm trying to make a web application that organizes a

Re: Struts2 limitations with DOJO

2007-06-20 Thread tom tom
What is the best way(best practice) to have the widgets that doesn't supported by the Struts2, Should I write a custom tag or call natively? --- Musachy Barroso [EMAIL PROTECTED] wrote: Struts doesn't add anything on top of dojo except for a few custom widgets (bind, and binddiv), an

Re: Struts2 limitations with DOJO

2007-06-20 Thread Musachy Barroso
There is a trade off, I guess, but using javascript directly, ala dojo will be easier. musachy On 6/20/07, tom tom [EMAIL PROTECTED] wrote: What is the best way(best practice) to have the widgets that doesn't supported by the Struts2, Should I write a custom tag or call natively? ---

Why two behaviours

2007-06-20 Thread tom tom
Hi, I have a action class which get called by two ways in two different pages. 1) As a href 2)As part of a form submission In the action class I forward to another action instead of a jsp via the forward, hence struts.xml looks as follows. (note: testSetup action defined in the struts.xml)

Re: Struts2 limitations with DOJO

2007-06-20 Thread Li
If just for presenting data, so far as I tried, almost all dojo widgets can be used directly in the VIEW (eg. JSP pages) ... so it doesnt matter if S2 support or not ... On 6/21/07, Musachy Barroso [EMAIL PROTECTED] wrote: There is a trade off, I guess, but using javascript directly, ala dojo

Re: Struts2 limitations with DOJO

2007-06-20 Thread tom tom
Yes I agree but dont you think if we can provide a custom tag on top of the widget, it can be reused with minimal coding and also the better way to do it. e.g customized business widget which can be reused. Let me know your thougts as well. Thanks --- Li [EMAIL PROTECTED] wrote: If just for

Re: Struts2 limitations with DOJO

2007-06-20 Thread Li
Hi Tom, It would be ok to create custom tag and reuse them at many pages. So I guess you may have to deal with data in your tag handler, I am not sure how dojo can be combined with your tag handler effectively and make them S2 awareable. For me, widgets are just used for presenting data. I have

Re: Ajax form submission doesn't work after the DIV is updated

2007-06-20 Thread FanCo
Hi musachy, Thanks for your reply. It doesn’t work even I set the executeScripts to true. One thing I didn’t mention is I set the “href” attribute of the DIV to an action that will return the form page. So after the page load, the div will request and show the form page asynchronously. In

Re: Ajax form submission doesn't work after the DIV is updated

2007-06-20 Thread Jeromy Evans
Musachy, is this the https://issues.apache.org/struts/browse/WW-1766 issue. I recall you made a partial fix in 2.0.8/2.0.9 but in 2.0.6 I used a work-around. FanCo wrote: Hi musachy, Thanks for your reply. It doesn’t work even I set the executeScripts to true. One thing I didn’t

Re: Ajax form submission doesn't work after the DIV is updated

2007-06-20 Thread FanCo
One more thing. The Connector JavaScript is included in the parent page(jsp that contains the div), not at the form page. So my form page doesn't contain any javascript(maybe there are some in the future) . So I don't think the value of executeScripts will affect the result. Moreover I found out

Re: Ajax form submission doesn't work after the DIV is updated

2007-06-20 Thread Musachy Barroso
yes, it does sound like the same scenario. musachy On 6/20/07, Jeromy Evans [EMAIL PROTECTED] wrote: Musachy, is this the https://issues.apache.org/struts/browse/WW-1766issue. I recall you made a partial fix in 2.0.8/2.0.9 but in 2.0.6 I used a work-around. FanCo wrote: Hi musachy,

Re: Struts 2 + Spring 2 + DAO + Hibernate

2007-06-20 Thread hezjing
I found this article very useful: Developing J2EE Applications Using Hibernate Annotations and Spring MVC http://www.developer.com/java/ent/article.php/10933_3577101_1 On 6/19/07, hezjing [EMAIL PROTECTED] wrote: Hi! What is the difference between a Model object and DAO? In Struts 2 +

How to invoke actions in different configuration packages

2007-06-20 Thread hezjing
Hi! When we have the Struts configuration below: package name=person extends=struts-default action name=list method=execute class=personAction resultpages/persons.jsp/result /action /package We can invoke the action by /list.action. Why do we want to create a

答复: How to invoke actions in dif ferent configuration packages

2007-06-20 Thread chenshibing
You should add a name space for person and product package, as following: package name=person extends=struts-default namespace=/person action name=list method=execute class=personAction resultpages/persons.jsp/result /action /package package name=product