[jboss-user] [JBoss Seam] - Re: s:decorate changed to use DIV instead of SPAN

damianharvey do-not-reply at jboss.com
Mon Oct 8 08:47:55 EDT 2007


Sorry but it does. Look at the pagesource. 

>From UIDecorate.java under Seam 1.3:

  |    @Override
  |    public void encodeBegin(FacesContext context) throws IOException
  |    {
  |       super.encodeBegin(context);
  |       
  |       Contexts.getEventContext().set("invalid", hasMessage(this, context));
  |       Contexts.getEventContext().set("required", hasRequired(this, context));
  |  
  |       context.getResponseWriter().startElement("span", this);
  |       context.getResponseWriter().writeAttribute("id", getClientId(context), "id");
  | 

And then in DecorateRendererBase (split out from UIDecorate) from Seam 2.0:

  |    
  |    @Override
  |    protected void doEncodeBegin(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException
  |    {
  |       UIDecorate decorate = (UIDecorate) component;
  |       
  |       Contexts.getEventContext().set("invalid", Decoration.hasMessage(decorate, context));
  |       Contexts.getEventContext().set("required", Decoration.hasRequired(component, context));
  |  
  |       boolean hasMessage = decorate.hasMessage();
  |       
  |       writer.startElement("div", decorate);
  |       writer.writeAttribute("id", decorate.getClientId(context), "id");
  |       


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092527#4092527

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092527



More information about the jboss-user mailing list