[Opensource] transition names can't contain "."
larry hamel
expresso at codeguild.com
Sat Jan 18 21:46:39 PST 2003
button names come in from the IE browser like
button_promptLogin.y
button_promptLogin.x
so the code you mention is to strip off the tailing part. it is essential in the current "magic button params" parsing.
I changed the test to be tighter, i.e., test for trailing ".y" & ".x" instead of truncating any "."
/**
* button names come in from the browser like
button_promptLogin.y
button_promptLogin.x
cut off those .x, .y trailers
*/
if (buttonName.endsWith(".x") ) {
buttonName = buttonName.substring(0, buttonName.length() - 2);
}
if (buttonName.endsWith(".y")) {
buttonName = buttonName.substring(0, buttonName.length() - 2);
}
larry
At 08:14 PM 1/16/2003, Michael Rimov wrote:
>At 08:04 AM 1/10/2003 -0600, you wrote:
>>I'm getting exceptions when I name a transition with a "." in the name. I
>>believe the issue lies at ServletControllerRequest.addButtonParams(), where
>>the code is:
>>if (buttonName.indexOf(".") > 0) {
>> buttonName = buttonName.substring(0,
>> buttonName.indexOf("."));
>>}
>
>Mike,
>
>Admittedly, I'm not sure why the button name was parsed like that, but its possible that there could be some 'feature' in there that I'm missing. I've tagged it in the 'known bugs' list for now until we can figure it out better.
>
> -Mike
>
>
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/
More information about the Opensource
mailing list