Hi all,
I'm implementing a WAP interface for a project using Tapestry's WML
components. The only code example I've found is one from the 3.0.4
component reference. I've modified this example a bit, but I can't get
it working. When using the Go component, I get a NullPointerException
(see below).

This is what my template currently looks like:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml";>

<wml>
   <card jwcid="@Card" id="Hello" title="Hello">

       <p>Name: <input jwcid="[EMAIL PROTECTED]" value="ognl:username"/></p>

       <do type="accept" label="Accept">
           <go jwcid="[EMAIL PROTECTED]" action="listener:onSubmit">
               <postfield id="[EMAIL PROTECTED]"
name="ognl:components.userInput.name" value="ognl:username">
           </go>
       </do>

   </card>

</wml>

If I remove the Go component, the Card and the Input components get
rendered properly ...
Does anyone have an idea of what I'm doing wrong? (my Java class
extends Deck instead of BasePage)

Regards,
Emil Jönsson

--------------

java.lang.NullPointerException

Stack Trace:

   * org.apache.tapestry.form.Form.renderComponent(Form.java:243)
   * org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
   * 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434)
   * org.apache.tapestry.wml.Card.renderComponent(Card.java:58)
   * org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
   * org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)
   * org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
   * org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:275)
   * org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:366)

...

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to