Disabled Field

2011-03-09 Thread Hiren Patel

Hi,

I have done the following to disabled the text field.

field.setDisabled(isDisabled);

now when I inspect the html code in the browser the *value* attribute is 
missing.


Can you suggest me a solution for this.

_Hiren





a href=  http://kaleusermeet-march-2011.doattend.com/;
img src=  http://email.kaleconsultants.com/imgs/kale2.jpg;/ap
Disclaimer: This email (including any attachments) is intended for the sole
use of the recipient/s and may contain material that is CONFIDENTIAL. Any
unauthorized disclosure / copying / distribution or forwarding of this message 
or part is STRICTLY PROHIBITED. If you have erroneously received this message,

please delete it immediately and notify the sender. No liability is assumed for
any errors and/or omissions in the contents of this message. Information in 
this message that does not relate to the official business of this Company

shall be understood as neither given nor endorsed by it. If verification is
required please request a hard-copy version. 

To know more about Kale Consultants, visit www.kaleconsultants.com 


-=-=-=-=-=-=-=-=-=-




Stateful pages

2010-09-10 Thread Hiren Patel

Hi all,

I have some doubts regarding the /stateful Wicket page/ of Wicket.

I have one page with three components.
   1.Label
   2.TextFieldString
   3.TextFieldInteger.

1. What will be stateful?
2. What will be stored in the session? for example whole page or only 
the component that is stateful.


Case 1.
   Default condition.
Case 2.
   in the Page  i have written setStatelessHint(true).
   Nothing written in components.
Case 3.
   in the Page  i have written setStatelessHint(false).
   Nothing written in components.
Case 4.
   in the Page  i have written setStatelessHint(true).
   in the TextFieldString i have written
  protected boolean getStatelessHint() {
   return false;
   }
Case 5.
   in the Page  i have written setStatelessHint(true).
   in the all the three component I have written
  protected boolean getStatelessHint() {
   return false;
   }


Thanks,

_Hiren.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Stateful pages

2010-09-10 Thread Hiren Patel

Hiren Patel wrote:

Hi all,

I have some doubts regarding the /stateful Wicket page/ of Wicket.

I have one page with three components.
   1.Label
   2.TextFieldString
   3.TextFieldInteger.

1. What will be stateful?
2. What will be stored in the session? for example whole page or only 
the component that is stateful.


Case 1.
   Default condition.
Case 2.
   in the Page  i have written setStatelessHint(true).
   Nothing written in components.
Case 3.
   in the Page  i have written setStatelessHint(false).
   Nothing written in components.
Case 4.
   in the Page  i have written setStatelessHint(true).
   in the TextFieldString i have written
  protected boolean getStatelessHint() {
   return false;
   }
Case 5.
   in the Page  i have written setStatelessHint(true).
   in the all the three component I have written
  protected boolean getStatelessHint() {
   return false;
   }


Thanks,

_Hiren.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




can any one answer my doubts?

Thanks,
_Hiren

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org