Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
| Search | Today's Posts | Mark Forums Read
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 6th, 2010, 02:48 PM
Registered User
 
Join Date: Oct 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Modify JSF Page Dynamically via Java

I'm working on a project which I need to turn a XML file into a JSF Page using XSLT for this purpose. I'm using Xalan parser to make this conversion in Java.
My JSF main page includes another JSF page called "questionario.jsp". Everytime I click on a button I need to modify the content of the page "questionario.jsp" dynamically, that is, I need to call a method in the bean that will create a XML file and make the transformation (XML -> JSF). After I get my JSF page code well formed in a String for example, I need to write such code in "questionario.jsp" page.

The problem is that I can modify page's content but nothing appears in my browser unless I open "questionario.jsp", refresh it (using eclipse as IDE) and rerender the page on browser. How can I make the content to be shown without that refresh step, I mean, automatically update the screen after button's action?
Is that possible?

Thanks in advance!
Paulo S.

Last edited by prss; October 7th, 2010 at 07:49 AM..
 
Old October 7th, 2010, 06:39 AM
Registered User
 
Join Date: Oct 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'll try to explain better. What I'm looking for it's a implementation of ASP's Page.ParseControl() in JSF.

For example, in ASP I would have:

String result = "<asp:Label runat='server' ID='test' Text='Test'/>";
System.Web.UI.Control ctrl = Page.ParseControl(result);

In JSF, how can I do the same thing (parse it as jsf tag) with the String <h:inputText id='test'>?

Last edited by prss; October 7th, 2010 at 07:50 AM..
 
Old June 12th, 2011, 11:44 AM
Registered User
 
Join Date: Jun 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you sure your change made into the jsp folder of the running application? There is a eclispe plugin ( filesync ?) which keeps your source folder and jsp folder sync.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Building Web 2.0 UIs with JSF, Realtime Updates with JSF & Ajax Push Taught at GIDS Shaguf J2EE 0 March 4th, 2010 07:54 AM
Building Web 2.0 UIs with JSF, Realtime Updates with JSF & Ajax Push Taught at GIDS Shaguf J2EE 0 March 4th, 2010 07:53 AM
Master Page and Content Page with Java script Harjinder ASP.NET 2.0 Professional 1 February 1st, 2008 10:31 AM
How to dynamically modify a table... roopesh ASP.NET 1.0 and 1.1 Basics 9 January 16th, 2007 12:05 PM
cdn JSF be used in client/server java applications zaferaktan Java GUI 2 February 8th, 2005 05:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.