On Wed, Nov 26, 2008 at 11:41 PM, bengan <[EMAIL PROTECTED]> wrote:

>
> I have a job need to upgrade a web system from JSF1.1 to JSF1.2. In this
> system have some user-defined components , I updated the web.xml,the
> faces-config.xml,the TLD files and I also updated the user-defined
> component's code because the javax.faces.el "Deprecated". when I completed
> that I find my user-defined component's attribute where extends from parent
> component like "id" can not use. I must rewrite a "id " attribute in my Tag
> class,like this:
> public myComponentTag extends UIComponentELTag {
>  private  ValueExpression id = null;
>
>  public void setId(ValueExpression  id){
>      super.setId(id.getExpressionString());
>  }
> }
> why this happen?If I just can use new API and I don't want to rewrite all
> the attributes where extends from parent component ! what can I do ?
>

Myfaces core and tomahawk uses myfaces-builder-plugin to generate component
classes, tag classes, config files and handle those cases (makes automatic
the transition for jsf components from 1.1 to 1.2), but I'm not sure about
side effects of override id property on jsf 1.2, because I believe that id
is used internally on parent classes of UIComponentELTag.

The site for the plugin is here:

http://myfaces.apache.org/build-tools/plugins/myfaces-builder-plugin/index.html

regards

Leonardo Uribe


>
> --
> View this message in context:
> http://www.nabble.com/JSF1.2-user-defined-components-how-to-extendx-parent%27s-attribute-tp20713513p20713513.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Reply via email to