Hi, I wanted to try eliminating a bunch of getters in my Java class.

Right now I have something like this in my template:

<t:if test="showYear">
        <t:selectyear />
</t:if>

And I have a getter that is

public boolean getShowYear() {
        return this.getUsesSetting(ReportVariableEnum.FISCALYEARSINGLE);
}


I want to do something like this:

<t:if test="getUsesSetting(ReportVariableEnum.PARTICULARVARIABLE)">
     This uses Particular Variable
</t:if>

So I will only have to have getUsesSetting() in my page class.

I have about 30 or so components, with 30 or so getters, and with 30
or so getShowComponentName() methods.

This class is getting to be a pain to read through.

Any Ideas?

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

Reply via email to