cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Wizard step validator

VasiliyRepecki
12-Amethyst

Wizard step validator

Hi.

I defined afterVK validator for my wizard step (extends DefaultUIComponentValidator).

I have 2 questions i cann't find answers for in customization guide.

1) Validator works in both ways (Back and Next). I need it to work only when moving forward. How to disable it for "Back" button?

2) If i have an error while validation process, i show it at pop-up window by specifying UIValidationFeedbackMsg for UIValidationResult. How should i define UIValidationResult to disable pop-up if a i have no error. I have no error - i don't want show anything for user. But now pop-up window with NULL message arises.

Thanks.

7 REPLIES 7

2) You can show something in success case like that:

FeedbackMessage localFeedbackMessage =

new FeedbackMessage(FeedbackType.FAILURE, ChangeManagementClientHelper.getLocale()," paramString1", null, new String[] { "paramString2" });

And don't show anything in failure case.

Can you please tell me how to add validation on each field ? Suppose after an user selected a document

type five attribute fields appeared in object creation page so I need to add validation on each attribute field.

Thanks

The first question is still actual. Is it possible to define what button was pressed?

I am not sure, but try this:

Every wizard step is the jsp page. On every page you can get and set attributes and parameters of the request object. You can create some parameter and keep there previous step value.

LoriSood
22-Sapphire III
(To:VasiliyRepecki)

Vasily,

Were you able to get this resolved?

No

Were you able to get the resolution?

Like, can we identify when Back button is clicked and when Next/Finish is clicked?

Announcements


Top Tags