witam mam mały problem z generowaniem custom tagów a dokladnie z metoda ktora je tworzy. Na poczatku napisalem sobie prostego taga który tworzył html'owego inputa kod ponizej:
import java.io.IOException;
import javax.faces.component.UIOutput;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
public class AddressUIComp extends UIOutput{
@Override
public void encodeBegin(FacesContext context) throws IOException
{
ResponseWriter writer = context.getResponseWriter();
String id = getClientId(context);
writer.startElement("input", null);
writer.writeAttribute("value", id+"TESTOWY_ID", null);
writer.endElement("input");
}
@Override
public String getFamily()
{
return "test";
}
}
Powyzszy kod dziala poprawnie. Problemem jest to ze niewiem jak zrobic aby metoda startElement(..)
generowala tag JSF i RichFaces. Ponizszy kawalek nie dziala tak jakby mi to bylo potrzebne
writer.startElement("f:input", null);
writer.writeAttribute("value", id+"TESTOWY_ID", null);
writer.endElement("f:input");
Mam prośbe jesli ktos moglby pomoc w temacie bede wdzieczny.