I think that kind of complication becomes more trouble than just
implementing onActivate(), onPassivate().

On Wed, Jul 9, 2008 at 3:24 PM, Josh Canfield <[EMAIL PROTECTED]> wrote:
> Is there opposition to adding an index to the annotation so you don't have
> to use source order?
>
> @PageActiviationContext(index=2)
> private Bar b
>
> @PageActiviationContext(index=1)
> private Foo a
> Josh
>
> On Wed, Jul 9, 2008 at 2:36 PM, Igor Drobiazko <[EMAIL PROTECTED]>
> wrote:
>
>> I see a problem with multiple @PageActivationContext annotations inside a
>> page class.
>> Consider following example:
>>
>> public class Start{
>>   @PageActivationContext
>>   private Foo b;
>>
>>   @PageActivationContext
>>   private Bar a;
>> }
>>
>> When Eclipse "Sort Member Save Action" feature is enabled, the order of
>> members a and b will change. The class will look like:
>>
>> public class Start{
>>   @PageActivationContext
>>   private Bar a;
>>
>>   @PageActivationContext
>>   private Foo b;
>> }
>>
>> In this case the order of the parameters of the generated onActivate
>> handler
>> conflicts with the order of the values of the ActionLink's "context"
>> parameter specified in the template.
>>
>>
>> On Wed, Jul 9, 2008 at 8:07 PM, Francisco Manzano <
>> [EMAIL PROTECTED]> wrote:
>>
>> > I thought that its main contribution to be able to use it for multiple
>> > values,
>> > and not yet I understand why this functionality has not been implemented.
>> > So, I agree for jira.
>> >
>> >
>> >
>> > Ted Steen wrote:
>> >
>> >> At the moment you should think of the @PageActivationContext as a
>> >> convenience annotation for you to use when you only want to place a
>> >> single value in the context. Personally I think it would make more
>> >> sense if you where able to use it for multiple values.
>> >>
>> >> Maybe worth adding a JIRA for that?
>> >> For example, when multiple values are annotated they are added to the
>> >> context in alphabetical order.
>> >>
>> >> 2008/7/9 Francisco Manzano <[EMAIL PROTECTED]>:
>> >>
>> >>
>> >>> why don't ?
>> >>>
>> >>> Ted Steen wrote:
>> >>>
>> >>>
>> >>>> I dont think you can use that with multiple values as the context :/
>> >>>>
>> >>>> 2008/7/9 Francisco Manzano <[EMAIL PROTECTED]>:
>> >>>>
>> >>>>
>> >>>>
>> >>>>> Or, you can use the new @PageActivationContext  annotation for a
>> >>>>> greater
>> >>>>> simplicity
>> >>>>>
>> >>>>> Zanius
>> >>>>>
>> >>>>> Ted Steen wrote:
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>>> Just add more parameters to the activate/passivate-methods.
>> >>>>>> Or you can use (Object[] parameters).
>> >>>>>> Or you can use (EventContext context)
>> >>>>>>
>> >>>>>> The way to go for you would be to just add more parameters to the
>> >>>>>> activate/passivate-methods.
>> >>>>>>
>> >>>>>> 2008/7/9 t <[EMAIL PROTECTED]>:
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>> void onActivate(String message)
>> >>>>>>>  {
>> >>>>>>>  System.out.println("Another page is activated! The
>> >>>>>>>   message is: " + message);
>> >>>>>>>  this.passedMessage = message;
>> >>>>>>>  }
>> >>>>>>>  String onPassivate()
>> >>>>>>>  {
>> >>>>>>>  System.out.println("Another page is passivated...");
>> >>>>>>>  return passedMessage;
>> >>>>>>>  }
>> >>>>>>>
>> >>>>>>> This is the snippet that i got from t5 book on how to pass
>> parameter
>> >>>>>>> from
>> >>>>>>> first
>> >>>>>>> page to 2nd page. if i need to pass more than 1 parameter to 2nd
>> >>>>>>> pages,
>> >>>>>>> how to
>> >>>>>>> do it?
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> ---------------------------------------------------------------------
>> >>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>
>> ---------------------------------------------------------------------
>> >>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>> ---------------------------------------------------------------------
>> >>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>> ---------------------------------------------------------------------
>> >>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >>>> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >>> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>>
>> >>>
>> >>>
>> >>>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>> --
>> Best regards,
>>
>> Igor Drobiazko
>>
>
>
>
> --
> --
> TheDailyTube.com. Sign up and get the best new videos on the internet
> delivered fresh to your inbox.
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to