Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF CommandButton issue while sending Email

vijay k vemula
Posts: 10
  • Mark post as helpful
  • send pies
  • 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">
<hutputText id="confirmMsg" value="#{CommonLabels['EmailConfirm.ConfirmMessage']}"/>
<t:commandButton id="okBtn" value="#{CommonLabels['EmailConfirm.Ok']}" action="# bean.invokeRequestedView}" immediate="true" />

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

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