This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rendering XHTML components from ajax+Jquery

 
senthil selva
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi frnds...
i need to update a "div" container with a "xhtml" page, from the page where the "div" container resides...
Below are my codes...

updateDiv.xhtml




myjs.js


divContent.xhtml





the button click on "updateDiv.xhtml" calls the javascript function "updateDivContent()" and it inturn it calls the "divContent.xhtml" ..No probs with the ajax call..
the problem is with the rendering of "divContent.xhtml" 's "h:inputText" inside "updateDiv" div from "updateDiv.xhtml" , which does not render, it just gives out the "h:inputText" component and not the basic html component like "<input type="text" ..>"

can any one please help me in rendering the XHTML component ....
thanks in advance...
 
senthil selva
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I solved this problem.....
the problem here is with the javascript url

myjs.js



i changed divContent.xhtml into divContent.jsf
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18162
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
senthil selva wrote:
i changed divContent.xhtml into divContent.jsf


"divContent.xhtml" is a resource name. Resources are not directly visible to clients.

"divContent.jsf" is a URL name. When a client submits a URL request to the server, the server dissects the URL string and routes the request to the appropriate URL handler. Which, in this particular case is the FacesServlet, which in turn examines the URL and hands it off to the Facelets resource resolver, which decodes the URL path into its corresponding resource path(s). So the divContent.xhtml resource is used by JSF to construct the response for a request for the divContent.jsf URL.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic