Each question should be a new page. Typically answers should link to content in the Reference. If the answer isn't in the Reference, then it should probably be added there and then linked to from the FAQ. Also note that some of the questions are current'y too verbose and should be broken down given that they have already been categorized (ie: Validation, Internationlization, etc).
General
- How do I get the latest version of WebWork
- What are the default variables in the value stack
- How do I get access to the session
- How can I see all parameters passed into the action
- How can I get the HttpServletRequest
- Can I break up my large XWork.xml file into smaller pieces
- I'm trying to run the webwork example in the tutorial on Tomcat, and it can't instantiate the VelocityEngine
Tags
- How can I put a String literal in a Javascript call, for instance in an onChange attribute
- Why won't the 'if' tag evaluate a one char string
Inversion of Control
Validation
Internationalization
- How do I set a global resource bundle?
- How do I decouple XWork LocalizedTextUtil global resource bundle loading from serlvets
- How do I add I18N to a UI tag, like the textfield tag
- Can I add I18N outside the Action's context
Type Conversion
How do I get the latest version of Webwork and XWork from CVS?
cvs -d :pserver:guest@cvs.dev.java.net:/cvs login
(Use an empty password, just hit enter..)
cvs -d :pserver:guest@cvs.dev.java.net:/cvs checkout webwork
cvs -d :pserver:guest@cvs.dev.java.net:/cvs checkout xwork
Note: WebWork from the CVS does not compile with the latest 1.5 J2sdk. Use the stable J2sdk 1.4.2.
How do I build the latest versions XWork and Webwork?
Just go into the XWork or WebWork directories and run 'ant' (you must have ant installed and have the jars of junit and clover inside $ANT_HOME/lib)
Once you have built the xwork.jar copy it into the webwork/lib/core folder, and delete the old one.
How do I set a global resource bundle?
How do I change the error message for invalid inputted fields?
You need to create a message for that field, for example if you have a user.dob field you would use this in your messages file (see above for example on setting a global messages file):
invalid.fieldvalue.user.dob=Please enter Date of Birth in the correct format.
What i need to do to put values in a combobox. If I am using webwork2?
If i have :
#tag(Select "label='xxx '" "name='xxx'" "list=?") or #tag(combobox "label='Prioridade'" "name='inavis.avisTpPrioridade'" "list=?")
the values in this combobox, what i need to do?
Exemple:
html tag i use to do: <select..> <otpion value="" selected>XXX</option> </selct>
so...i need to do this using Webwork tags from Velocity...how can i do this??