You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Doyle, Michael J" <mi...@gs.com> on 2003/04/25 19:34:51 UTC
RE: Very basic question - referencing properties
Got it! Thank you!
Having overcome that, I now get the error
"Unable to resolve expression 'misses' for
common.tapestry.Home@257687[Home]."
I have set up my Home.java file as in the example. Am I missing an import?
Or something else?
My Home.java file is:
package common.tapestry;
import org.apache.tapestry.html.BasePage;
public class Home extends BasePage
{
public static final int EASY = 10;
public static final int MEDIUM = 5;
public static final int HARD = 3;
private int misses;
private String error;
public void detach()
{
misses = 0;
error = null;
super.detach();
}
public int getMisses()
{
return misses;
}
public void setMisses(int value)
{
misses = value;
fireObservedChange("misses", value);
}
Sorry to be asking such basic questions; I'm trying to get up to speed as
quickly as possible.
Thanks!
- Mike
-----Original Message-----
From: Joel Trunick [mailto:Joel@SmartPrice.com]
Sent: Friday, April 25, 2003 12:29 PM
To: 'Tapestry users'
Subject: RE: Very basic question - referencing Tapestry components
You might make sure that the .page file has a component for 'form'.
J
-----Original Message-----
From: Doyle, Michael J [mailto:michael.j.doyle@gs.com]
Sent: Friday, April 25, 2003 11:28 AM
To: 'tapestry-user@jakarta.apache.org'
Subject: Very basic question - referencing Tapestry components
Hi,
I'm following the tutorial to familiarize myself with Tapestry. In creating
the Hangman application, I get a parse exception that
Tag <form> on line 7 references unknown component id 'form'.
How do I ensure Tapestry sees its own components?
Sorry for my ignorance and thanks in advance,
- Mike
RE: Very basic question - referencing properties
Posted by "Howard M. Lewis Ship" <hl...@attbi.com>.
That's very strange. Could we see the full stack trace?
--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
> -----Original Message-----
> From: Doyle, Michael J [mailto:michael.j.doyle@gs.com]
> Sent: Friday, April 25, 2003 1:35 PM
> To: 'Tapestry users'
> Subject: RE: Very basic question - referencing properties
>
>
> Got it! Thank you!
>
> Having overcome that, I now get the error
>
> "Unable to resolve expression 'misses' for
> common.tapestry.Home@257687[Home]."
>
> I have set up my Home.java file as in the example. Am I
> missing an import? Or something else?
>
> My Home.java file is:
>
> package common.tapestry;
>
> import org.apache.tapestry.html.BasePage;
>
> public class Home extends BasePage
> {
> public static final int EASY = 10;
> public static final int MEDIUM = 5;
> public static final int HARD = 3;
>
> private int misses;
> private String error;
>
> public void detach()
> {
> misses = 0;
> error = null;
>
> super.detach();
> }
>
> public int getMisses()
> {
> return misses;
> }
>
> public void setMisses(int value)
> {
> misses = value;
>
> fireObservedChange("misses", value);
> }
>
> Sorry to be asking such basic questions; I'm trying to get up
> to speed as quickly as possible.
>
> Thanks!
> - Mike
>
> -----Original Message-----
> From: Joel Trunick [mailto:Joel@SmartPrice.com]
> Sent: Friday, April 25, 2003 12:29 PM
> To: 'Tapestry users'
> Subject: RE: Very basic question - referencing Tapestry components
>
>
>
> You might make sure that the .page file has a component for 'form'.
>
> J
>
>
> -----Original Message-----
> From: Doyle, Michael J [mailto:michael.j.doyle@gs.com]
> Sent: Friday, April 25, 2003 11:28 AM
> To: 'tapestry-user@jakarta.apache.org'
> Subject: Very basic question - referencing Tapestry components
>
>
> Hi,
>
> I'm following the tutorial to familiarize myself with
> Tapestry. In creating the Hangman application, I get a parse
> exception that
>
> Tag <form> on line 7 references unknown component id 'form'.
>
> How do I ensure Tapestry sees its own components?
>
> Sorry for my ignorance and thanks in advance,
> - Mike
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>