Hello everybody, we go to the end of the development of dynamic components Primefaces, I reiterate here that the same way I'm doing with the components of Primefaces, is also done with the components of jsf HtmOutputText and HtmlInputText. So let's continue, we in the statement below: expressionFactory = app.getExpressionFactory();Recalling that the expressionFactory is to create a factory of EL expression and thus be able to declare the expression as we in the JSF bean.variavel #{bean.variavel}. Then we instance created with the set values for the components such as the value and the OutputLabel For longer concatenating with InputText ID below: opl.setValue ("Field" + (z + 1) + ""); opl.setId ("lbcampo" + z); opl.setFor ("campoID" + z); in InputText = new (); in.setId ("campoID" + z); in.setSize (2);You can're asking because only instantiated or created a new instance for the inputText, remember that we include expressionLanguage this component and so we must make this action if it does not do that would show the NullPointerException.Done with that we know that according to the value of Z will field 1,2,3,4 ... < p:outputLabel value="Field 1" id="lbcampo0" for="campoID0" /> And we know that temporarily inputText will < p:inputText id="campoID0" size="2" / > Now let's put the icing on the cake, that is, we include the expression for the component to take the value in view and to make it as below:ValueExpression ve = expressionFactory.createValueExpression (elContext, "#{bean.campo[" + z + "]},"String.class);See who now declare ValueExpression with this we are adding what accustomed to only the view, include a parameter to capture the value that the user typed. Note that is a expressionFactory creating value taking the context and set the class that will have value in the view, in this case the value is a string, but can be changed according to your need.Now we must add the ValueExpression to be included in inputText component in.setValueExpression ("value", ve); The name value must be placed always as it represents the value of the tag inputText component and a variable ve which is the EL.To give the final touch we should add the components in the panel we created in the beginning as follows:panel.getChildren().add(opl).; panel.getChildren().add(in).;With this added dynamic components within the panel.So this is personal, any questions I am available only comment here and then send an e-mail. To the next! Ola pessoa!Antes de mais nada gostaria de agradecer a DEUS por permitir mais um ano que passou e pedi a Ele mais um ano de gracas e bencaos. Um feliz 2016 a todos!Hoje, neste primeiro post do ano, vou falar sobre uma integracao do plugin TagiT do Jquery que voce pode encontrar neste site.No ano passado, precisei fazer um cadastro de Tags e claro que essa ferramenta veio para ajudar, e vou compartilhar essa experiencia.Primeiro tenho que falar que neste exemplo nao uso o primefaces ou qualquer outra implementacao do JSF, mas sim ele puro.Entao maos a obra.1o Passo:Tenho que inserir tres arquivos externos, duas css e um arquivo js que sao:<h:outputStylesheet library="css" name="jquery.tagit.css"></h:outputStylesheet><h:outputStylesheet library="css" name="tagit.ui-zendesk.css"></h:outputStylesheet><h:outputScript library="js" name="tag-it.min.js"></h:outputScript>Lembro que esses arquivos deverao esta contidos na pasta