bean-first

View: New views
6 Messages — Rating Filter:   Alert me  

bean-first

by Mike McNally-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Has it ever been considered to add some sort of "bean-first" option on
a per-tag basis, to allow bean-first population selectively for tags
in a form?  I find that I generally like request-first population for
most forms in my application, but every once in a while there's a
field that needs bean-first binding instead.  It's kind-of a pain to
work around that manually, as I find that I need to change the tag to
a plain HTML <input> tag but also sneak in the Stripes tag (for text
inputs at least) so that I correctly get metadata for the form.


--
Turtle, turtle, on the ground,
Pink and shiny, turn around.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-users mailing list
Stripes-users@...
https://lists.sourceforge.net/lists/listinfo/stripes-users

Re: bean-first

by Brandon Atkinson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Something like this?

http://www.stripesbook.com/blog/index.php?/archives/29-Stripes-Tip-Use-the-Bean-First-Population-Strategy.html

On Mon, Oct 19, 2009 at 2:24 PM, Mike McNally <emmecinque@...> wrote:
Has it ever been considered to add some sort of "bean-first" option on
a per-tag basis, to allow bean-first population selectively for tags
in a form?  I find that I generally like request-first population for
most forms in my application, but every once in a while there's a
field that needs bean-first binding instead.  It's kind-of a pain to
work around that manually, as I find that I need to change the tag to
a plain HTML <input> tag but also sneak in the Stripes tag (for text
inputs at least) so that I correctly get metadata for the form.


--
Turtle, turtle, on the ground,
Pink and shiny, turn around.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-users mailing list
Stripes-users@...
https://lists.sourceforge.net/lists/listinfo/stripes-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-users mailing list
Stripes-users@...
https://lists.sourceforge.net/lists/listinfo/stripes-users

Re: bean-first

by Mike McNally-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No, not like that.  I want request-first most of the time, because I
find that in general that makes more sense (for me and my application;
I'm sure that's not true for everybody).  However, for a very few form
fields, I'd like the decision to be made with bean-first priority.


On Mon, Oct 19, 2009 at 1:42 PM, Brandon Atkinson
<brandon.n.atkinson@...> wrote:

> Something like this?
> http://www.stripesbook.com/blog/index.php?/archives/29-Stripes-Tip-Use-the-Bean-First-Population-Strategy.html
>
> On Mon, Oct 19, 2009 at 2:24 PM, Mike McNally <emmecinque@...> wrote:
>>
>> Has it ever been considered to add some sort of "bean-first" option on
>> a per-tag basis, to allow bean-first population selectively for tags
>> in a form?  I find that I generally like request-first population for
>> most forms in my application, but every once in a while there's a
>> field that needs bean-first binding instead.  It's kind-of a pain to
>> work around that manually, as I find that I need to change the tag to
>> a plain HTML <input> tag but also sneak in the Stripes tag (for text
>> inputs at least) so that I correctly get metadata for the form.
>>
>>
>> --
>> Turtle, turtle, on the ground,
>> Pink and shiny, turn around.
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Stripes-users mailing list
>> Stripes-users@...
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@...
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>



--
Turtle, turtle, on the ground,
Pink and shiny, turn around.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-users mailing list
Stripes-users@...
https://lists.sourceforge.net/lists/listinfo/stripes-users

Re: bean-first

by Matt White-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Oct 19, 2009 at 2:42 PM, Brandon Atkinson
<brandon.n.atkinson@...> wrote:

> Something like this?

Freddy -

I can understand where that would be useful at times, but what's the
benefit in making that default in 1.6?

- Matt

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-users mailing list
Stripes-users@...
https://lists.sourceforge.net/lists/listinfo/stripes-users

Re: bean-first

by Freddy D. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Matt,

> Freddy -
>
> I can understand where that would be useful at times, but what's the
> benefit in making that default in 1.6?

Because, judging by the questions posted on this mailing list, more often
than not, the BeanFirstPopulationStrategy is the behavior that users
expect: use the request parameters, and let you override them by setting
action bean properties.

Cheers,
Freddy
http://www.stripesbook.com



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-users mailing list
Stripes-users@...
https://lists.sourceforge.net/lists/listinfo/stripes-users

Re: bean-first

by Mike McNally-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well I won't argue that my preference is universally correct, and I'm
fine with having to set the global setting as necessary.

However, that brings me back to my original question: what about
allowing override on a per-field (or, less desirable to me, per-form)
basis?  That could go either way of course.

On Mon, Oct 19, 2009 at 3:44 PM, Freddy Daoud <xf2697@...> wrote:

> Hi Matt,
>
>> Freddy -
>>
>> I can understand where that would be useful at times, but what's the
>> benefit in making that default in 1.6?
>
> Because, judging by the questions posted on this mailing list, more often
> than not, the BeanFirstPopulationStrategy is the behavior that users
> expect: use the request parameters, and let you override them by setting
> action bean properties.
>
> Cheers,
> Freddy
> http://www.stripesbook.com
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@...
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>



--
Turtle, turtle, on the ground,
Pink and shiny, turn around.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-users mailing list
Stripes-users@...
https://lists.sourceforge.net/lists/listinfo/stripes-users