Note that there are some explanatory texts on larger screens.

plurals
  1. POFailure reading parameter 'context' for pagelink
    primarykey
    data
    text
    <p>hi i've some problem with error:</p> <p>I try to passed value integer from one page through pagelink anotger page using context .. code looks something like:</p> <pre><code>public class Contact { @Persist @Property private Integer nNumb; @Property private Integer singleRow; @Property private Integer singleColumn; @Persist @Property private Integer columns []; @Persist @Property private Integer rows []; @OnEvent Object onSumbit(){ rows = new Integer[nNumb]; for (int i = 0; i &lt; nNumb; i++) { rows[i] = i++; } columns = new Integer[nNumb]; for (int i = 0; i &lt; nNumb; i++) { columns[i] = i++; } return null; } public Integer getMultiplyValue(){ return singleRow * singleColumn; } } </code></pre> <p><strong>Page Contact.tml:</strong></p> <pre><code>&lt;body&gt; &lt;h1&gt;Multiply Table Page 2&lt;/h1&gt; &lt;p&gt; Submit integer number N (1&amp;lt;=N&amp;lt;=20): &lt;/p&gt; &lt;t:form t:id="userInput"&gt; &lt;p&gt; &lt;t:label for="nNumb"/&gt; &lt;t:textfield t:id="nNumb" t:label="N: " t:value="nNumb" t:validate="required,min=1,max=20" /&gt; &lt;/p&gt; &lt;p&gt; &lt;t:submit t:id="calculate" value="create multy table"/&gt; &lt;/p&gt; &lt;/t:form&gt; &lt;h1&gt;Result:&lt;/h1&gt; &lt;table border="1"&gt; &lt;tr&gt; &lt;td bgcolor="#aaaaaa"&gt;*&lt;/td&gt; &lt;td bgcolor="#aaaaaa" t:type="loop" t:source="columns" t:value="singleColumn"&gt; ${singleColumn} &lt;/td&gt; &lt;/tr&gt; &lt;tr t:type="loop" t:source="rows" t:value="singleRow"&gt; &lt;td bgcolor="#aaaaaa"&gt;${singleRow}&lt;/td&gt; &lt;td t:type="loop" t:source="columns" t:value="singleColumn"&gt; &lt;a href="#" t:type="PageLink" t:page="product" t:context="${multiplyValue}"&gt;*&lt;/a&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/body&gt; </code></pre> <p>pagelink throws exception on line 34:</p> <pre><code>Render queue error in BeginRender[Contact:pagelink]: Failure reading parameter 'context' of component Contact:pagelink: org.apache.tapestry5.ioc.internal.util.TapestryException </code></pre> <hr> <pre><code> 32 &lt;td bgcolor="#aaaaaa"&gt;${singleRow}&lt;/td&gt; 33 &lt;td t:type="loop" t:source="columns" t:value="singleColumn"&gt; 34 &lt;a href="#" t:type="PageLink" t:page="product" t:context="${multiplyValue}"&gt;*&lt;/a&gt; 35 &lt;/td&gt; 36 &lt;/tr&gt; </code></pre> <p>What is wrong, am i calling correctly the method multiplyValue?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload