You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by John Slave <sl...@libero.it> on 2006/03/24 01:14:57 UTC
Ajax jsf component panel
Hi,
i wish to create an ajax component panel that is simply a panel with
particular javascript effect to expand and contract. However i found a
solution but i don't know if this is the right solution. I will use dwr
servlet to communicate by ajax (as explained in blue prints catalog
article) but the render inside will be always available but
hidden...because i don't know how i can render and put the result via
ajax...
Someone can tell me if it is a correct solution? Some suggestion?
Thank you
Yours faithfully
John Slave
Re: Ajax jsf component panel
Posted by Jonas Jacobi <jo...@oracle.com>.
Hi John,
There is a sample "component palette" in our book (we call it Deck
component) that you can look at. The source is available from the Apress
website.
Pro JSF and Ajax: Building Rich Internet Components
<http://apress.com/book/bookDisplay.html?bID=10044>
(http://apress.com/book/bookDisplay.html?bID=10044)
Regards,
Jonas
John Slave wrote:
> Hi,
>
> i wish to create an ajax component panel that is simply a panel with
> particular javascript effect to expand and contract. However i found a
> solution but i don't know if this is the right solution. I will use
> dwr servlet to communicate by ajax (as explained in blue prints
> catalog article) but the render inside will be always available but
> hidden...because i don't know how i can render and put the result via
> ajax...
> Someone can tell me if it is a correct solution? Some suggestion?
>
> Thank you
> Yours faithfully
> John Slave
--
*Author*: Pro JSF and Ajax: Building Rich Internet Components
<http://apress.com/book/bookDisplay.html?bID=10044>
*Blog*: http://www.orablogs.com/jjacobi
Re: Ajax jsf component panel
Posted by John Slave <sl...@libero.it>.
I want to use ajax to conditional render components (if the component is
closed there is no need to load the components...however these effects
can be achieved without ajax...)
Thank you
John Slave
Gerald Müllan ha scritto:
> Hi John,
>
> which result you wanna get through the ajax request?
>
> Only for the expand-and-contract functionality there is no need for
> using ajax. This can be done only using javaScript on client side.
>
> Do you use a js framework for your component or have you coded it on your own?
>
> As far as i know, our accordion component uses open rico for shielding
> from the complexity. A cool working example can be found under:
>
> http://openrico.org/rico/demos.page?demo=rico_accordion
>
> Also the dojo js framework has this feature right now:
>
> http://archive.dojotoolkit.org/nightly/tests/widget/test_AccordionPane.html
>
> cheers,
>
> Gerald
>
> On 3/24/06, John Slave <sl...@libero.it> wrote:
>
>> Hi,
>>
>> i wish to create an ajax component panel that is simply a panel with
>> particular javascript effect to expand and contract. However i found a
>> solution but i don't know if this is the right solution. I will use dwr
>> servlet to communicate by ajax (as explained in blue prints catalog
>> article) but the render inside will be always available but
>> hidden...because i don't know how i can render and put the result via
>> ajax...
>> Someone can tell me if it is a correct solution? Some suggestion?
>>
>> Thank you
>> Yours faithfully
>> John Slave
>>
>>
>
>
> --
> Gerald Müllan
> Schelleingasse 2/11
> 1040 Vienna, Austria
> 0043 699 11772506
> Bierbrauen@gmail.com
>
>
Re: Ajax jsf component panel
Posted by Gerald Müllan <bi...@gmail.com>.
Hi John,
which result you wanna get through the ajax request?
Only for the expand-and-contract functionality there is no need for
using ajax. This can be done only using javaScript on client side.
Do you use a js framework for your component or have you coded it on your own?
As far as i know, our accordion component uses open rico for shielding
from the complexity. A cool working example can be found under:
http://openrico.org/rico/demos.page?demo=rico_accordion
Also the dojo js framework has this feature right now:
http://archive.dojotoolkit.org/nightly/tests/widget/test_AccordionPane.html
cheers,
Gerald
On 3/24/06, John Slave <sl...@libero.it> wrote:
> Hi,
>
> i wish to create an ajax component panel that is simply a panel with
> particular javascript effect to expand and contract. However i found a
> solution but i don't know if this is the right solution. I will use dwr
> servlet to communicate by ajax (as explained in blue prints catalog
> article) but the render inside will be always available but
> hidden...because i don't know how i can render and put the result via
> ajax...
> Someone can tell me if it is a correct solution? Some suggestion?
>
> Thank you
> Yours faithfully
> John Slave
>
--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
Bierbrauen@gmail.com
Re: Ajax jsf component panel
Posted by Mike Kienenberger <mk...@gmail.com>.
You might take a look at the
org.apache.myfaces.custom.accordion.HtmlAccordionPanel in the MyFaces
Tomahawk sandbox.
On 3/23/06, John Slave <sl...@libero.it> wrote:
> Hi,
>
> i wish to create an ajax component panel that is simply a panel with
> particular javascript effect to expand and contract. However i found a
> solution but i don't know if this is the right solution. I will use dwr
> servlet to communicate by ajax (as explained in blue prints catalog
> article) but the render inside will be always available but
> hidden...because i don't know how i can render and put the result via
> ajax...
> Someone can tell me if it is a correct solution? Some suggestion?
>
> Thank you
> Yours faithfully
> John Slave
>