Hi,
I have this code on the html
<select jwcid="[EMAIL PROTECTED]" multiple="ognl:false"
validators="validators:required">
                    <span jwcid="@For" source="ognl:reportTypeList"
value="ognl:reportType"><option jwcid="@Option"
selected="ognl:typeSelected" label="ognl:reportType.code"/></span>
</select>

the java:
public void setTypeSelected(ReportType rpt) {
                this.typeSelected = rpt;
        }

        public boolean getTypeSelected() {
                return this.typeSelected.getCode().equalsIgnoreCase(
                                getReportTemplate().getType());
        }

It's not working. If I change the html into:
selected="ognl:getTypeSelected(reportType)" it return Inapropriate
OGNL expression exception.
Could anyone post me a sample of using Select and Option component
especially on the Option's selected property. I find it dificult to
understand How to make an Item selected. Please don't post the sample
code from the documentation. Thanks.

-- 
Wassalamu'alaikum wr. wb.
Mohammad Irfan

---
www.doktermaya.com
www.L-Ads.com (classifieds ads, iklan baris)
www.komplain.org (complain about product)
www.akarprima.com

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

Reply via email to