myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Udo Schnurpfeil <udo.schnurpf...@atanion.com>
Subject Re: [Tobago] Declaration of Close and Submit&Close Button of a popup
Date Thu, 30 Nov 2006 13:12:37 GMT
Hi Bernd,

I prever Number 3.

Regards,

Udo

Bernd Bohmann wrote:
> Hello,
>
> Volker has added rendering of popups with ajax.
>
> You have to add some javascript to close the popup, until now.
> I would like to avoid this before we can release 1.0.9.
>
> A better solution would be to declare the immediate close and the 
> submit&close button.
>
> I think we have following options:
>
> 1. Adding id attributes for close and submit&close Command to popup.
> (I don't like this)
>
> 2. Adding a property to command button
> <tc:button ... closeAfterSubmit
> <tc:button ,.. closeImmediate
> (I don't like this, too)
>
> 3. Adding support for an attribute popupClose in Link and ButtonRenderer.
> <tc:button >
>   <f:attribute name="popupClose" value="immediate" />
>
>   <f:attribute name="popupClose" value="afterSubmit" />
> </tc:button>
>
>
> 4. Adding a tag
>
> <tc:button >
>  <tc:popupClose value="immediate" />
>
>   <tc:popupClose" value="afterSubmit" />
> </tc:button>
>
> I would prefer option 3 or 4.
>
>
> Any thoughts?
>
> Regards
>
>
> Bernd
>
>

Mime
View raw message