You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jesper Pedersen (JIRA)" <de...@myfaces.apache.org> on 2006/02/07 11:26:58 UTC

[jira] Created: (MYFACES-1097) Duplicated id generation for jsf_tree, jsf_state and jsf_viewid

Duplicated id generation for jsf_tree, jsf_state and jsf_viewid
---------------------------------------------------------------

         Key: MYFACES-1097
         URL: http://issues.apache.org/jira/browse/MYFACES-1097
     Project: MyFaces
        Type: Bug
  Components: Implementation  
    Versions: Nightly    
 Environment: JDK5, Tomcat-5.5 and MyFaces SVN
    Reporter: Jesper Pedersen


The forms included in the resulting HTML page contains the same value for the id attributes.

F.ex:

 <input type="hidden" name="jsf_tree_64" id="jsf_tree_64" value="H4...."/>
 <input type="hidden" name="jsf_state_64" id="jsf_state_64" value="H4...."/>
 <input type="hidden" name="jsf_viewid" id="jsf_viewid" value="..."/>

are used for all forms on the page.

This make the page fail W3C/HTMLvalidation.

 Line 239 column 2703: ID "jsf_state_64" already defined.
 Line 165 column 2703: ID "jsf_state_64" first defined here.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (MYFACES-1097) Duplicated id generation for jsf_tree, jsf_state and jsf_viewid

Posted by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-1097?page=comments#action_12365417 ] 

Martin Marinschek commented on MYFACES-1097:
--------------------------------------------

It is strongly recommended to use only one form on a page - and use the s:subForm feature for handling partial model-update and validation.

regards,

Martin

> Duplicated id generation for jsf_tree, jsf_state and jsf_viewid
> ---------------------------------------------------------------
>
>          Key: MYFACES-1097
>          URL: http://issues.apache.org/jira/browse/MYFACES-1097
>      Project: MyFaces
>         Type: Bug
>   Components: Implementation
>     Versions: Nightly
>  Environment: JDK5, Tomcat-5.5 and MyFaces SVN
>     Reporter: Jesper Pedersen

>
> The forms included in the resulting HTML page contains the same value for the id attributes.
> F.ex:
>  <input type="hidden" name="jsf_tree_64" id="jsf_tree_64" value="H4...."/>
>  <input type="hidden" name="jsf_state_64" id="jsf_state_64" value="H4...."/>
>  <input type="hidden" name="jsf_viewid" id="jsf_viewid" value="..."/>
> are used for all forms on the page.
> This make the page fail W3C/HTMLvalidation.
>  Line 239 column 2703: ID "jsf_state_64" already defined.
>  Line 165 column 2703: ID "jsf_state_64" first defined here.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (MYFACES-1097) Duplicated id generation for jsf_tree, jsf_state and jsf_viewid

Posted by "Jesper Pedersen (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-1097?page=comments#action_12365418 ] 

Jesper Pedersen commented on MYFACES-1097:
------------------------------------------

I agree, but it is difficult when using a tiles based application where each tile may or may not contain a form.

The two problems I see:

 1) When should the <h:form> be inserted/ended ?
 2) What about <x:saveState> ? 

The subForm.jsp example nicely shows how to use the tag, but it doesn't take more advanced things into account IMHO.

Please, don't take this as negative feedback - I see JSF as *the* web framework.

Best regards,
 Jesper


> Duplicated id generation for jsf_tree, jsf_state and jsf_viewid
> ---------------------------------------------------------------
>
>          Key: MYFACES-1097
>          URL: http://issues.apache.org/jira/browse/MYFACES-1097
>      Project: MyFaces
>         Type: Bug
>   Components: Implementation
>     Versions: Nightly
>  Environment: JDK5, Tomcat-5.5 and MyFaces SVN
>     Reporter: Jesper Pedersen

>
> The forms included in the resulting HTML page contains the same value for the id attributes.
> F.ex:
>  <input type="hidden" name="jsf_tree_64" id="jsf_tree_64" value="H4...."/>
>  <input type="hidden" name="jsf_state_64" id="jsf_state_64" value="H4...."/>
>  <input type="hidden" name="jsf_viewid" id="jsf_viewid" value="..."/>
> are used for all forms on the page.
> This make the page fail W3C/HTMLvalidation.
>  Line 239 column 2703: ID "jsf_state_64" already defined.
>  Line 165 column 2703: ID "jsf_state_64" first defined here.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira