• Anonymous
  • Login
  • Register
XPages Extension Library - Defect: Dialog Control with computed ID in a CC

Created on Jul 5, 2012
Created by Jan Christian Krüger
Status Submitted
Release 8.5.3.20120605-0921

Scope: I want to use a dialog control in a CC with a computed id.

 

I have a dialog control in a CC. The CC has a custom property "dialogID" and the id of the dialog control is computed:

 

<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex">
<xe:dialog id="${javascript:compositeData.dialogId}">
EMPTY DIALOG
</xe:dialog>
</xp:view>

My Xpage has is simple. I've set the custom property "dialogId" of my CC to "testId" and put a button on the Xpage which should show the dialog:

 

<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xc="http://www.ibm.com/xsp/custom" xmlns:xe="http://www.ibm.com/xsp/coreex">
<xp:button value="Label" id="button1">
<xp:eventHandler event="onclick" submit="true" refreshMode="complete">
<xp:this.action><![CDATA[#{javascript:getComponent("testId").show()}]]></xp:this.action>
</xp:eventHandler></xp:button>
<xc:ccDialogTest dialogId="testId"></xc:ccDialogTest>
</xp:view>

This is the error message when I click on the button:

Error while executing JavaScript action expression
Script interpreter error, line=1, col=24: Error calling method 'show()' on java class  com.ibm.xsp.extlib.component.dialog.UIDialog'
Cannot create a view with the initial tag testid as there is no component that id.

It works when I use a static id for the dialog control.

 

 




Taken Actions by Owners

No actions have been taken yet.


Documents
     
Creation Date
Author
Subject
Jul 5, 2012 Jan Christian Krüger Dialog Control with computed ID in a CC
Jul 5, 2012 Maire Kehoe     Response: Dynamic controls need IDs determined at compile time
     
In this field you can enter the actual defect.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
In this field owners can describe what they have done or want to do.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.