CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 JSP example from CCS tutorial throws exception in Tomcat 4

Print topic Send  topic

Author Message
Ramin Gharakhanzadeh
Posted: 10/31/2002, 12:40 AM

The example "Implement Record Security in "After Initialize" on the page 177
throws casting exception. I tried to trace the problem and it looks like the
part below is the reason for the exception:
((Record)e.getSource()).setAllowUpdate(false);
((Record)e.getSource()).setAllowDelete(false);

Any suggestions?

Ramin Gharakhanzadeh
Posted: 10/31/2002, 12:50 AM

Problem solved. Here is the solution from CCS support:
((Record)e.getSource().getChild("tasks")).setAllowUpdate(false);
((Record)e.getSource().getChild("tasks")).setAllowDelete(false);


"Ramin Gharakhanzadeh" <rghara@sbcglobal.net> wrote in message
news:apqqam$vd8$1@news.codecharge.com...
> The example "Implement Record Security in "After Initialize" on the page
177
> throws casting exception. I tried to trace the problem and it looks like
the
> part below is the reason for the exception:
> ((Record)e.getSource()).setAllowUpdate(false);
> ((Record)e.getSource()).setAllowDelete(false);
>
> Any suggestions?
>
>

Ramin Gharakhanzadeh
Posted: 11/01/2002, 10:46 PM

Here is the solution that really works::
((Record) e.getPage().getChild("form_name")).setAllowUpdate(false);
((Record) e.getPage().getChild("form_name")).setAllowDelete(false);


"Ramin Gharakhanzadeh" <rghara@sbcglobal.net> wrote in message
news:apqqs8$ne$1@news.codecharge.com...
> Problem solved. Here is the solution from CCS support:
> ((Record)e.getSource().getChild("tasks")).setAllowUpdate(false);
> ((Record)e.getSource().getChild("tasks")).setAllowDelete(false);
>
>
> "Ramin Gharakhanzadeh" <rghara@sbcglobal.net> wrote in message
>news:apqqam$vd8$1@news.codecharge.com...
> > The example "Implement Record Security in "After Initialize" on the page
> 177
> > throws casting exception. I tried to trace the problem and it looks like
> the
> > part below is the reason for the exception:
> > ((Record)e.getSource()).setAllowUpdate(false);
> > ((Record)e.getSource()).setAllowDelete(false);
> >
> > Any suggestions?
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.