Jsf 2.0 Custom Tags With Primefaces?

You need to give all dynamically created UIForm UIInput and UICommand components a fixed ID.

You need to give all dynamically created UIForm, UIInput and UICommand components a fixed ID. Input. SetId("someId"); // ... Otherwise JSF can't find them in the view state to process the submitted values.

Ok. So how wil I save them with the Id? – NsDeep Sep 14 at 2:53 Huh?

What do you mean? Binding the input component to a model value? Use setValueExpression() with a #{bean.

Value} instead of setValue() – BalusC Sep 14 at 3:15 I've a Save button. So on click of that button I've to bind the values to the backingbean. – NsDeep Sep 14 at 6:37 Yes, use input.

SetValueExpression("value", valueExpression). You only need to ensure that there's a as parent. – BalusC Sep 14 at 12:36.

I've done this way but i'm not getting the saved value backend. InputText input = new InputText(); input. SetId("text"); FacesContext facesInstance = FacesContext.

GetCurrentInstance(); Application application = facesInstance.getApplication(); ExpressionFactory expressionFactory = application. GetExpressionFactory(); String expression = "#{backing. InputText}"; ValueExpression valExpression = expressionFactory.

CreateValueExpression(facesInstance.getELContext(), expression,String. Class); input. SetValueExpression("value",valExpression).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions