Stripes-1.6 upgrade issue

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Stripes-1.6 upgrade issue

Hemang V
Hello,

I have been using stripes for all my projects. It has been a great
framework.  Recently, I encountered an issue during upgrade. When I use
Stripes-1.6.0, the default values that I set for the stripes form fields
don’t load (display)

For e.g…. The following start-date field doesn’t show the current date value
on the screen. This works fine with Stripes-1.5.7 but not with 1.6.0.

<stripes:text name="pivo.effectiveStartDate" size="12" id="date"
tabindex="1" onblur="checkdate(this)" value="<%=currdate%>" />

How do I get these stripes fields to see the default values in JSPs with
minimal code change?  Any pointers would be appreciated.

Thanks,
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: Stripes-1.6 upgrade issue

Andy Patil
Try

    <init-param>
        <param-name>PopulationStrategy.Class</param-name>
        <param-value>net.sourceforge.stripes.tag.BeanFirstPopulationStrategy</param-value>
    </init-param>

in the WEB-INF/web.xml

It works for me,

Thank You and Regards,

Andy

On Thu, Feb 11, 2016 at 3:21 PM, Hemang V <[hidden email]> wrote:
Hello,

I have been using stripes for all my projects. It has been a great
framework.  Recently, I encountered an issue during upgrade. When I use
Stripes-1.6.0, the default values that I set for the stripes form fields
don’t load (display)

For e.g…. The following start-date field doesn’t show the current date value
on the screen. This works fine with Stripes-1.5.7 but not with 1.6.0.

<stripes:text name="pivo.effectiveStartDate" size="12" id="date"
tabindex="1" onblur="checkdate(this)" value="<%=currdate%>" />

How do I get these stripes fields to see the default values in JSPs with
minimal code change?  Any pointers would be appreciated.

Thanks,
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: Stripes-1.6 upgrade issue

Hemang V
Thanks for the pointer. Actually, it seems that BeanFirst is the default
population strategy in 1.6 version. I have to explicitly change it to the
DefaultPopulationStrategy as the app was originally written in Stripes-1.2


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users