The logic say that because increase then numbre of classes included in
the process,
 when use ognl properties,
but in facts, the performance of my applications raised since I change
.page properties for ognl properties.

Diogenes

2006/3/30, ZedroS Schwart <[EMAIL PROTECTED]>:
> Oups, I forgot : I'm using T4.
>
> On 3/30/06, Diogenes Moreira <[EMAIL PROTECTED]> wrote:
> >
> > Zendro:
> >
> > In this case, the problem is the Query,
> > In Fact, Hibernate use the ANTLR for interpretate the HQL and SQL
> > sentences.
> >
> > The tapestry code sound good.
> >
> > Do you are using T3 or T4,
> > if you use T4, the best for iterate into a collection is using ognl
> > properties in the template like this.
> > ...
> > <tr jwcid="@For" source="ognl:utilisateurList"
> > value="ognl:currentUtilsateur" element="tr">
> > ......
> > </tr>
> >
> > Cheers.
> >
> > 2006/3/29, ZedroS Schwart <[EMAIL PROTECTED]>:
> > > Hello Diogenes
> > >
> > > Thanks a lot for your answer. Please find below the class in question :
> > > package administration;
> > >
> > > import java.util.List;
> > >
> > > import org.apache.tapestry.annotations.InjectObject;
> > > import org.apache.tapestry.event.PageBeginRenderListener;
> > > import org.apache.tapestry.event.PageEvent;
> > > import org.apache.tapestry.html.BasePage;
> > > import org.hibernate.Query;
> > > import org.hibernate.Session;
> > > import org.hibernate.Transaction;
> > >
> > > import data.SessionCreator;
> > > import data.Utilisateur;
> > >
> > > public abstract class UtilisateursManager extends BasePage implements
> > >         PageBeginRenderListener {
> > >     private List utilisateurList;
> > >
> > >     public abstract Utilisateur getCurrentUtilisateur();
> > >
> > >     @InjectObject("service:data.SessionCreator")
> > >     public abstract SessionCreator getSessionCreator();
> > >
> > >     public void pageBeginRender(PageEvent event) {
> > >         Session session = getSessionCreator().createSession();
> > >         try {
> > >             Transaction tx = session.beginTransaction();
> > >             try {
> > >                 Query query = session
> > >                         .createQuery("select u from Utilisateur as u");
> > >                 utilisateurList = query.list();
> > >                 tx.commit();
> > >             } catch (RuntimeException e) {
> > >                 tx.rollback();
> > >                 throw e;
> > >             }
> > >         } finally {
> > >             session.close();
> > >         }
> > >     }
> > >
> > >     public List getUtilisateurList() {
> > >         return utilisateurList;
> > >     }
> > > }
> > >
> > > The application page is :
> > > <?xml version="1.0"?>
> > > <!DOCTYPE page-specification PUBLIC
> > >   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> > >   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
> > >
> > > <page-specification class="administration.UtilisateursManager">
> > >
> > >     <component id="utilisateurList" type="For">
> > >         <binding name="source" value="utilisateurList"/>
> > >         <binding name="value" value="currentUtilisateur"/>
> > >         <binding name="element" value="literal:tr"/>
> > >     </component>
> > >
> > >     <component id="utilisateurId" type="Insert">
> > >         <binding name="value" value="currentUtilisateur.id"/>
> > >     </component>
> > >
> > >     <component id="login" type="Insert">
> > >         <binding name="value" value="currentCustomer.login"/>
> > >     </component>
> > >
> > >     <component id="mail" type="Insert">
> > >         <binding name="value" value="currentCustomer.mail"/>
> > >     </component>
> > >
> > > </page-specification>
> > >
> > > Does it help you ?
> > >
> > > In fact I'm trying to use Hibernate...
> > >
> > > Cheers
> > > ZedroS
> > >
> > > On 3/29/06, Diogenes Moreira <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Dear:
> > > > That isn“t Tapestry Exception
> > > >
> > > > ANTLR is a framework for create languages (http://www.antlr.org)
> > > >
> > > > I dont kwon if Tapestry use this framework, but pf you include in
> > > > another mail the UtilisateursManager.java, may be, I can provide you a
> > > > guide line
> > > >
> > > > Greetings,
> > > >
> > > > PD: Sorry for my english.
> > > >
> > > > 2006/3/28, ZedroS Schwart <[EMAIL PROTECTED]>:
> > > > > Hi all
> > > > >
> > > > > I'm using a PageLink to access a page and I bump into a
> > > > > antlr/ANTLRException.
> > > > >
> > > > > More precisely, it's written :
> > > > > org.apache.hivemind.ApplicationRuntimeException
> >   antlr/ANTLRException
> > > > > component: [EMAIL PROTECTED]
> > > > > location: context:/WEB-INF/UtilisateursManager.page,
> > > > > line 6, column 64
> > > > > 1<?xml version="1.0"?> 2<!DOCTYPE page-specification PUBLIC 3
> > "-//Apache
> > > > > Software Foundation//Tapestry Specification 4.0//EN" 4 "
> > > > > http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";> 5
> > > > > 6<page-specification class="administration.UtilisateursManager"> 7
> > > > > 8 <component id="utilisateurList" type="For"> 9 <binding
> > name="source"
> > > > > value="utilisateurList"/> 10 <binding name="value"
> > > > > value="currentUtilisateur"/> 11 <binding name="element"
> > > > value="literal:tr"/>
> > > > > I didn't find much help on google. Furthermore, I don't have this
> > issue
> > > > when
> > > > > going into other pages...
> > > > >
> > > > > Furthermore, I've a package called administration and within a class
> > > > called
> > > > > UtilisateursManager.java. The code of this page is coming out from
> > Kent
> > > > book
> > > > > 'Enjoying Web Development with Tapestry'. It can't possibly but part
> > of
> > > > the
> > > > > issue ;)
> > > > >
> > > > > Thanks in advance... I've to sleep so I stop here for tonight !
> > > > >
> > > > > See you tomorrow.
> > > > >
> > > > > ZedroS
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Diogenes A Moreira
> > > > Project Manager
> > > >
> > > > PLEASE NOTE
> > > > This message, along with any attachments, may be confidential or
> > > > legally privileged.  It is intended only for the named person(s), who
> > > > is/are the only authorized recipients. If this message has reached you
> > > > in error, kindly destroy it without review and notify the sender
> > > > immediately. Thank you for your help.
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> >
> >
> > --
> > Diogenes A Moreira
> > Project Manager
> >
> > PLEASE NOTE
> > This message, along with any attachments, may be confidential or
> > legally privileged.  It is intended only for the named person(s), who
> > is/are the only authorized recipients. If this message has reached you
> > in error, kindly destroy it without review and notify the sender
> > immediately. Thank you for your help.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


--
Diogenes A Moreira
Project Manager

PLEASE NOTE
This message, along with any attachments, may be confidential or
legally privileged.  It is intended only for the named person(s), who
is/are the only authorized recipients. If this message has reached you
in error, kindly destroy it without review and notify the sender
immediately. Thank you for your help.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to