users@woodstock.java.net

Re: Popup menu's eventListener/eventListenerExpression attribute doesn't work with facelets

From: Jason Suplizio <suplizio_at_gmail.com>
Date: Tue, 19 Feb 2008 16:02:30 -0800

We're having a lot of difficulty due to facelets incompatability issues like
the one described above. What do we need to do to get better facelets
support in Woodstock? Is it simply a matter of defining a custom Facelets
TagHandler for each component?

On Feb 19, 2008 1:25 PM, janylj <lijun.yan_at_expeditors.com> wrote:

>
> We are using client side javascript getSelectedValue() as the workaround
> for
> Popup Menu. However, is there any more general approach to circumvent
> facelets? We worry whether there is some Woodstock tag which depends on
> EventExpression/EventListenerExpressions or
> actionExpression/actionListenerExpressions, and it doesn't provide this
> kind
> of additional javascript method.
>
> Thanks.
>
>
> Venkatesh Babu-5 wrote:
> >
> > I believe we only have a "menu" component and no "actionMenu" component
> > exists.
> > There seems to be a bug with the tld doc example.
> >
> > EventExpression/EventListenerExpressions are similar to
> > actionExpression/actionListenerExpressions
> > but they have a value associated with the "action". In this case, it is
> > the selected option of the menu.
> >
> > But, actionExpression/actionListenerExpression did not work with
> > facelets and hence, people used the deprecated
> > action/actionListener attributes instead. Since the
> > action/actionListener attributes were already deprecated with jsf1.2 and
> > actionExpression/actionListenerExpression were introduced, we just went
> > ahead with providing eventExpression/eventListenerExpression
> attributes.
> >
> > I guess if we had had something like "event"/"eventListener" equivalent
> > attributes, then that would have served the purpose for facelets until
> > that particular bug with facelets had been fixed.
> >
> >
> > -Venky
> >
> > janylj wrote:
> >> Hello,
> >>
> >> We tried these two ways to use Woodstock Popup menu just as the code
> >> example
> >> in the documentation.
> >> 1:
> >> <webuijsf:actionenu id="popup1" items="#{popUp.optionItems1}"
> >> eventListener="#{popUp.selectedItem}"/>
> >> 2:
> >> <webuijsf:menu id="popup1" items="#{popupBean.optionItems}"
> >> eventListenerExpression="#{popupBean.selectOption}"/>
> >>
> >> However, with Facelets 1.1.12 (or 1.1.13), the expression/method
> binding
> >> with eventListener/eventListenerExpression attriubte is never called.
> We
> >> are
> >> not sure whether it's a Woodstock problem or Facelets. But these two
> >> attributes don't seem in the JSF 1.2 spec.
> >>
> >> Any ideas? Thank you very much.
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> > For additional commands, e-mail: users-help_at_woodstock.dev.java.net
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Popup-menu%27s-eventListener-eventListenerExpression-attribute-doesn%27t-work-with-facelets-tp15547484p15569340.html
> Sent from the Project Woodstock - Users mailing list archive at Nabble.com
> .
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>
>