Re: How to render an action URL

2015-07-15 Thread Mats Nyberg
Thanks for your reply Lukasz, I will look into @Injecting an UrlRenderer into my DispatchListener, but I believe this requires an UI Component. Since I only need simple URLs (no parameters) I might build them myself. Only issue with that miht be the ”web context”; if the app resides under an app

Re: How to render an action URL

2015-07-12 Thread Mats Nyberg
I must appologise for my last mail. I must have been exhausted or worse writing it. What I have done so far, not mentioned previously is: - An @ActionMenu(”path/to/menuitem”) - A DispatcherListener, added in an ServletContextListener After the DispatcherListener have run through all declared

How to render an action URL

2015-07-10 Thread Mats Nyberg
Hi all I’m implementing an annotation based menu composing feature in a large Struts integrating web application. I would like to use Struts’ internal components (UrlRenderer, UrlProvider, ActionMapping…) for this. I’d like to do this programatically in Java code. This part of the feature tak

Re: Grouping same type validators

2014-05-11 Thread Mats Nyberg
just a work-around I came to think of: if you’re building with maven or ant, why not generate the validation.xml-files from a home made xml configuration file using xxl(t)? such tasks are built-in in ant and for maven there’s the xml-maven-plugin. generate the files into the generated classes d

Re: Grouping same type validators

2014-05-11 Thread Mats Nyberg
(repost; I might have used the wrong sender address) just a work-around I came to think of: if you’re building with maven or ant, why not generate the validation.xml-files from a home made xml configuration file using xxl(t)? such tasks are built-in in ant and for maven there’s the xml-maven-pl