Got it working now by using the class attribute in the component specification.
It is wierd but I used the same code in a small project and that worked
without the class attribute!...
Hacer Soran <[EMAIL PROTECTED]> wrote: Hi there,
I am trying to tidy my code up using a Border component - with no joy. Your
help would be much appreciated if you could. I have already spent 2 days on
this - as you can see I am not good at it - and my boss is not happy :(
Thanks in advance
Ok here it is:
The aim is to display a list of courses according to the logged in user, and
this is used at least on 5 pages.
The error is:
org.apache.hivemind.ApplicationRuntimeException Unable to
read OGNL expression '
' of [EMAIL PROTECTED]/$Border]: Method "coursePages" failed for object
[EMAIL PROTECTED]/$Border]
Border.jwc has:
Border class has the following:
// constant for now
private String[] coursePages = {"Course1","Course2","Course3" };
public String[] getCoursePages() {
return coursePages;
}
public String doSelectCourse(final int index) {
int idx = index;
if (idx <0 || idx > 2) {
idx = 0;
}
return coursePages[idx];
}
Border.html has the following line
So what is wrong? Why do I get a runtime error?
Thanks a lot
HS
---------------------------------
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre.
---------------------------------
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre.