-
1. Re: a4j:support
damianharvey Nov 14, 2007 10:46 AM (in response to dietice)When you say "nothing happens", do you see anything in your logs? Ie: do they move at all? Is productForm.product instantiated?
Try a simpler repeater example that will just output what you type in:<h:form> <h:inputText value="#{productForm.product.wholesaleExVAT}"> <a4j:support event="onblur" reRender="vatDisplay"/> </h:inputText> <h:outputText id="vatDisplay" value="#{productForm.product.wholesaleExVAT}"/> </h:form>
Once you have that going it's not hard to expand on it to where you want to get to.
Cheers,
Damian. -
2. Re: a4j:support
scryan7371 Nov 14, 2007 11:30 AM (in response to dietice)The issue is that the code works fine without the repeater and calls my listener correctly allowing me to perform the required function. When I add the repeater the action listener is no longer invoked. I can add and remove the repeater at will and the action is the same. I also tried using the facelets ui:repeat and many combinations of a4jsf and non a4jsf command buttons and links with the same response. I noticed in your example there is not repeater code however the example works so it seems to be something with using command button or command link that is causing the issue. I had attached the full code and logs to the original post. I am not sure how to debug this since it appears that the log does not indicate an issue in either case it is just that my listener is never called.
I will continue to try to debug but if you have more suggestions that would help me isolate the issue I can try those. It looks like adding the repeat disables the ajax actions. -
3. Re: a4j:support
scryan7371 Nov 14, 2007 11:38 AM (in response to dietice)Sorry ! my last post went to the wrong topic. I can't figure out how to erase the post. I apologize for the wrong posting.
-
4. Re: a4j:support
dietice Nov 14, 2007 1:37 PM (in response to dietice)There are a few required fields on the form and I find that if they are filled in then the code works otherwise I get nothing. How can I skip validation when using
<a4j:support event = "onblur" reRender = "vat"></a4j:support>
Thanks -
5. Re: a4j:support
dietice Nov 14, 2007 3:20 PM (in response to dietice)using
ajaxSingle="true"
gives me what I want. I triedimmediate="true"
but my value doesn't get updated. Why would that be?
Thanks.. -
6. Re: a4j:support
ilya_shaikovsky Nov 15, 2007 5:52 AM (in response to dietice)you should use ajaxSingle or a4j:region around the control.
About immediate - works as it should. Just read about it in JSF articles.