RE: 404 error in IE when wicket app at root context

2010-06-10 Thread Chris Colman
Can you create a quickstart that demonstrates that
https://issues.apache.org/jira/browse/WICKET-2600 is still broken?

Although this problem sounds similar to 2600 I think it is a separate
problem even though they might be distant cousins.

This problem isn't caused by a redirect to root / like 2600.

This problem is when the app context is root / (i.e. the WicketFilter
path is set to /*) and you do a continueToOriginalDestination() when the
original destination is not root eg.,

A redirect to:

/content/home

causes a 404 error in IE only. By stripping the leading slash / we
change the redirect to go to 

content/home

instead and IE is happy and FireFox and Opera continue to work (as per
usual :])


--
Jeremy Thomerson
http://www.wickettraining.com

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



jWicket SortableList

2010-06-10 Thread Sebastian Gabriel
Hello, 
I've figured out how to use the jWicket Drag'n'Drop components and the result 
is pretty nice. 
I have four lists, one list is in the beginning filled with elements and the 
user have so choose which element he wants in which list. It works, to drag the 
elements on the three other lists and the element is being added to the list. 
But my problem is that the lists have to be sortable by the user. 
How can I get the position of the element when it is dropped? So I can 
calculate whether it has been dropped above an element or under it. Or does 
jWicket doesn't cover this functionality.

Thanks.

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



Re: [offtopic] Hsql as configuration database + packing your application with an installer?

2010-06-10 Thread nino martinez wael
Ok, nice with the input :)

I did look at the tanuka service wrapper, theres a couple of different
wrappers out there. But did'nt consider jetty, which is a better than
winstone since im used to working with jetty. Next thing to look at would be
java installers (might be a good topic for blog posts)..

regards Nino

2010/6/10 Ernesto Reinaldo Barreiro reier...@gmail.com

 Hi Nino,

 I have worked some time ago in a distributed WEB application that
 read all the configuration form a database and was initialized as a
 service using [1]. The application server used was jetty. The
 application could be controlled remotely (e.g. install code patches
 and restart the server) and real application data could be exported
 from one instance to any other (via some kind on DB dump). There was
 a central server that allowed to download  a JAVA installer which
 would set up a distributed instance. The configuration database even
 contained information about application data tables (to be created
 or evolved using [2]).

 Best,

 Ernesto

 References,

 1-http://wrapper.tanukisoftware.org/doc/english/download.jsp
 2-http://commons.apache.org/dbutils/

 On Wed, Jun 9, 2010 at 8:00 PM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
  Hi
 
  I have an application that need to have some sort of configuration
 database,
  the application will connect to other database that will provide data.
 Have
  anyone done something similar? I guess one of the motivators behind it
 are
  that hsql requires very little setup..
 
  Has anyone packed their application with an installer and made it run as
 an
  service with something like winstone?
 
  I know a lot of questions questions :)
 
  regards Nino
 

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




RE: jWicket SortableList

2010-06-10 Thread Stefan Lindner
jWicket (and jQuery too) does not know anything about other elements when you 
drop one element onto another. The droppable element itself must know ist's 
position  within your list.
So if you render your list, you must keep track of the relative position in 
your rendered elements.
I don't know of any mechanism in jQuery that would provide this function.
But: http://jqueryui.com/demos/sortable/ may be much closer to your needs.
This is not implementes in jWicket until now and I don't know if this will be 
possible in Wicket. But let me know your ideas! Perhaps we can start an 
implementation together? (Du kannst mir direkt an meine E-Mail-Adresse auch auf 
Deutsch antworten)

Stefan

-Ursprüngliche Nachricht-
Von: Sebastian Gabriel [mailto:sebastian.gabr...@hs-augsburg.de] 
Gesendet: Donnerstag, 10. Juni 2010 08:54
An: users@wicket.apache.org
Betreff: jWicket SortableList

Hello, 
I've figured out how to use the jWicket Drag'n'Drop components and the result 
is pretty nice. 
I have four lists, one list is in the beginning filled with elements and the 
user have so choose which element he wants in which list. It works, to drag the 
elements on the three other lists and the element is being added to the list. 
But my problem is that the lists have to be sortable by the user. 
How can I get the position of the element when it is dropped? So I can 
calculate whether it has been dropped above an element or under it. Or does 
jWicket doesn't cover this functionality.

Thanks.

Sebastian
-
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: [offtopic] Hsql as configuration database + packing your application with an installer?

2010-06-10 Thread Ernesto Reinaldo Barreiro
Nino,

 I did look at the tanuka service wrapper, theres a couple of different
 wrappers out there. But did'nt consider jetty, which is a better than
 winstone since im used to working with jetty. Next thing to look at would be
 java installers (might be a good topic for blog posts)..

I have used wrapper for a couple of projects (always on windows) and
it's very easy to use and get's its job done:-). As for the installer
I think it was [1]. But maybe there are better things out there: that
wasn't my decision it was already in place when I joined the team.

Cheers,

Ernesto

References,

1-http://java-source.net/open-source/installer-generators/izpack

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



Socket programming in Wicket app

2010-06-10 Thread Ján Raska
Hello,
I have a webapp that acts as an accounting and billing application, developed 
in Wicket. Now customer wants me to add a feature, that he can use it as a 
selling software in a store, so that when somebody buys something, amount will 
be subtracted from the main stock (webapp is enough for that part) and a bill 
is printed through local POS printer. But the problem is, that according to our 
law, POS is not just a regular printer that prints out bills. It has a special 
memory where track of all operations is saved, as well as an amount of VAT tax, 
that should be payed (so that tax officers can check if the shop owner is 
cheating on taxes). In order to do that, I have to send certain data to the 
printer, either by calling driver functions, or sending data directly to USB or 
COM.

So I thought about a solution, that a small client app will be running on a 
client machine. It will authenticate to the server using the certificate (same 
one, that is used to log into the webapp, so that I can pair http session with 
the client connection) and establish a connection on certain port. When the 
shopping is over and a shop employee needs to print a bill I'll send necessary 
data through the connection to the local client and since client is running on 
a machine that has a POS connected to it, it has the means to forward data to 
the POS and print a bill.

The question is: am I able to develop it as part of a Wicket webapp. Having 
something (eg. a servlet or so), that will basically act as a server, listening 
on a certain port, able to accept many connections (using threads) as there 
will be more then one POS terminals, able to maintain those connections until 
the client disconnects and send required data through those connections? I 
certainly can do that as a separate server application, but I'd prefer to have 
it as part of the webapp, so that I can directly call methods to send data to 
printer, instead of establishing another connection (a local one) from webapp 
to the other server app. I also thought about using Comet, and establishing an 
Http connection from the client apps, but I'm not sure, if that is reliable 
enough for such functionality (I must be able to handle possible connection 
errors and while connected, I must be sure, that the data will arrive to the 
client app).

I'll greatly appreciate any thought or hint on this

Thanks a lot


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



Re: Socket programming in Wicket app

2010-06-10 Thread Maarten Bosteels
If you're searching for a network application framework, have a look at
http://mina.apache.org/

Maarten

On Thu, Jun 10, 2010 at 9:55 AM, Ján Raska ras...@gmail.com wrote:

 Hello,
 I have a webapp that acts as an accounting and billing application,
 developed in Wicket. Now customer wants me to add a feature, that he can use
 it as a selling software in a store, so that when somebody buys something,
 amount will be subtracted from the main stock (webapp is enough for that
 part) and a bill is printed through local POS printer. But the problem is,
 that according to our law, POS is not just a regular printer that prints out
 bills. It has a special memory where track of all operations is saved, as
 well as an amount of VAT tax, that should be payed (so that tax officers can
 check if the shop owner is cheating on taxes). In order to do that, I have
 to send certain data to the printer, either by calling driver functions, or
 sending data directly to USB or COM.

 So I thought about a solution, that a small client app will be running on a
 client machine. It will authenticate to the server using the certificate
 (same one, that is used to log into the webapp, so that I can pair http
 session with the client connection) and establish a connection on certain
 port. When the shopping is over and a shop employee needs to print a bill
 I'll send necessary data through the connection to the local client and
 since client is running on a machine that has a POS connected to it, it has
 the means to forward data to the POS and print a bill.

 The question is: am I able to develop it as part of a Wicket webapp. Having
 something (eg. a servlet or so), that will basically act as a server,
 listening on a certain port, able to accept many connections (using threads)
 as there will be more then one POS terminals, able to maintain those
 connections until the client disconnects and send required data through
 those connections? I certainly can do that as a separate server application,
 but I'd prefer to have it as part of the webapp, so that I can directly call
 methods to send data to printer, instead of establishing another connection
 (a local one) from webapp to the other server app. I also thought about
 using Comet, and establishing an Http connection from the client apps, but
 I'm not sure, if that is reliable enough for such functionality (I must be
 able to handle possible connection errors and while connected, I must be
 sure, that the data will arrive to the client app).

 I'll greatly appreciate any thought or hint on this

 Thanks a lot


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




Re: DatePicker configuration isn't always working

2010-06-10 Thread rawe

Yes, I solved it!
When displaying the calendar the first time it's mandatory to call its clear
method
(Clears the selected dates in the current calendar widget and sets the
calendar to the current month and year. )

My solution:

@Override
protected String getAdditionalJavascript() {
if (additionalJavascript == null)
additionalJavascript = ;

StringBuilder sb = new StringBuilder();

sb.append(${calendar}.addRenderer(\6/10\,
${calendar}.renderBodyCellRestricted););
sb.append(${calendar}.clear(););

additionalJavascript += sb.toString();

return additionalJavascript;
}
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DatePicker-configuration-isn-t-always-working-tp1878188p2250089.html
Sent from the Wicket - User 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: Renderer does not work when DatePicker is initially displayed

2010-06-10 Thread rawe

Here is the solution:

Just use calendar's clear method:
e.g.

@Override
protected String getAdditionalJavascript() {
if (additionalJavascript == null)
additionalJavascript = ;

additionalJavascript += ${calendar}.addWeekdayRenderer(1,
${calendar}.renderOutOfBoundsDate);; // disable sundays
additionalJavascript += ${calendar}.addWeekdayRenderer(7,
${calendar}.renderOutOfBoundsDate);; // disable saturdays

additionalJavascript += ${calendar}.clear();;  
   //Clears the selected dates in the current calendar widget and sets
the calendar to the current month and year. 

return additionalJavascript;
} 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Renderer-does-not-work-when-DatePicker-is-initially-displayed-tp2243041p2250097.html
Sent from the Wicket - User 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 can override calendar formatting at initialization using DatePicker? getAdditionalJavascript not always working...

2010-06-10 Thread rawe

Yes, I solved it!
When displaying the calendar the first time it's mandatory to call its clear
method
(Clears the selected dates in the current calendar widget and sets the
calendar to the current month and year. )

My solution:

@Override
protected String getAdditionalJavascript() {
if (additionalJavascript == null)
additionalJavascript = ;

StringBuilder sb = new StringBuilder();

sb.append(${calendar}.addRenderer(\6/10\,
${calendar}.renderBodyCellRestricted););
sb.append(${calendar}.clear(););

additionalJavascript += sb.toString();

return additionalJavascript;
} 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-can-override-calendar-formatting-at-initialization-using-DatePicker-getAdditionalJavascript-not--tp1880352p2250102.html
Sent from the Wicket - User 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: Question on Links

2010-06-10 Thread nino martinez wael
Thanks great to hear :)

2010/6/10 Arjun Dhar dhar...@yahoo.com


 FYI I got a lot of help from

 http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/
 nino martinez Blog
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Question-on-Links-tp2247045p2249923.html
 Sent from the Wicket - User 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: DataTable with more than one tr per item

2010-06-10 Thread vladimir.kovalyuk

Igor,

Having played with multi-line data tables I realized that there isn't an
easy way to extend the basic DataTableT. The multiline data table has a
customizable layout where cell has collspans and possibly rowspans. It means
that the configuration is not simple list of columns. It makes the
implementation to base on repeater different from DataGridView. My
understanding now is that multiline datatable should be a completely
different class encapsulating DataViewT with customizable item.

The only problem is that toolbars cannot be reused. It probably would make
sense to patch them after 1.5M1 milestone because the relationships with
DataTable are affected.

BTW, how 1.5 is going? Looking forward for the new URL handling mechanism.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DataTable-with-more-than-one-tr-per-item-tp1887973p2250219.html
Sent from the Wicket - User 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



jQuery Accordion implementation

2010-06-10 Thread Stefan Lindner
I'm starting to implement jQuery's Accordion for jWicket now. Any
suggestions/wishes?

Stefan

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



Re: jQuery Accordion implementation

2010-06-10 Thread Martin Makundi
Just do it ;)

2010/6/10 Stefan Lindner lind...@visionet.de:
 I'm starting to implement jQuery's Accordion for jWicket now. Any
 suggestions/wishes?

 Stefan

 -
 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: jWicket SortableList

2010-06-10 Thread Charles Deal
I just implemented Sortable in my project.  I am using jWicket as the basis
for my jQuery components.  HOWEVER, I have a slightly divergent
implementation of the behaviors.  ( As I posted not too long ago).

So, it is possible to use the JQuery Sortable impl.  Unfortunately, I
haven't had the time to port my changes back to the jWicket codebase.  You
should be able to build a new Sortable behavior with just the basics (impl
JSBuilder) and use the rawOptions feature to push in your settings.  This
will at least let you test the library without investing too much time in
the Wicket side until you are confident it will be worth it.


On Thu, Jun 10, 2010 at 3:06 AM, Stefan Lindner lind...@visionet.de wrote:

 jWicket (and jQuery too) does not know anything about other elements when
 you drop one element onto another. The droppable element itself must know
 ist's position  within your list.
 So if you render your list, you must keep track of the relative position in
 your rendered elements.
 I don't know of any mechanism in jQuery that would provide this function.
 But: http://jqueryui.com/demos/sortable/ may be much closer to your needs.
 This is not implementes in jWicket until now and I don't know if this will
 be possible in Wicket. But let me know your ideas! Perhaps we can start an
 implementation together? (Du kannst mir direkt an meine E-Mail-Adresse auch
 auf Deutsch antworten)

 Stefan

 -Ursprüngliche Nachricht-
 Von: Sebastian Gabriel [mailto:sebastian.gabr...@hs-augsburg.de]
 Gesendet: Donnerstag, 10. Juni 2010 08:54
 An: users@wicket.apache.org
 Betreff: jWicket SortableList

 Hello,
 I've figured out how to use the jWicket Drag'n'Drop components and the
 result is pretty nice.
 I have four lists, one list is in the beginning filled with elements and
 the user have so choose which element he wants in which list. It works, to
 drag the elements on the three other lists and the element is being added to
 the list. But my problem is that the lists have to be sortable by the user.
 How can I get the position of the element when it is dropped? So I can
 calculate whether it has been dropped above an element or under it. Or does
 jWicket doesn't cover this functionality.

 Thanks.

 Sebastian
 -
 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: jQuery Accordion implementation

2010-06-10 Thread Istvan Jozsa
Go ahead,

Istvan

On Thu, Jun 10, 2010 at 2:12 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 Just do it ;)

 2010/6/10 Stefan Lindner lind...@visionet.de:
  I'm starting to implement jQuery's Accordion for jWicket now. Any
  suggestions/wishes?
 
  Stefan
 
  -
  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: TabbedPanel with AjaxSelfUpdatingTimerBehavior

2010-06-10 Thread Decebal Suiu

Hello Ernesto,

I resolved the problem. The AjaxSelfUpdatingTimerBehavior was added by me on
the panel returned by the ITab.getPanel() method. I put the behavior on a
child of the tab panel and it works.
Do you have an explanation why I retrieve PageExpiredException: No behavior
listener found with behaviorId in the first case (behavior on the tab
panel)?
Is it something that keeps by the role of onlyTargetActivePage() method? In
the second case, the ajax was stopped because of precondition check (ignore
if not active) but in the first case (with the error) the condition with
active page is not true.

Thanks,
Decebal
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TabbedPanel-with-AjaxSelfUpdatingTimerBehavior-tp2243691p2250376.html
Sent from the Wicket - User 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: TabbedPanel with AjaxSelfUpdatingTimerBehavior

2010-06-10 Thread Ernesto Reinaldo Barreiro
Decebal,

I think TabbedPanel works by replacing the active panel with the
result of ITab.getPanel: see method setSelectedTab(int index). So,
when you click on a tab the previous one is removed form the component
tree (and therefore TimerAjaxCallBacks are not able to find the
component). Have you considered using JavaScript based tabs (as the
ones proc=vided by jquery)? That way your component tree will be
always consistent.

Best,

Ernesto

On Thu, Jun 10, 2010 at 3:02 PM, Decebal Suiu decebal.s...@asf.ro wrote:

 Hello Ernesto,

 I resolved the problem. The AjaxSelfUpdatingTimerBehavior was added by me on
 the panel returned by the ITab.getPanel() method. I put the behavior on a
 child of the tab panel and it works.
 Do you have an explanation why I retrieve PageExpiredException: No behavior
 listener found with behaviorId in the first case (behavior on the tab
 panel)?
 Is it something that keeps by the role of onlyTargetActivePage() method? In
 the second case, the ajax was stopped because of precondition check (ignore
 if not active) but in the first case (with the error) the condition with
 active page is not true.

 Thanks,
 Decebal
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/TabbedPanel-with-AjaxSelfUpdatingTimerBehavior-tp2243691p2250376.html
 Sent from the Wicket - User 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



NULL model on empty string?

2010-06-10 Thread Anna Simbirtsev
Hi,

I use CompoundPropertyModel for all the fields on the page.

form.add(new TextFieldString(url));

If the value entered by user is empty, then the model get updated with null
value? How can I get getUrl() function to return  instead of null.

Thanks


RE: NULL model on empty string?

2010-06-10 Thread Josh Chappelle
Call setConvertEmptyInputStringToNull(false) on your TextField.

Josh

-Original Message-
From: Anna Simbirtsev [mailto:asimbirt...@gmail.com] 
Sent: Thursday, June 10, 2010 1:49 PM
To: users@wicket.apache.org
Subject: NULL model on empty string?

Hi,

I use CompoundPropertyModel for all the fields on the page.

form.add(new TextFieldString(url));

If the value entered by user is empty, then the model get updated with null
value? How can I get getUrl() function to return  instead of null.

Thanks


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



Re: Just launched - www.onmydoorstep.com.au

2010-06-10 Thread Fernando Wermus
I added the dependency to facebook connect but the classes mentioned in the
example aren't available. Is it possible? How do you solve this?

classes:

import com.google.code.facebookapi.FacebookException;import
com.google.code.facebookapi.FacebookJsonRestClient;import
com.google.code.facebookapi.FacebookWebappHelper;import
com.google.code.facebookapi.ProfileField;



On Tue, May 18, 2010 at 6:29 PM, Richard Nichols r...@visural.com wrote:

 I pretty much used the code from
 https://cwiki.apache.org/WICKET/adding-facebook-connect.html

 You need to set up the /xd_reciever.htm for it to work correctly (take
 a look at the facebook connect api docs), either using a Wicket mapped
 resource, or using a servlet filter to return it.

 The other trap is that you can't test it locally. I spent an hour
 trying to debug why it wasn't working - the only reason was the API
 will not connect from any host other than the one registered in your
 Facebook App Config. If you try from localhost it just opens your site
 inside the Facebook login popup - really unhelpful (an error would be
 nice).

 If you follow the wiki article though, it should be fairly easy to get
 going.

 On 18 May 2010 22:56, Fernando Wermus fernando.wer...@gmail.com wrote:
  I need a hand with facebook connect and wicket in some weeks. Could you
  share your wicket facebook code? I imagine it is pretty easy.
 
  thanks in advance
 
  On Mon, May 17, 2010 at 10:31 PM, Richard Nichols r...@visural.com
 wrote:
 
  Hey all,
 
  Just thought fellow Wicketeers might be interested to take a look at a
  site I have just launched built 100% with Wicket -
  http://www.onmydoorstep.com.au/
 
  The site is a community portal for people living in Victoria,
  Australia and displays government data about every suburb, city and
  town in the state. It also allows users to find government services
  and business nearby and submit community events/festivals and ask
  questions of other users.
 
  It integrates Wicket with Facebook Connect, Google Maps, Google
  Charts, Google's Weather API, plus on the backend, warp-persist, Guice
  and Hibernate/JPA. I also made extensive use of
  http://code.google.com/p/visural-wicket
 
  Anyhow - happy to answer any questions about the above technologies
  and the experience of building the site with Wicket. Also welcome
  feedback  criticism should you have some :)
 
 
  cheers,
  Richard.
 
  --
  Richard Nichols :: http://www.visural.com/ ::
  http://www.richardnichols.net/
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  Fernando Wermus.
 
  www.linkedin.com/in/fernandowermus
 



 --
 Richard Nichols :: http://www.visural.com/ ::
 http://www.richardnichols.net/

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




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: NULL model on empty string?

2010-06-10 Thread Anna Simbirtsev
This would not work for
form.add(new TextFieldInteger(guid, Integer.class)) ?

It works if type is String.

On Thu, Jun 10, 2010 at 3:03 PM, Josh Chappelle jchappe...@4redi.comwrote:

 Call setConvertEmptyInputStringToNull(false) on your TextField.

 Josh

 -Original Message-
 From: Anna Simbirtsev [mailto:asimbirt...@gmail.com]
 Sent: Thursday, June 10, 2010 1:49 PM
 To: users@wicket.apache.org
 Subject: NULL model on empty string?

 Hi,

 I use CompoundPropertyModel for all the fields on the page.

 form.add(new TextFieldString(url));

 If the value entered by user is empty, then the model get updated with null
 value? How can I get getUrl() function to return  instead of null.

 Thanks


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




-- 
Anna Simbirtsev
(416) 729-7331


Re: Confluence out of sync?

2010-06-10 Thread Fernando Wermus
Markus,
  I have tried
https://cwiki.apache.org/WICKET/adding-facebook-connect.html without any
luck. The classes are not any more there.
Could you find a way to use facebook connect?

On Wed, Jun 9, 2010 at 4:36 PM, ViShap vishapxtr...@googlemail.com wrote:

 Hi,

 if I use the confluence-link
 https://cwiki.apache.org/*confluence*/*display
 */WICKET/How+to+do+things+in+Wicket I get the right page with CSS and
 everything.

 But if I follow the link on wicket.apache.org - Reference I goto
 https://cwiki.apache.org/WICKET/reference-library.html and there is no CSS
 loading and an article I added recently (Facebook Javascript SDK -

 https://cwiki.apache.org/confluence/display/WICKET/Adding+Facebook+Connect+via+Javascript+SDK
 )
 doesn't even show.

 fyi
 Markus




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: [wicketstuff/wicket-contrib-jasperpreports] Is anyone supporting this?

2010-06-10 Thread Charles Deal
The WicketStuff repo is now hosted by Sonatype.

repository
  idsonatype/id
  nameSonatype OSS repository/name
  urlhttps://oss.sonatype.org/content/repositories/public/
/url
  releases
enabledtrue/enabled
  /releases
  snapshots
enabledtrue/enabled
  /snapshots
/repository


On Thu, Jun 10, 2010 at 10:44 AM, Steven Haines lyg...@yahoo.com wrote:

 Hi Charles,

 Do you know where the repository is that hosts wicket stuff?

 Maven couldnt find the core wicket stuff (even though it is listed on
 mvnrepository.com):

 dependency
 groupIdorg.wicketstuff/groupId
 artifactIdwicketstuff-core/artifactId
 version${wicket.version}/version
 /dependency

 And I tried 1.4.8 and 1.4.9. And your addition (below) reported that the
 dependency was missing ... Usually this means that I just need to add the
 repo to the end of the pom file, so if you have that repo location I'd
 appreciate it!

 Thanks for all your help!
 Steve


 --
 *From:* Charles Deal chuckdea...@gmail.com
 *To:* users@wicket.apache.org; Steven Haines lyg...@yahoo.com
 *Sent:* Wed, June 9, 2010 1:41:21 PM

 *Subject:* Re: [wicketstuff/wicket-contrib-jasperpreports] Is anyone
 supporting this?

 Well, there is some example code within the project.  And I believe it was
 enough to get me started.  But beyond that, no I don't think you'll find
 anymore docs on it.  If you run into trouble, I'll do my best to help since
 it seems to be working in my project.

 dependency
 groupIdorg.wicketstuff/groupId
 artifactIdwicket-contrib-jasperreports/artifactId
 version1.4.10-SNAPSHOT/version
 exclusions
 exclusion
 groupIdjasperreports/groupId
 artifactIdjasperreports/artifactId
 /exclusion
 exclusion
 artifactIdservlet-api/artifactId
 groupIdjavax.servlet/groupId
 /exclusion
 /exclusions
 /dependency

 I exclude jasperreports because I include a specific version and I didn't
 want the conflict.  I exclude servlet-api because that is provided.


 On Wed, Jun 9, 2010 at 10:53 AM, Steven Haines lyg...@yahoo.com wrote:

 We're just about to start integrating Jasper with our wicket application
 (with a due date by the end of the week), so I found your positing
 particularly timely!

 Do you have any sample code and/or configuration information that shows me
 how to integrate wicket-contrib-jasperreports into my application (Maven)?

 Thanks!
 Steve





 - Original Message 
 From: Michael O'Cleirigh michael.ocleir...@rivulet.ca
 To: users@wicket.apache.org
 Sent: Tue, June 8, 2010 9:05:07 AM
 Subject: Re: [wicketstuff/wicket-contrib-jasperpreports] Is anyone
 supporting  this?

 Hi Charles,

 As long as wicketstuff-core builds locally with
 wicket-contrib-jasperreports in the core pom (as a module) you can
 commit the core pom.

 I have a hudson instance running that will build and auto deploy into
 the sonatype snapshot repository a 1.4.10-SNAPSHOT version of your
 artifacts.

 For an internal work release I need to cut a 1.4.9.1 wicketstuff-core
 release this week.  If your changes work in trunk you can backport them
 to the wicket 1.4.9 branch and when I cut the release they will be
 included and deployed into the central maven repository.

 Regards,

 Mike


  Awesome. Thanks.
 
  I pushed up my initial set of changes.  wicket-contrib-jasperreports now
  builds as 1.4.10-SNAPSHOT using wicketstuff-core.
 
  However, I have not added it to the wicketstuff-core build.  I'll try to
 get
  on that shortly, at least it is no worse off than it was before and now
 at
  least it building closer to the newer wicketstuff projects.
 
  Next up would be actual enhancements to the code.  Rodolfo mentioned
 some
  additions and I have to refactor some of my code that I wrote as a
  workaround so that it can be pushed back as well.
 
  Thanks for your help!  That's one less project that I have to maintain a
  customized instance of!
 
  On Mon, Jun 7, 2010 at 6:05 PM, nino martinez wael
  nino.martinez.w...@gmail.com  wrote:
 
 
  youve been added.
 
  As for the requirement with core, I think you just need to add the
  project to the pom on core, I'd suggest looking at one of the projects
  thats already in there (so you can copy and paste)..
 
  regards Nino
 
  2010/6/7 Charles Dealchuckdea...@gmail.com:
 
  Excellent.  sf username: cdeal
 
  First things first then.  If I get some patches put into scm other
 people
  will see that it is still a viable project.  Then as I get time, I'll
  extract some of my code into some kind of 

Re: Confluence out of sync?

2010-06-10 Thread Fernando Wermus
vishapXtreme,
  You can download the code from RestFB google code.


On Thu, Jun 10, 2010 at 4:39 PM, Fernando Wermus
fernando.wer...@gmail.comwrote:

 Markus,
   I have tried
 https://cwiki.apache.org/WICKET/adding-facebook-connect.html without any
 luck. The classes are not any more there.
 Could you find a way to use facebook connect?


 On Wed, Jun 9, 2010 at 4:36 PM, ViShap vishapxtr...@googlemail.comwrote:

 Hi,

 if I use the confluence-link
 https://cwiki.apache.org/*confluence*/*display
 */WICKET/How+to+do+things+in+Wickethttps://cwiki.apache.org/*confluence*/*display*/WICKET/How+to+do+things+in+WicketI
  get the right page with CSS and
 everything.

 But if I follow the link on wicket.apache.org - Reference I goto
 https://cwiki.apache.org/WICKET/reference-library.html and there is no
 CSS
 loading and an article I added recently (Facebook Javascript SDK -

 https://cwiki.apache.org/confluence/display/WICKET/Adding+Facebook+Connect+via+Javascript+SDK
 )
 doesn't even show.

 fyi
 Markus




 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


RE: NULL model on empty string?

2010-06-10 Thread Josh Chappelle
I'm not sure. You will just have to try it and see.

Josh

-Original Message-
From: Anna Simbirtsev [mailto:asimbirt...@gmail.com] 
Sent: Thursday, June 10, 2010 2:12 PM
To: users@wicket.apache.org
Subject: Re: NULL model on empty string?

This would not work for
form.add(new TextFieldInteger(guid, Integer.class)) ?

It works if type is String.

On Thu, Jun 10, 2010 at 3:03 PM, Josh Chappelle jchappe...@4redi.comwrote:

 Call setConvertEmptyInputStringToNull(false) on your TextField.

 Josh

 -Original Message-
 From: Anna Simbirtsev [mailto:asimbirt...@gmail.com]
 Sent: Thursday, June 10, 2010 1:49 PM
 To: users@wicket.apache.org
 Subject: NULL model on empty string?

 Hi,

 I use CompoundPropertyModel for all the fields on the page.

 form.add(new TextFieldString(url));

 If the value entered by user is empty, then the model get updated with
null
 value? How can I get getUrl() function to return  instead of null.

 Thanks


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




-- 
Anna Simbirtsev
(416) 729-7331


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



wicket + rest fb

2010-06-10 Thread Fernando Wermus
I followed the example at
https://cwiki.apache.org/confluence/display/WICKET/Adding+Facebook+Connect+via+Javascript+SDK

and I got the following error:

API Error Code: 100
API Error Description: Invalid parameter
Error Message: next is not owned by the application.

Any idea what's going on?

thanks in advance

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


gmail like file upload

2010-06-10 Thread fachhoch

I want to have gmail like file upload  in my application ,  I want to have
ajax  multi file upload  , please suggest me  .
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/gmail-like-file-upload-tp2251270p2251270.html
Sent from the Wicket - User 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



Errors with rendering feedback labels on a form during unit testing. Works fine when viewed from the browser.

2010-06-10 Thread Todd Nine
Hi all,
  I'm getting some strange behavior from my tests.  I have an abstract
class that all ajax feedback forms inherit from.  BaseFeedBackForm 

http://pastebin.com/NWALFWvi


I have this test code



http://pastebin.com/zZyzG1e6

What's happening is my onBeforeRender of my BaseFeedbackForm is being
invoked twice.  The first time it is invoked is by this line of code in
my test.

tester.startPage(HomePage.class);

This visits all the form components, and decorates all components except
buttons with a FormFeedBacklabel.  A label I'm using to display
validation errors when the input is incorrect onblur.  This works well
when the form is created both in my unit test and when rendered via a
browser.  However, when this is invoked.

registerForm.submit();

My page is re-rendered, which is throwing the error 

org.apache.wicket.WicketRuntimeException: Error attaching this container
for rendering: [MarkupContainer [Component id = registrationPanel]]
at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1739)
at org.apache.wicket.Component.onBeforeRender(Component.java:3855)
at
org.apache.wicket.Component.internalBeforeRender(Component.java:1061)
at org.apache.wicket.Component.beforeRender(Component.java:1095)
at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1727)
at org.apache.wicket.Component.onBeforeRender(Component.java:3855)
at org.apache.wicket.Page.onBeforeRender(Page.java:1521)
at
org.apache.wicket.Component.internalBeforeRender(Component.java:1061)
at org.apache.wicket.Component.beforeRender(Component.java:1095)
at org.apache.wicket.Component.prepareForRender(Component.java:2225)
at org.apache.wicket.Component.prepareForRender(Component.java:2262)
at org.apache.wicket.Page.renderPage(Page.java:893)
at
org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at
org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:524)
at org.apache.wicket.util.tester.FormTester.submit(FormTester.java:667)
at
com.spidertracks.aviator.logbook.HomePageTest.testSignupValid(HomePageTest.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod
$1.runReflectiveCall(FrameworkMethod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.IllegalArgumentException: A child with id
'email_feedback' already exists:
[MarkupContainer [Component id = registrationForm]]
at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:145)
at com.spidertracks.aviator.logbook.html.BaseFeedbackForm