Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hi.
How can i get data from wizard component builder to use it in wizard step jsp by javascript?
I construct tree for wizard step and build some log message during it. Next i need to use this log message in afterJS function specified for this wizard step.
Is it possible?
Thanks.
Should I use afterVK validator for my problem?
Hi,
For client side validation use afterJS and for server side you can use afterVK
Regards,
Kaushik
I use server side validation extending DefaultUIComponentValidator.
Is it possible to get NmCommandBean from UIValidationCriteria parameter in validateFormSubmission() method?
This param contains nmCommandBean but i cann't find way to get it.
It depon how you have defined your componentbuilder .
Use may use below JS API to query the HTML DOM structure .
document.getElementById
document.getElementsByTagName
document.getElementsByName
Use can first try debug you JSP(Press F12 in IE or inspect Element option in Chrome)
Try to identify DOM Structure and then query appropiately using JS API
HI,
Correct me if I am wrong. In your case,
You are constructing tree using java class right ?
And the log is also generating through that code.
And you want to get those log message in your jsp using javascript
Are you writing the log messages in a file ?? If yes then read that file in your jsp.
Reagards,
Kaushik
It is not right solution to write in a file.
No there is no log file reading when I mentioned Debug JSP.
Windchill jsp get rendered as HTML in client browser hence through inspect element option in chrome you will be able to see your component builder id some where in HTML DOM Structure.
Once you find that where and how your component builder is paced in DOM Structure you could easily query it through java script.