Re: No javascript wicket 6.14.0

2014-03-26 Thread Martin Grigorov
Hi,

Can you reproduce this in a quickstart ?

Martin Grigorov
Wicket Training and Consulting


On Wed, Mar 26, 2014 at 7:53 AM, Mathias Nilsson 
wicket.program...@gmail.com wrote:

 Ok, read that Jquery only is included when needed. I can't even add a
 simple
 Link?

 add(new LinkVoid(link){

 @Override
 public void onClick() {
   setResponsePage(TestPage.class);
 }

 });


 The code above redirects me to Apache root. If I comment out the add link
 everything works!

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/No-javascript-wicket-6-14-0-tp4665128p4665129.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: No javascript wicket 6.14.0

2014-03-26 Thread Mathias Nilsson
Sorry this was not a Wicket thing.

I used ProxyPass in httpd and when the url /?1 appeared it could not be
handled. When using localhost:9090 thrue Jetty ajax works.

// Mathias

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/No-javascript-wicket-6-14-0-tp4665128p4665131.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: calling downloadLink.onClick() directly

2014-03-26 Thread eaglei22
Thanks Martin,

I guess what I am more curious in, is how come when I call the
downloadLink.onClick(), or do:


public void onPostProcessTarget(AjaxRequestTarget target)
{
   final File file = excelFile;
   IResourceStream resourceStream = new FileResourceStream(
new 
org.apache.wicket.util.file.File(file));

   ResourceStreamRequestHandler handler = new
ResourceStreamRequestHandler(resourceStream,  file.getName());
   handler.setContentDisposition(ContentDisposition.ATTACHMENT);

  
getPage().getRequestCycle().scheduleRequestHandlerAfterCurrent(handler);


I get the ajax error as shown above thread. It's only on onClick() call, or
when 
getPage().getRequestCycle().scheduleRequestHandlerAfterCurrent(handler);
is called..

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/calling-downloadLink-onClick-directly-tp4665125p4665133.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: calling downloadLink.onClick() directly

2014-03-26 Thread Martin Grigorov
Hi,

You should not write the binary response in the Ajax response.
The ajax response should return a redirect that will point to a url where
the binary data will be written back.

Martin Grigorov
Wicket Training and Consulting


On Wed, Mar 26, 2014 at 4:25 PM, eaglei22 jchojnack...@gmail.com wrote:

 Thanks Martin,

 I guess what I am more curious in, is how come when I call the
 downloadLink.onClick(), or do:


 public void onPostProcessTarget(AjaxRequestTarget target)
 {
final File file = excelFile;
IResourceStream resourceStream = new FileResourceStream(
 new
 org.apache.wicket.util.file.File(file));

ResourceStreamRequestHandler handler = new
 ResourceStreamRequestHandler(resourceStream,  file.getName());
handler.setContentDisposition(ContentDisposition.ATTACHMENT);

 getPage().getRequestCycle().scheduleRequestHandlerAfterCurrent(handler);


 I get the ajax error as shown above thread. It's only on onClick() call, or
 when
 getPage().getRequestCycle().scheduleRequestHandlerAfterCurrent(handler);
 is called..

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/calling-downloadLink-onClick-directly-tp4665125p4665133.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: calling downloadLink.onClick() directly

2014-03-26 Thread eaglei22
I am not familar on how to perform a redirect from AJAX. I tried:

  new RedirectPage(excelFile.getPath());

and,

  target.appendJavaScript(location.hash='excelFile.getPath()');

Can you give me a simple example?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/calling-downloadLink-onClick-directly-tp4665125p4665136.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



E-Commerce and Open Source projects

2014-03-26 Thread Arjun Dhar
Hi,
I've been nurturing and evolving a project for 4 years (approx), that grew
to a CMS and then an E-Commence among other capabilities. The core
motivation and intent of this platform I have explained here: 
http://javabitch.blogspot.in/2014/03/java-e-commerce-platform.html
http://javabitch.blogspot.in/2014/03/java-e-commerce-platform.html  

I have a major licensing decision to make, and though this is NOT a WICKET
question I feel close to this community to discuss it here.

Licensing Questions:
To release it I have to decide the licensing and thats why I am here.
Various modules have various commercial / community appeal. 
Q1) For a large project with multiple sub-modules can we mix licensing
types. I'm assuming anything thats Apache 2 is compatible into an LGPL or
GPL or Proprietary project. 

Q2) A lot of discussion pitch LGPL for licensing the library; however using
it as a Library forces constraints over the calling API/module to make those
parts Open Source as well. Is this true?

Q3) Is it possible to apply GPL license for anyone using it for free,  but
for commercial purposes they have to pay and have an independent license
agreement? ..this implies that GPL code is dual licensed can be used in a
Proprietary product. Is that possible? .. in a way it alters the FREE DNA,
So I doubt.

Q4) Does that even help and would anyone even pay for whats already free (as
in freedom) under a GPL?

Q5) Most open projects I see are not GPL but rather Apache 2. Is there is a
commercial reluctance to adopt GPL? ..if so, maybe its not wise to release
under GPL even is the spirit is community driven. Eg. 
http://arstechnica.com/uncategorized/2007/11/why-google-chose-the-apache-software-license-over-gplv2/
http://arstechnica.com/uncategorized/2007/11/why-google-chose-the-apache-software-license-over-gplv2/
  

Q6) I do not want to have a CE/EE version. I feel most CE version are CON
JOB's and extract more from the community than give back. Infact,
technically Im of the opinion the same architecture can serve Enterprise as
well as standard needs. This whole Enterprise label this is an eye wash.
...hence I'd rather make the more DOMAIN specific modules proprietary and
the common ones absolutely free. GPL poses issues if I myself want to
monetize higher order modules or cloud based services over the core modules.
.. so whats really my best alternative?

Q7) Is there any credibility in the community to take an existing apache,
GPL, BSD lisence and tweak certain terms. Just as LGPL definition is a tweak
over the GPL definition. Is it worth my time to customize an Apache or LGPL
further .. or will that scare off people?

Q8) How does multiple licensing work? Example: 
http://ckeditor.com/about/license http://ckeditor.com/about/license  
So the user is free to choose which license they want to apply? 

Q9) I'm ok with people using the source code, linking, extending for just
about any purpose. However its NOT OK for people to exploit the code
commercially to take it , modify/tweak it and then call it their own. That
means if a core library is modified for commercial purpose then it should be
contributed back or paid for. However in terms of usage, debugging, learning
I don't want to impose any restriction.

Q10) I'm ok with sponsored help as long as the intention of sponsorship is
to enhance the code for everyone including themselves.

thanks


-
Software documentation is like sex: when it is good, it is very, very good; and 
when it is bad, it is still better than nothing!
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/E-Commerce-and-Open-Source-projects-tp4665137.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