Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MyFaces t:input displayValueOnly attribute  RSS feed

 
J Haley
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having problems with MyFaces t:input tag. I've would like to use t:input to enter my data, as well as display my data in a read only mode. I'm using the displayValueOnly attribute to get the read only mode. Entering and submitting data works fine. In addition viewing the data in a read only mode works fine. But the problem occurs if I edit the data and click cancel. I expect that the data would be redisplayed in read only mode with the original data. That what's occurring with my hutputText. Am I missing something?

 
J Haley
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Figured it out. Because cancel has immediate="true" set, the backing bean is not updated. However, FacesContext did change. My cancel method now has calls a helper method that spins through all input fields and clears them out.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!