[jboss-user] [JBoss Seam] - Re: NullPointerException when get a row from a list
dago
do-not-reply at jboss.com
Wed Feb 7 21:18:46 EST 2007
hello SmokingAPipe.
you said:
anonymous wrote : Tell me where is cnMessages being set?
see the red code bellow:
public class UITicker extends UIOutput {
private CnMessageActionTest cmat;
public void encodeBegin(FacesContext ctx) throws IOException {
ResponseWriter writer = ctx.getResponseWriter();
writer.startElement("div", this);
String enMsg = (String)getAttributes().get("enMsg");
cmat = new CnMessageActionTest();
cmat.getCnMessage(enMsg);
if (enMsg!=null)
writer.writeAttribute("enMsg", enMsg, null);
String style = (String)getAttributes().get("style");
if (style!=null)
writer.writeAttribute("style", style, null);
String styleClass = (String)getAttributes().get("styleClass");
if (styleClass!=null)
writer.writeAttribute("class", styleClass, null);
}
public void encodeEnd(FacesContext context) throws IOException {
ResponseWriter writer = context.getResponseWriter();
writer.endElement("div");
}
}
thanks! (I am a newer to seam)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012768#4012768
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012768
More information about the jboss-user
mailing list