You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Hazem Saleh <ha...@apache.org> on 2009/01/28 18:40:46 UTC

[MFCOMMONS-3] does not work with Facelets

Hello,

I was digging in the exporter defect with Facelets[1], After a little
investigation,
I found that Facelets needs a special implementation for the listener tag
handler[2].

Is this correct? and Are there any possible better ways for solving this
defect?

Thanks!

[1] https://issues.apache.org/jira/browse/MFCOMMONS-3
[2]
https://facelets.dev.java.net/source/browse/*checkout*/facelets/src/java/com/sun/facelets/tag/jsf/core/ActionListenerHandler.java?rev=1.3.2.1
.
-- 
Hazem Ahmed Saleh Ahmed

Author of (The Definitive Guide to Apache MyFaces and Facelets):
http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370

Web blog: http://www.jroller.com/page/HazemBlog

[Web 2.0] Google Maps Integration with JSF:
http://code.google.com/p/gmaps4jsf/
http://www.theserverside.com/tt/articles/article.tss?l=IntroductiontoGMaps4JSF

Re: [MFCOMMONS-3] does not work with Facelets

Posted by Hazem Saleh <ha...@apache.org>.
Thank you guys for making me sure that this is the right direction.

On Wed, Jan 28, 2009 at 8:26 PM, Cagatay Civici <ca...@gmail.com>wrote:

> Yes, there are cases where code needs to be written with facelets api.
> ActionListeners are such an example.
>
> Example taghandler for a custom actionlistener;
>
>
> http://code.google.com/p/primefaces/source/browse/optimus/trunk/src/main/java/org/primefaces/optimus/actionlistener/ExportActionListenerTagHandler.java
>
>
> On Wed, Jan 28, 2009 at 6:02 PM, Mike Kienenberger <mk...@gmail.com>wrote:
>
>> Make sure you're doing all work in the JSF component, and none in a
>> JSP tag handler.   The tag handler should simply assign properties set
>> on the tag to the component.
>>
>> That will take care of the problem in general.  There are specific
>> cases where no component exists that have to be handled by writing an
>> equivalent facelet tag handler (such as updateActionListener).
>>
>>
>> On Wed, Jan 28, 2009 at 12:40 PM, Hazem Saleh <ha...@apache.org> wrote:
>> > Hello,
>> >
>> > I was digging in the exporter defect with Facelets[1], After a little
>> > investigation,
>> > I found that Facelets needs a special implementation for the listener
>> tag
>> > handler[2].
>> >
>> > Is this correct? and Are there any possible better ways for solving this
>> > defect?
>> >
>> > Thanks!
>> >
>> > [1] https://issues.apache.org/jira/browse/MFCOMMONS-3
>> > [2]
>> >
>> https://facelets.dev.java.net/source/browse/*checkout*/facelets/src/java/com/sun/facelets/tag/jsf/core/ActionListenerHandler.java?rev=1.3.2.1
>> .
>> > --
>> > Hazem Ahmed Saleh Ahmed
>> >
>> > Author of (The Definitive Guide to Apache MyFaces and Facelets):
>> >
>> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
>> >
>> > Web blog: http://www.jroller.com/page/HazemBlog
>> >
>> > [Web 2.0] Google Maps Integration with JSF:
>> > http://code.google.com/p/gmaps4jsf/
>> >
>> http://www.theserverside.com/tt/articles/article.tss?l=IntroductiontoGMaps4JSF
>> >
>>
>
>


-- 
Hazem Ahmed Saleh Ahmed

Author of (The Definitive Guide to Apache MyFaces and Facelets):
http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370

Web blog: http://www.jroller.com/page/HazemBlog

[Web 2.0] Google Maps Integration with JSF:
http://code.google.com/p/gmaps4jsf/
http://www.theserverside.com/tt/articles/article.tss?l=IntroductiontoGMaps4JSF

Re: [MFCOMMONS-3] does not work with Facelets

Posted by Cagatay Civici <ca...@gmail.com>.
Yes, there are cases where code needs to be written with facelets api.
ActionListeners are such an example.

Example taghandler for a custom actionlistener;

http://code.google.com/p/primefaces/source/browse/optimus/trunk/src/main/java/org/primefaces/optimus/actionlistener/ExportActionListenerTagHandler.java

On Wed, Jan 28, 2009 at 6:02 PM, Mike Kienenberger <mk...@gmail.com>wrote:

> Make sure you're doing all work in the JSF component, and none in a
> JSP tag handler.   The tag handler should simply assign properties set
> on the tag to the component.
>
> That will take care of the problem in general.  There are specific
> cases where no component exists that have to be handled by writing an
> equivalent facelet tag handler (such as updateActionListener).
>
>
> On Wed, Jan 28, 2009 at 12:40 PM, Hazem Saleh <ha...@apache.org> wrote:
> > Hello,
> >
> > I was digging in the exporter defect with Facelets[1], After a little
> > investigation,
> > I found that Facelets needs a special implementation for the listener tag
> > handler[2].
> >
> > Is this correct? and Are there any possible better ways for solving this
> > defect?
> >
> > Thanks!
> >
> > [1] https://issues.apache.org/jira/browse/MFCOMMONS-3
> > [2]
> >
> https://facelets.dev.java.net/source/browse/*checkout*/facelets/src/java/com/sun/facelets/tag/jsf/core/ActionListenerHandler.java?rev=1.3.2.1
> .
> > --
> > Hazem Ahmed Saleh Ahmed
> >
> > Author of (The Definitive Guide to Apache MyFaces and Facelets):
> >
> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
> >
> > Web blog: http://www.jroller.com/page/HazemBlog
> >
> > [Web 2.0] Google Maps Integration with JSF:
> > http://code.google.com/p/gmaps4jsf/
> >
> http://www.theserverside.com/tt/articles/article.tss?l=IntroductiontoGMaps4JSF
> >
>

Re: [MFCOMMONS-3] does not work with Facelets

Posted by Mike Kienenberger <mk...@gmail.com>.
Make sure you're doing all work in the JSF component, and none in a
JSP tag handler.   The tag handler should simply assign properties set
on the tag to the component.

That will take care of the problem in general.  There are specific
cases where no component exists that have to be handled by writing an
equivalent facelet tag handler (such as updateActionListener).


On Wed, Jan 28, 2009 at 12:40 PM, Hazem Saleh <ha...@apache.org> wrote:
> Hello,
>
> I was digging in the exporter defect with Facelets[1], After a little
> investigation,
> I found that Facelets needs a special implementation for the listener tag
> handler[2].
>
> Is this correct? and Are there any possible better ways for solving this
> defect?
>
> Thanks!
>
> [1] https://issues.apache.org/jira/browse/MFCOMMONS-3
> [2]
> https://facelets.dev.java.net/source/browse/*checkout*/facelets/src/java/com/sun/facelets/tag/jsf/core/ActionListenerHandler.java?rev=1.3.2.1.
> --
> Hazem Ahmed Saleh Ahmed
>
> Author of (The Definitive Guide to Apache MyFaces and Facelets):
> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
>
> Web blog: http://www.jroller.com/page/HazemBlog
>
> [Web 2.0] Google Maps Integration with JSF:
> http://code.google.com/p/gmaps4jsf/
> http://www.theserverside.com/tt/articles/article.tss?l=IntroductiontoGMaps4JSF
>