Re: custom listeners

2012-05-17 Thread Ciocoiu Elvis
Sorry for that... OnCreate is my method method ... Called only first time
in onbeforender. I'll adapt it to event mechanism when upgrading to 1.5 but
for now i'm using 1.4.


On Wed, May 16, 2012 at 9:29 PM, Martin Grigorov wrote:

> Hi,
>
> On Wed, May 16, 2012 at 7:43 PM, Ciocoiu Elvis
>  wrote:
> > I'm working on a framework that builds the user interface (input fields,
> > labels, containers for layout, grids, ...) and one of the features is
> that
> > a custom field editor (for example a dropdown) can publish events (for
> > example value changed). Internally when creating the field editor I
> > register it it as a PropertyProvider somewhere ... in a shared
> > EditorContext. So this EditorContext is a central point in building a
> > particular form. One other fieldEditor can declare it's interest in
> events
> > of type valueCHanged published by the first field editor (the dropdown).
> > Well in EditorContext I have a map of propertyProviders and
> > PropertyChangeListeners ... But my framework generates also some links
> for
> > filtering and CRUD features ... and replaces dynamically the components
> > (for example the user click on add link and the list of persons is
> replaced
> > with a form that creates a new person). FInally every dynamically
> generated
> > form can have a field that listen for property change so I need a way to
> > unregister somewhere. Can I do it using the wicket component callbacks
> ...
> > like register the listener in onCreate and unregister it in onDestroy? (I
> > know that there is no onDestroy for component ... but maybe other
> > callbacks).
>
> Which #onCreate() method do you mean ?
> There is ISessionListener#onCreated() but nothing with that name for
> the components.
> Maybe you mean #onInitialize().
>
> Have you considered using Wicket's event system ?
> See the code of http://www.wicket-library.com/wicket-examples/events
> Basically, every Component can broadcast events with Component@send()
> method and every Component, Behavior, RequestCycle, Session and
> Application can listen for there events by overriding their
> #onEvent(Event) method. Depending on the type of the event's payload
> you can decide whether you should do something or just ignore it.
>
> >
> >
> > Thank you
> > On Wed, May 16, 2012 at 4:41 PM, Fernando Wermus
> > wrote:
> >
> >> May you explain further your user case? Thus, we can understand the
> needs.
> >>
> >>
> >> Fernando Wermus.
> >>
> >> www.linkedin.com/in/fernandowermus
> >>
> >>
> >>
> >> On Wed, May 16, 2012 at 7:00 AM, elvis.ciocoiu
> >> wrote:
> >>
> >> > I'm working on something that uses custom information attached to the
> >> > components and needs some sort of a listeners mechanism. The path
> taken
> >> was
> >> > to register the needed listeners in onCreate() of some component but I
> >> > don't
> >> > have a solution to unregister ... The onRemove doesn't help because
> it's
> >> > called when replacing the component with another in an ajax call. Is
> >> there
> >> > a
> >> > way to be notified that a component is reatached to component
> hierarchy?
> >> > I'm
> >> > using wicket 1.4. Is there another solution? Imagine that using a
> >> ListView
> >> > that creates elements and every element registers some listeners ... I
> >> need
> >> > to clear those listeners when the element is destroyed.
> >> > Thak you
> >> >
> >> > --
> >> > View this message in context:
> >> >
> >>
> http://apache-wicket.1842946.n4.nabble.com/custom-listeners-tp4641122.html
> >> > Sent from the Users forum mailing list archive at Nabble.com.
> >> >
> >> > -
> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >
> >> >
> >>
> >
> >
> >
> > --
> > _
> > Elvis Ciocoiu
> > Senior Consultant
> >
> > Synthesys Consulting ROMANIA
> >
> > address: http://www.synthesys.ro
> > e-mail: elvis.cioc...@synthesys.ro
> > mobile : (40) 0745 13 75 85
> >
> > This message and any attachments contain information, which may be
> > confidential or privileged.
> > If you are not the intended recipient, please refrain from any
> > disclosure, copying, distribution or use of this information.
> > Please be aware that such actions are prohibited. If you have received
> > this transmission in error, kindly notify us by email to
> > off...@synthesys.ro. We appreciate your cooperation.
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
_
Elvis Ciocoiu
Senior Consultant

Synthesys Consulting ROMANIA

address: http://www.synthesys.ro
e-mail: elvis.cioc...@synthesys.r

Re: CheckBoxMultipleChoice used in a Wizard Panel

2012-05-17 Thread nunofaria11
Hi there, 
I am having the same problem you had regarding a CheckBoxMultipleChoice used
in a Wizard Panel: the list within the model containing the chosen items is
always empty. Were you able to solve that problem? And if so, how?

Thanks
Nuno

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Adding-a-form-field-at-run-time-is-it-possible-tp1877626p4642679.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to save the selected radio choice option in wicket

2012-05-17 Thread Andrea Del Bene

Hi,

can you show the code you use to build radio buttons?

Hi,
I am new to Apache wicket. Can you please help me how to get the selected
radio choice option in wicket.I have to save the some recruitment form with
some fileds which we have to give dynamically .I have a static dropdown
with list of form fileds like text filed, text area, radio button, check
box.  when i select the textbox and text area , the values are saved
successfully with the correct values which i have given.  Now  requirement
is when i select the radio button in the static drop down, by clicking the
submit  i have created the radio buttons with list of input  values for the
radio button options which i have given dynamically. But i didnt get the
value which i have selected when saving that form. Am getting the null
value when saving the form  I did not get what the exact problem


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-save-the-selected-radio-choice-option-in-wicket-tp4642586.html
Sent from the Users forum mailing list archive at Nabble.com.

-
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: custom listeners

2012-05-17 Thread Ciocoiu Elvis
EditorContext {
void registerPropertyProvider(PropertyProvider propertyProvider);

 PropertyAccessor createPropertyAccessor(String propertyName);
...
}
...


public class SomePanel extends LazyPanel {
 @BasicField(lookup = true)
private City city;
 @BasicField(lookup = true, showActions = true)
private List persons;
 @Override
protected void onCreate() {
EditorContext editorContext = new EditorContext();
 PropertyAccessor selectedCityAccessor =
editorContext.createPropertyAccessor("city");
 selectedCityAccessor.registerPropertyChangeListener(new
PropertyChangeListener() {
@Override
void onPropertyChanged(City oldValue, City newValue) {
// do something here, for example refresh the personsPanel ... or filter it
}
});
 Panel cityPanel = editorContext.createFieldPanel("city");
Panel personsPanel = editorContext.createFieldPanel("persons");
 add(cityPanel);
add(personsPanel);
}

}


The problem is that the personsPanel generates some links for CRUD
operations on personsList ... and creates panels for creating/updating the
selected person. The editorContext is shared between these fieldPanels and
can register listeners ... my question where is the proper place to
unregister them?

For the moment I try to minimize  this usage but it's not only the
listeners mechanism that I'm fighting with ... The framework let me
register configurers at runtime that also must be unregistered ... so I'm
trying to find some sort of a callback to clean whatever the component did
at creation time.

I'll adapt it to events in 1.5 but right now I'm closing the 1.4 chapter.

On Thu, May 17, 2012 at 9:59 AM, Ciocoiu Elvis
wrote:

> Sorry for that... OnCreate is my method method ... Called only first time
> in onbeforender. I'll adapt it to event mechanism when upgrading to 1.5 but
> for now i'm using 1.4.
>
>
> On Wed, May 16, 2012 at 9:29 PM, Martin Grigorov wrote:
>
>> Hi,
>>
>> On Wed, May 16, 2012 at 7:43 PM, Ciocoiu Elvis
>>  wrote:
>> > I'm working on a framework that builds the user interface (input fields,
>> > labels, containers for layout, grids, ...) and one of the features is
>> that
>> > a custom field editor (for example a dropdown) can publish events (for
>> > example value changed). Internally when creating the field editor I
>> > register it it as a PropertyProvider somewhere ... in a shared
>> > EditorContext. So this EditorContext is a central point in building a
>> > particular form. One other fieldEditor can declare it's interest in
>> events
>> > of type valueCHanged published by the first field editor (the dropdown).
>> > Well in EditorContext I have a map of propertyProviders and
>> > PropertyChangeListeners ... But my framework generates also some links
>> for
>> > filtering and CRUD features ... and replaces dynamically the components
>> > (for example the user click on add link and the list of persons is
>> replaced
>> > with a form that creates a new person). FInally every dynamically
>> generated
>> > form can have a field that listen for property change so I need a way to
>> > unregister somewhere. Can I do it using the wicket component callbacks
>> ...
>> > like register the listener in onCreate and unregister it in onDestroy?
>> (I
>> > know that there is no onDestroy for component ... but maybe other
>> > callbacks).
>>
>> Which #onCreate() method do you mean ?
>> There is ISessionListener#onCreated() but nothing with that name for
>> the components.
>> Maybe you mean #onInitialize().
>>
>> Have you considered using Wicket's event system ?
>> See the code of http://www.wicket-library.com/wicket-examples/events
>> Basically, every Component can broadcast events with Component@send()
>> method and every Component, Behavior, RequestCycle, Session and
>> Application can listen for there events by overriding their
>> #onEvent(Event) method. Depending on the type of the event's payload
>> you can decide whether you should do something or just ignore it.
>>
>> >
>> >
>> > Thank you
>> > On Wed, May 16, 2012 at 4:41 PM, Fernando Wermus
>> > wrote:
>> >
>> >> May you explain further your user case? Thus, we can understand the
>> needs.
>> >>
>> >>
>> >> Fernando Wermus.
>> >>
>> >> www.linkedin.com/in/fernandowermus
>> >>
>> >>
>> >>
>> >> On Wed, May 16, 2012 at 7:00 AM, elvis.ciocoiu
>> >> wrote:
>> >>
>> >> > I'm working on something that uses custom information attached to the
>> >> > components and needs some sort of a listeners mechanism. The path
>> taken
>> >> was
>> >> > to register the needed listeners in onCreate() of some component but
>> I
>> >> > don't
>> >> > have a solution to unregister ... The onRemove doesn't help because
>> it's
>> >> > called when replacing the component with another in an ajax call. Is
>> >> there
>> >> > a
>> >> > way to be notified that a component is reatached to component
>> hierarchy?
>> >> > I'm
>> >> > using wicket 1.4. Is there another solution? Imagine that using a
>> >> ListView
>> >> > that creates elements and every element registers some listeners ...
>> I
>> >

Re: WICKET-2056 broke DatePicker in ModalWindow in 1.4.16

2012-05-17 Thread dpmihai
Any news about this? Wicket 1.5.5 has the same problem.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WICKET-2056-broke-DatePicker-in-ModalWindow-in-1-4-16-tp3416225p4642684.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: WICKET-2056 broke DatePicker in ModalWindow in 1.4.16

2012-05-17 Thread dpmihai
As I see in css :


   
   


because there is a style "overflow: auto" everything that is inside the
dialog will be scrolled.

I wonder how can put some components over the dialog, because z-index does
not help either.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WICKET-2056-broke-DatePicker-in-ModalWindow-in-1-4-16-tp3416225p4642699.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: VTD XML for wicket

2012-05-17 Thread Kees van Dieren
Its licenced GPL so wicket cannot depend on it.


Best regards / Met vriendelijke groet,

Kees van Dieren
Squins | IT, Honestly
Oranjestraat 23
2983 HL Ridderkerk
The Netherlands
Phone: +31 (0)180 415559
Mobile: +31 (0)6 30413841
www.squins.com
http://twitter.com/keesvandieren
Chamber of commerce Rotterdam: 24435130
Boeken voor school en werk bestel je op studieboekencenter.nl
2012/5/17 kamiseq 

> anyway VDT-XML outperforms any existing SAXlike or DOM technologies. I
> just want to let you know.
>
> take care
>
> pozdrawiam
> Paweł Kamiński
>
> kami...@gmail.com
> pkaminski@gmail.com
> __
>
>
> On 17 May 2012 07:08, Igor Vaynberg  wrote:
> > xml is parsed only the first time a page/panel is accessed. broken
> > down into a collection of chunks optimized for wicket's consumption.
> > and cached.
> >
> > -igor
> >
> > On Wed, May 16, 2012 at 9:49 PM, kamiseq  wrote:
> >> hej,
> >> have you ever consider using http://vtd-xml.sourceforge.net/ as xml
> >> parsing library??
> >> I ve already successfully used this in quite big project and for sure
> >> it is worth checking as I suspect wicket spends some time parsing html
> >> on each request, right?
> >>
> >> pozdrawiam
> >> Paweł Kamiński
> >>
> >> kami...@gmail.com
> >> pkaminski@gmail.com
> >> __
> >>
> >> -
> >> 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
>
>


Full month calendar

2012-05-17 Thread Sandor Feher
Hi,

I need for a full month calendar view to indicate when was the employee on
holiday. I found at wicketstuff the calendars package and tried to used with
not too much success.

wm.add(new FullWeekCalendarView("calendar",new Date(2012,05,01),new
Date(2012,05,31),ievent));
Throws me an org.apache.wicket.markup.MarkupNotFoundException.
The point is I don't want to create a new component from scracth :). So
please point to some working examples or please let me know if I'm on the
wrong way.

Thank you in advance., Sandor


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Full-month-calendar-tp4642735.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to save the selected radio choice option in wicket

2012-05-17 Thread Andrea Del Bene
Property 'selected' is not setted according to the selected GENDER? Does 
property 'selected' remains null when you press 'save' button ?

add( new RadioChoice("radioButton", new PropertyModel(this,
"selected" ),GENDER ).setSuffix(""));


Here I taken Gender as a list of values dynamically . The fields are  saved
successfully when the form was saved. In the registration page i retrieve
the fields what i have added. In that i select one option and click the
save button but i am getting the null value. The selected value is not saved


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-save-the-selected-radio-choice-option-in-wicket-tp4642586p4642713.html
Sent from the Users forum mailing list archive at Nabble.com.

-
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: Full month calendar

2012-05-17 Thread Martin Grigorov
On Thu, May 17, 2012 at 11:23 AM, Sandor Feher  wrote:
> Hi,
>
> I need for a full month calendar view to indicate when was the employee on
> holiday. I found at wicketstuff the calendars package and tried to used with
> not too much success.
>
> wm.add(new FullWeekCalendarView("calendar",new Date(2012,05,01),new
> Date(2012,05,31),ievent));
> Throws me an org.apache.wicket.markup.MarkupNotFoundException.
> The point is I don't want to create a new component from scracth :). So
> please point to some working examples or please let me know if I'm on the
> wrong way.
>

So debug it and send us a Pull Request with the fix :-)

> Thank you in advance., Sandor
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Full-month-calendar-tp4642735.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: How to save the selected radio choice option in wicket

2012-05-17 Thread Andrea Del Bene
Your solution should work the way it is. It's likely that you have a 
problem with form's submission.  Are you sure that when you press 'save' 
button the form is submitted? And are you sure that radioButton has been 
added to the form that should be submitted by 'save' button?

how can i set the property value then?


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-save-the-selected-radio-choice-option-in-wicket-tp4642586p4642832.html
Sent from the Users forum mailing list archive at Nabble.com.

-
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: How to save the selected radio choice option in wicket

2012-05-17 Thread Richard W. Adams
Conceptually, it's no different than any other form control. You associate 
the control with a named property in your model, & when the form is 
submitted that property will be populated with the chosen value. If the 
user hasn't chosen ANY value, yes, you can get null.




From:   chaitanya b 
To: users@wicket.apache.org
Date:   05/17/2012 12:57 AM
Subject:How to save the selected radio choice option in wicket



Hi,
I am new to Apache wicket. Can you please help me how to get the selected
radio choice option in wicket.I have to save the some recruitment form 
with
some fileds which we have to give dynamically .I have a static dropdown
with list of form fileds like text filed, text area, radio button, check
box.  when i select the textbox and text area , the values are saved
successfully with the correct values which i have given.  Now  requirement
is when i select the radio button in the static drop down, by clicking the
submit  i have created the radio buttons with list of input  values for 
the
radio button options which i have given dynamically. But i didnt get the
value which i have selected when saving that form. Am getting the null
value when saving the form  I did not get what the exact problem


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-save-the-selected-radio-choice-option-in-wicket-tp4642586.html

Sent from the Users forum mailing list archive at Nabble.com.

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




**

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: How to save the selected radio choice option in wicket

2012-05-17 Thread Richard W. Adams
Just like anything else: You put the desired value in your model & Wicket 
handles "selecting" the correct button.





From:   chaitanya b 
To: users@wicket.apache.org
Date:   05/17/2012 06:06 AM
Subject:Re: How to save the selected radio choice option in wicket



how can i set the property value then?


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-save-the-selected-radio-choice-option-in-wicket-tp4642586p4642832.html

Sent from the Users forum mailing list archive at Nabble.com.

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




**

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: AjaxFormChoiceComponentUpdatingBehavior CheckGroup and CheckGroupSelector

2012-05-17 Thread Martin Grigorov
Hi,

Can org.apache.wicket.ajax.markup.html.form.AjaxCheckBox help for your case ?
I'd write a custom selector that changes the checkboxes's state to
'selected' and then uses ajax to make a batch update.

On Wed, May 16, 2012 at 9:28 PM, Adam Gray  wrote:
> Wicket 1.4.20
>
> Use case:  I have a rather large CheckGroup (~250 items) that is
> controlling filters to include for an ad hoc reporting solution.  Because
> this is so large, the group itself needs to be collapsible.  Easy enough.
>  But because it's collapsible, form components in hidden areas won't be
> submitted.  So these needs to be pushed to the server as soon as they are
> selected.  AjaxFormChoiceComponentUpdatingBehavior works nicely here.
>
> The problem that I'm seeing is that there is no apparent way of knowing
> which Check was "click"ed in this behavior.  As such, the only component
> that seems to available to add to the AjaxRequestTarget is the CheckGroup
> itself.  Even then, this isn't too bad when you're checking individual
> items.
>
> The real issue becomes apparent when you throw the CheckGroupSelector into
> the mix.  This component goes down the list and calls .click() on each
> checkbox.  So you get as many checkgroup refreshes as you have checkboxes.
>  Definitely not a problem with typical use cases.  With an extreme use case
> like mine, however; it becomes rather unwieldy.
>
> Is it possible to determine which Check was actually clicked and only add
> the necessary components to the AjaxRequestTarget to avoid getting
> checkgroup postback spam?  Or is there a way that I can customize one of
> these classes to somehow batch these updates, a custom CheckGroupSelector
> for instance?



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: AjaxFormChoiceComponentUpdatingBehavior CheckGroup and CheckGroupSelector

2012-05-17 Thread Adam Gray
That was almost exactly how I ended up solving it last night.  In the end,
the AjaxCheckBox just sets the CheckGroup's model object such that it's all
selected then adds the group to the AjaxRequestTarget just the once.  That
worked nicely for reducing the roundtrips.

As an aside, I noticed that wicket:enclosure is quite a lot slower than
setting individual component visibility, at least in my case.  I was really
just making sure the Label was hidden its input was hidden.  It'd be really
nice if  could link visibility, but not necessary.
 Just something I happened to notice when rendering a large ListView of
Checks and Labels.

On Thu, May 17, 2012 at 8:08 AM, Martin Grigorov wrote:

> Hi,
>
> Can org.apache.wicket.ajax.markup.html.form.AjaxCheckBox help for your
> case ?
> I'd write a custom selector that changes the checkboxes's state to
> 'selected' and then uses ajax to make a batch update.
>
> On Wed, May 16, 2012 at 9:28 PM, Adam Gray  wrote:
> > Wicket 1.4.20
> >
> > Use case:  I have a rather large CheckGroup (~250 items) that is
> > controlling filters to include for an ad hoc reporting solution.  Because
> > this is so large, the group itself needs to be collapsible.  Easy enough.
> >  But because it's collapsible, form components in hidden areas won't be
> > submitted.  So these needs to be pushed to the server as soon as they are
> > selected.  AjaxFormChoiceComponentUpdatingBehavior works nicely here.
> >
> > The problem that I'm seeing is that there is no apparent way of knowing
> > which Check was "click"ed in this behavior.  As such, the only component
> > that seems to available to add to the AjaxRequestTarget is the CheckGroup
> > itself.  Even then, this isn't too bad when you're checking individual
> > items.
> >
> > The real issue becomes apparent when you throw the CheckGroupSelector
> into
> > the mix.  This component goes down the list and calls .click() on each
> > checkbox.  So you get as many checkgroup refreshes as you have
> checkboxes.
> >  Definitely not a problem with typical use cases.  With an extreme use
> case
> > like mine, however; it becomes rather unwieldy.
> >
> > Is it possible to determine which Check was actually clicked and only add
> > the necessary components to the AjaxRequestTarget to avoid getting
> > checkgroup postback spam?  Or is there a way that I can customize one of
> > these classes to somehow batch these updates, a custom CheckGroupSelector
> > for instance?
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: VTD XML for wicket

2012-05-17 Thread kamiseq
too bad

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__


On 17 May 2012 11:12, Kees van Dieren  wrote:
> Its licenced GPL so wicket cannot depend on it.
>
>
> Best regards / Met vriendelijke groet,
>
> Kees van Dieren
> Squins | IT, Honestly
> Oranjestraat 23
> 2983 HL Ridderkerk
> The Netherlands
> Phone: +31 (0)180 415559
> Mobile: +31 (0)6 30413841
> www.squins.com
> http://twitter.com/keesvandieren
> Chamber of commerce Rotterdam: 24435130
> Boeken voor school en werk bestel je op studieboekencenter.nl
> 2012/5/17 kamiseq 
>
>> anyway VDT-XML outperforms any existing SAXlike or DOM technologies. I
>> just want to let you know.
>>
>> take care
>>
>> pozdrawiam
>> Paweł Kamiński
>>
>> kami...@gmail.com
>> pkaminski@gmail.com
>> __
>>
>>
>> On 17 May 2012 07:08, Igor Vaynberg  wrote:
>> > xml is parsed only the first time a page/panel is accessed. broken
>> > down into a collection of chunks optimized for wicket's consumption.
>> > and cached.
>> >
>> > -igor
>> >
>> > On Wed, May 16, 2012 at 9:49 PM, kamiseq  wrote:
>> >> hej,
>> >> have you ever consider using http://vtd-xml.sourceforge.net/ as xml
>> >> parsing library??
>> >> I ve already successfully used this in quite big project and for sure
>> >> it is worth checking as I suspect wicket spends some time parsing html
>> >> on each request, right?
>> >>
>> >> pozdrawiam
>> >> Paweł Kamiński
>> >>
>> >> kami...@gmail.com
>> >> pkaminski@gmail.com
>> >> __
>> >>
>> >> -
>> >> 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
>>
>>

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



Re: Full month calendar

2012-05-17 Thread Igor Vaynberg
you can try https://github.com/42Lines/wicket-fullcalendar

-igor

On Thu, May 17, 2012 at 2:23 AM, Sandor Feher  wrote:
> Hi,
>
> I need for a full month calendar view to indicate when was the employee on
> holiday. I found at wicketstuff the calendars package and tried to used with
> not too much success.
>
> wm.add(new FullWeekCalendarView("calendar",new Date(2012,05,01),new
> Date(2012,05,31),ievent));
> Throws me an org.apache.wicket.markup.MarkupNotFoundException.
> The point is I don't want to create a new component from scracth :). So
> please point to some working examples or please let me know if I'm on the
> wrong way.
>
> Thank you in advance., Sandor
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Full-month-calendar-tp4642735.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> 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: Nested Form submitted via ajax clearing fields in outer form

2012-05-17 Thread Sebastien
Hi,

> why does it call onFormSubmitted for the root form?  Is this the way it
has to be programmed for nested forms to work?
Well, I think it should not be the case, according to:
https://cwiki.apache.org/WICKET/nested-forms.html

Regards,
Sebastien.

On Thu, May 17, 2012 at 4:18 PM, Hill, Joel (DTMB) wrote:

> If I have a nested form submitted via an AjaxButton, why does it call
> onFormSubmitted for the root form?  Is this the way it has to be programmed
> for nested forms to work?
>
> The problem is that if I refresh any part of the page that contains a
> FormComponent in the outer form, that field gets cleared, because the
> rawInput gets set to null (because inputChanged gets called for all the
> outer form components).
>
> Is the answer that I just have to be more surgical in my use of
> AjaxRequestTarget.addComponent, and only add components that REALLY need to
> be redrawn, and not just redraw a larger area (which requires fewer
> addComponent calls)?  I know that calling clearInput on every component in
> the outer form in the refreshed area(s) will also work, but that seems a
> less appropriate solution (I guess there is Form.clearInput as well, which
> is less labor intensive to use).
>
> I guess this is more of an informational question than anything.  But any
> solutions that require less babysitting of the outer form are welcome.
>  Thanks!
>
> Joel
>


Re: Single page wicket app

2012-05-17 Thread bobj
Thanks for the replies!

By large I mean lots of tabs and panels, not lots of users say 100s not
1000s.
By single page app, I mean there is only one page and the user never
navigates to another page. Panels come and go as required.

I do not expect to support the back button, with ajax and panel
replacements.

Thanks for the link on session state.

Since the users will stay on a single page for a long time, and never go to
a different page, do I need to be concerned with wicket not
saving/serializing the page state?
 
thanks,
Bobj


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Single-page-wicket-app-tp4634756p4643219.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Single page wicket app

2012-05-17 Thread Martijn Dashorst
On Thu, May 17, 2012 at 6:36 PM, bobj  wrote:
> Since the users will stay on a single page for a long time, and never go to
> a different page, do I need to be concerned with wicket not
> saving/serializing the page state?

It would be a drag for users that they would need to build up the
state (i.e. navigate through all panels and such) when you restart the
server (for any reason: code change, configuration change etc).

So in my opinion you should care about that stuff.

It is also rather difficult for people to bookmark parts of your
application (although you can build your own custom in-app
bookmarks/favorites for that) when you create a single page app.

I am not yet a big fan of building single page apps but also don't
necessarily like the 1000+ page apps either.

Martijn

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



Re: Single page wicket app

2012-05-17 Thread Martin Grigorov
On Thu, May 17, 2012 at 6:36 PM, bobj  wrote:
> Thanks for the replies!
>
> By large I mean lots of tabs and panels, not lots of users say 100s not
> 1000s.
> By single page app, I mean there is only one page and the user never
> navigates to another page. Panels come and go as required.
>
> I do not expect to support the back button, with ajax and panel
> replacements.
>
> Thanks for the link on session state.
>
> Since the users will stay on a single page for a long time, and never go to
> a different page, do I need to be concerned with wicket not
> saving/serializing the page state?

The page is serialized in Ajax request!
The difference with non-Ajax is that Wicket wont create a new page id
for the new state, so the new bytes will override the old ones. That's
why there is no history. You always have the latest state.

>
> thanks,
> Bobj
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Single-page-wicket-app-tp4634756p4643219.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Single page wicket app

2012-05-17 Thread Alec Swan
Our app uses one-page-ajax-panel-swap approach and I ran into an issue
with versioned pages described here
http://markmail.org/thread/q3ewso5dnf2wjsol

Alec

On Thu, May 17, 2012 at 11:12 AM, Martin Grigorov  wrote:
> On Thu, May 17, 2012 at 6:36 PM, bobj  wrote:
>> Thanks for the replies!
>>
>> By large I mean lots of tabs and panels, not lots of users say 100s not
>> 1000s.
>> By single page app, I mean there is only one page and the user never
>> navigates to another page. Panels come and go as required.
>>
>> I do not expect to support the back button, with ajax and panel
>> replacements.
>>
>> Thanks for the link on session state.
>>
>> Since the users will stay on a single page for a long time, and never go to
>> a different page, do I need to be concerned with wicket not
>> saving/serializing the page state?
>
> The page is serialized in Ajax request!
> The difference with non-Ajax is that Wicket wont create a new page id
> for the new state, so the new bytes will override the old ones. That's
> why there is no history. You always have the latest state.
>
>>
>> thanks,
>> Bobj
>>
>>
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/Single-page-wicket-app-tp4634756p4643219.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> 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



How to change the properties file location in Wicket

2012-05-17 Thread oliver.stef
Hi all, 

I just start using Wicket and I have a big problem! 

I have a few sources files (Page (folder) with the files: Page1.html,
Page1.java, Page1.properties, Page2(another folder) with the files:
Page2.html, Page2.java, Page2.properties).

now, my problem is that i want to merge all the *.properties file into one
file (one *.properties file) that will be located in the src folder, or
under the root folder. 

I don't know how to do it. i tried to read about "IResourceStream" but
still, i didn't understand nothing... :( 

can someone help me with it? 

Thanks!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-change-the-properties-file-location-in-Wicket-tp4642901.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to change the properties file location in Wicket

2012-05-17 Thread Martin Grigorov
Hi,

Create MyApplication.properties and put it next to MyApplication.java.

On Thu, May 17, 2012 at 2:27 PM, oliver.stef  wrote:
> Hi all,
>
> I just start using Wicket and I have a big problem!
>
> I have a few sources files (Page (folder) with the files: Page1.html,
> Page1.java, Page1.properties, Page2(another folder) with the files:
> Page2.html, Page2.java, Page2.properties).
>
> now, my problem is that i want to merge all the *.properties file into one
> file (one *.properties file) that will be located in the src folder, or
> under the root folder.
>
> I don't know how to do it. i tried to read about "IResourceStream" but
> still, i didn't understand nothing... :(
>
> can someone help me with it?
>
> Thanks!
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/How-to-change-the-properties-file-location-in-Wicket-tp4642901.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Full month calendar

2012-05-17 Thread Sandor Feher
Thanks Igor! I will have a try..

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Full-month-calendar-tp4642735p4643499.html
Sent from the Users forum mailing list archive at Nabble.com.

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