Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem using uppercase ids and ScreenWrapper #9

Closed
GoogleCodeExporter opened this issue Apr 14, 2015 · 7 comments
Closed

Problem using uppercase ids and ScreenWrapper #9

GoogleCodeExporter opened this issue Apr 14, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create an empty project with project generator
2. In index.crux.xml, rename 'nameTextBox' element to 'UFTextBox' (if you
modify MyController class, line 23, from Screen.get("nameTextBox"... to
Screen.get("UFTextBox"...; the code will work just fine)
3. Create MyScreen interface, which extends ScreenWrapper, and add method
public TextBox getUFTextBox();.
4. Modify MyController class, adding @Create protected MyScreen screen.
5. Modify, again, MyController class, where it's written: 

TextBox textBox = Screen.get("UFTextBox", TextBox.class);

you change it to:

TextBox textBox = screen.getUFTextBox();

6. Deploy the .war on a tomcat (I used 6.0.18 on Windows Vista Business BR,
JDK 1.6)
7. Try running the web application, and you will receive an error in a
Javascript's alert window.

What is the expected output? What do you see instead?
The expected output would be the same as when I use 'Screen.get("name")'.
However, the output is an error if I use the ScreenWrapper interface.

What version of the product are you using? On what operating system? On
what Browser?
I am using CRUX-1.0.0-RC3, on an Vista Business - pt_BR, and the browser is
a Firefox 3.5.7.

Please provide any additional information below.
Found this issue last month in a code to retrieve the states (UFs) from a
Web Service. I tried to create a ListBox named "UFListBox", and used the
ScreenWrapper interface... I had to rename it to uFListBox, and it did this. 


Original issue reported on code.google.com by brunodep...@gmail.com on 1 Mar 2010 at 6:43

@GoogleCodeExporter
Copy link
Author

Thanks for report... we are planing that fix to 2.0.1 release.

Original comment by tr_busta...@yahoo.com.br on 2 Mar 2010 at 11:27

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Original comment by tr_busta...@yahoo.com.br on 2 Mar 2010 at 11:28

  • Added labels: CruxCore

@GoogleCodeExporter
Copy link
Author

Original comment by tr_busta...@yahoo.com.br on 2 Mar 2010 at 12:32

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Wow, fixed pretty fast (-: 

Original comment by brunodep...@gmail.com on 2 Mar 2010 at 12:58

@GoogleCodeExporter
Copy link
Author

Original comment by tr_busta...@yahoo.com.br on 10 Mar 2010 at 11:26

  • Added labels: Milestone-Release2.0.1

@GoogleCodeExporter
Copy link
Author

Original comment by tr_busta...@yahoo.com.br on 15 Mar 2010 at 6:43

  • Added labels: Milestone-2.1.0

@GoogleCodeExporter
Copy link
Author

Original comment by gessedafe@gmail.com on 17 Mar 2010 at 1:13

  • Changed state: Verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant