aspose file tools*
The moose likes JSF and the fly likes Ajax support in Jsf 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Ajax support in Jsf 2.0" Watch "Ajax support in Jsf 2.0" New topic
Author

Ajax support in Jsf 2.0

N Deepu
Greenhorn

Joined: Jul 28, 2011
Posts: 25

Hi,

I'm trying to use the Ajax with JSF 2.0 to render a panel on button click. In JSF 2.0 we've f:ajax for rendering dynamically. But in the samples i found online, I only saw outputtext being rendered. I'm trying to render a panel but it gives an exception.



But i get the following exception -
SEVERE: Error Rendering View[/welcome.xhtml]
javax.faces.FacesException: <f:ajax> contains an unknown id 'output' - cannot locate it in the context of the component j_idt9
at com.sun.faces.renderkit.html_basic.AjaxBehaviorRenderer.getResolvedId(AjaxBehaviorRenderer.java:278)
at com.sun.faces.renderkit.html_basic.AjaxBehaviorRenderer.appendIds(AjaxBehaviorRenderer.java:265)
at com.sun.faces.renderkit.html_basic.AjaxBehaviorRenderer.buildAjaxCommand(AjaxBehaviorRenderer.java:210)
at com.sun.faces.renderkit.html_basic.AjaxBehaviorRenderer.getScript(AjaxBehaviorRenderer.java:82)
at javax.faces.component.behavior.ClientBehaviorBase.getScript(ClientBehaviorBase.java:99)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax support in Jsf 2.0