[ 
http://issues.apache.org/jira/browse/TAPESTRY-1102?page=comments#action_12438757
 ] 
            
Greg Woolsey commented on TAPESTRY-1102:
----------------------------------------

Thanks for the quick response.  However, when I install the new snapshot you 
built and run with it's version of DoJo, I get a ton of errors and it can't 
find the AlertDialog widget any more.

First, when  my page (simple login page with one Tapestry Form component 
containing name, pwd, and a button) loads, I get these errors:

DEBUG:  DEPRECATED: dojo.lang replaced by dojo.lang.common -- will be removed 
in version: 0.5
DEBUG:  DEPRECATED: dojo.style replaced by dojo.html.style -- will be removed 
in version: 0.5
DEBUG:  DEPRECATED: addParseTreeHandler . ParseTreeHandlers are now reserved 
for components. Any unfiltered DojoML tag without a ParseTreeHandler is assumed 
to be a widget -- will be removed in version: 0.5
DEBUG:  DEPRECATED: dojo.graphics.color.Color is now dojo.gfx.color.Color. 0.5
DEBUG:  DEPRECATED: dojo.html replaced by dojo.html.* -- will be removed in 
version: 0.5
DEBUG:  DEPRECATED: addParseTreeHandler . ParseTreeHandlers are now reserved 
for components. Any unfiltered DojoML tag without a ParseTreeHandler is assumed 
to be a widget -- will be removed in version: 0.5

Which appear to come just from loading the core dojo.js file and initializing 
logging.

Then, when I try to submit the form with missing required fields, I get these 
errors instead of the validation dialog:

DEBUG:  DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate 
widget implementation for "alertdialog" in "dojo.widget,dojo.widget.validate" 
registered to namespace "dojo". Developers must specify correct namespaces for 
all non-Dojo widgets -- will be removed in version: 0.5
ERROR: 10:05:18 AM: Error validating Error : Unable to load 
https://localhost:443/hedgemon/assets/static/dojo/src/widget/templates/HtmlDialog.html
 status:404

I think the 404 is spurious - that template does not exist, but I think dojo 
went looking because it couldn't find the specified widget.

Am I missing something?

It also fails against the latest dojo 0.3.1 with different errors:
FATAL: Could not load 'dojo.html.style'; last tried '__package__.js'
FATAL: Could not load 'tapestry.namespace'; last tried '__package__.js'
FATAL: Could not load 'tapestry.form'; last tried '__package__.js'

I can be reached at greg . woolsey at gmail if you want.  I'll probably be 
asking more questions and suggesting more things, as we are committed at this 
point to moving forward with 4.1.1.


> AlertDialog doesn't trap tabs or set focus to the button
> --------------------------------------------------------
>
>                 Key: TAPESTRY-1102
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1102
>             Project: Tapestry
>          Issue Type: Bug
>          Components: JavaScript
>    Affects Versions: 4.1.1
>            Reporter: Greg Woolsey
>         Assigned To: Jesse Kuhnert
>             Fix For: 4.1.1
>
>
> The AlertDialog widget used by the validation framework has a couple of 
> navigation issues:
> 1) When it comes up, the "OK" button doesn't have the focus, but it appears 
> to the user to be the only active page element.
> 2) Users can tab and shift-tab away from the dialog and enter data in form 
> fields behind the bakground iframe.  This is non-intuitive, and almost always 
> undesired behavior.
> It appears from the parent class, DoJo's Dialog.js that giving the button a 
> tabIndex, setting it as this.tabStart, and setting initial focus to it should 
> fix these.  
> Hard-core would be to trap all keystrokes and stop any key event that wasn't 
> space or enter, but that's probably more of a hammer than is needed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to