You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by nino martinez wael <ni...@gmail.com> on 2012/02/02 11:25:17 UTC
1.5 Behaviors
Hi
What can cause a behavior not to be processed?
I have a structure like this:
Form
--FieldSet
---inputs...
I have an appender on the fieldset which is a webmarkupcontainer. However
it never gets processed.. In this case the Form are disabled. Ive also
tried overriding the enabled property of the webmarkupcontainer it makes no
difference.
regards Nino
Re: 1.5 Behaviors
Posted by nino martinez wael <ni...@gmail.com>.
Nope.. It's just this one, although there might be in a child though..
2012/2/2 Michal Wegrzyn <mi...@onior.com>
> Are they any other behaviors attached?
>
> Best regards,
> Michal Wegrzyn
>
> > -----Original Message-----
> > From: nino martinez wael [mailto:nino.martinez.wael@gmail.com]
> > Sent: Thursday, February 02, 2012 14:00
> > To: users@wicket.apache.org
> > Subject: Re: 1.5 Behaviors
> >
> > Any clue on what it could be?
> >
> > 2012/2/2 nino martinez wael <ni...@gmail.com>
> >
> > > it's never called on the behavior and neither are isEnabled... It
> > must be
> > > something higher up the hierarchy that are stopping the behavior
> > > processing..
> > >
> > >
> > >
> > > 2012/2/2 Martin Grigorov <mg...@apache.org>
> > >
> > >> See org.apache.wicket.Component#canCallListenerInterface
> > >>
> > >> On Thu, Feb 2, 2012 at 12:25 PM, nino martinez wael
> > >> <ni...@gmail.com> wrote:
> > >> > Hi
> > >> >
> > >> > What can cause a behavior not to be processed?
> > >> >
> > >> > I have a structure like this:
> > >> >
> > >> > Form
> > >> > --FieldSet
> > >> > ---inputs...
> > >> >
> > >> > I have an appender on the fieldset which is a webmarkupcontainer.
> > >> However
> > >> > it never gets processed.. In this case the Form are disabled. Ive
> > also
> > >> > tried overriding the enabled property of the webmarkupcontainer it
> > >> makes no
> > >> > difference.
> > >> >
> > >> >
> > >> > regards Nino
> > >>
> > >>
> > >>
> > >> --
> > >> Martin Grigorov
> > >> jWeekend
> > >> Training, Consulting, Development
> > >> http://jWeekend.com
> > >>
> > >> --------------------------------------------------------------------
> > -
> > >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >> For additional commands, e-mail: users-help@wicket.apache.org
> > >>
> > >>
> > >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Added FeedbackMessage.UNDEFINED to Session
Posted by "Richard W. Adams" <RW...@UP.COM>.
How can I add a feedback message of type UNDEFINED to the session. The
session only provides methods for info, warning & error. Even though the
Javadocs for FeedbackMessages says "WARNING: This class should typically
NOT be used directly.", I tried the following in a class extending
Session. However, it didn't work:
/**
* Registers a success feedback message for this session.
* @param reporter The component reporting the message.
* @param message The message.
* @param arguments Optional format arguments, as for {@link
String#format(String, Object...)}.
*/
public void success(final Component reporter, final String message, final
Object... arguments) {
final FeedbackMessage feedback = new FeedbackMessage
(reporter, String.format(message, arguments),
FeedbackMessage.UNDEFINED);
getFeedbackMessages().add(feedback);
}
**
This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.
**
RE: 1.5 Behaviors
Posted by Michal Wegrzyn <mi...@onior.com>.
Are they any other behaviors attached?
Best regards,
Michal Wegrzyn
> -----Original Message-----
> From: nino martinez wael [mailto:nino.martinez.wael@gmail.com]
> Sent: Thursday, February 02, 2012 14:00
> To: users@wicket.apache.org
> Subject: Re: 1.5 Behaviors
>
> Any clue on what it could be?
>
> 2012/2/2 nino martinez wael <ni...@gmail.com>
>
> > it's never called on the behavior and neither are isEnabled... It
> must be
> > something higher up the hierarchy that are stopping the behavior
> > processing..
> >
> >
> >
> > 2012/2/2 Martin Grigorov <mg...@apache.org>
> >
> >> See org.apache.wicket.Component#canCallListenerInterface
> >>
> >> On Thu, Feb 2, 2012 at 12:25 PM, nino martinez wael
> >> <ni...@gmail.com> wrote:
> >> > Hi
> >> >
> >> > What can cause a behavior not to be processed?
> >> >
> >> > I have a structure like this:
> >> >
> >> > Form
> >> > --FieldSet
> >> > ---inputs...
> >> >
> >> > I have an appender on the fieldset which is a webmarkupcontainer.
> >> However
> >> > it never gets processed.. In this case the Form are disabled. Ive
> also
> >> > tried overriding the enabled property of the webmarkupcontainer it
> >> makes no
> >> > difference.
> >> >
> >> >
> >> > regards Nino
> >>
> >>
> >>
> >> --
> >> Martin Grigorov
> >> jWeekend
> >> Training, Consulting, Development
> >> http://jWeekend.com
> >>
> >> --------------------------------------------------------------------
> -
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: 1.5 Behaviors
Posted by Michal Wegrzyn <mi...@onior.com>.
You can try to check whether your behavior works without other behaviors. Even without behaviors on children - maybe there are conflicting behaviors attached to the same event?
You can also try to use a Panel for your fieldset element and place container higher in hierarchy.
Best regards,
Michal Wegrzyn
> -----Original Message-----
> From: Michal Wegrzyn
> Sent: Thursday, February 02, 2012 15:05
> To: 'users@wicket.apache.org'
> Subject: RE: 1.5 Behaviors
>
> Are they any other behaviors attached?
>
> Best regards,
> Michal Wegrzyn
>
> > -----Original Message-----
> > From: nino martinez wael [mailto:nino.martinez.wael@gmail.com]
> > Sent: Thursday, February 02, 2012 14:00
> > To: users@wicket.apache.org
> > Subject: Re: 1.5 Behaviors
> >
> > Any clue on what it could be?
> >
> > 2012/2/2 nino martinez wael <ni...@gmail.com>
> >
> > > it's never called on the behavior and neither are isEnabled... It
> > must be
> > > something higher up the hierarchy that are stopping the behavior
> > > processing..
> > >
> > >
> > >
> > > 2012/2/2 Martin Grigorov <mg...@apache.org>
> > >
> > >> See org.apache.wicket.Component#canCallListenerInterface
> > >>
> > >> On Thu, Feb 2, 2012 at 12:25 PM, nino martinez wael
> > >> <ni...@gmail.com> wrote:
> > >> > Hi
> > >> >
> > >> > What can cause a behavior not to be processed?
> > >> >
> > >> > I have a structure like this:
> > >> >
> > >> > Form
> > >> > --FieldSet
> > >> > ---inputs...
> > >> >
> > >> > I have an appender on the fieldset which is a
> webmarkupcontainer.
> > >> However
> > >> > it never gets processed.. In this case the Form are disabled.
> Ive
> > also
> > >> > tried overriding the enabled property of the webmarkupcontainer
> it
> > >> makes no
> > >> > difference.
> > >> >
> > >> >
> > >> > regards Nino
> > >>
> > >>
> > >>
> > >> --
> > >> Martin Grigorov
> > >> jWeekend
> > >> Training, Consulting, Development
> > >> http://jWeekend.com
> > >>
> > >> ------------------------------------------------------------------
> --
> > -
> > >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >> For additional commands, e-mail: users-help@wicket.apache.org
> > >>
> > >>
> > >
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: 1.5 Behaviors
Posted by nino martinez wael <ni...@gmail.com>.
Any clue on what it could be?
2012/2/2 nino martinez wael <ni...@gmail.com>
> it's never called on the behavior and neither are isEnabled... It must be
> something higher up the hierarchy that are stopping the behavior
> processing..
>
>
>
> 2012/2/2 Martin Grigorov <mg...@apache.org>
>
>> See org.apache.wicket.Component#canCallListenerInterface
>>
>> On Thu, Feb 2, 2012 at 12:25 PM, nino martinez wael
>> <ni...@gmail.com> wrote:
>> > Hi
>> >
>> > What can cause a behavior not to be processed?
>> >
>> > I have a structure like this:
>> >
>> > Form
>> > --FieldSet
>> > ---inputs...
>> >
>> > I have an appender on the fieldset which is a webmarkupcontainer.
>> However
>> > it never gets processed.. In this case the Form are disabled. Ive also
>> > tried overriding the enabled property of the webmarkupcontainer it
>> makes no
>> > difference.
>> >
>> >
>> > regards Nino
>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
Re: 1.5 Behaviors
Posted by nino martinez wael <ni...@gmail.com>.
it's never called on the behavior and neither are isEnabled... It must be
something higher up the hierarchy that are stopping the behavior
processing..
2012/2/2 Martin Grigorov <mg...@apache.org>
> See org.apache.wicket.Component#canCallListenerInterface
>
> On Thu, Feb 2, 2012 at 12:25 PM, nino martinez wael
> <ni...@gmail.com> wrote:
> > Hi
> >
> > What can cause a behavior not to be processed?
> >
> > I have a structure like this:
> >
> > Form
> > --FieldSet
> > ---inputs...
> >
> > I have an appender on the fieldset which is a webmarkupcontainer. However
> > it never gets processed.. In this case the Form are disabled. Ive also
> > tried overriding the enabled property of the webmarkupcontainer it makes
> no
> > difference.
> >
> >
> > regards Nino
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: 1.5 Behaviors
Posted by Martin Grigorov <mg...@apache.org>.
See org.apache.wicket.Component#canCallListenerInterface
On Thu, Feb 2, 2012 at 12:25 PM, nino martinez wael
<ni...@gmail.com> wrote:
> Hi
>
> What can cause a behavior not to be processed?
>
> I have a structure like this:
>
> Form
> --FieldSet
> ---inputs...
>
> I have an appender on the fieldset which is a webmarkupcontainer. However
> it never gets processed.. In this case the Form are disabled. Ive also
> tried overriding the enabled property of the webmarkupcontainer it makes no
> difference.
>
>
> regards Nino
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org