Re: [s2] Allowed methods next step

2007-12-11 Thread Don Brown
On 12/11/07, Brian Pontarelli [EMAIL PROTECTED] wrote:
 At first I thought this might be a problem because SmartURLs was
 sub-classing the ActionConfig object in order to add some additional
 information for performance reasons. However, I have a feeling that I
 can remove the sub-class. All the same, I think your change still allows
 sub-classing. Now I just need to figure out if I want to remove my
 sub-class or not :)

Yeah, try to do it without the subclass, and feel free to add more
builder methods as needed.

 I've got some work done on the new convention plugin and put together a
 short design doc for it because I kept getting lost in the soup of
 conventions and configuration overrides. Here's the URL for the design doc:

 http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-convention-plugin/design.txt?view=markup

Yep, looks fine to me.

 With respect to allowed methods, the new plugin only generates
 configuration for the execute method and any other method that is
 annotated. So, with the new allowedMethods property inside the
 ActionConfig, it should be a snap to just ensure that when the plugin is
 constructing the ActionConfig instances it locks down the Action
 accordingly.

Cool.  To be honest, I'm thinking that maybe the feature would be
better simply as an Interceptor, and therefore, I might end up ripping
it out this weekend.  Doing it as an interceptor would certainly be
the most flexible and consistent with how other features work.

Don


 -bp

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: In regards to Struts 2 Validation.

2007-12-11 Thread Ted Husted
Hmmm, I'd say that it's still a safe bet that Hibernate Validator will
have a profound effect  on JSR 303, akin to JPA and Hibernate Core.
I've seen posts on the Hibernate list that imply JSR 303 will be
backwardly compatible with HV.

-Ted.

 On Dec 10, 2007 4:37 PM, Bob Tiernay [EMAIL PROTECTED] wrote:

 I believe that OVal will soon be a referenced as existing technology for this 
 JSR:

 http://sourceforge.net/forum/forum.php?thread_id=1640398forum_id=488109


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cannot pass the correct property value to a form

2007-12-11 Thread piterskiy

Hi, everyone!

If anyone can assist me, please let me know.

There may be a simple solution to this, or it is just some sort of error I
have, but I cannot firure it out for a while now.

Everything seems to be fine.

I have jsp page, I have a struts form. I have action class.

Jsp has form that will do some sort of things: search, edit, add...
Also page has a scrollolling functionality which works!

When performing search, everything works fine: all form's property are
assigned values, action gets this values and sends to appropriate business
logic and gets back values in the collections.Collection is put into
session.

When retrieving values in jsp page I have edit button, when it is clicked,
I call javascript function with a key value as a parameter.
Set the from property to that key and submit it to a particular action.

What happens is the first time when I do that, form's property is
successfuly asigned to the key, action retrieve that property from the
form and sends it to a business logic to get searched data.

ALL THIS WORKS THE FIRST TIME WHEN I CLICK EDIT. When I try to select
another data, and click on edit, the correct values are passed to
javascript function, but form still gets the old values.

Moreover, after clicking next to go to the next set of records, I'm able
to get a different data but for one record only.

IF ANYONE COULD HELP ME, PLEASE, I WOULD REALLY APPRICIATE IT.

Thank you in advance.


Eugene
:confused:
-- 
View this message in context: 
http://www.nabble.com/Cannot-pass-the-correct-property-value-to-a-form-tp14275437p14275437.html
Sent from the Struts - Dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cannot pass the correct property value to a form

2007-12-11 Thread Dave Newton
Please ask questions regarding the use of Struts on the struts-user mailing
list; the struts-dev list is for discussing the development of Struts itself.

Thanks,
Dave

--- piterskiy [EMAIL PROTECTED] wrote:

 
 Hi, everyone!
 
 If anyone can assist me, please let me know.
 
 There may be a simple solution to this, or it is just some sort of error I
 have, but I cannot firure it out for a while now.
 
 Everything seems to be fine.
 
 I have jsp page, I have a struts form. I have action class.
 
 Jsp has form that will do some sort of things: search, edit, add...
 Also page has a scrollolling functionality which works!
 
 When performing search, everything works fine: all form's property are
 assigned values, action gets this values and sends to appropriate business
 logic and gets back values in the collections.Collection is put into
 session.
 
 When retrieving values in jsp page I have edit button, when it is
 clicked,
 I call javascript function with a key value as a parameter.
 Set the from property to that key and submit it to a particular action.
 
 What happens is the first time when I do that, form's property is
 successfuly asigned to the key, action retrieve that property from the
 form and sends it to a business logic to get searched data.
 
 ALL THIS WORKS THE FIRST TIME WHEN I CLICK EDIT. When I try to select
 another data, and click on edit, the correct values are passed to
 javascript function, but form still gets the old values.
 
 Moreover, after clicking next to go to the next set of records, I'm able
 to get a different data but for one record only.
 
 IF ANYONE COULD HELP ME, PLEASE, I WOULD REALLY APPRICIATE IT.
 
 Thank you in advance.
 
 
 Eugene
 :confused:
 -- 
 View this message in context:

http://www.nabble.com/Cannot-pass-the-correct-property-value-to-a-form-tp14275437p14275437.html
 Sent from the Struts - Dev mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Use the Source, Luke!

2007-12-11 Thread Frank W. Zammetti
On Fri, December 7, 2007 2:54 am, Antonio Petrelli wrote:
 2007/12/7, Frank W. Zammetti [EMAIL PROTECTED]:

 Paul Benedict wrote:
  Please try again.
 [INFO] Building Struts - Tiles 2 integration
 ...
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] Compilation failure
 Failure executing javac, but could not parse the error:
 javac: invalid target release: 1.5



 Tadah! Here I come!
 I think it is my fault, since currently the Struts 1/Tiles 2 plugin must
 be compiled using Java 1.5.
 I opened an issue for this, and I hope to solve it ASAP:
 https://issues.apache.org/struts/browse/STR-3120

Hi Antonio... I see the ticket hasn't been updated, and at least as of
last night, with latest updates, the failure is still present.  do you
have any idea when you might get to this?  Just so I know whether I should
hack the code somehow to get the build to succeed, at least enough for me
to work on what I wanted to, or just wait for the real fix.

 Ciao
 Antonio

Thanks,
Frank


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Use the Source, Luke!

2007-12-11 Thread Paul Benedict
Frank, why not install JDK 5 to do the install? You don't need JDK 5 to run
Struts, just to build it.

On Dec 11, 2007 2:50 PM, Frank W. Zammetti [EMAIL PROTECTED] wrote:

 On Fri, December 7, 2007 2:54 am, Antonio Petrelli wrote:
  2007/12/7, Frank W. Zammetti [EMAIL PROTECTED]:
 
  Paul Benedict wrote:
   Please try again.
  [INFO] Building Struts - Tiles 2 integration
  ...
 
 
  [ERROR] BUILD FAILURE
  [INFO]
 
 
  [INFO] Compilation failure
  Failure executing javac, but could not parse the error:
  javac: invalid target release: 1.5
 
 
 
  Tadah! Here I come!
  I think it is my fault, since currently the Struts 1/Tiles 2 plugin
 must
  be compiled using Java 1.5.
  I opened an issue for this, and I hope to solve it ASAP:
  https://issues.apache.org/struts/browse/STR-3120

 Hi Antonio... I see the ticket hasn't been updated, and at least as of
 last night, with latest updates, the failure is still present.  do you
 have any idea when you might get to this?  Just so I know whether I should
 hack the code somehow to get the build to succeed, at least enough for me
 to work on what I wanted to, or just wait for the real fix.

  Ciao
  Antonio

 Thanks,
 Frank


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Use the Source, Luke!

2007-12-11 Thread Frank W. Zammetti
On Tue, December 11, 2007 4:05 pm, Paul Benedict wrote:
 Frank, why not install JDK 5 to do the install? You don't need JDK 5 to
 run
 Struts, just to build it.

I can do that (I have a batch file that flips me to JDK6, so easy enough),
but then I have to exercise some care to ensure I don't use any JDK5+
features... I also wasn't sure if there might be some other side-effects
I'm not seeing.

Frank

 On Dec 11, 2007 2:50 PM, Frank W. Zammetti [EMAIL PROTECTED] wrote:

 On Fri, December 7, 2007 2:54 am, Antonio Petrelli wrote:
  2007/12/7, Frank W. Zammetti [EMAIL PROTECTED]:
 
  Paul Benedict wrote:
   Please try again.
  [INFO] Building Struts - Tiles 2 integration
  ...
 
 
  [ERROR] BUILD FAILURE
  [INFO]
 
 
  [INFO] Compilation failure
  Failure executing javac, but could not parse the error:
  javac: invalid target release: 1.5
 
 
 
  Tadah! Here I come!
  I think it is my fault, since currently the Struts 1/Tiles 2 plugin
 must
  be compiled using Java 1.5.
  I opened an issue for this, and I hope to solve it ASAP:
  https://issues.apache.org/struts/browse/STR-3120

 Hi Antonio... I see the ticket hasn't been updated, and at least as of
 last night, with latest updates, the failure is still present.  do you
 have any idea when you might get to this?  Just so I know whether I
 should
 hack the code somehow to get the build to succeed, at least enough for
 me
 to work on what I wanted to, or just wait for the real fix.

  Ciao
  Antonio

 Thanks,
 Frank


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Use the Source, Luke!

2007-12-11 Thread Paul Benedict
Remember the POM controls the JDK target. So it won't hurt you.

On Dec 11, 2007 3:12 PM, Frank W. Zammetti [EMAIL PROTECTED] wrote:

 On Tue, December 11, 2007 4:05 pm, Paul Benedict wrote:
  Frank, why not install JDK 5 to do the install? You don't need JDK 5 to
  run
  Struts, just to build it.

 I can do that (I have a batch file that flips me to JDK6, so easy enough),
 but then I have to exercise some care to ensure I don't use any JDK5+
 features... I also wasn't sure if there might be some other side-effects
 I'm not seeing.

 Frank

  On Dec 11, 2007 2:50 PM, Frank W. Zammetti [EMAIL PROTECTED] wrote:
 
  On Fri, December 7, 2007 2:54 am, Antonio Petrelli wrote:
   2007/12/7, Frank W. Zammetti [EMAIL PROTECTED]:
  
   Paul Benedict wrote:
Please try again.
   [INFO] Building Struts - Tiles 2 integration
   ...
  
 
 
   [ERROR] BUILD FAILURE
   [INFO]
  
 
 
   [INFO] Compilation failure
   Failure executing javac, but could not parse the error:
   javac: invalid target release: 1.5
  
  
  
   Tadah! Here I come!
   I think it is my fault, since currently the Struts 1/Tiles 2 plugin
  must
   be compiled using Java 1.5.
   I opened an issue for this, and I hope to solve it ASAP:
   https://issues.apache.org/struts/browse/STR-3120
 
  Hi Antonio... I see the ticket hasn't been updated, and at least as of
  last night, with latest updates, the failure is still present.  do you
  have any idea when you might get to this?  Just so I know whether I
  should
  hack the code somehow to get the build to succeed, at least enough for
  me
  to work on what I wanted to, or just wait for the real fix.
 
   Ciao
   Antonio
 
  Thanks,
  Frank
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]