Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

JSF errors

Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have a particular page in my application.The page has 2 frames,left frame and right frame.In the right frame of the page,I am having a form consisting of user-enterable fields.Whenever the user enters a wrong data in one of the fields,he should be presented with a error message.However,the error message should get displayed in the left frame of the page.How to achieve the above mentioned scenario using JSF?Anyone please suggest a solution for this scenario?A example would be much better.Thanks in advance.

Ranch Hand
Posts: 15304
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, from the little bit of research on this I did this morning I think you could do 1 of 2 things.

1. Have frame A submit to Frame b. That way your error results would be posted to the frame where you need them. Although this might not be what you want when Frame A submits successfully.

2. Use Javascript in FrameA to manipulate FrameB. So you get the error messages back, use Javascript to paint the error messages to FrameB.
If you believe you can tell me what to think, I believe I can tell you where to go. Go read this tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic