Validate modification in ajax on a h:selectOneListbox

Hi!

I need to do the same thing that the related question, this time this is on a html event, so I don't know exactly how to manage this with the a4j:support?

OR

Is there an other component in richfaces that have the same display and have listener? or permit to have an direct synchronisation with the bean?
LVL 1
NargzulAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kevin CrossChief Technology OfficerCommented:
Check the ajaxValidator, should work.  This page gives example of how to code the ValidationBean and include the tag in JSF.

http://livedemo.exadel.com/richfaces-demo/richfaces/ajaxValidator.jsf?c=ajaxValidator&tab=usage
0
NargzulAuthor Commented:
But I've nothing to validate on this field.

In facts, at the final validation, he could be empty, it's just an intermediary container
0
Kevin CrossChief Technology OfficerCommented:
Oh, sorry guess I misunderstood.  Thought you were looking to do validation.

I am not sure, so will have to do some research.  I know there is a4j:ajaxListener, but I have not used enough to know for certain that is what you need; however, you can give it a try.  It is guaranteed to be invoked for every AJAX response before the Render Response fires.
0
NargzulAuthor Commented:
I've try this but it doesn't work.

I've found this:
http://www.jroller.com/a4j/entry/ajax_updates_inside_jsf_complex1
But I've an error because the "selectOneListbox"  "Parent component treetake for a ajaxListener is not source of AjaxEvents"


<a4j:outputPanel id="ajxpn1" ajaxRendered="true">     
   <h:selectOneListbox id="listservtake"  rendered="#{AddDeal.serv!=null}" value="#{AddDeal.currentService}" >
      <f:selectItems  value="#{AddDeal.serv}"/>
   </h:selectOneListbox>
</a4j:outputPanel>

Open in new window

0
NargzulAuthor Commented:
Sorry, I put the wrong error: "Parent component listservtake for a ajaxListener is not source of AjaxEvents"
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.