Fórum
Liferay Liferay Faces adds portlet id as a prefix to component id and nam
Chaminda Amarasinghe, modificado 11 Anos atrás.
Liferay Liferay Faces adds portlet id as a prefix to component id and nam
New Member Postagens: 22 Data de Entrada: 16/12/12 Postagens Recentes
Hi All,
May be this is requried, but I see that liferay / liferay faces adds portlet id to all of jsf componet id and name field.
For example if i have a button as follows in xhtml
<h:commandButton id"btt_id">
which produces html as follows.
<button id="A2930:btt_id">
I think "A2930" is the portlet Id, I need to know is there a way to aboid that prefix or set my own one? because it will leads to fail my funtional tests (WebDrive), where I find the elements by ID, or name. At least if this Id is a constant in any environment / any jsf implementation, then that is fair enough
Thanks
Chaminda
May be this is requried, but I see that liferay / liferay faces adds portlet id to all of jsf componet id and name field.
For example if i have a button as follows in xhtml
<h:commandButton id"btt_id">
which produces html as follows.
<button id="A2930:btt_id">
I think "A2930" is the portlet Id, I need to know is there a way to aboid that prefix or set my own one? because it will leads to fail my funtional tests (WebDrive), where I find the elements by ID, or name. At least if this Id is a constant in any environment / any jsf implementation, then that is fair enough
Thanks
Chaminda
Neil Griffin, modificado 11 Anos atrás.
RE: Liferay Liferay Faces adds portlet id as a prefix to component id and n
Liferay Legend Postagens: 2655 Data de Entrada: 27/07/05 Postagens Recentes
The prefix is necessary in order to namespace forms for multiple portlets on a portal page. But you can set your own prefix by following the instructions in this post: http://www.liferay.com/community/forums/-/message_boards/view_message/18667360#_19_message_18709839