[Seasar-user:17622] Re: [Teeda-メッセージボックス]

Koichi Kobayashi [E-MAIL ADDRESS DELETED]
2009年 6月 4日 (木) 17:30:26 JST


小林 (koichik) です.

Date:    Thu, 4 Jun 2009 15:38:38 +0900
From:    thomas <[E-MAIL ADDRESS DELETED]>
To:      [E-MAIL ADDRESS DELETED]
Subject: [Seasar-user:17621] [Teeda-メッセージボックス]

> For Example,in EmployeeCreatePage after creating a record in DB,
> i want to show,「登録しました」in message box. And return to EmployeeListPage.


public class EmployeeCreatePage {
  ...
  @RedirectScope
  public boolean showMessage;

  public Class doCreate() {
    ...
    showMessage = true;
    return EmployeeListPage.class;
  }
}

public class EmployeeListPage {
  ...
  public boolean showMessage;
}

employeeList.html

<body>
  <div id="isShowMessage">
    <script type="text/javascript">
    //<![CDATA[
      window.alert("登録しました")
    //]]>
    </script>
  </div>
  ...


-- 
<component name="koichik">
    <property name="fullName">"Koichi Kobayashi"</property>
    <property name="email">"[E-MAIL ADDRESS DELETED]"</property>
    <property name="blog">"http://d.hatena.ne.jp/koichik"</property>
</component>



Seasar-user メーリングリストの案内