<bp:richTextarea..../> component

Hi,

I want to use bp:richTextarea component in Java Studio Creator 2 update 1, but the trouble occurred ?I don抰 see js-files needed for my work. This is the code which generate tag bp:richTextarea:

<script type="text/javascript" src="/MyApp/faces/static/META-INF/common/script.js"></script>

<script type="text/javascript">

if (typeof dojo =='undefined'){

bpui.load("/MyApp /faces/static/META-INF/dojo/dojo.js");

}

</script>

<script type="text/javascript" src="/ MyApp /faces/static/META-INF/editor/script.js"></script>

<div style="position: absolute; left: 72px; top: 120px; height: 200px; width: 550px; border: 1px solid black">

<textarea id="form1:richTextarea1" name="form1:richTextarea1" dojoType="Editor">

</textarea>

</div>

However, the scripts are generating on the server (Sun AppServer) into directory 揹omains\creator\generated\jsp\j2ee-modules\MyApp\loader\META-INF\dojo\...?br>

So I don抰 say about ?static/*?url, my application doesn抰 see variable bpui (all dojo javascripts).

How can I make this tag work correctly

[1548 byte] By [opletin] at [2007-11-26 8:31:33]
# 1

The scripts you mention are located in the project within (for example) WebApplication27/lib/complibs/ui.complib1514/ui.jar. They should reside there automatically, just by your dragging an AJAX component to the page.

Try deleting the Rich Textarea component from the page and re-adding it. If that doesn't work, try re-importing the *latest* AJAX complib first, and then re-add the Rich Textarea component. If you still have problems, see if you can get it to work in a fresh project.

mbohm at 2007-7-6 21:53:59 > top of Java-index,Development Tools,Java Tools...