• 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
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

JSF CommandButton issue while sending Email

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

First of all i would like to thank you all for your previous valuable suggestions. Currently i am working on a JSF application where we have email functionality in our application.

We have provided 2 options to the user, a mail with attachment or mail without attachment. If user sends a mail without attachment everything works fine and hence no issues. Once the mail is sent, he will be taken to Email confirm page where he will have 'Ok' button.

The problem i am facing is when email is sent with attachment. When the user sends an email with attachment, mail was sent successfully and he was taken to email confirm page. But the user has to click 'Ok' button twice which is really weird.

Here is my sample code

<h:panelGrid id="emailConfirmGrid" columns="1">
<h:outputText id="confirmMsg" value="#{CommonLabels['EmailConfirm.ConfirmMessage']}"/>
<t:commandButton id="okBtn" value="#{CommonLabels['EmailConfirm.Ok']}" action="# bean.invokeRequestedView}" immediate="true" />
</h:panelGrid>


Even i tried putting immediate="true" for my 'Ok' command button still not working.

Any help will be highly appreciated.
 
reply
    Bookmark Topic Watch Topic
  • New Topic