Re: What is your setup for Rapid Application Development?

2013-04-26 Thread Alexey Mukas
Hi Andrew,

For UI we use jquery ui, select2, noty and other js components. Integration
is pretty simple in wicket.
We don't really need any UI designer or CRUD form generation, we just create
html then bind it to the logic. CRUD generation could be added easily if
needed.
Basic core services as you said, in our case is something that allows us
to work rapidly, may be because we don't work on a CRUD app...

I forgot to mention one very nice tool - lombok. It significantly decreases
amount lines in code.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/What-is-your-setup-for-Rapid-Application-Development-tp4658278p4658287.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: What is your setup for Rapid Application Development?

2013-04-26 Thread Vit Rozkovec

Hi,
in past there was project Wicket Web Beans that we have used, but it is 
dead now.
You could just pass an annotated bean object and form would be created 
for you.

There were also components to list records along with basic CRUD operations.


There is also one project - Wicketopia - http://wicketopia.sourceforge.net/
which may server the same purpose but I haven't tried it yet..


Vit





On 26.4.2013 08:01, Alexey Mukas wrote:

Hi Andrew,

For UI we use jquery ui, select2, noty and other js components. Integration
is pretty simple in wicket.
We don't really need any UI designer or CRUD form generation, we just create
html then bind it to the logic. CRUD generation could be added easily if
needed.
Basic core services as you said, in our case is something that allows us
to work rapidly, may be because we don't work on a CRUD app...

I forgot to mention one very nice tool - lombok. It significantly decreases
amount lines in code.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/What-is-your-setup-for-Rapid-Application-Development-tp4658278p4658287.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: What is your setup for Rapid Application Development?

2013-04-26 Thread Martin Grigorov
Hi Andrew,

On Fri, Apr 26, 2013 at 7:13 AM, Andrew Schetinin ascheti...@gmail.comwrote:

 Hi Alexey,

 RAD requires a set of good visual components (not a strong side of Wicket,
 unfortunately), and one of the two features - either a visual form editor
 (10 years ago), or automated CRUD forms generation (today) - again not a
 strong side of Wicket.

 In our case, we had to implement the second option, suitable for our needs


Can you explain what do you mean by suitable for our needs ?
From your message above this phrase it seems RAD/CRUD are something
universal that will fit any needs. But then you say _our needs_ ...

This is the reason why there are no such at the moment. Or at least not
widely used.
Some examples:
- https://sites.google.com/site/wicketrad/ (abandoned few years ago)
- http://wicketwebbeans.sourceforge.net/ (abandoned few years ago)
- https://github.com/jwcarman/Wicketopia  (maintained, but there are no
many users)
and I left the one that is very well maintained for the end:
- http://isis.apache.org/ (see it Wicket Viewer) (very well maintained. I
have no information how many users it has)


 - at least Wicket is more or less okay for that.


I agree. It is very easy to roll your own solution that fits _your_ needs.



 Mentioned services are basic core services, I'd say low-level - they are
 necessary, but they don't mean RAD. For RAD, you need something like Rails
 or Grails.


Then you will figure out that Ruby/Groovy performance is not that good and
you will have to reimplement your prototype with something else ...



 Regards,

 Andrew Schetinin


This is just my personal opinion.



 On Thu, Apr 25, 2013 at 10:37 PM, Alexey Mukas alexey.mu...@gmail.com
 wrote:

  In our project we are using the following tools/libs:
   - hibernate;
   - LiquiBase (db migration);
   - wro4j (for merging/compiling js, less and coffee script);
   - slf4j + logback;
   - selenium;
   - testng;
   - jmockit;
   - jmeter.
 
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/What-is-your-setup-for-Rapid-Application-Development-tp4658278p4658282.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: Wicket stack on a netbook

2013-04-26 Thread Martin Grigorov
Hi,

I think the one that will grab the more resources will be the IDE.
You can run Wicket app with -Xmx 64Mb in Tomcat.

On Thu, Apr 25, 2013 at 9:17 PM, Rafael Barrera Oro boraf...@gmail.comwrote:

 Hello everyone!

 I was wandering if anyone was successful in developing wicket apps from a
 netbook (atom processor, one or two gigs of ram, etc...)

 For wicket stack i mean mysql and eclipse (the latter with an inner tomcat
 instance)

 Thanks in advance!
 Rafael




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


Re: [Wicket 1.4.9] StackOverflow wicket-ajax.js with IE8 64bits

2013-04-26 Thread M4xime
Hi !

Thanks for your reply and link !

I still have one question : why does it happen on IE8 64 bits and not on IE8
32bits ?
I don't get why IE8 64bits seems to have a smaller stack size.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-9-StackOverflow-wicket-ajax-js-with-IE8-64bits-tp4658229p4658291.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 stack on a netbook

2013-04-26 Thread Sven Meier

I did my Wicket development on a netbook a few years ago and it worked fine.
Running Eclipse on XGA display resolution was a PITA though :(.

Sven

On 04/25/2013 09:17 PM, Rafael Barrera Oro wrote:

Hello everyone!

I was wandering if anyone was successful in developing wicket apps from a
netbook (atom processor, one or two gigs of ram, etc...)

For wicket stack i mean mysql and eclipse (the latter with an inner tomcat
instance)

Thanks in advance!
Rafael




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



Re: Understanding Wicket's Session

2013-04-26 Thread Sven Meier

These lines looks suspicious:


public Session newSession(Request request, Response response)
   {
   sessionService = new SessionService(request);
   return sessionService;
   }

final DownloadBagService downloadBag = 
((WicketApplication)session.getApplication()).getSessionService().getDownloadBag();


Your application should not have a field pointing to a session object.

Sven


On 04/25/2013 11:45 PM, dhongyt wrote:

I may have the wrong understanding of this and I'm trying to get the correct
understanding.

I have created a SessionService that extends a AuthenticatedWebSession.
In my wicket application I have created a SessionService via the Override
function newSession


I have a download bag in my SessionService and assumed that a different user
that enters my site would have their own download bag since I thought the
newSession would be unique to different user to runs my Wicket Application.

Instead what I see is that two different user will see the same download
bag.
In my download bag I have:


I assumed that the getSession function would get that individual's download
bag, why are two different users seeing the same download bag?




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Understanding-Wicket-s-Session-tp4658283.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: What is your setup for Rapid Application Development?

2013-04-26 Thread Andrew Schetinin
Hi Martin,

See inside...

On Fri, Apr 26, 2013 at 10:01 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi Andrew,

 On Fri, Apr 26, 2013 at 7:13 AM, Andrew Schetinin ascheti...@gmail.com
 wrote:

  In our case, we had to implement the second option, suitable for our
 needs

 Can you explain what do you mean by suitable for our needs ?
 From your message above this phrase it seems RAD/CRUD are something
 universal that will fit any needs. But then you say _our needs_ ...


We have a pretty basic framework that allows defining an edit form logic in
Java without touching any HTML, and the HTML is generated automatically
from common blocks.
The idea is basic and universal, but the implementation is relatively
tightly coupled with the back-end, and making it more generic (or even
open-sourcing it) requires significant efforts - not something we can do at
this stage.

This is the reason why there are no such at the moment. Or at least not
 widely used.


That's right - it requires a lot of efforts to maintain any framework. From
the other side - consider Rails and Grails - they do have to have RAD GUI
and they are very successful mostly because of that fact.

  - http://isis.apache.org/ (see it Wicket Viewer) (very well maintained. I

 have no information how many users it has)


I considered this one for one of the last projects, but found its
documentation lacking, and decided it is not enough supported.


 Then you will figure out that Ruby/Groovy performance is not that good and
 you will have to reimplement your prototype with something else ...


Well, that's a holy war topic :-) I better will not touch it :-)

Regards,

Andrew

--
Andrew Schetinin


Re: [Wicket 1.4.9] StackOverflow wicket-ajax.js with IE8 64bits

2013-04-26 Thread Martin Grigorov
Hi,


On Fri, Apr 26, 2013 at 9:29 AM, M4xime maxime.nou...@capgemini.com wrote:

 Hi !

 Thanks for your reply and link !

 I still have one question : why does it happen on IE8 64 bits and not on
 IE8
 32bits ?
 I don't get why IE8 64bits seems to have a smaller stack size.


No idea. IE is not the most friendlier environment for running web apps





 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-9-StackOverflow-wicket-ajax-js-with-IE8-64bits-tp4658229p4658291.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: What is your setup for Rapid Application Development?

2013-04-26 Thread Dan Simko
Please take a look also on https://github.com/brix-cms/brix-cms/wiki


On Fri, Apr 26, 2013 at 9:38 AM, Andrew Schetinin ascheti...@gmail.comwrote:

 Hi Martin,

 See inside...

 On Fri, Apr 26, 2013 at 10:01 AM, Martin Grigorov mgrigo...@apache.org
 wrote:

  Hi Andrew,
 
  On Fri, Apr 26, 2013 at 7:13 AM, Andrew Schetinin ascheti...@gmail.com
  wrote:
 
   In our case, we had to implement the second option, suitable for our
  needs
 
  Can you explain what do you mean by suitable for our needs ?
  From your message above this phrase it seems RAD/CRUD are something
  universal that will fit any needs. But then you say _our needs_ ...
 

 We have a pretty basic framework that allows defining an edit form logic in
 Java without touching any HTML, and the HTML is generated automatically
 from common blocks.
 The idea is basic and universal, but the implementation is relatively
 tightly coupled with the back-end, and making it more generic (or even
 open-sourcing it) requires significant efforts - not something we can do at
 this stage.

 This is the reason why there are no such at the moment. Or at least not
  widely used.
 

 That's right - it requires a lot of efforts to maintain any framework. From
 the other side - consider Rails and Grails - they do have to have RAD GUI
 and they are very successful mostly because of that fact.

   - http://isis.apache.org/ (see it Wicket Viewer) (very well maintained.
 I

  have no information how many users it has)
 

 I considered this one for one of the last projects, but found its
 documentation lacking, and decided it is not enough supported.


  Then you will figure out that Ruby/Groovy performance is not that good
 and
  you will have to reimplement your prototype with something else ...
 
 
 Well, that's a holy war topic :-) I better will not touch it :-)

 Regards,

 Andrew

 --
 Andrew Schetinin



Datepicker only Hours

2013-04-26 Thread Christoph.Manig
Hello,

I have a DatePicker inside a Form. How can I say the Datepicker that it should 
set the date (day, month, year)  on the actual day when I only fill the fields 
for time (hour and minutes)?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





Re: What is your setup for Rapid Application Development?

2013-04-26 Thread Martin Grigorov
Hi Andrew,


On Fri, Apr 26, 2013 at 9:38 AM, Andrew Schetinin ascheti...@gmail.comwrote:

 Hi Martin,

 See inside...

 On Fri, Apr 26, 2013 at 10:01 AM, Martin Grigorov mgrigo...@apache.org
 wrote:

  Hi Andrew,
 
  On Fri, Apr 26, 2013 at 7:13 AM, Andrew Schetinin ascheti...@gmail.com
  wrote:
 
   In our case, we had to implement the second option, suitable for our
  needs
 
  Can you explain what do you mean by suitable for our needs ?
  From your message above this phrase it seems RAD/CRUD are something
  universal that will fit any needs. But then you say _our needs_ ...
 

 We have a pretty basic framework that allows defining an edit form logic in
 Java without touching any HTML, and the HTML is generated automatically
 from common blocks.
 The idea is basic and universal, but the implementation is relatively
 tightly coupled with the back-end, and making it more generic (or even
 open-sourcing it) requires significant efforts - not something we can do at
 this stage.

 This is the reason why there are no such at the moment. Or at least not
  widely used.
 

 That's right - it requires a lot of efforts to maintain any framework. From


It is not the maintenance cost the problem.
The reason why these frameworks have been abandoned is because there were
no users for them. Or at least not enough.


 the other side - consider Rails and Grails - they do have to have RAD GUI
 and they are very successful mostly because of that fact.

   - http://isis.apache.org/ (see it Wicket Viewer) (very well maintained.
 I

  have no information how many users it has)
 

 I considered this one for one of the last projects, but found its
 documentation lacking, and decided it is not enough supported.


The Isis developers are very friendly and they provide fast support in
their mailing lists.
I hope you have told them that you have considered Isis but choose to roll
your own solution because their docs are lacking. Without your feedback it
wont get better by itself ;-)


But even that I know about Isis, and their great support in forums, etc. I
would still prefer to create my own solution for the problem because it
will be much easier for me.



  Then you will figure out that Ruby/Groovy performance is not that good
 and
  you will have to reimplement your prototype with something else ...
 
 
 Well, that's a holy war topic :-) I better will not touch it :-)

 Regards,

 Andrew

 --
 Andrew Schetinin




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


Re: What is your setup for Rapid Application Development?

2013-04-26 Thread Andrew Schetinin
Hi Martin,

On Fri, Apr 26, 2013 at 11:17 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi Andrew,

 On Fri, Apr 26, 2013 at 9:38 AM, Andrew Schetinin ascheti...@gmail.com
 wrote:

 It is not the maintenance cost the problem.
 The reason why these frameworks have been abandoned is because there were
 no users for them. Or at least not enough.


Then again - I'm wondering why Grails and Rails are successful (huge user
base) and these frameworks are not (don't have enough users) :-)
Grails and Rails are simply very good RAD tools, isn't that right?
I strongly believe that Wicket would be able to attract much larger user
base if only it would have a better set of UI components, and better RAD
tooling.
The situation improves lately, but very slowly - not fast enough to
complete with other frameworks.



 I hope you have told them that you have considered Isis but choose to roll
 your own solution because their docs are lacking. Without your feedback it
 wont get better by itself ;-)


I considered Isis for a separate new project with lots of admin UI, and
compared it against Play (1 or 2) and Grails. Finally I've decided to go
with Grails in that case.
Our main product was started quite some time ago, long before Isis (or long
before I had learned about Isis).
Back than we also seriously considered Grails as a Wicket alternative, and
started using Wicket due to performance. Honestly, I'm still wondering
about correctness of that decision, but that's another story :-)



 But even that I know about Isis, and their great support in forums, etc. I
 would still prefer to create my own solution for the problem because it
 will be much easier for me.


Personally, I'd prefer to have a rich framework to start building upon,
instead of developing another bicycle.

Regards,

Andrew

--
Andrew Schetinin


Re: What is your setup for Rapid Application Development?

2013-04-26 Thread Andrew Schetinin
Hi Alexey,

Well, you're right.

To me, RAD was always about GUI prototyping or massive GUI development,
turning around code generation tools.

I've checked the terminology and found that it is a broader term, even
mixed up with Agile and Scrum which are more about project management and
not about tools.

So if we're talking about more general tools for quickening the application
development, your toolset is very good.

Regards,

Andrew

On Fri, Apr 26, 2013 at 9:01 AM, Alexey Mukas alexey.mu...@gmail.comwrote:

 Hi Andrew,

 For UI we use jquery ui, select2, noty and other js components. Integration
 is pretty simple in wicket.
 We don't really need any UI designer or CRUD form generation, we just
 create
 html then bind it to the logic. CRUD generation could be added easily if
 needed.
 Basic core services as you said, in our case is something that allows us
 to work rapidly, may be because we don't work on a CRUD app...

 I forgot to mention one very nice tool - lombok. It significantly decreases
 amount lines in code.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/What-is-your-setup-for-Rapid-Application-Development-tp4658278p4658287.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




-- 

Regards,

Andrew

--
Andrew Schetinin


Re: What is your setup for Rapid Application Development?

2013-04-26 Thread Martin Grigorov
Hi Andrew,

There are different tools for different tasks. That's clear.
You prefer tools which generate code for you, I prefer finer control.
That's OK.

About performance check
http://www.techempower.com/benchmarks/#section=data-r3
I'm not trying to convince you anything :-)



On Fri, Apr 26, 2013 at 11:01 AM, Andrew Schetinin ascheti...@gmail.comwrote:

 Hi Alexey,

 Well, you're right.

 To me, RAD was always about GUI prototyping or massive GUI development,
 turning around code generation tools.

 I've checked the terminology and found that it is a broader term, even
 mixed up with Agile and Scrum which are more about project management and
 not about tools.

 So if we're talking about more general tools for quickening the application
 development, your toolset is very good.

 Regards,

 Andrew

 On Fri, Apr 26, 2013 at 9:01 AM, Alexey Mukas alexey.mu...@gmail.com
 wrote:

  Hi Andrew,
 
  For UI we use jquery ui, select2, noty and other js components.
 Integration
  is pretty simple in wicket.
  We don't really need any UI designer or CRUD form generation, we just
  create
  html then bind it to the logic. CRUD generation could be added easily if
  needed.
  Basic core services as you said, in our case is something that allows
 us
  to work rapidly, may be because we don't work on a CRUD app...
 
  I forgot to mention one very nice tool - lombok. It significantly
 decreases
  amount lines in code.
 
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/What-is-your-setup-for-Rapid-Application-Development-tp4658278p4658287.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
 
 


 --

 Regards,

 Andrew

 --
 Andrew Schetinin




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


FW: [Building Sakai] Quartz

2013-04-26 Thread Antonio muñoz alonso
From ArchiveSite(class implements Job) 

Well I need to access functions that I have implemented in sakai proxy and 
theninsert data into the database.

NPE when I access from ArchiveSites.

From: antoniovalenciasp...@hotmail.com
To: steve.swinsb...@gmail.com
Subject: RE: [Building Sakai] Quartz
Date: Wed, 17 Apr 2013 01:23:36 +0200




Any ideas?? about the error

From: antoniovalenciasp...@hotmail.com
To: steve.swinsb...@gmail.com
Date: Thu, 11 Apr 2013 23:39:49 +0200
CC: sakai-...@collab.sakaiproject.org
Subject: Re: [Building Sakai] Quartz




https://www.dropbox.com/s/pj1hig1uercdgru/testv2.zip

Subject: Re: [Building Sakai] Quartz
From: steve.swinsb...@gmail.com
Date: Fri, 12 Apr 2013 07:23:56 +1000
CC: sakai-...@collab.sakaiproject.org
To: antoniovalenciasp...@hotmail.com

Send latest code.
On 12/04/2013, at 7:19 AM, Antonio muñoz alonso 
antoniovalenciasp...@hotmail.com wrote:yes, I tested with a clean tomcat

Subject: Re: [Building Sakai] Quartz
From: steve.swinsb...@gmail.com
Date: Fri, 12 Apr 2013 07:15:24 +1000
CC: sakai-...@collab.sakaiproject.org
To: antoniovalenciasp...@hotmail.com

Have you deployed this modified version into a clean tomcat?

On 12/04/2013, at 7:12 AM, Antonio muñoz alonso 
antoniovalenciasp...@hotmail.com wrote:I get the same error.   :(
I restarted and not run any previous version archiveSites.

Subject: Re: [Building Sakai] Quartz
From: steve.swinsb...@gmail.com
Date: Thu, 11 Apr 2013 22:05:40 +1000
CC: sakai-...@collab.sakaiproject.org
To: antoniovalenciasp...@hotmail.com

Ok you are using a wicket Spring injection annotation for injecting a 
dependency. This won't work here.
What you need to do is remove these two lines (and cleanup the imports):
@SpringBean(name=test.logic.SakaiProxy2)protected SakaiProxy2 SakaiProxy;
And replace them with this. Note the setter which Spring will use when setting 
up the dependency.Note also I renamed the variable to start with a lowercase 
letter, as per standard naming conventions. Through out the code, refer to it 
as this (there is a line elsewhere where you use SakaiProxy.
private SakaiProxy2 sakaiProxy; 
public void setSakaiProxy2(SakaiProxy2 sakaiProxy) {this. 
sakaiProxy = sakaiProxy;}


On 11/04/2013, at 8:43 AM, Antonio muñoz alonso 
antoniovalenciasp...@hotmail.com wrote:Code.
Error in ArchiveSite, when execute function of SakaiProxy.

CC: antoniovalenciasp...@hotmail.com; sakai-...@collab.sakaiproject.org
From: steve.swinsb...@gmail.com
Subject: Re: [Building Sakai] Quartz
Date: Thu, 11 Apr 2013 00:32:36 +1000
To: d...@vt.edu

Yeah we are going to need to see the code before we can help more I think. Can 
you upload it somewhere? 

Sent from my iPhone
On 10/04/2013, at 22:36, David Adams d...@vt.edu wrote:

Antonio,The method that works best for me to extract myself from these types of 
problems is to start completely over with a new Tomcat and new project, make 
sure they run by themselves, then gradually add bits and pieces of the work I 
did in the original project, compiling and testing as I go, until I get to 
where I want to be. At this point, I think even if you did get it to work, 
you'd have something of a mess on your hands to deal with later.
Good luck.
-daveDavid AdamsDirector, Systems Integration and SupportVirginia Tech Learning 
Technologies

On Wed, Apr 10, 2013 at 4:09 AM, Antonio muñoz 
alonsoantoniovalenciasp...@hotmail.com wrote:
This trace was using SakaiPRoxy2.

- I created a function in Sakai Proxy2 that returns a String = HELLOWORLD. 
return ERROR
-I created a normal class (without interface) in sakai.project.logic, which 
returns Hello World, NO returns error.
--
Deleted ArchiveSites and commented bean.
In the list for a new job and does not appear,but running the existing work.
same error but without the line Archive Site

Trace:
java.lang.NullPointerException
at 
org.sakaiproject.component.app.scheduler.jobs.SpringJobBeanWrapper.execute(SpringJobBeanWrapper.java:70)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at 
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:534)
2013-04-10 11:04:13,520 ERROR QuartzScheduler_Worker-1 
org.quartz.core.ErrorLogger - Job (DEFAULT.Hola threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested 
exception: java.lang.NullPointerException]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at 
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:534)
Caused by: java.lang.NullPointerException
at 
org.sakaiproject.component.app.scheduler.jobs.SpringJobBeanWrapper.execute(SpringJobBeanWrapper.java:70)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

CC: sakai-...@collab.sakaiproject.org
From: steve.swinsb...@gmail.com
Subject: Re: [Building Sakai] Quartz
Date: Wed, 10 Apr 2013 12:30:28 +1000
To: antoniovalenciasp...@hotmail.com

That first line of the trace shows that archive sites is still loaded. Clean 
out 

Datepicker only Hours

2013-04-26 Thread Christoph.Manig
Hello,

I have a DatePicker inside a Form. How can I say the Datepicker that it should 
set the date (day, month, year)  on the actual day when I only fill the fields 
for time (hour and minutes)?



Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





Re: Datepicker only Hours

2013-04-26 Thread Martin Grigorov
Hi,

You will have to consult with YUI 2.x DatePicker documentation to see what
JS call is needed.


On Fri, Apr 26, 2013 at 12:19 PM, christoph.ma...@t-systems.com wrote:

 Hello,

 I have a DatePicker inside a Form. How can I say the Datepicker that it
 should set the date (day, month, year)  on the actual day when I only fill
 the fields for time (hour and minutes)?



 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics
 Hoyerswerdaer Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com






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


DefaultDataTable with NavigationToolbar

2013-04-26 Thread Christoph.Manig
Hello,

I'm using a DefaultDataTable with a NavigationToolbar. I want to show on every 
TablePage 10 rows. Now when I have more than 10 rows (e.g  11) the 
navigationtoolbar appears and I can switch on the 2nd page to see the 11th row. 
But on the 2nd page the Table shows again the first row and not the 11th.

Can you help me please?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





Re: DefaultDataTable with NavigationToolbar

2013-04-26 Thread Martin Grigorov
Hi,

The problem seems to be in your implementation of
org.apache.wicket.markup.repeater.data.IDataProvider#iterator(long first,
long count)


On Fri, Apr 26, 2013 at 1:10 PM, christoph.ma...@t-systems.com wrote:

 Hello,

 I'm using a DefaultDataTable with a NavigationToolbar. I want to show on
 every TablePage 10 rows. Now when I have more than 10 rows (e.g  11) the
 navigationtoolbar appears and I can switch on the 2nd page to see the 11th
 row. But on the 2nd page the Table shows again the first row and not the
 11th.

 Can you help me please?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics
 Hoyerswerdaer Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com






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


AW: DefaultDataTable with NavigationToolbar

2013-04-26 Thread Christoph.Manig
Hello,

this is the implementation of the DataProvider:

@Override
public IteratorUserRecord iterator(long l, long l2) {
if (userList != null){
Collections.sort(userList,comparator);
}else{
System.out.println(User-List ist leer!);
}
return userList.iterator();
}

What should have been changed? Can you explain me what these 2 parameters 
should do?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com

-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Freitag, 26. April 2013 13:22
An: users@wicket.apache.org
Betreff: Re: DefaultDataTable with NavigationToolbar

Hi,

The problem seems to be in your implementation of 
org.apache.wicket.markup.repeater.data.IDataProvider#iterator(long first, long 
count)


On Fri, Apr 26, 2013 at 1:10 PM, christoph.ma...@t-systems.com wrote:

 Hello,

 I'm using a DefaultDataTable with a NavigationToolbar. I want to show 
 on every TablePage 10 rows. Now when I have more than 10 rows (e.g  
 11) the navigationtoolbar appears and I can switch on the 2nd page to 
 see the 11th row. But on the 2nd page the Table shows again the first 
 row and not the 11th.

 Can you help me please?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com






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

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



Re: DefaultDataTable with NavigationToolbar

2013-04-26 Thread Martin Grigorov
On Fri, Apr 26, 2013 at 1:37 PM, christoph.ma...@t-systems.com wrote:

 Hello,

 this is the implementation of the DataProvider:

 @Override
 public IteratorUserRecord iterator(long l, long l2) {
 if (userList != null){
 Collections.sort(userList,comparator);
 }else{
 System.out.println(User-List ist leer!);
 }
 return userList.iterator();


try with: userList.subList((int)l, (int)l2).iterator();


 }

 What should have been changed? Can you explain me what these 2 parameters
 should do?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics
 Hoyerswerdaer Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 – 209
 email:  christoph.ma...@t-systems.com

 -Ursprüngliche Nachricht-
 Von: Martin Grigorov [mailto:mgrigo...@apache.org]
 Gesendet: Freitag, 26. April 2013 13:22
 An: users@wicket.apache.org
 Betreff: Re: DefaultDataTable with NavigationToolbar

 Hi,

 The problem seems to be in your implementation of
 org.apache.wicket.markup.repeater.data.IDataProvider#iterator(long first,
 long count)


 On Fri, Apr 26, 2013 at 1:10 PM, christoph.ma...@t-systems.com wrote:

  Hello,
 
  I'm using a DefaultDataTable with a NavigationToolbar. I want to show
  on every TablePage 10 rows. Now when I have more than 10 rows (e.g
  11) the navigationtoolbar appears and I can switch on the 2nd page to
  see the 11th row. But on the 2nd page the Table shows again the first
  row and not the 11th.
 
  Can you help me please?
 
 
  Mit freundlichen Grüßen
  Christoph Manig
  Systems Engineer
 
  T-Systems International GmbH
  Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer
  Str. 18
  01099 Dresden
  tel.:   +49 (0) 351 / 8152 - 188
  fax:+49 (0) 351 / 8152 - 209
  email:  christoph.ma...@t-systems.com
 
 
 
 


 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com http://jweekend.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/


AW: DefaultDataTable with NavigationToolbar

2013-04-26 Thread Christoph.Manig
This works. Thank you.


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Freitag, 26. April 2013 13:49
An: users@wicket.apache.org
Betreff: Re: DefaultDataTable with NavigationToolbar

On Fri, Apr 26, 2013 at 1:37 PM, christoph.ma...@t-systems.com wrote:

 Hello,

 this is the implementation of the DataProvider:

 @Override
 public IteratorUserRecord iterator(long l, long l2) {
 if (userList != null){
 Collections.sort(userList,comparator);
 }else{
 System.out.println(User-List ist leer!);
 }
 return userList.iterator();


try with: userList.subList((int)l, (int)l2).iterator();


 }

 What should have been changed? Can you explain me what these 2 
 parameters should do?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 – 209
 email:  christoph.ma...@t-systems.com

 -Ursprüngliche Nachricht-
 Von: Martin Grigorov [mailto:mgrigo...@apache.org]
 Gesendet: Freitag, 26. April 2013 13:22
 An: users@wicket.apache.org
 Betreff: Re: DefaultDataTable with NavigationToolbar

 Hi,

 The problem seems to be in your implementation of 
 org.apache.wicket.markup.repeater.data.IDataProvider#iterator(long 
 first, long count)


 On Fri, Apr 26, 2013 at 1:10 PM, christoph.ma...@t-systems.com wrote:

  Hello,
 
  I'm using a DefaultDataTable with a NavigationToolbar. I want to 
  show on every TablePage 10 rows. Now when I have more than 10 rows 
  (e.g
  11) the navigationtoolbar appears and I can switch on the 2nd page 
  to see the 11th row. But on the 2nd page the Table shows again the 
  first row and not the 11th.
 
  Can you help me please?
 
 
  Mit freundlichen Grüßen
  Christoph Manig
  Systems Engineer
 
  T-Systems International GmbH
  Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
  Str. 18
  01099 Dresden
  tel.:   +49 (0) 351 / 8152 - 188
  fax:+49 (0) 351 / 8152 - 209
  email:  christoph.ma...@t-systems.com
 
 
 
 


 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com http://jweekend.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/

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



How to make the link to a wicket page from an external website?

2013-04-26 Thread mike.hua
For example,there is a hyperlink in an ASP page, and I don't know how to set
the href property to redirect the target wicket page.
What shoud I do?

Thanks a lot!




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-make-the-link-to-a-wicket-page-from-an-external-website-tp4658313.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 make the link to a wicket page from an external website?

2013-04-26 Thread Martin Grigorov
Hi,

What would you do if you need to redirect from this ASP page to
http://www.example.com ?
You would hardcode it, I guess.

Mount the Wicket page at some path and use: with
http://www.your-site.com/mount/path

You can create a special Wicket IResource that serves as web service - pass
the page name as parameter, create RenderPageRequestHandler with the page
class and use the request cycle to generate the full url. If this is not
too insane web service for you.


On Fri, Apr 26, 2013 at 2:05 PM, mike.hua hz...@sohu.com wrote:

 For example,there is a hyperlink in an ASP page, and I don't know how to
 set
 the href property to redirect the target wicket page.
 What shoud I do?

 Thanks a lot!




 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/How-to-make-the-link-to-a-wicket-page-from-an-external-website-tp4658313.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: How to make the link to a wicket page from an external website?

2013-04-26 Thread mike.hua
The wicket page is not home page.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-make-the-link-to-a-wicket-page-from-an-external-website-tp4658313p4658314.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: Link generation from outside of Wicket - was Re: [ANNOUNCE] Apache Wicket 6.7.0 Released!

2013-04-26 Thread Martin Grigorov
Hi,

In another thread I suggested an insane idea but maybe it could be useful
for someone.
You can expose Wicket IResource as a web service. Pass it the class name as
parameter and it can use normal Wicket functionality to return the full url
for that page.
The catch is that you need to know the url of the web service to be able to
use it.


On Fri, Apr 19, 2013 at 6:34 PM, Guillaume Smet guillaume.s...@gmail.comwrote:

 On Fri, Apr 19, 2013 at 4:30 PM, Martin Grigorov mgrigo...@apache.org
 wrote:
  What exactly you mean by outside of Wicket ?
  What Wicket objects you have access to ?
  The application name will be needed and a base url. Usually the current
  request's baseUrl is used to construct a full url. Without the base url
  Wicket can generate only context-absolute url.

 I'm in exactly the same situation as Martin Dietze.

 I have to generate URL to a Wicket page in a batch scheduled by Spring
 or Quartz.

 We did it following the guidance you gave to Martin but it's quite
 complicated. As you mentioned it, we have in a configuration parameter
 the scheme/host/port information and we generate an URL to a wicket
 page from there by getting the application by its name and building a
 fake request and a fake RequestCycle.

 FWIW, here is the current version of what we use:
 https://gist.github.com/gsmet/5421471

 --
 Guillaume

 -
 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: Understanding Wicket's Session

2013-04-26 Thread dhongyt
Thanks I have fixed the issue.

It was my:


From my understanding I was getting the Wicket Application's session so
that's why it was shared across users.

So what I did was:


And removed SessionService entirely from the WicketApplication.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Understanding-Wicket-s-Session-tp4658283p4658317.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: Understanding Wicket's Session

2013-04-26 Thread Bertrand Guay-Paquet
This is weird... In both of dhongyt's emails, there isn't any source 
code in the email body. I just noticed that the nabble link does show 
the source code however. Any idea why?


On 26/04/2013 10:16 AM, dhongyt wrote:

Thanks I have fixed the issue.

It was my:


 From my understanding I was getting the Wicket Application's session so
that's why it was shared across users.

So what I did was:


And removed SessionService entirely from the WicketApplication.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Understanding-Wicket-s-Session-tp4658283p4658317.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



Overriding markup loading results in errors with inheritance

2013-04-26 Thread mazabel
Hi,

for certain pages I want to customize markup loading, so the markup is
loaded from another source instead of the standard file location.

Given a method to obtain the markup, getMarkupFileFromSomewhereElse, this
should work as follows (explanation can be found here:
http://www.mkyong.com/wicket/how-do-change-the-html-file-location-wicket/):

public class MyApplication extends WebApplication {

@Override
public void init() {
super.init();   
...
getResourceSettings().setResourceStreamLocator(new 
MyOwnStreamLocator());

}

public class MyOwnStreamLocator extends ResourceStreamLocator
{
@Override
public IResourceStream locate(Class? clazz, String path)
{
File markUp = getMarkupFileFromSomewhereElse(clazz);
IResourceStream is = new FileResourceStream(markup);
IResourceStream standard = super.locate(clazz, path);

//return standard; //works always
return is; //works only if the desired markup does not 
contain inherited
markup
}
}
}

Even if is.getInputStream() gives exactly the same text as
standard.getInputStream(), this leads for any markup containing inheritance
from another markup to the following stacktrace:

ERROR - MarkupFactory  - Markup not found: Base markup of
inherited markup not found. Component class: my.package.HomePage. Enable
debug messages for
org.apache.wicket.core.util.resource.locator.ResourceStreamLocator to get a
list of all filenames tried.
org.apache.wicket.markup.MarkupNotFoundException: Base markup of inherited
markup not found. Component class: my.package.HomePage. Enable debug
messages for
org.apache.wicket.core.util.resource.locator.ResourceStreamLocator to get a
list of all filenames tried.
at
org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:71)
at
org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:52)
at
org.apache.wicket.markup.MarkupFactory.loadMarkup(MarkupFactory.java:412)
at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:448)
...

ERROR - DefaultExceptionMapper - Unexpected error occurred
org.apache.wicket.markup.MarkupNotFoundException: Can not determine Markup.
Component is not yet connected to a parent. [Page class =
my.package.HomePage, id = 0, render count = 1]
at org.apache.wicket.Component.getMarkup(Component.java:736)
at org.apache.wicket.Component.internalRender(Component.java:2335)
at org.apache.wicket.Component.render(Component.java:2298)
at org.apache.wicket.Page.renderPage(Page.java:1010)
at
org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:116)
...


A bug in the markup itself may not be the problem since the input streams of
both IResourceStreams contain the same text. Only difference is, the
IResourceStream generated by standard implementation works perfectly fine..

Wicket version is 6.7.0. 

Has anyone ever encountered this problem? Thank you in advance!

Martin



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Overriding-markup-loading-results-in-errors-with-inheritance-tp4658319.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: Disabling Individual Checkboxes in CheckGroup

2013-04-26 Thread eugenebalt
Igor,

The problem is, you do check.setEnabled(false) in *ListView.populateItem()*
for a CheckGroup control.

This method executes AFTER the Ajax update. It's too late to do
check.setEnable(false) on the render of the CheckGroup's ListView. We need
to disable/enable checkboxes in a CheckGroup as part of the Ajax update.

(This does work with CheckBoxMultipleChoice, because there is no ListView
rendering and the checkboxes can be handled individually, but we need a grid
layout and we don't get it with that control.)

Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Disabling-Individual-Checkboxes-in-CheckGroup-tp4658165p4658320.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



Button FB and Twitter in Wicket

2013-04-26 Thread Antonio muñoz alonso
hi.

How can add the button to share on facebook and twitter in wicket?
I have a list of words, when you press the button I want to be published.

Thanks
  

Re: Can't Ajax-Update CheckGroup with new ListView

2013-04-26 Thread Paul Bors
Why not reuse the list of check boxes, grab a hold of their models and
toggle them on and off as you wish?

See ListView.setReuseItems(true)

~ Thank you,
   Paul Bors

On Mon, Apr 22, 2013 at 10:27 AM, eugenebalt eugeneb...@yahoo.com wrote:

 Any help on this issue?



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Can-t-Ajax-Update-CheckGroup-with-new-ListView-tp4658090p4658162.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: Can't Ajax-Update CheckGroup with new ListView

2013-04-26 Thread eugenebalt
Paul, how would the model specify enabled/disabled status? The model contains
the values of the checkboxes.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Can-t-Ajax-Update-CheckGroup-with-new-ListView-tp4658090p4658323.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: Example for saving value edited in Text Box on exit event

2013-04-26 Thread Martin Grigorov
Hi,

There is no 'exit' event.
Please give us more details. And show us what you have so far.


On Fri, Apr 26, 2013 at 8:54 PM, Bruno Moura brunormo...@gmail.com wrote:

 Hi someone please could give me an example for saving value edited in Text
 Box, inside a listview, via ajax on exit event.

 I need a example of this implementation for wicket 1.4 and if its possible
 in scala.

 Thanks



 Bruno Moura




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


Re: Can't Ajax-Update CheckGroup with new ListView

2013-04-26 Thread Paul Bors
Take a look at the Wicket Examples:
http://www.wicket-library.com/wicket-examples/index.html

Mainly the forminput - Basic form processing

There is a select one or more numbers (CheckGroup) and if you look at the
sourcecode from upper right corner you can view the FormInput.java.

Scroll down till you get to this section:

CheckGroupString checks = *new* CheckGroupString(numbersCheckGroup);
add(checks);
ListViewString checksList = *new* ListViewString(numbers, NUMBERS)
{
   @Override
   *protected* void populateItem(ListItemString item)
   {
 CheckString check = *new* CheckString(check, item.getModel());
 check.setLabel(item.getModel());
 item.add(check);
 item.add(*new* SimpleFormComponentLabel(number, check));
   }
}.setReuseItems(true);
checks.add(checksList);
Notice the model of the CheckGroup is a *new* CompoundPropertyModel
FormInputModel()

Now take a look at the FormInputModel and you'll see that the numbersCheckGroup
is actually nothing but a ListString numbersCheckGroup = *new* ArrayList
String(); Because this list starts as an empty list there are no check
boxes of that group selected when the page first renders. As you select
some check boxes and submit the form, wicket in turn adds those checks to
the list for you.

Don't confuse this list that's the model object for the CheckGroup with the
model object for the Check. See how in the above code a ListView is used to
render the Checks needed given the NUMBERS constants? That's what controls
how many checks you have and what value is inserted into the
numbersCheckGroup. So, if you want to add some AjaxBehavior to those Cheks,
then you'd add your behavior and to select some Checks you'd insert into
the numbersCheckGroup list the value from NUMBERS of the check you want to
have auto-checked or remove it if you want to un-check it.

Of course, now you have to figure out the same for your own domain objects.

I suggest you start by grabbing a hold of the example code and then modify
it to work with Ajax as you want it to.
Once you understand how that works, then you can implement it into your own
product.

For more on Wicket Models see:
https://cwiki.apache.org/WICKET/working-with-wicket-models.html
http://wicket.apache.org/learn/books/freeguide.html (chapter 9 and 10.10.1
Working with grouped checkboxes)

~ Thank you,
   Paul Bors

On Fri, Apr 26, 2013 at 1:22 PM, eugenebalt eugeneb...@yahoo.com wrote:

 Paul, how would the model specify enabled/disabled status? The model
 contains
 the values of the checkboxes.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Can-t-Ajax-Update-CheckGroup-with-new-ListView-tp4658090p4658323.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: Overriding markup loading results in errors with inheritance

2013-04-26 Thread Paul Bors
MarkupNotFoundException: Can not determine Markup. Component is not yet
connected to a parent. kind of tells you that perhaps you forgot to use
the add() method?

Also see How to do things in Wicket:
https://cwiki.apache.org/WICKET/how-to-do-things-in-wicket.html

More precisly Control where HTML files are loaded
fromhttps://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
:
https://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html

Is a little bit out of date, but it should give you the right ideas.

You should also search this users list for past post such as:
http://apache-wicket.1842946.n4.nabble.com/Advanced-Mounting-amp-Markup-Location-td3705032.html
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-and-panel-with-different-markup-location-td4651853.html
etc.

BTW, does it work when you place the markup in the expected default
location next to your java classes?

~ Thank you,
   Paul Bors


On Fri, Apr 26, 2013 at 10:48 AM, mazabel m.za...@snafu.de wrote:

 Hi,

 for certain pages I want to customize markup loading, so the markup is
 loaded from another source instead of the standard file location.

 Given a method to obtain the markup, getMarkupFileFromSomewhereElse, this
 should work as follows (explanation can be found here:
 http://www.mkyong.com/wicket/how-do-change-the-html-file-location-wicket/
 ):

 public class MyApplication extends WebApplication {

 @Override
 public void init() {
 super.init();
 ...
 getResourceSettings().setResourceStreamLocator(new
 MyOwnStreamLocator());

 }

 public class MyOwnStreamLocator extends ResourceStreamLocator
 {
 @Override
 public IResourceStream locate(Class? clazz, String path)
 {
 File markUp =
 getMarkupFileFromSomewhereElse(clazz);
 IResourceStream is = new
 FileResourceStream(markup);
 IResourceStream standard = super.locate(clazz,
 path);

 //return standard; //works always
 return is; //works only if the desired markup does
 not contain inherited
 markup
 }
 }
 }

 Even if is.getInputStream() gives exactly the same text as
 standard.getInputStream(), this leads for any markup containing inheritance
 from another markup to the following stacktrace:

 ERROR - MarkupFactory  - Markup not found: Base markup of
 inherited markup not found. Component class: my.package.HomePage. Enable
 debug messages for
 org.apache.wicket.core.util.resource.locator.ResourceStreamLocator to get a
 list of all filenames tried.
 org.apache.wicket.markup.MarkupNotFoundException: Base markup of inherited
 markup not found. Component class: my.package.HomePage. Enable debug
 messages for
 org.apache.wicket.core.util.resource.locator.ResourceStreamLocator to get a
 list of all filenames tried.
 at

 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:71)
 at

 org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:52)
 at
 org.apache.wicket.markup.MarkupFactory.loadMarkup(MarkupFactory.java:412)
 at
 org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:448)
 ...

 ERROR - DefaultExceptionMapper - Unexpected error occurred
 org.apache.wicket.markup.MarkupNotFoundException: Can not determine Markup.
 Component is not yet connected to a parent. [Page class =
 my.package.HomePage, id = 0, render count = 1]
 at org.apache.wicket.Component.getMarkup(Component.java:736)
 at org.apache.wicket.Component.internalRender(Component.java:2335)
 at org.apache.wicket.Component.render(Component.java:2298)
 at org.apache.wicket.Page.renderPage(Page.java:1010)
 at

 org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:116)
 ...


 A bug in the markup itself may not be the problem since the input streams
 of
 both IResourceStreams contain the same text. Only difference is, the
 IResourceStream generated by standard implementation works perfectly fine..

 Wicket version is 6.7.0.

 Has anyone ever encountered this problem? Thank you in advance!

 Martin



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Overriding-markup-loading-results-in-errors-with-inheritance-tp4658319.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: Disabling Individual Checkboxes in CheckGroup

2013-04-26 Thread Paul Bors
You can always override the getter method when you construct the Checks and
toggle the boolean value via Ajax.

~ Thank you,
   Paul Bors


On Fri, Apr 26, 2013 at 11:39 AM, eugenebalt eugeneb...@yahoo.com wrote:

 Igor,

 The problem is, you do check.setEnabled(false) in *ListView.populateItem()*
 for a CheckGroup control.

 This method executes AFTER the Ajax update. It's too late to do
 check.setEnable(false) on the render of the CheckGroup's ListView. We need
 to disable/enable checkboxes in a CheckGroup as part of the Ajax update.

 (This does work with CheckBoxMultipleChoice, because there is no ListView
 rendering and the checkboxes can be handled individually, but we need a
 grid
 layout and we don't get it with that control.)

 Thanks



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Disabling-Individual-Checkboxes-in-CheckGroup-tp4658165p4658320.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: Example for saving value edited in Text Box on exit event

2013-04-26 Thread Bruno Moura
Hi Martin

I trying to add a TextField in a list view as is showed bellow:

val detail = new TextField(detail, new PropertyModel(objItem,
description))
  detail.add(new AjaxFormComponentUpdatingBehavior((keyup)) {
protected def onUpdate(target: AjaxRequestTarget) {
objItemDAO.saveObjItem(objItem)
}
})
item.add(detail)

I need to save the object objItem immediately after the user finishes
editing this. Maybe this component
coulb be changed by a inline label, but I need to some example that could
works with wicket 1.4.

Thanks again Martin for your help.




Bruno Moura


2013/4/26 Martin Grigorov mgrigo...@apache.org

 Hi,

 There is no 'exit' event.
 Please give us more details. And show us what you have so far.


 On Fri, Apr 26, 2013 at 8:54 PM, Bruno Moura brunormo...@gmail.com
 wrote:

  Hi someone please could give me an example for saving value edited in
 Text
  Box, inside a listview, via ajax on exit event.
 
  I need a example of this implementation for wicket 1.4 and if its
 possible
  in scala.
 
  Thanks
 
 
 
  Bruno Moura
 



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



Ajax call of textfield after pressing the Enter key

2013-04-26 Thread Andre Schütz
Hello,

I tried to find out how I can make a Ajax call from a textfield after pressing 
the Enter key. I want to reach the following:
- The user types a name into the textfield
- After pressing the Enter key, the value of the textfield will be processed on 
the server side

I tried AjaxFormSubmitBehavior and AjaxFormComponentUpdatingBehavior without 
success.
Can anyone help me with an example?

-- 
Andre Schütz wic...@faustas.de

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



Re: How to make the link to a wicket page from an external website?

2013-04-26 Thread mike.hua
Hi Martin,
I can set the href property with http://www.website.com/xxx.asp; to
redirect the ASP page.
But this method is not fit for wicket!

The target wicket has several pages:
Hello.html,Hello.java---Welcome Page
RedirectPage.html,RedirectPage.java
..
If I need to set the url in a browser to access the RedirectPage directly.

http://www.website.com/packageName.RedirectPage; would cause 404
exception.

I wonder what is the url in the browser!!
Thanks.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-make-the-link-to-a-wicket-page-from-an-external-website-tp4658313p4658335.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 make the link to a wicket page from an external website?

2013-04-26 Thread mike.hua
Oh,I know!
The BookmarkablePageLink helped me!

If I want to get the wicket page access url,I can use
http://website/wicket/bookmarkable/packageName.TargetPageClass;!

Thanks!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-make-the-link-to-a-wicket-page-from-an-external-website-tp4658313p4658336.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