Unable to update expression
"Tagir Sharipov" <[email protected]> Fri, 14 Feb 2003 10:05:17 +0500
| Newsgroups | gmane.comp.java.tapestry.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
------=_NextPart_000_0020_01C2D410.935FA780
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
Hello all,
I'm trying to evaluateTapestry-2.4-alpha-2 and having a problem.
I have a page responsible for showing data for an activity. Activity's =
data is storing in a java bean ActivityDTO which is a member of my page.
The page is displaying ok. But when I try to submit data exception =
occur :(
If it is something wrong with my OGNL expressions then I expect that =
data won't be shown properly but it does.
Error message:
net.sf.tapestry.RequestCycleException: Unable to update expression =
'activityDTO.subject' for wf.web.Activity@24e801[Home] to Activity's =
subject.
net.sf.tapestry.BindingException: Unable to update expression =
'activityDTO.subject' for wf.web.Activity@24e801[Home] to Activity's =
subject.
ognl.OgnlException: target is null for setProperty(null, "subject", =
Activity's subject)
Thanks in advance
PS. Documentation I have downloaded is out of date. When approx it will =
be possible to download latest docs?=20
Here is the code of the page:
public class Activity extends BasePage {
public ActivityDTO activityDTO;
public void beginResponse(IMarkupWriter writer, IRequestCycle cycle) =
throws RequestCycleException {
activityDTO =3D Helper.getActivity( new BigDecimal( =
cycle.getRequestContext().getParameter( "activityId" ) ) );
}
public void detach() {
activityDTO =3D null;
super.detach();
}
public void formSubmit(IRequestCycle cycle) { }
}
HTML template (excerpt):
...
<input jwcid=3D"subjectTextField" size=3D"12"/>
...
Page specification (excerpt):
...
<page-specification class=3D"wf.web.Activity">
<component id=3D"activityForm" type=3D"Form">
<binding name=3D"listener" expression=3D"listeners.formSubmit"/>
</component>
<component id=3D"subjectTextField" type=3D"TextField">
<binding name=3D"value" expression=3D"activityDTO.subject"/>
</component>
...
------=_NextPart_000_0020_01C2D410.935FA780
Content-Type: text/html;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2>Hello =
all,</FONT></DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to =
evaluateTapestry-2.4-alpha-2 and=20
having a problem.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I have a page responsible for showing =
data for an=20
activity. Activity's data is storing in a java =
bean ActivityDTO which=20
is a member of my page.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The page is displaying ok. But =
when I try to=20
submit data exception occur :(</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If it is something wrong with my OGNL =
expressions=20
then I expect that data won't be shown properly but it =
does.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Error message:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>net.sf.tapestry.RequestCycleException: =
Unable to=20
update expression 'activityDTO.subject' for <A=20
href=3D"mailto:wf.web.Activity@24e801[Home">wf.web.Activity@24e801[Home</=
A>] to=20
Activity's subject.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>net.sf.tapestry.BindingException: =
Unable to update=20
expression 'activityDTO.subject' for <A=20
href=3D"mailto:wf.web.Activity@24e801[Home">wf.web.Activity@24e801[Home</=
A>] to=20
Activity's subject.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>ognl.OgnlException: target is null for=20
setProperty(null, "subject", Activity's subject)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance</FONT></DIV>
<DIV> </DIV>
<DIV>PS. Documentation I have downloaded is out of date. When approx it =
will be=20
possible to download latest docs? <FONT face=3DArial =
size=3D2></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Here is the code of the =
page:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>public class Activity extends BasePage =
{<BR> =20
public ActivityDTO activityDTO;<BR> public void=20
beginResponse(IMarkupWriter writer, IRequestCycle cycle) throws=20
RequestCycleException {<BR> activityDTO =3D =
Helper.getActivity(=20
new BigDecimal( cycle.getRequestContext().getParameter( "activityId" ) ) =
);<BR> }<BR> public void detach() {<BR> =20
activityDTO =3D null;<BR> super.detach();<BR> =20
}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> public void =
formSubmit(IRequestCycle cycle)=20
{ }<BR>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>HTML template (excerpt):</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><input jwcid=3D"subjectTextField"=20
size=3D"12"/></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Page specification =
(excerpt):</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><page-specification=20
class=3D"wf.web.Activity"><BR><component id=3D"activityForm"=20
type=3D"Form"><BR> <binding name=3D"listener"=20
expression=3D"listeners.formSubmit"/><BR></component><BR><com=
ponent=20
id=3D"subjectTextField" type=3D"TextField"><BR> =
<binding=20
name=3D"value"=20
expression=3D"activityDTO.subject"/><BR></component></FONT></DIV=
>
<DIV><FONT face=3DArial =
size=3D2>...<BR></DIV></FONT></FONT></DIV></BODY></HTML>
------=_NextPart_000_0020_01C2D410.935FA780--
-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en