Search:

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

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Hi Rohit, if you want to sort by the properties...

    Hi Rohit,
    if you want to sort by the properties of an inner bean you need to create an alias.
    See this post on stackoverflow.

    happy coding
  2. Replies
    2
    Views
    575

    Crazymodder, you should be able to control...

    Crazymodder, you should be able to control individual style of your error messages like this

    <spring:hasBindErrors name="form">
    <div class="message-error">
    <c:forEach...
  3. Replies
    3
    Views
    828

    No, you aren't doing wrong. I tried to say that...

    No, you aren't doing wrong. I tried to say that you are adding an unecessary level of indirection by wrapping atomic operations like create, update, delete into a dao interface - they are all part of...
  4. Replies
    3
    Views
    828

    Not sure why at all you wanna implement your daos...

    Not sure why at all you wanna implement your daos like that.
    There is pretty no point in implementing 'atomic' functions like create, retrieve, update, delete in daos.
    The hibernate/jpa template...
  5. <!-- Validation error messages -->
    <beans:bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
    <beans:property name="basenames">
    <beans:list>...
  6. Replies
    6
    Views
    733

    Hi amFroz, See my response over there. If...

    Hi amFroz,

    See my response over there. If you'd like we can go ahead and develop a shept frontend to your datamodel.
    You just need to handover a dataModel of 8-15 entities which should be...
  7. Hi amFroz, this is a common problem and there...

    Hi amFroz,

    this is a common problem and there is a simple solution to it:
    In the student class you need to declare the department id explicit for reference from 'itemValue'.
    Like this:

    ...
  8. Replies
    6
    Views
    733

    Hi amFroz, haven't done it before but I...

    Hi amFroz,

    haven't done it before but I wouldn't expect any serious problems mashing tiles with shept jsp/tagx. I would start from this tiles example and merge with the default shept form. Don't...
  9. Replies
    6
    Views
    733

    well as the author of shept I'm not quite...

    well as the author of shept I'm not quite unbiased about this ;-)

    While ExtJs is more an API to a datagrid form shept is meant to offer a more generic solution for building dynamic extendible...
  10. you're right shamayla, I should've read the topic...

    you're right shamayla, I should've read the topic more carefully - it's not about editing the isbn - what I assumed in my response ;-)

    Andreas
  11. <tbody>
    <c:forEach items="${books}" var="book" varStatus="status">
    <form:form action="checkout" method="post" commandName="currentBook">
    <tr align="left" class="${status.index % 2 == 0 ? 'even' :...
  12. Replies
    1
    Views
    438

    Hi, as @RequestMapping supports almost any...

    Hi,

    as @RequestMapping supports almost any method signature you can think of you can always inspect the requests parameters as you like:



    @Controller
    public class ExampleController {
    ...
  13. Replies
    1
    Views
    466

    Hi, did you configure logging at debug ...

    Hi,

    did you configure logging at debug level for the framework ?
    I guess not - you probably would use a logger instead of "System.out...."
    Well at least with a debug log you could do some...
  14. Replies
    5
    Views
    368

    Ok,

    Ok,



    <c:forEach items="${productList}" var="product" varStatus="rowStatus" >
    <TR>
    <!--Table row n -->
    <TD ALIGN="RIGHT" NOWRAP>
    ${product.upc}
    </TD>
  15. maybe because of the missing closing bracket ? ...

    maybe because of the missing closing bracket ?


    <c:out value="${test}" />
  16. Replies
    5
    Views
    368

    Hi Rana, this is a very very common scenario...

    Hi Rana,

    this is a very very common scenario and lots of people do it every day. Your ArrayList needs to be part of your form backing object. If you'd like some specific help on your code I'd...
  17. Replies
    1
    Views
    600

    No, the jsp has absolutely no knowledge about the...

    No, the jsp has absolutely no knowledge about the one or many controllers that use it for rendering the view.

    Andreas
  18. Replies
    2
    Views
    553

    Hi springredfire, If you really can't change...

    Hi springredfire,

    If you really can't change the .html you could introduce a controller for redirection


    @Controller
    public class HackyRedirect {
    @RequestMapping (value="/picture.png")
    ...
  19. a bit off-topic but autocomplete was also...

    a bit off-topic but autocomplete was also mentioned - anyone knows a number one solution for jquery autocomplete ?
    This one here is pretty neat as it has regex syntax highlighting and json key/value...
  20. Replies
    12
    Views
    1,321

    you might change content Blob to byte array:...

    you might change content Blob to byte array: byte[] - actually my solution writes byte arrays.
    Then you need to modify content writing also.

    Or even simpler - convert Blob to byte[] before...
  21. Replies
    12
    Views
    1,321

    Ok, you need to write the raw image directly...

    Ok,

    you need to write the raw image directly to the response and return void - like in my sketchy 2nd response:



    @Controller
    @RequestMapping("/images")
    public class ProductImageController {
  22. Replies
    2
    Views
    644

    Hi istanyork, I'v always been fond of jQuery...

    Hi istanyork,

    I'v always been fond of jQuery for doin client-side stuff.
    Googlin' for 'jquery pagination' offers a whealth of options what about http://plugins.jquery.com/project/pagination ?
    ...
  23. Replies
    12
    Views
    1,321

    Rodel, please read *all* of my posting and...

    Rodel,

    please read *all* of my posting and then try again.
    It doesn't help just to write its not working - please be as specific as you can !
    Have you set a breakpoint in...
  24. Replies
    12
    Views
    1,321

    ... just checked the docs on @RequestMapping ......

    ... just checked the docs on @RequestMapping ...
    and modified the answer:


    @Controller
    @RequestMapping("/images/{id}")
    public class ProductImageController {

    @Autowired
    private ProductDAO...
  25. Replies
    12
    Views
    1,321

    Hello president ;) an obvious problem from...

    Hello president ;)

    an obvious problem from your controller is that it doesn't return a Blob but a product.
    It should be more like this:


    @Controller
    @RequestMapping("/images/{id}")
    public...
Results 1 to 25 of 33
Page 1 of 2 1 2