Re: [Wicket-user] DataTable with column styles and widths

2006-10-31 Thread Jan Mikkelsen
I have run into the same requirement and would also like a more elegant 
solution.
Is something in the works or is there more important stuff to do :) ?
Personally I prefer Niels' approach because it is very straightforward.

Thanks,
/Jan


Igor Vaynberg wrote:
 i think what would be even better is if icolumn had add(IBehavior) 
 that would get attached to the header

 right now what you have to do is something like this

 new MyColumn() {
  Component getHeader() {
 Component c= super.getHeader();
 c.add(new MyAttributeModifier());
}
 }

 which is tricky for newbies to figure out.

 -igor



 On 10/14/06, * Niels Bo* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Hi
  
 I have this suggestion for an extension to the DataTable component
 that will make it easier to set width and ccs styles individually
 on each column.
  
 It involves these files (attached):
  
  IColumn.java - new getWidth() and getStyleName()
  AbstractColumn.java - implement default get/set Width and StyleName
  DataTable.html - added colgroupsection
  DataTable.java - added a few lines.
  
 Usage like:
   IColumn column = new PropetyColumn(...);
   column.setStyleName(rightadjust);
   column.setWidth(200);
  
 Would this be a useful improvement for other Wicket users?
  
 Niels

 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user




 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Eclipse plugins - Hibernate tools / Wicket Bench conflict

2006-08-27 Thread Jan Mikkelsen
Has anyone experienced problems with the Hibernate tools plugin after
installing Wicket Bench? In my case, the Hibernate tools plugin seems to
have disappeared. And I have tried -clean.

Any ideas?


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket/Tomcat configuration: Where is System.out ???

2006-04-01 Thread Jan Mikkelsen
Hi Frank

I *think* system.out/err goes to catalina.out.

If you are using log4j, but happen to write a few system.outs, you might
want to do something like this in your Application class:

/* redirect stdout/stderr to log4j */
System.setOut(new PrintStream(new 
LoggingOutputStream(Category.getInstance(sysout), Priority.INFO), true));
System.setErr(new PrintStream(new 
LoggingOutputStream(Category.getInstance(syserr), Priority.WARN), true));

LoggingOutputStream is attached to this mail.

/jan

 
 To debug an application I've inserted a System.out.println command.
 Where is System.out when I'm running Wicket on Tomcat?  Is it captured
 by some special Wicket logfile (I can't find any)?  It doesn't seem to
 be going to any of the Tomcat logfiles that I can see, nor to the
 console window (unless I'm just missing it).\
  
 Is this something I have to configure in Tomcat to see the output of
 System.out?



LoggingOutputStream.java 
Description: Binary data


Re: [Wicket-user] VOTE

2006-02-20 Thread Jan Mikkelsen
My vote goes to 1.

 
 1. Give me the constructor change and the Java 5 functionality in one
 pass (Wicket 2.0)
 2. Do the constructor change in a seperate release (Wicket 1.3) and
 put Java 5 in the next (Wicket 2.0)
 3. I don't want either one and I want to stay on Wicket 1.2.
 



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Unit Tests very tough

2005-10-05 Thread Jan Mikkelsen
Hi

In future Wicket projects, we will probably do Function testing with
either DDSteps (which is based on JWebUnit, DDUnit, etc) or Selenium. I
found a nice Selenium testbuilder plugin for Firefox today.

Unit tests are something else of course, but we may even use DDSteps for
that too. Either that or limiting unit tests to the business logic layer.

/jan



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Code generator / Prototype generator

2005-10-04 Thread Jan Mikkelsen
I think code generation is a good idea. If the code generator and a set
of templates evolved in parallel with the Wicket framework, so that they
reflected best practice, that might be more powerful than the Kick start
project, I think. 
Another thing is having a framework that relies heavily on doing magic
stuff if you follow (simple) conventions. This, I believe is what RoR
has pulled off with success. I'm not sure what it is about the Java
language that prevents us doing the same. 

Jan Mikkelsen

 Hi!
 
 Today i read a pretty much interesting article about Ruby on Rails (RoR).
 First things first. I don't like ruby.
 But: The Aproach of Ruby on Rails is very impressing and provides a
 effective way to write standard Web-Apps.
 So i like the way how wicket works much. And now i am thinking about to
 adopt some ideas of Ruby on Rails to wicket.
 The most interesting and time saving aspect of RoR is that it has mayn
 scripts to automaticly generate Formulars and Lists so that you can deal
 with Datas which mostly comes from a Database.
 I think a similary tool could be made for Wicket.
 The features i think of are somehting likt this:
 -Gernation of Formulars and Lists from the Strucure of a certain
 Database-Table (Or JavaBean Class).
   Which includes the generation of: Wicket-Class, Wicket-HTML-File and
 that all already ready with all necessary connections and handling to
 the database or the JavaBean object.
 
 This generated Prototype can then be customized to the needs of the
 specific project.
 But mostly this is not even neccessary if the generator generates stuff
 that fits on most common use casses (Of course with pretty basic User
 Interface :-)).
 
 So i think all this can be pretty easy implemented (It's a lot of work,
 but the principle is pretty clear and easy i think).
 
 My question now to you guys is:
 1. Is already someone writing such a Generator?
 2. What do you guys think about this idea? (Please stay on the way of
 what the tool should be able to do. Please no discussion about how to
 implement it bc that comes later!)
 
 Thanks,
 Dave
 
 -- 
 Rent-a-Developer
 David Liebeherr
 Tel.: 0721 3504990
 mail: [EMAIL PROTECTED]
 
 SUN Certified Java Associate (SCJA)
 
 
 
 
 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Contribution to wicket-extensions

2005-07-22 Thread Jan Mikkelsen








I would like to contribute a Danish translation for
the datepicker of wicket-extensions. How exactly do I do that, assuming of
course, that is ok with you?



Jan








Re: [Wicket-user] RAD component integration

2005-07-21 Thread Jan Mikkelsen
It is really cool stuff you and Phil are discussing! With something like
this Wicket will definitely be a very productive framework to use.

I think your HTML example is just right. In one of my applications I
have built something similar, only less sophisticated and done the hard
way :) Having the filtering integrated in the table makes it very
compact, nice.

A couple of questions:
I think you should be able to have some control over the layout of
lists. Like Phil suggests. Do you agree?
Also: Would it be possible to extend/modify/replace default edit forms?
A lot of times this is not going to be necessary, but I think you need
to have the ability. 
When you clear bookmarks, is that per-class or all objects regardless of
class?

- Jan

 Congrats to Phil on the unveiling of his GridView panel.
 
 Please look at the attached HTML file.  Are there other/better ways to
 easily relate persistent objects in HTML?  That is, other than using
 bookmarks?  This is the best/simplest idea that I can think of so far
 given that HTML doesn't have nice drag-n-drop capability.
 
 I think bookmarked instances are important for our generic RAD
 components to support so we can mix-and-match RAD panels between
 different developers.  RAD edit panels can put bookmarked instances into
 dropdowns for easily creating relationshipse between objects.
 
 Thoughts?  Brick bats?  Go for it?
 
 - Jonathan
 
 
 
 __
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.
 
 Katun Corporation -- www.katun.com 
 _




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


RE: [Wicket-user] RAD component integration

2005-07-21 Thread Jan Mikkelsen
Well, in that case - I can't wait to get my hands on it :)

Are you and Phil going to work together on this? I guess more
brainstorming is required, right?

I would love to help if I can, with testing, feedback, etc. My vacation
is coming up though.

Jan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan
Carlson
Sent: 21. juli 2005 15:52
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] RAD component integration

 I think you should be able to have some control over the layout 
 of lists. Like Phil suggests. Do you agree?

I definitely agree.  The components I've built allow you to change the
order and how a property is rendered.

 Would it be possible to extend/modify/replace default edit 
 forms?  A lot of times this is not going to be necessary, 
 but I think you need to have the ability. 

In the stuff I've done I try to keep in mind extendability (and
replacing default components with your own).

 When you clear bookmarks, is that per-class or all objects 
 regardless of class?

I think it should only be for that class.  I envision there being a
different BookmarkList (hypothetical name right now) instance for each
class.



 [EMAIL PROTECTED] 2005-07-21 2:48:42 AM 
It is really cool stuff you and Phil are discussing! With something
like
this Wicket will definitely be a very productive framework to use.

I think your HTML example is just right. In one of my applications I
have built something similar, only less sophisticated and done the
hard
way :) Having the filtering integrated in the table makes it very
compact, nice.

A couple of questions:
I think you should be able to have some control over the layout of
lists. Like Phil suggests. Do you agree?
Also: Would it be possible to extend/modify/replace default edit
forms?
A lot of times this is not going to be necessary, but I think you need
to have the ability. 
When you clear bookmarks, is that per-class or all objects regardless
of
class?

- Jan

 Congrats to Phil on the unveiling of his GridView panel.
 
 Please look at the attached HTML file.  Are there other/better ways
to
 easily relate persistent objects in HTML?  That is, other than using
 bookmarks?  This is the best/simplest idea that I can think of so
far
 given that HTML doesn't have nice drag-n-drop capability.
 
 I think bookmarked instances are important for our generic RAD
 components to support so we can mix-and-match RAD panels between
 different developers.  RAD edit panels can put bookmarked instances
into
 dropdowns for easily creating relationshipse between objects.
 
 Thoughts?  Brick bats?  Go for it?
 
 - Jonathan
 
 
 

__
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please
notify
 the system manager.
 
 Katun Corporation -- www.katun.com 

_




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click 
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user 

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

Katun Corporation -- www.katun.com 
_


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything 

RE: [Wicket-user] javascript tree-component

2005-07-20 Thread Jan Mikkelsen
Thanks Igor!

It worked like a charm.

New class:

public class HiddenTextField extends TextField {
public HiddenTextField(final String id) {
super(id);
}

public HiddenTextField(final String id, IModel model) {
super(id, model);
}

protected final void onComponentTag(final ComponentTag tag) {
checkComponentTag(tag, input);
checkComponentTagAttribute(tag, type, hidden);
super.onComponentTag(tag);
}
}

---
Form:
treeStateModel = new Model(new String());
add(new HiddenTextField(treeState, treeStateModel));

onSubmit:
String treeState = (String) treeStateModel.getObject(null);

...
function getTreeValues() {
var treeState = document.getElementById(treeState);
treeState.value = tree.getAllChecked();
document.frm.submit();
}

// --
/SCRIPT

form name=frm wicket:id=detailForm onSubmit=getTreeValues();
input wicket:id=treeState id=treeState type=hidden value=/
...

Jan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor
Vaynberg
Sent: 20. juli 2005 02:41
To: wicket-user@lists.sourceforge.net
Subject: RE: [Wicket-user] javascript tree-component

Mod textfield to work with input type=hidden instead of input
type=text and have your javascript update that value any time there is
a
change. Quick and dirty ;)

Igor


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jan
Mikkelsen
Sent: Tuesday, July 19, 2005 6:31 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] javascript tree-component

Well, I have started using dhtmlxTree. I do need a solution this week.
What
I can't figure out is how to transfer tree state (checkboxes)  from
javascript to Wicket. I can get the state as a single string by calling
a
javascript function, but how do I transfer it to Wicket? A quick and
dirty
solution is fine :)

Jan



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from
IBM. Find simple to follow Roadmaps, straightforward articles,
informative
Webcasts and more! Get everything you need to get up to speed, fast.
http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user






---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] autoAdd problem with HEAD

2005-07-19 Thread Jan Mikkelsen








Hi



I have a pretty simple program with a border (as
described on wiki: How to create
consistent page layouts using Borders). On one page there is a
button that makes the server calculate some stuff and just stay on the page to
display the results. After upgrading to HEAD version, I am getting this error: 



wicket.WicketRuntimeException: If the root exception says something like A child with id '_header' already existsthan you most likely forgot to override autoAdd() in your bordered page component.
 at wicket.markup.html.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:82)
 at wicket.MarkupContainer.renderNext(MarkupContainer.java:886)
 at wicket.MarkupContainer.renderAll(MarkupContainer.java:780)
 at wicket.Page.onRender(Page.java:742)
 at wicket.Component.render(Component.java:1074)
 at wicket.Page.doRender(Page.java:480)
 at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:207)
 at wicket.RequestCycle.respond(RequestCycle.java:771)
 at wicket.RequestCycle.request(RequestCycle.java:406)
 at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:265)
 at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:289)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
 at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
 at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
 at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
 at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
 at org.mortbay.http.HttpServer.service(HttpServer.java:879)
 at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
 at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
 at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
 at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
 at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
 at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
Caused by: java.lang.IllegalArgumentException: A child with id '_header' already exists:
[MarkupContainer [Component id = border, page = com.jatak.webtools.web.gui.MemberPage, path = 3:border.SimpleBorder, isVisible = true, isVersioned = true]]
 at wicket.MarkupContainer.add(MarkupContainer.java:138)
 at com.jatak.webtools.web.gui.SimpleBorderedPage.add(SimpleBorderedPage.java:46)
 at wicket.MarkupContainer.autoAdd(MarkupContainer.java:181)
 at wicket.markup.html.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:78)



Do I need to override autoAdd() somewhere? If so,
where and how? 



I tried the re-use strategy in MarkupContainer,
but with the same results.



Regards,

Jan Mikkelsen








RE: [Wicket-user] autoAdd problem with HEAD

2005-07-19 Thread Jan Mikkelsen
Thanks Eelco!

I have tried it now. I'm getting this error:
wicket.markup.MarkupException: Component at markup stream index 1 failed
to advance the markup stream
[markup =
file:/F:/projects/jatak/tools/webtools/eclipse/com/jatak/webtools/web/gu
i/MemberPage.html, index = 1, current = 'null' (line 0, column 0)]
at
wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:277)
at wicket.MarkupContainer.renderAll(MarkupContainer.java:783)
at wicket.Page.onRender(Page.java:742)
at wicket.Component.render(Component.java:1074)
at wicket.Page.doRender(Page.java:480)
at
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:207
)
at wicket.RequestCycle.respond(RequestCycle.java:771)
at wicket.RequestCycle.request(RequestCycle.java:406)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:265)
at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:289)

Can you see what that is about?

Jan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eelco
Hillenius
Sent: 19. juli 2005 10:27
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] autoAdd problem with HEAD

Yep. As we're doing header contributions in HEAD/ 1.1, we're depending 
on the autoAdd feature. Add this:

/**
* @see wicket.MarkupContainer#autoAdd(wicket.Component)
*/
public boolean autoAdd(Component component)
{
return border.autoAdd(component);
}

to SimpleBorderedPage

I'll update the WIKI,

Eelco


Jan Mikkelsen wrote:

 Hi

 I have a pretty simple program with a border (as described on wiki: 
 How to create consistent page layouts using Borders 

http://wicket.sourceforge.net/wiki/index.php/Consistent_page_layout_usi
ng_borders). 
 On one page there is a button that makes the server calculate some 
 stuff and just stay on the page to display the results. After 
 upgrading to HEAD version, I am getting this error:

wicket.WicketRuntimeException: If the root exception says something
like A child with id '_header' already existsthan you most likely
forgot to override autoAdd() in your bordered page component.

at
wicket.markup.html.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:82
)

at wicket.MarkupContainer.renderNext(MarkupContainer.java:886)

at wicket.MarkupContainer.renderAll(MarkupContainer.java:780)

at wicket.Page.onRender(Page.java:742)

at wicket.Component.render(Component.java:1074)

at wicket.Page.doRender(Page.java:480)

at
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:207
)

at wicket.RequestCycle.respond(RequestCycle.java:771)

at wicket.RequestCycle.request(RequestCycle.java:406)

at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:265)

at
wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:289)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)

at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
andler.java:294)

at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)

at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
text.java:525)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)

at org.mortbay.http.HttpServer.service(HttpServer.java:879)

at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)

at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)

at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)

at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218
)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)

at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)

Caused by: java.lang.IllegalArgumentException: A child with id
'_header' already exists:

[MarkupContainer [Component id = border, page =
com.jatak.webtools.web.gui.MemberPage, path = 3:border.SimpleBorder,
isVisible = true, isVersioned = true]]

at wicket.MarkupContainer.add(MarkupContainer.java:138)

at
com.jatak.webtools.web.gui.SimpleBorderedPage.add(SimpleBorderedPage.jav
a:46)

at wicket.MarkupContainer.autoAdd(MarkupContainer.java:181)

at
wicket.markup.html.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:78
)

 Do I need to override autoAdd() somewhere? If so, where and how?

 I tried the re-use strategy in MarkupContainer, but with the same 
 results.

 Regards,

 Jan Mikkelsen




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id

RE: [Wicket-user] autoAdd problem with HEAD

2005-07-19 Thread Jan Mikkelsen
I converted my program to using markup inheritance - very nice indeed!

But I still have a similar problem:

wicket.markup.MarkupException: Component at markup stream index 0 failed
to advance the markup stream
[markup =
file:/F:/projects/jatak/tools/webtools/eclipse/com/jatak/webtools/web/gu
i/MemberPage.html, index = 0, current = 'wicket:extend' (line 3,
column 3)]
at
wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:277)
at wicket.MarkupContainer.renderAll(MarkupContainer.java:783)
at wicket.Page.onRender(Page.java:742)
at wicket.Component.render(Component.java:1074)
at wicket.Page.doRender(Page.java:480)
at
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:207
)
at wicket.RequestCycle.respond(RequestCycle.java:771)
at wicket.RequestCycle.request(RequestCycle.java:406)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:265)
at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:289)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Any ideas? I'm going to try and reduce my page to the minimum to see if
that helps.

Jan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eelco
Hillenius
Sent: 19. juli 2005 10:57
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] autoAdd problem with HEAD

Hmmm, no. I need more details.

Another thing you can consider is using markup inheritence (Phil 
described that here: http://jroller.com/page/pKulak/20050712, and there 
is the template example in wicket-examples HEAD), which is much easier 
to use.

Eelco


Jan Mikkelsen wrote:

Thanks Eelco!

I have tried it now. I'm getting this error:
wicket.markup.MarkupException: Component at markup stream index 1
failed
to advance the markup stream
[markup =
file:/F:/projects/jatak/tools/webtools/eclipse/com/jatak/webtools/web/g
u
i/MemberPage.html, index = 1, current = 'null' (line 0, column 0)]
at
wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:277)
at wicket.MarkupContainer.renderAll(MarkupContainer.java:783)
at wicket.Page.onRender(Page.java:742)
at wicket.Component.render(Component.java:1074)
at wicket.Page.doRender(Page.java:480)
at
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:20
7
)
at wicket.RequestCycle.respond(RequestCycle.java:771)
at wicket.RequestCycle.request(RequestCycle.java:406)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:265)
at
wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:289)

Can you see what that is about?

Jan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eelco
Hillenius
Sent: 19. juli 2005 10:27
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] autoAdd problem with HEAD

Yep. As we're doing header contributions in HEAD/ 1.1, we're depending 
on the autoAdd feature. Add this:

/**
* @see wicket.MarkupContainer#autoAdd(wicket.Component)
*/
public boolean autoAdd(Component component)
{
return border.autoAdd(component);
}

to SimpleBorderedPage

I'll update the WIKI,

Eelco


Jan Mikkelsen wrote:

  

Hi

I have a pretty simple program with a border (as described on wiki: 
How to create consistent page layouts using Borders 



http://wicket.sourceforge.net/wiki/index.php/Consistent_page_layout_us
i
ng_borders). 
  

On one page there is a button that makes the server calculate some 
stuff and just stay on the page to display the results. After 
upgrading to HEAD version, I am getting this error:

wicket.WicketRuntimeException: If the root exception says something


like A child with id '_header' already existsthan you most likely
forgot to override autoAdd() in your bordered page component.
  

   at


wicket.markup.html.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:8
2
)
  

   at wicket.MarkupContainer.renderNext(MarkupContainer.java:886)

   at wicket.MarkupContainer.renderAll(MarkupContainer.java:780)

   at wicket.Page.onRender(Page.java:742)

   at wicket.Component.render(Component.java:1074)

   at wicket.Page.doRender(Page.java:480)

   at


wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:20
7
)
  

   at wicket.RequestCycle.respond(RequestCycle.java:771)

   at wicket.RequestCycle.request(RequestCycle.java:406)

   at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:265)

   at


wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:289)
  

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

   at


org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
  

   at


org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplication
H
andler.java:294)
  

   at


org.mortbay.jetty.servlet.ServletHandler.handle

[Wicket-user] DropdownChoice problem solved

2005-07-19 Thread Jan Mikkelsen








Hi 



I have been struggling with a problem with dropdown
boxes after upgrading wicket from 1.0rcX to HEAD. None of my dropdown boxes
showed any items. I have fixed it now by changing:

select wicket:id=startDay/

To:

select
wicket:id=startDay/select



Maybe this is helpful to somebody else J



Jan Mikkelsen








RE: [Wicket-user] autoAdd problem with HEAD

2005-07-19 Thread Jan Mikkelsen
Please forget about this: Component at markup stream index 0
Failed to advance the markup stream
I made a stupid mistake. When I fixed it everything was fine.

Jan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jan
Mikkelsen
Sent: 19. juli 2005 12:32
To: wicket-user@lists.sourceforge.net
Subject: RE: [Wicket-user] autoAdd problem with HEAD

Yes, actually I'm using these components:
MenuPanel, LoginPanel and LogoutPanel. I also have my own version of
SignInPanel, plus a SignOutPanel. I have attached the code, and also the
code for the page that causes problems: MemberPage.

Jan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eelco
Hillenius
Sent: 19. juli 2005 12:11
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] autoAdd problem with HEAD

Do you use a custom component (it looks like that)?

Could you provide us with more details/ code?

Eelco

Jan Mikkelsen wrote:

I converted my program to using markup inheritance - very nice indeed!

But I still have a similar problem:

wicket.markup.MarkupException: Component at markup stream index 0
failed
to advance the markup stream
[markup =
file:/F:/projects/jatak/tools/webtools/eclipse/com/jatak/webtools/web/g
u
i/MemberPage.html, index = 0, current = 'wicket:extend' (line 3,
column 3)]
at
wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:277)
at wicket.MarkupContainer.renderAll(MarkupContainer.java:783)
at wicket.Page.onRender(Page.java:742)
at wicket.Component.render(Component.java:1074)
at wicket.Page.doRender(Page.java:480)
at
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:20
7
)
at wicket.RequestCycle.respond(RequestCycle.java:771)
at wicket.RequestCycle.request(RequestCycle.java:406)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:265)
at
wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:289)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Any ideas? I'm going to try and reduce my page to the minimum to see if
that helps.

Jan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eelco
Hillenius
Sent: 19. juli 2005 10:57
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] autoAdd problem with HEAD

Hmmm, no. I need more details.

Another thing you can consider is using markup inheritence (Phil 
described that here: http://jroller.com/page/pKulak/20050712, and there

is the template example in wicket-examples HEAD), which is much easier 
to use.

Eelco


Jan Mikkelsen wrote:

  

Thanks Eelco!

I have tried it now. I'm getting this error:
wicket.markup.MarkupException: Component at markup stream index 1


failed
  

to advance the markup stream
[markup =
file:/F:/projects/jatak/tools/webtools/eclipse/com/jatak/webtools/web/
g


u
  

i/MemberPage.html, index = 1, current = 'null' (line 0, column 0)]
   at
wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:277)
   at wicket.MarkupContainer.renderAll(MarkupContainer.java:783)
   at wicket.Page.onRender(Page.java:742)
   at wicket.Component.render(Component.java:1074)
   at wicket.Page.doRender(Page.java:480)
   at
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:2
0


7
  

)
   at wicket.RequestCycle.respond(RequestCycle.java:771)
   at wicket.RequestCycle.request(RequestCycle.java:406)
   at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:265)
   at


wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:289)
  

Can you see what that is about?

Jan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eelco
Hillenius
Sent: 19. juli 2005 10:27
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] autoAdd problem with HEAD

Yep. As we're doing header contributions in HEAD/ 1.1, we're depending

on the autoAdd feature. Add this:

/**
* @see wicket.MarkupContainer#autoAdd(wicket.Component)
*/
public boolean autoAdd(Component component)
{
return border.autoAdd(component);
}

to SimpleBorderedPage

I'll update the WIKI,

Eelco


Jan Mikkelsen wrote:

 



Hi

I have a pretty simple program with a border (as described on wiki: 
How to create consistent page layouts using Borders 

   

  

http://wicket.sourceforge.net/wiki/index.php/Consistent_page_layout_u
s


i
  

ng_borders). 
 



On one page there is a button that makes the server calculate some 
stuff and just stay on the page to display the results. After 
upgrading to HEAD version, I am getting this error:

wicket.WicketRuntimeException: If the root exception says something
   

  

like A child with id '_header' already existsthan you most likely
forgot to override autoAdd() in your bordered page component

RE: [Wicket-user] javascript tree-component

2005-07-19 Thread Jan Mikkelsen
Darn, no I have not found other options, but I can give it another try
tonight or tomorrow. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eelco
Hillenius
Sent: 19. juli 2005 18:17
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] javascript tree-component

Looks good, but it is GPL. That means that we can't ship it with Wicket.

Any other options?

Eelco


Jan Mikkelsen wrote:

Hi Eelco and Frank 

I don't that would work for me, as the tree does not support
checkboxes,
does it?
I'm looking at dhtmlxTree (http://scbr.com/docs/products/dhtmlxTree/)
which does support checkboxes. It is free in the standard edition, and
it looks pretty good. Initialisation is a lot like the Qooxdoo tree. 

I'm not sure yet, but I might build a very simple component this week,
because I may need it. I've done the same in Struts and I'm sure its
easier in Wicket. Or maybe we should make this a cooperative effort,
Frank? ;)

Jan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eelco
Hillenius
Sent: 19. juli 2005 17:24
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] javascript tree-component

We can start anew :)

Basically, we can conclude that Tree works basically, but that it is
not

very usefull for embedding in forms yet. To be usefull, it has to be a 
Javascript tree, that doesn't do roundtrips all the time. Actually, it 
would be perfect if it is ajax enabled too, so that you generate 
roundtrips when you select a node without having to update your whole 
form/ page.

With 1.1/ HEAD, we can now create such javascript enabled components
(no

ajax yet, though we're working on that too). The only thing left to do 
now is to actually build the basterd.

I wouldn't like to build a javascript/ DHTML tree from scratch, but 
rather reuse a good one. From the trees I found, I like the Qooxdoo
tree

(http://qooxdoo.sourceforge.net/build/public/test/user/Tree_1.html)
best.

On the Java side of things, we need to have another tree class (either 
extending from Tree or from AbstractTree), which contributes any 
javascript/ css references to the header, and which writes out the 
initialization code nescesary for the tree. Which in the case of the 
Qooxdoo tree looks like:

  root = t;
  var te1 = new QxTreeFolder(Desktop, icons/16/desktop.png,
icons/16/desktop.png);
  t.add(te1);
  desktop = te1;
  var te1_1 = new QxTreeFolder(Eigene Dateien);
  var te1_2 = new QxTreeFolder(Arbeitsplatz);
  var te1_3 = new QxTreeFolder(Netzwerkumgebung);
  var te1_4 = new QxTreeFolder(Papierkorb);
  te1.add(te1_1, te1_2, te1_3, te1_4);
  var te1_2_1 = new QxTreeFile(Windows (C:),
icons/16/blockdevice.png);
  var te1_2_2 = new QxTreeFile(Dokumente (D:),
icons/16/blockdevice.png);


Any people having experience with DHTML tree's? Would Qooxdoo be a good

choice?

Regards,

Eelco


frank bengtsson wrote:

  

Hello,

I cant find the thread[nodepanel] were we discussing javasctipt


implementation 
  

of the tree component ??

/Frank

 






---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
  




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
Wicket-user

Re: [Wicket-user] javascript tree-component

2005-07-19 Thread Jan Mikkelsen
Well, I have started using dhtmlxTree. I do need a solution this week. What I 
can't figure out is how to transfer tree state (checkboxes)  from
javascript to Wicket. I can get the state as a single string by calling
a javascript function, but how do I transfer it to Wicket? A quick and
dirty solution is fine :)

Jan



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Blog Entry

2005-06-24 Thread Jan Mikkelsen
Very nice stuff, Phil. 
The application I have developed with Wicket is based on the CD App
example. I think your code is much less verbose. Any comments on that?
The CD App example has one some good points, though. For example, it is
possible to sort descending or ascending and also to sort on different
things. How would you accomplish that in an elegant way?
And finally, I would like to play with your example. Can you provide me
with your example code? 

I agree with you on Tapestry. Tapestry is good, but I definitely feel
that Wicket is a better solution. 

Regards, Jan



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] PageableListViewNavigation

2005-04-11 Thread Jan Mikkelsen
What I mean is that it shows no pages. I think my problem has to do with
the fact that when I construct the navigator, my list is empty. Later,
after running a query, I replace the model, like this:

resultsTable.modelChanged();
resultsTable.setModelObject(list);
resultsPanel.replace(new PageableListViewNavigationLink(last, 
resultsTable,resultsTable.getPageCount()
- 1));
tableNavigation.modelChanged();

This works fine for the list, but not for the navigator.

It would be great if the CD application was updated, by the way. Are
there any plans for that. That's where my application took off from.


 the displaytag examples still seem to work (cvs head)? What do you
 mean with stopped rendering
 
 Juergen
 
 On Apr 10, 2005 6:22 PM, Jan Mikkelsen [EMAIL PROTECTED] wrote:
  Hi
  
  Is it just me, or has PageableListViewNavigation stopped rendering in
  the cvs head version (maybe in 1.0rc1 too)?
  
  Jan
  
  ---
  SF email is sponsored by - The IT Product Guide
  Read honest  candid reviews on hundreds of IT Products from real users.
  Discover which products truly live up to the hype. Start reading now.
  http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] PageableListViewNavigation

2005-04-11 Thread Jan Mikkelsen
What I mean is that it shows no pages. I think my problem has to do with
the fact that when I construct the navigator, my list is empty. Later,
after running a query, I replace the model, like this:

resultsTable.modelChanged();
resultsTable.setModelObject(list);
resultsPanel.replace(new PageableListViewNavigationLink(last, 
resultsTable,resultsTable.getPageCount()
- 1));
tableNavigation.modelChanged();

This works fine for the list, but not for the navigator.

It would be great if the CD application was updated. Are there any plans
for that. That's where my application took off from.

kind regards, Jan




---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Problem with cvs head

2005-04-11 Thread Jan Mikkelsen
Hi

I think I have spotted a small bug in PageMap: 

public final Page get(final String id)
{
final Page page = (Page)getPages().get(id);
page.setDirty(true);
return page;
}

page is null in case the requested page is not in MostRecentlyUsedMap,
causing a NPE . I tried this instead:
public final Page get(final String id)
{
final Page page = (Page)getPages().get(id);
if (page != null) {
page.setDirty(true);
}
return page;
}

This is better, I now get Page Expired instead of an exception. 

kind regards, Jan



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] PageableListViewNavigation

2005-04-11 Thread Jan Mikkelsen
What I mean is that it shows no pages. I think my problem has to do with
the fact that when I construct the navigator, my list is empty. Later,
after running a query, I replace the model, like this:

resultsTable.modelChanged();
resultsTable.setModelObject(list);
resultsPanel.replace(new PageableListViewNavigationLink(last, 
resultsTable,resultsTable.getPageCount()
- 1));
tableNavigation.modelChanged();

This works fine for the list, but not for the navigator.

It would be great if the CD application was updated, by the way. Are
there any plans for that? That's where my application took off from.


 the displaytag examples still seem to work (cvs head)? What do you
 mean with stopped rendering
 
 Juergen
 
 On Apr 10, 2005 6:22 PM, Jan Mikkelsen [EMAIL PROTECTED] wrote:
  Hi
  
  Is it just me, or has PageableListViewNavigation stopped rendering in
  the cvs head version (maybe in 1.0rc1 too)?
  
  Jan
  
  ---
  SF email is sponsored by - The IT Product Guide
  Read honest  candid reviews on hundreds of IT Products from real users.
  Discover which products truly live up to the hype. Start reading now.
  http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nullpointerexception in MultipartWebRequest

2005-04-10 Thread Jan Mikkelsen
Here is what happened:
I tried the head version. It fails to complete unittests, so I skipped
that. 

I now get a NPE in line 69 of MultipartWebRequest:
diskFileUpload.setSizeMax(uploadForm.maxSize.bytes());
That is because I hadn't set max size. I suspect this is something
others will fail to do, so maybe default behaviour should be no max size?

I added this to my form constructor:
setMaxSize(Bytes.kilobytes(200));

and now it works! 

Thanks

 Hi Eelco
 
 No, I am not working on head, but I will try that tomorrow, and I will
 definitely try your suggestion and get back with results.
 
 Thanks
 
 /Jan
 
 
 
 
 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Problem with cvs head

2005-04-10 Thread Jan Mikkelsen
Hi

I think I have spotted a small bug in PageMap: 

public final Page get(final String id)
{
final Page page = (Page)getPages().get(id);
page.setDirty(true);
return page;
}

page is null in case the requested page is not in MostRecentlyUsedMap,
causing a NPE . I tried this instead:
public final Page get(final String id)
{
final Page page = (Page)getPages().get(id);
if (page != null) {
page.setDirty(true);
}
return page;
}

This is better, I now get Page Expired instead of an exception. 

kind regards, Jan



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] PageableListViewNavigation

2005-04-10 Thread Jan Mikkelsen
What I mean is that it shows no pages. I think my problem has to do with
the fact that when I construct the navigator, my list is empty. Later,
after running a query, I replace the model, like this:

resultsTable.modelChanged();
resultsTable.setModelObject(list);
resultsPanel.replace(new PageableListViewNavigationLink(last, 
resultsTable,resultsTable.getPageCount()
- 1));
tableNavigation.modelChanged();

This works fine for the list, but not for the navigator.

It would be great if the CD application was updated, by the way. Are
there any plans for that? That's where my application took off from.


 the displaytag examples still seem to work (cvs head)? What do you
 mean with stopped rendering
 
 Juergen
 
 On Apr 10, 2005 6:22 PM, Jan Mikkelsen [EMAIL PROTECTED] wrote:
  Hi
  
  Is it just me, or has PageableListViewNavigation stopped rendering in
  the cvs head version (maybe in 1.0rc1 too)?
  
  Jan
  
  ---
  SF email is sponsored by - The IT Product Guide
  Read honest  candid reviews on hundreds of IT Products from real users.
  Discover which products truly live up to the hype. Start reading now.
  http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nullpointerexception in MultipartWebRequest

2005-04-09 Thread Jan Mikkelsen
Ups, sorry, I hadn't noticed your mail, Jon. I will look at it now...




---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nullpointerexception in MultipartWebRequest

2005-04-09 Thread Jan Mikkelsen
Hi Eelco

No, I am not working on head, but I will try that tomorrow, and I will
definitely try your suggestion and get back with results.

Thanks

/Jan




---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user