Re: datetimepicker does not work

2007-04-08 Thread David Harland
If you use the datetimepicker in date format I can preset the date value using an action and I can use the displayFormat to format the date. If I use it in type=time the time is always 12:00. I can't adjust the time or the time display format. - Original Message From: David

[OT] problem with displaytag column sorting in struts 1.2 web project

2007-04-08 Thread robin bajaj
Hi All, In my Struts 1.2.x webapp, I am getting some Patient records from backend using my PatientManager businessObject (which uses Hibernate) to send back a populated Patients List in the request scope. (Patient is my bean). I am feeding this patientsList to Displaytag table, to show the

Re: [OT] problem with displaytag column sorting in struts 1.2 web project

2007-04-08 Thread Tim Williams
On 4/8/07, robin bajaj [EMAIL PROTECTED] wrote: Hi All, In my Struts 1.2.x webapp, I am getting some Patient records from backend using my PatientManager businessObject (which uses Hibernate) to send back a populated Patients List in the request scope. (Patient is my bean). I am feeding this

Re: resume after login feature

2007-04-08 Thread Jae K
Sigh... I tried tackling the first half of this problem today. The first part is getting the original requested URL as a parameter to the RedirectActionResult. /global-results result name=login type=redirect-action param name=actionNameLogin/param

Re: resume after login feature

2007-04-08 Thread Jae K
Right after posting this I realized that my AuthenticationInterceptor was the first interceptor to be called, and that's why the ServletRequest object wasn't set. AAAHhh. I've been burned by the config twice already (the first time was when using the struts-default.xml config,

Re: [OT] problem with displaytag column sorting in struts 1.2 web project

2007-04-08 Thread robinbajaj
thanks for the tip. can you please provide more specific example/code-snippet for using the requestURI attribute. i couldnt find enough documentation on this feature. thanks in advance, robin Tim Williams wrote: On 4/8/07, robin bajaj [EMAIL PROTECTED] wrote: Hi All, In my Struts 1.2.x

Re: resume after login feature

2007-04-08 Thread Dale Newfield
Jae K wrote: Now I need to get the OGNL syntax right. One thing that'll help is adding a parse param (set to true) http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/dispatcher/StrutsResultSupport.html -Dale

problem extending the ComposableRequestProcessor process chain

2007-04-08 Thread atitus74
Hello Everyone, I've been working on a web application here and I've come up with a situation where I feel that extending the AuthorizeAction command class would be a quality solution to a challenge I am facing. When I complete this I would be willing to contribute this back for others to use.

Re: resume after login feature

2007-04-08 Thread Jae K
It turns out that ${ServletRequest.requestURI } is the correct OGNL expression. Of course you need to have a getServletRequest method in your action superclass, which means all of your actions for your application that requires a login will have to implement that method or subclass from a class

Re: resume after login feature

2007-04-08 Thread Dale Newfield
Jae K wrote: Dale, the parse param is set to true by default so I didn't have to set it. D'oh! You're right--it says so right there in the javadoc! When did that (change) happen? (Or has it always been that way? Online javadoc for WebWork 2.2.5 seems to suggest it was always that way.

Java Web Parts v1.1 Beta 1 released

2007-04-08 Thread Frank W. Zammetti
Hey everyone... just a quick weekend note to those that might be interested that Java Web Parts v1.1 beta 1 has been released. This release includes a number of new features as well as a number of bug fixes and enhancements to existing functionality (see release notes for full list). You

Re: resume after login feature

2007-04-08 Thread Dave Newton
--- Jae K [EMAIL PROTECTED] wrote: Of course in Login.jsp you need... s:form action=Login.do validate=true s:if test=${param.origurl ne null} s:hidden name=origurl value=${param.origurl}/ /s:if And finally, this has the side effect that all links on the login

Re: [OT] problem with displaytag column sorting in struts 1.2 web project

2007-04-08 Thread Tim Williams
Just put requestURI=/mypage.do (where mypage.do==the page that displays the table). --tim On 4/8/07, robinbajaj [EMAIL PROTECTED] wrote: thanks for the tip. can you please provide more specific example/code-snippet for using the requestURI attribute. i couldnt find enough documentation on

Re: resume after login feature

2007-04-08 Thread Jae K
Thanks Dave for that sanity check. The only difference between your implementation and mine is that you put the originalUrl in a session whereas I store it away in the client. They're both the same 'cleanlinest' i think. Dale, I was considering ACEGI / SecurityFilter, but I still had to make

[S2] wiki edit

2007-04-08 Thread Jae K
Can users get access to edit the wiki? It's driving me crazy.

Re: [S2] wiki edit

2007-04-08 Thread Piero Sartini
On Monday 09 April 2007 03:30:27 Jae K wrote: Can users get access to edit the wiki? It's driving me crazy. You have to sign a CLA first. More information: http://struts.apache.org/helping.html#documentation Piero - To

Re: [s2] Struts Dependency Injection and EJB3 - support ? or how can i Do it?

2007-04-08 Thread Piero Sartini
I coded this today, just used the field instead of a setter method. Your pseudo code was very helpful, thanks :-) Maybe the following snippet is useful for someone with the same problem. Should I post this on the wiki as well? I am not sure if it is a good solution - but it works for me. Can

Re: resume after login feature

2007-04-08 Thread Dave Newton
--- Jae K [EMAIL PROTECTED] wrote: The only difference between your implementation and mine is that you put the originalUrl in a session whereas I store it away in the client. They're both the same 'cleanlinest' i think. If you say so; it sure seemed like yours was a lot of work, and

Re: resume after login feature

2007-04-08 Thread Jae K
If you say so; it sure seemed like yours was a lot of work, and frankly I'd rather role and/or login-aware actions implemented something specific to that functionality, for a couple of reasons. Hello Dave: in terms of work, yours and mine are about the same complexity. However, I prefer my