Skip to main content

Problems with dojo.dropdowndatepicker widget

1 reply [Last post]
rafboard
Offline
Joined: 2007-08-23
Points: 0

Hi,i have the next problem with dojo.dropdowndatepicker widget of jmaki.

The issue is when is submit my form to the server,i can´t retrieve the values from datepicker.I get the following message from the server:

ADVERTENCIA: Parameters: Invalid chunk ignored.

On other hand i think is normal because on the declaration of the widget i haven´t any id for recognising this field:

I tried to put an Id attribute to the widget but it doesn´t work anyway.

So,what can i do to retrieve the value of this component from the server?

Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
karthikbalait
Offline
Joined: 2007-12-05
Points: 0

hi rafboard,

u can see glue.js in ur webpages folder, inside it u can find

jmaki.subscribe("*onSelect", function(args) {
jmaki.log("glue.js : onSelect request from: " + args.widgetId);
});

replace those 3 lines with the below code
jmaki.subscribe("*onSelect", function(args) {
jmaki.log("glue.js : onSelect request from: " + args.widgetId);
var targetDiv = document.getElementById('cal:name');
targetDiv.value = args.value;
});

document.getElementById('cal:name'); will get the element by id 'cal:name' cal is ur form name, then the next line targetDiv.value = args.value; will print the value in tht element

so u can place a in ur jsp page

and now u can access the value in serverside