Re: Making a DataTable Editable

2008-07-15 Thread Cristi Manole
There's an wicket component that does exactly what you need:
- take a look on inmethod.com

The website is down for some reason at this moment but i'm sure it'll be
available soon.

Meanwhile you could take a look into apache wicket-stuff repository (and
search for inmethod grid component].

Cheers,
Cristi Manole

On Tue, Jul 15, 2008 at 6:31 AM, Umesh Paliwal [EMAIL PROTECTED]
wrote:

 Hi all,



 I have a datatable and a button.

 When I click on the button , the datatable should add a new row at the
 bottom of the datatable.



 Could you please guide me how to achieve this.



 Thanks and regards,

 Umesh Paliwal




Re: generics

2008-07-15 Thread Johan Compagner
On Mon, Jul 14, 2008 at 10:44 PM, Eelco Hillenius [EMAIL PROTECTED]
wrote:

  personally i am still in favor of going with the m2 way of doing things
 where
  Component is generic, but from the looks of the discussion i think i may
 be
  in the minority here.

 Looking at the people who reacted, that seems to be the case. But the
 reason why we ask people their opinion is of course to get an idea on
 what involved users think, so I hope the discussion is somewhat
 representative.


really??

I think if you do an exact count also of the real vote you be surprised
i think it is more 50/50... maybe 60/40


 So far, to me m3 looks like a good trade off that has the support of
 the whole team and a decent amount of users. I'm afraid we can't make
 everyone perfectly happy :-)


thats true


SV: generics

2008-07-15 Thread Wilhelmsen Tor Iver
Brill Pappin [EMAIL PROTECTED] wrote:
 I'd say that WIcket *is a product*, and as such the consumers 
 of that product have the final say.

Not any more than you can e.g. go to Ford Motor Co. and demand they make
this and that modification to the design of the Mustang, for instance.
Like most consumers your way of saying is to choose whether to buy/use
the product or not, and it falls on the developer/manufacturer to fuind
out why you do or do not buy/use it.

(Walton's famous the customer is always right has a corollary: If
someone is wrong they simply is not a customer. :) )

 It's up to the core committers to do the best job they can to make
sure their 
 consumers are getting what they need...

Not unless you want to start paying them to do so, becoming their boss
in the process. As they have pointed out, Wicket is not their job but
their hobby of sorts.

However: Since it is an OSS product you can download the source and
modify it as much as you like (like I did when I applied the portlet 2.0
patch to the 1.3 and 1.4 trees locally), even creating your own fork of
it if you so desire. You see, the consumers are also the potential
workers in the OSS world: if only a group of users want a feature it
falls on them to implement it.

 just because it's 
 an OS project that we don't have to buy, doesn't mean that 
 the project doesn't depend on people using it.

It does, but if it does not suit people's need they will look elsewhere.
There is a ton of web application frameworks out there to choose from.
If you like the separation of template and code in Wicket, try looking
into e.g. Facelets, which is JSF without the cursed mess called JSP.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DateTextField question

2008-07-15 Thread Cristi Manole
Hello,

Any ideas why the calendar does not show on my modal window?

-I've seen the examples and I know it's working.
-It is not a problem related to z-index

*It seems the yui class does not get appended to the tag so clicking the
calendar icon does nothing (i presume that's the reason).

*Has anyone by any chance experienced this or something similar? Any
suggestion is highly appreciated :).

Tks a bunch,
Cristi Manole


Re: generics

2008-07-15 Thread Martijn Dashorst
You're right that 'slave' is too strong a word. I apologize.
Wilhelmsen Tor Iver reconstructed my intent much better.

Martijn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Switch tab only if user doesn't want to save changes.

2008-07-15 Thread Fabio Fioretti
Thank you Maurice,

what you suggested matched the way I was trying to solve the problem,
but I had to add a bit of client-side logic to decide whether to
display the confirm dialog or not, basing the decision on the
enabled/disabled status of the save button inside the first tab, which
already implemented the logic to detect unsaved changes.

I paste the relevant bits to share my solution with you all. Probably
it's not optimal at all, so please do feel free to
comment/correct/laugh. :)

@Override
protected IAjaxCallDecorator getAjaxCallDecorator() {
// Add custom decorator for tabs other than the one containing 
detailsPanel
if ( index != 0 ) {
return new AjaxCallDecorator() {
@Override
public CharSequence decorateScript( CharSequence script 
) {
// Ask for user confirmation, as tab-switching 
discards unsaved changes.
final String saveButton = detailsPanel != null ?
detailsPanel.getSaveButtonMarkupId() : ;
final StringBuffer decoration = new 
StringBuffer();
return decoration.append(String.format(if(
document.getElementById('%s')!= null , saveButton))
  .append(String.format(
!document.getElementById('%s').disabled , saveButton))
  .append( !confirm('Please note that 
unsaved changes will be
lost.\\n\\nDo you want to switch tab?')) )
  .append({ return false; })
  .append(script);
}
};
}
return super.getAjaxCallDecorator();
}


Cheers,

Fabio Fioretti - WindoM


On Sun, Jul 13, 2008 at 9:43 PM, Maurice Marrink [EMAIL PROTECTED] wrote:
 Override newLink to return an ajaxfallbacklink where you have
 overridden the getAjaxCallDecorator method to return a custom
 IAjaxCallDecorator.
 Use that to insert a javascript confirm dialog.

 Maurice

 On Fri, Jul 11, 2008 at 7:28 PM, Fabio Fioretti
 [EMAIL PROTECTED] wrote:
 Hi all,

 thanks in advance for your precious support.

 I have an AjaxTabbedPanel with two tabs. In the first tab there is a
 panel with a form, some input fields and a save button; the content of
 the second tab is irrelevant.

 Use-case:

 1 - user selects first tab;
 2 - user makes some changes in the input fields but doesn't click the
 save button;
 3 - user selects second tab.

 On step 3, users loses all his updates without being warned.

 I would like to add a javascript confirm dialog to be triggered only
 when some changes have been performed but not saved (no ModalWindow,
 just javascript). I mean something like: There are some unsaved
 changes that will be lost, do you really want to switch tab? OK
 Cancel. OK brings the user to the second tab, Cancel makes him stay
 in the first tab.

 The panel inside the first tab has a handy boolean hasUnsavedChanges()
 method, but I don't know where I could call it and how to inject an
 if (!confirm('...')) return false;.

 Maybe in the onClick(AjaxRequestTarget target) method of the
 AjaxFallbackLink returned by AjaxTabbedPanel's newLink() method?

 What's the best way to do it?


 Thank you very much,

 Fabio Fioretti - WindoM

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



java.lang.NullPointerException: org/apache/wicket/IDestroyer

2008-07-15 Thread liny

Hi,

A strange exception occured, like below:
java.lang.NullPointerException: org/apache/wicket/IDestroyer
at
org.apache.wicket.Application.callDestroyers(Application.java:771)
at
org.apache.wicket.Application.internalDestroy(Application.java:891)
at
org.apache.wicket.protocol.http.WebApplication.internalDestroy(WebApplication.java:448)
at
org.apache.wicket.protocol.http.WicketFilter.destroy(WicketFilter.java:143)
at
org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:258)
at
org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3737)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4505)
at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:3041)
at
org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:4673)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1619)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608)
at java.lang.Thread.run(Thread.java:619)

I don't know what's wrong.
I use Tomcat 5.0.28.
-- 
View this message in context: 
http://www.nabble.com/java.lang.NullPointerException%3A-org-apache-wicket-IDestroyer-tp18461081p18461081.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Issue with Form submission in portlet container

2008-07-15 Thread Serkan Camurcuoglu
form submitting with normal portlets works fine (I'm using jetpeed 2.1.3 
and wicket 1.3.4), maybe your problem is about the modal dialog box.. if 
you still haven't found a solution, posting this message to the jetspeed 
user mailing list may also help..




Arun Wagle wrote:

Hello,
 
I have an issue with submitting form in a jetspeed portal which is 
using WicketPortlet. The form is invoked from a wicket Modal dialog box.
I am able to run this as a normal wicket applcation(without running as 
a wicket portlet application)
 
I get the following exception
WicketMessage: Method onFormSubmitted of interface 
org.apache.wicket.markup.html.form.IFormSubmitListener targeted at 
component [MarkupContainer [Component id = uploadReportForm, page = 
com.bluenog.bi.reportmgr.dialogs.addreport.AddReportDialog, path = 
0:uploadReportForm.AddReportInputForm, isVisible = true, isVersioned = 
true]] threw an exception

*Root cause:

java.lang.IllegalStateException: ServletRequest does not contain 
multipart content*
** 
 
From the exception it looks like when we submit the form data, the 
** wicket portlet request handler is not setting the multipart/form-data.
 
I have attached the complete stack trace as well.
 
Please help as this is a show stopper in my application currently.
 
 
Regards,

Arun Wagle


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DateTextField question

2008-07-15 Thread Serkan Camurcuoglu
I'm not sure about the reason, but in my portlet application, only one 
of the date pickers is initialized if I add two portlets on the same 
page containing date pickers, so only one of them works.. also it seems 
like the date picker doesn't work if there is any other wicket ajax 
component loaded on the page.. I think it's a problem with the 
wicketCalendarInits array object which is used for initializing these 
date pickers, but I haven't found the exact cause yet, I'd like to hear 
if you find a solution..



Cristi Manole wrote:

Hello,

Any ideas why the calendar does not show on my modal window?

-I've seen the examples and I know it's working.
-It is not a problem related to z-index

*It seems the yui class does not get appended to the tag so clicking the
calendar icon does nothing (i presume that's the reason).

*Has anyone by any chance experienced this or something similar? Any
suggestion is highly appreciated :).

Tks a bunch,
Cristi Manole

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DateTextField question

2008-07-15 Thread Ryan Gravener
Are you guys using safari?  If so I think this problem is patched in 1.3.4.

On 7/15/08, Serkan Camurcuoglu [EMAIL PROTECTED] wrote:
 I'm not sure about the reason, but in my portlet application, only one
 of the date pickers is initialized if I add two portlets on the same
 page containing date pickers, so only one of them works.. also it seems
 like the date picker doesn't work if there is any other wicket ajax
 component loaded on the page.. I think it's a problem with the
 wicketCalendarInits array object which is used for initializing these
 date pickers, but I haven't found the exact cause yet, I'd like to hear
 if you find a solution..


 Cristi Manole wrote:
 Hello,

 Any ideas why the calendar does not show on my modal window?

 -I've seen the examples and I know it's working.
 -It is not a problem related to z-index

 *It seems the yui class does not get appended to the tag so clicking the
 calendar icon does nothing (i presume that's the reason).

 *Has anyone by any chance experienced this or something similar? Any
 suggestion is highly appreciated :).

 Tks a bunch,
 Cristi Manole




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Ryan Gravener
http://twitter.com/ryangravener

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DateTextField question

2008-07-15 Thread Serkan Camurcuoglu
No, my configuration is Tomcat 5.5.23 Jetspeed 2.1.3 Wicket 1.3.4 and 
Firefox 2.0 on Linux.. Do you know which file was patched for the safari 
problem? This could be a pointer to find the cause of the problem..


Regards,




Ryan Gravener wrote:

Are you guys using safari?  If so I think this problem is patched in 1.3.4.

On 7/15/08, Serkan Camurcuoglu [EMAIL PROTECTED] wrote:
  

I'm not sure about the reason, but in my portlet application, only one
of the date pickers is initialized if I add two portlets on the same
page containing date pickers, so only one of them works.. also it seems
like the date picker doesn't work if there is any other wicket ajax
component loaded on the page.. I think it's a problem with the
wicketCalendarInits array object which is used for initializing these
date pickers, but I haven't found the exact cause yet, I'd like to hear
if you find a solution..


Cristi Manole wrote:


Hello,

Any ideas why the calendar does not show on my modal window?

-I've seen the examples and I know it's working.
-It is not a problem related to z-index

*It seems the yui class does not get appended to the tag so clicking the
calendar icon does nothing (i presume that's the reason).

*Has anyone by any chance experienced this or something similar? Any
suggestion is highly appreciated :).

Tks a bunch,
Cristi Manole


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Totally new to Wicket and planning on using Wicket 1.4

2008-07-15 Thread Watter


Alastair Maw wrote:
 
 2008/7/12 Kent Larsson [EMAIL PROTECTED]:
 Don't wait for an updated book. Firstly there's no point. Secondly you'll
 probably be waiting a little while - the first edition of WIA has only
 recently come off the presses.

It's off the presses? Was that stated somewhere because I sure don't have my
pre-ordered PDF or hard copy. Am I missing something?

-- 
View this message in context: 
http://www.nabble.com/Totally-new-to-Wicket-and-planning-on-using-Wicket-1.4-tp18416930p18464639.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Totally new to Wicket and planning on using Wicket 1.4

2008-07-15 Thread Martijn Dashorst
It isn't available yet. We are in final review rounds (fixing typos)
based on the typeset version. Slowly but surely we are getting
there...

Martijn

On Tue, Jul 15, 2008 at 2:59 PM, Watter [EMAIL PROTECTED] wrote:


 Alastair Maw wrote:

 2008/7/12 Kent Larsson [EMAIL PROTECTED]:
 Don't wait for an updated book. Firstly there's no point. Secondly you'll
 probably be waiting a little while - the first edition of WIA has only
 recently come off the presses.

 It's off the presses? Was that stated somewhere because I sure don't have my
 pre-ordered PDF or hard copy. Am I missing something?

 --
 View this message in context: 
 http://www.nabble.com/Totally-new-to-Wicket-and-planning-on-using-Wicket-1.4-tp18416930p18464639.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Running a huge wicket site(1m + users)

2008-07-15 Thread Nino Saturnino Martinez Vazquez Wael

Hi Guys

We are having the potential fun of running a site with around 1 million 
users, and a lot more over time. What could be great optimizing points?


We have looked at these things

   * Detachable models (not sure if it makes anything run faster, just
 that it keeps the memory footprint down making more users possible
 on each server)
   * Web Cache(Oscache, Ehcache or Apache http)
   * Internal cache(Eh distributed cache)
   * Clustering(simple web server clustering with apache
 http/loadbalancer/tomcat)
 o Would Jetty be better?

Are there something we have forgotten? Have other point to pick out? 
Should we investigate terracotta also(seems they integration are working 
now)?


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Issue with Form submission in portlet container

2008-07-15 Thread Arun Wagle

Thank you.
I posted the query in jetspeed also.
The issue is with the dialog boxes and was able to verify that.




Serkan Camurcuoglu-2 wrote:
 
 form submitting with normal portlets works fine (I'm using jetpeed 2.1.3 
 and wicket 1.3.4), maybe your problem is about the modal dialog box.. if 
 you still haven't found a solution, posting this message to the jetspeed 
 user mailing list may also help..
 
 
 
 Arun Wagle wrote:
 Hello,
  
 I have an issue with submitting form in a jetspeed portal which is 
 using WicketPortlet. The form is invoked from a wicket Modal dialog box.
 I am able to run this as a normal wicket applcation(without running as 
 a wicket portlet application)
  
 I get the following exception
 WicketMessage: Method onFormSubmitted of interface 
 org.apache.wicket.markup.html.form.IFormSubmitListener targeted at 
 component [MarkupContainer [Component id = uploadReportForm, page = 
 com.bluenog.bi.reportmgr.dialogs.addreport.AddReportDialog, path = 
 0:uploadReportForm.AddReportInputForm, isVisible = true, isVersioned = 
 true]] threw an exception
 *Root cause:

 java.lang.IllegalStateException: ServletRequest does not contain 
 multipart content*
 ** 
  
 From the exception it looks like when we submit the form data, the 
 ** wicket portlet request handler is not setting the multipart/form-data.
  
 I have attached the complete stack trace as well.
  
 Please help as this is a show stopper in my application currently.
  
  
 Regards,
 Arun Wagle
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Issue-with-Form-submission-in-portlet-container-tp18454577p18466058.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running a huge wicket site(1m + users)

2008-07-15 Thread Erik van Oosten
Nino Saturnino Martinez Vazquez Wael wrote:
* Clustering(simple web server clustering with apache
  http/loadbalancer/tomcat)
  o Would Jetty be better?
Terracotta?


--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JavaScript onChange after onClick

2008-07-15 Thread cretzel

Hi,

I'm having a problem regarding JavaScript/Ajax and I'm not sure if it's
actually related to Wicket.

I've got a Button and a TextField within a Form. The TextField uses an
AjaxUpdatingBehavior for validation, which is fired onchange. The Button
submits the form via Ajax onclick. In my case, sometimes the onchange
event occurs after the onclick event (on the clientside), which causes
problems. This is only a problem in IE(6) and not in FF. In FF the onchange
event always occurs before the onclick event. And even in IE in simple
examples I could never get the onchange event to occur after the onclick. So
my question is, if this could have something to do with wicket's ajax
JavaScript.

Regards
-- 
View this message in context: 
http://www.nabble.com/JavaScript-onChange-after-onClick-tp18467010p18467010.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running a huge wicket site(1m + users)

2008-07-15 Thread Nino Saturnino Martinez Vazquez Wael

Yeah, will look into it.. And thanks! :)

Erik van Oosten wrote:

Nino Saturnino Martinez Vazquez Wael wrote:
  

   * Clustering(simple web server clustering with apache
 http/loadbalancer/tomcat)
 o Would Jetty be better?


Terracotta?


--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicketstuff-push

2008-07-15 Thread Julien Graglia

  Le jeudi 03 juillet 2008 à 16:28 +0200, Frank Bille a écrit :
  As far as I know it only lives in subversion. I tried it myself a month
  ago
  and it is functional:
  
  http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/
  http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push-examples/
  

I try to use wicketstuff-push with wicket 1.4-m3, but I can't get it to
work.

I have checkout wicketsuff-dojo (and examples), modified them to use
jetty 7.0.0pre2 and wicket 1.4-m3 and it is OK.

Then I co wicketstuff-push and examples, modified them to use the same
version of wicket (some errors to correct) and jetty, but I can't get it
to work.

The examples A chat using simulated channel based on polling and A
chat using simulated push based on polling are working (polling is OK)
but I get an NPE when I really use CometdBayeux  with test Basic Cometd
tests :

2008-07-15 16:33:55.466::WARN:  Error for 
/wicketstuff-push-examples/cometd
java.lang.Error: 
[{channel:/meta/reconnect,connectionType:long-polling,clientId:1nnmumdfsusjgcj3km,connectionId:undefined,timestamp:null,id:null}]
at 
org.mortbay.cometd.AbstractCometdServlet.getMessages(AbstractCometdServlet.java:304)
at 
org.mortbay.cometd.continuation.ContinuationCometdServlet.doPost(ContinuationCometdServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at 
org.mortbay.cometd.AbstractCometdServlet.service(AbstractCometdS
Caused by: java.lang.NullPointerException
at org.mortbay.cometd.MessageImpl.put(MessageImpl.java:144)
at org.mortbay.cometd.MessageImpl.put(MessageImpl.java:15)
at org.mortbay.util.ajax.JSON.parseObject(JSON.java:767)
at org.mortbay.util.ajax.JSON.parse(JSON.java:707)
at org.mortbay.util.ajax.JSON.parseArray(JSON.java:837)


It seems that the Id param is null...(from the 7.0.0pre1 sources of
cometd : the 7.0.0pre2 did not exists (1)) 

I didn't find how to correct this... I have search deeply in wicketpush
and wicketdojo, and it seems to came from a javascript in
wicketstuff-dojo.. I realize that wicketstuff-dojo use dojo 0.4
internally, (I'am not a dojo expert, but the last version seems to be
1.1.1)...

So here are my questions : 
- did anybody successfully manage to use wicketstuff-push with jetty
(6.1.11 or 7.0.0pre1)? 
- wicketstuff-push is it alive? last commit was 15/11/07 ...
-and if not what do you use to do reverse ajax with wicket?

Note : I already used cometd-bayeux in a Spring MVC Application, so
maybe the solution is to use cometd at low level ie. with no
integration with wicket...?



Thanx,

1 : sources of cometd-bayeux artefact (only in version 7.0.0pre1):
http://repo1.maven.org/maven2//org/mortbay/jetty/cometd-bayeux/7.0.0pre1/
--
Julien Graglia


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: London Wicket Event, August 6 at Google, London

2008-07-15 Thread jWeekend

The confirmed line up (so far) is
http://www.zenika.com Carl Azoury  on Wicket And Terracotta
http://sites.google.com/site/wicketrad/ Wille Faler  on Wicket-RAD
http://herebebeasties.com/ Al Maw  TBA (but you know what to expect).
I may run a quick presentation too and we are waiting on confirmation from a
guest speaker which I will announce soon if we can get things arranged.

There'll be the usual prize-draw for a pre-paid MEAPs licence for 
http://www.manning.com/dashorst/ Wicket In Action .

http://www.jweekend.co.uk/dev/LWUGReg/ Register  early and remember to
confirm or cancel following the link in the automated confirmation email.

I'm going to be in Southern California (mainly around San Diego  LA) for a
few days from July 20, so let me know if anybody is arranging any Wicket
events, courses or just fancies a drink.

Regards - Cemal
http://www.jWeekend.co.uk http://jWeekend.co.uk 
PS Charlie, it's good to know that you are getting something out of the
events and not turning up  every time just to enjoy Google's free pizza and
(lately) beer! See you on August 6 and thanks for sharing your this with
other guests who may not be sure if we're offering a good way to spend an
evening!


jWeekend wrote:
 
 Al and I would like to invite those of you that can get to London on
 August 6 to our next London Wicket Event at Google's London office -
 thanks to all involved at Google (especially Al) for kindly hosting us and
 for the great support.
 
 We'll be posting details soon (we have some impressive presentations
 lined-up again). This post confirms the date and location.
 
 The  http://jweekend.com/dev/LWUGReg/ registration/event details page 
 should be updated by the time you click on this link ... you know the
 drill.
 
 Regards - Cemal
 http://jWeekend.co.uk
 
 
 

-- 
View this message in context: 
http://www.nabble.com/London-Wicket-Event%2C-August-6-at-Google%2C-London-tp18393484p18469436.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running a huge wicket site(1m + users)

2008-07-15 Thread Cristi Manole
Hello,

Could you share with us the link to the website ? I don't think it's
jayway.dk.

And I was wondering what your DB is...? Are you using Hibernate?

I think everyone would appreciate you sharing all the information you can
about the design, etc. Most of us are hoping to build a website just like
yours :))

Btw, congrats :)

Cristi Manole

On Tue, Jul 15, 2008 at 5:49 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 Yeah, will look into it.. And thanks! :)


 Erik van Oosten wrote:

 Nino Saturnino Martinez Vazquez Wael wrote:


   * Clustering(simple web server clustering with apache
 http/loadbalancer/tomcat)
 o Would Jetty be better?


 Terracotta?


 --
 Erik van Oosten
 http://day-to-day-stuff.blogspot.com/



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Versioning Ajax Calls

2008-07-15 Thread jeredm

I have a LinkTree on the left of my page which acts as a menu to feed the
right side of my page.  To do this I am using an Ajax call and swapping the
right panel.  What I need is to allow is the user to click the back button
when the user has drilled into a page from a link on the right that has
swapped the right panel a second time.  Here is a simple example of this
scenario:

1) The tree is a list of people
2) The user clicks on a person and the contact information is shown on the
right side of the screen.
3) Next, the user clicks on a view schedule button on the right side of the
screen.  This swaps the right side of the screen (the tree remains on the
left) and shows the work schedule for that person.
4) What I need is for the user to be able to click the browser back button
to go back to the contact information screen.

I am using Wicket version 1.4-M2.

I have tried changing the LinkTree to use LinkType.REGULAR and the back
button works, but the problem is that my tree sits in a scrolling div and
the page reload always scrolls the div back to the top.  The tree scrolling
is a problem as some of my trees are rather large.  Any help is appreciated.

I think I could get things working if there were a way to version every time
I swap out a panel.
-- 
View this message in context: 
http://www.nabble.com/Versioning-Ajax-Calls-tp18470368p18470368.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Versioning Ajax Calls

2008-07-15 Thread Matej Knopp
Wicket does not support back button for ajax requests. The problem is
that ajax request can not modify the URL without reloading the page
(apart from changing the hash part (after #), bu that never makes to
the server. There are solutions for enabling back button for ajax
applications, but they are not 100% cross browser compatible and they
require lot of custom javascript.

I think your best bet would be using regular links to swap the panels
and use some javascript that would remember the scroll ofssets of the
div you have your tree in (e.g. in a cookie).

-Matej

On Tue, Jul 15, 2008 at 7:11 PM, jeredm [EMAIL PROTECTED] wrote:

 I have a LinkTree on the left of my page which acts as a menu to feed the
 right side of my page.  To do this I am using an Ajax call and swapping the
 right panel.  What I need is to allow is the user to click the back button
 when the user has drilled into a page from a link on the right that has
 swapped the right panel a second time.  Here is a simple example of this
 scenario:

 1) The tree is a list of people
 2) The user clicks on a person and the contact information is shown on the
 right side of the screen.
 3) Next, the user clicks on a view schedule button on the right side of the
 screen.  This swaps the right side of the screen (the tree remains on the
 left) and shows the work schedule for that person.
 4) What I need is for the user to be able to click the browser back button
 to go back to the contact information screen.

 I am using Wicket version 1.4-M2.

 I have tried changing the LinkTree to use LinkType.REGULAR and the back
 button works, but the problem is that my tree sits in a scrolling div and
 the page reload always scrolls the div back to the top.  The tree scrolling
 is a problem as some of my trees are rather large.  Any help is appreciated.

 I think I could get things working if there were a way to version every time
 I swap out a panel.
 --
 View this message in context: 
 http://www.nabble.com/Versioning-Ajax-Calls-tp18470368p18470368.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running a huge wicket site(1m + users)

2008-07-15 Thread Nino Saturnino Martinez Vazquez Wael
The site is not public yet, as we are in beta testing currently. I'll be 
happy to give out links once we go public:)


Cristi Manole wrote:

Hello,

Could you share with us the link to the website ? I don't think it's
jayway.dk.
  

So true:)

And I was wondering what your DB is...? Are you using Hibernate?
  

We are using spring JDBC templates towards mysql

I think everyone would appreciate you sharing all the information you can
about the design, etc. Most of us are hoping to build a website just like
yours :))
  

I'll tell once the site goes public:)

Btw, congrats :)
  

Thanks..

Cristi Manole

On Tue, Jul 15, 2008 at 5:49 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

  

Yeah, will look into it.. And thanks! :)


Erik van Oosten wrote:



Nino Saturnino Martinez Vazquez Wael wrote:


  

  * Clustering(simple web server clustering with apache
http/loadbalancer/tomcat)
o Would Jetty be better?




Terracotta?


--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: modalWindow disable drag drop?

2008-07-15 Thread Beyonder Unknown

Thanks, Nino. So there's no way to do that as of 1.3.4 version, i guess huh?


 --
The only constant in life is change.



- Original Message 
From: Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Monday, July 14, 2008 6:24:53 AM
Subject: Re: modalWindow disable drag  drop?

you could make it less obvious using styling...

Beyonder Unknown wrote:
 Hi Users,


 Is there a way to make the modalWindow unmovable? (disable the drag and 
 drop?). 

 Thanks,
 Allan

  --
 The only constant in life is change.



  

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

  

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



request.getSession.getAttribute()

2008-07-15 Thread Karen Schaper
Hi,

I am calling a servlet that is not part of my wicket application.  This
servlet is expecting some things in the Session object.

The non wicket servlet is  calling getSession on the HttpServletRequest
object and then gets out the attributes.

 request.getSession().getAttribute( user );


Is there a way I can put this attribute in this session ?


Thanks

Karen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax postcall handler does not get called every time

2008-07-15 Thread mfs

I am facing a similar issue, where after refreshing a page section (i.e.
DataView-Container containing AjaxLinks in each item) using ajax, the
AjaxPostCallbackHandler (which is registered on the initial page-load) is
not invoked anymore, which as Young mentioned is due to the fact that
wicket-ajax.js is reloaded..and the registered-callback is wiped out...

Any suggestions to resolve this..



MYoung wrote:
 
 I filed a bug report: https://issues.apache.org/jira/browse/WICKET-1572
 
 This bug is so unfathomable, there is got to be some psychic being
 involve.
 
 
 On Wed, May 21, 2008 at 2:32 AM, TonyVegas [EMAIL PROTECTED]
 wrote:
 

 *revive zombie*

 has any simple solution been found? I am dealing with the same issue.



 RobinShine wrote:
 
  Hi Matt,
 
  Thanks for your quick answer. Although in this simple case,  it is
 enough
  to only update the count label.  However in my application, it is
  necessary to update the whole region including the component initiating
  the ajax action. One scenario is that I've written a treetable
 component
  based on table structure, and it encloses ajax links used to
  expand/collpase tree nodes. In the event handler of thse links, I
 modify
  tree structure to satisfy node expanding/collapsing, and add the whole
  treetable component to the ajax request target for simplicity reason.
 
  From your words, it seems that it is not safe to use Wicket Ajax this
 way.
  However, my application uses this pattern extensively. Are there any
  other approaches for my scenario?
 
  Regards.
  Robin
 
  Matthew Young [EMAIL PROTECTED] wrote: The problem is you are ajax
  updating this whole thing including the nested
  ajaxlink:
 
 
 
 
 link
 
 
 
 
  it causes the wicket-ajax js stuff header contributed everytime the
 link
  is
  clicked.  Open the ajax debug window to see.  This re-init wipe out the
  postcallhandler install on page load so there is nothing there to call
  once
  the link is clicked.
 
  I cannot explain why you need to close and re-open the browser for this
 to
  happen. It shouldn't work at all.  I'm sure Matej and Igor can explain.
 
  Change your page to this and only ajax update the count then you have
 no
  problem:
 
 
 
 
 
 
 
 link
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Ajax-postcall-handler-does-not-get-called-every-time-tp16659218p17359455.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/Ajax-postcall-handler-does-not-get-called-every-time-tp16659218p18475573.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: request.getSession.getAttribute()

2008-07-15 Thread Serkan Camurcuoglu

I think this may give you the HttpSession object..

((WebRequestCycle)getRequestCycle()).getWebRequest().getHttpServletRequest().getSession();



Karen Schaper wrote:

Hi,

I am calling a servlet that is not part of my wicket application.  This
servlet is expecting some things in the Session object.

The non wicket servlet is  calling getSession on the HttpServletRequest
object and then gets out the attributes.

 request.getSession().getAttribute( user );


Is there a way I can put this attribute in this session ?


Thanks

Karen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ByteArrayResource's getCacheDuration( )

2008-07-15 Thread Ricky
Hi,

My apologies I did not follow up on this. I

On Sun, Jul 13, 2008 at 1:29 PM, greeklinux [EMAIL PROTECTED] wrote:


 Hello,

 reading the docs of ByteArrayResource I do not think it is dynamic.
 The generated resource is in memory.

 greetings



 Ricky-22 wrote:
 
  Hi,
 
  I want to be able to generate the byteArray (for MS - Excel report being
  passed to a byteArrayResource every time the resource link is clicked. I
  was
  trying to use getCacheDuration( ) for the same to allow for it to create
  ByteArray every time the resource link is clicked on the page.
 
  I have something like :
 
  final ByteArrayResource modelReportByteArrayResource = new
  ByteArrayResource(CONTENT_TYPE, createByteArray() ,FILE_NAME) {
 
  // java docs removed for clarity
  protected final int getCacheDuration() {
  return -1;  // -1 or 0 doesn't work. =(
  }
  };
 
  // add the resource.
  add(new ResourceLink(modelReportResource ));
 
  I tried to override :
  // java docs removed for clarity
  protected final void setHeaders(final WebResponse response) {
  response.setHeader(Cache-Control, no-cache,
  must-revalidate);
  }
 
  But I still get the same excel report over and over no matter how many
  times
  i click the link, despite me changing some data or the stream.
 
  Any suggestions / thoughts???
 
  Regards
  Vyas, Anirudh
 
 

 --
 View this message in context:
 http://www.nabble.com/ByteArrayResource%27s-getCacheDuration%28-%29-tp18406048p18431593.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 

Regards
Vyas, Anirudh
|| ॐ ||


Re: ByteArrayResource's getCacheDuration( )

2008-07-15 Thread Ricky
err sorry for half reply, I didnt follow up on this, my apologies. I used a
WebResource and am setting setIsCacheable(false)  and also overriding
getResourceStream method of the same to return a custom IResourceStream
instance.

In IResourceStream i override, the getInputStream method to chain
ByteArrayOutputStream to get my data dynamically. I'll post the code
tommorrow, when i get to office.


Regards
Vyas, Anirudh

On Tue, Jul 15, 2008 at 8:25 PM, Ricky [EMAIL PROTECTED] wrote:

 Hi,

 My apologies I did not follow up on this. I


 On Sun, Jul 13, 2008 at 1:29 PM, greeklinux [EMAIL PROTECTED] wrote:


 Hello,

 reading the docs of ByteArrayResource I do not think it is dynamic.
 The generated resource is in memory.

 greetings



 Ricky-22 wrote:
 
  Hi,
 
  I want to be able to generate the byteArray (for MS - Excel report being
  passed to a byteArrayResource every time the resource link is clicked. I
  was
  trying to use getCacheDuration( ) for the same to allow for it to create
  ByteArray every time the resource link is clicked on the page.
 
  I have something like :
 
  final ByteArrayResource modelReportByteArrayResource = new
  ByteArrayResource(CONTENT_TYPE, createByteArray() ,FILE_NAME) {
 
  // java docs removed for clarity
  protected final int getCacheDuration() {
  return -1;  // -1 or 0 doesn't work. =(
  }
  };
 
  // add the resource.
  add(new ResourceLink(modelReportResource ));
 
  I tried to override :
  // java docs removed for clarity
  protected final void setHeaders(final WebResponse response)
 {
  response.setHeader(Cache-Control, no-cache,
  must-revalidate);
  }
 
  But I still get the same excel report over and over no matter how many
  times
  i click the link, despite me changing some data or the stream.
 
  Any suggestions / thoughts???
 
  Regards
  Vyas, Anirudh
 
 

 --
 View this message in context:
 http://www.nabble.com/ByteArrayResource%27s-getCacheDuration%28-%29-tp18406048p18431593.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --

 Regards
 Vyas, Anirudh
 || ॐ ||



Re: generics

2008-07-15 Thread Ricky
orginally said by Martijn:
We don't say that, but without the core committers, you won't have a
framework. Treat us gently and you'll get a lot done. :D

Ok, Please, can we generify components? :D

I have already stated my opinion, but i think we should not really be
bothered about generic notation, because anyways we will have some changes
coming up in Java 7 and with closures (which will be useful to wicket imho),
wicket HAS to change and use the new feature-set. At that point i know that
there will again be a debate whether we want to go with newer feature set
(especially closures etc) or not. Its just a matter of getting used to and
once you do, you will know how elegant generification really is.

Regards
Vyas, Anirudh
|| ॐ ||

On Tue, Jul 15, 2008 at 4:00 AM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:

 You're right that 'slave' is too strong a word. I apologize.
 Wilhelmsen Tor Iver reconstructed my intent much better.

 Martijn

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: DateTextField question

2008-07-15 Thread Cristi Manole
I'm running on (quite) the same config.

Anyways, I think Serkan is right -  if you have an ajax component on the
page the date text field will stop working. He has another date text field,
I have a single date text field but on a modal window implemented as a panel
(if that even matters).

I think *the problem is here *:
-line 273 DatePicker

if (AjaxRequestTarget.get() != null)
{
final String javascript = var e = Wicket.$(' +
getEscapedComponentMarkupId() + Dp +
'); if (e != null  typeof(e.parentNode) !=
'undefined'   +
typeof(e.parentNode.parentNode != 'undefined'))  +
e.parentNode.parentNode.removeChild(e.parentNode);;

response.renderJavascript(javascript, null);
}


[javascript =
var e = Wicket.$('i1d6Dp'); if (e != null  typeof(e.parentNode) !=
'undefined'  typeof(e.parentNode.parentNode != 'undefined'))
e.parentNode.parentNode.removeChild(e.parentNode);]

This piece of code gets executed when I'm inside an ajax request (which is
our case). I think what it tries to clean is not doing very well. When I
have a (one) date text field on a regular page, that code will of course not
get executed. So I guess it's erasing yui magic, not cleaning up the html.

The only reason for the fact that the examples in wicket work (for modal +
date thingy) is because instead of an input tag, the date*field *uses
span or div...


On Tue, Jul 15, 2008 at 3:53 PM, Serkan Camurcuoglu [EMAIL PROTECTED]
wrote:

 No, my configuration is Tomcat 5.5.23 Jetspeed 2.1.3 Wicket 1.3.4 and
 Firefox 2.0 on Linux.. Do you know which file was patched for the safari
 problem? This could be a pointer to find the cause of the problem..

 Regards,





 Ryan Gravener wrote:

 Are you guys using safari?  If so I think this problem is patched in
 1.3.4.

 On 7/15/08, Serkan Camurcuoglu [EMAIL PROTECTED] wrote:


 I'm not sure about the reason, but in my portlet application, only one
 of the date pickers is initialized if I add two portlets on the same
 page containing date pickers, so only one of them works.. also it seems
 like the date picker doesn't work if there is any other wicket ajax
 component loaded on the page.. I think it's a problem with the
 wicketCalendarInits array object which is used for initializing these
 date pickers, but I haven't found the exact cause yet, I'd like to hear
 if you find a solution..


 Cristi Manole wrote:


 Hello,

 Any ideas why the calendar does not show on my modal window?

 -I've seen the examples and I know it's working.
 -It is not a problem related to z-index

 *It seems the yui class does not get appended to the tag so clicking the
 calendar icon does nothing (i presume that's the reason).

 *Has anyone by any chance experienced this or something similar? Any
 suggestion is highly appreciated :).

 Tks a bunch,
 Cristi Manole




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]










 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: ?xml tag, japanese and ie6

2008-07-15 Thread Toscano

Hello,

Thank you all for your quick responses. It is always nice to find people
like you who are willing to help.

The server is Red Hat, but I'm developing in local Windows machine... that
is the mistake, the JVM is not using UTF-8 like in the Linux one. We tried
to upload the files to the server without the ?xml tag, and everything
worked smoothly.

Again, thank you so much for your time,
Oskar



richardwilko wrote:
 
 Ok, but what os are you using?
 
 on windows the default character encoding is not utf-8 and java uses the
 system default character encoding.  Also check that the html files are
 saved in utf-8
 
 tbh i think that meta tag only works for really old browsers, but doesn't
 hurt anything if it is there.
 
 
 
 Toscano wrote:
 
 Hello,
 
 Thank you for your answer.
 
 In every case, the encoding in the browser is utf-8. It doesn't work with
 the metatag you send to me, it is already added in all the pages. It only
 works if I add the ?xml tag.
 
 Even more, I have one page with three different panels. Two of them have
 the ?xml line in the markup and the Japanese shows correctly, the third
 one has not and the japanese is corrupted. So in the same page we have
 correct and incorrect japanese, because the ?xml is not there.
 
 Has to be something related with Wicket... 
 
 Thank you again,
 Oskar
 
 
 
 
 richardwilko wrote:
 
 What is the encoding of your outputted pages (in firefox right click,
 view page info)?  This will depend on what platform you are running on
 (os and webserver).  if it is not utf-8 then you will need to change
 your setup so that it is.  then it *should* work.  its also possible
 that the page encoding is being forced to something else by the browser.
 
 you could also try adding this line to your html head
 
 meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
 
 btw, I dont think this isnt really a wicket problem, more a server setup
 problem.
 
 
 
 Toscano wrote:
 
 Hello,
 
 We are developing a multilanguage application, so our standard is
 utf-8. We are making intensive use of Wicket's localization features,
 but recently we found a problem and we can't find a good solution for
 it.
 
 Basically is this: for not getting corrupted Japanese, we have to
 include the following line in the html file:
 ?xml version=1.0 encoding=UTF-8?
 
 But if we include that file, then all the layout in 
 http://lists.xml.org/archives/xml-dev/200109/msg00182.html IE6 is a
 mess . We tried to change the ?XML declaration with metatags inside
 the head of the file, but it doesn't work, the Japanese only shows
 correctly if the tag is there.
 
 So if we leave the tag, we get Japanese but the layout is a mess in
 IE6. If we removed it, we get good layout but corrupted Japanese.
 
 Is there any tag or something to configure in Wicket for making the
 Japanese show correctly without the ?XML tag?
 
 As always, thank you for your time,
 Oskar
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/%3C-xml-tag%2C-japanese-and-ie6-tp18400121p18479034.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JavaScript onChange after onClick

2008-07-15 Thread Timo Rantalaiho
On Tue, 15 Jul 2008, cretzel wrote:
 I've got a Button and a TextField within a Form. The TextField uses an
 AjaxUpdatingBehavior for validation, which is fired onchange. The Button
 submits the form via Ajax onclick. In my case, sometimes the onchange
 event occurs after the onclick event (on the clientside), which causes
 problems. This is only a problem in IE(6) and not in FF. In FF the onchange
 event always occurs before the onclick event. And even in IE in simple

Are you sure that it always works in Firefox? Sounds like it 
could be a race condition. People who know Javascript and 
HTML better than me have told me that the browser event 
model is not too well defined.

Anyway, if your intent to only validate when the textfield 
loses focus? If it would be OK to validate on each keypress,
you could try using OnChangeAjaxBehavior in the TextField.

Another possibility would be to disable the submit button 
until the validation does not pass -- but then if you want
to click the button directly when the focus is still on the
field, it gets kind of clumsy.

And yet another possibility is to add the extra check in 
the Button event handler... and just run the validation 
manually from there before submit if needed.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running a huge wicket site(1m + users)

2008-07-15 Thread Ryan Sonnek
On Tue, Jul 15, 2008 at 8:54 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 Hi Guys

 We are having the potential fun of running a site with around 1 million
 users, and a lot more over time. What could be great optimizing points?

 We have looked at these things

   * Detachable models (not sure if it makes anything run faster, just
 that it keeps the memory footprint down making more users possible
 on each server)
   * Web Cache(Oscache, Ehcache or Apache http)
   * Internal cache(Eh distributed cache)
   * Clustering(simple web server clustering with apache
 http/loadbalancer/tomcat)
 o Would Jetty be better?

 Are there something we have forgotten? Have other point to pick out? Should
 we investigate terracotta also(seems they integration are working now)?



Cache, Cache, Cache.  if you're running any high volume/traffic sites, you
absolutely need to leverage caching to get any amount of scalability.  This
goes for ANY web framework and not just wicket.

readup on some of the published whitepapers for high traffic sites (flickr
is a great case study) to see how they do it.


Re: SV: generics

2008-07-15 Thread Brill Pappin

I agree completely.

- Brill

On 15-Jul-08, at 3:28 AM, Wilhelmsen Tor Iver wrote:


Brill Pappin [EMAIL PROTECTED] wrote:

I'd say that WIcket *is a product*, and as such the consumers
of that product have the final say.


Not any more than you can e.g. go to Ford Motor Co. and demand they  
make

this and that modification to the design of the Mustang, for instance.
Like most consumers your way of saying is to choose whether to buy/ 
use
the product or not, and it falls on the developer/manufacturer to  
fuind

out why you do or do not buy/use it.

(Walton's famous the customer is always right has a corollary: If
someone is wrong they simply is not a customer. :) )


It's up to the core committers to do the best job they can to make

sure their

consumers are getting what they need...


Not unless you want to start paying them to do so, becoming their  
boss

in the process. As they have pointed out, Wicket is not their job but
their hobby of sorts.

However: Since it is an OSS product you can download the source and
modify it as much as you like (like I did when I applied the portlet  
2.0
patch to the 1.3 and 1.4 trees locally), even creating your own fork  
of

it if you so desire. You see, the consumers are also the potential
workers in the OSS world: if only a group of users want a feature it
falls on them to implement it.


just because it's
an OS project that we don't have to buy, doesn't mean that
the project doesn't depend on people using it.


It does, but if it does not suit people's need they will look  
elsewhere.

There is a ton of web application frameworks out there to choose from.
If you like the separation of template and code in Wicket, try looking
into e.g. Facelets, which is JSF without the cursed mess called JSP.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ?xml tag, japanese and ie6

2008-07-15 Thread Timo Rantalaiho
On Tue, 15 Jul 2008, Toscano wrote:
 is the mistake, the JVM is not using UTF-8 like in the Linux one. We tried

You can set that with command line options:

  -encoding encoding
 Set the source file encoding name, such as EUC-JP and UTF-8. If
 -encoding is not specified, the platform default converter is
 used. 

  http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javac.html

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to activate a modalwindow in another frame page

2008-07-15 Thread Quan Zhou
I recently spilt my app page into several small pages and place them into a
frame page with 3 parts. one is on the top (called A), the rest are left(B)
and right(C).
i'm trying my best to solve the problems after splitting. but getting
troubled when dealing with modal window.

in the past version, there're some links which can activated modalwindow in
the origin page. but after changed by frame page, i've to place the link on
frame B , but place the window component on frame C so as to show in the
right side of the screen. I've attempted to make the componter reference of
modalwindow in frame C accessable to frame B , and call its setPageCreator
method when the link is clicked, but failed .

Could someone tell me how can i activated the modalwindow in the other frame
page?
And, i also wonder how to call ajax method in the other frame page (because
i need to change some of the components's style in frame A by clicking some
link on frame B, and i don't want to refresh all the html, instead of part
of them)?
What's the wicket way of doing those?

Thanks in advance.


Changing the DatePattern in DataTable

2008-07-15 Thread nanotech

Hi,

How can I change the pattern for a column displaying date from database in
DataTable.
In my case it displays the Short date format by default. which is mm/dd/yy
I want to able to display MM/dd/.

Thanks,
RG
-- 
View this message in context: 
http://www.nabble.com/Changing-the-DatePattern-in-DataTable-tp18480202p18480202.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: modalWindow disable drag drop?

2008-07-15 Thread Nino Saturnino Martinez Vazquez Wael
no, no way if not trying to style your way out of it. However it's not 
so tricky creating a modal window if you just want a simple overlay... 
But I guess adding stuff and ajaxing it, makes it a little more time 
consuming..


Beyonder Unknown wrote:

Thanks, Nino. So there's no way to do that as of 1.3.4 version, i guess huh?


 --
The only constant in life is change.



- Original Message 
From: Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Monday, July 14, 2008 6:24:53 AM
Subject: Re: modalWindow disable drag  drop?

you could make it less obvious using styling...

Beyonder Unknown wrote:
  

Hi Users,


Is there a way to make the modalWindow unmovable? (disable the drag and drop?). 


Thanks,
Allan

 --
The only constant in life is change.



 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 



  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]