You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Weisu <we...@gmail.com> on 2008/06/12 03:19:09 UTC
T5.0.13: form problem
Hi All, I have this problem with component form after I upgraded my app to
5.0.13. The error msg is:
java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for org.apache.tapestry5.corelib.components.Form.
The tml looks like:
<form t:id="form">
<t:errors/>
<table class="form" border="0">
<tr>
<th><t:label for="userName"/></th>
<td><input t:type="TextField" t:id="userName"
size="20"/></td>
</tr>
<tr>
<th><t:label for="password"/></th>
<td><input t:type="PasswordField" t:id="password"
size="10"/></td>
</tr>
<tr>
<th><t:label for="districtCode"/></th>
<td><input t:type="TextField" t:id="districtCode"
size="10"/></td>
</tr>
<tr>
<th><t:label for="position"/></th>
<td><input t:type="TextField" t:id="position"
size="10"/></td>
</tr>
<tr><td></td><td><input type="submit" value="Login"/></td></tr>
</table>
</form>
the java file looks like this:
@Component private Form form;
public String onSuccess() {
String errList="";
// do somthing
//.........
//...........
if (errList != "" ){
form.recordError(errList);
errList="";
}else {
//..........
}
return null;
}
Thanks in advance!
--
View this message in context: http://www.nabble.com/T5.0.13%3A-form-problem-tp17790631p17790631.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5.0.13: form problem
Posted by Weisu <we...@gmail.com>.
Thanks Harald! It works now.
Wei.
Harald Geritzer-2 wrote:
>
>
>> java.lang.ClassNotFoundException: caught an exception while obtaining a
>> class file for org.apache.tapestry5.corelib.components.Form.
>
> if its the slf4j logger, which isn't found and you're using jetty try to
> put a file called
> "jetty-web.xml" into your WEB-INF folder.
>
>
> jetty-web.xml:
> ==============
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
> "http://jetty.mortbay.org/configure.dtd">
>
> <Configure class="org.mortbay.jetty.webapp.WebAppContext">
> <Set name="parentLoaderPriority">true</Set>
> </Configure>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/T5.0.13%3A-form-problem-tp17790631p17793925.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5.0.13: form problem
Posted by Harald Geritzer <h....@gmail.com>.
> java.lang.ClassNotFoundException: caught an exception while obtaining a
> class file for org.apache.tapestry5.corelib.components.Form.
if its the slf4j logger, which isn't found and you're using jetty try to put a file called
"jetty-web.xml" into your WEB-INF folder.
jetty-web.xml:
==============
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
"http://jetty.mortbay.org/configure.dtd">
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
<Set name="parentLoaderPriority">true</Set>
</Configure>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org