Search:

Type: Posts; User: mbeards; Keyword(s):

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,263

    Yep, pass true as the 2nd argument to...

    Yep, pass true as the 2nd argument to CustomDateEditor's constructor
  2. You must be using passing an existing model to...

    You must be using passing an existing model to your ModelAndView constructor. I'm instantiating my new ModelAndView with only the view name. Then, I can add to the empty model if I choose to instead...
  3. Replies
    3
    Views
    1,263

    Use...

    Use org.springframework.beans.propertyeditors.CustomDateEditor

    In your controller:


    protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception
    {
    ...
  4. Replies
    16
    Views
    2,454

    You only have to write property editors for...

    You only have to write property editors for objects that Spring doesn't know how to bind from the HTML view for you.

    API Documentation

    You'll probably find yourself defining custom date editors...
  5. Replies
    3
    Views
    1,080

    For non-form pages (that is, pages that don't...

    For non-form pages (that is, pages that don't need to gather and process user input), I just use a single MultiActionController.

    For example, if you have something like:

    <a...
  6. I've done this before without issue.

    I've done this before without issue.


    <bean id="someController" class="SomeControllerClass">
    <property name="successView" value="redirect:step2.html" />
    ...
    </bean>


    protected...
  7. Replies
    3
    Views
    2,470

    I think you'll either have to use JavaScript to...

    I think you'll either have to use JavaScript to select the appropriate options, or you'll need to write your own loop to create the select/option list instead of using the Spring JSP tag so that you...
  8. Replies
    3
    Views
    1,080

    HTML forms aren't really designed to work this...

    HTML forms aren't really designed to work this way... You could mess around with JavaScript and hidden input fields... Why use a form at all?

    Why not just use the links to direct to the correct...
  9. You would bind to the "properties" attribute of...

    You would bind to the "properties" attribute of your WorkStep object you're using as the command class.

    The name for the textarea tag would be the same as it is for the text input tag (...
  10. Replies
    16
    Views
    2,454

    You can create a custom...

    You can create a custom org.springframework.beans.propertyeditors.ClassEditor for your Section class to translate a identifying string value from the HTML page into a Section instance. This is...
  11. Cheschu, What transaction management are you...

    Cheschu,

    What transaction management are you using?

    I've had success with the following:

    Set up a bean with org.springframework.jdbc.datasource.DataSourceTransactionManager as its class.
    ...
  12. Replies
    3
    Views
    1,035

    An update: I had previously tried setting...

    An update:

    I had previously tried setting ServletRequestDataBinder's bindEmptyMultipartFiles to false without success (it only worked when there were binding errors, but not when there were no...
  13. I don't believe Commons Validator can work that...

    I don't believe Commons Validator can work that way. There is a one-to-one mapping between command object and <form> tag in validator.xml.

    You could use your "attr" objects as command objects for...
  14. It looks like you've told Commons Validator to...

    It looks like you've told Commons Validator to validate a wirelessDevicePhysicalAttrForm object but your command object that you're sending to it is wirelessDevice.
  15. Replies
    3
    Views
    1,035

    I have a work-around in place for this issue and...

    I have a work-around in place for this issue and asked if anyone had any better ideas, but got no replies. See http://forum.springframework.org/showthread.php?t=44615

    I'm using the same form for...
  16. Replies
    2
    Views
    840

    You can try:

    You can try:

    <form name="account">
    <field property="accountNumber" depends="required">
    <arg position="0" key="user.required">
    </field>
    <field property="user.username"...
  17. Replies
    0
    Views
    1,007

    Edit form with file upload

    Hello All,
    I'm wondering if there is a more elegant solution to this than I've come up with.

    I have a command class with a byte[] field for an image which is "optional". WebDataBinder seems to...
  18. Assuming your database looks something like: ...

    Assuming your database looks something like:

    CREATE TABLE Model
    (
    Model_Id SERIAL PRIMARY KEY,
    Model_Code VARCHAR(16) NOT NULL UNIQUE
    );

    CREATE TABLE Henkaten
    (
  19. Replies
    1
    Views
    1,305

    Troubles with Velocity Toolbox

    I can't seem to get Velocity Toolbox set up correctly. I'm using VelocityLayoutViewResolver with VelocityLayoutView as my viewClass (which extends VelocityToolboxView).

    I am successfully using the...
Results 1 to 19 of 19