This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.



Jun 9, 2012, 5:00 AM
68 Posts
topic has been resolvedResolved

Using DOJO form etc. need a bit help for beginner

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer,Administrator
  • Tags:
  • Replies: 1
Hi guys.
 
I'm pretty new in lotus and I need a little push from your side cause I stuck on really stupid thing. I want to use Dojo Checkbox. Link below. And when I simply paste from tutorial this:
<xe:djCheckBox attributes>content</xe:djCheckBox>
 I got such an error : Description    Resource    Path    Location    Type
Attribute name "attributes" associated with an element type "xe:djCheckBox" must be followed by the ' = ' character.    xadasdasd.xsp    test.nsf/XPages    line 27    com.ibm.designer.domino.ide.resources.designerproblem
 
when I delete 
attributes
and have something like this:
 
<xe:djCheckBox>content</xe:djCheckBox>
I got such an error:
 
Description    Resource    Path    Location    Type
The prefix "xe" for element "xe:djCheckBox" is not bound.    xadasdasd.xsp    GeneratorAnkiet.nsf/XPages    line 27    com.ibm.designer.domino.ide.resources.designerproblem
 
And here is a question how "bound" this control ?
And one more bonus question i found something like this:
 
https://dl.dropbox.com/u/16887656/control.PNG
 
This is something like addon ? Anyone know where I can find this ?
 
Tutorial link
Jun 11, 2012, 3:53 AM
126 Posts
Re: Using DOJO form etc. need a bit help for beginner
The error for the attributes is because after the tag name attributes must follow the pattern    attributeName="value"     , I'm guessing the example put that there meaning, place what ever attributes you need here, not as something required to make the control work.
 
the bound error i'm guessing is because your using the "xe" namespace and haven't defined it yet. In XML you must define a namespace before using it. 
 
try adding: 
 
xmlns:xe="http://www.ibm.com.xsp/coreex"  as an attribute to the view on your XPage, there should already be xmlns:xp="http://www.ibm.com/xsp/core" .
 
This control and namespace are part of the controls that come from the XPages extension library, which is your next question. The link you provided, on the top of the page is a navigation tree that reads:
 
Home > Domino Designer XPages Extension Library > djCheckBox - Dojo Check Box
 
Simply click the  Domino Designer XPages Extension Library  link, this is telling you that the page you are on is inside this section and related to it. This has instructions / links for where to get it and install it etc.    openNTF.org is where we post the latest updates but it will not be as stable / tested as the link above.
 
 

This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.