• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF faces-config.xml overwrite

 
urvish shah
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Can we overwrite faces-config.xml runtime? What I mean is I have specified navigation rule for success or failure in faces-config., But I want to use different rule now without changing the config file can I do it?

Thanks
Urvish
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Web App Frameworks forum.
 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably you can't and you should'nt,
but you can achieve the similar functionality by using NavigationHandler class.
Use handleNavigation method to execute a navigation stated in faces-config.xml
Method's signature is:

handleNavigation(javax.faces.context.FacesContext context, java.lang.String fromAction, java.lang.String outcome)
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our brand new JSF Forum...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic