Search:

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

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thanks Marten, this makes sense seeing the API...

    Thanks Marten, this makes sense seeing the API docs. What I was trying to accomplish was to reject with an exception message (which can be variable since I am catching a generic type of exception)....
  2. tag seems to be appending commandName?

    With the following code:

    <form:form path="cmd" commandName="cmd" action="doStuff.action" >
    <form:errors path="*" cssClass="error"/>
    ...


    In my controller if I use errors.reject("Some...
  3. Suggestions on design for multi-threaded reporting engine in Spring MVC

    I'm looking for suggestions on the following design using Spring MVC:
    1. The client asynchronously kicks off a (possibly) long-running task and requests a UID to associate with it.
    2. Server...
  4. Need help with SimpleFormController and various return types (null, view, file)

    My SimpleFormController normally processes some parameters/data and returns to an AbstractExcelView to generate an XLS file, or if there was a problem, calls showForm() to redisplay the form. This...
  5. Replies
    0
    Views
    365

    ExcelView; repeating sections?

    I'm using an existing XLS as a template with an AbstractExcelView. It's pretty easy to repeat rows of data in the template with just one fixed header (in the template). But are there any good ways...
  6. Ah yes, that makes sense, thanks for catching...

    Ah yes, that makes sense, thanks for catching that.
  7. Render a label using message source defaults?

    Using the Spring form tags, is there any way to render a label using the messagesource such that it defaults to the commandName.fieldName (like some of the other messagesource lookups do).

    For...
  8. Nevermind, got it. Needed a property of type...

    Nevermind, got it. Needed a property of type User in my FormController, then I just inject that property into my controller via config. Like this, for anyone else:



    private User user;
    ...
  9. I've looked into the source for the form tag, but...

    I've looked into the source for the form tag, but never tried to extend it. However this may be a good case to do so (or wrap it as you mention so as to not lose customization during Spring...
  10. Use an interface as command object for FormController?

    We have a User interface class. Within this interface are defined methods for inserting, deleting, updating, etc. a user. Now we implement this in several different UserImpl classes, such as...
  11. That's certainly more elegant than what I'm...

    That's certainly more elegant than what I'm doing, thank you. However, now I wish Spring would provide a cssDisabledStyle class as well for this. If I use disabled="${mode eq 'A'}" it still uses my...
  12. Form inputs; setting disabled vs enabled via annotations?

    I have a form that is reused in several different states, such as update, delete, insert. Depending on which state it is in (currently set via a "mode" object attached to the command), certain form...
  13. Bind without creating custom command object

    I have a SimpleFormController that has just two values I need to bind. Rather than creating a custom command object containing just two values, is there any built in mechanism to easily bind a few...
  14. Thread: Exception page

    by xaeryan
    Replies
    0
    Views
    451

    Exception page

    I throw exceptions from within my controller when necessary.
    They are caught and mapped to a page using web.xml:

    <error-page>
    <exception-type>java.lang.Exception</exception-type>...
  15. The setTimeout was considered as a solution and...

    The setTimeout was considered as a solution and tested (works), but it seems inelegant as there won't be a concise time that we can guarantee the form has been submit (and if we set the timeout too...
  16. WebUtils.hasSubmitParameter is false if I disable submit button

    During the onsubmit event of a form, we are disabling the submit button so the user can't click it twice (which causes all sorts of issues).
    The problem is, once disabled, the function...
  17. Replies
    0
    Views
    606

    Get connection pool info progmatically?

    I'm trying to create an admin page which can show the current number of active and idle connections in the pool. Currently, I always get 0 for both values. Here's what my datasource definition...
  18. Replies
    1
    Views
    791

    registerCustomEditor Help needed

    In my SimpleFormController, I have a custom editor I register in the initbinder to format my Float values out to two decimal places. This works fine on display of the form (well, sorta - it always...
  19. Replies
    1
    Views
    620

    OK, I tried another approach right in the JSP...

    OK, I tried another approach right in the JSP like so:



    <spring:bind path="myFractional">
    <INPUT type=text name="<c:out value="${status.expression}"/>" maxlength=10 value="<fmt:formatNumber...
  20. Replies
    1
    Views
    620

    Display bound property with two decimals

    I have a Float property in one of my beans that is bound to a form via Spring's SimpleFormController. I would like it to display two decimals at all times. A Google search isn't helping much for...
  21. Replies
    0
    Views
    590

    Creating FormWizard as an overlay?

    Is there any way to spawn a FormWizard as a (modal) overlay in a page?
    For example, in a page which lists Users, an option to "Add User" currently pops up a separate window with the...
  22. Worked like a charm, but led me to discover...

    Worked like a charm, but led me to discover another issue regarding Controller annotations. Whole different problem altogether though: http://forum.springsource.org/showthread.php?p=273457
    Thanks...
  23. Using annotations on Controllers that implement other interfaces

    I'm using the @Controller annotation for my controller components to have them auto-scanned as beans. Works fine until I get to classes that implement other interfaces (i.e. non-controller...
  24. OK good, I didn't want to post it in case it was...

    OK good, I didn't want to post it in case it was horribly in the wrong direction, but that's on the lines of what I was thinking. Thanks for your help!
  25. I think this idea might just work... I'll give...

    I think this idea might just work... I'll give it a shot when I can, but for now to conceptualize it, here's my bean config I'm envisioning for this:

    <bean id="dataSource"...
Results 1 to 25 of 50
Page 1 of 2 1 2