Yep, there will be limitations for some code, but there are varying levels of debug and most include line numbers.
On 2/10/07, James Carman <[EMAIL PROTECTED]> wrote:
Javassist can only get the line number if it was compiled with debug turned on, correct? This all sounds pretty cool. I can't wait to find a bit of time to play around with T5! On 2/9/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Yep, I was pretty sure that wouldn't last. Fortunately, Javassist has > the ability to get at the actual line number. I'm just finishing up > the changes so that the default presentation order is derived from the > order of the getter methods. And even before, there was an @Order > override. > > In addition, you can gain easy access to the BeanEditorModel and the > PropertyEditModels within, and directly set the order as you please. > > There's corresponding GridDataModel / ColumnModel and I expect to roll > them together at some point. > > What nifty here is that the Grid component can be fed a list of > objects and will obtain the model for the first one and display > everything with *no configuration*. It intuits the correct column > order, the correct column titles, etc. And then you can drop in and > start customizing, re-ordering, etc. > > On 2/9/07, James Carman <[EMAIL PROTECTED]> wrote: > > From the JavaDocs for Class.getMethods(): > > > > "The elements in the array returned are not sorted and are not in any > > particular order." > > > > However, we noticed that they usually come back in declaration order, > > but that's not guaranteed across JVMs. > > > > On 2/9/07, James Carman <[EMAIL PROTECTED]> wrote: > > > You're not guaranteed that the getters will come back in order I don't > > > think. And, I wouldn't recommend using that convention, because some > > > IDEs allow you to reorder everything (alphabetically) to keep it in a > > > consistent state. I like to keep my code that way. What Trails does > > > to let you specify the order is to add in annotations to the getters > > > to provide metadata for the property. So, you might have > > > @PropertyDescriptor(sortOrder=1) or something like that. What I > > > wanted to do was create a ClassMetadata pipeline which would allow you > > > to plug in any metadata "decorators" you wanted (annotation-based, > > > property files-based, etc.). > > > > > > On 2/9/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > > > Just finished a first pass (no sorting) Grid component, comparable to > > > > contrib:Table. More default CSS gives it a bit of a "Digg" look, and > > > > I largely copied Digg's pager (and put it at the bottom, where it > > > > belongs). > > > > > > > > Fun little things: a block parameter for when the table is empty. > > > > Makes it much easier to handle the case where table may or may not > > > > have data. > > > > > > > > Needs a bit of refinement but I think it's good to go. I haven't > > > > tackled sorting yet. > > > > > > > > Boy this stuff is fast. 69 pages x 25 rows per page X 7 columns and > > > > you can't even detect the refresh (of course, all the data is already > > > > in memory). Llfe is good. > > > > > > > > Next up, I'm going to figure out how to get the default order in the > > > > BeanEditor and Grid to be the order the properties are defined in the > > > > Java class (rather than alphabetically). I believe Trails already > > > > does this. > > > > > > > > I'm going to be putting my JavaScript thinker hat on soon. > > > > > > > > -- > > > > Howard M. Lewis Ship > > > > TWD Consulting, Inc. > > > > Independent J2EE / Open-Source Java Consultant > > > > Creator and PMC Chair, Apache Tapestry > > > > Creator, Apache HiveMind > > > > > > > > Professional Tapestry training, mentoring, support > > > > and project work. http://howardlewisship.com > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Howard M. Lewis Ship > TWD Consulting, Inc. > Independent J2EE / Open-Source Java Consultant > Creator and PMC Chair, Apache Tapestry > Creator, Apache HiveMind > > Professional Tapestry training, mentoring, support > and project work. http://howardlewisship.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
