Documentation of spring form path data binding attributes - java

I've tried any number of searches looking for an actual definition/description of just what is legal as a Spring form path and I cannot find anything. i.e.
<form:select path="What can I put here?">.
The closest I've been able to find is the table on this page:
http://docs.spring.io/spring/docs/2.5.x/reference/validation.html
Table 5.1 gives "examples", but they are only examples.
I really am looking for a definitive explanation of exactly what is legal in a Spring path and also whether any of those are limited to certain versions. I realize this is edging close to asking for favorite off-site resources but I'm looking for the information or links to the official documentation that covers this, not random tutorials, so it should be on topic. I can find plenty of tutorials online but I'm looking for complete reference not a basic introduction.
I'm working on a project using spring-core-2.5.3.jar, I'd really like to find out what is possible in that version although having reference material for more current Spring versions would be good too. I don't know how possible it will be to get an upgrade of Spring done on this project unfortunately.
To be clear - I'm aware that you can access the property String getFoo() using the path "foo". That in some versions of Spring (which?) you can access the first element of String[] getBar() using "bar[0]", etc.
But what are the limitations on this, are there any other things you can do?
Does it support maps and sets?
If it's a complex thing like Map<String,List[Integer]> oof can you do oof["test"][3] as the path?.
Basically the path supports a lot more than just the simple property reading but I can't find anything telling me just what the options and limitations are. Rather than just trying things and seeing what works and hoping I think of everything I'd really like to have a comprehensive list of some kind showing me just what my options are.

Its the reference to the comand object property you want to reference by that field
so if its MyCommand.getCheddar()
you write "cheddar" in path. This is part of spring-mvc, not core spring. It uses the standard convention

Related

Parsing Javadocs into memory for use within JVM

Original Question
Are there any libraries which exist that allow you to parse a remote
HTML version of javadocs?
Aside from custom Json/Gson implementations, do any libraries exist for something like
Map<Class, Entry<Field[],Method[]>> data = Library.get("website.com/docs");
Original Goal
Load all available API calls into something I'm working on and use
reflection to make those API calls.
Original Problem
I've done countless searches and can not seem to find anything. Of
course I can do it myself, but I'd rather save myself the time if
something already exists.
Solution: I've created something to download the javadocs, parse them, and store them into the memory value defined above in the original question section.
If anyone approaches this question aiming to find the same thing, feel free to comment or message me.

Evernote: Get a list of all edits

I am trying to develop a simple statistics tool to analyse various behaviours of collaborators within an Evernote Notebook using the Evernote Java API.
I need the informations which user edited which note and when.
Even though the documentation is quite good, I am still unable to find the required functionality inside the api.
(TLDR:)
Is there a way to access a list of edits of a evernote note using the API?
I am not bound to using the Java SDK so if there is a way, which is limited to using another language, it would be no problem to switch.
Andreas - Did you look into these methods in the API?
NoteStore.GetNote and NoteStore.getNoteApplicationData
It sounds like this would be a decent place to start at the very least. I cannot say for certain if this will return everything you are looking for though.
I hope this helps!
I'm not exactly sure what you are looking for but NoteStore#listNoteVersions might be the one you want. You can get a list of NoteVersionId and then use another API called NoteStore#getNoteVersion to get metadata to see which note is updated when.
Note that the API is probably only for premium accounts.

What does the createTable for DynamoDB in Java with a column containing a JSON value?

I am attempting to use the Java/JSON examples located at this web page (which describes the introduction of JSON as a native type to DynamoDB). And while I understand the examples presented on the page, there is no place on the page showing how to go about defining the "people" table itself in Java.
I did find this link talking in the area. However, it appears to have been asked and answered PRIOR to the article above introducing the "official" version of the new API. And even reviewing the article didn't give me enough clues to figure it out myself.
BTW, I am NOT able to use the "AWS Toolkit for Eclipse" as must use the results of this in IntelliJ+Scala-Plugin using SBT.
Any guidance on this would be greatly appreciated.

How to extract url path and query parameters from JSF 2.2?

I'm new to JSF.
I have two use cases.
1: URL: https://site.com/context/part/{partId}
2: URL: https://site.com/context/register-token?tokenType=xxxxxx&token=xxxxx
in each of these cases i'd like to extract the variable information, execute code in a java class (scoped bean/#PostConstruct, i presume) then display appropriate content based on the values.
I'm sure this is pretty straight forward in JSF and I have seen quite a few nice suggestions on how to do pieces of these, but they seem to not be without controversy, so I can't say they're the correct way due to my ignorance. Additionally there seems to be significant enough changes in 2.2 the older posts could be out of date as far as "correctness" goes. Lastly there doesn't seem to be a guide (that I can find) that specifically talks to these workflows specifically in 2.2.
Can anyone provide me a semi comprehensive "correct" way to do these things in JEE7/JSF2.2?
Correct can be subjective I know, but my thinking though this seems rudimentary enough that in this case a vanilla happy path suggestion would be enough.
Much appreciated, thanks.
Finishing comment from above as the last issue has been resolved...
For workflow 1: i found this and it worked: http://www.oracle.com/technetwork/articles/java/jsf22-1377252.html
But it seemed limited to query params.
For workflow 2: I'm using prettyfaces and i was able to get it to work ~sort-of~ by using this (Section 3.6): http://ocpsoft.org/docs/prettyfaces/3.3.3/en-US/html/Configuration.html#config.actions
My web assets not resolving issue was resolved, by using this tip given by #chkal: PrettyFaces using mapped urls and actions, i lose all my stylings.
This suggestion pushed me over the edge to abandon a pure JSF solution and use pretty faces especially since im going to lean towards workflow 2 more often than not: Should I use f:event or action element in PrettyFaces?

Get help in Eclipse on Java keywords

Is there a way to get put the cursor in a Java keyword and get help for that keyword? I know it works for apis, but what about the language itself.
I found a feature request for this at https://bugs.eclipse.org/bugs/show_bug.cgi?id=197903
Not without some plugin (if any even exists). Maybe just check official documentation (ex. http://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html as a starting point). There really arent that many keywords, and they are fixed (at least per version, unlike classes, methods, etc.). Wikipedia has a page that also includes a brief summary at http://en.wikipedia.org/wiki/List_of_Java_keywords#List.

Categories