Spring Webflow - FormAction.doValidate() isn't called when there is no validator configured

This post is relevant for the Spring Webflow 1.x users.

I have been breaking my head from 2-3 days over this problem and was able to crack it today.
I did some search on google and found that this is a open Bug on Spring Webflow (Spring Webflow 1.0.3 Bug SWF-397)

This bug has not been resolved since they can't do it in a 100% backwards compatible way. I found a workaround/solution so thought of sharing with other who are struggling on problem.

What is the issue?


The problem occurs when you have a FormAction bean configured in your application without a validator e.g.

 


The spring framework code does a check for "if (getValidator() != null) " before making a call to doValidate() method and therefore doValidate method will not be called when we have configured the FormAction bean like above.

What is the workaround?

The workaround is simple and requires you to write a simple dummy validator class which does nothing. Below is a Sample dummy validation class you can use for your application.

package example.spring.validations;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import org.springframework.validation.Errors;import org.springframework.validation.Validator;/*** @author swiki**/public class DummyValidation implements Validator {public boolean supports(Class clazz){return true;}public void validate(Object target, Errors errors){return;  }}


Now inject this dummy validator bean to all the form beans where you want your own doValidate method to be called. See the example bean config below

 


Thats it! Your doValidate method should start getting called now as the "if (getValidator() != null) " condition will not fail.

Please don't forget to share, if you know of a better workaround for this.

244 Post Comment

«Oldest   ‹Older   201 – 244 of 244   Newer›   Newest»
Sky Host Pakistan said...

Leading web hosting comopany in Pakistan - Sky Host Pk

Malaysia Escorts said...

Vip Karachi Girls

Malaysia Escorts said...

Vip Lahore Girls

Malaysia Escorts said...

Vip Karachi Girls

Malaysia Escorts said...

Vip Lahore Girls

Malaysia Escorts said...

Vip Lahore Escorts

Hoài Nguyễn said...

Thị trường bất động sản đầu năm 2017 với sự xuất hiện của dự án eco dream nguyễn xiển. Chung cư eco dream là dự án căn hộ cao cấp với mức giá hợp lý, chung cu eco dream là cơ hội đầu tư sinh lời cho nhà đầu tư. Ngoài ra, chung cư Housinco grand tower cũng là dự án nổi bật với hơn 200 căn hộ đạt chuẩn 5 sao. Chung cư Vinhomes gallery là siêu dự án trung tâm quận Ba Đình, chung cư Vinata Towers là dự án đầu tiên được đầu tư bởi Nhật Bản. Chung cư eco green city chỉ còn hơn 100 căn hộ cuối cùng. Chung cư The legend sở hữu vị trí trung tâm quận Thanh xuân. Chung cư Tháp doanh nhân vị trí đắc địa quận Hà đông.

Malaysia Escorts said...

Vip Karachi Escorts

Malaysia Escorts said...

Lahore Escorts Girls

Malaysia Escorts said...

Karachi Escorts Girls

Malaysia Escorts said...

Karachi Escorts Girls

Unknown said...

nike huarache
bills jerseys
lions jerseys
nike air huarache
new balance outlet
cincinnati bengals jerseys
rolex replica watches
vikings jerseys
indianapolis colts jerseys
nike air huarache

Malaysia Escorts said...

http://www.dubaiescorts.xyz/

Jian Zhuo said...

coach outlet
mlb jerseys
michael kors outlet store
tory burch outlet online
adidas uk
hermes bags
adidas yeezy boost
ralph lauren outlet online
adidas nmd runner
beats wireless headphones
20170412yueqin

Jian Zhuo said...

yeezy shoes
coach outlet online
hermes bags
louis vuitton factory outlet
moncler jackets
michael kors bags
broncos jerseys
rolex replica watches for sale
coach factory outlet online
tods shoes
20170412yueqin

Malaysia Escorts said...

Vip Dubai Escorts Net

Malaysia Escorts said...

Dubai Life UAE

Malaysia Escorts said...

Vip Dubai Life

chenmeinv0 said...

omega copy watches
michael kors outlet
supra footwear
adidas outlet
oakley vault
nike jordan shoes
tory burch outlet
fitflops sandals
michael kors outlet online
the north face outlet
hzx20170418

Malaysia Escorts said...

Dubai Life

Malaysia Escorts said...

Dubai Life

Malaysia Escorts said...

Vip Dubai Life

Malaysia Escorts said...

Vip Dubai Girls Life

Nội thất Nhà Xanh said...

nội thất goldmark city chung cư
ảnh nội thất chung cư goldmark city

Nội thất Nhà Xanh said...

thiết kế nội thất căn hộ chung cư imperia garden

Nội thất Nhà Xanh said...

thiết kế chung cư imperia garden

huali10 Cai said...

michael kors outlet clearance
polo ralph lauren
kate spade uk
mont blanc pens
christian louboutin shoes
coach outlet
michael kors outlet online
cheap oakley sunglasses
coach outlet
hollister shirts
qqqqqing20170524

huali10 Cai said...

michael kors outlet clearance
polo ralph lauren
kate spade uk
mont blanc pens
christian louboutin shoes
coach outlet
michael kors outlet online
cheap oakley sunglasses
coach outlet
hollister shirts
qqqqqing20170524

Anonymous said...

xưởng gỗ nội thất
thiết kế ban công đẹp

alat bantu sex wanita said...

Thanks for sharing, nice article.

KLG

PENGGETAR PEMBALUT

HAMMER OF THOR

VIAGRA

VAGINA PINGGUL

PENIS TEMPEL TELUR

PENIS IKAT PINGGANG

BONEKA FULL BODY

PENIS MANUAL

OBAT PENINGGI BADAN

NITROCOM said...

The Nitrocom vendor portfolio is a strong and carefully selected collection of the world’s leading wireless, cloud & security innovators. Each vendor is individually outstanding whilst also able to work together to create a simple, yet sophisticated solution.
SIAE MICROELETTRONICA was founded in 1952. Now we are internationally renowned as a leading provider of the most innovative and best performing microwave radio and wireless network solutions. Our equipment enables millions of people in over 90 countries to communicate around the world every day. As an intrinsic element of modern network infrastructure, our customers demand the highest quality, value for money and innovative telecommunications products.
Cambium Networks offers a comprehensive portfolio of fixed reliable, scalable & high-speed wireless backhaul and access solutions.
Ceragon Networks is a worldwide provider of high-capacity LTE-ready wireless backhaul solutions. The company has a broad portfolio of innovative, field-proven technology solutions for wireless service providers as well as private businesses. The Ceragon solutions are designed to deliver voice and premium data services, eliminate the backhaul capacity network as well as significantly reducing the costs and transition to next-generation IP-based networks.
DragonWave is a leading provider of high-capacity packet microwave solutions that drive next-generation IP networks. DragonWave's carrier-grade point-to-point packet microwave systems transmit broadband voice, video and data, enabling service providers, government agencies, enterprises and other organizations to meet their increasing bandwidth requirements rapidly and affordably. The principal application of DragonWave's portfolio is wireless network backhaul, including a range of products ideally suited to support the emergence of underlying small cell networks. Additional solutions include leased line replacement, last mile fiber extension and enterprise networks. DragonWave's award winning products are known in the industry for their leading capacity, reliability, and spectral efficiency.
3Roam provides high-capacity microwave transmission equipments for wireless and packet networks convergence. 3Roam solutions aim at bridging the gap between traditional microwave transmission technologies and advanced networking techniques.
Micran is a modern innovative enterprise with a strong team of specialists, combining experience in the different spheres of microwave electronics, communications, radio location, test and measurement equipment and information security. This unique, talented, multi-disciplinary team is viewed very positively by our current customers and partners. They are always ready to bring their wide expertise to accept new challenges.

NITROCOM said...

Nitrowave WNMS is a Enterprise and Carrier-Grade Wireless Network Management System. A single software solution simplifies a large number of management and monitoring tasks for network administrators. Nitrowave ’s comprehensive network management system supports several thousands of nodes. Multiple networks may be maintained and monitored using one server. A rich feature set helps to diagnose network problems effectively, visualize networks on a map, perform scheduled firmware upgrades automatically, track states of devices, get failure alerts, and collect statistics. The Web-based system environment supports multi-user accounts. Several administrators may manage different networks on the same server, without having access to each other’s equipment.
RACOM is a primary producer, i.e. we do our own research & development of both Hardware and Software for all our product lines: Radio modem, GPRS/EDGE/UMTS router and Microwave link. Whenever the need arises, one can always find the responsible person for the respective part of a product at RACOM.
Services:


Pre-sales Support

With our help you can trust that you are getting the right product to fulfil your customers requirement. We can help guide and support you with all pre-sales questions and design needs.
Planning and Design
Correctly planning and designing you wireless network is imperative to ensure you get the speed, services and value for money. Using our premium services we can assist you with planning and designing your wireless network.
Installation and Aftercare
Take the stress out of technical projects, have us set up your solution and deliver it to your customers door, ready to plug in. We offer pre-staging, consultancy, product support & troubleshooting and RMAs.
Marketing Plus
As a value-added distributor, Purdicom offers a range of marketing support to its partners including templates, event assistance and telesales resource. These templates include HTML emails, PDFs, infographics and technology guides across each of the vendors that Purdicom distributes.



Visit some important pages from the perspective of customers :



telecom wireless solutionsharmony radio litehuawei microwavesm saleSpectronite ray point to point microwave link

alat bantu sex pria said...

Thanks for sharing, nice article.

PENIS DUA KEPALA

VIBRATOR PENGHISAP PUTING

PENGGETAR C-STRING

VIBRATOR MIC

PENIS MANUAL

KOREAN SEX DOLL

VAGINA PANTAT TATTO

VAGINA PANTAT NUNGGING

VAGINA SENTER FLASHLIGHT

VAGINA DUA LUBANG

wings io said...

Thanks for your post. It is very useful. I would like to share the article on my site to read as needed.

nguyễn tuấn anh said...

cải tạo thi công nội thất chung cư

شركة قمة الدقة للخدمات المنزلية said...

شركة كشف تسربات المياه بالدمام
شركة كشف تسربات المياه بالخبر
شركة تسليك مجارى ببقيق

Tawfik Mohammed said...


شركات الشحن
شركات الشحن الدولي
شركات شحن من الرياض لمصر
اسعار شركات الشحن
افضل شركة شحن
ارخص شركة شحن
شركات شحن لمصر بالرياض
شركات شحن بالرياض
شحن لمصر من الباب للباب
مكتب شحن لمصر
شحن لمصر
اسعار الشحن لمصر

ninest123 said...

nike outlet
fitflop sandals
michael kors outlet online
nike air max
air max 95
fitflops
coach outlet
cheap oakley sunglasses
rolex replica
ralph lauren sale clearance
mt0713

công ty dịch vụ thám tử Bách Tín said...

[url=http://dichvuthamtu.tin.vn/]http://dichvuthamtu.tin.vn/[/url]

abc ya said...

Yes, the article I was looking for. Your article gives me another approach on the subject. I hope to read more articles from you.

dildo said...

Thank you for sharing, interesting information.

VIMAX

VIAGRA

VAKUM PENIS

BONEKA FULL BODY

VAGINA FLASHLIGHT

SEX DOLL

PENIS MAJU MUNDUR

VAGINA SUARA

VIBRATOR MIC

wingsio said...

Your article is easy to understand, the simple way of communicating is accessible to the majority of people. I will keep track of your posts regularly.

klinik peluntur said...

Thank you for sharing in this article
I can learn a lot and could also be a reference
I hope to read the next your article updates


[-]Obat Penggugur Kandungan
[-]Cara Menggugurkan Kandungan
[-]Obat Penggugur Kandungan
[-]Obat Penggugur Kandungan
[-]Obat Penggugur Kandungan

hammer of thor said...

terimakasih ....
Hammer Of Thor
Obat Hammer Of Thor
Hammer Of Thor Asli
Hammer Of Thor Original
Hammer Of Thor Italy
Obat Kuat Hammer Of Thor
Obat Pembesar Penis Hammer Of Thor
Viagra

«Oldest ‹Older   201 – 244 of 244   Newer› Newest»

Post a Comment

Search Web......