Hello,
Anyone know the general cause of a:
source is null for getProperty(null, "mayEnterCCRefunds")
type problem?
Unable to resolve expression '"3".equals(qdTran.ssvCode) &&
("B".equalsIgnoreCase(user.mayEnterCCRefunds) ||
"C".equalsIgnoreCase(user.mayEnterCCRefunds))' for
[EMAIL PROTECTED]
mitCurrentDraftInfo].
binding: ExpressionBinding[SubmitCurrentDraftInfo "3".equals(qdTran.ssvCode)
&& ("B".equalsIgnoreCase(user.mayEnterCCRefunds) ||
"C".equalsIgnoreCase(user.mayEnterCCRefunds))]
location: context:SubmitCurrentDraftInfo.html, line 73
ognl.OgnlException
source is null for getProperty(null, "mayEnterCCRefunds")
Stack Trace:
ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1435)
ognl.ASTProperty.getValueBody(ASTProperty.java:96)
ognl.SimpleNode.getValue(SimpleNode.java:192)
ognl.ASTChain.getValueBody(ASTChain.java:109)
ognl.SimpleNode.getValue(SimpleNode.java:192)
ognl.ASTMethod.getValueBody(ASTMethod.java:73)
ognl.SimpleNode.getValue(SimpleNode.java:192)
ognl.ASTChain.getValueBody(ASTChain.java:109)
ognl.SimpleNode.getValue(SimpleNode.java:192)
Jason E. Dimm, Senior Analyst, Cingular Wireless
IT eCommerce/Payments (Payment Processing)
Cingular Java Components, QuickPay, Wedat
Sun Certified Java Developer
Sun Certified Java Programmer
12555 Cingular Way
Alpharetta, GA 30004
Office (678)893-2232
asà es la vida.
-----Original Message-----
From: Chris Chiappone [mailto:[EMAIL PROTECTED]
Sent: Monday, February 13, 2006 10:10 AM
To: Tapestry users
Subject: Re: Newbie : Tapestry 4 Disgarding the Page Specification
I think the main thing that causes people problems with this is that
they don't realize you have to move the .html files from WEB-INF/ to
the root web directory.
On 2/13/06, Alan Chandler <[EMAIL PROTECTED]> wrote:
> On Monday 13 February 2006 00:53, Stewart Robertson wrote:
> > I am new Tapestry 4 user and I am trying to standardize on using just
the
> > HTML page and Annotations. My page specifications are empty and I have
> > used the application specification file to indicate the package name for
> > all my Java Page classes as well. I no longer want to specify any page
> > specification files at all since they are pretty much empty, but
tapestry
> > throws an exception when I remove them. Is there any way to configure
> > tapestry 4 so that you do not have to specify page specifications.
Thanks
> > for the help and by the way I am very impressed by Tapestry 4.........
>
> It certainly works, I have three applications running tapestry on my web
site
> (blog, famtree and akcmoney) all of which don't use them (I occassionally
> have a component spec when I don't need a Java class). You are welcome to
> take a look at them as examples, the code is either in "git" repositories,
or
> if you don't know what that is and don't use it, tarballs of the code at
> snapshot points exist in the files download section (go to Software Corner
of
> the web site from the url in my signature).
>
> The application specification sits in the WEB-INF directory and defines
the
> class packages location as the example below (from blog) shows (apologies
for
> mail word wrap)
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC
> "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
>
> <!-- Copyright (c) 2006 Alan Chandler, licenced under the GPL (see
LICENCE.txt
> file in META-INF directory) -->
>
> <application name="blog"
engine-class="org.apache.tapestry.engine.BaseEngine">
> <description>My Blog</description>
> <meta key="org.apache.tapestry.page-class-packages" >
> uk.org.chandlerfamily.blog.tapestry.pages
> </meta>
> <meta key="org.apache.tapestry.component-class-packages">
> uk.org.chandlerfamily.blog.tapestry.components
> </meta>
> <meta key="org.apache.tapestry.accepted-locales">
> en
> </meta>
> <meta key="org.apache.tapestry.enable-reset-service">
> true
> </meta>
> <library id="Contrib"
> specification-path="/org/apache/tapestry/contrib/Contrib.library" />
> <library id="akc"
>
specification-path="/uk/org/chandlerfamily/tapestry/components/akc.library"
/>
> </application>
>
>
> I am using exclipse (with the wtp package) to develop so although the java
> classes will ultimately be under WEB-INF/classes, the WEB-INF itself is
under
> the Webcontent directory and java sources under the JavaSources directory
in
> the packages defined above.
>
> The html templates for pages are at the top level in Webcontent, component
> templates are in the WEB-INF directory.
>
> my hivemodule.xml file is in the META-INF directory under Javasource.
>
> --
> Alan Chandler
> http://www.chandlerfamily.org.uk
> Open Source. It's the difference between trust and antitrust.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
~chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]