Hi, Can any body help me out in this here is my problem Ihave two portlets 1 Task list portlet 2 Workallocation portlet I have added Task list portlet and working on it here in xhtml ihave mentioned the id for input box as ownerline1 <td align="left" valign="middle" nowrap="true"> <xforms:input id="ownerline1" ref="instance('main-instance')/root/inputdata/giownline1" incremental="true" xxforms:maxlength="35" xxforms:size="30"> Iam passing one value into this id in javascript (as it is TASKLIST Portlet which iam referring as input-_TASKLIST_WAR_ops_ownerline1) Problem occurs here when i logged in with some different user and ihave added Workallocation portlet and working on it Then suddenly the ids of Task list portlet changes to input-_Workallocation_WAR_ops_ownerline1 which is previously input-_TASKLIST_WAR_ops_ownerline1 how can i make a static portlet reference to the ids..please help me as this is very urgent.... Thanks and Regards, K Gopikrishna Reddy This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person. |
Administrator
|
This seems to be more of a general Java portlet question.
Portlet containers must prepend a namespace to element ids, because element ids must remain unique in an HTML page. This is why your id looks funny now, but that is by design, and by the JSR-168 specification. But you don't say how you are trying to reach that id. Is it in Java, JavaScript? Please provide more details. -Erik On Aug 12, 2008, at 12:31 AM, Reddy, Gopikrishna wrote: > Hi, > > Can any body help me out in this here is my problem > > Ihave two portlets > > 1 Task list portlet > > 2 Workallocation portlet > > > I have added Task list portlet and working on it here in xhtml > ihave mentioned the id for input box as ownerline1 > > <td align="left" valign="middle" nowrap="true"> > > <xforms:input id="ownerline1" ref="instance('main-instance')/root/ > inputdata/giownline1" incremental="true" > > xxforms:maxlength="35" xxforms:size="30"> > > Iam passing one value into this id in javascript (as it is TASKLIST > Portlet which iam referring as input-_TASKLIST_WAR_ops_ownerline1) > > Problem occurs here > > when i logged in with some different user and ihave added > Workallocation portlet and working on it > > Then suddenly the ids of Task list portlet changes to input- > _Workallocation_WAR_ops_ownerline1 which is previously input- > _TASKLIST_WAR_ops_ownerline1 > > > how can i make a static portlet reference to the ids..please help me > as this is very urgent.... > > > > Thanks and Regards, > > K Gopikrishna Reddy > > > > > This e-mail (and any attachments), is confidential and may be > privileged. It may be read, copied and used only > by intended recipients. Unauthorized access to this e-mail (or > attachments) and disclosure or copying of its > contents or any action taken in reliance on it is unlawful. > Unintended recipients must notify the sender immediately > by e-mail/phone & delete it from their system without making any > copies or disclosing it to a third person. > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Iam trying to reach id as follows in javascript
ORBEON.xforms.Document.setValue(('input-_TASKLIST_WAR_ops_ownerline1'),y); Please let me know how can i overcome this. Thanks and Regards, K Gopikrishna Reddy -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] Sent: Tuesday, August 12, 2008 10:16 PM To: [hidden email] Subject: [ops-users] Re: Re:Ids changing Dynamically This seems to be more of a general Java portlet question. Portlet containers must prepend a namespace to element ids, because element ids must remain unique in an HTML page. This is why your id looks funny now, but that is by design, and by the JSR-168 specification. But you don't say how you are trying to reach that id. Is it in Java, JavaScript? Please provide more details. -Erik On Aug 12, 2008, at 12:31 AM, Reddy, Gopikrishna wrote: > Hi, > > Can any body help me out in this here is my problem > > Ihave two portlets > > 1 Task list portlet > > 2 Workallocation portlet > > > I have added Task list portlet and working on it here in xhtml > ihave mentioned the id for input box as ownerline1 > > <td align="left" valign="middle" nowrap="true"> > > <xforms:input id="ownerline1" ref="instance('main-instance')/root/ > inputdata/giownline1" incremental="true" > > xxforms:maxlength="35" xxforms:size="30"> > > Iam passing one value into this id in javascript (as it is TASKLIST > Portlet which iam referring as input-_TASKLIST_WAR_ops_ownerline1) > > Problem occurs here > > when i logged in with some different user and ihave added > Workallocation portlet and working on it > > Then suddenly the ids of Task list portlet changes to input- > _Workallocation_WAR_ops_ownerline1 which is previously input- > _TASKLIST_WAR_ops_ownerline1 > > > how can i make a static portlet reference to the ids..please help me > as this is very urgent.... > > > > Thanks and Regards, > > K Gopikrishna Reddy > > > > > This e-mail (and any attachments), is confidential and may be > privileged. It may be read, copied and used only > by intended recipients. Unauthorized access to this e-mail (or > attachments) and disclosure or copying of its > contents or any action taken in reliance on it is unlawful. > Unintended recipients must notify the sender immediately > by e-mail/phone & delete it from their system without making any > copies or disclosing it to a third person. > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |