Jsf headache, please help, thank you.

Dear everyone,
I have made this customized jsf component. In the following, I have shown the code of the UIComponentTag codes and in the bold part, I would like to set the component id to be dojoid, which is unique id. I would like to apply component.setId(dojoid) in setProperties method, but as a result, the error of duplicate id will be generated. It is trouble to set my own id (of couse it is unique), could anyone help me so that the id of the component could be changed? Thank you very much.
package jsf.dojo.control;
import javax.faces.application.Application;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
import javax.faces.webapp.UIComponentTag;
public class comboBoxTag extends UIComponentTag {
private String size;
private String value;
private String id;
private String dojoid;
public String getComponentType() {
System.out.println("call comboBoxTag->getComponentType");
return "jsf.dojo.control.comboBox";
public String getRendererType() {
System.out.println("call comboBoxTag->getRenderType");
return null;
public void setProperties(UIComponent component) {      
System.out.println("ComponentId->getId:"+component.getId());
super.setProperties(component);
setStringProperty(component, "size", size);
setStringProperty(component, "dojoid", dojoid);
setStringProperty(component, "value", value);
private void setStringProperty(UIComponent component,
String attrName, String attrValue) {
System.out.println("call comboBoxTag->setStringProperty" + attrName + "=" + attrValue);
if(attrValue == null)
return;
if(isValueReference(attrValue)) {
System.out.println("call comboBoxTag->setStringProperty->isValueReference("+ attrName+ ":" + attrValue +")");
FacesContext context =
FacesContext.getCurrentInstance();
Application application =
context.getApplication();
ValueBinding binding =
application.createValueBinding(attrValue);
component.setValueBinding(attrName, binding);
else {
System.out.println("call comboBoxTag->setStringProperty->isNotValueReference("+ attrName+ ":" + attrValue +")");
component.getAttributes().
put(attrName, attrValue);
public void release() {
super.release();
size = null;
value = null;
public String getSize() {
System.out.println("call comboBoxTag->getSize");
return size;
public void setSize(String size) {
System.out.println("call comboBoxTag->setSize");
this.size = size;
public String getId() {
System.out.println("call comboBoxTag->id");
return id;
public void setId(String id) {
System.out.println("call comboBoxTag->setId");
this.id = id;
public String getValue() {
System.out.println("call comboBoxTag->getValue");
return value;
public void setValue(String value) {
System.out.println("call comboBoxTag->setValue");
this.value = value;
public String getDojoid() {
System.out.println("call comboBoxTag->getSize");
return size;
public void setDojoid(String dojoid) {
System.out.println("call comboBoxTag->setSize");
this.dojoid = dojoid;
}

I reset, it did nothing. I also went tn mic settings to 'tokkle', turn off and on. In that list is no facetime btw. Please help. Apple support wont call me because i live abroad.
iPad 2 Wi-Fi + 3G, iOS 7.0.3 

Similar Messages

Maybe you are looking for