[Seasar-user:17299] Re: [Kumu]Kumu.FormHelperでcheckboxの値についって

[E-MAIL ADDRESS DELETED] [E-MAIL ADDRESS DELETED]
2009年 4月 23日 (木) 17:46:23 JST


Hi, thomas.

Please show your Page class.
It seems that the member named check of the boolean type
does not exist in the Page class.

example.
XxxPage.java

public boolean check;

or

private boolean check;
public boolean isCheck() {
  return check;
}
public void setCheck(boolean check) {
  this.check = check;
}


thomas さんは書きました:
> Hai,
> 
> 
> I am using kumu.FormHelper to get the items value.
> I can get the textbox value in the list.
> But i want to get the check box value.whether the checkbox is checked or 
> not?
> 
> 
> Here with i attached my HTML coding...
> 
> HTML
> :::::::::
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:te="http://www.seasar.org/teeda/extension" xml:lang="ja" lang="ja">
> <head>
> <meta http-equiv="Content-Type" content="text/html; rel="stylesheet" 
> type=" text/css" href="../../css/global.css"/>
> <link rel="stylesheet" type=" text/css" href="../../css/master.css"/>
> <script language="JavaScript" type="text/javascript" 
> src="../../js/ajax.js"></script>
> <script language="JavaScript" type="text/javascript" 
> src="../../js/kumu.js"></script>
> <script>
> 
> *function getEmployeeCode(){
> var form = Kumu.FormHelper.create('Form', 't');
> var items = form['employeemasterItems']
> var item = items[0];
> alert(item['employeecode']);                                     //I can 
> get the value here.
> alert(item['check'])                                                    
> //here undefined*
> 
> }
> 
> </script>
> </head>
> <body>
> <form id="Form"><br/>
> <table class="container" border="1" align="center" bordercolor="#408080">
> <tr class="heading">
> <td></td><td><label id="employee"/></td>
> <td><label id="employeename"/></td>
> </tr>
> <div id="employeemasterItems">
> <tr class="item">
> <td><input type="checkbox" id="check"/></td>
> <td><input type="text" id="employeecode"></input></td>
> <td><span id="employeefirstname"></span></td>
> </tr>
> </div>
> <tr><td colspan="18">
> <input type="button" id="select" value = "アサイン" 
> onclick="getEmployeeCode()"/>
> </td></tr>
> </table>
> </form>
> <table align="center"><span id="allMessages" 
> style="color:red;"/></table></body>
> </html>
> 
> 
> How can i get the check box value?
> 
> Thanks in advance....
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user


-- 
米 林   正 明
http://www.abby.co.jp


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