Re: Extending parent of the parent markup

2007-11-30 Thread buealb

No, I cannot to extend AbstractTableView, because I have subclasses of
TableView as SearchView that contains additional functionality, and I need
to extend this SearchView.




Alex Objelean wrote:
 
 I still think that you should not extend TableView, but AbstractTableView.
 So, you hierarchy would look like this:
 View (with markup)
   |-- AbstractTableView
   | -- MyView (provides its markup)
   |-- TableView (with markup)
| -- SearchView
 
 Alex.
 
 
 buealb wrote:
 
 hi,
 
 jeje, We really have AbstractTableView, but the problem is another.
 We have a hierarchy like this:
 
 View (with markup)
   |-- AbstractTableView
   |-- TableView (with markup)
| -- SearchView
 | -- MyView 
 
 Where is in MyView where I want to redefine the markup. But I don't want
 to extend the markup of TableView, I want to extend directly the markup
 of the View. I would like to specify in MyView that is extending the
 markup of the View.
 The solution of Igor is the solution that now we are using, but I don't
 really like very much, because I have to repeat the markup of the view
 and the markup of the TableView in MyView. And only we want to change the
 markup of the TableView.
 
 I don't know if you are understand me... :-((
 
 But thanks also.
 
 
 
 
 Alex Objelean wrote:
 
 I think that you have a design problem. You should pull up the common
 functionality to an abstract class (AbstractTableView) which extends
 View, and both TableView  MyTableView should extend the
 AbstractTableView.
 
 Regards, 
 Alex.
 
 
 buealb wrote:
 
 Because  I have a lot of functionality in TableView that I want to
 use... 
 
 
 Alex Objelean wrote:
 
 Since you want to redefine the markup of the TableView.html, why just
 not to extend the View.html?
 
 
 buealb wrote:
 
 Hi,
 
 I have this situation:
 
 View.html
 
 border
 ..
child/
 ..
 /border
 
 
 TableView.html (extends of View)
 
 extend
 ..
child/
 ..
 /extend
 
 
 MyTableView.html (extends of TableView)
 
 extend
 ..
 /extend
 
 In this case, MyTableView is extending by default the markup of
 TableView, because I'm extending of TableView.
 But in other cases, (MyTableView2) I would like to extend of
 TableView, but I would like to extend the markup of the View
 directly. I don't want to use the markup of the TableView, if is
 necessary I'll redefine the markup of the TableView in my
 MyTableView2...
 
 Do you understand me? Are there a solution for that?
 
 Thanks
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Extending-parent-of-the-parent-markup-tf4895764.html#a14042395
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: Re[2]: AjaxSelfUpdatingTimerBehavior does not work when replaced into a page

2007-11-30 Thread Johan Maasing
On Nov 30, 2007 6:41 AM, Иванов Дмитрий [EMAIL PROTECTED] wrote:
 Everybody hello.

 As far as i know:
   - if ypu add to some component ajax timer behaviour and then add
 this component to ajax target while handling another ajax
 behaviour - there's no header contributed javascript added to
 response at the second time. So, after first updating
 there's no script to call. I have had 'fix' this like
 this:

Thanks for the hint. I thought that perhaps there was some JavaScript
missing when replacing in a component that didn't start the timer.
I'll try your fix later and report the result.

 --
 // link wich start some long living process
 final AjaxSubmitLink importRefreshLink = new 
 AjaxSubmitLink(import_refresh_link)
 {
 // handling clicking on link
 protected void onSubmit(AjaxRequestTarget target, Form form)
 {
 // some code for starting process skipped
 // ...

 // adding progress info to ajax response - it's just a label
 // with dynamic content (long living process completion status
 // - without timer behaviour at this moment)
 target.addComponent(progressInfo);

 // here we are adding timer behaviour to label
 progressInfo.add(new AbstractAjaxTimerBehavior(Duration.seconds(5))
 {
 // our own 'stop' state - kind of fix related to header
 // javascript
 boolean stoppedFlag = false;

 // handling our logic
 protected void onTimer(AjaxRequestTarget tgt)
 {
  // some code to determine state of long living
  // process skipped

  // here we also stop timer and set stoppedFlag to
  // true when long living process finish
 }

 // redefine head rendering so while our process is live
 // - we add timer - js to ajax response
 public void renderHead(IHeaderResponse response)
 {
  super.renderHead(response);
  if (!stoppedFlag)
  
 response.renderOnLoadJavascript(getJsTimeoutCall(getUpdateInterval()));
 }

}
}
 }
 --



 JM If I have a panel that nests a border which in turn nests som labels.
 JM The border has the self updating behaviour. If I run on 1.3.0-beta3
 JM the self updating seems to work when this panel is inserted into a
 JM page through the replace.
 JM If I run this on 1.3.0-rc1 it does not update. Sadly the sample
 JM applications are similar but not the same. I will try to run the exact
 JM same sample in a few days, but anyway here is the code that does not
 JM work.

 JM --

 JM public class MemoryIndexPanel extends Panel {

 JM public MemoryIndexPanel(String id) {
 JM super(id);
 JM Border someBorder = new BoxBorder(someborder);
 JM someBorder.add(new
 JM AjaxSelfUpdatingTimerBehavior(Duration.seconds(3)));
 JM someBorder.setOutputMarkupId(true);
 JM add(someBorder);
 JM someBorder.add(new Label(heap, new HeapModel()));
 JM }

 JM static class HeapModel extends AbstractReadOnlyModel {
 JM @Override
 JM public Object getObject() {
 JM final Locale userLocale = new Locale(sv, SE);
 JM final NumberFormat numberFormat = NumberFormat
 JM .getInstance(userLocale);

 JM final long freeMemory = Runtime.getRuntime().freeMemory();

 JM return numberFormat.format(freeMemory);
 JM }
 JM }
 JM }


 JM ---
 JM // HelloPanel is just a dumb panel with no components

 JM class SwitchPanelLink extends AjaxLink {
 JM public SwitchPanelLink(String id) {
 JM super(id);
 JM }

 JM @Override
 JM public void onClick(AjaxRequestTarget target) {
 JM if (hello) {
 JM panel = new HelloPanel(switchingpanel);
 JM hello = false ;
 JM } else {
 JM panel = new MemoryIndexPanel(switchingpanel);
 JM hello = true ;
 JM }
 JM panel.setOutputMarkupId(true);
 JM Index.this.replace(panel) ;
 JM target.addComponent(panel);
 JM }

 JM }
 JM --


 JM On Nov 29, 2007 9:46 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
  what wicket version are you using? and in the output see if the
  javascript to update it is included...
 
  -igor
 
 
 
  On Nov 29, 2007 12:44 PM, Johan Maasing [EMAIL PROTECTED] wrote:
   Sorry for my bad explanation. No the other way around. I have a dumb
   panel which I then replace with the self updating one.
   The SelfUpdating panel is displayed but it triggers no update of itself.
   If I just add the self updating panel to the page (no AjaxLink to
   replace it in) it updates itself.
  
  
   On Nov 29, 2007 9:37 PM, Igor Vaynberg [EMAIL PROTECTED] 

Re: Extending parent of the parent markup

2007-11-30 Thread Alex Objelean

I still think that you should not extend TableView, but AbstractTableView.
So, you hierarchy would look like this:
View (with markup)
  |-- AbstractTableView
  | -- MyView (provides its markup)
  |-- TableView (with markup)
   | -- SearchView

Alex.


buealb wrote:
 
 hi,
 
 jeje, We really have AbstractTableView, but the problem is another.
 We have a hierarchy like this:
 
 View (with markup)
   |-- AbstractTableView
   |-- TableView (with markup)
| -- SearchView
 | -- MyView 
 
 Where is in MyView where I want to redefine the markup. But I don't want
 to extend the markup of TableView, I want to extend directly the markup of
 the View. I would like to specify in MyView that is extending the markup
 of the View.
 The solution of Igor is the solution that now we are using, but I don't
 really like very much, because I have to repeat the markup of the view and
 the markup of the TableView in MyView. And only we want to change the
 markup of the TableView.
 
 I don't know if you are understand me... :-((
 
 But thanks also.
 
 
 
 
 Alex Objelean wrote:
 
 I think that you have a design problem. You should pull up the common
 functionality to an abstract class (AbstractTableView) which extends
 View, and both TableView  MyTableView should extend the
 AbstractTableView.
 
 Regards, 
 Alex.
 
 
 buealb wrote:
 
 Because  I have a lot of functionality in TableView that I want to
 use... 
 
 
 Alex Objelean wrote:
 
 Since you want to redefine the markup of the TableView.html, why just
 not to extend the View.html?
 
 
 buealb wrote:
 
 Hi,
 
 I have this situation:
 
 View.html
 
 border
 ..
child/
 ..
 /border
 
 
 TableView.html (extends of View)
 
 extend
 ..
child/
 ..
 /extend
 
 
 MyTableView.html (extends of TableView)
 
 extend
 ..
 /extend
 
 In this case, MyTableView is extending by default the markup of
 TableView, because I'm extending of TableView.
 But in other cases, (MyTableView2) I would like to extend of
 TableView, but I would like to extend the markup of the View directly.
 I don't want to use the markup of the TableView, if is necessary I'll
 redefine the markup of the TableView in my MyTableView2...
 
 Do you understand me? Are there a solution for that?
 
 Thanks
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Extending-parent-of-the-parent-markup-tf4895764.html#a14042380
Sent from the Wicket - User mailing list archive at Nabble.com.


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



[RFE] BehaviorWrapper

2007-11-30 Thread Alex Objelean

I think that it would be useful to have a BehaviorWrapper in wicket core,
something similar to ServletRequestWrapper. The idea is that I want to be
able to override some methods of the behavior which is created by a factory
or utility method.

Any thoughts?

Regards,
Alex.
-- 
View this message in context: 
http://www.nabble.com/-RFE--BehaviorWrapper-tf4902123.html#a14042366
Sent from the Wicket - User mailing list archive at Nabble.com.


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



cannot render a menubar using menu2 package

2007-11-30 Thread rik rik
Hi to all,
I've downloaded the sources of menu2 from svn, but I'm not able to make it 
working properly, because the page is not correctly rendered
My code (very simple) is this

YuiMenuBar menubar=new YuiMenuBar(menubar,menubar);
YuiMenuBarItem fileitem=menubar.addMenu(file);
YuiMenuBarItem edititem=menubar.addMenu(edit);
add(menubar);

and this is the html

html
head
script src=yahoo-dom-event.js type=text/javascript/script
script src=animation.js type=text/javascript/script
script src=container.js type=text/javascript/script
script src=menu.js type=text/javascript/script
link rel=stylesheet type=text/css href=menu.css/
/head
div wicket:id=menubarmenu/div
/html

The js files have been downloaded from the yui site, and they are correctly 
referenced from the html
Where am I going wrong?
Thanks

Rik

_
Organizza le tue foto e condividile con i tuoi amici con Raccolta foto di 
Windows Live!
http://www.windowslive.it

Re: Create a report based on a wicket page using DynamicJasper

2007-11-30 Thread cblehman

While this topic is not really related to Wicket, I have done something
similar (Dynamic Jasper layouts)

Jasper by itself does not support this type of thing, but you can use
Velocity Templates to create teh Jasper Design jrxml file dynamically based
on the columns you need.

Here is a good link on setting this up:
http://www-128.ibm.com/developerworks/websphere/library/techarticles/0505_olivieri/0505_olivieri.html

-Clay


lizz wrote:
 
 I have some wicket pages with a table component
 (org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable).
 I would like to use DynamicJasper to create a report that looks more or
 less the same as the table + some additional information. The table
 content and the number of rows per page varies so the report must be
 dynamic. 
 What is the best way to create the report?
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Create-a-report-based-on-a-wicket-page-using-DynamicJasper-tf4892428.html#a14080794
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: Serialized pages location on the disk ?

2007-11-30 Thread mfs

Since i want to give a centralized disk-store for all the clustered nodes.

As for the file-param constructor, i think it would certainly be helpful.

Farhan.



Johan Compagner wrote:
 
 First why do you want to change the default file location?
 
 Also i thing we should improve the javadoc a bit so that the defaults
 are mentioned and i am thinking here to add a File param only
 constructor so that you can change the location easier without knowing
 the rest of those defaults
 
 On 11/29/07, mfs [EMAIL PROTECTED] wrote:

 Thanks, btw as of now what is the default value set for the remaining
 three
 fields..maxSizePerPageMap,maxSizePerSession and fileChannelPoolCapacity ?

 Farhan.

 Eelco Hillenius wrote:
 
   Use the different constructor your self:
 
  *public* DiskPageStore(File fileStoreFolder, *int* maxSizePerPagemap,
  *int*maxSizePerSession,
  *int* fileChannelPoolCapacity)
 
  I don't know how I missed that constructor. Looked with my butt it
 seems.
 
  Eelco
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Serialized-pages-location-on-the-disk---tf4895129.html#a14031923
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Serialized-pages-location-on-the-disk---tf4895129.html#a14087791
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: [RFE] HeaderContributor.forFavicon(Reference)

2007-11-30 Thread Eelco Hillenius
On Nov 30, 2007 4:29 AM, William Hoover [EMAIL PROTECTED] wrote:
 While your on the subject... shouldn't there be a forJavaScript that is 
 external from the HeaderContributor that does a more intelligent insertion of 
 the script farther down the dom tree to increase performance 
 (http://developer.yahoo.com/performance/rules.html#js_bottom)?

I'm not sure what the catches are there. If you could open up a
feature request for, we can investigate it for 1.4.

Eelco

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



Re: Serialized pages location on the disk ?

2007-11-30 Thread Johan Compagner
The problem is that the DiskPageStore doesn't work really for clustering
So you can save it to 1 place, but when a failover happens that file can't
be picked up
by another server. (or matej has to have fixed this in the last few days)

Also we have a pool of open file channels to the file per server. And i
don't think
that you can have 2 read/write open channels by different servers to the
same file.

So just keeping the DiskPageStore locally is i think a good idea.

johan



On Nov 30, 2007 7:32 PM, mfs [EMAIL PROTECTED] wrote:


 Since i want to give a centralized disk-store for all the clustered nodes.

 As for the file-param constructor, i think it would certainly be helpful.

 Farhan.



 Johan Compagner wrote:
 
  First why do you want to change the default file location?
 
  Also i thing we should improve the javadoc a bit so that the defaults
  are mentioned and i am thinking here to add a File param only
  constructor so that you can change the location easier without knowing
  the rest of those defaults
 
  On 11/29/07, mfs [EMAIL PROTECTED] wrote:
 
  Thanks, btw as of now what is the default value set for the remaining
  three
  fields..maxSizePerPageMap,maxSizePerSession and fileChannelPoolCapacity
 ?
 
  Farhan.
 
  Eelco Hillenius wrote:
  
Use the different constructor your self:
  
   *public* DiskPageStore(File fileStoreFolder, *int*
 maxSizePerPagemap,
   *int*maxSizePerSession,
   *int* fileChannelPoolCapacity)
  
   I don't know how I missed that constructor. Looked with my butt it
  seems.
  
   Eelco
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Serialized-pages-location-on-the-disk---tf4895129.html#a14031923
  Sent from the Wicket - User mailing list archive at 
  Nabble.comhttp://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]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Serialized-pages-location-on-the-disk---tf4895129.html#a14087791
  Sent from the Wicket - User mailing list archive at 
 Nabble.comhttp://nabble.com/
 .


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




Re: Thx everybody that attended the user group meeting in The Netherlands

2007-11-30 Thread Eelco Hillenius
On Nov 30, 2007 5:20 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 a few:

 http://flickr.com/photos/tags/wicketmeeting/

Nice. Any way we can add those to the group I recently created? See
http://flickr.com/groups/wicket/

Eelco

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



Re: Thx everybody that attended the user group meeting in The Netherlands

2007-11-30 Thread Eelco Hillenius
On Nov 30, 2007 4:38 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 The number of people that eventually really attended was really high, and i
 enjoyed it a lot.

 Special thx to Arjé for organizing it in this way, if you have a wicket
 feature request tell me! ;)

Where are the pictures, slides and videos? :-)

Eelco

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



Re: [RFE] HeaderContributor.forFavicon(Reference)

2007-11-30 Thread Igor Vaynberg
you can already sorta do this

our iheadercontributor's iheaderresponse has
renderOnDomReadyJavascript and renderOnLoadJavascript so you can put
javascript that will be executed after page loads..

-igor


On Nov 30, 2007 4:29 AM, William Hoover [EMAIL PROTECTED] wrote:
 While your on the subject... shouldn't there be a forJavaScript that is 
 external from the HeaderContributor that does a more intelligent insertion of 
 the script farther down the dom tree to increase performance 
 (http://developer.yahoo.com/performance/rules.html#js_bottom)?


 -Original Message-
 From: Johan Compagner [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 30, 2007 2:35 AM
 To: users@wicket.apache.org
 Subject: Re: [RFE] HeaderContributor.forFavicon(Reference)


 I dont think there is any thing magical at the headerresponse if you
 ask me. Do remeber that when doing header responses you have to
 override that method on component anyway and then you are getting that
 headerresponse param.

 But maybe i dont see the complete picture here what you are
 describing. So how does XxxxResource.headerContribution() method look
 like? What params does it get? How does it get the right response
 object? (it has to be an implementation of (Ajax)HeaderResponse)

 Johan

 On 11/29/07, Ryan Sonnek [EMAIL PROTECTED] wrote:
  I don't quite understand this...
  Instead of having to know a ton of classes, you just have to know this
  one.
 
  I really struggled with wicket originally when trying to do these
  header contributions.  I was using the IDE and searching for
  Javascript* or CSS* and nothing relevant came up.  Instead, I had
  to dig through tutorials to find out how to do this.  IMO, it would be
  much more straightforward for users to use a static method on the
  related class instead of knowing about the magical HeaderContributor
  object...
 
  Just my two cents...
 
  -
  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]



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



Re: Thx everybody that attended the user group meeting in The Netherlands

2007-11-30 Thread Igor Vaynberg
On Nov 30, 2007 4:38 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 if you have a wicket feature request tell me! ;)

i would like

transparent clustering
client side state without requirement for js
jsf integration
jsp integration
maverick integration
gwt widgets
extjs widgets
cms lib
world piece
all this done before 2008

-igor






 johan


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



Re: Thx everybody that attended the user group meeting in The Netherlands

2007-11-30 Thread Johan Compagner
a few:

http://flickr.com/photos/tags/wicketmeeting/

On Dec 1, 2007 2:17 AM, Eelco Hillenius [EMAIL PROTECTED] wrote:

  On Nov 30, 2007 4:38 PM, Johan Compagner [EMAIL PROTECTED] wrote:
  The number of people that eventually really attended was really high,
 and i
  enjoyed it a lot.
 
  Special thx to Arjé for organizing it in this way, if you have a wicket
  feature request tell me! ;)

 Where are the pictures, slides and videos? :-)

 Eelco

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




Re: Serialized pages location on the disk ?

2007-11-30 Thread Matej Knopp
Sorry, that will not work anyway. The files stored on disk are not
self-contained. The index required to interpret the files is stored in
memory and is specific for each node. The DiskPageStore at this point
doesn't support session replication (thus no back button for
replicated session). However, a support for replicated DiskPageStore
is planned soon after 1.3 is out.

-Matej

On Nov 30, 2007 7:32 PM, mfs [EMAIL PROTECTED] wrote:

 Since i want to give a centralized disk-store for all the clustered nodes.

 As for the file-param constructor, i think it would certainly be helpful.

 Farhan.




 Johan Compagner wrote:
 
  First why do you want to change the default file location?
 
  Also i thing we should improve the javadoc a bit so that the defaults
  are mentioned and i am thinking here to add a File param only
  constructor so that you can change the location easier without knowing
  the rest of those defaults
 
  On 11/29/07, mfs [EMAIL PROTECTED] wrote:
 
  Thanks, btw as of now what is the default value set for the remaining
  three
  fields..maxSizePerPageMap,maxSizePerSession and fileChannelPoolCapacity ?
 
  Farhan.
 
  Eelco Hillenius wrote:
  
Use the different constructor your self:
  
   *public* DiskPageStore(File fileStoreFolder, *int* maxSizePerPagemap,
   *int*maxSizePerSession,
   *int* fileChannelPoolCapacity)
  
   I don't know how I missed that constructor. Looked with my butt it
  seems.
  
   Eelco
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context:
  http://www.nabble.com/Serialized-pages-location-on-the-disk---tf4895129.html#a14031923
  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]
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/Serialized-pages-location-on-the-disk---tf4895129.html#a14087791

 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: Serialized pages location on the disk ?

2007-11-30 Thread C.

On Sat, 2007-12-01 at 01:35 +0100, Johan Compagner wrote:
 The problem is that the DiskPageStore doesn't work really for clustering
 So you can save it to 1 place, but when a failover happens that file can't
 be picked up
 by another server. (or matej has to have fixed this in the last few days)
 
 Also we have a pool of open file channels to the file per server. And i
 don't think
 that you can have 2 read/write open channels by different servers to the
 same file.
 
 So just keeping the DiskPageStore locally is i think a good idea.

Well. the really quick and cheap way to get around this. (for a 2 node
cluster) 

DRBD 

http://www.drbd.org/

You want to scale out past that and the changes required become a bit
more interesting.

Thanks everyone for a great event.. 

./C


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



Thx everybody that attended the user group meeting in The Netherlands

2007-11-30 Thread Johan Compagner
The number of people that eventually really attended was really high, and i
enjoyed it a lot.

Special thx to Arjé for organizing it in this way, if you have a wicket
feature request tell me! ;)

johan


Re: cannot render a menubar using menu2 package

2007-11-30 Thread James McLaughlin
rik rik,
you don't need to include the yui libraries. YuiMenuBar will do that
automatically. Remove them from your html and everything should work
fine.

best,
jim

On Nov 30, 2007 3:58 AM, rik rik [EMAIL PROTECTED] wrote:
 Hi to all,
 I've downloaded the sources of menu2 from svn, but I'm not able to make it 
 working properly, because the page is not correctly rendered
 My code (very simple) is this

 YuiMenuBar menubar=new YuiMenuBar(menubar,menubar);
 YuiMenuBarItem fileitem=menubar.addMenu(file);
 YuiMenuBarItem edititem=menubar.addMenu(edit);
 add(menubar);

 and this is the html

 html
 head
 script src=yahoo-dom-event.js type=text/javascript/script
 script src=animation.js type=text/javascript/script
 script src=container.js type=text/javascript/script
 script src=menu.js type=text/javascript/script
 link rel=stylesheet type=text/css href=menu.css/
 /head
 div wicket:id=menubarmenu/div
 /html

 The js files have been downloaded from the yui site, and they are correctly 
 referenced from the html
 Where am I going wrong?
 Thanks

 Rik

 _
 Organizza le tue foto e condividile con i tuoi amici con Raccolta foto di 
 Windows Live!
 http://www.windowslive.it

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



Re: Serialized pages location on the disk ?

2007-11-30 Thread mfs

I see..what about SimpleSynchronousFilePageStore, doesnt this solve the
problem ?  i remember johan about it being an alternative (other than using
an httpsessionstore as per 1.2) in clustered-env/shared disk scenario...

Also the replication DiskPageStore you're talking about, when approx is that
planned to be out ? can u give me an idea..?

Farhan.


Matej Knopp-2 wrote:
 
 Sorry, that will not work anyway. The files stored on disk are not
 self-contained. The index required to interpret the files is stored in
 memory and is specific for each node. The DiskPageStore at this point
 doesn't support session replication (thus no back button for
 replicated session). However, a support for replicated DiskPageStore
 is planned soon after 1.3 is out.
 
 -Matej
 
 On Nov 30, 2007 7:32 PM, mfs [EMAIL PROTECTED] wrote:

 Since i want to give a centralized disk-store for all the clustered
 nodes.

 As for the file-param constructor, i think it would certainly be helpful.

 Farhan.




 Johan Compagner wrote:
 
  First why do you want to change the default file location?
 
  Also i thing we should improve the javadoc a bit so that the defaults
  are mentioned and i am thinking here to add a File param only
  constructor so that you can change the location easier without knowing
  the rest of those defaults
 
  On 11/29/07, mfs [EMAIL PROTECTED] wrote:
 
  Thanks, btw as of now what is the default value set for the remaining
  three
  fields..maxSizePerPageMap,maxSizePerSession and
 fileChannelPoolCapacity ?
 
  Farhan.
 
  Eelco Hillenius wrote:
  
Use the different constructor your self:
  
   *public* DiskPageStore(File fileStoreFolder, *int*
 maxSizePerPagemap,
   *int*maxSizePerSession,
   *int* fileChannelPoolCapacity)
  
   I don't know how I missed that constructor. Looked with my butt it
  seems.
  
   Eelco
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Serialized-pages-location-on-the-disk---tf4895129.html#a14031923
  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]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Serialized-pages-location-on-the-disk---tf4895129.html#a14087791

 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Serialized-pages-location-on-the-disk---tf4895129.html#a14101527
Sent from the Wicket - User mailing list archive at Nabble.com.


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



org.apache.wicket.WicketRuntimeException: no set method defined for value: [] on object:

2007-11-30 Thread narup

Hello All,

Can anyone tell me why this error comes up, it was not there in wicket1.2.6.
i see this after i did an upgrade.

thanks 

-- 
View this message in context: 
http://www.nabble.com/org.apache.wicket.WicketRuntimeException%3A-no-set-method-defined-for-value%3Aon-object%3A-tf4924381.html#a14093011
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: cannot render a menubar using menu2 package

2007-11-30 Thread Doug Leeper

Rik,

I am the primary author on this.  

Have you taken a look at the examples in wicketstuff-yui-examples?  I have
created examples for the Menu, MenuBar, and ContextMenu for menu2 package.  

You may ask...why menu2...b/c menu was taken and this iteration was
completely revamped. The original author of menu (James McLaughlin) and I
collaborated on menu2 and agreed to move menu2 to menu at a later time but
have not decided when that would be.

- Doug
-- 
View this message in context: 
http://www.nabble.com/wicket-success-stories-tf4877640.html#a14087758
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: [RFE] BehaviorWrapper

2007-11-30 Thread Igor Vaynberg
dont know if we need a decorator in core..its trivial to generate one
with eclipse and probably other ides...

-igor


On Nov 30, 2007 12:09 AM, Alex Objelean [EMAIL PROTECTED] wrote:

 I think that it would be useful to have a BehaviorWrapper in wicket core,
 something similar to ServletRequestWrapper. The idea is that I want to be
 able to override some methods of the behavior which is created by a factory
 or utility method.

 Any thoughts?

 Regards,
 Alex.
 --
 View this message in context: 
 http://www.nabble.com/-RFE--BehaviorWrapper-tf4902123.html#a14042366
 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: Gzip filter and resource problem

2007-11-30 Thread Matej Knopp
Yes. Your filter should check if the resource is already compressed.
Wicket compress javascripts and css files already. Your filter
probably compresses it again.

-Matej

On Nov 30, 2007 3:51 PM, Artur W. [EMAIL PROTECTED] wrote:

 Hi!

 I added Gzip Filter because my pages are really huge ;)

 I don't know if it is a firefox or Wicket (1.3rc1) bug but the resources
 are compressed and firefox don't uncompressed it.

 The problem is for example with:
 resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js

 The pages are decompressed correctly!


 Any ideas?


 Thanks,
 Artur

 --
 View this message in context: 
 http://www.nabble.com/Gzip-filter-and-resource-problem-tf4914410.html#a14067683
 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]



Gzip filter and resource problem

2007-11-30 Thread Artur W.

Hi!

I added Gzip Filter because my pages are really huge ;)

I don't know if it is a firefox or Wicket (1.3rc1) bug but the resources
are compressed and firefox don't uncompressed it.

The problem is for example with:
resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js

The pages are decompressed correctly!


Any ideas?


Thanks,
Artur

-- 
View this message in context: 
http://www.nabble.com/Gzip-filter-and-resource-problem-tf4914410.html#a14067683
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: Is wicket-contrib-jasperreports alive?

2007-11-30 Thread cblehman

I have used the project to create links to Jasper Report resources (with
wicket1.3 beta3) and it works fine for me.

The Repository link I got the project from is:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff

-Clay

Newgro wrote:
 
 Hi *,
 
 i'm realy interested in this. The cvs link i found in old mailing list has
 gone.
 Someone knows the state here?
 
 Thanks
 Per
 

-- 
View this message in context: 
http://www.nabble.com/Is-wicket-contrib-jasperreports-alive--tf4902030.html#a14080389
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: wicketAjaxGet is not defined.. javascript error

2007-11-30 Thread narend

Thanks Matej!
I think I will try upgrading to 1.3  will let you all you know if that
solved it.
On a related note.. I found a post with the same problem as mine. I
hard-coded the ajax script in the header like the post suggested and it
solved the issue. But hard-coding is not a real long-term solution for me
though.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg30896.html


Matej Knopp-2 wrote:
 
 Looks like a bug in 1.2.6. Can you upgrade to 1.3?
 
 -Matej
 
 On Nov 28, 2007 9:29 PM, narend [EMAIL PROTECTED] wrote:

 Hi folks
 I use AjaxSubmitLink  AutoCompleteTextField on my wicket page. The
 AjaxSubmitLink works fine when I first access the page, but when I
 navigate
 away from the page and try the AjaxSubmitLink again, I get a javascript
 error. When I refresh the page, the AjaxSubmitLink works fine again.

 Javascript error : wicketAjaxGet is not defined

 I took a look at the page source when I receive the error. The ajax
 javascript (see below) are missing in the header when I get the error.
 When
 I refresh the page, the ajax javascript is back in the header.

 JavaScript snippet from the header of page:
 script type=text/javascript
 src=/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js/script
 script type=text/javascript
 src=/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug-drag.js/script
 script type=text/javascript
 src=/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script

 Is this a bug in wicket 1.2.6? Or is anyone familiar with  a fix to this?
 I did a search in the forums but I did not find a solution to this
 problem

 fyi... I inject the CSS for the page using HeaderContributor
 Let me know if you need more information while I take a crack at this
 issue
 in the meantime
 --
 View this message in context:
 http://www.nabble.com/wicketAjaxGet-is-not-defined..-javascript-error-tf4891958.html#a14008494
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/wicketAjaxGet-is-not-defined..-javascript-error-tf4891958.html#a14075110
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: Ajax Memory Leak in IE

2007-11-30 Thread Matej Knopp
Hi,

sorry, it was a regression. Should be fixed in current trunk.

-Matej

On Nov 30, 2007 2:28 PM, Antoine Angénieux [EMAIL PROTECTED] wrote:
 To be a bit more explicit : I checked in the Ajax Debug window, the Ajax
 called is made, the response is received, but then I have the following
 error message :

 INFO: Response parsed. Now invoking steps...
 ERROR: Error while parsing response: Erreur d'exécution inconnue
 INFO: Invoking post-call handler(s)...
 INFO: Invoking failure handler(s)...

 This only happens in IE 6 and 7, but works perfectly well in Firefox 2.0...

 Any idea? I guess it is related to the recent (yesterday and today)
 modifications in wicket-ajax.js.

 Matej, do you have any idea ?

 Thanks guys !

 Antoine.

 Below is a copy of the full log in the debug window :

 INFO: focus set on pageLink41
 INFO:
 INFO: Initiating Ajax GET request on
 ?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:navigation:1:pageLink::IBehaviorListener:0:random=0.948158990539
 INFO: Invoking pre-call handler(s)...
 INFO: Received ajax response (5507 characters)
 INFO:
 ?xml version=1.0
 encoding=UTF-8?ajax-responseheader-contribution encoding=wicket1
  ![CDATA[head xmlns:wicket=http://wicket.apache.org;script
 type=text/javascript
 src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script

 script type=text/javascript
 src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script

 script type=text/javascript
 src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script

 script type=text/javascript
 id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/
 wicketAjaxDebugEnable=true;
 /*--]^]^*//script

 /head]]/header-contributioncomponent id=table36 ![CDATA[table
 id=table36 cellpadding=0 cellspacing=0
 thead


  tr class=navigation
  td colspan=4
  div style=float: left;
 class=navigatorLabelspanAffiche 6 à 8 sur 8/span/div
  div style=text-align: right; class=navigatorspan
 id=navigator37
  a id=first38 onclick=var
 wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:first::IBehaviorListener:0:-1',null,null,
 function() {return Wicket.$$(this)}.bind(this));return !wcall;
 href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:first::ILinkListener::/a
 a id=prev39 onclick=var
 wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:prev::IBehaviorListener:0:-1',null,null,
 function() {return Wicket.$$(this)}.bind(this));return !wcall;
 href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:prev::ILinkListener::/a

  span
a id=pageLink180 onclick=var
 wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:navigation:0:pageLink::IBehaviorListener:0:-1',null,null,
 function() {return Wicket.$$(this)}.bind(this));return !wcall;
 href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:navigation:0:pageLink::ILinkListener::span1/span/a

  /spanspan
span id=pageLink181emspan2/span/em/span
  /span
  span id=next42em/em/span span
 id=last43em/em/span
/span/div
  /td
  /tr



  tr class=headers

  th class=wicket_orderNonea id=orderByLink44
 onclick=var
 wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:1:header:orderByLink::IBehaviorListener:1:-1',null,null,
 function() {return Wicket.$$(this)}.bind(this));return !wcall;
 class=wicket_orderNone
 href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:1:header:orderByLink::ILinkListener::spanCode/span/a/th


  th class=wicket_orderNonea id=orderByLink45
 onclick=var
 wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:2:header:orderByLink::IBehaviorListener:1:-1',null,null,
 function() {return Wicket.$$(this)}.bind(this));return !wcall;
 class=wicket_orderNone
 href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:2:header:orderByLink::ILinkListener::spanDate
 de procédure/span/a/th

  th class=wicket_orderNonea id=orderByLink46
 onclick=var
 wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:3:header:orderByLink::IBehaviorListener:1:-1',null,null,
 function() {return Wicket.$$(this)}.bind(this));return !wcall;
 class=wicket_orderNone
 href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:3:header:orderByLink::ILinkListener::spanEchéance/span/a/th


  thspan /span/th

  /tr


 /thead
 tbody
  tr class=even
  td
  span
  a
 href=?wicket:interface=:1:portletFu1:fu1:table:rows:9:cells:1:cell:link::ILinkListener::span

  img src=img/patients/crf.gif border=0/spanBMA97/span
 

Re: Ajax Memory Leak in IE

2007-11-30 Thread Antoine Angénieux

Matej Knopp a écrit :

Hi,

sorry, it was a regression. Should be fixed in current trunk.

Don't, shit happens !

Thanks alot for reacting so quickly, You guys are marvelous ;)

Cheers,

Antoine.

PS: Just tested it, and it works just fine



-Matej

On Nov 30, 2007 2:28 PM, Antoine Angénieux [EMAIL PROTECTED] wrote:

To be a bit more explicit : I checked in the Ajax Debug window, the Ajax
called is made, the response is received, but then I have the following
error message :

INFO: Response parsed. Now invoking steps...
ERROR: Error while parsing response: Erreur d'exécution inconnue
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...

This only happens in IE 6 and 7, but works perfectly well in Firefox 2.0...

Any idea? I guess it is related to the recent (yesterday and today)
modifications in wicket-ajax.js.

Matej, do you have any idea ?

Thanks guys !

Antoine.

Below is a copy of the full log in the debug window :

INFO: focus set on pageLink41
INFO:
INFO: Initiating Ajax GET request on
?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:navigation:1:pageLink::IBehaviorListener:0:random=0.948158990539
INFO: Invoking pre-call handler(s)...
INFO: Received ajax response (5507 characters)
INFO:
?xml version=1.0
encoding=UTF-8?ajax-responseheader-contribution encoding=wicket1
 ![CDATA[head xmlns:wicket=http://wicket.apache.org;script
type=text/javascript
src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script

script type=text/javascript
src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script

script type=text/javascript
src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script

script type=text/javascript
id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/
wicketAjaxDebugEnable=true;
/*--]^]^*//script

/head]]/header-contributioncomponent id=table36 ![CDATA[table
id=table36 cellpadding=0 cellspacing=0
thead


 tr class=navigation
 td colspan=4
 div style=float: left;
class=navigatorLabelspanAffiche 6 à 8 sur 8/span/div
 div style=text-align: right; class=navigatorspan
id=navigator37
 a id=first38 onclick=var
wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:first::IBehaviorListener:0:-1',null,null,
function() {return Wicket.$$(this)}.bind(this));return !wcall;
href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:first::ILinkListener::/a
a id=prev39 onclick=var
wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:prev::IBehaviorListener:0:-1',null,null,
function() {return Wicket.$$(this)}.bind(this));return !wcall;
href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:prev::ILinkListener::/a

 span
   a id=pageLink180 onclick=var
wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:navigation:0:pageLink::IBehaviorListener:0:-1',null,null,
function() {return Wicket.$$(this)}.bind(this));return !wcall;
href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:navigation:0:pageLink::ILinkListener::span1/span/a

 /spanspan
   span id=pageLink181emspan2/span/em/span
 /span
 span id=next42em/em/span span
id=last43em/em/span
   /span/div
 /td
 /tr



 tr class=headers

 th class=wicket_orderNonea id=orderByLink44
onclick=var
wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:1:header:orderByLink::IBehaviorListener:1:-1',null,null,
function() {return Wicket.$$(this)}.bind(this));return !wcall;
class=wicket_orderNone
href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:1:header:orderByLink::ILinkListener::spanCode/span/a/th


 th class=wicket_orderNonea id=orderByLink45
onclick=var
wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:2:header:orderByLink::IBehaviorListener:1:-1',null,null,
function() {return Wicket.$$(this)}.bind(this));return !wcall;
class=wicket_orderNone
href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:2:header:orderByLink::ILinkListener::spanDate
de procédure/span/a/th

 th class=wicket_orderNonea id=orderByLink46
onclick=var
wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:3:header:orderByLink::IBehaviorListener:1:-1',null,null,
function() {return Wicket.$$(this)}.bind(this));return !wcall;
class=wicket_orderNone
href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:3:header:orderByLink::ILinkListener::spanEchéance/span/a/th


 thspan /span/th

 /tr


/thead
tbody
 tr class=even
 td
 span
 a

Re: defaultNullLabel()

2007-11-30 Thread Gerolf Seitz
Alex,
this is fixed in current trunk and will be included in 1.3.0-rc2, which
frank might be starting to release this weekend.

Regards,
  Gerolf

On Nov 30, 2007 2:04 PM, Alexander Landsnes Keül 
[EMAIL PROTECTED] wrote:

 I have something of the same issue, if you have a value of  in an
 AjaxEditableLabel it's unclickable. It's not removed from the markup, I just
 can't click it. Probably because the Label is 0 pixels wide.

 For me the solution was to have ... if the String was null, and have all
 getters translate  into null. A pain, but it works.

 Alex

 -Opprinnelig melding-
 Fra: Roy van Rijn [mailto:[EMAIL PROTECTED]
 Sendt: 30. november 2007 13:55
 Til: users@wicket.apache.org
 Emne: Re: defaultNullLabel()

 It doesn't look like the defaultNullLabel() can cause such a problem..
 Have you tried your code without overwriting the default label?

 Also, when you create your RLabel you use the string label, is this
 on purpose or did you mean to use componentId.
 (the original code has:Label label = new Label(componentId, model))

 Roy

 On 11/30/07, leonardouit [EMAIL PROTECTED] wrote:
 
  Hi here.
 
  I have a class that extends AjaxEditableLabel. The overriden methods
  newEditor and newLabel look as following:
 
 protected FormComponent newEditor(MarkupContainer parent, String
  componentId, IModel model){
 
 RTextField editor =
 (fieldType == null) ?
 editor = new RTextField(componentId, model,
 String.class){
 protected void
 onComponentTag(ComponentTag tag) {
 super.onComponentTag(tag);
 add(new
 SimpleAttributeModifier(class, e0));
 }
 } :
 new RTextField(componentId, model, fieldType){
 protected void
 onComponentTag(ComponentTag tag) {
 super.onComponentTag(tag);
 add(new
 SimpleAttributeModifier(class, e0));
 }
 };
 
 editor.setOutputMarkupId(true);
 editor.setVisible(false);
 editor.add(new EditorAjaxBehavior());
 return editor;
 }
 
 protected Component newLabel(MarkupContainer parent, String
 componentId,
  IModel model){
 
 RLabel label = new RLabel(label, model)
 {
 private static final long serialVersionUID = 1L;
 
 protected void onComponentTagBody
 (MarkupStream markupStream, ComponentTag openTag)
 {
 if (getModelObject() == null) {
 
  replaceComponentTagBody(markupStream, openTag, defaultNullLabel());
 }
 else
 {
 
  super.onComponentTagBody(markupStream,
 openTag);
 }
 }
 };
 label.setOutputMarkupId(true);
 label.add(new LabelAjaxBehavior(onclick));
 return label;
 }
 
  Note that if the model, on newLabel, is null, then it uses
  defaultNullLabel(), which defaults to the ... string. I believed that
 I
  could override that method to print whatever I wanted to, including the
  empty string . However, if a have something like
 
 @Override
 protected String defaultNullLabel() {
 return  ;
 }
 
  the cell that was meant to be editable, after clicking in and then
 clicking
  out, become NOT EDITABLE!
 
  Any help?
  --
  View this message in context:
 http://www.nabble.com/defaultNullLabel%28%29-tf4904412.html#a14046749
  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]


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




Re: defaultNullLabel()

2007-11-30 Thread Roy van Rijn
It doesn't look like the defaultNullLabel() can cause such a problem..
Have you tried your code without overwriting the default label?

Also, when you create your RLabel you use the string label, is this
on purpose or did you mean to use componentId.
(the original code has:Label label = new Label(componentId, model))

Roy

On 11/30/07, leonardouit [EMAIL PROTECTED] wrote:

 Hi here.

 I have a class that extends AjaxEditableLabel. The overriden methods
 newEditor and newLabel look as following:

protected FormComponent newEditor(MarkupContainer parent, String
 componentId, IModel model){

RTextField editor =
(fieldType == null) ?
editor = new RTextField(componentId, model, 
 String.class){
protected void onComponentTag(ComponentTag 
 tag) {
super.onComponentTag(tag);
add(new 
 SimpleAttributeModifier(class, e0));
}
} :
new RTextField(componentId, model, fieldType){
protected void onComponentTag(ComponentTag 
 tag) {
super.onComponentTag(tag);
add(new 
 SimpleAttributeModifier(class, e0));
}
};

editor.setOutputMarkupId(true);
editor.setVisible(false);
editor.add(new EditorAjaxBehavior());
return editor;
}

protected Component newLabel(MarkupContainer parent, String 
 componentId,
 IModel model){

RLabel label = new RLabel(label, model)
{
private static final long serialVersionUID = 1L;

protected void onComponentTagBody
(MarkupStream markupStream, ComponentTag openTag)
{
if (getModelObject() == null) {
replaceComponentTagBody(markupStream, 
 openTag, defaultNullLabel());
}
else
{
super.onComponentTagBody(markupStream, 
 openTag);
}
}
};
label.setOutputMarkupId(true);
label.add(new LabelAjaxBehavior(onclick));
return label;
}

 Note that if the model, on newLabel, is null, then it uses
 defaultNullLabel(), which defaults to the ... string. I believed that I
 could override that method to print whatever I wanted to, including the
 empty string . However, if a have something like

@Override
protected String defaultNullLabel() {
return  ;
}

 the cell that was meant to be editable, after clicking in and then clicking
 out, become NOT EDITABLE!

 Any help?
 --
 View this message in context: 
 http://www.nabble.com/defaultNullLabel%28%29-tf4904412.html#a14046749
 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: Is wicket-contrib-jasperreports alive?

2007-11-30 Thread Evan Chooly
The project lives in svn in the wicket-stuff repo.  Last I worked with it, I
had started migrating it to wicket 1.3 but that was back when there was a
wicket 2.0 in the works.  It should still be compatible with today's 1.3 but
I haven't touched it in months as I haven't had to use JR in sometime.  But
barring any API drift in wicket, it should compile and work just fine.

On Nov 30, 2007 2:35 AM, Newgro [EMAIL PROTECTED] wrote:


 Hi *,

 i'm realy interested in this. The cvs link i found in old mailing list has
 gone.
 Someone knows the state here?

 Thanks
 Per
 --
 View this message in context:
 http://www.nabble.com/Is-wicket-contrib-jasperreports-alive--tf4902030.html#a14042012
 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: [RFE] HeaderContributor.forFavicon(Reference)

2007-11-30 Thread William Hoover
While your on the subject... shouldn't there be a forJavaScript that is 
external from the HeaderContributor that does a more intelligent insertion of 
the script farther down the dom tree to increase performance 
(http://developer.yahoo.com/performance/rules.html#js_bottom)?

-Original Message-
From: Johan Compagner [mailto:[EMAIL PROTECTED]
Sent: Friday, November 30, 2007 2:35 AM
To: users@wicket.apache.org
Subject: Re: [RFE] HeaderContributor.forFavicon(Reference)


I dont think there is any thing magical at the headerresponse if you
ask me. Do remeber that when doing header responses you have to
override that method on component anyway and then you are getting that
headerresponse param.

But maybe i dont see the complete picture here what you are
describing. So how does XxxxResource.headerContribution() method look
like? What params does it get? How does it get the right response
object? (it has to be an implementation of (Ajax)HeaderResponse)

Johan

On 11/29/07, Ryan Sonnek [EMAIL PROTECTED] wrote:
 I don't quite understand this...
 Instead of having to know a ton of classes, you just have to know this
 one.

 I really struggled with wicket originally when trying to do these
 header contributions.  I was using the IDE and searching for
 Javascript* or CSS* and nothing relevant came up.  Instead, I had
 to dig through tutorials to find out how to do this.  IMO, it would be
 much more straightforward for users to use a static method on the
 related class instead of knowing about the magical HeaderContributor
 object...

 Just my two cents...

 -
 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]



defaultNullLabel()

2007-11-30 Thread leonardouit

Hi here.

I have a class that extends AjaxEditableLabel. The overriden methods
newEditor and newLabel look as following:

protected FormComponent newEditor(MarkupContainer parent, String
componentId, IModel model){

RTextField editor =
(fieldType == null) ?   
editor = new RTextField(componentId, model, 
String.class){
protected void onComponentTag(ComponentTag tag) 
{
super.onComponentTag(tag);
add(new 
SimpleAttributeModifier(class, e0));
}
} :
new RTextField(componentId, model, fieldType){
protected void onComponentTag(ComponentTag tag) 
{
super.onComponentTag(tag);
add(new 
SimpleAttributeModifier(class, e0));
}
};  

editor.setOutputMarkupId(true);
editor.setVisible(false);
editor.add(new EditorAjaxBehavior());
return editor;
}

protected Component newLabel(MarkupContainer parent, String componentId,
IModel model){

RLabel label = new RLabel(label, model)
{
private static final long serialVersionUID = 1L;

protected void onComponentTagBody
(MarkupStream markupStream, ComponentTag openTag)
{   
if (getModelObject() == null) {
replaceComponentTagBody(markupStream, 
openTag, defaultNullLabel());
}
else
{
super.onComponentTagBody(markupStream, 
openTag);
}
}
};
label.setOutputMarkupId(true);
label.add(new LabelAjaxBehavior(onclick));
return label;
}

Note that if the model, on newLabel, is null, then it uses
defaultNullLabel(), which defaults to the ... string. I believed that I
could override that method to print whatever I wanted to, including the
empty string . However, if a have something like 

@Override
protected String defaultNullLabel() {
return  ;
}

the cell that was meant to be editable, after clicking in and then clicking
out, become NOT EDITABLE!

Any help?
-- 
View this message in context: 
http://www.nabble.com/defaultNullLabel%28%29-tf4904412.html#a14046749
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: Ajax Memory Leak in IE

2007-11-30 Thread Antoine Angénieux
Just updated and rebuilt from the trunk, and now Ajax the pager 
component in AjaxFallbackDefaultDataTable do not work any more... (IE6 
and IE7)


Cheers,

Antoine.

picknick a écrit :
Wow, you're quick. 
Thanks.



Matej Knopp-2 wrote:

Hi,

should be fixed in latest trunk.

-Matej

On Nov 26, 2007 5:24 PM, picknick [EMAIL PROTECTED] wrote:

Here's the jira issue. Currently i can't say anything about IE7.

https://issues.apache.org/jira/browse/WICKET-1186
https://issues.apache.org/jira/browse/WICKET-1186



Matej Knopp-2 wrote:

Does it happen for IE6 only or also for IE7? Can you create a jira
issue and attach a  quickstart?

-Matej

On Nov 26, 2007 12:19 PM, picknick [EMAIL PROTECTED]

wrote:

I'm using a DataView-Table with an AjaxPagingNavigator listing 100

items

per
page. Each item has an AjaxLink to a detail view. When paging through

the

list the memory usage of the IE is increased by about 500 KB per page.
Without the ajax link it's doing well.

AjaxDebugMode is disabled. Configuration is set to deployment.

Currently

I'm
using Wicket 1.3.0-rc1. I tried Wicket 1.2.6, which is working fine.

Any ideas?

Nick
--
View this message in context:
http://www.nabble.com/Ajax-Memory-Leak-in-IE-tf4874611.html#a13947927
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]




--
View this message in context:
http://www.nabble.com/Ajax-Memory-Leak-in-IE-tf4874611.html#a13953000

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]








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



Re: Re[2]: AjaxSelfUpdatingTimerBehavior does not work when replaced into a page

2007-11-30 Thread Matej Knopp
Could be caused by https://issues.apache.org/jira/browse/WICKET-745
(read the last comment)

-Matej

On Nov 30, 2007 9:37 AM, Johan Maasing [EMAIL PROTECTED] wrote:
 On Nov 30, 2007 6:41 AM, Иванов Дмитрий [EMAIL PROTECTED] wrote:
  Everybody hello.
 
  As far as i know:
- if ypu add to some component ajax timer behaviour and then add
  this component to ajax target while handling another ajax
  behaviour - there's no header contributed javascript added to
  response at the second time. So, after first updating
  there's no script to call. I have had 'fix' this like
  this:

 Thanks for the hint. I thought that perhaps there was some JavaScript
 missing when replacing in a component that didn't start the timer.
 I'll try your fix later and report the result.


  --
  // link wich start some long living process
  final AjaxSubmitLink importRefreshLink = new 
  AjaxSubmitLink(import_refresh_link)
  {
  // handling clicking on link
  protected void onSubmit(AjaxRequestTarget target, Form form)
  {
  // some code for starting process skipped
  // ...
 
  // adding progress info to ajax response - it's just a label
  // with dynamic content (long living process completion status
  // - without timer behaviour at this moment)
  target.addComponent(progressInfo);
 
  // here we are adding timer behaviour to label
  progressInfo.add(new AbstractAjaxTimerBehavior(Duration.seconds(5))
  {
  // our own 'stop' state - kind of fix related to header
  // javascript
  boolean stoppedFlag = false;
 
  // handling our logic
  protected void onTimer(AjaxRequestTarget tgt)
  {
   // some code to determine state of long living
   // process skipped
 
   // here we also stop timer and set stoppedFlag to
   // true when long living process finish
  }
 
  // redefine head rendering so while our process is live
  // - we add timer - js to ajax response
  public void renderHead(IHeaderResponse response)
  {
   super.renderHead(response);
   if (!stoppedFlag)
   
  response.renderOnLoadJavascript(getJsTimeoutCall(getUpdateInterval()));
  }
 
 }
 }
  }
  --
 
 
 
  JM If I have a panel that nests a border which in turn nests som labels.
  JM The border has the self updating behaviour. If I run on 1.3.0-beta3
  JM the self updating seems to work when this panel is inserted into a
  JM page through the replace.
  JM If I run this on 1.3.0-rc1 it does not update. Sadly the sample
  JM applications are similar but not the same. I will try to run the exact
  JM same sample in a few days, but anyway here is the code that does not
  JM work.
 
  JM --
 
  JM public class MemoryIndexPanel extends Panel {
 
  JM public MemoryIndexPanel(String id) {
  JM super(id);
  JM Border someBorder = new BoxBorder(someborder);
  JM someBorder.add(new
  JM AjaxSelfUpdatingTimerBehavior(Duration.seconds(3)));
  JM someBorder.setOutputMarkupId(true);
  JM add(someBorder);
  JM someBorder.add(new Label(heap, new HeapModel()));
  JM }
 
  JM static class HeapModel extends AbstractReadOnlyModel {
  JM @Override
  JM public Object getObject() {
  JM final Locale userLocale = new Locale(sv, SE);
  JM final NumberFormat numberFormat = NumberFormat
  JM .getInstance(userLocale);
 
  JM final long freeMemory = Runtime.getRuntime().freeMemory();
 
  JM return numberFormat.format(freeMemory);
  JM }
  JM }
  JM }
 
 
  JM ---
  JM // HelloPanel is just a dumb panel with no components
 
  JM class SwitchPanelLink extends AjaxLink {
  JM public SwitchPanelLink(String id) {
  JM super(id);
  JM }
 
  JM @Override
  JM public void onClick(AjaxRequestTarget target) {
  JM if (hello) {
  JM panel = new HelloPanel(switchingpanel);
  JM hello = false ;
  JM } else {
  JM panel = new MemoryIndexPanel(switchingpanel);
  JM hello = true ;
  JM }
  JM panel.setOutputMarkupId(true);
  JM Index.this.replace(panel) ;
  JM target.addComponent(panel);
  JM }
 
  JM }
  JM --
 
 
  JM On Nov 29, 2007 9:46 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
   what wicket version are you using? and in the output see if the
   javascript to update it is included...
  
   -igor
  
  
  
   On Nov 29, 2007 12:44 PM, Johan Maasing [EMAIL PROTECTED] wrote:
Sorry for my bad explanation. No the other way around. I have a dumb

Re: Generating email body with wicket

2007-11-30 Thread Nazmi ZORLU

I solve this one like that (I'm not sure if it is a good way or not) :

My Contact Form's HTML Part:
...
form wicket:id=contactForm
   table width=100%
   tr
   th colspan=2Contact Us/th
   /tr
   tr
   tdName /td
   tdinput type=text wicket:id=name//td
   /tr
...



My InputModel:
...
public final class ContactFormInputModel implements Serializable {
   private String name;

   public String getName() {
   return name;
   }

   public void setName(String name) {
   this.name = name;
   }
...


My Email Template Page (HTML) Part
...
   tr
   th colspan=2 bgcolor=#DFDFDFNew Contact Form 
Entry/th

   /tr
   tr
   tdbName/b/td
   tdspan wicket:id=name/span/td
   /tr
...


My Email Template Page (Java) Part
...
public class ContactFormMail extends WebPage {
   private ContactFormInputModel model;

   public ContactFormMail(ContactFormInputModel model) {
   this.model = model;
   add(new Label(name, this.model.getName()));
   }

   public String getSource() {
   BufferedWebResponse resp = 
(BufferedWebResponse)RequestCycle.get().getResponse();

   return resp.toString();
   }
...


When I need an HTML source of an email in a form's onSubmit() method:
...
   ContactFormMail mailContent = new 
ContactFormMail((ContactFormInputModel)getModelObject());

   mailContent.render();
   String *htmlSource *= mailContent.getSource();
...


I hope this helps!

--
Nazmi ZORLU



Pills wrote:

Hi everybody,

just a little question: is there a way to use wicket to generate the body of
an html email?

I mean, is it possible to output a page in an another place than the
servlet's response outup (like a ByteArrayOutputStream)?

If yes, then I'll be able to put it to my email's body ;)

Thanks
  


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



Re: [RFE] packed JS in DEPLOYMENT mode.

2007-11-30 Thread Sebastiaan van Erk
What do you mean exactly? That the client has to load the entire stream 
first? I don't see why, because gzip is a perfectly streamable protocol 
and the stream can be unzipped on the fly when loaded into the browser.


It is true that mod_gzip *does* compress the entire response before 
starting transmission to the client. I'm sure it could stream it with 
modern apache architecture, but it hasn't been updated since 2002 from 
what I can see. However on modern servers compressing 180 kB files takes 
a few milliseconds (+/- 20 ms on my laptop), so I seriously doubt you'll 
notice.


Just as an example, assuming I can download 1.6 MB/s on my rather fast 
20 mbit ADSL connection (which is pretty close, except that only some 
sites actually give me that), then transferring 180 kB takes:


uncompressed: 180 kB / 1600 kB/s = .1125 s, starting immediately
compressed: 34 kB / 1600 kB/s + 0.020 s = .0413 s, starting after 0.020 s

Thus even on my FAST connection, the actual download would be about 3 
times as fast, and the delay would only be 20 milliseconds. If the 
connection is slower, the gain will be larger.


What's more, I believe that Tomcat/Jetty's gzip filters actually *do* 
stream the data immediately.


Regards,
Sebastiaan

Johan Compagner wrote:

Personally  i dont like gzipped html sites, because has to load first
the complete stream before it does anything, or is that changed
nowadays?

On 11/29/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

Matej Knopp wrote:

No. Only javascript resources. They are static and the gzipped version
is cached. Gzipping generated html every time seems like a waste of
resources to me.

Actually I use mod_gzip a lot in production because I have apache
proxying stuff anyway. Jetty has a gzip filter and I'm sure tomcat has
something similar, so you can keep it all java if you want.

CPU is something that is very over-abundant on most modern webservers;
mod_gzip has a really tiny performance penalty and unless you have a
REALLY high volume site, you're not even going to notice it. If you can
make the pages snappier by gzipping it to limit the bandwidth required
by the *client*, I think it's worth it.

Regards,
Sebastiaan



-Matej

On Nov 29, 2007 1:52 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

Didn't know that; that's nice. :-) Learn something new every day.

Do you also serve the HTML gzipped?


Regards,
Sebastiaan

Matej Knopp wrote:

We do also serve javascript gzipped, so there is no reason for using
mod_gzip either.

-Matej

On Nov 29, 2007 1:48 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

I'm with Matej on this one.

2 files to maintain, extra code logic in Wicket itself to maintain,
extra complexity, with no real gain. Wicket markup can already be
minimified (see Matej's other mail), and I really think using
something like mod_gzip is a much better option: separation of concerns
and you get compression on other stuff as well.

Regards,
Sebastiaan



Matej Knopp wrote:

But that would mean maintaining two files for every script. Which
means at least a compilation time dependency. And I still don't see
good reason for this.

-Matej

On Nov 29, 2007 1:26 PM, Alex Objelean [EMAIL PROTECTED]

wrote:

Sebastiaan, Matej, I think you get me wrong.
I do not suggest to minify the js files in runtime. What I suggest,

is to

have both, for instance: wicket-ajax.js  wicket-ajax.pack.js, in the
distributed jar. And include the wicket related js this way:

if (Application.DEVELOPMENT
.equalsIgnoreCase(Application.get().getConfigurationType()))

{

  add(HeaderContributor.forJavaScript(new ResourceReference(
  AbstractDefaultAjaxBehavior.class,

wicket-ajax.pack.js)));

} else {
  add(HeaderContributor.forJavaScript(new ResourceReference(
  AbstractDefaultAjaxBehavior.class, wicket-ajax.js)));
}

Alex.



Sebastiaan van Erk wrote:

I'm talking about packers (like the jQuery packed version):

What I see in jQuery.pack.js:



eval(function(p,a,c,k,e,r){e=function(c){return(ca?'':e(parseInt(c/a)))+
((c=c%a)35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,

String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return


r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new

RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(G(){9(1m E!=W)H

w=E;H

E=18.15=G(a,b){I 6 7u E?6.5N(a,b):1u E(a,b)};9(1m $!=W)H

D=$;18.$=E;H

u=/^[^]*((.|\\s)+)[^]*$|^#(\\w+)

etc... etc...

This is run every time the document is loaded (onload) which is

quite a

hit on client side performance.

I guess removing extra whitespace or shortening variable names could
help some (minimizer), but I think it's pretty much useless in most
cases. I think a better options is installing something like

mod_gzip

which can also gzip outputted html.

In the jQuery case:

jQuery is 79 kb plain unzipped.
jQuery is 46 kb minimized unzipped.
jQuery is 26 kb plain gzipped.
jQuery is 13 kb minimized gzipped.

The difference in this case is 33 

Generating email body with wicket

2007-11-30 Thread Pills

Hi everybody,

just a little question: is there a way to use wicket to generate the body of
an html email?

I mean, is it possible to output a page in an another place than the
servlet's response outup (like a ByteArrayOutputStream)?

If yes, then I'll be able to put it to my email's body ;)

Thanks
-- 
View this message in context: 
http://www.nabble.com/Generating-email-body-with-wicket-tf4902162.html#a14042459
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Asynchronous Ajax update of Panels, non-blocking

2007-11-30 Thread axess

Dear Wicket team,

I have a page with Panels that need some more operation time to construct
their model, because of heavy statistics calculation and database
operations. The Panels should render their content when they are done after
some seconds, but the user shouldn't get blocked with using the Page, i.e.
clicking on links, etc.

The problem is, as I understood, Wicket only supports one request at a time.
All clicks are just collected as pending, as can be seen in the Wicket
Ajax Debug window. 

Is there only one Ajax channel? How could I use more? If this isn't
possible, what could be a workaround for the Panels, so that they can
respond immediately on the request, but update the content again when they
have done their calculations?

Kind regards,
Bernd

-- 
View this message in context: 
http://www.nabble.com/Asynchronous-Ajax-update-of-Panels%2C-non-blocking-tf4902158.html#a14042453
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: Wicket-Seam Integration

2007-11-30 Thread Frank Martínez
Hi Cemal,

I am sorry because the delay  I was on vacations until today ..
I will start the thread tomorrow and i will send you the link.
Thanks for your interest.

Sorry about my bad English.

Regards,
Frank.


On Nov 26, 2007 7:34 AM, jweekend [EMAIL PROTECTED] wrote:

 Frank,

 I have passed on a link to this thread (and to your blog) to a people I know
 who use or are interested in Seam.
 Did you start a thread on the Seam forum about your contribution? Could you
 please send me the link (a search for Wicket on the JBoss forums didn't
 return what I was looking for) as I would be interested to see the reaction
 of the Seam community to being given the opportunity to use Wicket instead
 of JSF.


 Regards - Cemal
 http://jWeekend.co.uk http://jWeekend.co.uk



 Frank Martínez-3 wrote:
 
  Hi Cemal,
  Thanks for your interest and words!
 
  I am a Seam developer and I started this project because i am
  interested in use Wicket in the view layer, but i already have a lot
  of the logic in Seam components and EJBs.
 
  I am not an expert Wicket user, but is a fact that Wicket is better
  than JSF in my experience.
 
  Regards,
  Frank.
 
  On Nov 22, 2007 7:01 PM, jweekend [EMAIL PROTECTED] wrote:
 
  Frank,
 
  This is precisely the type of information I was looking for, thank you.
  It
  may also give a few Wicket users more reason to have a play.
 
  My initial thoughts are in line with yours; this will probably be a
  bigger
  help to Seam users - who can now choose between Wicket's excellent and
  easy
  to use/extend features and the more cumbersome (but JEE standard) JSF,
  than to the Wicket users.
 
  However, this new integration possibility is clearly not a bad thing for
  anyone concerned/affected anyway. Eventually, I expect the Wicket
  developers/users will discover/invent ways to benefit from some of Seam's
  features as well, even if it's only for its tight integration with jBPM
  (and
  Drools?) and of course, MDBs and SBs. The webbeans JSR's success will no
  doubt have some influence on this.
 
  Personally, I appreciate having such options (form a Wicket user
  perspective) and thank you for making such an integration/possibility
  available.
 
  Regards - Cemal
  http://jWeekend.co.uk http://jWeekend.co.uk
 
 
 
 
 
  Frank Martínez-3 wrote:
  
   Hi Eelco,
  
   On Nov 22, 2007 2:44 PM, Eelco Hillenius [EMAIL PROTECTED]
   wrote:
   Thanks for explaining. A few questions...
  
Why i do not use proxies:
  1. Seam injected Ejbs and JNDI resources are already proxies, so i
don't want a proxy of the proxy of the proxy ..
  2. Because proxies are not outjection frendly in this case.
  
   Pardon me for maybe not getting it, but I don't really understand how
   outjection would help Wicket developers. After all, everything works
   with regular Java objects, so when I did the first pass of Seam
   integration, I didn't really see the use case for 'exporting back'
   values to the seam context. Isn't it enough to change the values
   (which are passed by reference) if you want to have changes applied? I
   somewhat understand the merit of outjection if you pass around request
   parameters from request to request and if you don't work with a
   construct like Wicket's models, but I'm missing the benefit of
   outjection for Wicket applications.
  
   Would it be possible to give us a short primer on what outjection is
   and what it is good for when building Wicket webapps?
  
  
   Remember that there are many stateful contexts in Seam, not only the
   session or request, but also Business process context and conversation
   context which has no equivalent in other frameworks.
  
   Oujection is the possibility to export references from a component to
   one of the stateful contexts. For example you can export any value
   from a wicket page to a running business process which is accessed by
   other web application too.
  
  3. Because it is important that you can inject/outject null
   references.
  
   Why is that important? If it is memory consumption, those proxies null
   their references at the end of a request.
  
  
   Thanks,
  
   Eelco
  
  
   The injection/outjection of null references importance is not related
   with memory consumption:
   Some times you need to take decisions based on the value of an
   injected resource and sometimes the null value is a meaningful case in
   your logic. Specially if you are using injected values coming form
   other complex components/services. The same applies if you want to
   tell to other external component that it must set to null some shared
   variable.
  
   Maybe wicket-seam integration is more important to Seam users than to
   wicket users :(
   Maybe wicket is very well without seam at all, but i think seam users
   appreciate good alternatives to JSF. And Wicket is a very good
   alternative.
  
   Regards,
   Frank.
  
   --
   Frank D. Martínez M.
   Asimov Technologies Ltda.
   Blog: 

Re: [RFE] HeaderContributor.forFavicon(Reference)

2007-11-30 Thread Ryan Sonnek
See the Wicket FeedResource in wicketstuff for an example.  I'm not
saying it's perfect, but I *do* think it's a step in the right
direction.
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-rome/src/main/java/org/wicketstuff/rome/FeedResource.java


On Nov 30, 2007 2:35 AM, Johan Compagner [EMAIL PROTECTED] wrote:
 I dont think there is any thing magical at the headerresponse if you
 ask me. Do remeber that when doing header responses you have to
 override that method on component anyway and then you are getting that
 headerresponse param.

 But maybe i dont see the complete picture here what you are
 describing. So how does XxxxResource.headerContribution() method look
 like? What params does it get? How does it get the right response
 object? (it has to be an implementation of (Ajax)HeaderResponse)

 Johan


 On 11/29/07, Ryan Sonnek [EMAIL PROTECTED] wrote:
  I don't quite understand this...
  Instead of having to know a ton of classes, you just have to know this
  one.
 
  I really struggled with wicket originally when trying to do these
  header contributions.  I was using the IDE and searching for
  Javascript* or CSS* and nothing relevant came up.  Instead, I had
  to dig through tutorials to find out how to do this.  IMO, it would be
  much more straightforward for users to use a static method on the
  related class instead of knowing about the magical HeaderContributor
  object...
 
  Just my two cents...
 

  -
  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]



Re: Extending parent of the parent markup

2007-11-30 Thread buealb

hi,

jeje, We really have AbstractTableView, but the problem is another.
We have a hierarchy like this:

View (with markup)
  |-- AbstractTableView
  |-- TableView (with markup)
   | -- SearchView
| -- MyView 

Where is in MyView where I want to redefine the markup. But I don't want to
extend the markup of TableView, I want to extend directly the markup of the
View. I would like to specify in MyView that is extending the markup of the
View.
The solution of Igor is the solution that now we are using, but I don't
really like very much, because I have to repeat the markup of the view and
the markup of the TableView in MyView. And only we want to change the markup
of the TableView.

I don't know if you are understand me... :-((

But thanks also.




Alex Objelean wrote:
 
 I think that you have a design problem. You should pull up the common
 functionality to an abstract class (AbstractTableView) which extends View,
 and both TableView  MyTableView should extend the AbstractTableView.
 
 Regards, 
 Alex.
 
 
 buealb wrote:
 
 Because  I have a lot of functionality in TableView that I want to use... 
 
 
 Alex Objelean wrote:
 
 Since you want to redefine the markup of the TableView.html, why just
 not to extend the View.html?
 
 
 buealb wrote:
 
 Hi,
 
 I have this situation:
 
 View.html
 
 border
 ..
child/
 ..
 /border
 
 
 TableView.html (extends of View)
 
 extend
 ..
child/
 ..
 /extend
 
 
 MyTableView.html (extends of TableView)
 
 extend
 ..
 /extend
 
 In this case, MyTableView is extending by default the markup of
 TableView, because I'm extending of TableView.
 But in other cases, (MyTableView2) I would like to extend of TableView,
 but I would like to extend the markup of the View directly. I don't
 want to use the markup of the TableView, if is necessary I'll redefine
 the markup of the TableView in my MyTableView2...
 
 Do you understand me? Are there a solution for that?
 
 Thanks
 
 
 
 
 
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Extending-parent-of-the-parent-markup-tf4895764.html#a14042372
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Binding application to another thred

2007-11-30 Thread Vit Rozkovec

Good day,
when I create new thread, what is the proper way of binding application 
to this new thread?


Vitek


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



Re: [RFE] packed JS in DEPLOYMENT mode.

2007-11-30 Thread David Bernard

What do you mean by included resources ?
By default every js and css under src/main/resources, src/main/webapp, 
src/main/js are minified. (using the resources option is for exceptionnal case)

Contact me privatly for questions about the plugin (not related to wicket).

Alex Objelean wrote:

David, what is the best practice to specify the order of included resources?

Thank you!


David Bernard-2 wrote:

You could aggregate every type of resources.

Alex Objelean wrote:

Very interesting. Would be nice to have also aggregate css.

Regards, 
Alex.



David Bernard-2 wrote:

If you want you could use the yuicompressor-maven-plugin to minified
(more than just strip whitespace) at build time.
http://alchim.sf.net/yuicompressor-maven-plugin
Other features:
* aggregate js
* minified css

So you could test/run with minified in development and/or deployment
mode

Disclamer, I'm the author of the plugin, but not of the compressor.

Regards

-
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]



Changing a ResourceLink's resource.

2007-11-30 Thread mbelarbi

I have a:
ResourceLink attachment = new ResourceLink(attachmentLink, source);
add(attachment);

Where source is a Resource.

How do i change this ResourceLink's resource to another resource?
-- 
View this message in context: 
http://www.nabble.com/Changing-a-ResourceLink%27s-resource.-tf4902160.html#a14042457
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: Changing a ResourceLink's resource.

2007-11-30 Thread mbelarbi

My ResourceLink is declared and initiallized, otherwise wicket will complain
about me adding a component to markup which is null etc... so i have to
declare it and initialize it. But later on the source is modified, but when
clicking on the ResourceLink it is not proving the newly changed resource.
So i was looking for maybe a ResourceLink.setResource() method to change the
resource.



mbelarbi wrote:
 
 I have a:
 ResourceLink attachment = new ResourceLink(attachmentLink, source);
 add(attachment);
 
 Where source is a Resource.
 
 How do i change this ResourceLink's resource to another resource?
 

-- 
View this message in context: 
http://www.nabble.com/Changing-a-ResourceLink%27s-resource.-tf4902160.html#a14042465
Sent from the Wicket - User mailing list archive at Nabble.com.


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



SV: defaultNullLabel()

2007-11-30 Thread Alexander Landsnes Keül
I have something of the same issue, if you have a value of  in an 
AjaxEditableLabel it's unclickable. It's not removed from the markup, I just 
can't click it. Probably because the Label is 0 pixels wide.

For me the solution was to have ... if the String was null, and have all 
getters translate  into null. A pain, but it works.

Alex

-Opprinnelig melding-
Fra: Roy van Rijn [mailto:[EMAIL PROTECTED] 
Sendt: 30. november 2007 13:55
Til: users@wicket.apache.org
Emne: Re: defaultNullLabel()

It doesn't look like the defaultNullLabel() can cause such a problem..
Have you tried your code without overwriting the default label?

Also, when you create your RLabel you use the string label, is this
on purpose or did you mean to use componentId.
(the original code has:Label label = new Label(componentId, model))

Roy

On 11/30/07, leonardouit [EMAIL PROTECTED] wrote:

 Hi here.

 I have a class that extends AjaxEditableLabel. The overriden methods
 newEditor and newLabel look as following:

protected FormComponent newEditor(MarkupContainer parent, String
 componentId, IModel model){

RTextField editor =
(fieldType == null) ?
editor = new RTextField(componentId, model, 
 String.class){
protected void onComponentTag(ComponentTag 
 tag) {
super.onComponentTag(tag);
add(new 
 SimpleAttributeModifier(class, e0));
}
} :
new RTextField(componentId, model, fieldType){
protected void onComponentTag(ComponentTag 
 tag) {
super.onComponentTag(tag);
add(new 
 SimpleAttributeModifier(class, e0));
}
};

editor.setOutputMarkupId(true);
editor.setVisible(false);
editor.add(new EditorAjaxBehavior());
return editor;
}

protected Component newLabel(MarkupContainer parent, String 
 componentId,
 IModel model){

RLabel label = new RLabel(label, model)
{
private static final long serialVersionUID = 1L;

protected void onComponentTagBody
(MarkupStream markupStream, ComponentTag openTag)
{
if (getModelObject() == null) {
replaceComponentTagBody(markupStream, 
 openTag, defaultNullLabel());
}
else
{
super.onComponentTagBody(markupStream, 
 openTag);
}
}
};
label.setOutputMarkupId(true);
label.add(new LabelAjaxBehavior(onclick));
return label;
}

 Note that if the model, on newLabel, is null, then it uses
 defaultNullLabel(), which defaults to the ... string. I believed that I
 could override that method to print whatever I wanted to, including the
 empty string . However, if a have something like

@Override
protected String defaultNullLabel() {
return  ;
}

 the cell that was meant to be editable, after clicking in and then clicking
 out, become NOT EDITABLE!

 Any help?
 --
 View this message in context: 
 http://www.nabble.com/defaultNullLabel%28%29-tf4904412.html#a14046749
 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]


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



Re: Ajax Memory Leak in IE

2007-11-30 Thread Antoine Angénieux
To be a bit more explicit : I checked in the Ajax Debug window, the Ajax 
called is made, the response is received, but then I have the following 
error message :


INFO: Response parsed. Now invoking steps...
ERROR: Error while parsing response: Erreur d'exécution inconnue
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...

This only happens in IE 6 and 7, but works perfectly well in Firefox 2.0...

Any idea? I guess it is related to the recent (yesterday and today) 
modifications in wicket-ajax.js.


Matej, do you have any idea ?

Thanks guys !

Antoine.

Below is a copy of the full log in the debug window :

INFO: focus set on pageLink41
INFO:
INFO: Initiating Ajax GET request on 
?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:navigation:1:pageLink::IBehaviorListener:0:random=0.948158990539

INFO: Invoking pre-call handler(s)...
INFO: Received ajax response (5507 characters)
INFO:
?xml version=1.0 
encoding=UTF-8?ajax-responseheader-contribution encoding=wicket1 
![CDATA[head xmlns:wicket=http://wicket.apache.org;script 
type=text/javascript 
src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script 

script type=text/javascript 
src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script 

script type=text/javascript 
src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script 

script type=text/javascript 
id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/

wicketAjaxDebugEnable=true;
/*--]^]^*//script

/head]]/header-contributioncomponent id=table36 ![CDATA[table 
id=table36 cellpadding=0 cellspacing=0

thead


tr class=navigation
td colspan=4
div style=float: left; 
class=navigatorLabelspanAffiche 6 à 8 sur 8/span/div
div style=text-align: right; class=navigatorspan 
id=navigator37
a id=first38 onclick=var 
wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:first::IBehaviorListener:0:-1',null,null, 
function() {return Wicket.$$(this)}.bind(this));return !wcall; 
href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:first::ILinkListener::/a 
a id=prev39 onclick=var 
wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:prev::IBehaviorListener:0:-1',null,null, 
function() {return Wicket.$$(this)}.bind(this));return !wcall; 
href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:prev::ILinkListener::/a 


span
  a id=pageLink180 onclick=var 
wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:navigation:0:pageLink::IBehaviorListener:0:-1',null,null, 
function() {return Wicket.$$(this)}.bind(this));return !wcall; 
href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:1:toolbar:span:navigator:navigation:0:pageLink::ILinkListener::span1/span/a 


/spanspan
  span id=pageLink181emspan2/span/em/span
/span
span id=next42em/em/span span 
id=last43em/em/span

  /span/div
/td
/tr



tr class=headers

th class=wicket_orderNonea id=orderByLink44 
onclick=var 
wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:1:header:orderByLink::IBehaviorListener:1:-1',null,null, 
function() {return Wicket.$$(this)}.bind(this));return !wcall; 
class=wicket_orderNone 
href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:1:header:orderByLink::ILinkListener::spanCode/span/a/th 



th class=wicket_orderNonea id=orderByLink45 
onclick=var 
wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:2:header:orderByLink::IBehaviorListener:1:-1',null,null, 
function() {return Wicket.$$(this)}.bind(this));return !wcall; 
class=wicket_orderNone 
href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:2:header:orderByLink::ILinkListener::spanDate 
de procédure/span/a/th


th class=wicket_orderNonea id=orderByLink46 
onclick=var 
wcall=wicketAjaxGet('?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:3:header:orderByLink::IBehaviorListener:1:-1',null,null, 
function() {return Wicket.$$(this)}.bind(this));return !wcall; 
class=wicket_orderNone 
href=?wicket:interface=:1:portletFu1:fu1:table:topToolbars:2:toolbar:headers:3:header:orderByLink::ILinkListener::spanEchéance/span/a/th 



thspan /span/th

/tr


/thead
tbody
tr class=even
td
span
a 
href=?wicket:interface=:1:portletFu1:fu1:table:rows:9:cells:1:cell:link::ILinkListener::span 


img src=img/patients/crf.gif border=0/spanBMA97/span
/span/a
/span
/tdtd
span29/09/2007/span
/tdtd
span07/04/2008/span
/tdtd
span
a