Re: Handle selection changing on Palette

2011-06-19 Thread Duy Do

Hi Andrea,

It works now. Thanks for your help.

Cheers,
Duy

On 6/18/11 7:55 PM, Andrea Del Bene wrote:

HI,

have you tried with AjaxFormComponentUpdatingBehavior? As Palette's 
JavaDoc says:


 Ajaxifying the palette: The palette itself cannot be ajaxified 
because it is a panel and therefore does not receive any javascript 
events. Instead ajax behaviors can be attached to the recorder 
component which supports the javascript onchange event. The behavior 
should be attached by overriding newRecorderComponent() Example:


  Form form=new Form(...);
  Palette palette=new Palette(...) {
protected Recorder newRecorderComponent()
{
  Recorder recorder=super.newRecorderComponent();
  recorder.add(new AjaxFormComponentUpdatingBehavior(onchange) 
{...});

  return recorder;
}
  } 


Hi Wicketers,

How can I handle selection changing on Palette? I would like to save 
item into database once it is selected from Available list.


Thanks,
Duy





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



facebook like notification

2011-06-19 Thread Noven
Hi All.. 

Newbie need guide , I just registered and this is my first post. 

I am facing problem about creating a facebook like notification.
Like if your friend tag someone in your photos, there will be a 
notification appeared on your facebook page. 

My problem actually, I can't manage the user session/application state. 
I have successfully presented my feedback message into jGrowl like here

The real scenario is : 
There are 2 role of user in my application, a user and a supervisor.
When the user create something via a form, a notification appeared on 
the supervisor page lively. 

My question is how I can trigger the notification (which is a 
feedback message) appears on the supervisor page. Where I have to put my
code, override some method in wicket application class? 

I am sorry if there is a similar question like mine before. 

Thanks, 
Noven 

Re: facebook like notification

2011-06-19 Thread julien roche AKA indiana_jules
Hi,

I think you need a push approach. I suggest you to use the Atmosphere
framework that enable a push channel between the client and the server with
WebSocket (of HTML5). If Websocket doesn't work, Atmosphere uses the Comet
approach.

See:
http://jfarcand.wordpress.com/2010/10/07/writing-websocket-application-using-apache-wicket/

Hope that helped you

Julien

On Sun, Jun 19, 2011 at 11:50 AM, Noven noven_...@yahoo.com wrote:

 Hi All..

 Newbie need guide , I just registered and this is my first post.

 I am facing problem about creating a facebook like notification.
 Like if your friend tag someone in your photos, there will be a
 notification appeared on your facebook page.

 My problem actually, I can't manage the user session/application state.
 I have successfully presented my feedback message into jGrowl like here

 The real scenario is :
 There are 2 role of user in my application, a user and a supervisor.
 When the user create something via a form, a notification appeared on
 the supervisor page lively.

 My question is how I can trigger the notification (which is a
 feedback message) appears on the supervisor page. Where I have to put my
 code, override some method in wicket application class?

 I am sorry if there is a similar question like mine before.

 Thanks,
 Noven


Re: RadioGroup nulled out during form submit in IE

2011-06-19 Thread Sven Meier

Hi Matt,

it could be a tag open/close issue which leads IE to put your radio tags 
outside of the form.

I'd suggest to check your markup, i.e. look out for non-closed tags.

Hope this helps

Sven

On 06/18/2011 11:04 PM, Matt Schmidt wrote:

I have a form that is working correctly in FireFox but not IE. This puzzled
is quite puzzling to me since it is server side functionality.

Here's a much simplified version of what I've got:

!-- MyPage.html --
form wicket:id=form
!-- some other form fields here, text areas, etc. that submit fine in IE
and FF --
div wicket:id=myRadioGroupComponent1/
div wicket:id=myRadioGroupComponent2/
div wicket:id=myRadioGroupComponent3/
input type=submit value=Save wicket:id=saveButton /
/form

!-- MyRadioGroupComponent.html --
div wicket:id=radioGroup
input type=radio wicket:id=radio1 /
labelRadio 1/label
input type=radio wicket:id=radio2 /
labelRadio 2/label
input type=radio wicket:id=radio3 /
labelRadio 3/label
/div

The RadioGroup's also have an AjaxFormChoiceComponentUpdatingBehavior on it,
and the submit button is an IndicatingAjaxButton.

When I submit the form in FF, everything works fine. When I submit it in IE,
my form's model object has null values for each of the
myRadioGroupComponent properties. I stepped through the code and found
that convertedInput is getting set to null during the form's validate(),
because the radio group's value is not in the request
(FormComponent.getInputAsArray()). So it seems to me that IE is not
submitting the form correctly, or that I have invalid HTML that I cannot
identify.

I'm pretty stumped on this one. I can show some of my java if needed, but
the problem doesn't seem to be on that end to me. Any help is appreciated!

Thanks,
Matt




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: facebook like notification

2011-06-19 Thread nino martinez wael
You could also do a ajax heartbeat and use a javascript toaster

2011/6/19 Noven noven_...@yahoo.com:
 Hi All..

 Newbie need guide , I just registered and this is my first post.

 I am facing problem about creating a facebook like notification.
 Like if your friend tag someone in your photos, there will be a
 notification appeared on your facebook page.

 My problem actually, I can't manage the user session/application state.
 I have successfully presented my feedback message into jGrowl like here

 The real scenario is :
 There are 2 role of user in my application, a user and a supervisor.
 When the user create something via a form, a notification appeared on
 the supervisor page lively.

 My question is how I can trigger the notification (which is a
 feedback message) appears on the supervisor page. Where I have to put my
 code, override some method in wicket application class?

 I am sorry if there is a similar question like mine before.

 Thanks,
 Noven

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: facebook like notification

2011-06-19 Thread noven_lie
Hi Nino, 

Thank you for you info, do you have example about using ajax heartbeat or 
javascript toaster?
Sent from my BlackBerry® smartphone from Sinyal Bagus XL, Nyambung Teruuusss...!

-Original Message-
From: nino martinez wael nino.martinez.w...@gmail.com
Date: Sun, 19 Jun 2011 13:58:53 
To: users@wicket.apache.org; Novennoven_...@yahoo.com
Reply-To: users@wicket.apache.org
Subject: Re: facebook like notification

You could also do a ajax heartbeat and use a javascript toaster

2011/6/19 Noven noven_...@yahoo.com:
 Hi All..

 Newbie need guide , I just registered and this is my first post.

 I am facing problem about creating a facebook like notification.
 Like if your friend tag someone in your photos, there will be a
 notification appeared on your facebook page.

 My problem actually, I can't manage the user session/application state.
 I have successfully presented my feedback message into jGrowl like here

 The real scenario is :
 There are 2 role of user in my application, a user and a supervisor.
 When the user create something via a form, a notification appeared on
 the supervisor page lively.

 My question is how I can trigger the notification (which is a
 feedback message) appears on the supervisor page. Where I have to put my
 code, override some method in wicket application class?

 I am sorry if there is a similar question like mine before.

 Thanks,
 Noven

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: facebook like notification

2011-06-19 Thread nino martinez wael
http://wicketstuff.org/wicketdojo13/?wicket:bookmarkablePage=%3Aorg.wicketstuff.dojo.examples.toaster.ToasterSample
http://wicketstuff.org/wicket/ajax/clock

should get you going..



 You could also do a ajax heartbeat and use a javascript toaster

 2011/6/19 Noven noven_...@yahoo.com:
 Hi All..

 Newbie need guide , I just registered and this is my first post.

 I am facing problem about creating a facebook like notification.
 Like if your friend tag someone in your photos, there will be a
 notification appeared on your facebook page.

 My problem actually, I can't manage the user session/application state.
 I have successfully presented my feedback message into jGrowl like here

 The real scenario is :
 There are 2 role of user in my application, a user and a supervisor.
 When the user create something via a form, a notification appeared on
 the supervisor page lively.

 My question is how I can trigger the notification (which is a
 feedback message) appears on the supervisor page. Where I have to put my
 code, override some method in wicket application class?

 I am sorry if there is a similar question like mine before.

 Thanks,
 Noven

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: facebook like notification

2011-06-19 Thread noven_lie
Thank you Nino for your point me out of this. 
Sent from my BlackBerry® smartphone from Sinyal Bagus XL, Nyambung Teruuusss...!

-Original Message-
From: nino martinez wael nino.martinez.w...@gmail.com
Date: Sun, 19 Jun 2011 14:44:18 
To: users@wicket.apache.org; noven_...@yahoo.com
Reply-To: users@wicket.apache.org
Subject: Re: facebook like notification

http://wicketstuff.org/wicketdojo13/?wicket:bookmarkablePage=%3Aorg.wicketstuff.dojo.examples.toaster.ToasterSample
http://wicketstuff.org/wicket/ajax/clock

should get you going..



 You could also do a ajax heartbeat and use a javascript toaster

 2011/6/19 Noven noven_...@yahoo.com:
 Hi All..

 Newbie need guide , I just registered and this is my first post.

 I am facing problem about creating a facebook like notification.
 Like if your friend tag someone in your photos, there will be a
 notification appeared on your facebook page.

 My problem actually, I can't manage the user session/application state.
 I have successfully presented my feedback message into jGrowl like here

 The real scenario is :
 There are 2 role of user in my application, a user and a supervisor.
 When the user create something via a form, a notification appeared on
 the supervisor page lively.

 My question is how I can trigger the notification (which is a
 feedback message) appears on the supervisor page. Where I have to put my
 code, override some method in wicket application class?

 I am sorry if there is a similar question like mine before.

 Thanks,
 Noven

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: facebook like notification

2011-06-19 Thread Sebastian
You can use the wicketstuff-push component 
https://github.com/wicketstuff/core/wiki/Push which can either use a 
polling approach or cometd to update clients based on server-side events.


Seb

On 19.06.2011 11:50, Noven wrote:

Hi All..

Newbie need guide , I just registered and this is my first post.

I am facing problem about creating a facebook like notification.
Like if your friend tag someone in your photos, there will be a
notification appeared on your facebook page.

My problem actually, I can't manage the user session/application state.
I have successfully presented my feedback message into jGrowl like here

The real scenario is :
There are 2 role of user in my application, a user and a supervisor.
When the user create something via a form, a notification appeared on
the supervisor page lively.

My question is how I can trigger the notification (which is a
feedback message) appears on the supervisor page. Where I have to put my
code, override some method in wicket application class?

I am sorry if there is a similar question like mine before.

Thanks,
Noven




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: RadioGroup nulled out during form submit in IE

2011-06-19 Thread Matt Schmidt
After further investigation, my problem is with the
AjaxFormChoiceComponentUpdatingBehavior. After adding the radio group to the
target in the behavior's onUpdate(), it works.

I have my radio's styled with some fancy jQuery button looks, so I was
unable to see that the actual radio remained unselected after clicking it
when using the Ajax behavior. But adding the group to the target fixes that.

myRadioGroup.add(new AjaxFormChoiceComponentUpdatingBehavior()
{
@Override
protected void onUpdate(AjaxRequestTarget target)
{
target.addComponent(myRadioGroup);
//whatever else
}
});

Is this necessary or is this just working by coincidence?

On a side note, the javadoc for AjaxFormChoiceComponentUpdatingBehavior
says: (wicket 1.4.16)

 In order to be supported by this behavior the group components must output
 children with markup id in format of 'groupId-childId'


Does this just mean this, or something more? It seems to work even if the
structure is not formatted this way

div wicket:id=myGroup
   input type=radio wicket:id=myGroup-radio1 /
   input type=radio wicket:id=myGroup-radio2 /
   input type=radio wicket:id=myGroup-radio3 /
/div

On Sun, Jun 19, 2011 at 7:17 AM, Sven Meier s...@meiers.net wrote:

 Hi Matt,

 it could be a tag open/close issue which leads IE to put your radio tags
 outside of the form.
 I'd suggest to check your markup, i.e. look out for non-closed tags.

 Hope this helps

 Sven


 On 06/18/2011 11:04 PM, Matt Schmidt wrote:

 I have a form that is working correctly in FireFox but not IE. This
 puzzled
 is quite puzzling to me since it is server side functionality.

 Here's a much simplified version of what I've got:

 !-- MyPage.html --
 form wicket:id=form
!-- some other form fields here, text areas, etc. that submit fine in
 IE
 and FF --
div wicket:id=**myRadioGroupComponent1/
div wicket:id=**myRadioGroupComponent2/
div wicket:id=**myRadioGroupComponent3/
input type=submit value=Save wicket:id=saveButton /
 /form

 !-- MyRadioGroupComponent.html --
 div wicket:id=radioGroup
input type=radio wicket:id=radio1 /
labelRadio 1/label
input type=radio wicket:id=radio2 /
labelRadio 2/label
input type=radio wicket:id=radio3 /
labelRadio 3/label
 /div

 The RadioGroup's also have an AjaxFormChoiceComponentUpdatin**gBehavior
 on it,
 and the submit button is an IndicatingAjaxButton.

 When I submit the form in FF, everything works fine. When I submit it in
 IE,
 my form's model object has null values for each of the
 myRadioGroupComponent properties. I stepped through the code and found
 that convertedInput is getting set to null during the form's validate(),
 because the radio group's value is not in the request
 (FormComponent.**getInputAsArray()). So it seems to me that IE is not
 submitting the form correctly, or that I have invalid HTML that I cannot
 identify.

 I'm pretty stumped on this one. I can show some of my java if needed, but
 the problem doesn't seem to be on that end to me. Any help is appreciated!

 Thanks,
 Matt



 --**--**-
 To unsubscribe, e-mail: 
 users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: facebook like notification

2011-06-19 Thread noven_lie
Thank you Sebastian. I will check it. 
Sent from my BlackBerry® smartphone from Sinyal Bagus XL, Nyambung Teruuusss...!

-Original Message-
From: Sebastian nospam...@gmx.net
Date: Sun, 19 Jun 2011 16:57:42 
To: users@wicket.apache.org
Reply-To: users@wicket.apache.org
Subject: Re: facebook like notification

You can use the wicketstuff-push component 
https://github.com/wicketstuff/core/wiki/Push which can either use a 
polling approach or cometd to update clients based on server-side events.

Seb

On 19.06.2011 11:50, Noven wrote:
 Hi All..

 Newbie need guide , I just registered and this is my first post.

 I am facing problem about creating a facebook like notification.
 Like if your friend tag someone in your photos, there will be a
 notification appeared on your facebook page.

 My problem actually, I can't manage the user session/application state.
 I have successfully presented my feedback message into jGrowl like here

 The real scenario is :
 There are 2 role of user in my application, a user and a supervisor.
 When the user create something via a form, a notification appeared on
 the supervisor page lively.

 My question is how I can trigger the notification (which is a
 feedback message) appears on the supervisor page. Where I have to put my
 code, override some method in wicket application class?

 I am sorry if there is a similar question like mine before.

 Thanks,
 Noven



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: RadioGroup nulled out during form submit in IE

2011-06-19 Thread Sven Meier

Hi,

Is this necessary or is this just working by coincidence?

no, adding the group to the request is not needed (normally).

In order to be supported by this behavior the group components must 
output

children with markup id in format of 'groupId-childId'

 Does this just mean this, or something more?

RadioGroup and Radio already do the heavy lifting for you. As long as 
you don't use custom markup ids, it should just work.

Note that the javadoc is talking about *markup ids*, not wicket ids.

Sven

On 06/19/2011 06:51 PM, Matt Schmidt wrote:

After further investigation, my problem is with the
AjaxFormChoiceComponentUpdatingBehavior. After adding the radio group to the
target in the behavior's onUpdate(), it works.

I have my radio's styled with some fancy jQuery button looks, so I was
unable to see that the actual radio remained unselected after clicking it
when using the Ajax behavior. But adding the group to the target fixes that.

myRadioGroup.add(new AjaxFormChoiceComponentUpdatingBehavior()
{
@Override
protected void onUpdate(AjaxRequestTarget target)
{
target.addComponent(myRadioGroup);
 //whatever else
}
});

Is this necessary or is this just working by coincidence?

On a side note, the javadoc for AjaxFormChoiceComponentUpdatingBehavior
says: (wicket 1.4.16)


In order to be supported by this behavior the group components must output
children with markup id in format of 'groupId-childId'


Does this just mean this, or something more? It seems to work even if the
structure is not formatted this way

div wicket:id=myGroup
input type=radio wicket:id=myGroup-radio1 /
input type=radio wicket:id=myGroup-radio2 /
input type=radio wicket:id=myGroup-radio3 /
/div

On Sun, Jun 19, 2011 at 7:17 AM, Sven Meiers...@meiers.net  wrote:


Hi Matt,

it could be a tag open/close issue which leads IE to put your radio tags
outside of the form.
I'd suggest to check your markup, i.e. look out for non-closed tags.

Hope this helps

Sven


On 06/18/2011 11:04 PM, Matt Schmidt wrote:


I have a form that is working correctly in FireFox but not IE. This
puzzled
is quite puzzling to me since it is server side functionality.

Here's a much simplified version of what I've got:

!-- MyPage.html --
form wicket:id=form
!-- some other form fields here, text areas, etc. that submit fine in
IE
and FF --
div wicket:id=**myRadioGroupComponent1/
div wicket:id=**myRadioGroupComponent2/
div wicket:id=**myRadioGroupComponent3/
input type=submit value=Save wicket:id=saveButton /
/form

!-- MyRadioGroupComponent.html --
div wicket:id=radioGroup
input type=radio wicket:id=radio1 /
labelRadio 1/label
input type=radio wicket:id=radio2 /
labelRadio 2/label
input type=radio wicket:id=radio3 /
labelRadio 3/label
/div

The RadioGroup's also have an AjaxFormChoiceComponentUpdatin**gBehavior
on it,
and the submit button is an IndicatingAjaxButton.

When I submit the form in FF, everything works fine. When I submit it in
IE,
my form's model object has null values for each of the
myRadioGroupComponent properties. I stepped through the code and found
that convertedInput is getting set to null during the form's validate(),
because the radio group's value is not in the request
(FormComponent.**getInputAsArray()). So it seems to me that IE is not
submitting the form correctly, or that I have invalid HTML that I cannot
identify.

I'm pretty stumped on this one. I can show some of my java if needed, but
the problem doesn't seem to be on that end to me. Any help is appreciated!

Thanks,
Matt



--**--**-
To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Force modal page to reload on Ajax event

2011-06-19 Thread Alec Swan
Hello,

I have a modal window which displays a page (using
ModalWindow.PageCreator()) with a DropDownChoice with
AjaxFormComponentUpdatingBehavior(onchange) behavior. I need the
page in the modal window to reload when the user makes a selection in
the DropDownChoice. I tried calling modelChanged() in
AjaxFormComponentUpdatingBehavior#onUpdate(), but that didn't force
the page in the modal window to reload.

How can I accomplish this?

Thanks,

Alec

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org