[ 
https://issues.apache.org/struts/browse/WW-3036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45751#action_45751
 ] 

Vladimir Limansky commented on WW-3036:
---------------------------------------

I want action errors be supported during ajax validation. Please take a look at 
the following issues:
https://issues.apache.org/struts/browse/WW-2609
https://issues.apache.org/struts/browse/WW-3035
1. I'm going to do it this week and upload as a diff files here, is it ok?
2. The only thing I have doubts about is where to put action errors on the page?
I suggested to add a <div> in actionerrors.ftl with predefined id, say 
action_errors_id and put them to this div. So that ajax validation behavior and 
non ajax messages were kept in the same place
But on the other hand we could have multiple <s:actionerrors/> tags per page 
and using this approach I will put messages only to one div (but I can index 
the ids and just loop over them)
But action errors are errors related to action and theoretically we should have 
only one <s:actionerrors/> per page.

The other place we could place them is just above(but why not behind) the form 
submitted. We could have several forms per page and each one will have action 
validation errors.

These are my thoughts, could you please give me your piece of advice?

So where is the best place to put them? <s:actionerror> or <s:form>?


> Unable override *.js files for struts module.
> ---------------------------------------------
>
>                 Key: WW-3036
>                 URL: https://issues.apache.org/struts/browse/WW-3036
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.1.0
>         Environment: struts2-core-2.1.0.jar struts2-dojo-plugin-2.1.0.jar
>            Reporter: Vladimir Limansky
>
> I need to 'override' some *.js file for bug fixing/adding new features.
> I managed successfully 'override' template *.ftl files by putting them into 
> %WEB_MODULE_ROOT%/template dirrectory. But this does not work for *.js files.
> The paths I've tried:
> %WEB_MODULE_ROOT%\org\apache\struts2\static\utils.js 
> %WEB_MODULE_ROOT%\common\struts\utils.js
> %WEB_MODULE_ROOT%\struts\utils.js
> But it does not work i.e. browser still loads 'native' *.js file from 
> struts2-core-2.1.0.jar\org\apache\struts2\static\utils.js 
> Is there any solution to override *.js files?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to