actionframework-users Mailing List for ActionFramework (Page 10)
Status: Inactive
Brought to you by:
ptoman
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(12) |
Jul
(11) |
Aug
(26) |
Sep
(38) |
Oct
(33) |
Nov
(18) |
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(26) |
Feb
(7) |
Mar
(3) |
Apr
(14) |
May
(12) |
Jun
(1) |
Jul
(7) |
Aug
|
Sep
(2) |
Oct
|
Nov
(5) |
Dec
|
2004 |
Jan
(4) |
Feb
(5) |
Mar
(2) |
Apr
|
May
(2) |
Jun
(2) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Petr T. <Pet...@pi...> - 2002-07-07 15:26:24
|
* ActionPack * (http://dione.zcu.cz/~toman40/ActionPack) - upgraded modules: - ActionServlet 0.93.1 -> 0.93.1a - ASWizards 1.23 -> 1.23a - AS_miniRMI_Connector 0.92 -> 0.92a - JASSModule 0.51 -> 0.51.1 - miniRMI 0.94.1 -> 0.94.2 - Webrunner 0.5 -> 0.5a - lib\webmacro.jar upgraded 1.0 -> 1.0.1 - licenses of ASWizards and WebRunner changed from GNU GPL to GNU LGPL (because of "plug-in issue") - setup now skips modules rebuilding -> much faster installation * ActionServlet * - session based initialization code is now run before ActionServlet.handle() is called - this allows calling getComponent() method from handle() - bugfix: templates names caching removed (caused 'template was not loaded by getTemplate() method' error when template name cache expired - bugfix: JavaBeansInstantiator didn't initialize props of re-created component - bugfix: URLParameterRetriever didn't retrieve last single-character parameter * JAASModule * - bugfix: StaticPermissionsDefs.getPermissionTargetActions() method caused NullPointerException for undefined permission 'target' * miniRMI * - fixed miniRMIC support for JBuilder 7 (JBuilder OpenTools API has changed) |
From: Petr T. <Pet...@pi...> - 2002-07-01 17:46:16
|
> Thanks for the quick response on the regex problem (the trailing > slash solution worked a treat :-) ). Fine. > I am currently using type handlers and have an issue which I need > suggestions on. I have two type handlers which have the same > source-type and target-type i.e. > > At the moment I can have however many type handlers with the same > source-type and target-type but all methods that have a > java.util.ArrayList as a parameter will all use the same type > handler. You can override beforeConversion() method in servlet, put actionName to Context and in the type handler convert according to the action. I've been thinking of an enhancement of ActionConfig, that would allow more granularity for selecting type handlers - like: <action name="/actionA" method="methodA(java.util.ArrayList listA)"> <input-variable name="listA" value="roleUids[]"> <type-handler class="org.visres.ivr.security.HandlerA"/> </input-variable> <on-return value="void" show-template="xxxx"/> </action> I hope to find some time for AS this week. -Petr -- >>> http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 <<< |
From: Mandip S. S. <ma...@su...> - 2002-06-28 15:12:17
|
Hi Petr Thanks for the quick response on the regex problem (the trailing slash solution worked a treat :-) ). I am currently using type handlers and have an issue which I need suggestions on. I have two type handlers which have the same source-type and target-type i.e. <type-handlers> <type-handler target-type="java.util.ArrayList" class="org.visres.ivr.security.HandlerA"/> <type-handler target-type="java.util.ArrayList" class="org.visres.ivr.security.HandlerB"/> </type-handlers> The problem is how do I make different methods in different actions specifiy which type-handler to use when the method parameter type is the same (in this case the paramter type being a java.util.ArrayList) i.e. <action name="/actionA" method="methodA(java.util.ArrayList listA)"> <input-variable name="listA" value="roleUids[]"/> <on-return value="void" show-template="xxxx"/> </action> Needs to use HandlerA and <action name="/actionB" method="methodB(java.util.ArrayList listB)"> <input-variable name="listB" value="roleUids[]"/> <on-return value="void" show-template="xxxx"/> </action> needs to use HandlerB. At the moment I can have however many type handlers with the same source-type and target-type but all methods that have a java.util.ArrayList as a parameter will all use the same type handler. Any suggestions would be much appreciated. Regards Mandip P.S. again due to mail server problems please could you Cc: any replys to man...@ya... |
From: Petr T. <cz5...@ti...> - 2002-06-26 09:59:27
|
>I'm trying to use a regex action i.e. > >However when I have a url that only has one character after the action >the resulting userUid always gets passed as null i.e. > >http://localhost:8081/ActionServlet/editUser/a You have discovered a bug in URLParameterRetriever [line 60], which shoul= d be: if (start =3D=3D -1) return null; You can also add trailing slash to your URL: http://localhost:8081/ActionServlet/editUser/a/ Both should work, Petr >>> http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=3D22957959= <<< ________________________________________________ KOUKAJ=CD GEJ=A9I NA FOTBAL? http://ms2002.tiscali.cz - v=B9e o fotbalov=E9m =B9ampion=E1tu |
From: Mandip S. S. <ma...@su...> - 2002-06-26 00:08:15
|
Hi All I'm trying to use a regex action i.e. <action name="/editUser/$userUid" method="getUser(String userUid)"> <on-return value="*" assign-to="user" show-template="org/visres/ivr/security/EditUser.html.vm"/> </action> However when I have a url that only has one character after the action the resulting userUid always gets passed as null i.e. http://localhost:8081/ActionServlet/editUser/0 OR http://localhost:8081/ActionServlet/editUser/a All pass user userUid as null. However anything with more than one character gets passed okay i.e. http://localhost:8081/ActionServlet/editUser/00 OR http://localhost:8081/ActionServlet/editUser/aa Any suggestions would be much appreciated. Regards Mandip P.S. As you are probably aware of our well publicised mail server problems please could you reply to man...@ya... :-) |
From: Petr T. <Pet...@pi...> - 2002-06-22 09:36:37
|
> I'm using the if condition for an <input-variable> and need to know > the correct syntax for the AND operator, I've tried && but I get a > syntax error i.e. > > <input-variable name="securityItemIdToActionList" > value="selected[],idToActionMapping[]" if="$selected.length() != 0 && > $idToActionMapping[].length() != 0"/> You need to escape '&' ('<','>','"' etc.) in XML - like you should in HTML, i.e.: if="cond1 && cond2" '<' is escaped as < '>' as > '"' as " '&' as & Petr -- >>> http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 <<< |
From: Mandip S. S. <ma...@su...> - 2002-06-21 11:27:23
|
Hi All Sorry again!!!! Could you please forward any replies concerning the below mail to man...@ya... Original mail: I'm using the if condition for an <input-variable> and need to know the correct syntax for the AND operator, I've tried && but I get a syntax error i.e. <input-variable name="securityItemIdToActionList" value="selected[],idToActionMapping[]" if="$selected.length() != 0 && $idToActionMapping[].length() != 0"/> Any help would be much appreciated. Regards Mandip |
From: Mandip S. S. <ma...@su...> - 2002-06-21 10:59:41
|
Hi All I'm using the if condition for an <input-variable> and need to know the correct syntax for the AND operator, I've tried && but I get a syntax error i.e. <input-variable name="securityItemIdToActionList" value="selected[],idToActionMapping[]" if="$selected.length() != 0 && $idToActionMapping[].length() != 0"/> Any help would be much appreciated. Regards Mandip |
From: David W. <da...@su...> - 2002-06-21 06:57:55
|
Petr, > I have made the cvs working finally. Great, I will checkout and look at it. > Here's a todo for AS 0.94: Just a few comments on some items > [ ] add ActionServlet.destroyComponent(String componentName) method Good idea, we have a funny situation. When we shut down jetty it is not shutting down all of the application. Some threads continue to run. Is this the velocity servlet or something else? > [ ] implement <pre-condition>s - example: > > <pre-condition if="$var" show-template="loggedIn.wm"> > <input-variable name="var" component="auth" > value="isLoggedIn()"/> > </pre-condition> > <pre-condition if="!$REQUEST.isSecure()" show-url="https://..."> > > <pre-condition>s may be defined for: > - all components (inside <components>) > - all action of one component (inside <component>) > - single action (inside <action>) Just checking, will I be able to use pre-condition to handle GET and POST separately. My preferred option is a separate action but if pre-condition will allow me to choose the action depending on GET/POST and HTTP/HTTP then that is OK. > [ ] examples configuration + out-of-box ant task for Jetty Ooh good. > I'm saving few other idas for later versions (postprocessing - XSL/VSL, > ActionClient/ActionController architecture, enhancements to THs, better > logging, writing more sophisticated tutorial etc.) Fine Thanks for all this. David -- David Warnock, Sundayta Ltd. http://www.sundayta.com iDocSys for Document Management. VisibleResults for Fundraising. Development and Hosting of Web Applications and Sites. |
From: Petr T. <Pet...@pi...> - 2002-06-19 19:11:06
|
Hello, I have made the cvs working finally. I hope SF guys make the domain WWW (vhost) respond correctly soon. Here's a todo for AS 0.94: [ ] enable passing of all HTTP parameters (= put everything to Context) [ ] add ActionServlet.destroyComponent(String componentName) method [ ] add ActionServlet.getTypeHandler(...) method [ ] add BaseCompositeHandler + javadoc org.actionframework.th package [ ] allow <on-exception>s common to all components [ ] add new <on-new-session> element - allowing 'show-url' redirect (ensure $SERVLET, $URL and $REQUEST are set before processing it!) [ ] should newSession() return Object instead of Template? [ ] implement <pre-condition>s - example: <pre-condition if="$var" show-template="loggedIn.wm"> <input-variable name="var" component="auth" value="isLoggedIn()"/> </pre-condition> <pre-condition if="!$REQUEST.isSecure()" show-url="https://..."> <pre-condition>s may be defined for: - all components (inside <components>) - all action of one component (inside <component>) - single action (inside <action>) [ ] allow evaluation of 'show-url' directly, not only via <output-variable> [ ] put $REQUEST (of type HttpServletRequest) to Context - like $SERVLET [ ] enable <property> values like: <property name="SomeProperty" value="$xyz"> <input-variable name="xyz" component="Comp" value="getValue()"/> </property> [ ] enable <template> names containing regexps [ ] allow invocation of static method of components in <in/out-var>s [ ] examples configuration + out-of-box ant task for Jetty I'm saving few other idas for later versions (postprocessing - XSL/VSL, ActionClient/ActionController architecture, enhancements to THs, better logging, writing more sophisticated tutorial etc.) I don't think I will have much time in the following two weeks, but I'm going to commit two small bugfixes soon (JavaBeansInstantiator and expiration of templates relict). Comments are welcome (as always :)) -Petr -- >>> http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 <<< |
From: Petr T. <Pet...@pi...> - 2002-06-18 18:34:04
|
> We may want to add extra standard items to the context in future > releases, but this risks namespace problems. So instead why don't we > put an ActionFrameworkStandardContext object into the context. At the > moment this would give us to use in our templates > > $ActionFramework.Servlet $ActionFramework.Url $ActionFramework.Action > $ActionFramework.Version I agree this is useful! > But I can see lots of other good stuff that could go in here, some of > it depending on the debug level of ActionFramework so that if > debugging it makes extra diagnostics available, giving us a similar > feature to phpinfo() which is great when installing/diagnosing php. > > I don't mind if we use ActionServlet, ActionFramework, AS or AF as > the name in the context. How about $context :) Personally, I would like to wait with this until ActionClient version (AS technology used on client side planned for 0.95/0.96), because this can be done in beforeInvoke() as you have noted. Of course, we can discuss what else may be put there. -Petr -- >>> http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 <<< |
From: Petr T. <Pet...@pi...> - 2002-06-18 18:34:00
|
> I want to build a menu of available actions automatically. If we > organize the components and actions within them then I think I can > use a list of components/actions as my menu (a combobox in the header > of items to jump to). Obviously not all actions should be listed (I > guess firstly only gets and not posts, maybe I will use a standard > interface for all components that will allow me to check for valid > actions for the menu or something). > > Anyway the starting point is to make available to the context all > components and actions. Does anyone know how to do that? There is no API for getting info from ActionConfig (I plan this for future releases, when ActionConfig is "stable" enough). Currently you need to parse the XML by yourself - getting components and their actions is quite easy - you can take the code from ActionRuntime.init(). -Petr PS: I have problems with ssh, so I'm sorry that cvs is not set up yet. -- >>> http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 <<< |
From: David W. <da...@su...> - 2002-06-18 01:15:13
|
Hi, I wrote the other day about automatically populating the context with some values, eg the Action. Now I want to be able to access more things about ActionServlet from the context. I want to build a menu of available actions automatically. If we organize the components and actions within them then I think I can use a list of components/actions as my menu (a combobox in the header of items to jump to). Obviously not all actions should be listed (I guess firstly only gets and not posts, maybe I will use a standard interface for all components that will allow me to check for valid actions for the menu or something). Anyway the starting point is to make available to the context all components and actions. Does anyone know how to do that? Thanks Dave -- David Warnock, Sundayta Ltd. http://www.sundayta.com iDocSys for Document Management. VisibleResults for Fundraising. Development and Hosting of Web Applications and Sites. |
From: David W. <da...@su...> - 2002-06-15 23:19:21
|
At present $SERVLET and $URL are placed in the context I need some others (Action is the first I need and yes I know I can add in my servlet beforeInvoke or handle methods) but it has made me think the following We may want to add extra standard items to the context in future releases, but this risks namespace problems. So instead why don't we put an ActionFrameworkStandardContext object into the context. At the moment this would give us to use in our templates $ActionFramework.Servlet $ActionFramework.Url $ActionFramework.Action $ActionFramework.Version But I can see lots of other good stuff that could go in here, some of it depending on the debug level of ActionFramework so that if debugging it makes extra diagnostics available, giving us a similar feature to phpinfo() which is great when installing/diagnosing php. I don't mind if we use ActionServlet, ActionFramework, AS or AF as the name in the context. What do you think? Dave -- David Warnock, Sundayta Ltd. http://www.sundayta.com iDocSys for Document Management. VisibleResults for Fundraising. Development and Hosting of Web Applications and Sites. |