Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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..
Reply With Quote
  #2 (permalink)  
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..
Reply With Quote
  #3 (permalink)  
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:28 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.