tomcat 6 is jsp 2.1
and servlet 2.5

myfaces 1.2 will be done q1 2007

On 11/16/06, behrangsa <[EMAIL PROTECTED]> wrote:

Hi Martin,

Thanks for the explanation. I think I'll switch to Facelets and then
completely to JSF 1.2 and Facelets on Glassfish (I think it should be
impossible/difficult to get JSF 1.2 working in Tomcat as it requires a JSP
2.5 compliant container). Also is MyFaces, JSF 1.2 compliant?

BTW - Wouldn't it work if there was a MyFaces init param that we could set
so that the component hierarchy and the ids assigned to them were
recalculated on every request? Not efficient, but a life saver for
development time...

Regards,
Behi


Martin Marinschek wrote:
>
> Hi Behi,
>
> the first issue you are seeing is due to the fact that if you change
> the JSP-page-hierarchy, JSF doesn't know anymore which id it should
> assign to which component. This problem can be fixed by either
> switching to facelets or JSF1.2 (in 1.2, the container provides the
> id's per tag, I hope that with this direct link there will be no
> problem in adding another tag - haven't tried it yet, though).
>
> For the second issue, are you using direct value="myvalue" attributes
> or value-binding as in value="#{test.myValue}"?
>
> Properties are not reloaded on every request, if they are set as a
> hard-coded string. Look at the following code-snippet to see how the
> component is created on a new page and reused on an existing page:
>
>             _componentInstance = findComponent(parent,id);
>             if (_componentInstance == null)
>             {
>                 _componentInstance = createComponentInstance(context, id);
>                 setProperties(_componentInstance);
>                 int index = getAddedChildrenCount(parentTag);
>                 List children = parent.getChildren();
>                 if (index <= children.size())
>                 {
>                     children.add(index, _componentInstance);
>                 }
>                 else
>                 {
>                     throw new FacesException("cannot add component");
>                 }
>             }
>
>
> regards,
>
> Martin
>
> On 11/16/06, behrangsa <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> When I modify a JSP (add/remove some children to a panelGrid,etc.) and
>> press
>> F5 to see the changes, I get the following exception in Tomcat 5.5.17 or
>> 5.5.20:
>>
>> javax.faces.FacesException: Client-id : _idJsp0 is duplicated in the
>> faces
>> tree. Component : _idJsp0, path: {Component-Path : [Class:
>> javax.faces.component.UIViewRoot,ViewId: /position/index.jsp][Class:
>> javax.faces.component.html.HtmlPanelGrid,Id: positionPane][Class:
>> javax.faces.component.html.HtmlPanelGrid,Id: ositionTitlePane][Class:
>> javax.faces.component.html.HtmlOutputText,Id: _idJsp0]}
>>
>> 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)
>>
>> 
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
>>
>> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
>>         javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
>>
>> The second time I press F5, everything starts working fine again. Any
>> ideas
>> how can I overcome this problem?
>>
>> Also, sometimes when I change the value attribute of an outputText and
>> press
>> F5 to see the changes, the changes are not reflected... any ideas what
>> should I do to make these glitches go away?
>>
>> Regards,
>> Behi
>> --
>> View this message in context:
>> 
http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7370404
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>

--
View this message in context: 
http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7377326
Sent from the MyFaces - Users mailing list archive at Nabble.com.




--
Matthias Wessendorf
http://tinyurl.com/fmywh

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

Reply via email to