#28 Incompatability with JSF 1.2 RI

closed-fixed
9
2007-02-28
2006-07-20
Anonymous
No

due to the fact that the Util class references
implementation classes of the jsf 1.1 RI and myFaces,
jenia does not seem to function with JSF 1.2 and is at
risk of not functioning with other
versions/implementations of JSF

java.lang.NoSuchMethodError:
com.sun.faces.renderkit.html_basic.FormRenderer.addNeededHiddenField(Ljavax/faces/context/FacesContext;Ljava/lang/String;)V
at org.jenia.faces.util.Util.onClickPrefix(Util.java:170)

Discussion

  • Nobody/Anonymous

    Logged In: NO

    PATCH:

    in Util.java change the follwing line of the onClickPrefix
    method

    FROM:

    FormRenderer.addNeededHiddenField(getFacesContext(),hfn);

    TO:

    UIViewRoot root = getFacesContext().getViewRoot();
    UIForm form = (UIForm)root.findComponent(formId);
    HtmlInputHidden hidden = new HtmlInputHidden();
    hidden.setId(UIViewRoot.UNIQUE_ID_PREFIX + "cl");
    form.getChildren().add(hidden);

     
  • Igor Shabalov

    Igor Shabalov - 2006-07-20

    Logged In: YES
    user_id=800104

    What is the status of that issue?

     
  • Andrea Tessaro

    Andrea Tessaro - 2006-07-27

    Logged In: YES
    user_id=1330521

    this is a problem already found on myfaces 1.3.
    We need to add an hidden field into the form but we can't
    use the standard inputHidden because (if putted inside a
    panel or a table) we have problem to know the name of the
    field.
    The best solution (probably) is to create a private
    inputHidden field that generate his id without consider
    table nesting.
    This solution can solve all problem derived from different
    jsf implementation, so we will develop it asap (with the
    stable 1.2.1)

     
  • Andrea Tessaro

    Andrea Tessaro - 2006-07-27
    • priority: 5 --> 9
     
  • Andrea Tessaro

    Andrea Tessaro - 2006-11-10

    Logged In: YES
    user_id=1330521

    should be fixed with latest n.b.

     
  • Jenia

    Jenia - 2007-02-28

    Logged In: YES
    user_id=1327783
    Originator: NO

    fixed

     
  • Jenia

    Jenia - 2007-02-28
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks