Remove get/setItem in your class, and add the following to your .page:
<property name="item"/>
Stephanos Piperoglou wrote:
Noob question:
I've been going over the documentation and trying things out and so far it
seems that I have to declare abstract getters and setters in my page class
for every transient page property, including the placeholders and index
holders for loops, so for instance when I do
<span jwcid="@For" source="ognl:collection" value="ognl:item"
index="ognl:index">...</span>
I need get/setItem and get/setIndex in my class. Being a recent convert
from Struts where you can define page beans via JSP tags and considering
most of the time I only need to access these properties from within the
page itself for the purposes of iteration, I find this rather wasteful.
Not to mention the fact that larger pages with a lot of @For loops tend to
accumulate a lot of clutter. Is there no way around this?
---
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]