Ideas for primefaces.

UI Components for JSF
Post Reply
javyxx
Posts: 2
Joined: 01 Jul 2010, 19:10

01 Jul 2010, 19:17

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

smallya
Posts: 264
Joined: 19 Mar 2010, 19:22
Contact:

02 Jul 2010, 01:27

Is <ui:repeat> not the same as <tr:each>?

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

timotius_pamungkas
Posts: 117
Joined: 19 May 2010, 03:50

02 Jul 2010, 08:31

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

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

02 Jul 2010, 10:06

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

timotius_pamungkas
Posts: 117
Joined: 19 May 2010, 03:50

03 Jul 2010, 08:39

what's the difference?
Tomcat 7.0.25
Mojarra 2.1.6
Primefaces 3.1, 3.2
Firefox 10 and IE 7/IE 8

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

03 Jul 2010, 11:15

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

javyxx
Posts: 2
Joined: 01 Jul 2010, 19:10

04 Jul 2010, 16:15

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

xRinox
Posts: 12
Joined: 14 Jul 2010, 18:30

07 Nov 2010, 18:42

I know what you mean, this works with ajax like charm:

Code: Select all

<p:dataGrid value="#{userController.sideMenu}" var="menuL1" columns="1">
                <p:column>
                        --- iterate whateveer you want
                </p:column>
            </p:dataGrid>
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. :)
PrimeFaces-2.2.RC2-SNAPSHOT, Mojarra 2.0.2 (FCS b10), Facelets, GlassFish 3.0.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 60 guests