Javascript/ajax

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Javascript/ajax

by Pablo Gra\~na :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there:

How hard/easy/possible would be to implement the following:

1- make 1 drop down depend on the content of another dropdown, ie: when
I select the country, I want to populate the state drop down.

2- Hide/show a text area based on whether a dropdown has certain value,
or a checkbox is checked.

Is there a sample available?

Thanks a lot.

--
Pablo Gra\~na
Chief Architect
Globant
Arg Office: +54 (11) 4109 1743
UK  Office: +44 (20) 7043 8269 int 8043
US  Office: +1 (212) 400 7686 int 8043


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Javascript/ajax

by PabloS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Maybe this is of help:

http://tapestry.apache.org/tapestry4.1/ajax/basics.html

I'm new to tapestry, but I could take a look and see what I can come up with...

Regards,
PS

On 26/10/2007, Pablo Gra~na <pablo.grana@...> wrote:
Hi there:

How hard/easy/possible would be to implement the following:

1- make 1 drop down depend on the content of another dropdown, ie: when
I select the country, I want to populate the state drop down.

2- Hide/show a text area based on whether a dropdown has certain value,
or a checkbox is checked.

Is there a sample available?

Thanks a lot.

--
Pablo Gra\~na
Chief Architect
Globant
Arg Office: +54 (11) 4109 1743
UK  Office: +44 (20) 7043 8269 int 8043
US  Office: +1 (212) 400 7686 int 8043


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email



Re: Javascript/ajax

by Alejandro Scandroli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Pablo,

I tried to make an example for you.
I tried to port and old Tacos example to Tapestry 4.1.3 and I found a
bug in Tapestry  ajax wiring mechanism that prevent Trails of using
the ObjectForm & EditProperties components with AJAX. I've filed an
issue https://issues.apache.org/jira/browse/TAPESTRY-1868 but it may
take a while to get it fixed.

So, if you really need this you are going to need to go with plain Tapestry.
There are, though, some Trails component that still can help you.
I don't have too much time right now, but If you can wait until the
end of the week I think I will be able to elaborate an example for
you.

Saludos.
Alejandro.

On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...> wrote:

> Maybe this is of help:
>
> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
>
> I'm new to tapestry, but I could take a look and see what I can come up
> with...
>
> Regards,
> PS
>
>
> On 26/10/2007, Pablo Gra~na <pablo.grana@...> wrote:
> > Hi there:
> >
> > How hard/easy/possible would be to implement the following:
> >
> > 1- make 1 drop down depend on the content of another dropdown, ie: when
> > I select the country, I want to populate the state drop down.
> >
> > 2- Hide/show a text area based on whether a dropdown has certain value,
> > or a checkbox is checked.
> >
> > Is there a sample available?
> >
> > Thanks a lot.
> >
> > --
> > Pablo Gra\~na
> > Chief Architect
> > Globant
> > Arg Office: +54 (11) 4109 1743
> > UK  Office: +44 (20) 7043 8269 int 8043
> > US  Office: +1 (212) 400 7686 int 8043
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
>
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Javascript/ajax

by Pablo Gra\~na :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks a lot!!!

The problem is that I know nothing about tapestry. If you think that it
will add value to trails - I think it does :) - then please tell me so
and I wait till you have an example. Otherwise, if you have some other
higher priority tasks for trails, don't be distracted by me: just point
me to some docs and I'll see what I can do.

Saludos
Pablo

Alejandro Scandroli wrote:

> Hi Pablo,
>
> I tried to make an example for you.
> I tried to port and old Tacos example to Tapestry 4.1.3 and I found a
> bug in Tapestry  ajax wiring mechanism that prevent Trails of using
> the ObjectForm & EditProperties components with AJAX. I've filed an
> issue https://issues.apache.org/jira/browse/TAPESTRY-1868 but it may
> take a while to get it fixed.
>
> So, if you really need this you are going to need to go with plain Tapestry.
> There are, though, some Trails component that still can help you.
> I don't have too much time right now, but If you can wait until the
> end of the week I think I will be able to elaborate an example for
> you.
>
> Saludos.
> Alejandro.
>
> On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...> wrote:
>> Maybe this is of help:
>>
>> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
>>
>> I'm new to tapestry, but I could take a look and see what I can come up
>> with...
>>
>> Regards,
>> PS
>>
>>
>> On 26/10/2007, Pablo Gra~na <pablo.grana@...> wrote:
>>> Hi there:
>>>
>>> How hard/easy/possible would be to implement the following:
>>>
>>> 1- make 1 drop down depend on the content of another dropdown, ie: when
>>> I select the country, I want to populate the state drop down.
>>>
>>> 2- Hide/show a text area based on whether a dropdown has certain value,
>>> or a checkbox is checked.
>>>
>>> Is there a sample available?
>>>
>>> Thanks a lot.
>>>
>>> --
>>> Pablo Gra\~na
>>> Chief Architect
>>> Globant
>>> Arg Office: +54 (11) 4109 1743
>>> UK  Office: +44 (20) 7043 8269 int 8043
>>> US  Office: +1 (212) 400 7686 int 8043
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>>> To unsubscribe from this list please visit:
>>>
>>>     http://xircles.codehaus.org/manage_email
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Javascript/ajax

by Alejandro Scandroli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Pablo,

I'm sorry to keep you waiting.
Tomorrow I will checkin some examples in the "ajaxlist" example.

Alejandro.

On 10/29/07, Pablo Gra~na <pablo.grana@...> wrote:

> Thanks a lot!!!
>
> The problem is that I know nothing about tapestry. If you think that it
> will add value to trails - I think it does :) - then please tell me so
> and I wait till you have an example. Otherwise, if you have some other
> higher priority tasks for trails, don't be distracted by me: just point
> me to some docs and I'll see what I can do.
>
> Saludos
> Pablo
>
> Alejandro Scandroli wrote:
> > Hi Pablo,
> >
> > I tried to make an example for you.
> > I tried to port and old Tacos example to Tapestry 4.1.3 and I found a
> > bug in Tapestry  ajax wiring mechanism that prevent Trails of using
> > the ObjectForm & EditProperties components with AJAX. I've filed an
> > issue https://issues.apache.org/jira/browse/TAPESTRY-1868 but it may
> > take a while to get it fixed.
> >
> > So, if you really need this you are going to need to go with plain Tapestry.
> > There are, though, some Trails component that still can help you.
> > I don't have too much time right now, but If you can wait until the
> > end of the week I think I will be able to elaborate an example for
> > you.
> >
> > Saludos.
> > Alejandro.
> >
> > On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...> wrote:
> >> Maybe this is of help:
> >>
> >> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
> >>
> >> I'm new to tapestry, but I could take a look and see what I can come up
> >> with...
> >>
> >> Regards,
> >> PS
> >>
> >>
> >> On 26/10/2007, Pablo Gra~na <pablo.grana@...> wrote:
> >>> Hi there:
> >>>
> >>> How hard/easy/possible would be to implement the following:
> >>>
> >>> 1- make 1 drop down depend on the content of another dropdown, ie: when
> >>> I select the country, I want to populate the state drop down.
> >>>
> >>> 2- Hide/show a text area based on whether a dropdown has certain value,
> >>> or a checkbox is checked.
> >>>
> >>> Is there a sample available?
> >>>
> >>> Thanks a lot.
> >>>
> >>> --
> >>> Pablo Gra\~na
> >>> Chief Architect
> >>> Globant
> >>> Arg Office: +54 (11) 4109 1743
> >>> UK  Office: +44 (20) 7043 8269 int 8043
> >>> US  Office: +1 (212) 400 7686 int 8043
> >>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >>> To unsubscribe from this list please visit:
> >>>
> >>>     http://xircles.codehaus.org/manage_email
> >>>
> >>>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Javascript/ajax

by Pablo Gra\~na :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Eh, no need to apologize. I'll check the example tomorrow. Thanks a lot.

regards

Alejandro Scandroli wrote:

> Hi Pablo,
>
> I'm sorry to keep you waiting.
> Tomorrow I will checkin some examples in the "ajaxlist" example.
>
> Alejandro.
>
> On 10/29/07, Pablo Gra~na <pablo.grana@...> wrote:
>> Thanks a lot!!!
>>
>> The problem is that I know nothing about tapestry. If you think that it
>> will add value to trails - I think it does :) - then please tell me so
>> and I wait till you have an example. Otherwise, if you have some other
>> higher priority tasks for trails, don't be distracted by me: just point
>> me to some docs and I'll see what I can do.
>>
>> Saludos
>> Pablo
>>
>> Alejandro Scandroli wrote:
>>> Hi Pablo,
>>>
>>> I tried to make an example for you.
>>> I tried to port and old Tacos example to Tapestry 4.1.3 and I found a
>>> bug in Tapestry  ajax wiring mechanism that prevent Trails of using
>>> the ObjectForm & EditProperties components with AJAX. I've filed an
>>> issue https://issues.apache.org/jira/browse/TAPESTRY-1868 but it may
>>> take a while to get it fixed.
>>>
>>> So, if you really need this you are going to need to go with plain Tapestry.
>>> There are, though, some Trails component that still can help you.
>>> I don't have too much time right now, but If you can wait until the
>>> end of the week I think I will be able to elaborate an example for
>>> you.
>>>
>>> Saludos.
>>> Alejandro.
>>>
>>> On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...> wrote:
>>>> Maybe this is of help:
>>>>
>>>> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
>>>>
>>>> I'm new to tapestry, but I could take a look and see what I can come up
>>>> with...
>>>>
>>>> Regards,
>>>> PS
>>>>
>>>>
>>>> On 26/10/2007, Pablo Gra~na <pablo.grana@...> wrote:
>>>>> Hi there:
>>>>>
>>>>> How hard/easy/possible would be to implement the following:
>>>>>
>>>>> 1- make 1 drop down depend on the content of another dropdown, ie: when
>>>>> I select the country, I want to populate the state drop down.
>>>>>
>>>>> 2- Hide/show a text area based on whether a dropdown has certain value,
>>>>> or a checkbox is checked.
>>>>>
>>>>> Is there a sample available?
>>>>>
>>>>> Thanks a lot.
>>>>>
>>>>> --
>>>>> Pablo Gra\~na
>>>>> Chief Architect
>>>>> Globant
>>>>> Arg Office: +54 (11) 4109 1743
>>>>> UK  Office: +44 (20) 7043 8269 int 8043
>>>>> US  Office: +1 (212) 400 7686 int 8043
>>>>>
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe from this list please visit:
>>>>>
>>>>>     http://xircles.codehaus.org/manage_email
>>>>>
>>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list please visit:
>>>
>>>     http://xircles.codehaus.org/manage_email
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Javascript/ajax

by Alejandro Scandroli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Pablo

The example is in the svn repo, check it out.
Check also what things I had to add and which ones I had to change:
http://svn.trails.codehaus.org/changelog/trails/?cs=861

You will find good examples of:
* how to decompose the ObjectForm component in its parts
* how to use the EditProperties component
* how to use the PropertyEditor component (this is commented out)
* how to retrieve the element list for an AssociationSelect component
(includes an hibernate criteria example and a non-hibernate example)
* the ObjectActions component.

NOTE: Trails has an unresolved namespace issue, that's why I had to
add a new library in the application specification file
(trails.application)

This example covers your requirement number 1.
> 1- make 1 drop down depend on the content of another dropdown, ie: when
> I select the country, I want to populate the state drop down.

For the second one you can apply the same updateComponent mechanism to
update an @If component. Check the EventListener documentation for
more information:
http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html

Saludos.
Alejandro.

On 11/2/07, Pablo Gra~na <pablo.grana@...> wrote:

> Eh, no need to apologize. I'll check the example tomorrow. Thanks a lot.
>
> regards
>
> Alejandro Scandroli wrote:
> > Hi Pablo,
> >
> > I'm sorry to keep you waiting.
> > Tomorrow I will checkin some examples in the "ajaxlist" example.
> >
> > Alejandro.
> >
> > On 10/29/07, Pablo Gra~na <pablo.grana@...> wrote:
> >> Thanks a lot!!!
> >>
> >> The problem is that I know nothing about tapestry. If you think that it
> >> will add value to trails - I think it does :) - then please tell me so
> >> and I wait till you have an example. Otherwise, if you have some other
> >> higher priority tasks for trails, don't be distracted by me: just point
> >> me to some docs and I'll see what I can do.
> >>
> >> Saludos
> >> Pablo
> >>
> >> Alejandro Scandroli wrote:
> >>> Hi Pablo,
> >>>
> >>> I tried to make an example for you.
> >>> I tried to port and old Tacos example to Tapestry 4.1.3 and I found a
> >>> bug in Tapestry  ajax wiring mechanism that prevent Trails of using
> >>> the ObjectForm & EditProperties components with AJAX. I've filed an
> >>> issue https://issues.apache.org/jira/browse/TAPESTRY-1868 but it may
> >>> take a while to get it fixed.
> >>>
> >>> So, if you really need this you are going to need to go with plain Tapestry.
> >>> There are, though, some Trails component that still can help you.
> >>> I don't have too much time right now, but If you can wait until the
> >>> end of the week I think I will be able to elaborate an example for
> >>> you.
> >>>
> >>> Saludos.
> >>> Alejandro.
> >>>
> >>> On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...> wrote:
> >>>> Maybe this is of help:
> >>>>
> >>>> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
> >>>>
> >>>> I'm new to tapestry, but I could take a look and see what I can come up
> >>>> with...
> >>>>
> >>>> Regards,
> >>>> PS
> >>>>
> >>>>
> >>>> On 26/10/2007, Pablo Gra~na <pablo.grana@...> wrote:
> >>>>> Hi there:
> >>>>>
> >>>>> How hard/easy/possible would be to implement the following:
> >>>>>
> >>>>> 1- make 1 drop down depend on the content of another dropdown, ie: when
> >>>>> I select the country, I want to populate the state drop down.
> >>>>>
> >>>>> 2- Hide/show a text area based on whether a dropdown has certain value,
> >>>>> or a checkbox is checked.
> >>>>>
> >>>>> Is there a sample available?
> >>>>>
> >>>>> Thanks a lot.
> >>>>>
> >>>>> --
> >>>>> Pablo Gra\~na
> >>>>> Chief Architect
> >>>>> Globant
> >>>>> Arg Office: +54 (11) 4109 1743
> >>>>> UK  Office: +44 (20) 7043 8269 int 8043
> >>>>> US  Office: +1 (212) 400 7686 int 8043
> >>>>>
> >>>>>
> >>>>>
> >>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe from this list please visit:
> >>>>>
> >>>>>     http://xircles.codehaus.org/manage_email
> >>>>>
> >>>>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe from this list please visit:
> >>>
> >>>     http://xircles.codehaus.org/manage_email
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe from this list please visit:
> >>
> >>     http://xircles.codehaus.org/manage_email
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Javascript/ajax

by Pablo Gra\~na :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Alejandro, thanks a lot for this.

The thing is that I could not take a look at it. Is it possible that the
new tacos is built using java 6? Unfortunately, I am stuck with java 5
for now. Any ideas.

Thanks.

Alejandro Scandroli wrote:

> Hi Pablo
>
> The example is in the svn repo, check it out.
> Check also what things I had to add and which ones I had to change:
> http://svn.trails.codehaus.org/changelog/trails/?cs=861
>
> You will find good examples of:
> * how to decompose the ObjectForm component in its parts
> * how to use the EditProperties component
> * how to use the PropertyEditor component (this is commented out)
> * how to retrieve the element list for an AssociationSelect component
> (includes an hibernate criteria example and a non-hibernate example)
> * the ObjectActions component.
>
> NOTE: Trails has an unresolved namespace issue, that's why I had to
> add a new library in the application specification file
> (trails.application)
>
> This example covers your requirement number 1.
>> 1- make 1 drop down depend on the content of another dropdown, ie: when
>> I select the country, I want to populate the state drop down.
>
> For the second one you can apply the same updateComponent mechanism to
> update an @If component. Check the EventListener documentation for
> more information:
> http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
>
> Saludos.
> Alejandro.
>
> On 11/2/07, Pablo Gra~na <pablo.grana@...> wrote:
>> Eh, no need to apologize. I'll check the example tomorrow. Thanks a lot.
>>
>> regards
>>
>> Alejandro Scandroli wrote:
>>> Hi Pablo,
>>>
>>> I'm sorry to keep you waiting.
>>> Tomorrow I will checkin some examples in the "ajaxlist" example.
>>>
>>> Alejandro.
>>>
>>> On 10/29/07, Pablo Gra~na <pablo.grana@...> wrote:
>>>> Thanks a lot!!!
>>>>
>>>> The problem is that I know nothing about tapestry. If you think that it
>>>> will add value to trails - I think it does :) - then please tell me so
>>>> and I wait till you have an example. Otherwise, if you have some other
>>>> higher priority tasks for trails, don't be distracted by me: just point
>>>> me to some docs and I'll see what I can do.
>>>>
>>>> Saludos
>>>> Pablo
>>>>
>>>> Alejandro Scandroli wrote:
>>>>> Hi Pablo,
>>>>>
>>>>> I tried to make an example for you.
>>>>> I tried to port and old Tacos example to Tapestry 4.1.3 and I found a
>>>>> bug in Tapestry  ajax wiring mechanism that prevent Trails of using
>>>>> the ObjectForm & EditProperties components with AJAX. I've filed an
>>>>> issue https://issues.apache.org/jira/browse/TAPESTRY-1868 but it may
>>>>> take a while to get it fixed.
>>>>>
>>>>> So, if you really need this you are going to need to go with plain Tapestry.
>>>>> There are, though, some Trails component that still can help you.
>>>>> I don't have too much time right now, but If you can wait until the
>>>>> end of the week I think I will be able to elaborate an example for
>>>>> you.
>>>>>
>>>>> Saludos.
>>>>> Alejandro.
>>>>>
>>>>> On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...> wrote:
>>>>>> Maybe this is of help:
>>>>>>
>>>>>> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
>>>>>>
>>>>>> I'm new to tapestry, but I could take a look and see what I can come up
>>>>>> with...
>>>>>>
>>>>>> Regards,
>>>>>> PS
>>>>>>
>>>>>>
>>>>>> On 26/10/2007, Pablo Gra~na <pablo.grana@...> wrote:
>>>>>>> Hi there:
>>>>>>>
>>>>>>> How hard/easy/possible would be to implement the following:
>>>>>>>
>>>>>>> 1- make 1 drop down depend on the content of another dropdown, ie: when
>>>>>>> I select the country, I want to populate the state drop down.
>>>>>>>
>>>>>>> 2- Hide/show a text area based on whether a dropdown has certain value,
>>>>>>> or a checkbox is checked.
>>>>>>>
>>>>>>> Is there a sample available?
>>>>>>>
>>>>>>> Thanks a lot.
>>>>>>>
>>>>>>> --
>>>>>>> Pablo Gra\~na
>>>>>>> Chief Architect
>>>>>>> Globant
>>>>>>> Arg Office: +54 (11) 4109 1743
>>>>>>> UK  Office: +44 (20) 7043 8269 int 8043
>>>>>>> US  Office: +1 (212) 400 7686 int 8043
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe from this list please visit:
>>>>>>>
>>>>>>>     http://xircles.codehaus.org/manage_email
>>>>>>>
>>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe from this list please visit:
>>>>>
>>>>>     http://xircles.codehaus.org/manage_email
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe from this list please visit:
>>>>
>>>>     http://xircles.codehaus.org/manage_email
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list please visit:
>>>
>>>     http://xircles.codehaus.org/manage_email
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>

--
Pablo Gra\~na
Chief Architect
Globant
Arg Office: +54 (11) 4109 1743
UK  Office: +44 (20) 7043 8269 int 8043
US  Office: +1 (212) 400 7686 int 8043


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Javascript/ajax

by Alejandro Scandroli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Pablo,

WOW, yes it looks like tacos was compiled with java 6.
But luckily for you the code I added doesn't depend on tacos.
You can safely remove the tacos, I've attached patch to do it automatically.
Without tacos you can't use the AjaxForm component, but that's not an
issue for this example.

Try applying the patch an let me know.
Saludos.
Alejandro.

On 11/5/07, Pablo Gra~na <pablo.grana@...> wrote:

> Hi Alejandro, thanks a lot for this.
>
> The thing is that I could not take a look at it. Is it possible that the
> new tacos is built using java 6? Unfortunately, I am stuck with java 5
> for now. Any ideas.
>
> Thanks.
>
> Alejandro Scandroli wrote:
> > Hi Pablo
> >
> > The example is in the svn repo, check it out.
> > Check also what things I had to add and which ones I had to change:
> > http://svn.trails.codehaus.org/changelog/trails/?cs=861
> >
> > You will find good examples of:
> > * how to decompose the ObjectForm component in its parts
> > * how to use the EditProperties component
> > * how to use the PropertyEditor component (this is commented out)
> > * how to retrieve the element list for an AssociationSelect component
> > (includes an hibernate criteria example and a non-hibernate example)
> > * the ObjectActions component.
> >
> > NOTE: Trails has an unresolved namespace issue, that's why I had to
> > add a new library in the application specification file
> > (trails.application)
> >
> > This example covers your requirement number 1.
> >> 1- make 1 drop down depend on the content of another dropdown, ie: when
> >> I select the country, I want to populate the state drop down.
> >
> > For the second one you can apply the same updateComponent mechanism to
> > update an @If component. Check the EventListener documentation for
> > more information:
> > http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
> >
> > Saludos.
> > Alejandro.
> >
> > On 11/2/07, Pablo Gra~na <pablo.grana@...> wrote:
> >> Eh, no need to apologize. I'll check the example tomorrow. Thanks a lot.
> >>
> >> regards
> >>
> >> Alejandro Scandroli wrote:
> >>> Hi Pablo,
> >>>
> >>> I'm sorry to keep you waiting.
> >>> Tomorrow I will checkin some examples in the "ajaxlist" example.
> >>>
> >>> Alejandro.
> >>>
> >>> On 10/29/07, Pablo Gra~na <pablo.grana@...> wrote:
> >>>> Thanks a lot!!!
> >>>>
> >>>> The problem is that I know nothing about tapestry. If you think that it
> >>>> will add value to trails - I think it does :) - then please tell me so
> >>>> and I wait till you have an example. Otherwise, if you have some other
> >>>> higher priority tasks for trails, don't be distracted by me: just point
> >>>> me to some docs and I'll see what I can do.
> >>>>
> >>>> Saludos
> >>>> Pablo
> >>>>
> >>>> Alejandro Scandroli wrote:
> >>>>> Hi Pablo,
> >>>>>
> >>>>> I tried to make an example for you.
> >>>>> I tried to port and old Tacos example to Tapestry 4.1.3 and I found a
> >>>>> bug in Tapestry  ajax wiring mechanism that prevent Trails of using
> >>>>> the ObjectForm & EditProperties components with AJAX. I've filed an
> >>>>> issue https://issues.apache.org/jira/browse/TAPESTRY-1868 but it may
> >>>>> take a while to get it fixed.
> >>>>>
> >>>>> So, if you really need this you are going to need to go with plain Tapestry.
> >>>>> There are, though, some Trails component that still can help you.
> >>>>> I don't have too much time right now, but If you can wait until the
> >>>>> end of the week I think I will be able to elaborate an example for
> >>>>> you.
> >>>>>
> >>>>> Saludos.
> >>>>> Alejandro.
> >>>>>
> >>>>> On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...> wrote:
> >>>>>> Maybe this is of help:
> >>>>>>
> >>>>>> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
> >>>>>>
> >>>>>> I'm new to tapestry, but I could take a look and see what I can come up
> >>>>>> with...
> >>>>>>
> >>>>>> Regards,
> >>>>>> PS
> >>>>>>
> >>>>>>
> >>>>>> On 26/10/2007, Pablo Gra~na <pablo.grana@...> wrote:
> >>>>>>> Hi there:
> >>>>>>>
> >>>>>>> How hard/easy/possible would be to implement the following:
> >>>>>>>
> >>>>>>> 1- make 1 drop down depend on the content of another dropdown, ie: when
> >>>>>>> I select the country, I want to populate the state drop down.
> >>>>>>>
> >>>>>>> 2- Hide/show a text area based on whether a dropdown has certain value,
> >>>>>>> or a checkbox is checked.
> >>>>>>>
> >>>>>>> Is there a sample available?
> >>>>>>>
> >>>>>>> Thanks a lot.
> >>>>>>>
> >>>>>>> --
> >>>>>>> Pablo Gra\~na
> >>>>>>> Chief Architect
> >>>>>>> Globant
> >>>>>>> Arg Office: +54 (11) 4109 1743
> >>>>>>> UK  Office: +44 (20) 7043 8269 int 8043
> >>>>>>> US  Office: +1 (212) 400 7686 int 8043
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> ---------------------------------------------------------------------
> >>>>>>> To unsubscribe from this list please visit:
> >>>>>>>
> >>>>>>>     http://xircles.codehaus.org/manage_email
> >>>>>>>
> >>>>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe from this list please visit:
> >>>>>
> >>>>>     http://xircles.codehaus.org/manage_email
> >>>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe from this list please visit:
> >>>>
> >>>>     http://xircles.codehaus.org/manage_email
> >>>>
> >>>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe from this list please visit:
> >>>
> >>>     http://xircles.codehaus.org/manage_email
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe from this list please visit:
> >>
> >>     http://xircles.codehaus.org/manage_email
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
>
> --
> Pablo Gra\~na
> Chief Architect
> Globant
> Arg Office: +54 (11) 4109 1743
> UK  Office: +44 (20) 7043 8269 int 8043
> US  Office: +1 (212) 400 7686 int 8043
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

[remove_tacos.patch]

Index: examples/ajaxlist/pom.xml
===================================================================
--- examples/ajaxlist/pom.xml (revision 847)
+++ examples/ajaxlist/pom.xml Mon Nov 05 16:59:07 GMT 2007
@@ -22,28 +22,6 @@
  </description>
 
  <dependencies>
- <dependency>
- <groupId>net.sf.tacos</groupId>
- <artifactId>tacos-core</artifactId>
- <version>4.1.1-SNAPSHOT</version>
- <!-- Needs <version>4.1.1-SNAPSHOT</version> to work -->
- <!--<version>4.1.0</version>-->
- <exclusions>
- <!-- it depends on tapestry 4.1.2 -->
- <exclusion>
- <groupId>org.apache.tapestry</groupId>
- <artifactId>tapestry-framework</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.tapestry</groupId>
- <artifactId>tapestry-annotations</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.tapestry</groupId>
- <artifactId>tapestry-contrib</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
  </dependencies>
 
  <repositories>
Index: examples/ajaxlist/src/main/webapp/WEB-INF/NoteList.html
===================================================================
--- examples/ajaxlist/src/main/webapp/WEB-INF/NoteList.html (revision 836)
+++ examples/ajaxlist/src/main/webapp/WEB-INF/NoteList.html Mon Nov 05 16:59:34 GMT 2007
@@ -30,20 +30,4 @@
  <br/>
  <br/>
 
- <div jwcid="@Any" id="note_form">
- <form jwcid="@tacos:AjaxForm" updateComponents="ognl:{'notes', 'note_form'}" listener="listener:addNote">
- <ul>
- <div jwcid="@trails:EditProperties" model="ognl:note"
- propertyNames="ognl:new java.lang.String[] {'note'}"/>
- <li class="buttonBar bottom">
- <!--<input jwcid="@tacos:AjaxSubmit"-->
- <input jwcid="@Submit" async="true"
-   value="Add Note"
-   statusElement="status"
-   effects="template:{highlight:{notes:'[255,255,184], 500, 500'}}"
-   updateComponents="ognl:{'notes', 'note_form'}"/>
- </li>
- </ul>
- </form>
- </div>
 </span>


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Re: Javascript/ajax

by Pablo Gra\~na :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It, worked!!! Excellent, Alejandro, I'll try to integrate it in our app.
Does the solution has some dependency on new trails code not present in
trails-1.1.1?

thanks a lot.

Alejandro Scandroli wrote:

> Hi Pablo,
>
> WOW, yes it looks like tacos was compiled with java 6.
> But luckily for you the code I added doesn't depend on tacos.
> You can safely remove the tacos, I've attached patch to do it automatically.
> Without tacos you can't use the AjaxForm component, but that's not an
> issue for this example.
>
> Try applying the patch an let me know.
> Saludos.
> Alejandro.
>
> On 11/5/07, Pablo Gra~na <pablo.grana@...> wrote:
>> Hi Alejandro, thanks a lot for this.
>>
>> The thing is that I could not take a look at it. Is it possible that the
>> new tacos is built using java 6? Unfortunately, I am stuck with java 5
>> for now. Any ideas.
>>
>> Thanks.
>>
>> Alejandro Scandroli wrote:
>>> Hi Pablo
>>>
>>> The example is in the svn repo, check it out.
>>> Check also what things I had to add and which ones I had to change:
>>> http://svn.trails.codehaus.org/changelog/trails/?cs=861
>>>
>>> You will find good examples of:
>>> * how to decompose the ObjectForm component in its parts
>>> * how to use the EditProperties component
>>> * how to use the PropertyEditor component (this is commented out)
>>> * how to retrieve the element list for an AssociationSelect component
>>> (includes an hibernate criteria example and a non-hibernate example)
>>> * the ObjectActions component.
>>>
>>> NOTE: Trails has an unresolved namespace issue, that's why I had to
>>> add a new library in the application specification file
>>> (trails.application)
>>>
>>> This example covers your requirement number 1.
>>>> 1- make 1 drop down depend on the content of another dropdown, ie: when
>>>> I select the country, I want to populate the state drop down.
>>> For the second one you can apply the same updateComponent mechanism to
>>> update an @If component. Check the EventListener documentation for
>>> more information:
>>> http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
>>>
>>> Saludos.
>>> Alejandro.
>>>
>>> On 11/2/07, Pablo Gra~na <pablo.grana@...> wrote:
>>>> Eh, no need to apologize. I'll check the example tomorrow. Thanks a lot.
>>>>
>>>> regards
>>>>
>>>> Alejandro Scandroli wrote:
>>>>> Hi Pablo,
>>>>>
>>>>> I'm sorry to keep you waiting.
>>>>> Tomorrow I will checkin some examples in the "ajaxlist" example.
>>>>>
>>>>> Alejandro.
>>>>>
>>>>> On 10/29/07, Pablo Gra~na <pablo.grana@...> wrote:
>>>>>> Thanks a lot!!!
>>>>>>
>>>>>> The problem is that I know nothing about tapestry. If you think that it
>>>>>> will add value to trails - I think it does :) - then please tell me so
>>>>>> and I wait till you have an example. Otherwise, if you have some other
>>>>>> higher priority tasks for trails, don't be distracted by me: just point
>>>>>> me to some docs and I'll see what I can do.
>>>>>>
>>>>>> Saludos
>>>>>> Pablo
>>>>>>
>>>>>> Alejandro Scandroli wrote:
>>>>>>> Hi Pablo,
>>>>>>>
>>>>>>> I tried to make an example for you.
>>>>>>> I tried to port and old Tacos example to Tapestry 4.1.3 and I found a
>>>>>>> bug in Tapestry  ajax wiring mechanism that prevent Trails of using
>>>>>>> the ObjectForm & EditProperties components with AJAX. I've filed an
>>>>>>> issue https://issues.apache.org/jira/browse/TAPESTRY-1868 but it may
>>>>>>> take a while to get it fixed.
>>>>>>>
>>>>>>> So, if you really need this you are going to need to go with plain Tapestry.
>>>>>>> There are, though, some Trails component that still can help you.
>>>>>>> I don't have too much time right now, but If you can wait until the
>>>>>>> end of the week I think I will be able to elaborate an example for
>>>>>>> you.
>>>>>>>
>>>>>>> Saludos.
>>>>>>> Alejandro.
>>>>>>>
>>>>>>> On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...> wrote:
>>>>>>>> Maybe this is of help:
>>>>>>>>
>>>>>>>> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
>>>>>>>>
>>>>>>>> I'm new to tapestry, but I could take a look and see what I can come up
>>>>>>>> with...
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> PS
>>>>>>>>
>>>>>>>>
>>>>>>>> On 26/10/2007, Pablo Gra~na <pablo.grana@...> wrote:
>>>>>>>>> Hi there:
>>>>>>>>>
>>>>>>>>> How hard/easy/possible would be to implement the following:
>>>>>>>>>
>>>>>>>>> 1- make 1 drop down depend on the content of another dropdown, ie: when
>>>>>>>>> I select the country, I want to populate the state drop down.
>>>>>>>>>
>>>>>>>>> 2- Hide/show a text area based on whether a dropdown has certain value,
>>>>>>>>> or a checkbox is checked.
>>>>>>>>>
>>>>>>>>> Is there a sample available?
>>>>>>>>>
>>>>>>>>> Thanks a lot.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Pablo Gra\~na
>>>>>>>>> Chief Architect
>>>>>>>>> Globant
>>>>>>>>> Arg Office: +54 (11) 4109 1743
>>>>>>>>> UK  Office: +44 (20) 7043 8269 int 8043
>>>>>>>>> US  Office: +1 (212) 400 7686 int 8043
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>> To unsubscribe from this list please visit:
>>>>>>>>>
>>>>>>>>>     http://xircles.codehaus.org/manage_email
>>>>>>>>>
>>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe from this list please visit:
>>>>>>>
>>>>>>>     http://xircles.codehaus.org/manage_email
>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe from this list please visit:
>>>>>>
>>>>>>     http://xircles.codehaus.org/manage_email
>>>>>>
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe from this list please visit:
>>>>>
>>>>>     http://xircles.codehaus.org/manage_email
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe from this list please visit:
>>>>
>>>>     http://xircles.codehaus.org/manage_email
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list please visit:
>>>
>>>     http://xircles.codehaus.org/manage_email
>>>
>> --
>> Pablo Gra\~na
>> Chief Architect
>> Globant
>> Arg Office: +54 (11) 4109 1743
>> UK  Office: +44 (20) 7043 8269 int 8043
>> US  Office: +1 (212) 400 7686 int 8043
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>>     http://xircles.codehaus.org/manage_email

--
Pablo Gra\~na
Chief Architect
Globant
Arg Office: +54 (11) 4109 1743
UK  Office: +44 (20) 7043 8269 int 8043
US  Office: +1 (212) 400 7686 int 8043


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Javascript/ajax

by Alejandro Scandroli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It should work ok on 1.1.1

On Nov 5, 2007 7:58 PM, Pablo Gra~na <pablo.grana@...> wrote:

> It, worked!!! Excellent, Alejandro, I'll try to integrate it in our app.
> Does the solution has some dependency on new trails code not present in
> trails-1.1.1?
>
> thanks a lot.
>
>
> Alejandro Scandroli wrote:
> > Hi Pablo,
> >
> > WOW, yes it looks like tacos was compiled with java 6.
> > But luckily for you the code I added doesn't depend on tacos.
> > You can safely remove the tacos, I've attached patch to do it automatically.
> > Without tacos you can't use the AjaxForm component, but that's not an
> > issue for this example.
> >
> > Try applying the patch an let me know.
> > Saludos.
> > Alejandro.
> >
> > On 11/5/07, Pablo Gra~na <pablo.grana@...> wrote:
> >> Hi Alejandro, thanks a lot for this.
> >>
> >> The thing is that I could not take a look at it. Is it possible that the
> >> new tacos is built using java 6? Unfortunately, I am stuck with java 5
> >> for now. Any ideas.
> >>
> >> Thanks.
> >>
> >> Alejandro Scandroli wrote:
> >>> Hi Pablo
> >>>
> >>> The example is in the svn repo, check it out.
> >>> Check also what things I had to add and which ones I had to change:
> >>> http://svn.trails.codehaus.org/changelog/trails/?cs=861
> >>>
> >>> You will find good examples of:
> >>> * how to decompose the ObjectForm component in its parts
> >>> * how to use the EditProperties component
> >>> * how to use the PropertyEditor component (this is commented out)
> >>> * how to retrieve the element list for an AssociationSelect component
> >>> (includes an hibernate criteria example and a non-hibernate example)
> >>> * the ObjectActions component.
> >>>
> >>> NOTE: Trails has an unresolved namespace issue, that's why I had to
> >>> add a new library in the application specification file
> >>> (trails.application)
> >>>
> >>> This example covers your requirement number 1.
> >>>> 1- make 1 drop down depend on the content of another dropdown, ie: when
> >>>> I select the country, I want to populate the state drop down.
> >>> For the second one you can apply the same updateComponent mechanism to
> >>> update an @If component. Check the EventListener documentation for
> >>> more information:
> >>> http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
> >>>
> >>> Saludos.
> >>> Alejandro.
> >>>
> >>> On 11/2/07, Pablo Gra~na <pablo.grana@...> wrote:
> >>>> Eh, no need to apologize. I'll check the example tomorrow. Thanks a lot.
> >>>>
> >>>> regards
> >>>>
> >>>> Alejandro Scandroli wrote:
> >>>>> Hi Pablo,
> >>>>>
> >>>>> I'm sorry to keep you waiting.
> >>>>> Tomorrow I will checkin some examples in the "ajaxlist" example.
> >>>>>
> >>>>> Alejandro.
> >>>>>
> >>>>> On 10/29/07, Pablo Gra~na <pablo.grana@...> wrote:
> >>>>>> Thanks a lot!!!
> >>>>>>
> >>>>>> The problem is that I know nothing about tapestry. If you think that it
> >>>>>> will add value to trails - I think it does :) - then please tell me so
> >>>>>> and I wait till you have an example. Otherwise, if you have some other
> >>>>>> higher priority tasks for trails, don't be distracted by me: just point
> >>>>>> me to some docs and I'll see what I can do.
> >>>>>>
> >>>>>> Saludos
> >>>>>> Pablo
> >>>>>>
> >>>>>> Alejandro Scandroli wrote:
> >>>>>>> Hi Pablo,
> >>>>>>>
> >>>>>>> I tried to make an example for you.
> >>>>>>> I tried to port and old Tacos example to Tapestry 4.1.3 and I found a
> >>>>>>> bug in Tapestry  ajax wiring mechanism that prevent Trails of using
> >>>>>>> the ObjectForm & EditProperties components with AJAX. I've filed an
> >>>>>>> issue https://issues.apache.org/jira/browse/TAPESTRY-1868 but it may
> >>>>>>> take a while to get it fixed.
> >>>>>>>
> >>>>>>> So, if you really need this you are going to need to go with plain Tapestry.
> >>>>>>> There are, though, some Trails component that still can help you.
> >>>>>>> I don't have too much time right now, but If you can wait until the
> >>>>>>> end of the week I think I will be able to elaborate an example for
> >>>>>>> you.
> >>>>>>>
> >>>>>>> Saludos.
> >>>>>>> Alejandro.
> >>>>>>>
> >>>>>>> On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...> wrote:
> >>>>>>>> Maybe this is of help:
> >>>>>>>>
> >>>>>>>> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
> >>>>>>>>
> >>>>>>>> I'm new to tapestry, but I could take a look and see what I can come up
> >>>>>>>> with...
> >>>>>>>>
> >>>>>>>> Regards,
> >>>>>>>> PS
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On 26/10/2007, Pablo Gra~na <pablo.grana@...> wrote:
> >>>>>>>>> Hi there:
> >>>>>>>>>
> >>>>>>>>> How hard/easy/possible would be to implement the following:
> >>>>>>>>>
> >>>>>>>>> 1- make 1 drop down depend on the content of another dropdown, ie: when
> >>>>>>>>> I select the country, I want to populate the state drop down.
> >>>>>>>>>
> >>>>>>>>> 2- Hide/show a text area based on whether a dropdown has certain value,
> >>>>>>>>> or a checkbox is checked.
> >>>>>>>>>
> >>>>>>>>> Is there a sample available?
> >>>>>>>>>
> >>>>>>>>> Thanks a lot.
> >>>>>>>>>
> >>>>>>>>> --
> >>>>>>>>> Pablo Gra\~na
> >>>>>>>>> Chief Architect
> >>>>>>>>> Globant
> >>>>>>>>> Arg Office: +54 (11) 4109 1743
> >>>>>>>>> UK  Office: +44 (20) 7043 8269 int 8043
> >>>>>>>>> US  Office: +1 (212) 400 7686 int 8043
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>> ---------------------------------------------------------------------
> >>>>>>>>> To unsubscribe from this list please visit:
> >>>>>>>>>
> >>>>>>>>>     http://xircles.codehaus.org/manage_email
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>> ---------------------------------------------------------------------
> >>>>>>> To unsubscribe from this list please visit:
> >>>>>>>
> >>>>>>>     http://xircles.codehaus.org/manage_email
> >>>>>>>
> >>>>>> ---------------------------------------------------------------------
> >>>>>> To unsubscribe from this list please visit:
> >>>>>>
> >>>>>>     http://xircles.codehaus.org/manage_email
> >>>>>>
> >>>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe from this list please visit:
> >>>>>
> >>>>>     http://xircles.codehaus.org/manage_email
> >>>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe from this list please visit:
> >>>>
> >>>>     http://xircles.codehaus.org/manage_email
> >>>>
> >>>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe from this list please visit:
> >>>
> >>>     http://xircles.codehaus.org/manage_email
> >>>
> >> --
> >> Pablo Gra\~na
> >> Chief Architect
> >> Globant
> >> Arg Office: +54 (11) 4109 1743
> >> UK  Office: +44 (20) 7043 8269 int 8043
> >> US  Office: +1 (212) 400 7686 int 8043
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe from this list please visit:
> >>
> >>     http://xircles.codehaus.org/manage_email
> >>
> >>
> >>
> >> ------------------------------------------------------------------------
>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe from this list please visit:
> >>
> >>     http://xircles.codehaus.org/manage_email
>
> --
> Pablo Gra\~na
> Chief Architect
> Globant
> Arg Office: +54 (11) 4109 1743
> UK  Office: +44 (20) 7043 8269 int 8043
> US  Office: +1 (212) 400 7686 int 8043
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Unable to convert type 'org.apache.tapestry.binding.TemplateBindingFactory'

by Toby78 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I always get this error:

Unable to convert type 'org.apache.tapestry.binding.TemplateBindingFactory' to a Java class, either as is, or in package tacos.services.

Although I have commented out the Snapshot in the pom.xm....

any ideas?

(it is the ajaxlist example)

-------- Original-Nachricht --------
> Datum: Mon, 05 Nov 2007 15:58:44 -0300
> Von: "Pablo Gra\\\\~na" <pablo.grana@...>
> An: users@...
> Betreff: Re: [trails-users] Javascript/ajax

> It, worked!!! Excellent, Alejandro, I'll try to integrate it in our app.
> Does the solution has some dependency on new trails code not present in
> trails-1.1.1?
>
> thanks a lot.
>
> Alejandro Scandroli wrote:
> > Hi Pablo,
> >
> > WOW, yes it looks like tacos was compiled with java 6.
> > But luckily for you the code I added doesn't depend on tacos.
> > You can safely remove the tacos, I've attached patch to do it
> automatically.
> > Without tacos you can't use the AjaxForm component, but that's not an
> > issue for this example.
> >
> > Try applying the patch an let me know.
> > Saludos.
> > Alejandro.
> >
> > On 11/5/07, Pablo Gra~na <pablo.grana@...> wrote:
> >> Hi Alejandro, thanks a lot for this.
> >>
> >> The thing is that I could not take a look at it. Is it possible that
> the
> >> new tacos is built using java 6? Unfortunately, I am stuck with java 5
> >> for now. Any ideas.
> >>
> >> Thanks.
> >>
> >> Alejandro Scandroli wrote:
> >>> Hi Pablo
> >>>
> >>> The example is in the svn repo, check it out.
> >>> Check also what things I had to add and which ones I had to change:
> >>> http://svn.trails.codehaus.org/changelog/trails/?cs=861
> >>>
> >>> You will find good examples of:
> >>> * how to decompose the ObjectForm component in its parts
> >>> * how to use the EditProperties component
> >>> * how to use the PropertyEditor component (this is commented out)
> >>> * how to retrieve the element list for an AssociationSelect component
> >>> (includes an hibernate criteria example and a non-hibernate example)
> >>> * the ObjectActions component.
> >>>
> >>> NOTE: Trails has an unresolved namespace issue, that's why I had to
> >>> add a new library in the application specification file
> >>> (trails.application)
> >>>
> >>> This example covers your requirement number 1.
> >>>> 1- make 1 drop down depend on the content of another dropdown, ie:
> when
> >>>> I select the country, I want to populate the state drop down.
> >>> For the second one you can apply the same updateComponent mechanism to
> >>> update an @If component. Check the EventListener documentation for
> >>> more information:
> >>> http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
> >>>
> >>> Saludos.
> >>> Alejandro.
> >>>
> >>> On 11/2/07, Pablo Gra~na <pablo.grana@...> wrote:
> >>>> Eh, no need to apologize. I'll check the example tomorrow. Thanks a
> lot.
> >>>>
> >>>> regards
> >>>>
> >>>> Alejandro Scandroli wrote:
> >>>>> Hi Pablo,
> >>>>>
> >>>>> I'm sorry to keep you waiting.
> >>>>> Tomorrow I will checkin some examples in the "ajaxlist" example.
> >>>>>
> >>>>> Alejandro.
> >>>>>
> >>>>> On 10/29/07, Pablo Gra~na <pablo.grana@...> wrote:
> >>>>>> Thanks a lot!!!
> >>>>>>
> >>>>>> The problem is that I know nothing about tapestry. If you think
> that it
> >>>>>> will add value to trails - I think it does :) - then please tell me
> so
> >>>>>> and I wait till you have an example. Otherwise, if you have some
> other
> >>>>>> higher priority tasks for trails, don't be distracted by me: just
> point
> >>>>>> me to some docs and I'll see what I can do.
> >>>>>>
> >>>>>> Saludos
> >>>>>> Pablo
> >>>>>>
> >>>>>> Alejandro Scandroli wrote:
> >>>>>>> Hi Pablo,
> >>>>>>>
> >>>>>>> I tried to make an example for you.
> >>>>>>> I tried to port and old Tacos example to Tapestry 4.1.3 and I
> found a
> >>>>>>> bug in Tapestry  ajax wiring mechanism that prevent Trails of
> using
> >>>>>>> the ObjectForm & EditProperties components with AJAX. I've filed
> an
> >>>>>>> issue https://issues.apache.org/jira/browse/TAPESTRY-1868 but it
> may
> >>>>>>> take a while to get it fixed.
> >>>>>>>
> >>>>>>> So, if you really need this you are going to need to go with plain
> Tapestry.
> >>>>>>> There are, though, some Trails component that still can help you.
> >>>>>>> I don't have too much time right now, but If you can wait until
> the
> >>>>>>> end of the week I think I will be able to elaborate an example for
> >>>>>>> you.
> >>>>>>>
> >>>>>>> Saludos.
> >>>>>>> Alejandro.
> >>>>>>>
> >>>>>>> On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...> wrote:
> >>>>>>>> Maybe this is of help:
> >>>>>>>>
> >>>>>>>> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
> >>>>>>>>
> >>>>>>>> I'm new to tapestry, but I could take a look and see what I can
> come up
> >>>>>>>> with...
> >>>>>>>>
> >>>>>>>> Regards,
> >>>>>>>> PS
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On 26/10/2007, Pablo Gra~na <pablo.grana@...> wrote:
> >>>>>>>>> Hi there:
> >>>>>>>>>
> >>>>>>>>> How hard/easy/possible would be to implement the following:
> >>>>>>>>>
> >>>>>>>>> 1- make 1 drop down depend on the content of another dropdown,
> ie: when
> >>>>>>>>> I select the country, I want to populate the state drop down.
> >>>>>>>>>
> >>>>>>>>> 2- Hide/show a text area based on whether a dropdown has certain
> value,
> >>>>>>>>> or a checkbox is checked.
> >>>>>>>>>
> >>>>>>>>> Is there a sample available?
> >>>>>>>>>
> >>>>>>>>> Thanks a lot.
> >>>>>>>>>
> >>>>>>>>> --
> >>>>>>>>> Pablo Gra\~na
> >>>>>>>>> Chief Architect
> >>>>>>>>> Globant
> >>>>>>>>> Arg Office: +54 (11) 4109 1743
> >>>>>>>>> UK  Office: +44 (20) 7043 8269 int 8043
> >>>>>>>>> US  Office: +1 (212) 400 7686 int 8043
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> ---------------------------------------------------------------------
> >>>>>>>>> To unsubscribe from this list please visit:
> >>>>>>>>>
> >>>>>>>>>     http://xircles.codehaus.org/manage_email
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>
> ---------------------------------------------------------------------
> >>>>>>> To unsubscribe from this list please visit:
> >>>>>>>
> >>>>>>>     http://xircles.codehaus.org/manage_email
> >>>>>>>
> >>>>>>
> ---------------------------------------------------------------------
> >>>>>> To unsubscribe from this list please visit:
> >>>>>>
> >>>>>>     http://xircles.codehaus.org/manage_email
> >>>>>>
> >>>>>>
> >>>>>
> ---------------------------------------------------------------------
> >>>>> To unsubscribe from this list please visit:
> >>>>>
> >>>>>     http://xircles.codehaus.org/manage_email
> >>>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe from this list please visit:
> >>>>
> >>>>     http://xircles.codehaus.org/manage_email
> >>>>
> >>>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe from this list please visit:
> >>>
> >>>     http://xircles.codehaus.org/manage_email
> >>>
> >> --
> >> Pablo Gra\~na
> >> Chief Architect
> >> Globant
> >> Arg Office: +54 (11) 4109 1743
> >> UK  Office: +44 (20) 7043 8269 int 8043
> >> US  Office: +1 (212) 400 7686 int 8043
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe from this list please visit:
> >>
> >>     http://xircles.codehaus.org/manage_email
> >>
> >>
> >>
> >>
> ------------------------------------------------------------------------
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe from this list please visit:
> >>
> >>     http://xircles.codehaus.org/manage_email
>
> --
> Pablo Gra\~na
> Chief Architect
> Globant
> Arg Office: +54 (11) 4109 1743
> UK  Office: +44 (20) 7043 8269 int 8043
> US  Office: +1 (212) 400 7686 int 8043
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Unable to convert type 'org.apache.tapestry.binding.TemplateBindingFactory'

by Toby78 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have changed the pom.xml to include the Snapshot version.
Then I have downloaded Java 6 as Java 5 was not supported.

Then I have built everything from scratch.

When I want to launch Jetty, I get the error:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file
Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
        at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:599)
        at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)
        at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)
        at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)
        at org.hibernate.cfg.Configuration.configure(Configuration.java:1443)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:634)
        at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:368)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:918)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:833)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:880)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:828)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:368)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:918)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:833)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:87)
        at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:96)
        at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:83)
        at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:83)
        at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66)
        at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:296)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:312)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1180)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:737)
        at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:521)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:340)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:498)
        at org.mortbay.util.Container.start(Container.java:72)
        at org.mortbay.http.HttpServer.doStart(HttpServer.java:695)
        at org.mortbay.util.Container.start(Container.java:72)
        at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
        at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
        at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)
getRootCause():

Why on earth is it Java 6 anyway ? :-(
Could not change it back to Java 5 to keep it consistent ?

-------- Original-Nachricht --------
> Datum: Wed, 07 Nov 2007 11:18:27 +0100
> Von: superoverdrive@...
> An: users@...
> Betreff: [trails-users] Unable to convert type \'org.apache.tapestry.binding.TemplateBindingFactory\'

> I always get this error:
>
> Unable to convert type
> 'org.apache.tapestry.binding.TemplateBindingFactory' to a Java class, either as is, or in package tacos.services.
>
> Although I have commented out the Snapshot in the pom.xm....
>
> any ideas?
>
> (it is the ajaxlist example)
>
> -------- Original-Nachricht --------
> > Datum: Mon, 05 Nov 2007 15:58:44 -0300
> > Von: "Pablo Gra\\\\~na" <pablo.grana@...>
> > An: users@...
> > Betreff: Re: [trails-users] Javascript/ajax
>
> > It, worked!!! Excellent, Alejandro, I'll try to integrate it in our app.
> > Does the solution has some dependency on new trails code not present in
> > trails-1.1.1?
> >
> > thanks a lot.
> >
> > Alejandro Scandroli wrote:
> > > Hi Pablo,
> > >
> > > WOW, yes it looks like tacos was compiled with java 6.
> > > But luckily for you the code I added doesn't depend on tacos.
> > > You can safely remove the tacos, I've attached patch to do it
> > automatically.
> > > Without tacos you can't use the AjaxForm component, but that's not an
> > > issue for this example.
> > >
> > > Try applying the patch an let me know.
> > > Saludos.
> > > Alejandro.
> > >
> > > On 11/5/07, Pablo Gra~na <pablo.grana@...> wrote:
> > >> Hi Alejandro, thanks a lot for this.
> > >>
> > >> The thing is that I could not take a look at it. Is it possible that
> > the
> > >> new tacos is built using java 6? Unfortunately, I am stuck with java
> 5
> > >> for now. Any ideas.
> > >>
> > >> Thanks.
> > >>
> > >> Alejandro Scandroli wrote:
> > >>> Hi Pablo
> > >>>
> > >>> The example is in the svn repo, check it out.
> > >>> Check also what things I had to add and which ones I had to change:
> > >>> http://svn.trails.codehaus.org/changelog/trails/?cs=861
> > >>>
> > >>> You will find good examples of:
> > >>> * how to decompose the ObjectForm component in its parts
> > >>> * how to use the EditProperties component
> > >>> * how to use the PropertyEditor component (this is commented out)
> > >>> * how to retrieve the element list for an AssociationSelect
> component
> > >>> (includes an hibernate criteria example and a non-hibernate example)
> > >>> * the ObjectActions component.
> > >>>
> > >>> NOTE: Trails has an unresolved namespace issue, that's why I had to
> > >>> add a new library in the application specification file
> > >>> (trails.application)
> > >>>
> > >>> This example covers your requirement number 1.
> > >>>> 1- make 1 drop down depend on the content of another dropdown, ie:
> > when
> > >>>> I select the country, I want to populate the state drop down.
> > >>> For the second one you can apply the same updateComponent mechanism
> to
> > >>> update an @If component. Check the EventListener documentation for
> > >>> more information:
> > >>> http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
> > >>>
> > >>> Saludos.
> > >>> Alejandro.
> > >>>
> > >>> On 11/2/07, Pablo Gra~na <pablo.grana@...> wrote:
> > >>>> Eh, no need to apologize. I'll check the example tomorrow. Thanks a
> > lot.
> > >>>>
> > >>>> regards
> > >>>>
> > >>>> Alejandro Scandroli wrote:
> > >>>>> Hi Pablo,
> > >>>>>
> > >>>>> I'm sorry to keep you waiting.
> > >>>>> Tomorrow I will checkin some examples in the "ajaxlist" example.
> > >>>>>
> > >>>>> Alejandro.
> > >>>>>
> > >>>>> On 10/29/07, Pablo Gra~na <pablo.grana@...> wrote:
> > >>>>>> Thanks a lot!!!
> > >>>>>>
> > >>>>>> The problem is that I know nothing about tapestry. If you think
> > that it
> > >>>>>> will add value to trails - I think it does :) - then please tell
> me
> > so
> > >>>>>> and I wait till you have an example. Otherwise, if you have some
> > other
> > >>>>>> higher priority tasks for trails, don't be distracted by me: just
> > point
> > >>>>>> me to some docs and I'll see what I can do.
> > >>>>>>
> > >>>>>> Saludos
> > >>>>>> Pablo
> > >>>>>>
> > >>>>>> Alejandro Scandroli wrote:
> > >>>>>>> Hi Pablo,
> > >>>>>>>
> > >>>>>>> I tried to make an example for you.
> > >>>>>>> I tried to port and old Tacos example to Tapestry 4.1.3 and I
> > found a
> > >>>>>>> bug in Tapestry  ajax wiring mechanism that prevent Trails of
> > using
> > >>>>>>> the ObjectForm & EditProperties components with AJAX. I've filed
> > an
> > >>>>>>> issue https://issues.apache.org/jira/browse/TAPESTRY-1868 but it
> > may
> > >>>>>>> take a while to get it fixed.
> > >>>>>>>
> > >>>>>>> So, if you really need this you are going to need to go with
> plain
> > Tapestry.
> > >>>>>>> There are, though, some Trails component that still can help
> you.
> > >>>>>>> I don't have too much time right now, but If you can wait until
> > the
> > >>>>>>> end of the week I think I will be able to elaborate an example
> for
> > >>>>>>> you.
> > >>>>>>>
> > >>>>>>> Saludos.
> > >>>>>>> Alejandro.
> > >>>>>>>
> > >>>>>>> On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...> wrote:
> > >>>>>>>> Maybe this is of help:
> > >>>>>>>>
> > >>>>>>>> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
> > >>>>>>>>
> > >>>>>>>> I'm new to tapestry, but I could take a look and see what I can
> > come up
> > >>>>>>>> with...
> > >>>>>>>>
> > >>>>>>>> Regards,
> > >>>>>>>> PS
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>> On 26/10/2007, Pablo Gra~na <pablo.grana@...> wrote:
> > >>>>>>>>> Hi there:
> > >>>>>>>>>
> > >>>>>>>>> How hard/easy/possible would be to implement the following:
> > >>>>>>>>>
> > >>>>>>>>> 1- make 1 drop down depend on the content of another dropdown,
> > ie: when
> > >>>>>>>>> I select the country, I want to populate the state drop down.
> > >>>>>>>>>
> > >>>>>>>>> 2- Hide/show a text area based on whether a dropdown has
> certain
> > value,
> > >>>>>>>>> or a checkbox is checked.
> > >>>>>>>>>
> > >>>>>>>>> Is there a sample available?
> > >>>>>>>>>
> > >>>>>>>>> Thanks a lot.
> > >>>>>>>>>
> > >>>>>>>>> --
> > >>>>>>>>> Pablo Gra\~na
> > >>>>>>>>> Chief Architect
> > >>>>>>>>> Globant
> > >>>>>>>>> Arg Office: +54 (11) 4109 1743
> > >>>>>>>>> UK  Office: +44 (20) 7043 8269 int 8043
> > >>>>>>>>> US  Office: +1 (212) 400 7686 int 8043
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>
> > ---------------------------------------------------------------------
> > >>>>>>>>> To unsubscribe from this list please visit:
> > >>>>>>>>>
> > >>>>>>>>>     http://xircles.codehaus.org/manage_email
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>
> > ---------------------------------------------------------------------
> > >>>>>>> To unsubscribe from this list please visit:
> > >>>>>>>
> > >>>>>>>     http://xircles.codehaus.org/manage_email
> > >>>>>>>
> > >>>>>>
> > ---------------------------------------------------------------------
> > >>>>>> To unsubscribe from this list please visit:
> > >>>>>>
> > >>>>>>     http://xircles.codehaus.org/manage_email
> > >>>>>>
> > >>>>>>
> > >>>>>
> > ---------------------------------------------------------------------
> > >>>>> To unsubscribe from this list please visit:
> > >>>>>
> > >>>>>     http://xircles.codehaus.org/manage_email
> > >>>>>
> > >>>>
> > >>>>
> ---------------------------------------------------------------------
> > >>>> To unsubscribe from this list please visit:
> > >>>>
> > >>>>     http://xircles.codehaus.org/manage_email
> > >>>>
> > >>>>
> > >>>
> ---------------------------------------------------------------------
> > >>> To unsubscribe from this list please visit:
> > >>>
> > >>>     http://xircles.codehaus.org/manage_email
> > >>>
> > >> --
> > >> Pablo Gra\~na
> > >> Chief Architect
> > >> Globant
> > >> Arg Office: +54 (11) 4109 1743
> > >> UK  Office: +44 (20) 7043 8269 int 8043
> > >> US  Office: +1 (212) 400 7686 int 8043
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe from this list please visit:
> > >>
> > >>     http://xircles.codehaus.org/manage_email
> > >>
> > >>
> > >>
> > >>
> > ------------------------------------------------------------------------
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe from this list please visit:
> > >>
> > >>     http://xircles.codehaus.org/manage_email
> >
> > --
> > Pablo Gra\~na
> > Chief Architect
> > Globant
> > Arg Office: +54 (11) 4109 1743
> > UK  Office: +44 (20) 7043 8269 int 8043
> > US  Office: +1 (212) 400 7686 int 8043
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Unable to convert type 'org.apache.tapestry.binding.TemplateBindingFactory'

by Toby78 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have just googled and it seems like Jetty (launcher) has problems with Jetty 1.6.....

"Jetty Launcher, unable to build classpath, error getting VM type"

There is only a dirty work-around:

go to com.iw.plugins.jettylauncher/src/com/iw/plugins/jetty/launcher directory and edit JettyClasspathProvider.java file. Around the row number 162 you can find a line int vmtype = getVMType(config);. Just change it to int vmtype = VM_14_15_16; so you bypass this check

So it would be better to NOT use other Java versions for the examples in the meantime? At least my suggestion....

> Datum: Wed, 07 Nov 2007 12:31:12 +0100
> Von: "Tobias Marx" <superoverdrive@...>
> An: users@...
> Betreff: Re: [trails-users] Unable to convert type \'org.apache.tapestry.binding.TemplateBindingFactory\'

> I have changed the pom.xml to include the Snapshot version.
> Then I have downloaded Java 6 as Java 5 was not supported.
>
> Then I have built everything from scratch.
>
> When I want to launch Jetty, I get the error:
>
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'sessionFactory' defined in class path resource
> [applicationContext.xml]: Invocation of init method failed; nested exception is
> java.lang.UnsupportedClassVersionError: Bad version number in .class file
> Caused by: java.lang.UnsupportedClassVersionError: Bad version number in
> .class file
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:164)
> at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
> at
> org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:599)
> at
> org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)
> at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)
> at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)
> at org.hibernate.cfg.Configuration.configure(Configuration.java:1443)
> at
> org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:634)
> at
> org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:368)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:918)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:833)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:880)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:828)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:368)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:918)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:833)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> at
> org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:87)
> at
> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:96)
> at
> org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:83)
> at
> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:83)
> at
> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66)
> at
> org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:296)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:312)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1180)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> at
> org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:737)
> at
> org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:521)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:340)
> at
> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
> at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
> at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
> at
> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:498)
> at org.mortbay.util.Container.start(Container.java:72)
> at org.mortbay.http.HttpServer.doStart(HttpServer.java:695)
> at org.mortbay.util.Container.start(Container.java:72)
> at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
> at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
> at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)
> getRootCause():
>
> Why on earth is it Java 6 anyway ? :-(
> Could not change it back to Java 5 to keep it consistent ?
>
> -------- Original-Nachricht --------
> > Datum: Wed, 07 Nov 2007 11:18:27 +0100
> > Von: superoverdrive@...
> > An: users@...
> > Betreff: [trails-users] Unable to convert type
> \'org.apache.tapestry.binding.TemplateBindingFactory\'
>
> > I always get this error:
> >
> > Unable to convert type
> > 'org.apache.tapestry.binding.TemplateBindingFactory' to a Java class,
> either as is, or in package tacos.services.
> >
> > Although I have commented out the Snapshot in the pom.xm....
> >
> > any ideas?
> >
> > (it is the ajaxlist example)
> >
> > -------- Original-Nachricht --------
> > > Datum: Mon, 05 Nov 2007 15:58:44 -0300
> > > Von: "Pablo Gra\\\\~na" <pablo.grana@...>
> > > An: users@...
> > > Betreff: Re: [trails-users] Javascript/ajax
> >
> > > It, worked!!! Excellent, Alejandro, I'll try to integrate it in our
> app.
> > > Does the solution has some dependency on new trails code not present
> in
> > > trails-1.1.1?
> > >
> > > thanks a lot.
> > >
> > > Alejandro Scandroli wrote:
> > > > Hi Pablo,
> > > >
> > > > WOW, yes it looks like tacos was compiled with java 6.
> > > > But luckily for you the code I added doesn't depend on tacos.
> > > > You can safely remove the tacos, I've attached patch to do it
> > > automatically.
> > > > Without tacos you can't use the AjaxForm component, but that's not
> an
> > > > issue for this example.
> > > >
> > > > Try applying the patch an let me know.
> > > > Saludos.
> > > > Alejandro.
> > > >
> > > > On 11/5/07, Pablo Gra~na <pablo.grana@...> wrote:
> > > >> Hi Alejandro, thanks a lot for this.
> > > >>
> > > >> The thing is that I could not take a look at it. Is it possible
> that
> > > the
> > > >> new tacos is built using java 6? Unfortunately, I am stuck with
> java
> > 5
> > > >> for now. Any ideas.
> > > >>
> > > >> Thanks.
> > > >>
> > > >> Alejandro Scandroli wrote:
> > > >>> Hi Pablo
> > > >>>
> > > >>> The example is in the svn repo, check it out.
> > > >>> Check also what things I had to add and which ones I had to
> change:
> > > >>> http://svn.trails.codehaus.org/changelog/trails/?cs=861
> > > >>>
> > > >>> You will find good examples of:
> > > >>> * how to decompose the ObjectForm component in its parts
> > > >>> * how to use the EditProperties component
> > > >>> * how to use the PropertyEditor component (this is commented out)
> > > >>> * how to retrieve the element list for an AssociationSelect
> > component
> > > >>> (includes an hibernate criteria example and a non-hibernate
> example)
> > > >>> * the ObjectActions component.
> > > >>>
> > > >>> NOTE: Trails has an unresolved namespace issue, that's why I had
> to
> > > >>> add a new library in the application specification file
> > > >>> (trails.application)
> > > >>>
> > > >>> This example covers your requirement number 1.
> > > >>>> 1- make 1 drop down depend on the content of another dropdown,
> ie:
> > > when
> > > >>>> I select the country, I want to populate the state drop down.
> > > >>> For the second one you can apply the same updateComponent
> mechanism
> > to
> > > >>> update an @If component. Check the EventListener documentation for
> > > >>> more information:
> > > >>> http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
> > > >>>
> > > >>> Saludos.
> > > >>> Alejandro.
> > > >>>
> > > >>> On 11/2/07, Pablo Gra~na <pablo.grana@...> wrote:
> > > >>>> Eh, no need to apologize. I'll check the example tomorrow. Thanks
> a
> > > lot.
> > > >>>>
> > > >>>> regards
> > > >>>>
> > > >>>> Alejandro Scandroli wrote:
> > > >>>>> Hi Pablo,
> > > >>>>>
> > > >>>>> I'm sorry to keep you waiting.
> > > >>>>> Tomorrow I will checkin some examples in the "ajaxlist" example.
> > > >>>>>
> > > >>>>> Alejandro.
> > > >>>>>
> > > >>>>> On 10/29/07, Pablo Gra~na <pablo.grana@...> wrote:
> > > >>>>>> Thanks a lot!!!
> > > >>>>>>
> > > >>>>>> The problem is that I know nothing about tapestry. If you think
> > > that it
> > > >>>>>> will add value to trails - I think it does :) - then please
> tell
> > me
> > > so
> > > >>>>>> and I wait till you have an example. Otherwise, if you have
> some
> > > other
> > > >>>>>> higher priority tasks for trails, don't be distracted by me:
> just
> > > point
> > > >>>>>> me to some docs and I'll see what I can do.
> > > >>>>>>
> > > >>>>>> Saludos
> > > >>>>>> Pablo
> > > >>>>>>
> > > >>>>>> Alejandro Scandroli wrote:
> > > >>>>>>> Hi Pablo,
> > > >>>>>>>
> > > >>>>>>> I tried to make an example for you.
> > > >>>>>>> I tried to port and old Tacos example to Tapestry 4.1.3 and I
> > > found a
> > > >>>>>>> bug in Tapestry  ajax wiring mechanism that prevent Trails of
> > > using
> > > >>>>>>> the ObjectForm & EditProperties components with AJAX. I've
> filed
> > > an
> > > >>>>>>> issue https://issues.apache.org/jira/browse/TAPESTRY-1868 but
> it
> > > may
> > > >>>>>>> take a while to get it fixed.
> > > >>>>>>>
> > > >>>>>>> So, if you really need this you are going to need to go with
> > plain
> > > Tapestry.
> > > >>>>>>> There are, though, some Trails component that still can help
> > you.
> > > >>>>>>> I don't have too much time right now, but If you can wait
> until
> > > the
> > > >>>>>>> end of the week I think I will be able to elaborate an example
> > for
> > > >>>>>>> you.
> > > >>>>>>>
> > > >>>>>>> Saludos.
> > > >>>>>>> Alejandro.
> > > >>>>>>>
> > > >>>>>>> On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...>
> wrote:
> > > >>>>>>>> Maybe this is of help:
> > > >>>>>>>>
> > > >>>>>>>> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
> > > >>>>>>>>
> > > >>>>>>>> I'm new to tapestry, but I could take a look and see what I
> can
> > > come up
> > > >>>>>>>> with...
> > > >>>>>>>>
> > > >>>>>>>> Regards,
> > > >>>>>>>> PS
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>> On 26/10/2007, Pablo Gra~na <pablo.grana@...> wrote:
> > > >>>>>>>>> Hi there:
> > > >>>>>>>>>
> > > >>>>>>>>> How hard/easy/possible would be to implement the following:
> > > >>>>>>>>>
> > > >>>>>>>>> 1- make 1 drop down depend on the content of another
> dropdown,
> > > ie: when
> > > >>>>>>>>> I select the country, I want to populate the state drop
> down.
> > > >>>>>>>>>
> > > >>>>>>>>> 2- Hide/show a text area based on whether a dropdown has
> > certain
> > > value,
> > > >>>>>>>>> or a checkbox is checked.
> > > >>>>>>>>>
> > > >>>>>>>>> Is there a sample available?
> > > >>>>>>>>>
> > > >>>>>>>>> Thanks a lot.
> > > >>>>>>>>>
> > > >>>>>>>>> --
> > > >>>>>>>>> Pablo Gra\~na
> > > >>>>>>>>> Chief Architect
> > > >>>>>>>>> Globant
> > > >>>>>>>>> Arg Office: +54 (11) 4109 1743
> > > >>>>>>>>> UK  Office: +44 (20) 7043 8269 int 8043
> > > >>>>>>>>> US  Office: +1 (212) 400 7686 int 8043
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>
> > > ---------------------------------------------------------------------
> > > >>>>>>>>> To unsubscribe from this list please visit:
> > > >>>>>>>>>
> > > >>>>>>>>>     http://xircles.codehaus.org/manage_email
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>
> > > ---------------------------------------------------------------------
> > > >>>>>>> To unsubscribe from this list please visit:
> > > >>>>>>>
> > > >>>>>>>     http://xircles.codehaus.org/manage_email
> > > >>>>>>>
> > > >>>>>>
> > > ---------------------------------------------------------------------
> > > >>>>>> To unsubscribe from this list please visit:
> > > >>>>>>
> > > >>>>>>     http://xircles.codehaus.org/manage_email
> > > >>>>>>
> > > >>>>>>
> > > >>>>>
> > > ---------------------------------------------------------------------
> > > >>>>> To unsubscribe from this list please visit:
> > > >>>>>
> > > >>>>>     http://xircles.codehaus.org/manage_email
> > > >>>>>
> > > >>>>
> > > >>>>
> > ---------------------------------------------------------------------
> > > >>>> To unsubscribe from this list please visit:
> > > >>>>
> > > >>>>     http://xircles.codehaus.org/manage_email
> > > >>>>
> > > >>>>
> > > >>>
> > ---------------------------------------------------------------------
> > > >>> To unsubscribe from this list please visit:
> > > >>>
> > > >>>     http://xircles.codehaus.org/manage_email
> > > >>>
> > > >> --
> > > >> Pablo Gra\~na
> > > >> Chief Architect
> > > >> Globant
> > > >> Arg Office: +54 (11) 4109 1743
> > > >> UK  Office: +44 (20) 7043 8269 int 8043
> > > >> US  Office: +1 (212) 400 7686 int 8043
> > > >>
> > > >>
> > > >>
> ---------------------------------------------------------------------
> > > >> To unsubscribe from this list please visit:
> > > >>
> > > >>     http://xircles.codehaus.org/manage_email
> > > >>
> > > >>
> > > >>
> > > >>
> > >
> ------------------------------------------------------------------------
> > > >>
> > > >>
> ---------------------------------------------------------------------
> > > >> To unsubscribe from this list please visit:
> > > >>
> > > >>     http://xircles.codehaus.org/manage_email
> > >
> > > --
> > > Pablo Gra\~na
> > > Chief Architect
> > > Globant
> > > Arg Office: +54 (11) 4109 1743
> > > UK  Office: +44 (20) 7043 8269 int 8043
> > > US  Office: +1 (212) 400 7686 int 8043
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe from this list please visit:
> > >
> > >     http://xircles.codehaus.org/manage_email
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Unable to convert type 'org.apache.tapestry.binding.TemplateBindingFactory'

by Alejandro Scandroli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Tobias,

very weird,
I can't help since I don't use the jetty launcher.
Is the maven-jetty-plugin working for you?

Alejandro.

On Nov 7, 2007 1:07 PM, Tobias Marx <superoverdrive@...> wrote:

> I have just googled and it seems like Jetty (launcher) has problems with Jetty 1.6.....
>
> "Jetty Launcher, unable to build classpath, error getting VM type"
>
> There is only a dirty work-around:
>
> go to com.iw.plugins.jettylauncher/src/com/iw/plugins/jetty/launcher directory and edit JettyClasspathProvider.java file. Around the row number 162 you can find a line int vmtype = getVMType(config);. Just change it to int vmtype = VM_14_15_16; so you bypass this check
>
> So it would be better to NOT use other Java versions for the examples in the meantime? At least my suggestion....
>
> > Datum: Wed, 07 Nov 2007 12:31:12 +0100
> > Von: "Tobias Marx" <superoverdrive@...>
> > An: users@...
> > Betreff: Re: [trails-users] Unable to convert type \'org.apache.tapestry.binding.TemplateBindingFactory\'
>
>
> > I have changed the pom.xml to include the Snapshot version.
> > Then I have downloaded Java 6 as Java 5 was not supported.
> >
> > Then I have built everything from scratch.
> >
> > When I want to launch Jetty, I get the error:
> >
> > org.springframework.beans.factory.BeanCreationException: Error creating
> > bean with name 'sessionFactory' defined in class path resource
> > [applicationContext.xml]: Invocation of init method failed; nested exception is
> > java.lang.UnsupportedClassVersionError: Bad version number in .class file
> > Caused by: java.lang.UnsupportedClassVersionError: Bad version number in
> > .class file
> >       at java.lang.ClassLoader.defineClass1(Native Method)
> >       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> >       at
> > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> >       at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> >       at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> >       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> >       at java.security.AccessController.doPrivileged(Native Method)
> >       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> >       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> >       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> >       at java.lang.Class.forName0(Native Method)
> >       at java.lang.Class.forName(Class.java:164)
> >       at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
> >       at
> > org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:599)
> >       at
> > org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)
> >       at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)
> >       at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)
> >       at org.hibernate.cfg.Configuration.configure(Configuration.java:1443)
> >       at
> > org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:634)
> >       at
> > org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)
> >       at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
> >       at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
> >       at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
> >       at
> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> >       at
> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> >       at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> >       at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> >       at
> > org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:368)
> >       at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:918)
> >       at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:833)
> >       at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> >       at
> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> >       at
> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> >       at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> >       at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> >       at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:880)
> >       at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:828)
> >       at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> >       at
> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> >       at
> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> >       at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> >       at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> >       at
> > org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:368)
> >       at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:918)
> >       at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:833)
> >       at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> >       at
> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> >       at
> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> >       at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> >       at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> >       at
> > org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:87)
> >       at
> > org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:96)
> >       at
> > org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:83)
> >       at
> > org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:83)
> >       at
> > org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66)
> >       at
> > org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:296)
> >       at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:312)
> >       at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1180)
> >       at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
> >       at
> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> >       at
> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> >       at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> >       at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> >       at
> > org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:737)
> >       at
> > org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:521)
> >       at
> > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:340)
> >       at
> > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
> >       at
> > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
> >       at
> > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
> >       at
> > org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:498)
> >       at org.mortbay.util.Container.start(Container.java:72)
> >       at org.mortbay.http.HttpServer.doStart(HttpServer.java:695)
> >       at org.mortbay.util.Container.start(Container.java:72)
> >       at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
> >       at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
> >       at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)
> > getRootCause():
> >
> > Why on earth is it Java 6 anyway ? :-(
> > Could not change it back to Java 5 to keep it consistent ?
> >
> > -------- Original-Nachricht --------
> > > Datum: Wed, 07 Nov 2007 11:18:27 +0100
> > > Von: superoverdrive@...
> > > An: users@...
> > > Betreff: [trails-users] Unable to convert type
> > \'org.apache.tapestry.binding.TemplateBindingFactory\'
> >
> > > I always get this error:
> > >
> > > Unable to convert type
> > > 'org.apache.tapestry.binding.TemplateBindingFactory' to a Java class,
> > either as is, or in package tacos.services.
> > >
> > > Although I have commented out the Snapshot in the pom.xm....
> > >
> > > any ideas?
> > >
> > > (it is the ajaxlist example)
> > >
> > > -------- Original-Nachricht --------
> > > > Datum: Mon, 05 Nov 2007 15:58:44 -0300
> > > > Von: "Pablo Gra\\\\~na" <pablo.grana@...>
> > > > An: users@...
> > > > Betreff: Re: [trails-users] Javascript/ajax
> > >
> > > > It, worked!!! Excellent, Alejandro, I'll try to integrate it in our
> > app.
> > > > Does the solution has some dependency on new trails code not present
> > in
> > > > trails-1.1.1?
> > > >
> > > > thanks a lot.
> > > >
> > > > Alejandro Scandroli wrote:
> > > > > Hi Pablo,
> > > > >
> > > > > WOW, yes it looks like tacos was compiled with java 6.
> > > > > But luckily for you the code I added doesn't depend on tacos.
> > > > > You can safely remove the tacos, I've attached patch to do it
> > > > automatically.
> > > > > Without tacos you can't use the AjaxForm component, but that's not
> > an
> > > > > issue for this example.
> > > > >
> > > > > Try applying the patch an let me know.
> > > > > Saludos.
> > > > > Alejandro.
> > > > >
> > > > > On 11/5/07, Pablo Gra~na <pablo.grana@...> wrote:
> > > > >> Hi Alejandro, thanks a lot for this.
> > > > >>
> > > > >> The thing is that I could not take a look at it. Is it possible
> > that
> > > > the
> > > > >> new tacos is built using java 6? Unfortunately, I am stuck with
> > java
> > > 5
> > > > >> for now. Any ideas.
> > > > >>
> > > > >> Thanks.
> > > > >>
> > > > >> Alejandro Scandroli wrote:
> > > > >>> Hi Pablo
> > > > >>>
> > > > >>> The example is in the svn repo, check it out.
> > > > >>> Check also what things I had to add and which ones I had to
> > change:
> > > > >>> http://svn.trails.codehaus.org/changelog/trails/?cs=861
> > > > >>>
> > > > >>> You will find good examples of:
> > > > >>> * how to decompose the ObjectForm component in its parts
> > > > >>> * how to use the EditProperties component
> > > > >>> * how to use the PropertyEditor component (this is commented out)
> > > > >>> * how to retrieve the element list for an AssociationSelect
> > > component
> > > > >>> (includes an hibernate criteria example and a non-hibernate
> > example)
> > > > >>> * the ObjectActions component.
> > > > >>>
> > > > >>> NOTE: Trails has an unresolved namespace issue, that's why I had
> > to
> > > > >>> add a new library in the application specification file
> > > > >>> (trails.application)
> > > > >>>
> > > > >>> This example covers your requirement number 1.
> > > > >>>> 1- make 1 drop down depend on the content of another dropdown,
> > ie:
> > > > when
> > > > >>>> I select the country, I want to populate the state drop down.
> > > > >>> For the second one you can apply the same updateComponent
> > mechanism
> > > to
> > > > >>> update an @If component. Check the EventListener documentation for
> > > > >>> more information:
> > > > >>> http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
> > > > >>>
> > > > >>> Saludos.
> > > > >>> Alejandro.
> > > > >>>
> > > > >>> On 11/2/07, Pablo Gra~na <pablo.grana@...> wrote:
> > > > >>>> Eh, no need to apologize. I'll check the example tomorrow. Thanks
> > a
> > > > lot.
> > > > >>>>
> > > > >>>> regards
> > > > >>>>
> > > > >>>> Alejandro Scandroli wrote:
> > > > >>>>> Hi Pablo,
> > > > >>>>>
> > > > >>>>> I'm sorry to keep you waiting.
> > > > >>>>> Tomorrow I will checkin some examples in the "ajaxlist" example.
> > > > >>>>>
> > > > >>>>> Alejandro.
> > > > >>>>>
> > > > >>>>> On 10/29/07, Pablo Gra~na <pablo.grana@...> wrote:
> > > > >>>>>> Thanks a lot!!!
> > > > >>>>>>
> > > > >>>>>> The problem is that I know nothing about tapestry. If you think
> > > > that it
> > > > >>>>>> will add value to trails - I think it does :) - then please
> > tell
> > > me
> > > > so
> > > > >>>>>> and I wait till you have an example. Otherwise, if you have
> > some
> > > > other
> > > > >>>>>> higher priority tasks for trails, don't be distracted by me:
> > just
> > > > point
> > > > >>>>>> me to some docs and I'll see what I can do.
> > > > >>>>>>
> > > > >>>>>> Saludos
> > > > >>>>>> Pablo
> > > > >>>>>>
> > > > >>>>>> Alejandro Scandroli wrote:
> > > > >>>>>>> Hi Pablo,
> > > > >>>>>>>
> > > > >>>>>>> I tried to make an example for you.
> > > > >>>>>>> I tried to port and old Tacos example to Tapestry 4.1.3 and I
> > > > found a
> > > > >>>>>>> bug in Tapestry  ajax wiring mechanism that prevent Trails of
> > > > using
> > > > >>>>>>> the ObjectForm & EditProperties components with AJAX. I've
> > filed
> > > > an
> > > > >>>>>>> issue https://issues.apache.org/jira/browse/TAPESTRY-1868 but
> > it
> > > > may
> > > > >>>>>>> take a while to get it fixed.
> > > > >>>>>>>
> > > > >>>>>>> So, if you really need this you are going to need to go with
> > > plain
> > > > Tapestry.
> > > > >>>>>>> There are, though, some Trails component that still can help
> > > you.
> > > > >>>>>>> I don't have too much time right now, but If you can wait
> > until
> > > > the
> > > > >>>>>>> end of the week I think I will be able to elaborate an example
> > > for
> > > > >>>>>>> you.
> > > > >>>>>>>
> > > > >>>>>>> Saludos.
> > > > >>>>>>> Alejandro.
> > > > >>>>>>>
> > > > >>>>>>> On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...>
> > wrote:
> > > > >>>>>>>> Maybe this is of help:
> > > > >>>>>>>>
> > > > >>>>>>>> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
> > > > >>>>>>>>
> > > > >>>>>>>> I'm new to tapestry, but I could take a look and see what I
> > can
> > > > come up
> > > > >>>>>>>> with...
> > > > >>>>>>>>
> > > > >>>>>>>> Regards,
> > > > >>>>>>>> PS
> > > > >>>>>>>>
> > > > >>>>>>>>
> > > > >>>>>>>> On 26/10/2007, Pablo Gra~na <pablo.grana@...> wrote:
> > > > >>>>>>>>> Hi there:
> > > > >>>>>>>>>
> > > > >>>>>>>>> How hard/easy/possible would be to implement the following:
> > > > >>>>>>>>>
> > > > >>>>>>>>> 1- make 1 drop down depend on the content of another
> > dropdown,
> > > > ie: when
> > > > >>>>>>>>> I select the country, I want to populate the state drop
> > down.
> > > > >>>>>>>>>
> > > > >>>>>>>>> 2- Hide/show a text area based on whether a dropdown has
> > > certain
> > > > value,
> > > > >>>>>>>>> or a checkbox is checked.
> > > > >>>>>>>>>
> > > > >>>>>>>>> Is there a sample available?
> > > > >>>>>>>>>
> > > > >>>>>>>>> Thanks a lot.
> > > > >>>>>>>>>
> > > > >>>>>>>>> --
> > > > >>>>>>>>> Pablo Gra\~na
> > > > >>>>>>>>> Chief Architect
> > > > >>>>>>>>> Globant
> > > > >>>>>>>>> Arg Office: +54 (11) 4109 1743
> > > > >>>>>>>>> UK  Office: +44 (20) 7043 8269 int 8043
> > > > >>>>>>>>> US  Office: +1 (212) 400 7686 int 8043
> > > > >>>>>>>>>
> > > > >>>>>>>>>
> > > > >>>>>>>>>
> > > > >>>>>>>>
> > > > ---------------------------------------------------------------------
> > > > >>>>>>>>> To unsubscribe from this list please visit:
> > > > >>>>>>>>>
> > > > >>>>>>>>>     http://xircles.codehaus.org/manage_email
> > > > >>>>>>>>>
> > > > >>>>>>>>>
> > > > >>>>>>>
> > > > ---------------------------------------------------------------------
> > > > >>>>>>> To unsubscribe from this list please visit:
> > > > >>>>>>>
> > > > >>>>>>>     http://xircles.codehaus.org/manage_email
> > > > >>>>>>>
> > > > >>>>>>
> > > > ---------------------------------------------------------------------
> > > > >>>>>> To unsubscribe from this list please visit:
> > > > >>>>>>
> > > > >>>>>>     http://xircles.codehaus.org/manage_email
> > > > >>>>>>
> > > > >>>>>>
> > > > >>>>>
> > > > ---------------------------------------------------------------------
> > > > >>>>> To unsubscribe from this list please visit:
> > > > >>>>>
> > > > >>>>>     http://xircles.codehaus.org/manage_email
> > > > >>>>>
> > > > >>>>
> > > > >>>>
> > > ---------------------------------------------------------------------
> > > > >>>> To unsubscribe from this list please visit:
> > > > >>>>
> > > > >>>>     http://xircles.codehaus.org/manage_email
> > > > >>>>
> > > > >>>>
> > > > >>>
> > > ---------------------------------------------------------------------
> > > > >>> To unsubscribe from this list please visit:
> > > > >>>
> > > > >>>     http://xircles.codehaus.org/manage_email
> > > > >>>
> > > > >> --
> > > > >> Pablo Gra\~na
> > > > >> Chief Architect
> > > > >> Globant
> > > > >> Arg Office: +54 (11) 4109 1743
> > > > >> UK  Office: +44 (20) 7043 8269 int 8043
> > > > >> US  Office: +1 (212) 400 7686 int 8043
> > > > >>
> > > > >>
> > > > >>
> > ---------------------------------------------------------------------
> > > > >> To unsubscribe from this list please visit:
> > > > >>
> > > > >>     http://xircles.codehaus.org/manage_email
> > > > >>
> > > > >>
> > > > >>
> > > > >>
> > > >
> > ------------------------------------------------------------------------
> > > > >>
> > > > >>
> > ---------------------------------------------------------------------
> > > > >> To unsubscribe from this list please visit:
> > > > >>
> > > > >>     http://xircles.codehaus.org/manage_email
> > > >
> > > > --
> > > > Pablo Gra\~na
> > > > Chief Architect
> > > > Globant
> > > > Arg Office: +54 (11) 4109 1743
> > > > UK  Office: +44 (20) 7043 8269 int 8043
> > > > US  Office: +1 (212) 400 7686 int 8043
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe from this list please visit:
> > > >
> > > >     http://xircles.codehaus.org/manage_email
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe from this list please visit:
> > >
> > >     http://xircles.codehaus.org/manage_email
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Unable to convert type 'org.apache.tapestry.binding.TemplateBindingFactory'

by Toby78 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It is not only Jetty. I have loaded the war on a Tomcat installation and got exactly the same error message.

-------- Original-Nachricht --------
> Datum: Wed, 7 Nov 2007 13:19:19 +0100
> Von: "Alejandro Scandroli" <alejandroscandroli@...>
> An: users@...
> Betreff: Re: [trails-users] Unable to convert type \'org.apache.tapestry.binding.TemplateBindingFactory\'

> Hi Tobias,
>
> very weird,
> I can't help since I don't use the jetty launcher.
> Is the maven-jetty-plugin working for you?
>
> Alejandro.
>
> On Nov 7, 2007 1:07 PM, Tobias Marx <superoverdrive@...> wrote:
> > I have just googled and it seems like Jetty (launcher) has problems with
> Jetty 1.6.....
> >
> > "Jetty Launcher, unable to build classpath, error getting VM type"
> >
> > There is only a dirty work-around:
> >
> > go to com.iw.plugins.jettylauncher/src/com/iw/plugins/jetty/launcher
> directory and edit JettyClasspathProvider.java file. Around the row number 162
> you can find a line int vmtype = getVMType(config);. Just change it to int
> vmtype = VM_14_15_16; so you bypass this check
> >
> > So it would be better to NOT use other Java versions for the examples in
> the meantime? At least my suggestion....
> >
> > > Datum: Wed, 07 Nov 2007 12:31:12 +0100
> > > Von: "Tobias Marx" <superoverdrive@...>
> > > An: users@...
> > > Betreff: Re: [trails-users] Unable to convert type
> \'org.apache.tapestry.binding.TemplateBindingFactory\'
> >
> >
> > > I have changed the pom.xml to include the Snapshot version.
> > > Then I have downloaded Java 6 as Java 5 was not supported.
> > >
> > > Then I have built everything from scratch.
> > >
> > > When I want to launch Jetty, I get the error:
> > >
> > > org.springframework.beans.factory.BeanCreationException: Error
> creating
> > > bean with name 'sessionFactory' defined in class path resource
> > > [applicationContext.xml]: Invocation of init method failed; nested
> exception is
> > > java.lang.UnsupportedClassVersionError: Bad version number in .class
> file
> > > Caused by: java.lang.UnsupportedClassVersionError: Bad version number
> in
> > > .class file
> > >       at java.lang.ClassLoader.defineClass1(Native Method)
> > >       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> > >       at
> > >
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> > >       at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> > >       at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> > >       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> > >       at java.security.AccessController.doPrivileged(Native Method)
> > >       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > >       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > >       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> > >       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> > >       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> > >       at java.lang.Class.forName0(Native Method)
> > >       at java.lang.Class.forName(Class.java:164)
> > >       at
> org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
> > >       at
> > >
> org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:599)
> > >       at
> > >
> org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)
> > >       at
> org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)
> > >       at
> org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)
> > >       at
> org.hibernate.cfg.Configuration.configure(Configuration.java:1443)
> > >       at
> > >
> org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:634)
> > >       at
> > >
> org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:368)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:918)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:833)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:880)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:828)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:368)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:918)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:833)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> > >       at
> > >
> org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:87)
> > >       at
> > >
> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:96)
> > >       at
> > >
> org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:83)
> > >       at
> > >
> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:83)
> > >       at
> > >
> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66)
> > >       at
> > >
> org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:296)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:312)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1180)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> > >       at
> > >
> org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:737)
> > >       at
> > >
> org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:521)
> > >       at
> > >
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:340)
> > >       at
> > >
> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
> > >       at
> > >
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
> > >       at
> > >
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
> > >       at
> > >
> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:498)
> > >       at org.mortbay.util.Container.start(Container.java:72)
> > >       at org.mortbay.http.HttpServer.doStart(HttpServer.java:695)
> > >       at org.mortbay.util.Container.start(Container.java:72)
> > >       at
> com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
> > >       at
> com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
> > >       at
> com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)
> > > getRootCause():
> > >
> > > Why on earth is it Java 6 anyway ? :-(
> > > Could not change it back to Java 5 to keep it consistent ?
> > >
> > > -------- Original-Nachricht --------
> > > > Datum: Wed, 07 Nov 2007 11:18:27 +0100
> > > > Von: superoverdrive@...
> > > > An: users@...
> > > > Betreff: [trails-users] Unable to convert type
> > > \'org.apache.tapestry.binding.TemplateBindingFactory\'
> > >
> > > > I always get this error:
> > > >
> > > > Unable to convert type
> > > > 'org.apache.tapestry.binding.TemplateBindingFactory' to a Java
> class,
> > > either as is, or in package tacos.services.
> > > >
> > > > Although I have commented out the Snapshot in the pom.xm....
> > > >
> > > > any ideas?
> > > >
> > > > (it is the ajaxlist example)
> > > >
> > > > -------- Original-Nachricht --------
> > > > > Datum: Mon, 05 Nov 2007 15:58:44 -0300
> > > > > Von: "Pablo Gra\\\\~na" <pablo.grana@...>
> > > > > An: users@...
> > > > > Betreff: Re: [trails-users] Javascript/ajax
> > > >
> > > > > It, worked!!! Excellent, Alejandro, I'll try to integrate it in
> our
> > > app.
> > > > > Does the solution has some dependency on new trails code not
> present
> > > in
> > > > > trails-1.1.1?
> > > > >
> > > > > thanks a lot.
> > > > >
> > > > > Alejandro Scandroli wrote:
> > > > > > Hi Pablo,
> > > > > >
> > > > > > WOW, yes it looks like tacos was compiled with java 6.
> > > > > > But luckily for you the code I added doesn't depend on tacos.
> > > > > > You can safely remove the tacos, I've attached patch to do it
> > > > > automatically.
> > > > > > Without tacos you can't use the AjaxForm component, but that's
> not
> > > an
> > > > > > issue for this example.
> > > > > >
> > > > > > Try applying the patch an let me know.
> > > > > > Saludos.
> > > > > > Alejandro.
> > > > > >
> > > > > > On 11/5/07, Pablo Gra~na <pablo.grana@...> wrote:
> > > > > >> Hi Alejandro, thanks a lot for this.
> > > > > >>
> > > > > >> The thing is that I could not take a look at it. Is it possible
> > > that
> > > > > the
> > > > > >> new tacos is built using java 6? Unfortunately, I am stuck with
> > > java
> > > > 5
> > > > > >> for now. Any ideas.
> > > > > >>
> > > > > >> Thanks.
> > > > > >>
> > > > > >> Alejandro Scandroli wrote:
> > > > > >>> Hi Pablo
> > > > > >>>
> > > > > >>> The example is in the svn repo, check it out.
> > > > > >>> Check also what things I had to add and which ones I had to
> > > change:
> > > > > >>> http://svn.trails.codehaus.org/changelog/trails/?cs=861
> > > > > >>>
> > > > > >>> You will find good examples of:
> > > > > >>> * how to decompose the ObjectForm component in its parts
> > > > > >>> * how to use the EditProperties component
> > > > > >>> * how to use the PropertyEditor component (this is commented
> out)
> > > > > >>> * how to retrieve the element list for an AssociationSelect
> > > > component
> > > > > >>> (includes an hibernate criteria example and a non-hibernate
> > > example)
> > > > > >>> * the ObjectActions component.
> > > > > >>>
> > > > > >>> NOTE: Trails has an unresolved namespace issue, that's why I
> had
> > > to
> > > > > >>> add a new library in the application specification file
> > > > > >>> (trails.application)
> > > > > >>>
> > > > > >>> This example covers your requirement number 1.
> > > > > >>>> 1- make 1 drop down depend on the content of another
> dropdown,
> > > ie:
> > > > > when
> > > > > >>>> I select the country, I want to populate the state drop down.
> > > > > >>> For the second one you can apply the same updateComponent
> > > mechanism
> > > > to
> > > > > >>> update an @If component. Check the EventListener documentation
> for
> > > > > >>> more information:
> > > > > >>> http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
> > > > > >>>
> > > > > >>> Saludos.
> > > > > >>> Alejandro.
> > > > > >>>
> > > > > >>> On 11/2/07, Pablo Gra~na <pablo.grana@...> wrote:
> > > > > >>>> Eh, no need to apologize. I'll check the example tomorrow.
> Thanks
> > > a
> > > > > lot.
> > > > > >>>>
> > > > > >>>> regards
> > > > > >>>>
> > > > > >>>> Alejandro Scandroli wrote:
> > > > > >>>>> Hi Pablo,
> > > > > >>>>>
> > > > > >>>>> I'm sorry to keep you waiting.
> > > > > >>>>> Tomorrow I will checkin some examples in the "ajaxlist"
> example.
> > > > > >>>>>
> > > > > >>>>> Alejandro.
> > > > > >>>>>
> > > > > >>>>> On 10/29/07, Pablo Gra~na <pablo.grana@...> wrote:
> > > > > >>>>>> Thanks a lot!!!
> > > > > >>>>>>
> > > > > >>>>>> The problem is that I know nothing about tapestry. If you
> think
> > > > > that it
> > > > > >>>>>> will add value to trails - I think it does :) - then please
> > > tell
> > > > me
> > > > > so
> > > > > >>>>>> and I wait till you have an example. Otherwise, if you have
> > > some
> > > > > other
> > > > > >>>>>> higher priority tasks for trails, don't be distracted by
> me:
> > > just
> > > > > point
> > > > > >>>>>> me to some docs and I'll see what I can do.
> > > > > >>>>>>
> > > > > >>>>>> Saludos
> > > > > >>>>>> Pablo
> > > > > >>>>>>
> > > > > >>>>>> Alejandro Scandroli wrote:
> > > > > >>>>>>> Hi Pablo,
> > > > > >>>>>>>
> > > > > >>>>>>> I tried to make an example for you.
> > > > > >>>>>>> I tried to port and old Tacos example to Tapestry 4.1.3
> and I
> > > > > found a
> > > > > >>>>>>> bug in Tapestry  ajax wiring mechanism that prevent Trails
> of
> > > > > using
> > > > > >>>>>>> the ObjectForm & EditProperties components with AJAX. I've
> > > filed
> > > > > an
> > > > > >>>>>>> issue https://issues.apache.org/jira/browse/TAPESTRY-1868
> but
> > > it
> > > > > may
> > > > > >>>>>>> take a while to get it fixed.
> > > > > >>>>>>>
> > > > > >>>>>>> So, if you really need this you are going to need to go
> with
> > > > plain
> > > > > Tapestry.
> > > > > >>>>>>> There are, though, some Trails component that still can
> help
> > > > you.
> > > > > >>>>>>> I don't have too much time right now, but If you can wait
> > > until
> > > > > the
> > > > > >>>>>>> end of the week I think I will be able to elaborate an
> example
> > > > for
> > > > > >>>>>>> you.
> > > > > >>>>>>>
> > > > > >>>>>>> Saludos.
> > > > > >>>>>>> Alejandro.
> > > > > >>>>>>>
> > > > > >>>>>>> On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...>
> > > wrote:
> > > > > >>>>>>>> Maybe this is of help:
> > > > > >>>>>>>>
> > > > > >>>>>>>> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
> > > > > >>>>>>>>
> > > > > >>>>>>>> I'm new to tapestry, but I could take a look and see what
> I
> > > can
> > > > > come up
> > > > > >>>>>>>> with...
> > > > > >>>>>>>>
> > > > > >>>>>>>> Regards,
> > > > > >>>>>>>> PS
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>> On 26/10/2007, Pablo Gra~na <pablo.grana@...>
> wrote:
> > > > > >>>>>>>>> Hi there:
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> How hard/easy/possible would be to implement the
> following:
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> 1- make 1 drop down depend on the content of another
> > > dropdown,
> > > > > ie: when
> > > > > >>>>>>>>> I select the country, I want to populate the state drop
> > > down.
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> 2- Hide/show a text area based on whether a dropdown has
> > > > certain
> > > > > value,
> > > > > >>>>>>>>> or a checkbox is checked.
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> Is there a sample available?
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> Thanks a lot.
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> --
> > > > > >>>>>>>>> Pablo Gra\~na
> > > > > >>>>>>>>> Chief Architect
> > > > > >>>>>>>>> Globant
> > > > > >>>>>>>>> Arg Office: +54 (11) 4109 1743
> > > > > >>>>>>>>> UK  Office: +44 (20) 7043 8269 int 8043
> > > > > >>>>>>>>> US  Office: +1 (212) 400 7686 int 8043
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>
> > > > >
> ---------------------------------------------------------------------
> > > > > >>>>>>>>> To unsubscribe from this list please visit:
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>     http://xircles.codehaus.org/manage_email
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>
> > > > >
> ---------------------------------------------------------------------
> > > > > >>>>>>> To unsubscribe from this list please visit:
> > > > > >>>>>>>
> > > > > >>>>>>>     http://xircles.codehaus.org/manage_email
> > > > > >>>>>>>
> > > > > >>>>>>
> > > > >
> ---------------------------------------------------------------------
> > > > > >>>>>> To unsubscribe from this list please visit:
> > > > > >>>>>>
> > > > > >>>>>>     http://xircles.codehaus.org/manage_email
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>
> > > > >
> ---------------------------------------------------------------------
> > > > > >>>>> To unsubscribe from this list please visit:
> > > > > >>>>>
> > > > > >>>>>     http://xircles.codehaus.org/manage_email
> > > > > >>>>>
> > > > > >>>>
> > > > > >>>>
> > > >
> ---------------------------------------------------------------------
> > > > > >>>> To unsubscribe from this list please visit:
> > > > > >>>>
> > > > > >>>>     http://xircles.codehaus.org/manage_email
> > > > > >>>>
> > > > > >>>>
> > > > > >>>
> > > >
> ---------------------------------------------------------------------
> > > > > >>> To unsubscribe from this list please visit:
> > > > > >>>
> > > > > >>>     http://xircles.codehaus.org/manage_email
> > > > > >>>
> > > > > >> --
> > > > > >> Pablo Gra\~na
> > > > > >> Chief Architect
> > > > > >> Globant
> > > > > >> Arg Office: +54 (11) 4109 1743
> > > > > >> UK  Office: +44 (20) 7043 8269 int 8043
> > > > > >> US  Office: +1 (212) 400 7686 int 8043
> > > > > >>
> > > > > >>
> > > > > >>
> > > ---------------------------------------------------------------------
> > > > > >> To unsubscribe from this list please visit:
> > > > > >>
> > > > > >>     http://xircles.codehaus.org/manage_email
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >>
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > >>
> > > > > >>
> > > ---------------------------------------------------------------------
> > > > > >> To unsubscribe from this list please visit:
> > > > > >>
> > > > > >>     http://xircles.codehaus.org/manage_email
> > > > >
> > > > > --
> > > > > Pablo Gra\~na
> > > > > Chief Architect
> > > > > Globant
> > > > > Arg Office: +54 (11) 4109 1743
> > > > > UK  Office: +44 (20) 7043 8269 int 8043
> > > > > US  Office: +1 (212) 400 7686 int 8043
> > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe from this list please visit:
> > > > >
> > > > >     http://xircles.codehaus.org/manage_email
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe from this list please visit:
> > > >
> > > >     http://xircles.codehaus.org/manage_email
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe from this list please visit:
> > >
> > >     http://xircles.codehaus.org/manage_email
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Unable to convert type 'org.apache.tapestry.binding.TemplateBindingFactory'

by Kalle Korhonen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm sure the latest Tacos snapshot being compiled in Java 6 is just a simple mistake. I'll make a note on that on tacos list; this is not the appropriate forum to do anything about it.

Kalle

On 11/7/07, Tobias Marx <superoverdrive@...> wrote:
It is not only Jetty. I have loaded the war on a Tomcat installation and got exactly the same error message.

-------- Original-Nachricht --------
> Datum: Wed, 7 Nov 2007 13:19:19 +0100
> Von: "Alejandro Scandroli" < alejandroscandroli@...>
> An: users@...
> Betreff: Re: [trails-users] Unable to convert type \' org.apache.tapestry.binding.TemplateBindingFactory\'

> Hi Tobias,
>
> very weird,
> I can't help since I don't use the jetty launcher.
> Is the maven-jetty-plugin working for you?
>
> Alejandro.
>
> On Nov 7, 2007 1:07 PM, Tobias Marx <superoverdrive@...> wrote:
> > I have just googled and it seems like Jetty (launcher) has problems with
> Jetty 1.6.....
> >
> > "Jetty Launcher, unable to build classpath, error getting VM type"
> >
> > There is only a dirty work-around:
> >
> > go to com.iw.plugins.jettylauncher /src/com/iw/plugins/jetty/launcher
> directory and edit JettyClasspathProvider.java file. Around the row number 162
> you can find a line int vmtype = getVMType(config);. Just change it to int
> vmtype = VM_14_15_16; so you bypass this check
> >
> > So it would be better to NOT use other Java versions for the examples in
> the meantime? At least my suggestion....
> >
> > > Datum: Wed, 07 Nov 2007 12:31:12 +0100
> > > Von: "Tobias Marx" <superoverdrive@...>

> > > An: users@...
> > > Betreff: Re: [trails-users] Unable to convert type
> \'org.apache.tapestry.binding.TemplateBindingFactory\'
> >
> >
> > > I have changed the pom.xml to include the Snapshot version.
> > > Then I have downloaded Java 6 as Java 5 was not supported.
> > >
> > > Then I have built everything from scratch.
> > >
> > > When I want to launch Jetty, I get the error:
> > >
> > > org.springframework.beans.factory.BeanCreationException : Error
> creating
> > > bean with name 'sessionFactory' defined in class path resource
> > > [applicationContext.xml]: Invocation of init method failed; nested
> exception is
> > > java.lang.UnsupportedClassVersionError: Bad version number in .class

> file
> > > Caused by: java.lang.UnsupportedClassVersionError: Bad version number
> in
> > > .class file
> > >       at java.lang.ClassLoader.defineClass1(Native Method)
> > >       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> > >       at
> > >
> java.security.SecureClassLoader.defineClass (SecureClassLoader.java:124)
> > >       at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> > >       at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> > >       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> > >       at java.security.AccessController.doPrivileged(Native Method)
> > >       at java.net.URLClassLoader.findClass(URLClassLoader.java :188)
> > >       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > >       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> > >       at java.lang.ClassLoader.loadClass (ClassLoader.java:251)
> > >       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> > >       at java.lang.Class.forName0(Native Method)
> > >       at java.lang.Class.forName (Class.java:164)
> > >       at
> org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
> > >       at
> > >
> org.hibernate.cfg.AnnotationConfiguration.parseMappingElement (AnnotationConfiguration.java:599)
> > >       at
> > >
> org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)
> > >       at
> org.hibernate.cfg.Configuration.doConfigure (Configuration.java:1534)
> > >       at
> org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)
> > >       at
> org.hibernate.cfg.Configuration.configure(Configuration.java :1443)
> > >       at
> > >
> org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:634)
> > >       at
> > >
> org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)

> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods (AbstractAutowireCapableBeanFactory.java:1201)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java :1171)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:156)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> > >       at
> > >

> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates (DefaultListableBeanFactory.java:368)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java :918)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:833)
> > >       at
> > >

> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:251)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:160)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:880)
> > >       at

> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:828)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:251)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:160)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:368)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:918)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:833)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java :421)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:156)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> > >       at
> > >

> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> > >       at
> > >
> org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans (BeanFactoryAdvisorRetrievalHelper.java:87)
> > >       at
> > >
> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java :96)
> > >       at
> > >
> org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:83)
> > >       at
> > >
> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:83)
> > >       at
> > >
> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean (AbstractAdvisorAutoProxyCreator.java:66)
> > >       at
> > >
> org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java :296)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:312)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1180)
> > >       at
> > >

> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:251)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:164)
> > >       at
> > >
> org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:737)
> > >       at
> > >

> org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:521)
> > >       at
> > >
> org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:340)
> > >       at
> > >
> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
> > >       at
> > >
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
> > >       at
> > >
> org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:49)
> > >       at
> > >
> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:498)
> > >       at org.mortbay.util.Container.start (Container.java:72)
> > >       at org.mortbay.http.HttpServer.doStart(HttpServer.java:695)
> > >       at org.mortbay.util.Container.start(Container.java:72)
> > >       at
> com.iw.plugins.jettyrunner.PluginRunner.launch (PluginRunner.java:282)
> > >       at
> com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
> > >       at
> com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java :75)
> > > getRootCause():
> > >
> > > Why on earth is it Java 6 anyway ? :-(
> > > Could not change it back to Java 5 to keep it consistent ?
> > >
> > > -------- Original-Nachricht --------
> > > > Datum: Wed, 07 Nov 2007 11:18:27 +0100
> > > > Von: superoverdrive@...
> > > > An: users@...
> > > > Betreff: [trails-users] Unable to convert type
> > > \'org.apache.tapestry.binding.TemplateBindingFactory\'
> > >
> > > > I always get this error:
> > > >
> > > > Unable to convert type
> > > > 'org.apache.tapestry.binding.TemplateBindingFactory' to a Java
> class,
> > > either as is, or in package tacos.services.
> > > >
> > > > Although I have commented out the Snapshot in the pom.xm....
> > > >
> > > > any ideas?
> > > >
> > > > (it is the ajaxlist example)
> > > >
> > > > -------- Original-Nachricht --------
> > > > > Datum: Mon, 05 Nov 2007 15:58:44 -0300
> > > > > Von: "Pablo Gra\\\\~na" <pablo.grana@...>
> > > > > An: users@...
> > > > > Betreff: Re: [trails-users] Javascript/ajax
> > > >
> > > > > It, worked!!! Excellent, Alejandro, I'll try to integrate it in
> our
> > > app.
> > > > > Does the solution has some dependency on new trails code not
> present

> > > in
> > > > > trails-1.1.1?
> > > > >
> > > > > thanks a lot.
> > > > >
> > > > > Alejandro Scandroli wrote:
> > > > > > Hi Pablo,
> > > > > >
> > > > > > WOW, yes it looks like tacos was compiled with java 6.
> > > > > > But luckily for you the code I added doesn't depend on tacos.
> > > > > > You can safely remove the tacos, I've attached patch to do it
> > > > > automatically.
> > > > > > Without tacos you can't use the AjaxForm component, but that's
> not
> > > an
> > > > > > issue for this example.
> > > > > >
> > > > > > Try applying the patch an let me know.
> > > > > > Saludos.
> > > > > > Alejandro.
> > > > > >
> > > > > > On 11/5/07, Pablo Gra~na <pablo.grana@...> wrote:
> > > > > >> Hi Alejandro, thanks a lot for this.

> > > > > >>
> > > > > >> The thing is that I could not take a look at it. Is it possible
> > > that
> > > > > the
> > > > > >> new tacos is built using java 6? Unfortunately, I am stuck with
> > > java
> > > > 5
> > > > > >> for now. Any ideas.
> > > > > >>
> > > > > >> Thanks.
> > > > > >>
> > > > > >> Alejandro Scandroli wrote:
> > > > > >>> Hi Pablo
> > > > > >>>
> > > > > >>> The example is in the svn repo, check it out.
> > > > > >>> Check also what things I had to add and which ones I had to
> > > change:
> > > > > >>> http://svn.trails.codehaus.org/changelog/trails/?cs=861
> > > > > >>>
> > > > > >>> You will find good examples of:
> > > > > >>> * how to decompose the ObjectForm component in its parts
> > > > > >>> * how to use the EditProperties component
> > > > > >>> * how to use the PropertyEditor component (this is commented
> out)
> > > > > >>> * how to retrieve the element list for an AssociationSelect
> > > > component
> > > > > >>> (includes an hibernate criteria example and a non-hibernate
> > > example)
> > > > > >>> * the ObjectActions component.
> > > > > >>>
> > > > > >>> NOTE: Trails has an unresolved namespace issue, that's why I
> had
> > > to
> > > > > >>> add a new library in the application specification file
> > > > > >>> (trails.application)
> > > > > >>>
> > > > > >>> This example covers your requirement number 1.
> > > > > >>>> 1- make 1 drop down depend on the content of another
> dropdown,
> > > ie:
> > > > > when
> > > > > >>>> I select the country, I want to populate the state drop down.
> > > > > >>> For the second one you can apply the same updateComponent
> > > mechanism
> > > > to
> > > > > >>> update an @If component. Check the EventListener documentation
> for
> > > > > >>> more information:
> > > > > >>> http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
> > > > > >>>
> > > > > >>> Saludos.
> > > > > >>> Alejandro.
> > > > > >>>
> > > > > >>> On 11/2/07, Pablo Gra~na <pablo.grana@...> wrote:
> > > > > >>>> Eh, no need to apologize. I'll check the example tomorrow.
> Thanks
> > > a
> > > > > lot.
> > > > > >>>>
> > > > > >>>> regards
> > > > > >>>>
> > > > > >>>> Alejandro Scandroli wrote:
> > > > > >>>>> Hi Pablo,
> > > > > >>>>>
> > > > > >>>>> I'm sorry to keep you waiting.
> > > > > >>>>> Tomorrow I will checkin some examples in the "ajaxlist"
> example.
> > > > > >>>>>
> > > > > >>>>> Alejandro.
> > > > > >>>>>
> > > > > >>>>> On 10/29/07, Pablo Gra~na < pablo.grana@...> wrote:
> > > > > >>>>>> Thanks a lot!!!
> > > > > >>>>>>
> > > > > >>>>>> The problem is that I know nothing about tapestry. If you
> think
> > > > > that it
> > > > > >>>>>> will add value to trails - I think it does :) - then please
> > > tell
> > > > me
> > > > > so
> > > > > >>>>>> and I wait till you have an example. Otherwise, if you have
> > > some
> > > > > other
> > > > > >>>>>> higher priority tasks for trails, don't be distracted by
> me:
> > > just
> > > > > point
> > > > > >>>>>> me to some docs and I'll see what I can do.
> > > > > >>>>>>
> > > > > >>>>>> Saludos
> > > > > >>>>>> Pablo
> > > > > >>>>>>
> > > > > >>>>>> Alejandro Scandroli wrote:
> > > > > >>>>>>> Hi Pablo,
> > > > > >>>>>>>
> > > > > >>>>>>> I tried to make an example for you.
> > > > > >>>>>>> I tried to port and old Tacos example to Tapestry 4.1.3

> and I
> > > > > found a
> > > > > >>>>>>> bug in Tapestry  ajax wiring mechanism that prevent Trails
> of
> > > > > using
> > > > > >>>>>>> the ObjectForm & EditProperties components with AJAX. I've
> > > filed
> > > > > an
> > > > > >>>>>>> issue https://issues.apache.org/jira/browse/TAPESTRY-1868
> but
> > > it
> > > > > may
> > > > > >>>>>>> take a while to get it fixed.
> > > > > >>>>>>>
> > > > > >>>>>>> So, if you really need this you are going to need to go
> with
> > > > plain
> > > > > Tapestry.
> > > > > >>>>>>> There are, though, some Trails component that still can
> help
> > > > you.
> > > > > >>>>>>> I don't have too much time right now, but If you can wait
> > > until
> > > > > the
> > > > > >>>>>>> end of the week I think I will be able to elaborate an
> example
> > > > for
> > > > > >>>>>>> you.
> > > > > >>>>>>>
> > > > > >>>>>>> Saludos.
> > > > > >>>>>>> Alejandro.
> > > > > >>>>>>>
> > > > > >>>>>>> On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...>
> > > wrote:
> > > > > >>>>>>>> Maybe this is of help:
> > > > > >>>>>>>>
> > > > > >>>>>>>> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
> > > > > >>>>>>>>
> > > > > >>>>>>>> I'm new to tapestry, but I could take a look and see what
> I
> > > can
> > > > > come up
> > > > > >>>>>>>> with...
> > > > > >>>>>>>>
> > > > > >>>>>>>> Regards,
> > > > > >>>>>>>> PS
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>> On 26/10/2007, Pablo Gra~na < pablo.grana@...>
> wrote:
> > > > > >>>>>>>>> Hi there:
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> How hard/easy/possible would be to implement the
> following:
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> 1- make 1 drop down depend on the content of another
> > > dropdown,
> > > > > ie: when
> > > > > >>>>>>>>> I select the country, I want to populate the state drop
> > > down.
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> 2- Hide/show a text area based on whether a dropdown has
> > > > certain
> > > > > value,
> > > > > >>>>>>>>> or a checkbox is checked.
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> Is there a sample available?
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> Thanks a lot.
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> --
> > > > > >>>>>>>>> Pablo Gra\~na
> > > > > >>>>>>>>> Chief Architect
> > > > > >>>>>>>>> Globant
> > > > > >>>>>>>>> Arg Office: +54 (11) 4109 1743
> > > > > >>>>>>>>> UK  Office: +44 (20) 7043 8269 int 8043
> > > > > >>>>>>>>> US  Office: +1 (212) 400 7686 int 8043
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>
> > > > >
> ---------------------------------------------------------------------

> > > > > >>>>>>>>> To unsubscribe from this list please visit:
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>     http://xircles.codehaus.org/manage_email
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>
> > > > >
> ---------------------------------------------------------------------
> > > > > >>>>>>> To unsubscribe from this list please visit:
> > > > > >>>>>>>
> > > > > >>>>>>>     http://xircles.codehaus.org/manage_email
> > > > > >>>>>>>
> > > > > >>>>>>
> > > > >
> ---------------------------------------------------------------------
> > > > > >>>>>> To unsubscribe from this list please visit:
> > > > > >>>>>>
> > > > > >>>>>>     http://xircles.codehaus.org/manage_email
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>
> > > > >
> ---------------------------------------------------------------------
> > > > > >>>>> To unsubscribe from this list please visit:
> > > > > >>>>>
> > > > > >>>>>     http://xircles.codehaus.org/manage_email

> > > > > >>>>>
> > > > > >>>>
> > > > > >>>>
> > > >
> ---------------------------------------------------------------------
> > > > > >>>> To unsubscribe from this list please visit:
> > > > > >>>>
> > > > > >>>>     http://xircles.codehaus.org/manage_email
> > > > > >>>>
> > > > > >>>>
> > > > > >>>
> > > >
> ---------------------------------------------------------------------
> > > > > >>> To unsubscribe from this list please visit:
> > > > > >>>
> > > > > >>>     http://xircles.codehaus.org/manage_email
> > > > > >>>
> > > > > >> --
> > > > > >> Pablo Gra\~na
> > > > > >> Chief Architect
> > > > > >> Globant
> > > > > >> Arg Office: +54 (11) 4109 1743
> > > > > >> UK  Office: +44 (20) 7043 8269 int 8043
> > > > > >> US  Office: +1 (212) 400 7686 int 8043
> > > > > >>
> > > > > >>
> > > > > >>
> > > ---------------------------------------------------------------------
> > > > > >> To unsubscribe from this list please visit:
> > > > > >>
> > > > > >>     http://xircles.codehaus.org/manage_email
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >>
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > >>
> > > > > >>
> > > ---------------------------------------------------------------------
> > > > > >> To unsubscribe from this list please visit:
> > > > > >>
> > > > > >>     http://xircles.codehaus.org/manage_email
> > > > >
> > > > > --
> > > > > Pablo Gra\~na
> > > > > Chief Architect
> > > > > Globant
> > > > > Arg Office: +54 (11) 4109 1743
> > > > > UK  Office: +44 (20) 7043 8269 int 8043
> > > > > US  Office: +1 (212) 400 7686 int 8043
> > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe from this list please visit:
> > > > >
> > > > >     http://xircles.codehaus.org/manage_email
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe from this list please visit:
> > > >
> > > >     http://xircles.codehaus.org/manage_email
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe from this list please visit:
> > >
> > >     http://xircles.codehaus.org/manage_email
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email



RE: Unable to convert type 'org.apache.tapestry.binding.TemplateBindingFactory'

by nhhockeyplayer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In short term...one can always checkout tacos and rebuild locally.
 
I have already did this against my jvm just for reference. That means I have not attempted what your doing.

Best regards
Ken in nashua





Date: Wed, 7 Nov 2007 08:09:32 -0800
From: kalle.o.korhonen@...
To: users@...
Subject: Re: [trails-users] Unable to convert type 'org.apache.tapestry.binding.TemplateBindingFactory'

I'm sure the latest Tacos snapshot being compiled in Java 6 is just a simple mistake. I'll make a note on that on tacos list; this is not the appropriate forum to do anything about it.

Kalle

On 11/7/07, Tobias Marx <superoverdrive@...> wrote:
It is not only Jetty. I have loaded the war on a Tomcat installation and got exactly the same error message.

-------- Original-Nachricht --------
> Datum: Wed, 7 Nov 2007 13:19:19 +0100
> Von: "Alejandro Scandroli" < alejandroscandroli@...>
> An: users@...
> Betreff: Re: [trails-users] Unable to convert type \' org.apache.tapestry.binding.TemplateBindingFactory\'

> Hi Tobias,
>
> very weird,
> I can't help since I don't use the jetty launcher.
> Is the maven-jetty-plugin working for you?
>
> Alejandro.
>
> On Nov 7, 2007 1:07 PM, Tobias Marx <superoverdrive@...> wrote:
> > I have just googled and it seems like Jetty (launcher) has problems with
> Jetty 1.6.....
> >
> > "Jetty Launcher, unable to build classpath, error getting VM type"
> >
> > There is only a dirty work-around:
> >
> > go to com.iw.plugins.jettylauncher /src/com/iw/plugins/jetty/launcher
> directory and edit JettyClasspathProvider.java file. Around the row number 162
> you can find a line int vmtype = getVMType(config);. Just change it to int
> vmtype = VM_14_15_16; so you bypass this check
> >
> > So it would be better to NOT use other Java versions for the examples in
> the meantime? At least my suggestion....
> >
> > > Datum: Wed, 07 Nov 2007 12:31:12 +0100
> > > Von: "Tobias Marx" <superoverdrive@...>
> > > An: users@...
> > > Betreff: Re: [trails-users] Unable to convert type
> \'org.apache.tapestry.binding.TemplateBindingFactory\'
> >
> >
> > > I have changed the pom.xml to include the Snapshot version.
> > > Then I have downloaded Java 6 as Java 5 was not supported.
> > >
> > > Then I have built everything from scratch.
> > >
> > > When I want to launch Jetty, I get the error:
> > >
> > > org.springframework.beans.factory.BeanCreationException : Error
> creating
> > > bean with name 'sessionFactory' defined in class path resource
> > > [applicationContext.xml]: Invocation of init method failed; nested
> exception is
> > > java.lang.UnsupportedClassVersionError: Bad version number in .class
> file
> > > Caused by: java.lang.UnsupportedClassVersionError: Bad version number
> in
> > > .class file
> > >       at java.lang.ClassLoader.defineClass1(Native Method)
> > >       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> > >       at
> > >
> java.security.SecureClassLoader.defineClass (SecureClassLoader.java:124)
> > >       at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> > >       at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> > >       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> > >       at java.security.AccessController.doPrivileged(Native Method)
> > >       at java.net.URLClassLoader.findClass(URLClassLoader.java :188)
> > >       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > >       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> > >       at java.lang.ClassLoader.loadClass (ClassLoader.java:251)
> > >       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> > >       at java.lang.Class.forName0(Native Method)
> > >       at java.lang.Class.forName (Class.java:164)
> > >       at
> org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
> > >       at
> > >
> org.hibernate.cfg.AnnotationConfiguration.parseMappingElement (AnnotationConfiguration.java:599)
> > >       at
> > >
> org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)
> > >       at
> org.hibernate.cfg.Configuration.doConfigure (Configuration.java:1534)
> > >       at
> org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)
> > >       at
> org.hibernate.cfg.Configuration.configure(Configuration.java :1443)
> > >       at
> > >
> org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:634)
> > >       at
> > >
> org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods (AbstractAutowireCapableBeanFactory.java:1201)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java :1171)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:156)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates (DefaultListableBeanFactory.java:368)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java :918)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:833)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:251)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:160)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:880)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:828)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:251)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:160)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:368)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:918)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:833)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java :421)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:156)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> > >       at
> > >
> org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans (BeanFactoryAdvisorRetrievalHelper.java:87)
> > >       at
> > >
> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java :96)
> > >       at
> > >
> org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:83)
> > >       at
> > >
> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:83)
> > >       at
> > >
> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean (AbstractAdvisorAutoProxyCreator.java:66)
> > >       at
> > >
> org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java :296)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:312)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1180)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:251)
> > >       at
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> > >       at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:164)
> > >       at
> > >
> org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:737)
> > >       at
> > >
> org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:521)
> > >       at
> > >
> org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:340)
> > >       at
> > >
> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
> > >       at
> > >
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
> > >       at
> > >
> org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:49)
> > >       at
> > >
> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:498)
> > >       at org.mortbay.util.Container.start (Container.java:72)
> > >       at org.mortbay.http.HttpServer.doStart(HttpServer.java:695)
> > >       at org.mortbay.util.Container.start(Container.java:72)
> > >       at
> com.iw.plugins.jettyrunner.PluginRunner.launch (PluginRunner.java:282)
> > >       at
> com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
> > >       at
> com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java :75)
> > > getRootCause():
> > >
> > > Why on earth is it Java 6 anyway ? :-(
> > > Could not change it back to Java 5 to keep it consistent ?
> > >
> > > -------- Original-Nachricht --------
> > > > Datum: Wed, 07 Nov 2007 11:18:27 +0100
> > > > Von: superoverdrive@...
> > > > An: users@...
> > > > Betreff: [trails-users] Unable to convert type
> > > \'org.apache.tapestry.binding.TemplateBindingFactory\'
> > >
> > > > I always get this error:
> > > >
> > > > Unable to convert type
> > > > 'org.apache.tapestry.binding.TemplateBindingFactory' to a Java
> class,
> > > either as is, or in package tacos.services.
> > > >
> > > > Although I have commented out the Snapshot in the pom.xm....
> > > >
> > > > any ideas?
> > > >
> > > > (it is the ajaxlist example)
> > > >
> > > > -------- Original-Nachricht --------
> > > > > Datum: Mon, 05 Nov 2007 15:58:44 -0300
> > > > > Von: "Pablo Gra\\\\~na" <pablo.grana@...>
> > > > > An: users@...
> > > > > Betreff: Re: [trails-users] Javascript/ajax
> > > >
> > > > > It, worked!!! Excellent, Alejandro, I'll try to integrate it in
> our
> > > app.
> > > > > Does the solution has some dependency on new trails code not
> present
> > > in
> > > > > trails-1.1.1?
> > > > >
> > > > > thanks a lot.
> > > > >
> > > > > Alejandro Scandroli wrote:
> > > > > > Hi Pablo,
> > > > > >
> > > > > > WOW, yes it looks like tacos was compiled with java 6.
> > > > > > But luckily for you the code I added doesn't depend on tacos.
> > > > > > You can safely remove the tacos, I've attached patch to do it
> > > > > automatically.
> > > > > > Without tacos you can't use the AjaxForm component, but that's
> not
> > > an
> > > > > > issue for this example.
> > > > > >
> > > > > > Try applying the patch an let me know.
> > > > > > Saludos.
> > > > > > Alejandro.
> > > > > >
> > > > > > On 11/5/07, Pablo Gra~na <pablo.grana@...> wrote:
> > > > > >> Hi Alejandro, thanks a lot for this.
> > > > > >>
> > > > > >> The thing is that I could not take a look at it. Is it possible
> > > that
> > > > > the
> > > > > >> new tacos is built using java 6? Unfortunately, I am stuck with
> > > java
> > > > 5
> > > > > >> for now. Any ideas.
> > > > > >>
> > > > > >> Thanks.
> > > > > >>
> > > > > >> Alejandro Scandroli wrote:
> > > > > >>> Hi Pablo
> > > > > >>>
> > > > > >>> The example is in the svn repo, check it out.
> > > > > >>> Check also what things I had to add and which ones I had to
> > > change:
> > > > > >>> http://svn.trails.codehaus.org/changelog/trails/?cs=861
> > > > > >>>
> > > > > >>> You will find good examples of:
> > > > > >>> * how to decompose the ObjectForm component in its parts
> > > > > >>> * how to use the EditProperties component
> > > > > >>> * how to use the PropertyEditor component (this is commented
> out)
> > > > > >>> * how to retrieve the element list for an AssociationSelect
> > > > component
> > > > > >>> (includes an hibernate criteria example and a non-hibernate
> > > example)
> > > > > >>> * the ObjectActions component.
> > > > > >>>
> > > > > >>> NOTE: Trails has an unresolved namespace issue, that's why I
> had
> > > to
> > > > > >>> add a new library in the application specification file
> > > > > >>> (trails.application)
> > > > > >>>
> > > > > >>> This example covers your requirement number 1.
> > > > > >>>> 1- make 1 drop down depend on the content of another
> dropdown,
> > > ie:
> > > > > when
> > > > > >>>> I select the country, I want to populate the state drop down.
> > > > > >>> For the second one you can apply the same updateComponent
> > > mechanism
> > > > to
> > > > > >>> update an @If component. Check the EventListener documentation
> for
> > > > > >>> more information:
> > > > > >>> http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
> > > > > >>>
> > > > > >>> Saludos.
> > > > > >>> Alejandro.
> > > > > >>>
> > > > > >>> On 11/2/07, Pablo Gra~na <pablo.grana@...> wrote:
> > > > > >>>> Eh, no need to apologize. I'll check the example tomorrow.
> Thanks
> > > a
> > > > > lot.
> > > > > >>>>
> > > > > >>>> regards
> > > > > >>>>
> > > > > >>>> Alejandro Scandroli wrote:
> > > > > >>>>> Hi Pablo,
> > > > > >>>>>
> > > > > >>>>> I'm sorry to keep you waiting.
> > > > > >>>>> Tomorrow I will checkin some examples in the "ajaxlist"
> example.
> > > > > >>>>>
> > > > > >>>>> Alejandro.
> > > > > >>>>>
> > > > > >>>>> On 10/29/07, Pablo Gra~na < pablo.grana@...> wrote:
> > > > > >>>>>> Thanks a lot!!!
> > > > > >>>>>>
> > > > > >>>>>> The problem is that I know nothing about tapestry. If you
> think
> > > > > that it
> > > > > >>>>>> will add value to trails - I think it does :) - then please
> > > tell
> > > > me
> > > > > so
> > > > > >>>>>> and I wait till you have an example. Otherwise, if you have
> > > some
> > > > > other
> > > > > >>>>>> higher priority tasks for trails, don't be distracted by
> me:
> > > just
> > > > > point
> > > > > >>>>>> me to some docs and I'll see what I can do.
> > > > > >>>>>>
> > > > > >>>>>> Saludos
> > > > > >>>>>> Pablo
> > > > > >>>>>>
> > > > > >>>>>> Alejandro Scandroli wrote:
> > > > > >>>>>>> Hi Pablo,
> > > > > >>>>>>>
> > > > > >>>>>>> I tried to make an example for you.
> > > > > >>>>>>> I tried to port and old Tacos example to Tapestry 4.1.3
> and I
> > > > > found a
> > > > > >>>>>>> bug in Tapestry  ajax wiring mechanism that prevent Trails
> of
> > > > > using
> > > > > >>>>>>> the ObjectForm & EditProperties components with AJAX. I've
> > > filed
> > > > > an
> > > > > >>>>>>> issue https://issues.apache.org/jira/browse/TAPESTRY-1868
> but
> > > it
> > > > > may
> > > > > >>>>>>> take a while to get it fixed.
> > > > > >>>>>>>
> > > > > >>>>>>> So, if you really need this you are going to need to go
> with
> > > > plain
> > > > > Tapestry.
> > > > > >>>>>>> There are, though, some Trails component that still can
> help
> > > > you.
> > > > > >>>>>>> I don't have too much time right now, but If you can wait
> > > until
> > > > > the
> > > > > >>>>>>> end of the week I think I will be able to elaborate an
> example
> > > > for
> > > > > >>>>>>> you.
> > > > > >>>>>>>
> > > > > >>>>>>> Saludos.
> > > > > >>>>>>> Alejandro.
> > > > > >>>>>>>
> > > > > >>>>>>> On 10/27/07, Pablo Saavedra <pablo.a.saavedra@...>
> > > wrote:
> > > > > >>>>>>>> Maybe this is of help:
> > > > > >>>>>>>>
> > > > > >>>>>>>> http://tapestry.apache.org/tapestry4.1/ajax/basics.html
> > > > > >>>>>>>>
> > > > > >>>>>>>> I'm new to tapestry, but I could take a look and see what
> I
> > > can
> > > > > come up
> > > > > >>>>>>>> with...
> > > > > >>>>>>>>
> > > > > >>>>>>>> Regards,
> > > > > >>>>>>>> PS
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>> On 26/10/2007, Pablo Gra~na < pablo.grana@...>
> wrote:
> > > > > >>>>>>>>> Hi there:
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> How hard/easy/possible would be to implement the
> following:
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> 1- make 1 drop down depend on the content of another
> > > dropdown,
> > > > > ie: when
> > > > > >>>>>>>>> I select the country, I want to populate the state drop
> > > down.
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> 2- Hide/show a text area based on whether a dropdown has
> > > > certain
> > > > > value,
> > > > > >>>>>>>>> or a checkbox is checked.
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> Is there a sample available?
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> Thanks a lot.
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> --
> > > > > >>>>>>>>> Pablo Gra\~na
> > > > > >>>>>>>>> Chief Architect
> > > > > >>>>>>>>> Globant
> > > > > >>>>>>>>> Arg Office: +54 (11) 4109 1743
> > > > > >>>>>>>>> UK  Office: +44 (20) 7043 8269 int 8043
> > > > > >>>>>>>>> US  Office: +1 (212) 400 7686 int 8043
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>
> > > > >
> ---------------------------------------------------------------------
> > > > > >>>>>>>>> To unsubscribe from this list please visit:
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>     http://xircles.codehaus.org/manage_email
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>
> > > > >
> ---------------------------------------------------------------------
> > > > > >>>>>>> To unsubscribe from this list please visit:
> > > > > >>>>>>>
> > > > > >>>>>>>     http://xircles.codehaus.org/manage_email
> > > > > >>>>>>>
> > > > > >>>>>>
> > > > >
> ---------------------------------------------------------------------
> > > > > >>>>>> To unsubscribe from this list please visit:
> > > > > >>>>>>
> > > > > >>>>>>     http://xircles.codehaus.org/manage_email
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>
> > > > >
> ---------------------------------------------------------------------
> > > > > >>>>> To unsubscribe from this list please visit:
> > > > > >>>>>
> > > > > >>>>>     http://xircles.codehaus.org/manage_email
> > > > > >>>>>
> > > > > >>>>
> > > > > >>>>
> > > >
> ---------------------------------------------------------------------
> > > > > >>>> To unsubscribe from this list please visit:
> > > > > >>>>
> > > > > >>>>     http://xircles.codehaus.org/manage_email
> > > > > >>>>
> > > > > >>>>
> > > > > >>>
> > > >
> ---------------------------------------------------------------------
> > > > > >>> To unsubscribe from this list please visit:
> > > > > >>>
> > > > > >>>     http://xircles.codehaus.org/manage_email
> > > > > >>>
> > > > > >> --
> > > > > >> Pablo Gra\~na
> > > > > >> Chief Architect
> > > > > >> Globant
> > > > > >> Arg Office: +54 (11) 4109 1743
> > > > > >> UK  Office: +44 (20) 7043 8269 int 8043
> > > > > >> US  Office: +1 (212) 400 7686 int 8043
> > > > > >>
> > > > > >>
> > > > > >>
> > > ---------------------------------------------------------------------
> > > > > >> To unsubscribe from this list please visit:
> > > > > >>
> > > > > >>     http://xircles.codehaus.org/manage_email
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >>
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > >>
> > > > > >>
> > > ---------------------------------------------------------------------
> > > > > >> To unsubscribe from this list please visit:
> > > > > >>
> > > > > >>     http://xircles.codehaus.org/manage_email
> > > > >
> > > > > --
> > > > > Pablo Gra\~na
> > > > > Chief Architect
> > > > > Globant
> > > > > Arg Office: +54 (11) 4109 1743
> > > > > UK  Office: +44 (20) 7043 8269 int 8043
> > > > > US  Office: +1 (212) 400 7686 int 8043
> > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe from this list please visit:
> > > > >
> > > > >     http://xircles.codehaus.org/manage_email
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe from this list please visit:
> > > >
> > > >     http://xircles.codehaus.org/manage_email
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe from this list please visit:
> > >
> > >     http://xircles.codehaus.org/manage_email
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email




Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! Try now!
Best regards
Ken in nashua

Uploadable media example

by Toby78 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What does this error message want to tell us:

Unable to parse OGNL expression 'column.propertyDescriptor.supportsExtension(@org.trails.descriptor.BlobDescriptorExtension@class)': source is null for getProperty(null, "propertyDescriptor")

?

This happens when a new uploaded media is added.....

Haven't got a clue, so far.....

Thanks!

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


RE: Uploadable media example

by nhhockeyplayer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sounds like your operating ObjectTable. Well no need to muck with that code... it is fine.
 
The issue I would venture to guess is in your application code.
 
Specifically... propertyDescriptor. In order for trails code to work properly... it relies on this to be set.
 
Check how your passing in propertyDescriptor... maybe your doing your own editor... I do not know.
 
I do know that if you get the propertyDescriptor resolved (currently it is null) then you will see better results.

Best regards
Ken in nashua



> Date: Fri, 9 Nov 2007 13:37:36 +0100
> From: superoverdrive@...
> To: users@...
> Subject: [trails-users] Uploadable media example
>
> What does this error message want to tell us:
>
> Unable to parse OGNL expression 'column.propertyDescriptor.supportsExtension(@org.trails.descriptor.BlobDescriptorExtension@class)': source is null for getProperty(null, "propertyDescriptor")
>
> ?
>
> This happens when a new uploaded media is added.....
>
> Haven't got a clue, so far.....
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>



Help yourself to FREE treats served up daily at the Messenger Café. Stop by today!
Best regards
Ken in nashua
< Prev | 1 - 2 | Next >