glassfish_at_javadesktop.org wrote:
> Hello,
> We're developing a large JSF-based app with custom .tag on glassfishV1/AS9.0.1 and our team is having an extremely hard time dealing with JspException: Component ID has already been used in the view.
> They seem to pop-up randomly and even if we go through the trouble of setting an id for every single JSF component on that page, sometimes we still get this error...
>
There was a known issue with .tag files and JSF 1.2, but it has been
addressed in a later release (1.2_04).
I would suggested obtaining the GlassFish updater for the latest JSF
release which can be obtained here:
https://javaserverfaces.dev.java.net. There is a download button in the
upper-right hand portion of the page.
> #|2007-06-18T12:32:11.964-0700|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=httpWorkerThread-8181-0;_RequestID=fd866d2a-2e39-42d5-b5eb-8ebd9e0de0fb;|ApplicationDispatcher.log: ApplicationDispatcher[] Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Component ID 'moduleinviteFriends' has already been used in the view.
> See below for the view up to the point of the detected error.
> +id: j_id_id11
> type: javax.faces.component.UIViewRoot_at_141c44d
> +id: j_id0
> type: javax.faces.component.html.HtmlOutputText_at_bedc80
> +id: javascriptInclude
> type: javax.faces.component.UINamingContainer_at_7e7394
> +id: j_id1
> type: javax.faces.component.html.HtmlOutputText_at_1d6105e
>
> Sometimes, if we remove all ids then the error goes away... Other times, just playing around with adding/removing comments can make the error come or go away! It's very unpredictable and often jeopardize our schedules as it can take many hours to fix just one of those.
>
> I was wondering if it's a pain many JSF developers go through or if we do something specific to deserve that.
> Is anyone struggling with those errors too?
> Are there best practices on how to avoid and/or fix those?
> Thank you,
> [Message sent by forum member 'bouteill' (bouteill)]
>
> http://forums.java.net/jive/thread.jspa?messageID=222909
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>