It would be interesting to implement <p:forEach>
http://myfaces.apache.org/trinidad/trin ... rEach.html.
Another interesting idea would be from <p:menu> of primefaces is
could load pages with ajax in <p:layoutUnit>.
Thanks
Ideas for primefaces.
Is <ui:repeat> not the same as <tr:each>?
Check an example of the usage - http://www.primefaces.org:8080/prime-sh ... efault.jsf
Check an example of the usage - http://www.primefaces.org:8080/prime-sh ... efault.jsf
Netbeans 7.2| GlassFish 3.2 | PostgreSQL 9.1| MongoDB | Primefaces 3.4.2
_______________________________________________________________
Subraya Mallya
http://tinyhabit.com |http://twitter.com/tinyhabit
_______________________________________________________________
Subraya Mallya
http://tinyhabit.com |http://twitter.com/tinyhabit
-
- Posts: 117
- Joined: 19 May 2010, 03:50
why using p:forEach when we have c:forEach or ui:repeat?
Tomcat 7.0.25
Mojarra 2.1.6
Primefaces 3.1, 3.2
Firefox 10 and IE 7/IE 8
Mojarra 2.1.6
Primefaces 3.1, 3.2
Firefox 10 and IE 7/IE 8
c:forEach is not a component, just a tag handler, ui:repeat is a component.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin
-
- Posts: 117
- Joined: 19 May 2010, 03:50
what's the difference?
Tomcat 7.0.25
Mojarra 2.1.6
Primefaces 3.1, 3.2
Firefox 10 and IE 7/IE 8
Mojarra 2.1.6
Primefaces 3.1, 3.2
Firefox 10 and IE 7/IE 8
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin
1) <c:forEach work bad which AJAX.
2) <ui:repeat not suport this:
<ui:repeat var="parametros" value="#{Formularios.descripcionServicio.ordenWeb}" >
<h:outputText value="#{Formularios.descripcionServicio.descripcion[parametros].descripcion}"/>:
<h:inputText id="#{parametros}"
validatorMessage="#{bundle.Invalid_Range}"
value="#{Formularios.servicioActual.parametros[parametros]}">
<f:validateRegex pattern="#{Formularios.descripcionServicio.descripcion[parametros].validacion}"/>
</h:inputText>
<h:message for="#{parametros}" style="color: red"/>
</ui:repeat>
Because not access 2 times of var parametros in:
<h:inputText id="#{parametros}" validatorMessage="#{bundle.Invalid_Range}" value="#{Formularios.servicioActual.parametros[parametros]}">
Because forEach implemented in other frameworks for example apache trinidad
2) <ui:repeat not suport this:
<ui:repeat var="parametros" value="#{Formularios.descripcionServicio.ordenWeb}" >
<h:outputText value="#{Formularios.descripcionServicio.descripcion[parametros].descripcion}"/>:
<h:inputText id="#{parametros}"
validatorMessage="#{bundle.Invalid_Range}"
value="#{Formularios.servicioActual.parametros[parametros]}">
<f:validateRegex pattern="#{Formularios.descripcionServicio.descripcion[parametros].validacion}"/>
</h:inputText>
<h:message for="#{parametros}" style="color: red"/>
</ui:repeat>
Because not access 2 times of var parametros in:
<h:inputText id="#{parametros}" validatorMessage="#{bundle.Invalid_Range}" value="#{Formularios.servicioActual.parametros[parametros]}">
Because forEach implemented in other frameworks for example apache trinidad
I know what you mean, this works with ajax like charm:
By the way I think this is my first post, been registered for some time now but i'm just begining with my learning. Interesting jsf framework, i'll try to use it for an academic project, which maybe (luckly) will help in my job too.
Code: Select all
<p:dataGrid value="#{userController.sideMenu}" var="menuL1" columns="1">
<p:column>
--- iterate whateveer you want
</p:column>
</p:dataGrid>
PrimeFaces-2.2.RC2-SNAPSHOT, Mojarra 2.0.2 (FCS b10), Facelets, GlassFish 3.0.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 60 guests