i am newbie in ajax jmaki
i am using netbeans id. i install all required plugins and run a project successfully.
Now i want ti get value of widget. is possible? if yes how can it do it?
early thanks for reply
With widgets there should always a public function called getValue which will return the current value of the widget. You can get this by using either using your glue.js to a simple on click etc.. from within your form.
var dpWidget = jmaki.getWidget("dp1"); // dp1 is the uuid of the widget
var widgetValue = dpWidget.getValue();
From here there are several ways to go about getting it into your form. Some people use hidden fields and submit like a normal form. Others create an async call using jmaki.doAjax. If you look at the componnent.js file of the dojo.combox widget you will see the getValue function.Let me know if this helps you out. I can post more examples if you need them.
Which widget specifically are you wanting to get the value of?
combo box, editor
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.