incubator-adffaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: Family of ADF-Faces form
Date Mon, 17 Jul 2006 00:56:23 GMT
> can anybody tell me what the family of the ADF Faces form was before
> the rename to
>
> org.apache.myfaces.adf.Form


oracle.adf.Form (same for renderer-type and component-type)

> in a quest for compatibility, I'd like to add the old ADF Faces form
> family to be checked for in the following code snippet.

:) that's a hack

> regards,
>
> Martin
>
>     public static FormInfo findNestingForm(UIComponent uiComponent,
> FacesContext facesContext)
>     {
>         UIComponent parent = uiComponent.getParent();
>         while (parent != null &&
> (!FORM_COMPONENT_FAMILY.equals(parent.getFamily()) &&
> !TRINIDAD_FORM_COMPONENT_FAMILY.equals(parent.getFamily())))
>         {
>             parent = parent.getParent();
>         }
>
>         if (parent != null)
>         {
>             //link is nested inside a form
>             String formName = parent.getClientId(facesContext);
>             return new FormInfo(parent, formName);
>         }
>
>         return null;
>     }
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Mime
View raw message