You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bhaskar Gopalan <bg...@adaptintel.com> on 2002/04/09 17:30:57 UTC

Nested properties problem

Hi,
I'm trying to simulate a Readonly text field in struts 1.4 and getting this
error:
document.LoanDetailsForm.loanDetailsBean.loanSummaryBean is not an object
Any clues?

My code:

function readOnlyFunc() {
document.LoanDetailsForm.loanDetailsBean.loanSummaryBean.loanId.readOnly =
true;
}

<html:text size="15" property="loanDetailsBean.loanSummaryBean.statusId"
onfocus="javascript:readOnlyFunc();"/>

Thnx,
GB



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Nested properties problem

Posted by Arron Bates <ar...@pacific.net.au>.
Try...

document.LoanDetailsForm["loanDetailsBean.loanSummaryBean.loanId"].readOnly = true;

Arron.

Bhaskar Gopalan wrote:

>Hi,
>I'm trying to simulate a Readonly text field in struts 1.4 and getting this
>error:
>document.LoanDetailsForm.loanDetailsBean.loanSummaryBean is not an object
>Any clues?
>
>My code:
>
>function readOnlyFunc() {
>document.LoanDetailsForm.loanDetailsBean.loanSummaryBean.loanId.readOnly =
>true;
>}
>
><html:text size="15" property="loanDetailsBean.loanSummaryBean.statusId"
>onfocus="javascript:readOnlyFunc();"/>
>
>Thnx,
>GB
>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>