× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Well, yes, sort of.

In the jsp, I've a hidden field that looks like this => <t:inputHidden
forceId="true" id="leaderPA"
value="#{carbonCopyAndForwardingUpdateBean.leaderPhoneNumber.areaCode}"/>.
and a hidden field in a datatable that looks like this: <t:inputHidden
forceId="true" id="leaderPA"
value="#{item.leaderPhoneNumber.areaCode}"></t:inputHidden>.
The id name is the same for these two hidden fields. But, since the second
one is in a datatable, tomahwak will auto append a sequential # after the id
name of leaderPA, which makes them unique (No duplicate that is).

This jsp is an existing jsp and is running fine in production. But if I add
richfaces jars in the lib folder and add richfaces filter setup in web.xml,
it error out with duplicate ID. I'm thinking, the problem might be because
richfaces filter does not understand how tomahawk datatable forceID
attribute work.



"James Perkins" wrote in message
news:mailman.2349.1331658169.14575.web400@xxxxxxxxxxxx...

Actually, re-reading the stack trace I think you might have a JSF component
with the same ID. I should have read that better :-)
--
James R. Perkins


On Tue, Mar 13, 2012 at 06:55, Hockchai Lim
<lim.hock-chai@xxxxxxxxxxxxxxx>wrote:

That is the only filter that I've in the web.xml. do you know of any
other
ajax type framework that I might could use?

"James Perkins" wrote in message
news:mailman.2214.1331590046.14575.web400@xxxxxxxxxxxx...

There are likely conflicts with Tomahawk and RichFaces, but I'm not too
sure what exactly they would be. From some of the documentation,

http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/SettingsForDifferentEnvironments.html#ApacheMyFaces
,
it does appear that you need to define the RichFaces filters first.

HTH,
--
James R. Perkins


On Mon, Mar 12, 2012 at 14:10, Hockchai Lim
<lim.hock-chai@xxxxxxxxxxxxxxx>wrote:

is anyone using richfaces3.1.6 with MyFaces1.1.9 and Tomahawk 1.1.11?
I'm
trying to add AJax capability into our web app. After some research,
richfaces3.1.6 seems the thing that I 'll need for that. But I'm
encountering a problem with it. After I added richfaces jars into the
lib
folder, my existing app starts to error out with Duplicate ID error.

The stack looks like below:
javax.faces.FacesException: duplicate Id for a component leaderPA
at


org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:432)
at


org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:255)
at


org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
at


org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
at


org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:146)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:147)
at
org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:77)
at


com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
....



Note: The only code changes I did is adding the following to web.xml, as
documented in richfaces3.1.6:

<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>

<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>

<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>



--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.