pages with different verbosity

2013-02-19 Thread Dr. Britta Landgraf
Hi,

i have to output scientific data in different ways depended from a query
parameter verbose. For a high value of verbose the data will be shown
with html decoration, e.g. formattet with lists etc. For a low value of
verbose the data will be shown in a raw form, so other programms can
read the data from http stream and make some computation with them. How
can i do this (in an easy way) in wicket?
Formatted presentation with pages and resources for raw data has the
disatvantage that i need to implement different things for different
verbosity.

regards britta

--
Dr. Britta Landgraf   phone:   +49 2461 61 5647
IEK-4 fax: +49 2461 61 5452
  email:   b.landg...@fz-juelich.de
  WWW: www.fz-juelich.de/iek/iek-4/





Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt



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



Re: Migration issue: page that writes binary data to the response

2013-02-19 Thread Martin Dietze
On Mon, February 18, 2013, Carl-Eric Menzel wrote:

 For generating binaries, I would *really* recommend doing this change.
 Pages simply are not a good fit for that. Also, it shouldn't be that
 big of a change, since you're writing to the Response anyway. Within
 AbstractResource's WriteCallback you're going to use the same Response
 object, so you can simply copy most of your code over without much
 change.

IMO the problem is not that much how the response is generated,
but how the component is already uses within the system. At
this point creating a download link is simple as it simply is a
BookmarkableLink to that page with the appropriate page
parameters. Consequently, the download links are bookmarkable. 
I simply don't know whether any of our users depend on that
feature. And, apart from that, porting a productive system from
1.4.x to 6.6.0 I still expect quite a few more issues, thus I'd
prefer not to touch code that works.

That brings me back to my question to the developers - are the
problems I described in my original post 'by design', or would
at least moving the adding of markup from the end of
Page.onAfterRender() to an overridable method be a realistic
option?

Cheers,

M'bert

-- 
--- / http://herbert.the-little-red-haired-girl.org / -
=+= 
Eine Hund hat Herrchen und Frauchen..., eine Katze hat Personal!

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



Re: AutoComponentResolver gone?

2013-02-19 Thread Martin Grigorov
Hi,

This was experimental feature which didn't gain much popularity.
The discussion to remove it is : http://markmail.org/thread/emzrqxmp4hahzipx
The ticket is: https://issues.apache.org/jira/browse/WICKET-3687
The Git revision is: 41a7915606e0332711ee3b7fc85cb55aad246fae


There is no replacement for this functionality.
You can get the old code and apply it locally.


On Mon, Feb 18, 2013 at 7:38 PM, gmparker2000 greg.par...@brovada.comwrote:

 We have been using AutoComponentResolver in  a proof of concept Wicket 1.4
 application to create a visual wicket designer of sorts.  It relies on
 AutoComponentResolver to expand composite controls that we have created.
 The approach looks extremely promising.  We intended on using
 AutoComponentResolver at design time only.  However, before continuing we
 took a look to make sure that this functionality exists in Wicket 1.5 and
 beyond.  It appears that it has been removed or is implemented some other
 way.  Can anyone shed some light on the topic?  Essentially we want to be
 able to write something like this:

 html
 body
 wicket:component class=com.abc.MyTextBox label=Label
 required=true ... /
 /body
 html



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/AutoComponentResolver-gone-tp4656510.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 http://jweekend.com/


Re: Migration issue: page that writes binary data to the response

2013-02-19 Thread Martin Grigorov
Hi,

You can use requestCycle.replaceAllRequestHandlers(new
ResourceRequestHandler(new ByteArrayResource(byteArray))) in your page code.
This will stop the page rendering and will return the byte[] from this
response. You can still configure the ByteArrayResource - filename,
disposition, etc.


On Tue, Feb 19, 2013 at 10:23 AM, Martin Dietze d...@fh-wedel.de wrote:

 On Mon, February 18, 2013, Carl-Eric Menzel wrote:

  For generating binaries, I would *really* recommend doing this change.
  Pages simply are not a good fit for that. Also, it shouldn't be that
  big of a change, since you're writing to the Response anyway. Within
  AbstractResource's WriteCallback you're going to use the same Response
  object, so you can simply copy most of your code over without much
  change.

 IMO the problem is not that much how the response is generated,
 but how the component is already uses within the system. At
 this point creating a download link is simple as it simply is a
 BookmarkableLink to that page with the appropriate page
 parameters. Consequently, the download links are bookmarkable.
 I simply don't know whether any of our users depend on that
 feature. And, apart from that, porting a productive system from
 1.4.x to 6.6.0 I still expect quite a few more issues, thus I'd
 prefer not to touch code that works.

 That brings me back to my question to the developers - are the
 problems I described in my original post 'by design', or would
 at least moving the adding of markup from the end of
 Page.onAfterRender() to an overridable method be a realistic
 option?

 Cheers,

 M'bert

 --
 --- / http://herbert.the-little-red-haired-girl.org /
 -
 =+=
 Eine Hund hat Herrchen und Frauchen..., eine Katze hat Personal!

 -
 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 http://jweekend.com/


Re: pages with different verbosity

2013-02-19 Thread Martin Grigorov
Hi,


On Tue, Feb 19, 2013 at 10:14 AM, Dr. Britta Landgraf 
b.landg...@fz-juelich.de wrote:

 Hi,

 i have to output scientific data in different ways depended from a query
 parameter verbose. For a high value of verbose the data will be shown
 with html decoration, e.g. formattet with lists etc. For a low value of
 verbose the data will be shown in a raw form, so other programms can
 read the data from http stream and make some computation with them. How
 can i do this (in an easy way) in wicket?
 Formatted presentation with pages and resources for raw data has the
 disatvantage that i need to implement different things for different
 verbosity.


In all cases you will need different code to generate the output.
You may use a Page with different Panels for the raw and formatted output
but I think the more clear solution is
to have a landing page that uses requestCycle.replaceAllRequestHandlers(
... ) by using either :
- new RenderPageRequestHandler(new PageProvider(new FormattedOutputPage()))
- new ResourceRequestHandler(new ByteArrayResource(rawData))



 regards britta

 --
 Dr. Britta Landgraf   phone:   +49 2461 61 5647
 IEK-4 fax: +49 2461 61 5452
   email:   b.landg...@fz-juelich.de
   WWW: www.fz-juelich.de/iek/iek-4/




 

 
 Forschungszentrum Juelich GmbH
 52425 Juelich
 Sitz der Gesellschaft: Juelich
 Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
 Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
 Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
 Prof. Dr. Sebastian M. Schmidt

 

 

 -
 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 http://jweekend.com/


Re: Migration issue: page that writes binary data to the response

2013-02-19 Thread Martin Dietze
On Tue, February 19, 2013, Martin Grigorov wrote:

 You can use requestCycle.replaceAllRequestHandlers(new
 ResourceRequestHandler(new ByteArrayResource(byteArray))) in your page code.
 This will stop the page rendering and will return the byte[] from this
 response. You can still configure the ByteArrayResource - filename,
 disposition, etc.

Thank you, I tried this (slightly corrected version):

| RequestCycle.get().replaceAllRequestHandlers( new ResourceRequestHandler( new 
ByteArrayResource( mimeType, byteArray ), null ) );

But this triggers a ReplaceHandlerException at
RequestHandlerStack.replaceAll() as at that time
RequestHandlerStack.requestHandlers is not empty.

This actually looks weird to me as I'd expect a
'replaceAll' method to replace what is already
there. Maybe a bug here?

Cheers,

M'bert

-- 
--- / http://herbert.the-little-red-haired-girl.org / -
=+= 
No violence, gentlemen -- no violence, I beg of you! Consider the furniture!
   -- Sherlock Holmes

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



Re: Migration issue: page that writes binary data to the response

2013-02-19 Thread Martin Grigorov
On Tue, Feb 19, 2013 at 11:14 AM, Martin Dietze d...@fh-wedel.de wrote:

 On Tue, February 19, 2013, Martin Grigorov wrote:

  You can use requestCycle.replaceAllRequestHandlers(new
  ResourceRequestHandler(new ByteArrayResource(byteArray))) in your page
 code.
  This will stop the page rendering and will return the byte[] from this
  response. You can still configure the ByteArrayResource - filename,
  disposition, etc.

 Thank you, I tried this (slightly corrected version):

 | RequestCycle.get().replaceAllRequestHandlers( new
 ResourceRequestHandler( new ByteArrayResource( mimeType, byteArray ), null
 ) );

 But this triggers a ReplaceHandlerException at
 RequestHandlerStack.replaceAll() as at that time
 RequestHandlerStack.requestHandlers is not empty.


This is how it works.
#replaceAllRequestHandlers() throws an exception to stop doing whatever it
does at the moment.
#scheduleRequestHandlerAfterCurrent() just appends a new RH to the list and
executes it when all previous are executed.
Since there is no need to wait for any other scheduled I think you can use
#replaceAllRHs().

What is the problem ?



 This actually looks weird to me as I'd expect a
 'replaceAll' method to replace what is already
 there. Maybe a bug here?

 Cheers,

 M'bert

 --
 --- / http://herbert.the-little-red-haired-girl.org /
 -
 =+=
 No violence, gentlemen -- no violence, I beg of you! Consider the
 furniture!
-- Sherlock Holmes

 -
 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 http://jweekend.com/


Re: Migration issue: page that writes binary data to the response

2013-02-19 Thread Carl-Eric Menzel
On Tue, 19 Feb 2013 09:23:28 +0100
Martin Dietze d...@fh-wedel.de wrote:

 IMO the problem is not that much how the response is generated,
 but how the component is already uses within the system. At
 this point creating a download link is simple as it simply is a
 BookmarkableLink to that page with the appropriate page
 parameters. Consequently, the download links are bookmarkable. 

You can mount shared resources just like you can mount pages, so they
can still be bookmarkable.  

Carl-Eric

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



Re: Migration issue: page that writes binary data to the response

2013-02-19 Thread Martin Dietze
On Tue, February 19, 2013, Martin Grigorov wrote:

 This is how it works.
 #replaceAllRequestHandlers() throws an exception to stop doing whatever it 
 does at the moment.
 #scheduleRequestHandlerAfterCurrent() just appends a new RH to the list and 
 executes it when all previous are executed.
 Since there is no need to wait for any other scheduled I think you can use 
 #replaceAllRHs().
 
 What is the problem ?

Thanks, I misunderstood the concept behind that exception and
caught it. Now everything is fine.

Cheers,

M'bert

-- 
--- / http://herbert.the-little-red-haired-girl.org / -
=+= 
New members urgently required for SUICIDE CLUB, Watford area.
-- Monty Python's Big Red Book

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



Errors using wicket-cdi with WAS 8

2013-02-19 Thread Edwin Bosveld
Hi Guys,

I'm attempting to use Wicket 6.5 with Websphere AS 8. This works fine, but
the problems occur when I add CDI into the mix. To do this I'm using the
wicket-cdi library.

Even with a basic class injection I get the following errors:

[19-2-13 16:29:54:405 CET] 002e AnnotatedType W
AnnotatedTypeBeanCreatorImpl defineConstructor No suitable constructor
found for injection target class : [class
org.apache.wicket.protocol.http.WebSession]. produce() method does not work!

[19-2-13 16:29:54:405 CET] 002e AnnotatedType W
AnnotatedTypeBeanCreatorImpl defineConstructor No suitable constructor
found for injection target class : [class com.mycompany.HomePage].
produce() method does not work!

[19-2-13 16:29:54:483 CET] 002e AnnotatedType W
AnnotatedTypeBeanCreatorImpl defineConstructor No suitable constructor
found for injection target class : [class
org.apache.wicket.markup.html.basic.Label]. produce() method does not work!

[19-2-13 16:29:54:811 CET] 002e AnnotatedType W
AnnotatedTypeBeanCreatorImpl defineConstructor No suitable constructor
found for injection target class : [class
org.apache.wicket.markup.html.internal.HtmlHeaderContainer]. produce()
method does not work!

[19-2-13 16:29:54:873 CET] 002e AnnotatedType W
AnnotatedTypeBeanCreatorImpl defineConstructor No suitable constructor
found for injection target class : [class
org.apache.wicket.markup.html.TransparentWebMarkupContainer]. produce()
method does not work!

I've seen the errors on the web a few times, but no suitable answers
really, so I thought I'd ask here. So if you have any ideas as to why this
gives me errors I would like to hear them. Bear in mind that Websphere uses
Apache OpenWebBeans.

With kind regards,

Edwin Bosveld


The best way for designers and Wicket developers to collaborate

2013-02-19 Thread eugenebalt
We have a Web design team and a Java development team on our project. We're
using Wicket for our pages.

I know Wicket was designed to make it easy for designers and developers to
work together, but we're actually finding the opposite -- it's difficult to
communicate changes back and forth. We're finding that the developers
increasingly have their own code tree, and the designers their own.

As a result, for every major change, someone has to translate the
designer's change into the actual HTML that the developers are using, which
is not the same.

The developers sometimes break pages into subpages/Panels which doesn't get
communicated back to the designers, who are still working with their own
complete pages. Should designers be actually involved in Panel
restructuring? If so, how can they work with sub-pages? Should they use an
Include tag? If they need to demo or test something, should they actually
run the real app on the server, rather than work with their own set of HTML
files? Should they check their files into the real folders, or their
sandbox template folders?

The main issue has been Panels, but there are also some other tweaks the
developers are making to make it work while the designers aren't aware and
are working in their own sandbox.

Just wondering, what's the best practice, the way things are supposed to
work in Wicket?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/The-best-way-for-designers-and-Wicket-developers-to-collaborate-tp4656560.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: Forms do not reset after submit

2013-02-19 Thread Bas Gooren

Hi!

What you describe should only happen in certain cases:

- when you link to the page using a stored reference e.g.

in ctor:
myTargetPage = new MyTargetPage()

in click handler:
setResponsePage(myTargetPage);

This results in a single, shared page instance. The page will keep track 
of state, and thus the state is shared.


- when you create a new page instance (bookmarkable or not doesn't 
matter) for every click, but it's data comes from a static source 
(page-static, session-based or other)


This means that your freshly created page instance loads data from a 
source which caches its data. E.g. your EntityFactory does not always 
return a fresh instance.


So the first question is: how do you link to your Add a record page?

Met vriendelijke groet,
Kind regards,

Bas Gooren

Op 19-2-2013 17:12, schreef Michael Chandler:

Good morning all!  I thought I had a good handle on an issue I was having, but 
it appears as though that problem is persisting.  When I present a form to the 
user to collect information that saves on a domain object, the form does not 
reset after the form has been submitted.  At first, I thought it was related to 
how I link to pages, then I became convinced it was my use of a 
LoadableDetachableModel.  Now, after refactoring the code several times, I'm 
convinced that I have over-looked something simple but I cannot figure out what 
it is.

To summarize, I have a form that binds to an object as follows:

CompoundPropertyModelJob jobModel = new CompoundPropertyModelJob((Job) 
EntityFactory.getInstance().getBean(job));
jobForm.setModel(jobModel);

When the form fields are all completed and the form is submitted, the form's 
onSubmit() successfully handles the submission and my implementation persists 
the data to my domain object (Job) and the data is confirmed in the database.  
The last line conducts a redirect to the main screen with a setResponsePage() 
call.

When I click the link to add a new record to the database using the same form, 
the form fields are populated with all of the same data I just entered, 
suggesting to me that the previous domain object is still bound to that page 
instead of refreshing and binding a clean, new instance of the Job class.

Can anyone offer any tips or suggestions on what I am doing wrong?

Best,

Mike






RE: Forms do not reset after submit

2013-02-19 Thread Michael Chandler
 This means that your freshly created page instance loads data from a source
 which caches its data. E.g. your EntityFactory does not always return a
 fresh instance.
 
 So the first question is: how do you link to your Add a record page?

Bas,

You are definitely describing the stateful nature of the behavior I'm seeing.  
I'm linking to add a record as follows:

LinkString addJobLink = new LinkString(addJobLink){

private static final long serialVersionUID = 1L;

@Override
public void onClick() {
setResponsePage(new JobAddPage());
}

};

Mike

-Original Message-
From: Bas Gooren [mailto:b...@iswd.nl] 
Sent: Tuesday, February 19, 2013 9:20 AM
To: users@wicket.apache.org
Subject: Re: Forms do not reset after submit

Hi!

What you describe should only happen in certain cases:

- when you link to the page using a stored reference e.g.

in ctor:
myTargetPage = new MyTargetPage()

in click handler:
setResponsePage(myTargetPage);

This results in a single, shared page instance. The page will keep track of 
state, and thus the state is shared.

- when you create a new page instance (bookmarkable or not doesn't
matter) for every click, but it's data comes from a static source (page-static, 
session-based or other)

This means that your freshly created page instance loads data from a source 
which caches its data. E.g. your EntityFactory does not always return a fresh 
instance.

So the first question is: how do you link to your Add a record page?

Met vriendelijke groet,
Kind regards,

Bas Gooren

Op 19-2-2013 17:12, schreef Michael Chandler:
 Good morning all!  I thought I had a good handle on an issue I was having, 
 but it appears as though that problem is persisting.  When I present a form 
 to the user to collect information that saves on a domain object, the form 
 does not reset after the form has been submitted.  At first, I thought it was 
 related to how I link to pages, then I became convinced it was my use of a 
 LoadableDetachableModel.  Now, after refactoring the code several times, I'm 
 convinced that I have over-looked something simple but I cannot figure out 
 what it is.

 To summarize, I have a form that binds to an object as follows:

 CompoundPropertyModelJob jobModel = new 
 CompoundPropertyModelJob((Job) 
 EntityFactory.getInstance().getBean(job));
 jobForm.setModel(jobModel);

 When the form fields are all completed and the form is submitted, the form's 
 onSubmit() successfully handles the submission and my implementation persists 
 the data to my domain object (Job) and the data is confirmed in the database. 
  The last line conducts a redirect to the main screen with a 
 setResponsePage() call.

 When I click the link to add a new record to the database using the same 
 form, the form fields are populated with all of the same data I just entered, 
 suggesting to me that the previous domain object is still bound to that page 
 instead of refreshing and binding a clean, new instance of the Job class.

 Can anyone offer any tips or suggestions on what I am doing wrong?

 Best,

 Mike




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



Re: Forms do not reset after submit

2013-02-19 Thread Bas Gooren

Mike,

That looks normal; you are creating a new JobAddPage for every click, so 
that's not the problem.


Can you share some code from the JobAddPage? And is the EntityFactory 
class something you've built yourself?


Met vriendelijke groet,
Kind regards,

Bas Gooren

Op 19-2-2013 18:37, schreef Michael Chandler:

This means that your freshly created page instance loads data from a source
which caches its data. E.g. your EntityFactory does not always return a
fresh instance.

So the first question is: how do you link to your Add a record page?

Bas,

You are definitely describing the stateful nature of the behavior I'm seeing.  
I'm linking to add a record as follows:

LinkString addJobLink = new LinkString(addJobLink){

private static final long serialVersionUID = 1L;

@Override
public void onClick() {
setResponsePage(new JobAddPage());
}

};

Mike

-Original Message-
From: Bas Gooren [mailto:b...@iswd.nl]
Sent: Tuesday, February 19, 2013 9:20 AM
To: users@wicket.apache.org
Subject: Re: Forms do not reset after submit

Hi!

What you describe should only happen in certain cases:

- when you link to the page using a stored reference e.g.

in ctor:
myTargetPage = new MyTargetPage()

in click handler:
setResponsePage(myTargetPage);

This results in a single, shared page instance. The page will keep track of 
state, and thus the state is shared.

- when you create a new page instance (bookmarkable or not doesn't
matter) for every click, but it's data comes from a static source (page-static, 
session-based or other)

This means that your freshly created page instance loads data from a source which 
caches its data. E.g. your EntityFactory does not always return a fresh 
instance.

So the first question is: how do you link to your Add a record page?

Met vriendelijke groet,
Kind regards,

Bas Gooren

Op 19-2-2013 17:12, schreef Michael Chandler:

Good morning all!  I thought I had a good handle on an issue I was having, but 
it appears as though that problem is persisting.  When I present a form to the 
user to collect information that saves on a domain object, the form does not 
reset after the form has been submitted.  At first, I thought it was related to 
how I link to pages, then I became convinced it was my use of a 
LoadableDetachableModel.  Now, after refactoring the code several times, I'm 
convinced that I have over-looked something simple but I cannot figure out what 
it is.

To summarize, I have a form that binds to an object as follows:

CompoundPropertyModelJob jobModel = new
CompoundPropertyModelJob((Job)
EntityFactory.getInstance().getBean(job));
jobForm.setModel(jobModel);

When the form fields are all completed and the form is submitted, the form's 
onSubmit() successfully handles the submission and my implementation persists 
the data to my domain object (Job) and the data is confirmed in the database.  
The last line conducts a redirect to the main screen with a setResponsePage() 
call.

When I click the link to add a new record to the database using the same form, 
the form fields are populated with all of the same data I just entered, 
suggesting to me that the previous domain object is still bound to that page 
instead of refreshing and binding a clean, new instance of the Job class.

Can anyone offer any tips or suggestions on what I am doing wrong?

Best,

Mike




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





RE: Forms do not reset after submit

2013-02-19 Thread Michael Chandler
 This means that your freshly created page instance loads data from a 
 source which caches its data. E.g. your EntityFactory does not 
 always return a fresh instance.
 
 So the first question is: how do you link to your Add a record page?

Bas, following up on your second consideration, that my EntityFactory was 
caching, you were spot on.  That is exactly my problem.  Everything from a 
Wicket standpoint was good, but my EntityFactory was returning the same 
instance of that object.

Thanks for opening my eyes!  Sometimes it's the little things that nail me! :)  
A thousand thanks!

Mike


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



RE: Forms do not reset after submit

2013-02-19 Thread Michael Chandler
  And is the EntityFactory class something you've built yourself?

It is and a quick test revealed that was the culprit!  I've got some work to do 
there.  Thanks so much, Bas!

Regards,

Mike

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



Re: unselected choices of Palette contain duplicates ...

2013-02-19 Thread grazia
I sort of got it to work, but now when I move items from one side of the
palette to the other and try to save it, the changes are not picked up by
the model and are not saved ...

public class MyPalette extends Palette {
private ListT unselectedChoices;
public MyPalette(String id, IModelListlt;T model,
IModelListlt;T choicesModel, IChoiceRendererT 
choiceRenderer,
int rows, boolean allowOrder) {
super(id, model, choicesModel, choiceRenderer, rows, 
allowOrder);

setOutputMarkupId(true);
unselectedChoices = new ArrayListT();


}

@Override
public void onEvent(IEvent? event) {

super.onEvent(event);

if (event.getPayload() instanceof MyAutoCompleteUpdate) {

MyAutoCompleteUpdate update = (MyAutoCompleteUpdate) 
event
.getPayload();

Collection collection = this.getChoices(); // the whole 
set of data,
availalble (unselected) and associated (selected)
 System.out.println(SIZE  + collection.size() +  );


unselectedChoices.add((T) update.getModelObject());
System.out.println(SIZE UNSELECTED + 
unselectedChoices.size() +  );

collection.addAll(unselectedChoices);
System.out.println(SIZE AFTER ADDING selection + 
collection.size() + 
);



update.getTarget().add(this);

}

}

}



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656566.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: The best way for designers and Wicket developers to collaborate

2013-02-19 Thread Martin Grigorov
Hi,

I'm a happy user of https://github.com/42Lines/wicket-source with a small
improvement from https://github.com/cleiter/wicketsource-contextmenu (provides
an item in the context menu instead of an entry in the Dev Tools - Markup
- Style - ...)

Maybe this can be extended to look for the html comments generated by
setOutputMarkupContainerClassName() and open the respective .html for me.

@Jenny, @Christoph: are you interested to extend Wicket-Source ?

On Tue, Feb 19, 2013 at 8:13 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 this is how we work, may or may not work for you:

 our designers run the app on their machines. we have a simple bash
 scripts that runs a start class similar to the one shipped with the
 quickstart. this is the same start class developers run from their
 IDE.

 when in dev mode we enable this setting:
 getDebugSettings().setOutputMarkupContainerClassName(true);

 which, in the comments of the page's html defines where html comes
 from - panels, borders, etc.
 this allows our designers to start the app, make a change, press
 refresh, see how it renders. make another change, refresh, etc.

 this allows them to work in the same exact source tree as the devs,
 which makes life a lot simpler for everyone involved.

 when a dev breaks up html into panels this change is pulled to the
 designers when they update their source tree. and when they need to
 tweak some html they can use the comments to locate the file where it
 now lives.

 -igor

 On Tue, Feb 19, 2013 at 8:20 AM, eugenebalt eugeneb...@yahoo.com wrote:
  We have a Web design team and a Java development team on our project.
 We're
  using Wicket for our pages.
 
  I know Wicket was designed to make it easy for designers and developers
 to
  work together, but we're actually finding the opposite -- it's difficult
 to
  communicate changes back and forth. We're finding that the developers
  increasingly have their own code tree, and the designers their own.
 
  As a result, for every major change, someone has to translate the
  designer's change into the actual HTML that the developers are using,
 which
  is not the same.
 
  The developers sometimes break pages into subpages/Panels which doesn't
 get
  communicated back to the designers, who are still working with their own
  complete pages. Should designers be actually involved in Panel
  restructuring? If so, how can they work with sub-pages? Should they use
 an
  Include tag? If they need to demo or test something, should they actually
  run the real app on the server, rather than work with their own set of
 HTML
  files? Should they check their files into the real folders, or their
  sandbox template folders?
 
  The main issue has been Panels, but there are also some other tweaks the
  developers are making to make it work while the designers aren't aware
 and
  are working in their own sandbox.
 
  Just wondering, what's the best practice, the way things are supposed to
  work in Wicket?
 
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/The-best-way-for-designers-and-Wicket-developers-to-collaborate-tp4656560.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




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


Eclipse or IntelliJ

2013-02-19 Thread Stephen Walsh
Who uses what and why?

I've only ever used Eclipse, but I discovered IntelliJ earlier this week
and it's so different.  Just wondering pros and cons on each.

Thanks!
___
Stephen Walsh | http://connectwithawalsh.com


Re: Eclipse or IntelliJ

2013-02-19 Thread Cedric Gatay
At SRMvision we use exclusively IntelliJ for developping. Its excellent
Maven support, smart completion and robustness made us forget eclipse very
quickly.
Le 19 févr. 2013 22:18, Stephen Walsh step...@connectwithawalsh.com a
écrit :

 Who uses what and why?

 I've only ever used Eclipse, but I discovered IntelliJ earlier this week
 and it's so different.  Just wondering pros and cons on each.

 Thanks!
 ___
 Stephen Walsh | http://connectwithawalsh.com



Re: Eclipse or IntelliJ

2013-02-19 Thread Josh Kamau
Hi;

You use one of them and you feel like you are missing something? No you are
not. The one you are most familiar with is the best.

I use intellij ...

This discussion might also give you what you are looking for.

http://www.linkedin.com/groups/Which-IDE-you-use-develop-80181.S.125932453?qid=98abd743-9a14-4eee-91e5-dbd6854bbf52trk=group_most_popular-0-b-ttlgoback=%2Egmp_80181

Josh


On Wed, Feb 20, 2013 at 1:00 AM, Cedric Gatay gata...@gmail.com wrote:

 At SRMvision we use exclusively IntelliJ for developping. Its excellent
 Maven support, smart completion and robustness made us forget eclipse very
 quickly.
 Le 19 févr. 2013 22:18, Stephen Walsh step...@connectwithawalsh.com a
 écrit :

  Who uses what and why?
 
  I've only ever used Eclipse, but I discovered IntelliJ earlier this week
  and it's so different.  Just wondering pros and cons on each.
 
  Thanks!
  ___
  Stephen Walsh | http://connectwithawalsh.com
 



Re: Eclipse or IntelliJ

2013-02-19 Thread Stephen Walsh
That's what I'm hoping for.  IntelliJ looks a lot more polished especially
for the Mac.

Eclipse is crippling at times because it is so slow.  Just sort of getting
a feel for the Wicket community and what people like best.


___
Stephen Walsh | http://connectwithawalsh.com


On Tue, Feb 19, 2013 at 4:03 PM, Josh Kamau joshnet2...@gmail.com wrote:

 Hi;

 You use one of them and you feel like you are missing something? No you are
 not. The one you are most familiar with is the best.

 I use intellij ...

 This discussion might also give you what you are looking for.


 http://www.linkedin.com/groups/Which-IDE-you-use-develop-80181.S.125932453?qid=98abd743-9a14-4eee-91e5-dbd6854bbf52trk=group_most_popular-0-b-ttlgoback=%2Egmp_80181

 Josh


 On Wed, Feb 20, 2013 at 1:00 AM, Cedric Gatay gata...@gmail.com wrote:

  At SRMvision we use exclusively IntelliJ for developping. Its excellent
  Maven support, smart completion and robustness made us forget eclipse
 very
  quickly.
  Le 19 févr. 2013 22:18, Stephen Walsh step...@connectwithawalsh.com
 a
  écrit :
 
   Who uses what and why?
  
   I've only ever used Eclipse, but I discovered IntelliJ earlier this
 week
   and it's so different.  Just wondering pros and cons on each.
  
   Thanks!
   ___
   Stephen Walsh | http://connectwithawalsh.com
  
 



Re: Eclipse or IntelliJ

2013-02-19 Thread Francois Meillet
You have a mac ?
Choose the best tool !
Choose Intellij !



François Meillet
Formation Wicket - Développement Wicket





Le 19 févr. 2013 à 23:06, Stephen Walsh step...@connectwithawalsh.com a écrit 
:

 That's what I'm hoping for.  IntelliJ looks a lot more polished especially
 for the Mac.
 
 Eclipse is crippling at times because it is so slow.  Just sort of getting
 a feel for the Wicket community and what people like best.
 
 
 ___
 Stephen Walsh | http://connectwithawalsh.com
 
 
 On Tue, Feb 19, 2013 at 4:03 PM, Josh Kamau joshnet2...@gmail.com wrote:
 
 Hi;
 
 You use one of them and you feel like you are missing something? No you are
 not. The one you are most familiar with is the best.
 
 I use intellij ...
 
 This discussion might also give you what you are looking for.
 
 
 http://www.linkedin.com/groups/Which-IDE-you-use-develop-80181.S.125932453?qid=98abd743-9a14-4eee-91e5-dbd6854bbf52trk=group_most_popular-0-b-ttlgoback=%2Egmp_80181
 
 Josh
 
 
 On Wed, Feb 20, 2013 at 1:00 AM, Cedric Gatay gata...@gmail.com wrote:
 
 At SRMvision we use exclusively IntelliJ for developping. Its excellent
 Maven support, smart completion and robustness made us forget eclipse
 very
 quickly.
 Le 19 févr. 2013 22:18, Stephen Walsh step...@connectwithawalsh.com
 a
 écrit :
 
 Who uses what and why?
 
 I've only ever used Eclipse, but I discovered IntelliJ earlier this
 week
 and it's so different.  Just wondering pros and cons on each.
 
 Thanks!
 ___
 Stephen Walsh | http://connectwithawalsh.com
 
 
 



Re: unselected choices of Palette contain duplicates ...

2013-02-19 Thread grazia
So, what do I do to update the palette's model with the changes before
target.add(this) ?

On Tue, Feb 19, 2013 at 3:23 PM, Francois Meillet [via Apache Wicket] 
ml-node+s1842946n4656572...@n4.nabble.com wrote:

 if you push the submit button before sending any event, you will see that
 changes made to the model are saved correclty.

 But in case you fire any event, you redisplay 'this' (the palette) before
 the model is updated.
 The state of this, in that case, is like a new original palette.
 So far, only the javascript on the client side has been executed.



 François Meillet
 Formation Wicket - Développement Wicket






 Le 19 févr. 2013 à 18:52, grazia [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4656572i=0
 a écrit :

  I sort of got it to work, but now when I move items from one side of the
  palette to the other and try to save it, the changes are not picked up
 by
  the model and are not saved ...
 
  public class MyPalette extends Palette {
  private ListT unselectedChoices;
  public MyPalette(String id, IModelListlt;T model,
  IModelListlt;T choicesModel, IChoiceRendererT choiceRenderer,
  int rows, boolean allowOrder) {
  super(id, model, choicesModel, choiceRenderer, rows, allowOrder);
 
  setOutputMarkupId(true);
  unselectedChoices = new ArrayListT();
 
 
  }
 
  @Override
  public void onEvent(IEvent? event) {
 
  super.onEvent(event);
 
  if (event.getPayload() instanceof MyAutoCompleteUpdate) {
 
  MyAutoCompleteUpdate update = (MyAutoCompleteUpdate) event
  .getPayload();
 
  Collection collection = this.getChoices(); // the whole set of data,
  availalble (unselected) and associated (selected)
  System.out.println(SIZE  + collection.size() +  );
 
 
  unselectedChoices.add((T) update.getModelObject());
  System.out.println(SIZE UNSELECTED + unselectedChoices.size() +  );
 
  collection.addAll(unselectedChoices);
  System.out.println(SIZE AFTER ADDING selection + collection.size() + 
  );
 
 
 
  update.getTarget().add(this);
 
  }
 
  }
 
  }
 
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656566.html

  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4656572i=1
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4656572i=2
 

  François Meillet
 Formation Wicket - Développement Wicket


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656572.html
  To unsubscribe from unselected choices of Palette contain duplicates ..., 
 click
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4656430code=R3JhemlhLlJ1c3NvTGFzc25lckBnbWFpbC5jb218NDY1NjQzMHwyMjY4MDg1NDM=
 .
 NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656577.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: Eclipse or IntelliJ

2013-02-19 Thread Michael Chandler
I also develop on a Mac, but I use Eclipse.  I've become so familiar with the 
Eclipse tools and shortcut keys along with the Maven plugins and Tomcat Server 
panel/console that I've never bothered to try anything else, though I should 
probably put my fears aside and give IntelliJ a spin!

Mike

-Original Message-
From: Francois Meillet [mailto:francois.meil...@gmail.com] 
Sent: Tuesday, February 19, 2013 2:09 PM
To: users@wicket.apache.org
Subject: Re: Eclipse or IntelliJ

You have a mac ?
Choose the best tool !
Choose Intellij !



François Meillet
Formation Wicket - Développement Wicket





Le 19 févr. 2013 à 23:06, Stephen Walsh step...@connectwithawalsh.com a écrit 
:

 That's what I'm hoping for.  IntelliJ looks a lot more polished 
 especially for the Mac.
 
 Eclipse is crippling at times because it is so slow.  Just sort of 
 getting a feel for the Wicket community and what people like best.
 
 
 ___
 Stephen Walsh | http://connectwithawalsh.com
 
 
 On Tue, Feb 19, 2013 at 4:03 PM, Josh Kamau joshnet2...@gmail.com wrote:
 
 Hi;
 
 You use one of them and you feel like you are missing something? No 
 you are not. The one you are most familiar with is the best.
 
 I use intellij ...
 
 This discussion might also give you what you are looking for.
 
 
 http://www.linkedin.com/groups/Which-IDE-you-use-develop-80181.S.1259
 32453?qid=98abd743-9a14-4eee-91e5-dbd6854bbf52trk=group_most_popular
 -0-b-ttlgoback=%2Egmp_80181
 
 Josh
 
 
 On Wed, Feb 20, 2013 at 1:00 AM, Cedric Gatay gata...@gmail.com wrote:
 
 At SRMvision we use exclusively IntelliJ for developping. Its 
 excellent Maven support, smart completion and robustness made us 
 forget eclipse
 very
 quickly.
 Le 19 févr. 2013 22:18, Stephen Walsh 
 step...@connectwithawalsh.com
 a
 écrit :
 
 Who uses what and why?
 
 I've only ever used Eclipse, but I discovered IntelliJ earlier this
 week
 and it's so different.  Just wondering pros and cons on each.
 
 Thanks!
 ___
 Stephen Walsh | http://connectwithawalsh.com
 
 
 


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



Re: Eclipse or IntelliJ

2013-02-19 Thread Tim Urberg
Here's the thing, Intellij is great, but it costs like five zillion 
dollars! (slight exaggeration).  So I use Eclipse since its FREE! and it 
works great for me (even on a Mac).  The nice thing about Wicket is that 
you don't need any special IDE plugins to use it.  As long as your IDE 
knows how to do Java (I hope), HTML, CSS and JavaScript (which most have 
built in editors for out of the box).  Then you're good.


On 2/19/13 4:09 PM, Francois Meillet wrote:

You have a mac ?
Choose the best tool !
Choose Intellij !



François Meillet
Formation Wicket - Développement Wicket





Le 19 févr. 2013 à 23:06, Stephen Walsh step...@connectwithawalsh.com a écrit 
:


That's what I'm hoping for.  IntelliJ looks a lot more polished especially
for the Mac.

Eclipse is crippling at times because it is so slow.  Just sort of getting
a feel for the Wicket community and what people like best.


___
Stephen Walsh | http://connectwithawalsh.com


On Tue, Feb 19, 2013 at 4:03 PM, Josh Kamau joshnet2...@gmail.com wrote:


Hi;

You use one of them and you feel like you are missing something? No you are
not. The one you are most familiar with is the best.

I use intellij ...

This discussion might also give you what you are looking for.


http://www.linkedin.com/groups/Which-IDE-you-use-develop-80181.S.125932453?qid=98abd743-9a14-4eee-91e5-dbd6854bbf52trk=group_most_popular-0-b-ttlgoback=%2Egmp_80181

Josh


On Wed, Feb 20, 2013 at 1:00 AM, Cedric Gatay gata...@gmail.com wrote:


At SRMvision we use exclusively IntelliJ for developping. Its excellent
Maven support, smart completion and robustness made us forget eclipse

very

quickly.
Le 19 févr. 2013 22:18, Stephen Walsh step...@connectwithawalsh.com

a

écrit :


Who uses what and why?

I've only ever used Eclipse, but I discovered IntelliJ earlier this

week

and it's so different.  Just wondering pros and cons on each.

Thanks!
___
Stephen Walsh | http://connectwithawalsh.com






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



Re: Eclipse or IntelliJ

2013-02-19 Thread Thomas Götz
IntelliJ currently costs €179 (personal license). It allows me to work *way* 
more effectively (on a Mac) than with Eclipse, which I find cluttered, slow, 
non-intuitive and simply not supporting my work style/flow.

Say you gain 10 minutes per day when using IntelliJ and say you charge 60€/h:
10min - 10€ (per day), i.e. in ~3 weeks the initial cost is amortised.

Only my $0.02,
   -Tom


On 19.02.2013, at 23:28, Tim Urberg t...@urberg.net wrote:

 Here's the thing, Intellij is great, but it costs like five zillion dollars! 
 (slight exaggeration).  So I use Eclipse since its FREE! and it works great 
 for me (even on a Mac).  The nice thing about Wicket is that you don't need 
 any special IDE plugins to use it.  As long as your IDE knows how to do Java 
 (I hope), HTML, CSS and JavaScript (which most have built in editors for out 
 of the box).  Then you're good.
 
 On 2/19/13 4:09 PM, Francois Meillet wrote:
 You have a mac ?
 Choose the best tool !
 Choose Intellij !
 
 
 
 François Meillet
 Formation Wicket - Développement Wicket
 
 
 
 
 
 Le 19 févr. 2013 à 23:06, Stephen Walsh step...@connectwithawalsh.com a 
 écrit :
 
 That's what I'm hoping for.  IntelliJ looks a lot more polished especially
 for the Mac.
 
 Eclipse is crippling at times because it is so slow.  Just sort of getting
 a feel for the Wicket community and what people like best.
 
 
 ___
 Stephen Walsh | http://connectwithawalsh.com
 
 
 On Tue, Feb 19, 2013 at 4:03 PM, Josh Kamau joshnet2...@gmail.com wrote:
 
 Hi;
 
 You use one of them and you feel like you are missing something? No you are
 not. The one you are most familiar with is the best.
 
 I use intellij ...
 
 This discussion might also give you what you are looking for.
 
 
 http://www.linkedin.com/groups/Which-IDE-you-use-develop-80181.S.125932453?qid=98abd743-9a14-4eee-91e5-dbd6854bbf52trk=group_most_popular-0-b-ttlgoback=%2Egmp_80181
 
 Josh
 
 
 On Wed, Feb 20, 2013 at 1:00 AM, Cedric Gatay gata...@gmail.com wrote:
 
 At SRMvision we use exclusively IntelliJ for developping. Its excellent
 Maven support, smart completion and robustness made us forget eclipse
 very
 quickly.
 Le 19 févr. 2013 22:18, Stephen Walsh step...@connectwithawalsh.com
 a
 écrit :
 
 Who uses what and why?
 
 I've only ever used Eclipse, but I discovered IntelliJ earlier this
 week
 and it's so different.  Just wondering pros and cons on each.
 
 Thanks!
 ___
 Stephen Walsh | http://connectwithawalsh.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: Eclipse or IntelliJ

2013-02-19 Thread Josh Kamau
There is a free version too... though it wont help you much on Html, js and
css
Josh


On Wed, Feb 20, 2013 at 1:40 AM, Thomas Götz t...@richmountain.de wrote:

 IntelliJ currently costs €179 (personal license). It allows me to work
 *way* more effectively (on a Mac) than with Eclipse, which I find
 cluttered, slow, non-intuitive and simply not supporting my work style/flow.

 Say you gain 10 minutes per day when using IntelliJ and say you charge
 60€/h:
 10min - 10€ (per day), i.e. in ~3 weeks the initial cost is amortised.

 Only my $0.02,
-Tom


 On 19.02.2013, at 23:28, Tim Urberg t...@urberg.net wrote:

  Here's the thing, Intellij is great, but it costs like five zillion
 dollars! (slight exaggeration).  So I use Eclipse since its FREE! and it
 works great for me (even on a Mac).  The nice thing about Wicket is that
 you don't need any special IDE plugins to use it.  As long as your IDE
 knows how to do Java (I hope), HTML, CSS and JavaScript (which most have
 built in editors for out of the box).  Then you're good.
 
  On 2/19/13 4:09 PM, Francois Meillet wrote:
  You have a mac ?
  Choose the best tool !
  Choose Intellij !
 
 
 
  François Meillet
  Formation Wicket - Développement Wicket
 
 
 
 
 
  Le 19 févr. 2013 à 23:06, Stephen Walsh step...@connectwithawalsh.com
 a écrit :
 
  That's what I'm hoping for.  IntelliJ looks a lot more polished
 especially
  for the Mac.
 
  Eclipse is crippling at times because it is so slow.  Just sort of
 getting
  a feel for the Wicket community and what people like best.
 
 
  ___
  Stephen Walsh | http://connectwithawalsh.com
 
 
  On Tue, Feb 19, 2013 at 4:03 PM, Josh Kamau joshnet2...@gmail.com
 wrote:
 
  Hi;
 
  You use one of them and you feel like you are missing something? No
 you are
  not. The one you are most familiar with is the best.
 
  I use intellij ...
 
  This discussion might also give you what you are looking for.
 
 
 
 http://www.linkedin.com/groups/Which-IDE-you-use-develop-80181.S.125932453?qid=98abd743-9a14-4eee-91e5-dbd6854bbf52trk=group_most_popular-0-b-ttlgoback=%2Egmp_80181
 
  Josh
 
 
  On Wed, Feb 20, 2013 at 1:00 AM, Cedric Gatay gata...@gmail.com
 wrote:
 
  At SRMvision we use exclusively IntelliJ for developping. Its
 excellent
  Maven support, smart completion and robustness made us forget eclipse
  very
  quickly.
  Le 19 févr. 2013 22:18, Stephen Walsh 
 step...@connectwithawalsh.com
  a
  écrit :
 
  Who uses what and why?
 
  I've only ever used Eclipse, but I discovered IntelliJ earlier this
  week
  and it's so different.  Just wondering pros and cons on each.
 
  Thanks!
  ___
  Stephen Walsh | http://connectwithawalsh.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: unselected choices of Palette contain duplicates ...

2013-02-19 Thread Francois Meillet
The model is updated after a submit or an ajax event.
You need to choose and to implement it.


François Meillet
Formation Wicket - Développement Wicket





Le 19 févr. 2013 à 23:18, grazia grazia.russolass...@gmail.com a écrit :

 So, what do I do to update the palette's model with the changes before
 target.add(this) ?
 
 On Tue, Feb 19, 2013 at 3:23 PM, Francois Meillet [via Apache Wicket] 
 ml-node+s1842946n4656572...@n4.nabble.com wrote:
 
 if you push the submit button before sending any event, you will see that
 changes made to the model are saved correclty.
 
 But in case you fire any event, you redisplay 'this' (the palette) before
 the model is updated.
 The state of this, in that case, is like a new original palette.
 So far, only the javascript on the client side has been executed.
 
 
 
 François Meillet
 Formation Wicket - Développement Wicket
 
 
 
 
 
 
 Le 19 févr. 2013 à 18:52, grazia [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4656572i=0
 a écrit :
 
 I sort of got it to work, but now when I move items from one side of the
 palette to the other and try to save it, the changes are not picked up
 by
 the model and are not saved ...
 
 public class MyPalette extends Palette {
 private ListT unselectedChoices;
 public MyPalette(String id, IModelListlt;T model,
 IModelListlt;T choicesModel, IChoiceRendererT choiceRenderer,
 int rows, boolean allowOrder) {
 super(id, model, choicesModel, choiceRenderer, rows, allowOrder);
 
 setOutputMarkupId(true);
 unselectedChoices = new ArrayListT();
 
 
 }
 
 @Override
 public void onEvent(IEvent? event) {
 
 super.onEvent(event);
 
 if (event.getPayload() instanceof MyAutoCompleteUpdate) {
 
 MyAutoCompleteUpdate update = (MyAutoCompleteUpdate) event
 .getPayload();
 
 Collection collection = this.getChoices(); // the whole set of data,
 availalble (unselected) and associated (selected)
 System.out.println(SIZE  + collection.size() +  );
 
 
 unselectedChoices.add((T) update.getModelObject());
 System.out.println(SIZE UNSELECTED + unselectedChoices.size() +  );
 
 collection.addAll(unselectedChoices);
 System.out.println(SIZE AFTER ADDING selection + collection.size() + 
 );
 
 
 
 update.getTarget().add(this);
 
 }
 
 }
 
 }
 
 
 
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656566.html
 
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4656572i=1
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4656572i=2
 
 
 François Meillet
 Formation Wicket - Développement Wicket
 
 
 --
 If you reply to this email, your message will be added to the discussion
 below:
 
 http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656572.html
 To unsubscribe from unselected choices of Palette contain duplicates ..., 
 click
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4656430code=R3JhemlhLlJ1c3NvTGFzc25lckBnbWFpbC5jb218NDY1NjQzMHwyMjY4MDg1NDM=
 .
 NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
 
 
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656577.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: Eclipse or IntelliJ

2013-02-19 Thread Timo Schmidt
On Tue 19.02.2013 15:17, Stephen Walsh wrote:
 Who uses what and why?
 
 I've only ever used Eclipse, but I discovered IntelliJ earlier this week
 and it's so different.  Just wondering pros and cons on each.

I'm using NetBeans for serveral years now and havn't missed a
feature yet. IMHO NetBeans is worth a try.

  -Timo

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



Re: Eclipse or IntelliJ

2013-02-19 Thread Igor Vaynberg
all the popular IDEs have more or less converged in regard to their
java feature set. now its just a matter of muscle memory :)

-igor

On Tue, Feb 19, 2013 at 4:39 PM, Timo Schmidt wic...@xomit.de wrote:
 On Tue 19.02.2013 15:17, Stephen Walsh wrote:
 Who uses what and why?

 I've only ever used Eclipse, but I discovered IntelliJ earlier this week
 and it's so different.  Just wondering pros and cons on each.

 I'm using NetBeans for serveral years now and havn't missed a
 feature yet. IMHO NetBeans is worth a try.

   -Timo

 -
 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: Eclipse or IntelliJ

2013-02-19 Thread Francois Meillet

http://java.dzone.com/articles/why-idea-better-eclipse


François Meillet
Formation Wicket - Développement Wicket





Le 20 févr. 2013 à 01:57, Igor Vaynberg igor.vaynb...@gmail.com a écrit :

 all the popular IDEs have more or less converged in regard to their
 java feature set. now its just a matter of muscle memory :)
 
 -igor
 
 On Tue, Feb 19, 2013 at 4:39 PM, Timo Schmidt wic...@xomit.de wrote:
 On Tue 19.02.2013 15:17, Stephen Walsh wrote:
 Who uses what and why?
 
 I've only ever used Eclipse, but I discovered IntelliJ earlier this week
 and it's so different.  Just wondering pros and cons on each.
 
 I'm using NetBeans for serveral years now and havn't missed a
 feature yet. IMHO NetBeans is worth a try.
 
  -Timo
 
 -
 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