On Fri, 20 May 2011 11:15:42 -0300, toejoe <to...@hotmail.com> wrote:

Hello

Hi!

Try this:

void onPrepare() {
        if (guma == null) {
                guma = new Guma(...);
        }
}


I can not get over thisprobably basic problem.

Render queue error in SetupRender[Gume:guma.editor]: Exception instantiating
instance of com.projekat.alpha1.entities.Guma (for component
'Gume:guma.editor'): Error invoking constructor
com.projekat.alpha1.entities.Guma(int, String, String, Date) (at
Guma.java:70) (for service 'BeanModelSource'): No service implements the
interface int.

I have a page Gume.tml with bean edit form only(summarized):
<t:beaneditform t:id="guma" exclude="gumaid, datum,"></t:beaneditform>

Following class Gume.java (summarized)

public class Gume {
    @Inject
    private Session session;

    @Property
    private Guma guma;

    @InjectPage
    private Index stranaIndex;

    public Gume(){};

    @CommitAfter
    public Object onSuccess(){
        ...
        }

And this is entity class Guma.java (I pasted constructor only)

public Guma(int gumaid, String proizvodjac, String model, Date datum) {
        this.gumaid = gumaid;
        this.proizvodjac = proizvodjac;
        this.model = model;
        this.datum = datum;
    }


I just can not figure out how to solve this. I had several months gap
without programming and it is creating a problem already. I am using
netbeans 6.9.1 and have created Tapestry project via Maven template. I later
added hibernate stuff. Previously, I had created my projects manually, by
starting web application and modifying xml files and copying libraries.

t:grid component is working properly.

Thanks in advance

--
View this message in context: http://tapestry.1045711.n5.nabble.com/BeanEditForm-small-problem-tp4412666p4412666.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
Coordenador e professor da Especialização em Engenharia de Software com Ênfase em Java da Faculdade Pitágoras
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to