• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Strange behavior with reRender attribute

 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I use JSF 1.1 + RichFace 3.1.5

here is my code for my modal panel to add an entry to the DB



my first <h:message> will not appear until I have click "Save" about 3 times, the first message is to inform that update is successful
and I know it is successful because the message in eclipse console and Database GUI

I don't really know what to do?

Thanks
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here are my thoughts..

Try wrapping as below



Also try removing immediate="true" in



 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Phaneendra

Thanks for your input, but no luck with wrapping


however, I did do this



and when my console says "Target component for id addMsg not found"

This is very strange, of course, about 3rd time than this message goes away and the <h:message> for addMsg shows up correctly
 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe I solved my issue, I was using one UIMessage component to bind to 4 <h:message> tag

I just trying something different like making the problem <h:message> tag instead of binding to original UIMessage component I create another instance of the UIMessage component in the backing bean and it showed up the first time when I enter a form rather than showing up the message the 2nd or 3rd time the form is entered.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic