|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
Javascript/ajaxHi 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/ajaxMaybe 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: |
|
|
Re: Javascript/ajaxHi 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/ajaxThanks 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/ajaxHi 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/ajaxEh, 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/ajaxHi 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/ajaxHi 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/ajaxHi 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/ajaxIt, 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/ajaxIt 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 thi |