Passing parameters to a4j:ajax method?

You need listener attribute instead of execute attribute. The execute attribute should point to a collection of client IDs which are to be submitted (which defaults to this in f:ajax and form in a4j:ajax ). However in your particular case it returns void and keeps the execute empty.

The listener attribute is supposed to point to a bean action listener method. Fix it accordingly: a4j:ajax event="change" render="colorCode" listener="#{myChoices. GetColorCode(colorClass,colorClass.

Color)} Note that the colorClass argument seems superfluous here, or at least the colorClass. Color as you could also just do colorClass.getColor() inside the getColorCode() method. Just passing one of them ought to be sufficient.

Passing colorClass. Color would be preferable so that your myChoices bean is not tight coupled with the colorCode bean a4j:ajax event="change" render="colorCode" listener="#{myChoices. GetColorCode(colorClass.

Color)}.

You need listener attribute instead of execute attribute. The execute attribute should point to a collection of client IDs which are to be submitted (which defaults to @this in and @form in ). However in your particular case it returns void and keeps the execute empty.

The listener attribute is supposed to point to a bean action listener method. Fix it accordingly: Note that the colorClass argument seems superfluous here, or at least the colorClass. Color as you could also just do colorClass.getColor() inside the getColorCode() method.

Just passing one of them ought to be sufficient. Passing colorClass. Color would be preferable so that your myChoices bean is not tight coupled with the colorCode bean.

Thank You very much, this did it! – user969743 Sep 28 at 20:29 You're welcome. – BalusC Sep 28 at 20:30.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions