FW: REPOST: Internationalized messages for pure JavaScript client side validations

2006-12-06 Thread Tarek Nabil
I haven't had any response on the user's list for this question. Since
I'm actually asking on how to modify or override some of Struts 2
functionality, I thought that it would be acceptable to post this here.

If it's not, then please accept my apologies.

Thanks

-Original Message-
From: Tarek Nabil 
Sent: Monday, December 04, 2006 2:28 PM
To: Struts Users Mailing List
Subject: REPOST: Internationalized messages for pure JavaScript client
side validations


-Original Message-
From: Tarek Nabil 
Sent: Wednesday, November 29, 2006 10:17 AM
To: Struts Users Mailing List
Subject: Internationalized messages for pure JavaScript client side
validations

Hi,

I read the following in the documentation

quote
Errors are reported using the default validation message, not the
internationalized version that the server-side might be aware of. This
is a known issue. You may want to try the AJAX Client Side Validation
for messages that are fully internationalized.
/quote

Is this feature impossible to implement using the current framework? I
don't want to go to the server for simple client side validations and
the internationalized messages are a must for me.

I looked at the code and it seems that this expression is the one that
yields the message
${validator.getMessage(action)?js_string}

I'm not into freemarker but it seems to be calling something on the
validator object. Is there a way we can enhance the validation object in
some way so that it exposes the internationalized message or is this
object not aware of the user's current locale at all? Could it be
enhanced so that it is aware of it?

Thanks,
Tarek Nabil

DISCLAIMER**
**
This email and any files transmitted with it are confidential and
contain privileged or copyright 
information. If you are not the intended recipient you must not copy,
distribute or use this email
or the information contained in it for any purpose other than to notify
us of the receipt thereof.
If you have received this message in error, please notify the sender
immediately, and delete this
email from your system.

Please note that e-mails are susceptible to change.The sender shall not
be liable for the improper
or incomplete transmission of the information contained in this
communication,nor for any delay in
its receipt or damage to your system.The sender does not guarantee that
this material is free from
viruses or any other defects although due care has been taken to
minimise the risk.

**
DISCLAIMER
This email and any files transmitted with it are confidential and contain 
privileged or copyright 
information. If you are not the intended recipient you must not copy, 
distribute or use this email
or the information contained in it for any purpose other than to notify us of 
the receipt thereof.
If you have received this message in error, please notify the sender 
immediately, and delete this
email from your system.

Please note that e-mails are susceptible to change.The sender shall not be 
liable for the improper
or incomplete transmission of the information contained in this 
communication,nor for any delay in
its receipt or damage to your system.The sender does not guarantee that this 
material is free from
viruses or any other defects although due care has been taken to minimise the 
risk.
**

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



Re: [S2] Struts 2.0.2 Build - ON HOLD

2006-12-06 Thread David H. DeWolf
I'm assuming this is still the issue holding us up. . .if there's 
anything else that needs to be done prior to the release, I've got some 
spare cycles for the next few days to help push it.  Just let me know


David

Ted Husted wrote:

I just filed

* https://issues.apache.org/struts/browse/WW-1537

Links in the showcase that refer to namespaces are rendering the
webapp root twice.

* http://localhost:8080/struts2-showcase/struts2-showcase/tags/non-ui/
    
The problem breaks a lot of the showcase links, and is going to break
links in other applications that use namespaces or paths in URL links.

It might be something simple, but we should fix it before tagging a build.

For now, I'm going to look at other things in the Showcase, in the
hope someone has a quick solution to WW-1537.

-Ted.

-
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: svn commit: r483061 - /struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/PropertiesSettings.java

2006-12-06 Thread Antonio Petrelli

[EMAIL PROTECTED] ha scritto:

+try {
+in.close();
+} catch(IOException io) {
+LOG.warn(Unable to close input stream);
+}
  


Just a suggestion, put the exception in the LOG.warn instruction.

Ciao
Antonio

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



Re: svn commit: r483061 - /struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/PropertiesSettings.java

2006-12-06 Thread David H. DeWolf

Done.

Thanks

Antonio Petrelli wrote:

[EMAIL PROTECTED] ha scritto:

+try {
+in.close();
+} catch(IOException io) {
+LOG.warn(Unable to close input stream);
+}
  


Just a suggestion, put the exception in the LOG.warn instruction.

Ciao
Antonio

-
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]



[S2] Docs question re: WW tags

2006-12-06 Thread Dave Newton
Is it safe to change all the ww: tags to s:?

I've wanted to, but I also don't want to mess with stuff too much so I
don't get beat up.

Dave


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



[S2] refresh links always broken?

2006-12-06 Thread Dave Newton
Is this happening for anybody else with the docs pulled from external
resources? I *always* get a /plugins/snippet/clearCache.action was not
found on this server.

Dave


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



Re: [VOTE] Tiles TLP

2006-12-06 Thread Greg Reddin


On Dec 4, 2006, at 7:34 AM, Ted Husted wrote:


One note on the Resolution, some elder projects like Struts and Cocoon
got away with the self-referential description, but if anyone has a
slightly more detailed description of Tiles, it might save a round of
revisions.


I made a modification that includes this description: ...the  
JavaServer Pages template framework currently known as Apache Struts  
Tiles...


Is that enough description or do you think I should add another  
WHERAS paragraph?


Greg


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



Re: [VOTE] Tiles TLP

2006-12-06 Thread Nathan Bubna

hey now, Tiles works well without JSP too. :)

On 12/6/06, Greg Reddin [EMAIL PROTECTED] wrote:


On Dec 4, 2006, at 7:34 AM, Ted Husted wrote:

 One note on the Resolution, some elder projects like Struts and Cocoon
 got away with the self-referential description, but if anyone has a
 slightly more detailed description of Tiles, it might save a round of
 revisions.

I made a modification that includes this description: ...the
JavaServer Pages template framework currently known as Apache Struts
Tiles...

Is that enough description or do you think I should add another
WHERAS paragraph?

Greg


-
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: [VOTE] Tiles TLP

2006-12-06 Thread Nathan Bubna

to be constructively critical, perhaps it would help to say that i
think of it as a page composition and layout management framework.
perhaps that language would be useful?

On 12/6/06, Nathan Bubna [EMAIL PROTECTED] wrote:

hey now, Tiles works well without JSP too. :)

On 12/6/06, Greg Reddin [EMAIL PROTECTED] wrote:

 On Dec 4, 2006, at 7:34 AM, Ted Husted wrote:

  One note on the Resolution, some elder projects like Struts and Cocoon
  got away with the self-referential description, but if anyone has a
  slightly more detailed description of Tiles, it might save a round of
  revisions.

 I made a modification that includes this description: ...the
 JavaServer Pages template framework currently known as Apache Struts
 Tiles...

 Is that enough description or do you think I should add another
 WHERAS paragraph?

 Greg


 -
 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: [VOTE] Tiles TLP

2006-12-06 Thread Greg Reddin


On Dec 6, 2006, at 12:20 PM, Nathan Bubna wrote:


to be constructively critical, perhaps it would help to say that i
think of it as a page composition and layout management framework.
perhaps that language would be useful?

On 12/6/06, Nathan Bubna [EMAIL PROTECTED] wrote:

hey now, Tiles works well without JSP too. :)


I had a feeling that would come up :-)

I just changed it to use your exact wording.

Thanks,
Greg




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



Re: [VOTE] Tiles TLP

2006-12-06 Thread David H. DeWolf

I like it, sounds good!  Does that mean we're done until approval?

When is the next board meeting? Any one know?  How do we get this on 
their agenda?


Greg Reddin wrote:


On Dec 6, 2006, at 12:20 PM, Nathan Bubna wrote:


to be constructively critical, perhaps it would help to say that i
think of it as a page composition and layout management framework.
perhaps that language would be useful?

On 12/6/06, Nathan Bubna [EMAIL PROTECTED] wrote:

hey now, Tiles works well without JSP too. :)


I had a feeling that would come up :-)

I just changed it to use your exact wording.

Thanks,
Greg




-
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: [S2] refresh links always broken?

2006-12-06 Thread Don Brown
I took the refresh links off, so now the content is seamlessly 
integrated into the page.  That is especially important, since we 
encourage folks to view the exported page, where a confluence link is 
meaningless.  I re-exported all the pages, so they should be gone now.


Don

Dave Newton wrote:

Is this happening for anybody else with the docs pulled from external
resources? I *always* get a /plugins/snippet/clearCache.action was not
found on this server.

Dave


-
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: [S2] Where's the site?

2006-12-06 Thread Wendy Smoak

On 11/17/06, Wendy Smoak [EMAIL PROTECTED] wrote:



 I think it belongs under 2.x.

 We've said we will host the archived website for GA versions.  How is
 that going to work if the exported docs aren't underneath 2.x?


On 11/17/06, Ted Husted [EMAIL PROTECTED] wrote:

OK, I'll move it.


This seems to have been started (the current wiki content is under
http://struts.apache.org/2.x/docs/ ) but links (such as 'Tag
Reference' on the menu) still point to http://struts.apache.org/WW and
an old version of the wiki from Nov 17th is still there.

.htaccess needs
Redirect permanent /WWhttp://struts.apache.org/2.x/docs
then the old copy can be deleted and the menu links no longer need to
be absolute.

--
Wendy

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



DO NOT REPLY [Bug 34857] - addMessages/getMessages for session scope

2006-12-06 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34857.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34857





--- Additional Comments From [EMAIL PROTECTED]  2006-12-06 12:19 ---
I was also forced to add these into an Action subclass.  Messages are one of
those Struts features that is a frequent cause of silent breakage in my
projects, because it's rare that every developer on the team understands the
subtle repercussions of changing a forward to redirect, or forwarding to
another action (which calls saveMessages() again and wipes out existing
messages, etc.).  And of course there's no error message when these things go
awry, to alert them to the malfunction or give them a headstart debugging, if
they even notice there's problem.

I googled up this bug because it seemed like a no-brainer to add these methods,
and I was trying to find which version of Struts added them.

My team is using the standard POST-redirect-GET model for actions that change
the database, as the cleanest solution to avoiding unintentional resubmits (but
still allowing *intentional* resubmits -- the token system fouls that up).

Messages are again difficult to manage correctly.  The newish saveMessages()
that takes the Session seemed like a great solution -- I don't want to load up
the session, but the redirect option on a forward is basically useless without
it.  But then we noticed that when the change action redirected to the view
action, messages disappeared.  A peek at the source of saveMessages() answered
the question, and addMessages() seemed like the solution -- but without the
session support, that's just as useless.

Personally, I don't understand why the *default* behavior of saveMessages() is
to discard all existing messages.  When would that be desirable?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 34857] - addMessages/getMessages for session scope

2006-12-06 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34857.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34857





--- Additional Comments From [EMAIL PROTECTED]  2006-12-06 13:52 ---
This instance of Bugzilla is closed. You would want to post the comment here: 

* https://issues.apache.org/struts/browse/STR-2463

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Re: [S2] Docs question re: WW tags

2006-12-06 Thread Ted Husted

On 12/6/06, Dave Newton [EMAIL PROTECTED] wrote:

Is it safe to change all the ww: tags to s:?


Yes.

-T.

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



Re: [S2] Struts 2.0.2 Build - ON HOLD

2006-12-06 Thread Ted Husted

I might not be able to tag it tonight, but tomorrow's looking good.

In the meantime, there's are outstanding issues for Struts 2.0.3 and
2.0.x, generally, if anyone is interested. We just might want to hold
off on the patches until Friday.

* 
https://issues.apache.org/struts/secure/IssueNavigator.jspa?mode=hiderequestId=10736

* 
https://issues.apache.org/struts/secure/IssueNavigator.jspa?mode=hiderequestId=10735

-Ted.

On 12/6/06, David H. DeWolf [EMAIL PROTECTED] wrote:

I'm assuming this is still the issue holding us up. . .if there's
anything else that needs to be done prior to the release, I've got some
spare cycles for the next few days to help push it.  Just let me know

David

Ted Husted wrote:
 I just filed

 * https://issues.apache.org/struts/browse/WW-1537

 Links in the showcase that refer to namespaces are rendering the
 webapp root twice.

 * http://localhost:8080/struts2-showcase/struts2-showcase/tags/non-ui/
     
 The problem breaks a lot of the showcase links, and is going to break
 links in other applications that use namespaces or paths in URL links.

 It might be something simple, but we should fix it before tagging a build.

 For now, I'm going to look at other things in the Showcase, in the
 hope someone has a quick solution to WW-1537.

 -Ted.

 -
 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]





--
HTH, Ted.
* http://www.husted.com/struts/

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



Re: [VOTE] Tiles TLP

2006-12-06 Thread Niall Pemberton

On 12/6/06, David H. DeWolf [EMAIL PROTECTED] wrote:

I like it, sounds good!  Does that mean we're done until approval?

When is the next board meeting? Any one know?  How do we get this on
their agenda?


I asked Henri Yandell

The next board meeting is Wednesday 20th December and the resolution
would need to be in by Monday of that week (but the earlier the better
IMO, then you get time to iron out any wrinkles before the deadline).
He says you can email it to board@ but hes not sure whether it has to
be a member or if anyone can do it.

Niall


Greg Reddin wrote:

 On Dec 6, 2006, at 12:20 PM, Nathan Bubna wrote:

 to be constructively critical, perhaps it would help to say that i
 think of it as a page composition and layout management framework.
 perhaps that language would be useful?

 On 12/6/06, Nathan Bubna [EMAIL PROTECTED] wrote:
 hey now, Tiles works well without JSP too. :)

 I had a feeling that would come up :-)

 I just changed it to use your exact wording.

 Thanks,
 Greg




 -
 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]




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



Re: [VOTE] Tiles TLP

2006-12-06 Thread David H. DeWolf


Niall Pemberton wrote:

On 12/6/06, David H. DeWolf [EMAIL PROTECTED] wrote:

I like it, sounds good!  Does that mean we're done until approval?

When is the next board meeting? Any one know?  How do we get this on
their agenda?


I asked Henri Yandell

The next board meeting is Wednesday 20th December and the resolution
would need to be in by Monday of that week (but the earlier the better
IMO, then you get time to iron out any wrinkles before the deadline).
He says you can email it to board@ but hes not sure whether it has to
be a member or if anyone can do it.


Ok, thanks for asking.  My guess is that it might look best coming from 
the new Chair too. Greg, I guess this is where I hand things off and 
tell you to let me know if you need help driving something to conclusion :)


I'll get back to coding!

David



Niall


Greg Reddin wrote:

 On Dec 6, 2006, at 12:20 PM, Nathan Bubna wrote:

 to be constructively critical, perhaps it would help to say that i
 think of it as a page composition and layout management framework.
 perhaps that language would be useful?

 On 12/6/06, Nathan Bubna [EMAIL PROTECTED] wrote:
 hey now, Tiles works well without JSP too. :)

 I had a feeling that would come up :-)

 I just changed it to use your exact wording.

 Thanks,
 Greg




 -
 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]




-
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]