gt;>>>>
>>>>>>>>private boolean _increment;
>>>>>>>>
>>>>>>>>@SetupRender
>>>>>>>>void initializeValue()
>>>>>>>>{
>>>>>>>>_value = _s
>>>int newValue = _value + 1;
>>>>>>>>
>>>>>>>> if (newValue <= _end)
>>>>>>>> {
>>>>>>>>_value = newValue;
>>>>>&
t;>>>>>{
>>>>>>>if (_increment)
>>>>>>> {
>>>>>>> int newValue = _value + 1;
>>>>>>>
>>>>>>>if (newValue <= _end)
>
return false;
>>>>>>}
>>>>>>}
>>>>>> else
>>>>>> {
>>>>>> int newValue = _value - 1;
>>>>>>
>>>>>>if (newValue
_value = newValue;
>>>>>return false;
>>>>> }
>>>>> }
>>>>>
>>>>>return true;
>>>>>}
>>>&g
> >> I added the stext parameter for the sake of test,you don't need even
>> to
>> >> declare getter and setter for parameters, in the page that uses the
>> >> component y
>> component you write down simply:
> >>
> >> Ho!
> >>
> >> and both parameters 'end' and 'stext' will go on with no problems
> >>
> >> but if I write
> >>
> >> Ho!
> >
>>
>> then I get the following enlighting message:
>>
>> "Could not convert 'mytext' into a component parameter binding: Class
>> org.compramaestra.pages.TreeDemo does not contain a proper
ties: class,
> componentResources, message, node, treeNodes."
>
> So what? the argument is supposed to be the parameter? I'm totally lost
> ,bear in mind that
>
> Ho! does not complain at all
>
>
> Thanks a lot if any can save me!
>
> tapestry 5.0.11
>
&g
if any can save me!
tapestry 5.0.11
--
View this message in context:
http://www.nabble.com/T5-Component-question-based-on-the-Count-component-in-documentation-tp16917580p16917580.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
10 matches
Mail list logo