Re: Need help for 2.3.16

2013-12-20 Thread Emi Lu

Hello,

> Please try out Struts2 jQuery Plugin Version 3.7.0-SNAPSHOT.

This Version is compatible with Struts 2.3.16.


The latest is shown as 3.6.1 from: 
http://code.google.com/p/struts2-jquery/downloads/list


Can you tell me where to download 
struts2-jquery-plugin-3.7.0-snapshot.jar please?


Thanks a lot!


#
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep


2013/12/11 Emi Lu mailto:em...@encs.concordia.ca>>

On 12/11/2013 10:29 AM, Lukasz Lenart wrote:

Here you have more details

http://markmail.org/message/__lvrdf7zdrhatklyh


Got it. My projects depend on jquery, and I will use 2.3.15.3 for
now until a new version with jquery merged is released. Thanks a lot!



2013/12/11 Emi Lu mailto:em...@encs.concordia.ca>>:

Good morning,

Upgraded to 2.3.16, exception when start project from tomcat:

==__==__=
java.lang.__ClassNotFoundException:
org.apache.struts2.views.__TagLibrary

org.apache.catalina.core.__StandardContext filterStart
  SEVERE: Exception
starting filter struts2

Unable to load configuration. - bean -

jar:file:/app/WEB-INF/lib/__struts2-jquery-plugin-3.3.3.__jar!/struts-plugin.xml:27:125




web.xml
 
struts2


org.apache.__struts2.dispatcher.ng.filter.__StrutsPrepareAndExecuteFilter<__/filter-class>

   actionPackages
   app.action

 

Do I miss any jars or need to change config somewhere?

Thanks a lot!

--
Details are:

SEVERE: Exception starting filter struts2
Unable to load configuration. - bean -

jar:file:/app/WEB-INF/lib/__struts2-jquery-plugin-3.3.3.__jar!/struts-plugin.xml:27:125
  at

org.apache.struts2.dispatcher.__Dispatcher.init(Dispatcher.__java:501)
  at

org.apache.struts2.dispatcher.__ng.InitOperations.__initDispatcher(InitOperations.__java:74)
  at

org.apache.struts2.dispatcher.__ng.filter.__StrutsPrepareAndExecuteFilter.__init(__StrutsPrepareAndExecuteFilter.__java:57)
  at

org.apache.catalina.core.__ApplicationFilterConfig.__getFilter(__ApplicationFilterConfig.java:__295)
  at

org.apache.catalina.core.__ApplicationFilterConfig.__setFilterDef(__ApplicationFilterConfig.java:__422)
  at

org.apache.catalina.core.__ApplicationFilterConfig.__(ApplicationFilterConfig.java:__115)
  at

org.apache.catalina.core.__StandardContext.filterStart(__StandardContext.java:4072)
  at

org.apache.catalina.core.__StandardContext.start(__StandardContext.java:4726)
  at

org.apache.catalina.manager.__ManagerServlet.start(__ManagerServlet.java:1276)
  at

org.apache.catalina.manager.__HTMLManagerServlet.start(__HTMLManagerServlet.java:625)
  at

org.apache.catalina.manager.__HTMLManagerServlet.doGet(__HTMLManagerServlet.java:136)
  at
javax.servlet.http.__HttpServlet.service(__HttpServlet.java:617)
  at
javax.servlet.http.__HttpServlet.service(__HttpServlet.java:717)
  at

org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__290)
  at

org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__206)
  at

org.apache.catalina.filters.__CsrfPreventionFilter.doFilter(__CsrfPreventionFilter.java:194)
  at

org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__235)
  at

org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__206)
  at

org.apache.catalina.core.__StandardWrapperValve.invoke(__StandardWrapperValve.java:233)
  at

org.apache.catalina.core.__StandardContextValve.invoke(__StandardContextValve.java:191)
  at

org.apache.catalina.__authenticator.__AuthenticatorBase.invoke(__AuthenticatorBase.java:563)
  at

org.apache.catalina.core.__StandardHostValve.invoke(__StandardHostValve.java:127)
  at

org.apache.

Re: Translation of fieldName in annotated validations

2013-12-20 Thread JOSE L MARTINEZ-AVIAL
Hi,
  Just reviewing old things,  I discovered I didn't answer you. The think
is that the same effect can be obtained using the already existing
functionality. I can create the following annotation to validate a field:

@RequiredStringValidator(type = ValidatorType.SIMPLE, fieldName =
"phoneCountryCode",
messageParams={"getText('PhoneCountryCode.label')"},key
= "validation-error.mandatory")},

And then define the following i18n properties
PhoneCountryCode.label   = Country Code
validation-error.mandatory = The field {0} is mandatory

And then the generated message will be "The field Country Code is
mandatory". So I'm going to close this issue, as it is no longer a problem.

Best regards and thanks
JL




2013/9/30 Lukasz Lenart 

> 2013/9/25 JOSE L MARTINEZ-AVIAL :
> > Well, I have found a workaround that is not much of a hacking. The
> > annotations has a messageParameters that is evaluated against the
> > valuestack. Since the action is in the valuestack, and it implements
> > ActionSupport,I can pass a parameter that is a call to getText.
> >
> > requiredStrings =
> > {@RequiredStringValidator(type = ValidatorType.SIMPLE,
> > messageParams={"getText('email')"},
> > fieldName = "event.email", key =
> > "validation-error.mandatory")},
> >
> > and by defining the message as:
> >
> > validation-error.mandatory= The field {0} is mandatory
> > email = E-mail
>
> I'm not sure if I get you right - does it meet your requirements or do
> you expect something different?
>
>
> Regards
> --
> Ɓukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>