You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Rob Dennett <ro...@tmit1.org> on 2006/02/07 23:25:57 UTC

Problems with script input symbol

I am getting an error which states that an input symbol I defined in a script file is required but not specified.  Here is an excerpt from the script

 

<script>

      <input-symbol key="button" required="yes" />

      <input-symbol key="direction" required="yes" />

 

(Direction is the thing I am having trouble with.)

 

And here is an excerpt from the jwc file

 

<component-specification allow-body="no" allow-informal-parameters="yes">

      <property name="direction" />

      

      <component id="insertChangeDirectionScript" type="Script">

            <binding name="script" value="literal:ChangeDirection.script" />

            <binding name="button" value="components.button" />

            <binding name="direction" value="direction" />

      </component>

      

      <component id="direction" type="Hidden">

            <binding name="value" value="direction" />

      </component>

      

      <component id="button" type="Button" inherit-informal-parameters="yes">

      </component>

</component-specification>

 

If this isn’t what you do, then what is?

 

Thanks for your help,

Rob


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.2/252 - Release Date: 2/6/2006
 

Re: Problems with script input symbol

Posted by Howard Lewis Ship <hl...@gmail.com>.
Looks good to me, component.button is probably non-null, but direction
may be null, causing the error.

On 2/7/06, Rob Dennett <ro...@tmit1.org> wrote:
> I am getting an error which states that an input symbol I defined in a script file is required but not specified.  Here is an excerpt from the script
>
>
>
> <script>
>
>       <input-symbol key="button" required="yes" />
>
>       <input-symbol key="direction" required="yes" />
>
>
>
> (Direction is the thing I am having trouble with.)
>
>
>
> And here is an excerpt from the jwc file
>
>
>
> <component-specification allow-body="no" allow-informal-parameters="yes">
>
>       <property name="direction" />
>
>
>
>       <component id="insertChangeDirectionScript" type="Script">
>
>             <binding name="script" value="literal:ChangeDirection.script" />
>
>             <binding name="button" value="components.button" />
>
>             <binding name="direction" value="direction" />
>
>       </component>
>
>
>
>       <component id="direction" type="Hidden">
>
>             <binding name="value" value="direction" />
>
>       </component>
>
>
>
>       <component id="button" type="Button" inherit-informal-parameters="yes">
>
>       </component>
>
> </component-specification>
>
>
>
> If this isn't what you do, then what is?
>
>
>
> Thanks for your help,
>
> Rob
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.375 / Virus Database: 267.15.2/252 - Release Date: 2/6/2006
>
>
>


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org