Hi,

If your onAction method is called, it's a good start. Next check in Firebug Net 
panel if the field
value is being sent to the server. You only need to register the Form as an 
Ajax target. Also look
at the logs in trace mode for anything suspicious.

If all else fails can you post your code here which reproduce the problem?

Kind regards

Bob


On 2011/02/10 08:46 AM, Yinghai Zhao wrote:
> Hi all.
> 
> I'm following the simple ajax form example. everthing is pretty much the same 
> except that i have a
> field set with two textbox, one dropdown list.
> In the onAction method, I'm trying to get the value from the field by using 
> field.getValue() and
> then update the html page.
> 
> it seems the string i got from the fields are null. I debugged my 
> javascripts, it looks like the
> serialized formData contains the correct value, but in the page class, the 
> value is null.
> I though it was the fieldset causing the problem, so i added a line to 
> register the fieldSet :     
>    ControlRegistry.registerAjaxTarget(fieldSet);
> but this didn't help.
> 
> Also another thing different from the example is that the page I'm working on 
> is a superclass of two
> pages.
> The ajax call is from one of the sub class. not sure if this is relevant.
> 
> Thanks in advance for any suggestions on troubleshooting this issue.
> 
> Yinghai
> 
>  

Reply via email to