quick WebApp start

2012-11-11 Thread Giovanni Azua
Hi, It is a while I haven't seen Struts 2 and would like to quickly build a simple WebApp, I need only very basic functionality. Is there a quick start sample WebApp I could build upon? While my needs are very basic i.e. authentication, user registration etc I would like to have a consistent

RE: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-16 Thread Giovanni Azua
hi Lukasz, I have the same here: Struts 2.1.6 Tomcat 6.0.18 JSE JDK 1.6.0_11 Windows XP I installed Tomcat service and drop the war that comes within the struts-2.1.6-all.zip and then saw the NPE blow. I restarted the showcase several times from Tomcat manager but still got the NPE. Now that I

RE: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-16 Thread Giovanni Azua
hi there! Ok now the showcase works for me too. I think I found the cause of the problem. (Under Windows XP) - If I install Tomcat under C:\Program Files\Apache Software Foundation\Tomcat (as the Tomcat Windows service installer does) the NPE occurs - OTOH if I install Tomcat under e.g.

NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-15 Thread Giovanni Azua
Hi, I have just freshly installed Tomcat 6.0.18 and the newest Struts 2.1.6 showcase but starting the context fails with NPE :( Best regards, Giovanni java.lang.NullPointerException at com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileMan ager.java:209) at

criteria-based action forking: missusing Code behind?

2008-10-03 Thread Giovanni Azua
hi, I have different types of (trading strategy/algorithm) configurations. My application allows scheduling Simulations for any of the existing types, depending on the type it should be redirected to a specific form e.g. Example

Re: criteria-based action forking: missusing Code behind?

2008-10-03 Thread Giovanni Azua
: Error setting expression 'simulationRunId' with value ['I30gBGp.1FxpeY.Hp35xbF.1k', ] Musachy Barroso wrote: Is configType a parameter? where is it coming from? musachy On Fri, Oct 3, 2008 at 10:16 AM, Giovanni Azua [EMAIL PROTECTED] wrote: hi, I have different types of (trading strategy

Re: criteria-based action forking: missusing Code behind?

2008-10-03 Thread Giovanni Azua
the problem, I think. If it is a parameter you can reference it as #parameters.xyz. On Fri, Oct 3, 2008 at 10:29 AM, Giovanni Azua [EMAIL PROTECTED] wrote: hi! :) The configType is a bean property exposed by the Opp action. In fact I get the error logging below. I believe this happens because

Re: criteria-based action forking: missusing Code behind?

2008-10-03 Thread Giovanni Azua
is to cover exactly this kind of use-cases ... TIA, regards, Giovanni Giovanni Azua wrote: btw I am using v2.1.2 do you mean like this: action name=FormScheduleSimulation result type=redirectAction${ 'FormScheduleSimulation' + #parameters.configType.name }/result /action unfortunately does not work

Re: Struts 2 CRUD Question

2008-09-29 Thread Giovanni Azua
hi, One way I can think of is to use hidden fields in your forms, to pass long the values you do not want changed. This way you keep your Model-driven action consistent and you pass along the parameters that you do not want the user to change in each use-case. A not so clean way would be to

Re: Struts 2 CRUD Question

2008-09-29 Thread Giovanni Azua
hi again, According to what Dave explains then my recommendation does not apply. Maybe you should check what values you are initializing the User DTO model to, maybe some of the fields are initialized as null or maybe you think you are updating but Struts is actually creating a new DTO

Re: Execute and wait interceptor and calling an action more than once

2008-07-21 Thread Giovanni Azua
hi, I think that actually you can run more than one execAndWait at the time for the same Session, the problem though is that you have no guarantee on which result will be returned to which browser e.g. Session 1 - browser 1 - triggers execAndWait = gets result of action triggered by Browser

easy way to keep widget css style at default?

2008-07-17 Thread Giovanni Azua
hi, Is there any easy way to have a widget like e.g. dojo's datetimepicker to keep its original style despite applying any global css? TIA, regards, Giovanni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: easy way to keep widget css style at default?

2008-07-17 Thread Giovanni Azua
; } .table tfoot th, tfoot td { border: 0px; /* === FIXED here */ text-align: left; font-size: 1em; background: #e8e8cf; } * Giovanni Azua wrote: hi, Is there any easy way to have a widget like e.g. dojo's

[S2] Jscalendar plugin does not work in S2.1.x

2008-07-16 Thread Giovanni Azua
hi, I followed the instructions here: http://code.google.com/p/struts2jscalendarplugin/wiki/FAQ but the jscalendar does not render ... is there anything extra to do when using with S2.1.x? is it confirmed to work/not work with that version? TIA, Giovanni

RE: [S2] Jscalendar plugin does not work in S2.1.x

2008-07-16 Thread Giovanni Azua
Sorry, it does work, I did a mistake. Regards, Giovanni -Original Message- From: Giovanni Azua [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 6:12 PM To: Struts Users Mailing List Subject: [S2] Jscalendar plugin does not work in S2.1.x hi, I followed the instructions

RE: DateTimePicker

2008-07-16 Thread Giovanni Azua
http://issues.apache.org/struts/browse/WW-2353 -Original Message- From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 1:54 PM To: Struts Users Mailing List Subject: DateTimePicker Hello, I have several problems with DateTimePicker widget used for

Jazoon 08 conference wo/Struts 2 :(

2008-06-24 Thread Giovanni Azua
Hi, I attended today the Jazoon conference here in Zurich and there were no Struts2 presentations... pity :( ... maybe next year? http://jazoon.com/en.html There were many interesting topics covered e.g. Ajax push framework http://www.icefaces.org/ where different parts of a page are rendered

RE: [OT] What slows you down?

2008-06-21 Thread Giovanni Azua
-Original Message- From: Jim Kiley [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 3:37 PM To: Struts Users Mailing List Subject: Re: [OT] What slows you down? Gah, I have been using MyEclipse for two years and never noticed the JSP debugger. How embarrassing. jk lol!

Re: [OT] What slows you down?

2008-06-20 Thread Giovanni Azua
In the context of Struts 2 and from my personal experience as a Struts framework (pure java-centric) user that does not do webapps development for a living I would have very much appreciated: 1-. A rather colorful set of Struts Blank applications where you could get out of the box: a)

OT: issue porting AppFuse basic to S2.1.2

2008-06-19 Thread Giovanni Azua
hi, Attempting to port AppFuse appfuse-basic-struts generated project to S2.1.2 and after following some of the known migration steps I get to the following stack trace when running the application with mvn jetty:run-war: ... No mapping found for dependency [type=java.lang.String,

Re: OT: issue porting AppFuse basic to S2.1.2

2008-06-19 Thread Giovanni Azua
Resolved ... in the web.xml struts filter was missing the newly required actionPackages parameter. Is this new to 2.1.2 or? I currently use 2.1.1 and did not have that problem ... regards, Giovanni - To unsubscribe, e-mail:

redirectAction and forwarding actionErrors actionMessages

2008-06-18 Thread Giovanni Azua
hi, I basically would like to pass an action message or error from one action to another using the redirectAction result type. The use-case is CRUD-related i.e. 1-. displaying a list of X-type beans each one having a link button to delete it. 2-. once a delete request is submitted, the

Re: [ANN] Struts 2 in Action now available

2008-06-04 Thread Giovanni Azua
I am very excited that I've just received my copy :) You guys Don, Scott and Chad did an excellent job. I specially like very much the coverage of core topics of the framework e.g. the explanation on writing custom validators for which there is not so much online documentation. I yesterday

Re: [ANN] Struts 2 in Action now available

2008-06-04 Thread Giovanni Azua
[EMAIL PROTECTED] wrote: Thanks Giovanni -- It is nice to hear all the work is paying off for you! Would you be willing to post a review on Amazon? Sure thing! within the next 48 hours :) - To unsubscribe, e-mail: [EMAIL

Re: Page the waiting / Páginas de espera

2008-05-22 Thread Giovanni Azua
hi, Do you mean running a lengthy process? then the way to go would be using execAndWait interceptor, have a look in: http://struts.apache.org/2.x/docs/execute-and-wait-interceptor.html ** Si a lo que te refieres es a ejecutar un proceso y que el

Re: Page the waiting / Páginas de espera

2008-05-22 Thread Giovanni Azua
hi Eduardo, It would be useful that you posted the struts configuration and all relevant snippets. We won't otherwise understand the case you're describing. Just a wild shot at what you explain sounds like you don't get your properties properly assigned to the Action ... is that it? If it

Re: [struts2]how to configure the web app

2008-05-16 Thread Giovanni Azua
hi Martin, I here, do not use Spring nor hibernate and indeed need defining a ServletContextListener implementation that I configure in web.xml that initializes database connections etc. In an ideal world: - You are starting a new web application project from scratch - You are open to see

Re: Type conversion with enum elements

2008-04-15 Thread Giovanni Azua
hi, A simple workaround would be defining the bean property as String type rather than as the actual enum. Then use the two enum type built in operations name() and valueOf() to implement the getter and setter respectively. If there is actually an elegant way to do it, I would also be

Re: Pagination in Struts2

2008-02-22 Thread Giovanni Azua
hi, I use displaytag (http://displaytag.sourceforge.net). If you can live without a natively AJAX-enabled pagination library, displaytag is excellent. I like very much the concept of display Decorators, produces a very clean design and perfect separation of concerns. Workarounds exist to

Re: Struts 2.1?

2008-02-22 Thread Giovanni Azua
hi, There was also started a troubleshooting/migration guide from 2.0.x to 2.1.x http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html regards, Giovanni Piero Sartini wrote: Am Donnerstag, 21. Februar 2008 20:21:33 schrieb Maria Lujan Salvadori: Hello,

Re: Pagination in Struts2

2008-02-22 Thread Giovanni Azua
be nice to have for pagination, I would gladly swap my own quick'n'dirty implementation for something 3rd party. Adam Giovanni Azua on 22/02/08 09:47, wrote: hi, I use displaytag (http://displaytag.sourceforge.net). If you can live without a natively AJAX-enabled pagination library

Re: Pagination in Struts2

2008-02-22 Thread Giovanni Azua
Giovanni Azua-3 wrote: hi, I use displaytag (http://displaytag.sourceforge.net). If you can live without a natively AJAX-enabled pagination library, displaytag is excellent. I like very much the concept of display Decorators, produces a very clean design and perfect separation of concerns

Re: datetimepicker version 2.0.11 issue

2008-02-21 Thread Giovanni Azua
hi, Indeed, as Dave pointed out that answer is confusing. I had the same issue as the OP and have not been able to find a working solution, at least not for S 2.1.x Unfortunately not even the opposite settings of what is suggested works in S 2.1.x for entering free time without this 5 minute

tons of useless logging slowing my app down

2008-02-15 Thread Giovanni Azua
hi, I have just bumped into the same logging issue as others have. I basically get tons of this: WARNING: Could not find property [theme] Feb 15, 2008 9:53:06 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn My setup is: - Struts 2.1.x built from trunk - I import only

Re: Need a Help

2008-02-12 Thread Giovanni Azua
As far as I can tell, yes it can be done in the same Eclipse. If you already have a web application development setup using Eclipse then the only thing you would require to be able to use Struts in your application is just to drop the relevant jars in e.g. struts2 core, plugins etc and

Re: dispaytag + Struts 2.1.x: encoding parameters into requestURI

2008-02-06 Thread Giovanni Azua
hi Randy, You're right! many thanks! Best regards, Giovanni Randy Burgess wrote: All you should need is a getter in your action for simulationKey and then display:table name=statistics id=statistics defaultorder=descending

dispaytag + Struts 2.1.x: encoding parameters into requestURI

2008-02-05 Thread Giovanni Azua
hi, I require encoding get parameters into the requestURI field but I can't find the way e.g. %@ page contentType=text/html; charset=UTF-8% %@ taglib prefix=s uri=/struts-tags% %@ taglib prefix=display uri=http://displaytag.sf.net/el; % display:table name=statistics id=statistics

Re: question on mapping

2008-02-04 Thread Giovanni Azua
action that provides access to s2 tags resources...but not to a default tile AFAIK http://struts.apache.org/2.0.11/docs/codebehind-plugin.html Giovanni Azua wrote: hi, Suppose you have a struts.xml mapping that looks like: action name=Form* class=com.sag.optimizer.ui.web.action.form.Form{1

question on mapping

2008-02-04 Thread Giovanni Azua
hi, Suppose you have a struts.xml mapping that looks like: action name=Form* class=com.sag.optimizer.ui.web.action.form.Form{1}Action result name=input type=tileswebui.form{1}/result result name=error type=tileswebui.failed/result /action In several cases I will probably want to

Response/Session pattern for this use-case?

2008-01-31 Thread Giovanni Azua
hi, I have the following use case: - User provide some input and triggers a long-running simulation process. - execAndWait interceptor is used while the process is in progress. - Results are displayed in a report that includes many displaytag instances along with some charts. Because some of

Re: Struts2+MyEclipse

2008-01-25 Thread Giovanni Azua
Hi Aum, I am using MyEclipse 6.0.x to develop a large Struts 2 application and I am very happy with it. The speed you get in the develop-deploy-test cycle with its integrated MyEclipse Tomcat already pays off buying it. Anyway, I found couple of posts from MyEclipse staff that mention they are

Re: S2.1.x declarative validation and primitive types: is this a bug?

2007-12-06 Thread Giovanni Azua
Hi Jeromy, Many thanks for your thoughtful feedback on this issue. Jeromy Evans wrote: Personally, I never expose primitives as properties of an action because null values are always legal over this interface. In the special case of Boolean which can easily accidentally cause an NPE, I

Re: S2.1.x declarative validation and primitive types: is this a bug?

2007-12-05 Thread Giovanni Azua
Hi Jeromy, Jeromy Evans wrote: 2nd, the parameters interceptor is called and sets properties of your action. It cannot set primitives to null, so it does not write to these properties. 3rd, the validation interceptors are executed. They cals the getters of your action instance and observe

S2.1.x declarative validation and primitive types: is this a bug?

2007-12-05 Thread Giovanni Azua
hi, I provided declarative XML validation for a form where the action would expose primitive type properties. The problem is that a primitive type property left blank in the form would never be caught as not provided by the required validation. The property would instead be set with the

about linking two autocompleters using topics [never surrender :)]

2007-12-04 Thread Giovanni Azua
hi, I have been recently asking how to achieve that changing the value of autocompleter A, triggers an Ajax reload of autocompleter B and make the only item returned as selected on B i.e. displayed in its textInputNode. I followed directions from:

Resolved! about linking two autocompleters using topics

2007-12-04 Thread Giovanni Azua
Hi Jeromy, Many thanks for your response! Jeromy Evans wrote: I don't use dojo's autocompleter myself, but after a quick look at the javascript source for the widget (ComboBox) I can see there's a public method setSelectedValue(value) which may help, although it's not clear to me which

best choice for this use case ... ?

2007-12-03 Thread Giovanni Azua
hi, I have the following use-case -I think should be pretty common- and would like to know what would be the best design choice: - There is a form that contains an autocompleter field filled with all stock indexes. - In the same form there are other dependent input values displayed e.g.

Re: best choice for this use case ... ?

2007-12-03 Thread Giovanni Azua
hi, I found a post from Musachy that resolves the a) problem of submitting the selected index as part of the ajax action request: http://www.mail-archive.com/user@struts.apache.org/msg69361.html I changed the JSP to what's below. Now I'm trying to resolve problem b) that e.g. the autocompleter

autocompleter reload from json action ...

2007-12-03 Thread Giovanni Azua
hi, This is a follow up to my posts before best choice for this use case ... ? Now it works: I get the two autocompleters connected and the JSON action generating the JSON result list properly that also gets populated in the right autocompleter. So far so good BUT the only single value is then

Re: S2.1.1 question on validation ...

2007-11-29 Thread Giovanni Azua
a message on top of the right field name ... how can I have that? TIA, regards, Giovanni Giovanni Azua wrote: hi, I am trying to introduce a validation rule that checks that at least one element has been added to an optiontransferselect UI component. I use the expression type validation but does

adding validation leads to NullPointerException

2007-11-29 Thread Giovanni Azua
hi, I have a JSP (snippet below) that works fine without validation, I need to conditionally include certain fields, I prefer that to the other choice of having two different copies of slightly similar input form JSP that I will then have to keep in sync. Only when I add a validation xml

S2.1.1 question on validation ...

2007-11-28 Thread Giovanni Azua
hi, I am trying to introduce a validation rule that checks that at least one element has been added to an optiontransferselect UI component. I use the expression type validation but does not seem to work ... see the details below. field name=outSamplePeriods field-validator

download button displays 2.1.0 ?

2007-11-27 Thread Giovanni Azua
hi, I was surprised to see under http://struts.apache.org/2.x/ the download button is already displaying 2.1.0 ... is that correct? or is it in the process of being correct? :) regards, Giovanni - To unsubscribe, e-mail:

remote div diff behavior in 2.1.x

2007-11-26 Thread Giovanni Azua
hi, I fed up guessing so looked at the sources. The key parameters in this issue are these: - delay: How long to wait before fetching the content (in milliseconds) - updateFreq: How often to reload the content (in milliseconds) - preload: Load content when page is loaded The closest I could

remote div diff behavior in 2.1.x

2007-11-23 Thread Giovanni Azua
hi, Sorry I tested example1.jsp and it is not the same use-case as mine. If you try example4.jsp in the showcase under Ajax remote DIV you will see the same problem I have happening there i.e. you have to wait 5 seconds while it displays loading now which I think is wrong. Now I strongly

Re: remote div diff behavior in 2.1.x

2007-11-23 Thread Giovanni Azua
use Tiles but I will need to investigate more ... regards, Giovanni Giovanni Azua wrote: btw Sorry I missed including that I experience this issue with Struts 2.1.1 build yesterday from svn ... I know, I love living on the edge :) no seriously for my app I have only found this little small issue

Re: remote div diff behavior in 2.1.x

2007-11-23 Thread Giovanni Azua
btw Sorry I missed including that I experience this issue with Struts 2.1.1 build yesterday from svn ... I know, I love living on the edge :) no seriously for my app I have only found this little small issue everything else works like a dream :) Best regards, Giovanni Giovanni Azua wrote

remote div diff behavior in 2.1.x

2007-11-23 Thread Giovanni Azua
hi! In version 2.0.x the remote DIV UI tag was initially rendering the content of the DIV by immediately invoking the target action. In version 2.1.x on the other hand, remote DIV does not initially render the content of the target action, I did some research and tried using the new

Re: is there any book on struts 2 in the market.................

2007-11-22 Thread Giovanni Azua
hi wicketshafi, You may also want to consider buying WebWork in Action I found it to be a great reference for Struts 2. HTH, regards, Giovanni wicketshafi wrote: Hello,, is there any book on struts2 in the market... if it is there please send a message. regards -Shafi

Re: Migration from S2.0.x to S2.1.x

2007-11-22 Thread Giovanni Azua
to the Migration Guide page. HTH, Ted http://www.husted.com/ted/blog/ On Nov 14, 2007 5:03 AM, Antonio Petrelli [EMAIL PROTECTED] wrote: 2007/11/14, Giovanni Azua [EMAIL PROTECTED]: hi, I have been collecting a few points required for migrating from S2.0.x to S2.1.x and I would like

how to avoid css clashes?

2007-11-22 Thread Giovanni Azua
hi all, I have lot of trouble importing any css as it will most likely clash and screw the dojo widgets. I was wondering whether there is a configuration setting in Struts that would yield the same effect as e.g. displaytag.property css.table i.e. provide a different css namespace and avoid

Migration from S2.0.x to S2.1.x

2007-11-14 Thread Giovanni Azua
hi, I have been collecting a few points required for migrating from S2.0.x to S2.1.x and I would like to bookkeep this info somewhere. Of course, if we do it in Wiki it will benefit others too ... where exactly could we enter this? best regards, Giovanni Jeromy Evans wrote: There's no

S2.1.1 sx:datetimepicker seem to ignore displayFormat on submit

2007-11-14 Thread Giovanni Azua
=mailto:[EMAIL PROTECTED]Giovanni Azua/a * @version $ $Date: Oct 3, 2007 1:27:13 PM $ */ public class StringToDateConverter extends StrutsTypeConverter { // // public

Re: S2.1.1 sx:datetimepicker seem to ignore displayFormat on submit

2007-11-14 Thread Giovanni Azua
hi, Ok good to know! thanks! We need a special integer-based format and not Date but this makes the conversion actually simpler. Thanks! Best regards, Giovanni Musachy Barroso wrote: Actually it was wrong in 2.0.x, on 2.1 the date will always be submitted as RFC 3339, if you define your

S2 v2.1.1: exception updating remote div ..

2007-11-13 Thread Giovanni Azua
hi all, I am playing with Struts 2.1.1 built from sources and I am currently getting the exception below while using remote div, any clues? TIA, regards, Giovanni WARNING: Could not find property [struts.valueStack] ognl.OgnlException: target is null for setProperty(null, preventCache,

Re: S2 v2.1.1: exception updating remote div ..

2007-11-13 Thread Giovanni Azua
hi, Got rid of the issue by changing the following parameter in struts.xml From: constant name=struts.devMode value=true / To: constant name=struts.devMode value=false / hard to guess this one .. regards, Giovanni Giovanni Azua wrote: hi all, I am playing with Struts 2.1.1 built

Re: S2 v2.1.1: exception updating remote div ..

2007-11-13 Thread Giovanni Azua
hi Dave, Please find below all relevant sources. Workflow is: 1-. Menu - ListOptimizationJobStatus.action 2-. ListOptimizationJobStatus.action - Displays listOptimizationJobStatus.jsp 3-. listOptimizationJobStatus.jsp Remote DIV refreshes every X secs and invokes

Re: Keep Objects over request

2007-11-07 Thread Giovanni Azua
hi, Just couple of ideas :) If it is a lightweight object then you could serialize it and encode it into the URL i.e. GET you can then use the attribute includeParams=get and S2 will keep reposting the same serialized value parameter over and over as part of the request. Probably a cleaner

Re: Keep Objects over request

2007-11-07 Thread Giovanni Azua
Opps sorry :) besides these are rather hacks than a clean way to go .. apologies :) regards, Giovanni Antonio Petrelli wrote: 2007/11/7, Giovanni Azua [EMAIL PROTECTED]: If it is a lightweight object then you could serialize it and encode it into the URL i.e. GET you can then use

Re: how to create background process

2007-11-07 Thread Giovanni Azua
Hi, Martin Gainty wrote: Encapsulate the long running resource in run() method of a Thread here is a good example http://java.sun.com/developer/technicalArticles/Threads/applet/ M-- I think the Java Servlet specification discourages such misbehavior (creating threads explicitly): Copied

Struts 2.1.x trunk Could not find property in tests and running ..

2007-10-30 Thread Giovanni Azua
hi, While building Struts 2.1.x trunk branch test cases I get tons of this kind of warnings: WARNING: [57:14.332] Could not find property [#attr.theme] WARNING: [57:14.364] Could not find property [#attr.templateDir] WARNING: [57:14.365] Could not find property [#attr.theme] The same

ui tag: timepicker 2.0.11 does not work ..

2007-10-29 Thread Giovanni Azua
hi, I was playing a bit with the latest 2.0.11 GA release and noticed that the timepicker does not display anything. I directly deployed the show-case 2.0.11 in Tomcat 6. I am on Linux fedora using Firefox and Konqueror neither browser show anything. TIA, regards, Giovanni

Re: ui tag: timepicker 2.0.11 does not work ..

2007-10-29 Thread Giovanni Azua
the listbox icon etc. I am temporarily upgrading to 2.1.0 my local snapshot build rather than 2.0.11 GA .. regards, Giovanni Giovanni Azua wrote: hi, I was playing a bit with the latest 2.0.11 GA release and noticed that the timepicker does not display anything. I directly deployed the show-case

migration notes from 2.0.x to 2.1.x ... any?

2007-10-29 Thread Giovanni Azua
are there any? I got lot of trouble just switching the jars from 2.0.9 to 2.1.0 e.g. template exception about including s:head theme=ajax/ also lot of log errors/warnings complaining missing properties so had to move away my current struts.properties. TIA, regards, Giovanni

Re: OT: displaytag remember sort config ..

2007-10-23 Thread Giovanni Azua
=status title=Status sortable=true headerClass=sortable / display:column property=progress title=Progress format={0,number,integer}% sortable=true headerClass=sortable / display:column property=result title=Result sortable=false / /display:table regards, Giovanni Giovanni Azua wrote

AJax remote DIV flickering ...

2007-10-23 Thread Giovanni Azua
hi all, I have within a S2 self updating Ajax remote DIV a displaytag table that flickers terribly. Is there any cheap way to get rid of the flickering? The showcase example also flicker slightly but when there is more content then it becomes really bothering. TIA, regards, Giovanni

OT: displaytag remember sort config ..

2007-10-22 Thread Giovanni Azua
hi all, I just put a displaytag table within a S2 AJAX DIV that refreshes every X seconds. Now the problem is that I would like displaytag to remember the last sorting options so e.g. the auto refresh not only displays the new data but also resorts according to the last known sorting criteria

about Struts 2.0.9 portlet example ...

2007-10-18 Thread Giovanni Azua
hi all, I managed to see the examples in the portlet webapp demo (there is no index page) but I didn't see any portlet anywhere ... so I am curious as if to there is at all an AJAX portlet control delivered with Struts 2? Lack of portlets in S2 and AJAxification of displaytag would be the

realtime updatable list ..

2007-10-17 Thread Giovanni Azua
hi all, I have at application scope level a list of data received as event from a system outside the Struts 2 web app. I then have my struts application with a JSP page that shows to the user the list using displaytag when the user chooses to have an overview of such list. The question is:

Re: Just another question on File Upload in Struts 2 ...

2007-10-17 Thread Giovanni Azua
. TIA, regards, Giovanni Giovanni Azua wrote: hi all, Unlike the other post I am using Struts 2.0.9 that seems to have a slightly different setup for File Upload. My struts.properties contains the relevant default settings: ### Parser to handle HTTP POST requests, encoded using the MIME-type

Struts 2 + tiles + displaytag export = firefox hang or exception

2007-10-17 Thread Giovanni Azua
hi All, Anyone has ran into the situation above? solutions? I have the snippet below in my web.xml. I get no exceptions but firefox hangs. If I flip the order i.e. struts 2 filter first and then displaytag filter then I get an exception from displaytag complaining about the lack of the

Re: Struts 2 + tiles + displaytag export = firefox hang or exception

2007-10-17 Thread Giovanni Azua
*.action/url-pattern /filter-mapping -Message d'origine- De : Giovanni Azua [mailto:[EMAIL PROTECTED] Envoyé : mercredi 17 octobre 2007 11:09 À : Struts Users Mailing List Objet : Struts 2 + tiles + displaytag export = firefox hang or exception hi All, Anyone has ran into the situation

Re: Struts 2 + tiles + displaytag export = firefox hang or exception

2007-10-17 Thread Giovanni Azua
hi Leonard, Many thanks for your help. Since I use tiles, it is the main difference I think. I have a template layout and actual page that looks as shown below. Thanks again. best regards, Giovanni * Tiles LAYOUT * %@ taglib

Re: Struts 2 + tiles + displaytag export = firefox hang or exception

2007-10-17 Thread Giovanni Azua
hi Leonard, Tried your advice and it does not solve the problem ... :( regards, Giovanni I see two things that can flush the response. s:head theme=ajax/ And jsp:include page=menu.jsp / I think that you should try to include menu.jsp with tiles.

Just another question on File Upload in Struts 2 ...

2007-10-16 Thread Giovanni Azua
hi all, Unlike the other post I am using Struts 2.0.9 that seems to have a slightly different setup for File Upload. My struts.properties contains the relevant default settings: ### Parser to handle HTTP POST requests, encoded using the MIME-type multipart/form-data

question on redirect actions ...

2007-10-15 Thread Giovanni Azua
hi all, I have the following use-case that seem not to be covered by the redirect action? - User uploads a CSV file containing several parameters, this is handled by Action A. - Action A reads all parameters, and needs to redirect to action B passing those CSV parameters as part of B's

Re: question on redirect actions ...

2007-10-15 Thread Giovanni Azua
Opps just found it ... This answers my question: http://struts.apache.org/2.x/docs/parameters-in-configuration-results.html regards, Giovanni Giovanni Azua wrote: hi all, I have the following use-case that seem not to be covered by the redirect action? - User uploads a CSV file

OT: can't use JFreeChart plugin so ...

2007-10-09 Thread Giovanni Azua
hi all, Since I have a use-case where I can't use the JFreeChart plugin then ended up handling the writing and reading of the generated chart image files myself. So my action implements ServletContextAware and using the function getRealPath(/) I can generate the png files with unique names

OT: accessing System.getProperty from JSP

2007-10-09 Thread Giovanni Azua
hi, the following in a JSP does not generate anything ... any advice on the way to do it using S2? Well I could just export it as an additional Action property but it is not very elegant. % System.getProperty(java.io.tmpdir); % TIA, regards, Giovanni

RE: accessing System.getProperty from JSP

2007-10-09 Thread Giovanni Azua
)% -Original Message- From: Giovanni Azua [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 09, 2007 12:51 PM To: Struts Users Mailing List Subject: OT: accessing System.getProperty from JSP hi, the following in a JSP does not generate anything ... any advice on the way to do

RE: OT: can't use JFreeChart plugin so ...

2007-10-09 Thread Giovanni Azua
hi, My action outputs 3 lists (using 3 displaytag tables) of statistics plus 3 charts that must be all displayed together. You can not do this using a stream result, it would be the case if outputing only one chart with no lists. regards, Giovanni Any reason you can't generate the charts on

question on JFreeChart plugin ...

2007-10-08 Thread Giovanni Azua
hi all, I don't know how to implement the following use-case using the JFreeChart plugin and would appreciate some guidance: I have an Action that does some lengthy computation and generates some data that needs to be plotted in several graphs and displayed to the user in a JSP page. My

question on 2.1.0 ...

2007-10-05 Thread Giovanni Azua
hi all, It is not clearly stated anywhere ... but seems that version 2.1.0 beta is a maintenance release and does not include any new features, is that true? Most of the JIRA entries are bug fix requests. Meaning we users building from repository should get a more fixed and stable version

execAndWait interceptor and Tiles problem ..

2007-10-03 Thread Giovanni Azua
hi, I have the struts.xml definition as shown below that uses execAndWait interceptor and Tiles. The problem is that either: a) Using tiles the delaySleepInterval is ignored and the wait page never refreshes i.e. when SimulationRunAction completes it is never redirected to success result.

Re: execAndWait interceptor and Tiles problem ..

2007-10-03 Thread Giovanni Azua
tiles:insertAttribute name=body/ /div /div /body /html * Antonio Petrelli wrote: 2007/10/3, Giovanni Azua [EMAIL PROTECTED]: a) Using tiles the delaySleepInterval is ignored and the wait page never

Re: execAndWait interceptor and Tiles problem ..

2007-10-03 Thread Giovanni Azua
hi Antonio, It works like a dream! :))) Non ho visto quella, ma adesso funziona a posto :) Grazie mille ancora ed buena serata, saluti, Giovanni Antonio Petrelli wrote: 2007/10/3, Giovanni Azua [EMAIL PROTECTED]: You have no meta refresh, just add: meta http-equiv=refresh content=5;url

datetimepicker displayFormat=yyyyMMdd: bug or feature?

2007-10-02 Thread Giovanni Azua
hi all, I am on Struts 2.0.9 here ... using datetimepicker with the following displayFormat setting makes the control work incorrectly i.e. permanently display 2007 only and wrongly: displayFormat=MMdd using separators works fine though e.g. displayFormat=.MM.dd TIA, regards,

[OT] displaytag nested tables ...

2007-10-01 Thread Giovanni Azua
Hi all, Can anyone confirm that was able to have displaytag nested tables working in Struts 2? I followed their nested table example. I don't get any errors but it does not work either ... Any experiences? TIA, regards, Giovanni

Re: autocompleter

2007-09-28 Thread Giovanni Azua
Hi Meissa, Yep it is possible ... assuming you provide: s:autocompleter name=someProperty/ then include in the rendering Action associated to this JSP the following two bean property getters: // will provide the default display value that the user sees public String getSomeProperty() { //

Struts2 defaults to struts.url.includeParams=get why??...

2007-09-27 Thread Giovanni Azua
Hi all, I don't understand why the parameter struts.url.includeParams would default to get rather than none. Its default value already gave me quite some headaches see: http://code.google.com/p/tabletags/issues/detail?id=11 http://code.google.com/p/tabletags/issues/detail?id=12 regards,

  1   2   >