This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ajax support in Jsf 2.0

 
N Deepu
Greenhorn
Posts: 28
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic