|
In the example of the radio group, I embedded the style and JavaScript elements in the page so folks could understand my thought process, and so we could compare with an EGL equivalent. Perhaps Joe will step in and create an EGL equivalent, since it's pretty trivial, and he was the first to mention how easy it is to handle radio groups in EGL.
I inserted a radio group on the page using point and click methods, and filled in the property sheet prompts for button labels and values.I did the same thing, except I was able to specify an array for the value - an array that is dynamically filled at construction time, but which could be changed at runtime. All I would have to do to add a new value would be to change the array and add a new image - I wouldn't have to change the JSP page at all. Yours would take considerably more work, since you'd have to add a whole new class.
The idea of a visual image of a Dog, Cat, Bird, and Iquana struck me, to emphasize the choice. Then came the idea of placing the four radio buttons on each corner of a box, with an image in the middle.I didn't put mine in the middle. I put mine on top. Now, since I was working on both the EGL and the JSP at the same time, it was easy to add a string variable for the image URL and bind it directly at to the image. I added an Ajax request that returned the selected value from the radio group, used that to format the new URL (this simulated business logic), and I was done. What would it take for you to actually format the URL in your server program and pass it to the HTML?
I inserted the table using point and click methods, then switched to code view and cut and pasted the radio buttons into table cells and played with the formatting, a little.
From that point on, I worked in code view. Dreamweaver supports writing HTML and style elements via intellisense prompting, and supports JavaScript with automatic code coloring. On-line help is packaged.
I normally prototype an application fairly completely with HTML, style, and JavaScript elements. Then later write server code for DB I/O and UI support.
For comparison purposes, I think it would be good to store the user's radio button choice in a table and show the stored choice when the page is initially requested. And update the database when a new choice is selected. And display an applicable completion message. Ajax could help with this.
To stress test the server request & response cycle we could press and hold down an arrow key to select each button and fire the onClick event VERY rapidly in succession.
We compare UI code, server code, development approach, and performance. Sound good?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.