Skip to main content
1-Visitor
March 11, 2014
Question

How to get data from ComponentBuilder by Javascript?

  • March 11, 2014
  • 3 replies
  • 2709 views

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.

3 replies

1-Visitor
March 11, 2014

Should I use afterVK validator for my problem?

12-Amethyst
March 12, 2014

Hi,

For client side validation use afterJS and for server side you can use afterVK

Regards,

Kaushik

1-Visitor
March 12, 2014

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.

1-Visitor
March 11, 2014

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

12-Amethyst
March 12, 2014

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

1-Visitor
March 12, 2014

It is not right solution to write in a file.