<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to set the ID an Ivy Primefaces Component?</title><link>https://answers.axonivy.com/questions/1443/how-to-set-the-id-an-ivy-primefaces-component</link><description>&lt;p&gt;I have a form containing a compontent.
The form has the html ID "form" and the table in the component has the ID "table".
I am not able to set an ID on the component, or to omit the components ID.&lt;/p&gt;
&lt;p&gt;Therefore, if I want to update the table in the component it does not work.
The reason for this is, that the tables ID is not "form:table" as expected, but "form:j_id_1j_1_1_2p:table".&lt;/p&gt;
&lt;p&gt;How can I set or omit the components ID?&lt;/p&gt;
&lt;p&gt;Thanks for your inputs.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1443/how-to-set-the-id-an-ivy-primefaces-component" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 24 Aug 2015 15:58:43 -0400</lastBuildDate><item><title>Comment by Marcel von Wyl on Barbara Brugger's answer</title><link>https://answers.axonivy.com/questions/1443/how-to-set-the-id-an-ivy-primefaces-component#1447</link><description>&lt;p&gt;well, thats works. however, the id attribute is not proposed in the code completion, why i thought, this won't work. maybe the ivy team could include this to make it clear.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marcel von Wyl</dc:creator><pubDate>Mon, 24 Aug 2015 15:58:43 -0400</pubDate><guid>https://answers.axonivy.com/questions/1443/how-to-set-the-id-an-ivy-primefaces-component#1447</guid></item><item><title>Answer by Barbara Brugger</title><link>https://answers.axonivy.com/questions/1443/how-to-set-the-id-an-ivy-primefaces-component/1446</link><description>&lt;p&gt;You can just add the id where you include the component. Here is an example from the HTML Demos (ComponentDemo.xhtml) where an id was added:
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/2015-08-24_15h12_24.png"&gt;&lt;/p&gt;
&lt;p&gt;This should also works with a table within the component. So it should be possible to update it without any problem.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Barbara Brugger</dc:creator><pubDate>Mon, 24 Aug 2015 15:21:40 -0400</pubDate><guid>https://answers.axonivy.com/questions/1443/how-to-set-the-id-an-ivy-primefaces-component/1446</guid></item></channel></rss>