[jboss-user] [JBoss Seam] - Re: Something wrong with whole view layer :/ - getting NPE
ASavitsky
do-not-reply at jboss.com
Wed Sep 19 10:12:02 EDT 2007
Just make the changes yourself, then (you did read the bug report details, didn't you?).
Grab MenuRenderer from the latest RI release.
Scroll to the end of renderOption method, and change the following code block if (curItem.isEscape()) {
| String label = curItem.getLabel();
| if (label == null) {
| label = curItem.getValue().toString();
| }
| writer.writeText(label, component, "label");
| } else {
| writer.write(curItem.getLabel());
| }
| to this one: if (curItem.isEscape()) {
| String label = curItem.getLabel();
| if (label == null) {
| label = valueString;
| }
| writer.writeText(label, component, "label");
| } else {
| writer.write(curItem.getLabel());
| }
|
Include the changed file in your web project (mind the correct package name), this should automatically place the compiled class into WEB-INF/classes.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086133#4086133
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086133
More information about the jboss-user
mailing list