Re: [Wicket-user] Pass popup parameters from parent page

2007-02-21 Thread serban.balamaci

Thanks


serban.balamaci wrote:
 
 Hi.
 
 I need to open a popup page that displays information that is related to
 parameters in the parent page. For example, a popuppage with a list of
 streets, and in the parent i would have a combo with counties ids, name
 and only the street in that county would be shown in the popup. The
 problem is that i would not want to make an unnecesary trip back to the
 server, but by not doing so the model behind the combo of counties is not
 updated, and an invocation on the onClick method of the link and calling
 combo.getModelObject does not return what was selected, since no data is
 passed to the server. 
 
 I guess that the problem could be solved by using javascript, but i tried
 and found no solutions to how i could pass the parameters without forcing
 the user to first submit the form and then open the popup.
 
 Temporary solution is an update of the model with 
 combo.add(new AjaxFormComponentUpdatingBehavior(onblur) {
   protected void onUpdate(AjaxRequestTarget target) {
   // nothing
   }
   });
 
 Can it be done some other way?
 
 Thanks.
 

-- 
View this message in context: 
http://www.nabble.com/Pass-popup-parameters-from-parent-page-tf3252580.html#a9076917
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Navigation between pages

2007-02-21 Thread Peter Klassen

Hi all,

just one more trivial question; ;-)

which possibilities do i got to navigate from one Webpage to another after
an event is triggered?

Thx in advance! Peter


-- 
View this message in context: 
http://www.nabble.com/Navigation-between-pages-tf3265417.html#a9077014
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Navigation between pages

2007-02-21 Thread Gohan

Well you could just use setResponsePage(new YourWebPage(..));


Peter Klassen wrote:
 
 Hi all,
 
 just one more trivial question; ;-)
 
 which possibilities do i got to navigate from one Webpage to another after
 an event is triggered?
 
 Thx in advance! Peter
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Navigation-between-pages-tf3265417.html#a9077111
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] java.util.ConcurrentModificationException

2007-02-21 Thread Johan Compagner

that looks the problem.
you are adding resource loaders in a page constructor??
why?
You should do that in the Application.init()

johan


On 2/20/07, Konstantin [EMAIL PROTECTED] wrote:



Code:

private void initKeyMap(){
for (String aKeyMap : keyMap) {
keyHashMap.put(aKeyMap, getString(aKeyMap));
}
for (String aKeyMap : keyMap) {
shiftedKeyHashMap.put(aKeyMap, getString(aKeyMap+Shifted));
}
}

Is in the keyboard panel.

Custom resource loader is added in prototype page constructor:

public TemplatePage() {
ClassStringResourceLoader loader = new
ClassStringResourceLoader(this.getApplication(), this.getClass());
this.dbAction = new DBAction(

loader.loadStringResource(this.getClass(),envContextName,null,null)

,loader.loadStringResource(this.getClass(),dataSourceName,null,null)
  );

getApplication().getResourceSettings().addStringResourceLoader(new
DBStringResourceLoader(dbAction));




Johan Compagner wrote:

 I think the code is sort of still the same (you use a pretty old
version)

 final Iterator iterator = application.getResourceSettings()
 .getStringResourceLoaders().iterator();

 that is the iterator that goes wrong. But that is strange, are you
adding
 string resourceloaders at some place
 while the application is running?

 johan


 On 2/20/07, Konstantin [EMAIL PROTECTED] wrote:


 What could be the reason of this ? (Using Wicket 1.2.1)

 19/2/2007 19:15:28 wicket.RequestCycle step
 SEVERE: null
 java.util.ConcurrentModificationException
 at java.util.AbstractList$Itr.checkForComodification(Unknown
 Source)
 at java.util.AbstractList$Itr.next(Unknown Source)
 at java.util.Collections$UnmodifiableCollection$1.next(Unknown
 Source)
 at wicket.Localizer.visitResourceLoaders(Localizer.java:406)
 at wicket.Localizer.getString(Localizer.java:236)
 at wicket.Localizer.getString(Localizer.java:121)
 at wicket.Component.getString(Component.java:1171)
 at wicket.Component.getString(Component.java:1158)

 --
 View this message in context:

http://www.nabble.com/java.util.ConcurrentModificationException-tf3260239.html#a9060910
 Sent from the Wicket - User mailing list archive at Nabble.com.



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/java.util.ConcurrentModificationException-tf3260239.html#a9062112
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Navigation between pages

2007-02-21 Thread Nino Wael
You can also employ an easy way to go back to the previous page by passing the 
current page to the next page. It's been pretty useful for us. Or even telling 
the page which page to goto next.

Small pseudo snipplet:


public class mypage extends WebPage {

public mypage(final Page Previous, final Page next, Model model) {

on next button: setresponse(next);

on previous: setresponse(previous);

}

Regards Nino



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gohan
Sent: 21. februar 2007 09:36
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Navigation between pages


Well you could just use setResponsePage(new YourWebPage(..));


Peter Klassen wrote:
 
 Hi all,
 
 just one more trivial question; ;-)
 
 which possibilities do i got to navigate from one Webpage to another after
 an event is triggered?
 
 Thx in advance! Peter
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Navigation-between-pages-tf3265417.html#a9077111
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Session is valid?

2007-02-21 Thread Robert .

Hi,

Is there a way to see if a session is still valid. I could only find the
private sessionInvalidated so that's not available.

One other related question is how to deal with a case like this:
A user loads the login page and goes away for a while. Later he comes back
and tries to login. However at that point the session has expired and
receives this message when trying to log in.
Is there some way to prevent this from happening?

Robert
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] ExceptionErrorPage throws java.lang.NoClassDefFoundError

2007-02-21 Thread Andrew Klochkov
I got the following exception when wicket tries to build
ExceptionErrorPage, I'm using wicket 1.3 fresh from SVN.

15:50:11.468 WARN!! Error for /quickstart/app/
java.lang.NoClassDefFoundError:
Lwicket/protocol/http/request/urlcompressing/UrlCompressor;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredField(Unknown Source)
at java.io.ObjectStreamClass.getDeclaredSUID(Unknown Source)
at java.io.ObjectStreamClass.access$700(Unknown Source)
at java.io.ObjectStreamClass$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.init(Unknown Source)
at java.io.ObjectStreamClass.lookup(Unknown Source)
at java.io.ObjectStreamClass.init(Unknown Source)
at java.io.ObjectStreamClass.lookup(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at wicket.util.lang.Objects.sizeof(Objects.java:1094)
at wicket.Component.getSizeInBytes(Component.java:1104)
at wicket.markup.html.debug.PageView$3.component(PageView.java:140)
at wicket.MarkupContainer.visitChildren(MarkupContainer.java:746)
at wicket.MarkupContainer.visitChildren(MarkupContainer.java:761)
at wicket.MarkupContainer.visitChildren(MarkupContainer.java:786)
at wicket.markup.html.debug.PageView.getComponentData(PageView.java:121)
at wicket.markup.html.debug.PageView.init(PageView.java:79)
at
wicket.markup.html.pages.ExceptionErrorPage.init(ExceptionErrorPage.java:92)
at
wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:154)
at wicket.RequestCycle.step(RequestCycle.java:1082)
at wicket.RequestCycle.steps(RequestCycle.java:1116)
at wicket.RequestCycle.request(RequestCycle.java:456)
at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:263)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126)

-- 
Andrew Klochkov


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Session is valid?

2007-02-21 Thread Johan Compagner

use for a login or landing page stateless links and forms. (only possible in
1.3/2.0)

what do you mean with session is still valid? if you are in a request the
session will always be valid
or maybe if you have a really long request the session could be invalidated
by the container beneath your feet..
but i dont think there is a method on the HttpSession like isValid()

The wicket session sessionInvalidated is only set by you if you call
invalidate()

johan


On 2/21/07, Robert . [EMAIL PROTECTED] wrote:


Hi,

Is there a way to see if a session is still valid. I could only find the
private sessionInvalidated so that's not available.

One other related question is how to deal with a case like this:
A user loads the login page and goes away for a while. Later he comes back
and tries to login. However at that point the session has expired and
receives this message when trying to log in.
Is there some way to prevent this from happening?

Robert


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wicket 2.0: setting default locale

2007-02-21 Thread Harald Gruber
hi all,

any ideas how to set a default locale for sessions (wicket 2.0
snapshot)? i support only a limited amount of locales in my app and need
to get some localized data from my database using the sessions locale.

my first thought was to set the locale in my websession's constructor.
but it gets overwritten in WebApplication.getSession again


if (session == null)
{
// Create session using session factory
session = setSessionFactory().newSession(request);
// Set the client Locale for this session
session.setLocale(request.getLocale());
}

as in the Session class constructor the locale is set anyways, is there
a special reason to set the locale again right after the creation?

protected Session(final Application application, Request request)
{
this.locale = request.getLocale();
if (locale == null)
{
throw new IllegalArgumentException(Parameter 'locale' must not 
be null);
}
}

thanks for your help!
h.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AutoCompleteTextField issue (wicket 1.2.3)

2007-02-21 Thread Paolo Di Tommaso

The AutoCompleteTextField does not invoke the functions registered by
Wicket.Ajax.registerPostCallHandler() after the ajax request has been
completed.

Is someone else experiencing the same problem?


Thank you, Paolo
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Dumb question about serialization

2007-02-21 Thread Jesse Barnum
Sorry for the dumb question, but I don't see any overview  
documentation talking about models and serialization in the API. Is  
there any way to not have to serialize objects in a model? I don't  
need support for back button / undo / etc. I have some objects that  
cannot be serialized which need to be displayed in a ListView, and  
when I try to modify the contents of the ListView, it causes  
exceptions because it automatically tries to serialize everything  
which I call modelChanging().

Is there a setting I can change somewhere to run everything in memory?

--Jesse Barnum, President, 360Works
http://www.360works.com
(770) 234-9293



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Strage Weblogic problem with DataTable - help needed!

2007-02-21 Thread Niels Bo

Hi

We were ready to put a new wicket application into production, but after
deploying it it on our pre-production server with Weblogic 8.1 SP5+JRockit, 
we see a really strange and serious problem. 

Initially after deployment, everything works fine, but after refreshing
a page with a DataTable 10-50 times, the toolbar components added to the
DataTable
 (column headers and the paging) disapears! And they disapear on ALL pages
using the DataTable component.

No errors in any logs, and otherwise everything works perfect.

Only re-deploying or restaring the server will make the toolbars come back.


Then we tried to download and deploy the Wicket-examples-1.2.5.war, and it
also fails in the same way,
after refreshing the DataTable Example
 a number of times. Since it is configured as development mode, it does show
an exception instead of the toolbars jst disapering.
 
The exception is below, and indicate that the markup has lost it
references to the toolbars.


We can recreate the problem running WL+JRockit locally from IntelliJ, but
not when a debugger is attached (probably because optimization is then
turned off).


The strange thing is that only the toolbar components fail, and that it
fails only after showing such a page a number of times. 
Also when one page with a DataTable has failed, all the pages in the
application using DataTable component will be in error

Since we are otherwise ready to go into poduction, we really need a
workaround or a fix, 
but changing the application server or JVM will be really difficult because
we are a big company with standardized production servers.


I will be really really thankfull, if someone can solve this problem!

Niels Bo


Unexpected RuntimeException
WicketMessage: The component(s) below failed to render. A common problem is
that you have added a component in code but forgot to reference it in the
markup (thus the component will never be rendered).
1. [MarkupContainer [Component id = 1, page =
wicket.examples.repeater.DataTablePage, path =
98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, isVersioned
= false]]
Root cause:
wicket.WicketRuntimeException: The component(s) below failed to render. A
common problem is that you have added a component in code but forgot to
reference it in the markup (thus the component will never be rendered).
1. [MarkupContainer [Component id = 1, page =
wicket.examples.repeater.DataTablePage, path =
98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, isVersioned
= false]]
 at
wicket.Page.checkRendering(Lwicket/MarkupContainer;)V(Page.java:1109)
 at wicket.Page.renderPage()V(Page.java:416)
 at
wicket.request.target.component.BookmarkablePageRequestTarget.respond(Lwicket/RequestCycle;)V(BookmarkablePageRequestTarget.java:226)
 at
wicket.request.compound.DefaultResponseStrategy.respond(Lwicket/RequestCycle;)V(DefaultResponseStrategy.java:49)
 at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(Lwicket/RequestCycle;)V(AbstractCompoundRequestCycleProcessor.java:66)
 at wicket.RequestCycle.step()V(Optimized Method)
 at wicket.RequestCycle.steps()V(RequestCycle.java:1084)
 at wicket.RequestCycle.request()V(RequestCycle.java:448)
 at
wicket.protocol.http.WicketServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized
Method)
 at
javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized
Method)
 at
javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized
Method)
 at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072)
 at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(Optimized
Method)
 at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized
Method)
 at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(Optimized
Method)
 at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized
Method)
 at
weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized
Method)
 at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(Optimized
Method)
 at
weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic/kernel/ExecuteThread;)V(Optimized
Method)
 at

Re: [Wicket-user] Testing Wicket with JMeter

2007-02-21 Thread Flavia Paganelli
Hi!
I've also been making JMeter tests over Wicket applications. I had to 
use the HTTP Cookie Manager.
But still sometimes I found strange behaviour, like it sometimes stopped 
working, I recorded the same test again and it worked.
The problem always appeared with a submit (POST).
Not much help, but...

 Date: Wed, 14 Feb 2007 10:18:42 +0100
 From: Nino Wael [EMAIL PROTECTED]
 Subject: [Wicket-user] Testing Wicket with JMeter
 To: wicket-user@lists.sourceforge.net
 Message-ID:
   [EMAIL PROTECTED]
 Content-Type: text/plain; charset=us-ascii

 Hi 

  

 Im trying to test an application with jmeter , I keep getting page expired 
 when testing. I have a cookie manager and save jsessionid, are there any 
 thing else I should be aware of in that direction?

  

 The application are rather simple although there are some ajax calls. The 
 test fails on the first submit with a page expired.. Any ideas on what im 
 doing wrong ? Please ask if you need more information...

 Nino Wael

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Navigation between pages

2007-02-21 Thread Scott Swank
Nino,

Wouldn't that leave all of the pages in session?  I.e. you expect to
have 7 pages in history, but 7 points to 8, which points to 9, etc.

Scott


On 2/21/07, Nino Wael [EMAIL PROTECTED] wrote:
 You can also employ an easy way to go back to the previous page by passing 
 the current page to the next page. It's been pretty useful for us. Or even 
 telling the page which page to goto next.

 Small pseudo snipplet:


 public class mypage extends WebPage {

 public mypage(final Page Previous, final Page next, Model model) {

 on next button: setresponse(next);

 on previous: setresponse(previous);

 }

 Regards Nino



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gohan
 Sent: 21. februar 2007 09:36
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Navigation between pages


 Well you could just use setResponsePage(new YourWebPage(..));


 Peter Klassen wrote:
 
  Hi all,
 
  just one more trivial question; ;-)
 
  which possibilities do i got to navigate from one Webpage to another after
  an event is triggered?
 
  Thx in advance! Peter
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/Navigation-between-pages-tf3265417.html#a9077111
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Navigation between pages

2007-02-21 Thread Eelco Hillenius
On 2/21/07, Scott Swank [EMAIL PROTECTED] wrote:
 Nino,

 Wouldn't that leave all of the pages in session?  I.e. you expect to
 have 7 pages in history, but 7 points to 8, which points to 9, etc.

Yep, it would. This pattern works good for when you have dialogue
style pages (gather some info and then return) that could be accessed
from a number of different pages (so where to navigate back to is
something you want to keep flexible). But the price for the ease is
that you'll keep a reference to the page to get back to thus
preventing it to be garbage collected.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Strange Weblogic problem with DataTable - help needed!

2007-02-21 Thread Eelco Hillenius
Do you think you can isolate the case and have it reproducible in a
test case or quickstart project?

I'm also wondering why you run the application in development mode. It
doesn't run those render checks when you're in production mode.

Eelco


On 2/21/07, Niels Bo [EMAIL PROTECTED] wrote:
  Hi

  We were ready to put a new wicket application into production, but after
 deploying it it on our pre-production server with Weblogic 8.1 SP5+JRockit,
 we see a really strange and serious problem.

 Initially after deployment, everything works fine, but after refreshing a
 page with a DataTable 10-50 times, the toolbar components added to the
 DataTable
  (column headers and the paging) disapears! And they disapear on ALL pages
 using the DataTable component.
  No errors in any logs, and otherwise everything works perfect.
  Only re-deploying or restaring the server will make the toolbars come back.

  Then we tried to download and deploy the Wicket-examples-1.2.5.war, and it
 also fails in the same way, after refreshing the DataTable Example
  a number of times. Since it is configured as development mode, it does show
 an exception instead of the toolbars jst disapering.
  The exception is below, and indicate that the markup has lost it
 references to the toolbars.

  We can recreate the problem running WL+JRockit locally from IntelliJ, but
 not when a debugger is attached (probably because optimization is then
 turned off).

  The strange thing is that only the toolbar components fail, and that it
 fails only after showing such a page a number of times.
 Also when one page with a DataTable has failed, all the pages in the
 application using DataTable component will be in error

 Since we are otherwise ready to go into poduction, we really need a
 workaround or a fix,
 but changing the application server or JVM will be really difficult because
 we are a big company with standardized production servers.

  I will be really really thankfull, if someone can solve this problem!
  Niels Bo
 Unexpected RuntimeException

 WicketMessage: The component(s) below failed to render. A common problem is
 that you have added a component in code but forgot to reference it in the
 markup (thus the component will never be rendered).

 1. [MarkupContainer [Component id = 1, page =
 wicket.examples.repeater.DataTablePage, path =
 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, isVersioned
 = false]]

 Root cause:

 wicket.WicketRuntimeException: The component(s) below failed to render. A
 common problem is that you have added a component in code but forgot to
 reference it in the markup (thus the component will never be rendered).

 1. [MarkupContainer [Component id = 1, page =
 wicket.examples.repeater.DataTablePage, path =
 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, isVersioned
 = false]]

  at wicket.Page.checkRendering(Lwicket/MarkupContainer;)V(Page.java:1109)
  at wicket.Page.renderPage()V(Page.java:416)
  at
 wicket.request.target.component.BookmarkablePageRequestTarget.respond(Lwicket/RequestCycle;)V(BookmarkablePageRequestTarget.java:226)
  at
 wicket.request.compound.DefaultResponseStrategy.respond(Lwicket/RequestCycle;)V(DefaultResponseStrategy.java:49)
  at
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(Lwicket/RequestCycle;)V(AbstractCompoundRequestCycleProcessor.java:66)
  at wicket.RequestCycle.step()V(Optimized Method)
  at wicket.RequestCycle.steps()V(RequestCycle.java:1084)
  at wicket.RequestCycle.request()V(RequestCycle.java:448)
  at
 wicket.protocol.http.WicketServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized
 Method)
  at
 javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized
 Method)
  at
 javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized
 Method)
  at
 weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072)
  at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(Optimized
 Method)
  at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized
 Method)
  at
 weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(Optimized
 Method)
  at
 weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized
 Method)
  at
 weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized
 Method)
  at
 

Re: [Wicket-user] wicket 2.0: setting default locale

2007-02-21 Thread Eelco Hillenius
Sorry about that, that was a slip. We recently had a change that would
allow you to pin the session's locale in the constructor. Setting the
locale afterwards should have been removed. It's fixed in trunk now.

Eelco


On 2/21/07, Harald Gruber [EMAIL PROTECTED] wrote:
 hi all,

 any ideas how to set a default locale for sessions (wicket 2.0
 snapshot)? i support only a limited amount of locales in my app and need
 to get some localized data from my database using the sessions locale.

 my first thought was to set the locale in my websession's constructor.
 but it gets overwritten in WebApplication.getSession again


 if (session == null)
 {
 // Create session using session factory
 session = setSessionFactory().newSession(request);
 // Set the client Locale for this session
 session.setLocale(request.getLocale());
 }

 as in the Session class constructor the locale is set anyways, is there
 a special reason to set the locale again right after the creation?

 protected Session(final Application application, Request request)
 {
 this.locale = request.getLocale();
 if (locale == null)
 {
 throw new IllegalArgumentException(Parameter 'locale' must 
 not be null);
 }
 }

 thanks for your help!
 h.

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dumb question about serialization

2007-02-21 Thread Eelco Hillenius
If you don't need back button support at all, just have all your pages
(or probably some base page) override isVersioned (or use
setVersioned) and let it return false. Wicket will not record changes
then, and your URLs between what otherwise would have been versions
keep stable.

Also, set IPageSettings#setMaxPageVersions to 1 and it is best to use
the HttpSessionStore.

Eelco


On 2/21/07, Jesse Barnum [EMAIL PROTECTED] wrote:
 Sorry for the dumb question, but I don't see any overview
 documentation talking about models and serialization in the API. Is
 there any way to not have to serialize objects in a model? I don't
 need support for back button / undo / etc. I have some objects that
 cannot be serialized which need to be displayed in a ListView, and
 when I try to modify the contents of the ListView, it causes
 exceptions because it automatically tries to serialize everything
 which I call modelChanging().

 Is there a setting I can change somewhere to run everything in memory?

 --Jesse Barnum, President, 360Works
 http://www.360works.com
 (770) 234-9293



 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Strange Weblogic problem with DataTable - help needed!

2007-02-21 Thread Igor Vaynberg

i could not reproduce it here

http://wicketstuff.org/wicket13/repeater/

-igor


On 2/21/07, Niels Bo [EMAIL PROTECTED] wrote:


Hi

We were ready to put a new wicket application into production, but after
deploying it it on our pre-production server with Weblogic 8.1SP5+JRockit,
we see a really strange and serious problem.

Initially after deployment, everything works fine, but after refreshing a
page with a DataTable 10-50 times, the toolbar components added to the
DataTable
(column headers and the paging) disapears! And they disapear on ALL pages
using the DataTable component.
No errors in any logs, and otherwise everything works perfect.
Only re-deploying or restaring the server will make the toolbars come
back.

Then we tried to download and deploy the Wicket-examples-1.2.5.war, and it
also fails in the same way, after refreshing the DataTable Example
a number of times. Since it is configured as development mode, it does
show an exception instead of the toolbars jst disapering.
The exception is below, and indicate that the markup has lost it
references to the toolbars.

We can recreate the problem running WL+JRockit locally from IntelliJ, but
not when a debugger is attached (probably because optimization is then
turned off).

The strange thing is that only the toolbar components fail, and that it
fails only after showing such a page a number of times.
Also when one page with a DataTable has failed, all the pages in the
application using DataTable component will be in error

Since we are otherwise ready to go into poduction, we really need a
workaround or a fix,
but changing the application server or JVM will be really difficult
because we are a big company with standardized production servers.

I will be really really thankfull, if someone can solve this problem!
Niels Bo
Unexpected RuntimeException

WicketMessage: The component(s) below failed to render. A common problem is 
that you have added a component in code but forgot to reference it in the 
markup (thus the component will never be rendered).

1. [MarkupContainer [Component id = 1, page = 
wicket.examples.repeater.DataTablePage, path = 
98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, isVersioned = 
false]]

Root cause:

wicket.WicketRuntimeException: The component(s) below failed to render. A 
common problem is that you have added a component in code but forgot to 
reference it in the markup (thus the component will never be rendered).

1. [MarkupContainer [Component id = 1, page = 
wicket.examples.repeater.DataTablePage, path = 
98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, isVersioned = 
false]]

 at wicket.Page.checkRendering(Lwicket/MarkupContainer;)V(Page.java:1109)
 at wicket.Page.renderPage()V(Page.java:416)
 at 
wicket.request.target.component.BookmarkablePageRequestTarget.respond(Lwicket/RequestCycle;)V(BookmarkablePageRequestTarget.java:226)
 at 
wicket.request.compound.DefaultResponseStrategy.respond(Lwicket/RequestCycle;)V(DefaultResponseStrategy.java:49)
 at 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(Lwicket/RequestCycle;)V(AbstractCompoundRequestCycleProcessor.java:66)
 at wicket.RequestCycle.step()V(Optimized Method)
 at wicket.RequestCycle.steps()V(RequestCycle.java:1084)
 at wicket.RequestCycle.request()V(RequestCycle.java:448)
 at 
wicket.protocol.http.WicketServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized
 Method)
 at 
javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized
 Method)
 at 
javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized
 Method)
 at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072)
 at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(Optimized
 Method)
 at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized
 Method)
 at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(Optimized
 Method)
 at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized
 Method)
 at 
weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized
 Method)
 at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(Optimized
 Method)
 at 

Re: [Wicket-user] Strange Weblogic problem with DataTable - help needed!

2007-02-21 Thread Niels Bo

Yes, it can be reproduced by the wicket examples application from
www.wicket-library.com.

Of cause we run our application in production mode, but the wicket-examples
application
is in development mode when downloaded, so it makes no effect on the error
other than in development mode the below exception is shown instead of the
toolbars just disapering.

Niels

Eelco Hillenius wrote:
 
 Do you think you can isolate the case and have it reproducible in a
 test case or quickstart project?
 
 I'm also wondering why you run the application in development mode. It
 doesn't run those render checks when you're in production mode.
 
 Eelco
 
 
 On 2/21/07, Niels Bo [EMAIL PROTECTED] wrote:
  Hi

  We were ready to put a new wicket application into production, but after
 deploying it it on our pre-production server with Weblogic 8.1
 SP5+JRockit,
 we see a really strange and serious problem.

 Initially after deployment, everything works fine, but after refreshing a
 page with a DataTable 10-50 times, the toolbar components added to the
 DataTable
  (column headers and the paging) disapears! And they disapear on ALL
 pages
 using the DataTable component.
  No errors in any logs, and otherwise everything works perfect.
  Only re-deploying or restaring the server will make the toolbars come
 back.

  Then we tried to download and deploy the Wicket-examples-1.2.5.war, and
 it
 also fails in the same way, after refreshing the DataTable Example
  a number of times. Since it is configured as development mode, it does
 show
 an exception instead of the toolbars jst disapering.
  The exception is below, and indicate that the markup has lost it
 references to the toolbars.

  We can recreate the problem running WL+JRockit locally from IntelliJ,
 but
 not when a debugger is attached (probably because optimization is then
 turned off).

  The strange thing is that only the toolbar components fail, and that it
 fails only after showing such a page a number of times.
 Also when one page with a DataTable has failed, all the pages in the
 application using DataTable component will be in error

 Since we are otherwise ready to go into poduction, we really need a
 workaround or a fix,
 but changing the application server or JVM will be really difficult
 because
 we are a big company with standardized production servers.

  I will be really really thankfull, if someone can solve this problem!
  Niels Bo
 Unexpected RuntimeException

 WicketMessage: The component(s) below failed to render. A common problem
 is
 that you have added a component in code but forgot to reference it in the
 markup (thus the component will never be rendered).

 1. [MarkupContainer [Component id = 1, page =
 wicket.examples.repeater.DataTablePage, path =
 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true,
 isVersioned
 = false]]

 Root cause:

 wicket.WicketRuntimeException: The component(s) below failed to render. A
 common problem is that you have added a component in code but forgot to
 reference it in the markup (thus the component will never be rendered).

 1. [MarkupContainer [Component id = 1, page =
 wicket.examples.repeater.DataTablePage, path =
 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true,
 isVersioned
 = false]]

  at wicket.Page.checkRendering(Lwicket/MarkupContainer;)V(Page.java:1109)
  at wicket.Page.renderPage()V(Page.java:416)
  at
 wicket.request.target.component.BookmarkablePageRequestTarget.respond(Lwicket/RequestCycle;)V(BookmarkablePageRequestTarget.java:226)
  at
 wicket.request.compound.DefaultResponseStrategy.respond(Lwicket/RequestCycle;)V(DefaultResponseStrategy.java:49)
  at
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(Lwicket/RequestCycle;)V(AbstractCompoundRequestCycleProcessor.java:66)
  at wicket.RequestCycle.step()V(Optimized Method)
  at wicket.RequestCycle.steps()V(RequestCycle.java:1084)
  at wicket.RequestCycle.request()V(RequestCycle.java:448)
  at
 wicket.protocol.http.WicketServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized
 Method)
  at
 javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized
 Method)
  at
 javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized
 Method)
  at
 weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072)
  at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(Optimized
 Method)
  at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized
 Method)
  at
 weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(Optimized
 Method)
  at
 

Re: [Wicket-user] Strange Weblogic problem with DataTable - help needed!

2007-02-21 Thread Niels Bo

But did you try with Weblogic 8.1.5+JRockit JVM?

We did not see any problems while developing using Sun JVM.

Niels

igor.vaynberg wrote:
 
 i could not reproduce it here
 
 http://wicketstuff.org/wicket13/repeater/
 
 -igor
 
 
 On 2/21/07, Niels Bo [EMAIL PROTECTED] wrote:

 Hi

 We were ready to put a new wicket application into production, but after
 deploying it it on our pre-production server with Weblogic
 8.1SP5+JRockit,
 we see a really strange and serious problem.

 Initially after deployment, everything works fine, but after refreshing a
 page with a DataTable 10-50 times, the toolbar components added to the
 DataTable
 (column headers and the paging) disapears! And they disapear on ALL pages
 using the DataTable component.
 No errors in any logs, and otherwise everything works perfect.
 Only re-deploying or restaring the server will make the toolbars come
 back.

 Then we tried to download and deploy the Wicket-examples-1.2.5.war, and
 it
 also fails in the same way, after refreshing the DataTable Example
 a number of times. Since it is configured as development mode, it does
 show an exception instead of the toolbars jst disapering.
 The exception is below, and indicate that the markup has lost it
 references to the toolbars.

 We can recreate the problem running WL+JRockit locally from IntelliJ, but
 not when a debugger is attached (probably because optimization is then
 turned off).

 The strange thing is that only the toolbar components fail, and that it
 fails only after showing such a page a number of times.
 Also when one page with a DataTable has failed, all the pages in the
 application using DataTable component will be in error

 Since we are otherwise ready to go into poduction, we really need a
 workaround or a fix,
 but changing the application server or JVM will be really difficult
 because we are a big company with standardized production servers.

 I will be really really thankfull, if someone can solve this problem!
 Niels Bo
 Unexpected RuntimeException

 WicketMessage: The component(s) below failed to render. A common problem
 is that you have added a component in code but forgot to reference it in
 the markup (thus the component will never be rendered).

 1. [MarkupContainer [Component id = 1, page =
 wicket.examples.repeater.DataTablePage, path =
 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true,
 isVersioned = false]]

 Root cause:

 wicket.WicketRuntimeException: The component(s) below failed to render. A
 common problem is that you have added a component in code but forgot to
 reference it in the markup (thus the component will never be rendered).

 1. [MarkupContainer [Component id = 1, page =
 wicket.examples.repeater.DataTablePage, path =
 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true,
 isVersioned = false]]

  at
 wicket.Page.checkRendering(Lwicket/MarkupContainer;)V(Page.java:1109)
  at wicket.Page.renderPage()V(Page.java:416)
  at
 wicket.request.target.component.BookmarkablePageRequestTarget.respond(Lwicket/RequestCycle;)V(BookmarkablePageRequestTarget.java:226)
  at
 wicket.request.compound.DefaultResponseStrategy.respond(Lwicket/RequestCycle;)V(DefaultResponseStrategy.java:49)
  at
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(Lwicket/RequestCycle;)V(AbstractCompoundRequestCycleProcessor.java:66)
  at wicket.RequestCycle.step()V(Optimized Method)
  at wicket.RequestCycle.steps()V(RequestCycle.java:1084)
  at wicket.RequestCycle.request()V(RequestCycle.java:448)
  at
 wicket.protocol.http.WicketServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized
 Method)
  at
 javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized
 Method)
  at
 javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized
 Method)
  at
 weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072)
  at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(Optimized
 Method)
  at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized
 Method)
  at
 weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(Optimized
 Method)
  at
 weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized
 Method)
  at
 weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized
 

[Wicket-user] Could this be a bug in Wicket 2?

2007-02-21 Thread Gohan

I've posted this as a reply to another thread but I think it deserves a
thread of its own. 
What happens is that I'd like to show and hide a label by setting switch
between setVisible(true) and setVisible(false) when clicking on a
AjaxFallbackLink. I've wrapped the label inside a WebMarkupContainer to make
this doable. Here is the code:

public BasePage() {
final WebMarkupContainer table = new WebMarkupContainer(this,
tableId);
table.setOutputMarkupId(true);
final Label label = new Label(table, labelId, This is a label);
label.setOutputMarkupId(true);
label.setVisible(false);


new AjaxFallbackLink(this, linkId) {
   private static final long serialVersionUID =
5523627214368899839L;
  @Override
  public void onClick(AjaxRequestTarget target) {
   final boolean visible = label.isVisible();
label.setVisible(!visible);
  target.addComponent(table);
 }
   };
}

When I click on the AjaxFallbackLink the first time everything is fine, the
label (with wicket id labelId) gets visible. But when I click the link
again to make it invisible, I get a NullPointerException when executing
label.setVisible(..). Debugging down into the wicket source code tells me
that the NullPointerException occurs on 327 in class Page, when it tries to
execute versionManager.componentStateChanging(change). However
versionManager is null. Why is this? Is this a bug or am I doing something
wrong?

Thanks

-- 
View this message in context: 
http://www.nabble.com/Could-this-be-a-bug-in-Wicket-2--tf3268456.html#a9086303
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ExceptionErrorPage throws java.lang.NoClassDefFoundError

2007-02-21 Thread Gohan

Hmm I had a similar problem with the wicket 2 snapshot yesterday. I deleted
the wicket folder and did a clean checkout, that solved it for me. 


Andrew Klochkov wrote:
 
 I got the following exception when wicket tries to build
 ExceptionErrorPage, I'm using wicket 1.3 fresh from SVN.
 
 15:50:11.468 WARN!! Error for /quickstart/app/
 java.lang.NoClassDefFoundError:
 Lwicket/protocol/http/request/urlcompressing/UrlCompressor;
 at java.lang.Class.getDeclaredFields0(Native Method)
 at java.lang.Class.privateGetDeclaredFields(Unknown Source)
 at java.lang.Class.getDeclaredField(Unknown Source)
 at java.io.ObjectStreamClass.getDeclaredSUID(Unknown Source)
 at java.io.ObjectStreamClass.access$700(Unknown Source)
 at java.io.ObjectStreamClass$2.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.io.ObjectStreamClass.init(Unknown Source)
 at java.io.ObjectStreamClass.lookup(Unknown Source)
 at java.io.ObjectStreamClass.init(Unknown Source)
 at java.io.ObjectStreamClass.lookup(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.writeObject(Unknown Source)
 at wicket.util.lang.Objects.sizeof(Objects.java:1094)
 at wicket.Component.getSizeInBytes(Component.java:1104)
 at wicket.markup.html.debug.PageView$3.component(PageView.java:140)
 at wicket.MarkupContainer.visitChildren(MarkupContainer.java:746)
 at wicket.MarkupContainer.visitChildren(MarkupContainer.java:761)
 at wicket.MarkupContainer.visitChildren(MarkupContainer.java:786)
 at
 wicket.markup.html.debug.PageView.getComponentData(PageView.java:121)
 at wicket.markup.html.debug.PageView.init(PageView.java:79)
 at
 wicket.markup.html.pages.ExceptionErrorPage.init(ExceptionErrorPage.java:92)
 at
 wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:154)
 at wicket.RequestCycle.step(RequestCycle.java:1082)
 at wicket.RequestCycle.steps(RequestCycle.java:1116)
 at wicket.RequestCycle.request(RequestCycle.java:456)
 at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:263)
 at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126)
 
 -- 
 Andrew Klochkov
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/ExceptionErrorPage-throws-java.lang.NoClassDefFoundError-tf3266532.html#a9086404
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Strange Weblogic problem with DataTable - help needed!

2007-02-21 Thread Igor Vaynberg

heh, no

i dont have any of that stuff installed.

can you reproduce that in an app that is running in deployment mode?

-igor


On 2/21/07, Niels Bo [EMAIL PROTECTED] wrote:



But did you try with Weblogic 8.1.5+JRockit JVM?

We did not see any problems while developing using Sun JVM.

Niels

igor.vaynberg wrote:

 i could not reproduce it here

 http://wicketstuff.org/wicket13/repeater/

 -igor


 On 2/21/07, Niels Bo [EMAIL PROTECTED] wrote:

 Hi

 We were ready to put a new wicket application into production, but
after
 deploying it it on our pre-production server with Weblogic
 8.1SP5+JRockit,
 we see a really strange and serious problem.

 Initially after deployment, everything works fine, but after refreshing
a
 page with a DataTable 10-50 times, the toolbar components added to the
 DataTable
 (column headers and the paging) disapears! And they disapear on ALL
pages
 using the DataTable component.
 No errors in any logs, and otherwise everything works perfect.
 Only re-deploying or restaring the server will make the toolbars come
 back.

 Then we tried to download and deploy the Wicket-examples-1.2.5.war, and
 it
 also fails in the same way, after refreshing the DataTable Example
 a number of times. Since it is configured as development mode, it does
 show an exception instead of the toolbars jst disapering.
 The exception is below, and indicate that the markup has lost it
 references to the toolbars.

 We can recreate the problem running WL+JRockit locally from IntelliJ,
but
 not when a debugger is attached (probably because optimization is then
 turned off).

 The strange thing is that only the toolbar components fail, and that it
 fails only after showing such a page a number of times.
 Also when one page with a DataTable has failed, all the pages in the
 application using DataTable component will be in error

 Since we are otherwise ready to go into poduction, we really need a
 workaround or a fix,
 but changing the application server or JVM will be really difficult
 because we are a big company with standardized production servers.

 I will be really really thankfull, if someone can solve this problem!
 Niels Bo
 Unexpected RuntimeException

 WicketMessage: The component(s) below failed to render. A common
problem
 is that you have added a component in code but forgot to reference it
in
 the markup (thus the component will never be rendered).

 1. [MarkupContainer [Component id = 1, page =
 wicket.examples.repeater.DataTablePage, path =
 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true,
 isVersioned = false]]

 Root cause:

 wicket.WicketRuntimeException: The component(s) below failed to render.
A
 common problem is that you have added a component in code but forgot to
 reference it in the markup (thus the component will never be rendered).

 1. [MarkupContainer [Component id = 1, page =
 wicket.examples.repeater.DataTablePage, path =
 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true,
 isVersioned = false]]

  at
 wicket.Page.checkRendering(Lwicket/MarkupContainer;)V(Page.java:1109)
  at wicket.Page.renderPage()V(Page.java:416)
  at
 wicket.request.target.component.BookmarkablePageRequestTarget.respond
(Lwicket/RequestCycle;)V(BookmarkablePageRequestTarget.java:226)
  at
 wicket.request.compound.DefaultResponseStrategy.respond
(Lwicket/RequestCycle;)V(DefaultResponseStrategy.java:49)
  at
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond
(Lwicket/RequestCycle;)V(AbstractCompoundRequestCycleProcessor.java:66)
  at wicket.RequestCycle.step()V(Optimized Method)
  at wicket.RequestCycle.steps()V(RequestCycle.java:1084)
  at wicket.RequestCycle.request()V(RequestCycle.java:448)
  at
 wicket.protocol.http.WicketServlet.doGet
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized
 Method)
  at
 javax.servlet.http.HttpServlet.service
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized
 Method)
  at
 javax.servlet.http.HttpServlet.service
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized
 Method)
  at
 weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
()Ljava/lang/Object;(ServletStubImpl.java:1072)
  at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(Optimized
 Method)
  at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized
 Method)
  at

weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run
()Ljava/lang/Object;(Optimized
 Method)
  at
 weblogic.security.acl.internal.AuthenticatedSubject.doAs
(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized
 Method)
  at
 

Re: [Wicket-user] Strange Weblogic problem with DataTable - help needed!

2007-02-21 Thread Niels Bo

Yes I can. 
I simply downloaded the Wicket examples application 
http://sourceforge.net/project/showfiles.php?group_id=119783package_id=138752
http://sourceforge.net/project/showfiles.php?group_id=119783package_id=138752 
and deployed the wicket-examples-1.2.5.war, which is in develpment mode, and
the exception
in below in first post.

I am however *not* able to reproduce it with Sun jvm and/or when a debugger
is attached!

I am running it in a clean/new/default WL 8.1 SP5 installation where Jrockit
is selected as JVM.


Niels


igor.vaynberg wrote:
 
 heh, no
 
 i dont have any of that stuff installed.
 
 can you reproduce that in an app that is running in deployment mode?
 
 -igor
 
 
 On 2/21/07, Niels Bo [EMAIL PROTECTED] wrote:


 But did you try with Weblogic 8.1.5+JRockit JVM?

 We did not see any problems while developing using Sun JVM.

 Niels

 igor.vaynberg wrote:
 
  i could not reproduce it here
 
  http://wicketstuff.org/wicket13/repeater/
 
  -igor
 
 
  On 2/21/07, Niels Bo [EMAIL PROTECTED] wrote:
 
  Hi
 
  We were ready to put a new wicket application into production, but
 after
  deploying it it on our pre-production server with Weblogic
  8.1SP5+JRockit,
  we see a really strange and serious problem.
 
  Initially after deployment, everything works fine, but after
 refreshing
 a
  page with a DataTable 10-50 times, the toolbar components added to the
  DataTable
  (column headers and the paging) disapears! And they disapear on ALL
 pages
  using the DataTable component.
  No errors in any logs, and otherwise everything works perfect.
  Only re-deploying or restaring the server will make the toolbars come
  back.
 
  Then we tried to download and deploy the Wicket-examples-1.2.5.war,
 and
  it
  also fails in the same way, after refreshing the DataTable Example
  a number of times. Since it is configured as development mode, it does
  show an exception instead of the toolbars jst disapering.
  The exception is below, and indicate that the markup has lost it
  references to the toolbars.
 
  We can recreate the problem running WL+JRockit locally from IntelliJ,
 but
  not when a debugger is attached (probably because optimization is then
  turned off).
 
  The strange thing is that only the toolbar components fail, and that
 it
  fails only after showing such a page a number of times.
  Also when one page with a DataTable has failed, all the pages in the
  application using DataTable component will be in error
 
  Since we are otherwise ready to go into poduction, we really need a
  workaround or a fix,
  but changing the application server or JVM will be really difficult
  because we are a big company with standardized production servers.
 
  I will be really really thankfull, if someone can solve this problem!
  Niels Bo
  Unexpected RuntimeException
 
  WicketMessage: The component(s) below failed to render. A common
 problem
  is that you have added a component in code but forgot to reference it
 in
  the markup (thus the component will never be rendered).
 
  1. [MarkupContainer [Component id = 1, page =
  wicket.examples.repeater.DataTablePage, path =
  98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true,
  isVersioned = false]]
 
  Root cause:
 
  wicket.WicketRuntimeException: The component(s) below failed to
 render.
 A
  common problem is that you have added a component in code but forgot
 to
  reference it in the markup (thus the component will never be
 rendered).
 
  1. [MarkupContainer [Component id = 1, page =
  wicket.examples.repeater.DataTablePage, path =
  98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true,
  isVersioned = false]]
 
   at
  wicket.Page.checkRendering(Lwicket/MarkupContainer;)V(Page.java:1109)
   at wicket.Page.renderPage()V(Page.java:416)
   at
  wicket.request.target.component.BookmarkablePageRequestTarget.respond
 (Lwicket/RequestCycle;)V(BookmarkablePageRequestTarget.java:226)
   at
  wicket.request.compound.DefaultResponseStrategy.respond
 (Lwicket/RequestCycle;)V(DefaultResponseStrategy.java:49)
   at
  wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond
 (Lwicket/RequestCycle;)V(AbstractCompoundRequestCycleProcessor.java:66)
   at wicket.RequestCycle.step()V(Optimized Method)
   at wicket.RequestCycle.steps()V(RequestCycle.java:1084)
   at wicket.RequestCycle.request()V(RequestCycle.java:448)
   at
  wicket.protocol.http.WicketServlet.doGet
 (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized
  Method)
   at
  javax.servlet.http.HttpServlet.service
 (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized
  Method)
   at
  javax.servlet.http.HttpServlet.service
 (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized
  Method)
   at
  weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
 ()Ljava/lang/Object;(ServletStubImpl.java:1072)
   at
  

Re: [Wicket-user] Strange Weblogic problem with DataTable - help needed!

2007-02-21 Thread Igor Vaynberg

On 2/21/07, Niels Bo [EMAIL PROTECTED] wrote:



and deployed the wicket-examples-1.2.5.war, which is in develpment mode



and what happens if you deploy it in _production_ mode???

-igor
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Strange Weblogic problem with DataTable - help needed!

2007-02-21 Thread Igor Vaynberg

s/production/deployment/

-igor


On 2/21/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


On 2/21/07, Niels Bo [EMAIL PROTECTED] wrote:


 and deployed the wicket-examples-1.2.5.war, which is in develpment mode


and what happens if you deploy it in _production_ mode???

-igor


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Strange Weblogic problem with DataTable - help needed!

2007-02-21 Thread Niels Bo

In production mode, the toolbars disapers after refreshing the page a number
of times.
This means that there are no column headers and no paging lnks.

The difference compared to development mode is that in development mode a
check for unrendred components is performed, so there I get the exception
from
the first post.

Niels
 

igor.vaynberg wrote:
 
 On 2/21/07, Niels Bo [EMAIL PROTECTED] wrote:


 and deployed the wicket-examples-1.2.5.war, which is in develpment mode
 
 
 and what happens if you deploy it in _production_ mode???
 
 -igor
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Strange-Weblogic-problem-with-DataTable---help-needed%21-tf3267752.html#a9087039
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] there is no way to preprocess raw markup in wicket 1.1?

2007-02-21 Thread James McLaughlin

Unfortunately, it would be a pain to separate out the examples I have, but
there are some unit tests under wicket.markup.outputTransformer that I'm
pretty sure will get you going.

hth,
jim

On 2/20/07, Carfield Yim [EMAIL PROTECTED] wrote:


Could you give me an example to show how it work?

On 2/21/07, James McLaughlin [EMAIL PROTECTED] wrote:
 Probably the thing that makes it difficult to use is that by default
 it looks for an xsl in the package of the component the
 XsltTransformerBehavior is being applied to, with the name of its
 componentId.

 So if you have a component foo.bar.MyComp.java you want to transform,
 and it is added to the hierarchy with myId, then it will look for
 foo.bar.myid.xsl to apply for the transform.

 But you can also submit the full path and file name to the
 XsltTransformerBehavior's constructor.

 Other than that, it couldn't be easier to use. Just add(new
 XsltTransformerBehavior())

 On 2/20/07, Carfield Yim [EMAIL PROTECTED] wrote:
  Not really related to the original question, I try to use it before
  but fail as I cannot find any example show how to work with this,
  could you point some resource to me to take a look?
 
  On 2/21/07, James McLaughlin [EMAIL PROTECTED] wrote:
   There is also XsltTransformerBehavior (in wicket.markup.transformer)
  
   hth,
   jim
  
   On 2/20/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:
search for IMarkupFilter
   
Juergen
   
On 2/19/07, wouvlfe [EMAIL PROTECTED] wrote:

 oops, should have been more clear about what i want to do
 i want to be able to preprocess some of the tags (that do not
have wicket
 ids) in the markup and modify them if necessary

 example:
 modify the original tag:
 /a/b/c

 to the tag:
 /e/f

 that is, change the static paths in certain scenarios

 is there a way this can be done through wicket?
 (i dont want to add a 50 different wicket tags for 50 different
static
 resources in my markup file. So I would need to do this without
wicket tags)

 i think Igor pointed me to IMarkupFilter but that didnt help me
accomplish
 what I want.
 The filters dont seem to allow me to modify raw markup.
 dont know why but wicket LOVES to make classes and methods
final.
 so there is no way i can use polymorphism to extend
functionalities of
 wicket's base classes

 vk



 Timo Rantalaiho wrote:
 
  On Mon, 19 Feb 2007, wouvlfe wrote:
  I simply want to be able to modify the values of some static
paths in the
  raw html markup
 
  it seems that there is no way to do it in wicket 1.1 ??
  i started by looking into markup filters
  when i wrote my own markup parser, i couldnt find a way to
replace
  portions
  of the raw html
 
  It would help to know more specifically what you are trying
  to achieve.
 
  But if you want to change URLs to static resources, you
  might be better off providing a custom resource locator
 
 
 
http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
 
  or if paths are produced by wicket components, tweaking your
  own versions of the components.
 
  - Timo
 
  --
  Timo Rantalaiho
  Reaktor Innovations OyURL: http://www.ri.fi/ 
 
 
-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance
to share
  your
  opinions on IT  business topics through brief surveys-and
earn cash
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
http://www.nabble.com/there-is-no-way-to-preprocess-raw-markup-in-wicket-1.1--tf3251667.html#a9040495
 Sent from the Wicket - User mailing list archive at Nabble.com.



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance
to share your
 opinions on IT  business topics through brief surveys-and earn
cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   
   
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT  business topics through 

Re: [Wicket-user] Dumb question about serialization

2007-02-21 Thread Peter Thomas

What is the default for the maxPageVersions?

On 2/21/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


If you don't need back button support at all, just have all your pages
(or probably some base page) override isVersioned (or use
setVersioned) and let it return false. Wicket will not record changes
then, and your URLs between what otherwise would have been versions
keep stable.

Also, set IPageSettings#setMaxPageVersions to 1 and it is best to use
the HttpSessionStore.

Eelco


On 2/21/07, Jesse Barnum [EMAIL PROTECTED] wrote:
 Sorry for the dumb question, but I don't see any overview
 documentation talking about models and serialization in the API. Is
 there any way to not have to serialize objects in a model? I don't
 need support for back button / undo / etc. I have some objects that
 cannot be serialized which need to be displayed in a ListView, and
 when I try to modify the contents of the ListView, it causes
 exceptions because it automatically tries to serialize everything
 which I call modelChanging().

 Is there a setting I can change somewhere to run everything in memory?

 --Jesse Barnum, President, 360Works
 http://www.360works.com
 (770) 234-9293




-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dumb question about serialization

2007-02-21 Thread Igor Vaynberg

7

-igor


On 2/21/07, Peter Thomas [EMAIL PROTECTED] wrote:


What is the default for the maxPageVersions?

On 2/21/07, Eelco Hillenius [EMAIL PROTECTED] wrote:

 If you don't need back button support at all, just have all your pages
 (or probably some base page) override isVersioned (or use
 setVersioned) and let it return false. Wicket will not record changes
 then, and your URLs between what otherwise would have been versions
 keep stable.

 Also, set IPageSettings#setMaxPageVersions to 1 and it is best to use
 the HttpSessionStore.

 Eelco


 On 2/21/07, Jesse Barnum [EMAIL PROTECTED] wrote:
  Sorry for the dumb question, but I don't see any overview
  documentation talking about models and serialization in the API. Is
  there any way to not have to serialize objects in a model? I don't
  need support for back button / undo / etc. I have some objects that
  cannot be serialized which need to be displayed in a ListView, and
  when I try to modify the contents of the ListView, it causes
  exceptions because it automatically tries to serialize everything
  which I call modelChanging().
 
  Is there a setting I can change somewhere to run everything in memory?
 
  --Jesse Barnum, President, 360Works
  http://www.360works.com
  (770) 234-9293
 
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net 's Techsay panel and you'll get the chance to
 share your
  opinions on IT  business topics through brief surveys-and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -

 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] there is no way to preprocess raw markup in wicket 1.1?

2007-02-21 Thread Carfield Yim
That would be great

On 2/22/07, James McLaughlin [EMAIL PROTECTED] wrote:
 Unfortunately, it would be a pain to separate out the examples I have, but
 there are some unit tests under wicket.markup.outputTransformer that I'm
 pretty sure will get you going.

 hth,
 jim


  On 2/20/07, Carfield Yim [EMAIL PROTECTED] wrote:
 
  Could you give me an example to show how it work?
 
  On 2/21/07, James McLaughlin [EMAIL PROTECTED] wrote:
   Probably the thing that makes it difficult to use is that by default
   it looks for an xsl in the package of the component the
   XsltTransformerBehavior is being applied to, with the name of its
   componentId.
  
   So if you have a component foo.bar.MyComp.java you want to transform,
   and it is added to the hierarchy with myId, then it will look for
   foo.bar.myid.xsl to apply for the transform.
  
   But you can also submit the full path and file name to the
   XsltTransformerBehavior's constructor.
  
   Other than that, it couldn't be easier to use. Just add(new
   XsltTransformerBehavior())
  
   On 2/20/07, Carfield Yim  [EMAIL PROTECTED] wrote:
Not really related to the original question, I try to use it before
but fail as I cannot find any example show how to work with this,
could you point some resource to me to take a look?
   
On 2/21/07, James McLaughlin [EMAIL PROTECTED] wrote:
 There is also XsltTransformerBehavior (in wicket.markup.transformer
 )

 hth,
 jim

 On 2/20/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:
  search for IMarkupFilter
 
  Juergen
 
  On 2/19/07, wouvlfe [EMAIL PROTECTED]  wrote:
  
   oops, should have been more clear about what i want to do
   i want to be able to preprocess some of the tags (that do not
 have wicket
   ids) in the markup and modify them if necessary
  
   example:
   modify the original tag:
   /a/b/c
  
   to the tag:
   /e/f
  
   that is, change the static paths in certain scenarios
  
   is there a way this can be done through wicket?
   (i dont want to add a 50 different wicket tags for 50 different
 static
   resources in my markup file. So I would need to do this without
 wicket tags)
  
   i think Igor pointed me to IMarkupFilter but that didnt help me
 accomplish
   what I want.
   The filters dont seem to allow me to modify raw markup.
   dont know why but wicket LOVES to make classes and methods
 final.
   so there is no way i can use polymorphism to extend
 functionalities of
   wicket's base classes
  
   vk
  
  
  
   Timo Rantalaiho wrote:
   
On Mon, 19 Feb 2007, wouvlfe wrote:
I simply want to be able to modify the values of some static
 paths in the
raw html markup
   
it seems that there is no way to do it in wicket 1.1 ??
i started by looking into markup filters
when i wrote my own markup parser, i couldnt find a way to
 replace
portions
of the raw html
   
It would help to know more specifically what you are trying
to achieve.
   
But if you want to change URLs to static resources, you
might be better off providing a custom resource locator
   
   
   
 http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
   
or if paths are produced by wicket components, tweaking your
own versions of the components.
   
- Timo
   
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/ 
   
   
 -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance
 to share
your
opinions on IT  business topics through brief surveys-and
 earn cash
   
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   
 ___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
   --
   View this message in context:
 http://www.nabble.com/there-is-no-way-to-preprocess-raw-markup-in-wicket-1.1--tf3251667.html#a9040495
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
   opinions on IT  business topics through brief surveys-and earn
 cash
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   

[Wicket-user] Best practice and use of detachable models

2007-02-21 Thread Peter Thomas

Hi,

I use Hibernate and have got a reasonably sized app working with Wicket.  I
am aware of the concept of detachable models and want to use it effectively
and I have the following questions.  If the information is already there on
the wiki or something - feel free to point me there.  Apologies in advance
for the dumb questions, but I'm sure there is a general consensus that
Wicket models are tricky to understand.

a) If you don't use detachable models, it is ok but the downside is that
when your page is serialized, your models get serialized and this could take
up a lot of memory. Is my understanding correct?

b) In some cases I use new Label(foo, new PropertyModel(fooModel,
foo))); and in some cases I use new Label(foo, fooModel.getFoo()); which
should I stick to or when should I use which?

c) I have a list of objects I got from Hibernate.  Can you provide (or link
to) some simple code that will show me how to install this model on the
parent component, and I mean in detachable mode.  In my case it is just a
WebPage.

d) Now I am iterating using ListView.  How exactly do I initialize the
ListView so that it uses the installed detachable model?

e) While rendering each row of the ListView, how do I initialize Labels so
that they in turn get the right chunk of the detachable model?

f) And suppose I have a Label that has to be derived by say some string
concatenation or formula and OGNL notation will not work.  Will new
Label(foo, fooModel.getFoo() + bar)kind of hardcoding conflict in some
subtle way with the concept of detachable models?

Thanks,

Peter.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wicket:component, container, pseudo, et al

2007-02-21 Thread Scott Swank
All of the above tags were disparaged in the wicket:component vote.
Are any other tags all but deprecated?  The following are all clearly
standard tags.

   wicket:border
   wicket:child
   wicket:extend
   wicket:message
   wicket:panel

What about

   wicket:link

In particular, which tags (apart from component, container  pseudo)
would I be best off avoiding?

Thank you,
Scott

-- 
Scott Swank
reformed mathematician

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best practice and use of detachable models

2007-02-21 Thread Igor Vaynberg

On 2/21/07, Peter Thomas [EMAIL PROTECTED] wrote:


Hi,

I use Hibernate and have got a reasonably sized app working with Wicket.
I am aware of the concept of detachable models and want to use it
effectively and I have the following questions.  If the information is
already there on the wiki or something - feel free to point me there.
Apologies in advance for the dumb questions, but I'm sure there is a general
consensus that Wicket models are tricky to understand.



what can be tricky about interface IModelT { T getObject(); void
setObject(T t); } ? :)

there is a great wiki page on models that explains all this stuff in detail.

a) If you don't use detachable models, it is ok but the downside is that

when your page is serialized, your models get serialized and this could take
up a lot of memory. Is my understanding correct?



yes. generally you want to keep your session as small as possible. generally
there are no reasons to stick things in there that can be loaded from the
db.

b) In some cases I use new Label(foo, new PropertyModel(fooModel,

foo))); and in some cases I use new Label(foo, fooModel.getFoo());
which should I stick to or when should I use which?



if you dont mind the object put in session then you can do foomodel.getfoo()
(like if its something simple like a string)

c) I have a list of objects I got from Hibernate.  Can you provide (or link

to) some simple code that will show me how to install this model on the
parent component, and I mean in detachable mode.  In my case it is just a
WebPage.



add(new listview(list, new loadabledetachablemodel() {
  public object load() { return
getsession().createcriteria(user.class).list();
}
}

thats all there is to it. consider this:

public class entitymodel extends loadabledetachablemodel {
 private final Class clazz;
 private final Serializable id;

 public entitymodel(Class clazz, Serializable id) {
this.clazz=clazz; this.id=id;
 }

 public object load() { return getsession().get(clazz, id); }
}

the above model is a generalized hibernate entity model. you can do thigs
like

setresponsepage(new ViewUserPage(new entitymodel(user.class, 15)));

this model will load the user when getobject() is called, and keep it in
memory during the request. once the request is done and before the page is
saved this model will null the variable that keeps the user so it is not put
in session. only the two key pieces of information necessary to retrieve
this user (and which are hopefully much smaller then the actual user object)
are kept in session.


d) Now I am iterating using ListView.  How exactly do I initialize the

ListView so that it uses the installed detachable model?



what do you mean? you just pass it into the constructor.

e) While rendering each row of the ListView, how do I initialize Labels so

that they in turn get the right chunk of the detachable model?



just what you did above  - new PropertyModel(item.,getModel(), name);
or if you use PropertyListView just add(new Label(name)) :)

f) And suppose I have a Label that has to be derived by say some string

concatenation or formula and OGNL notation will not work.  Will new
Label(foo, fooModel.getFoo() + bar)kind of hardcoding conflict in some
subtle way with the concept of detachable models?



write a simple model

private static class foomodel extends abstractreadonlymodel {
 private final imodel wrapped;
 public foomodel(imodel wrapped) { this.wrapped=wrapped; }
 public object getobject() { return wrapped.getobject()+bar; }
 public void detach() { wrapped.detach(); // important }
}

you do this a lot, so it is very helpful to create a superclass of the above
that helps with setting and detaching. i leave that as an excercise to you.

-igor


Thanks,


Peter.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best practice and use of detachable models

2007-02-21 Thread Peter Thomas

Thanks Igor.  This really helped, and along the way I realized I missed a
few fundamentals.  One more question below:

d) Now I am iterating using ListView.  How exactly do I initialize the

 ListView so that it uses the installed detachable model?


what do you mean? you just pass it into the constructor.



Ok I get it.  Also, when you do getModel() Wicket will search upwards the
component hierarchy right? So it does not matter even if you are on a child
panel within the page or something, yes?

e) While rendering each row of the ListView, how do I initialize Labels so

 that they in turn get the right chunk of the detachable model?


just what you did above  - new PropertyModel(item.,getModel(), name);
or if you use PropertyListView just add(new Label(name)) :)



Yep.  Honestly was not aware of PropertyListView and will look into that as
well.

f) And suppose I have a Label that has to be derived by say some string

 concatenation or formula and OGNL notation will not work.  Will new
 Label(foo, fooModel.getFoo() + bar)kind of hardcoding conflict in
 some subtle way with the concept of detachable models?


write a simple model

private static class foomodel extends abstractreadonlymodel {
  private final imodel wrapped;
  public foomodel(imodel wrapped) { this.wrapped=wrapped; }
  public object getobject() { return wrapped.getobject()+bar; }
  public void detach() { wrapped.detach(); // important }
}

you do this a lot, so it is very helpful to create a superclass of the
above that helps with setting and detaching. i leave that as an excercise to
you.



Thanks,  will try that out!

- Peter.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best practice and use of detachable models

2007-02-21 Thread Igor Vaynberg

On 2/21/07, Peter Thomas [EMAIL PROTECTED] wrote:


Thanks Igor.  This really helped, and along the way I realized I missed a
few fundamentals.  One more question below:

d) Now I am iterating using ListView.  How exactly do I initialize the
  ListView so that it uses the installed detachable model?


 what do you mean? you just pass it into the constructor.


Ok I get it.  Also, when you do getModel() Wicket will search upwards
the component hierarchy right? So it does not matter even if you are on a
child panel within the page or something, yes?




no, not exactly. if you havent set a model on the component (or set it to
null) and call getmodel() wicket will search upwards for a model that
implements the compound model interface. look up compound property models on
that wiki page.

-igor
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best practice and use of detachable models

2007-02-21 Thread Peter Thomas


no, not exactly. if you havent set a model on the component (or set it to
null) and call getmodel() wicket will search upwards for a model that
implements the compound model interface. look up compound property models on
that wiki page.



Thanks, will do.

One last question:

f) And suppose I have a Label that has to be derived by say some string

 concatenation or formula and OGNL notation will not work.  Will new
 Label(foo, fooModel.getFoo() + bar)kind of hardcoding conflict in
 some subtle way with the concept of detachable models?


write a simple model

private static class foomodel extends abstractreadonlymodel {
  private final imodel wrapped;
  public foomodel(imodel wrapped) { this.wrapped=wrapped; }
  public object getobject() { return wrapped.getobject()+bar; }
  public void detach() { wrapped.detach(); // important }
}

you do this a lot, so it is very helpful to create a superclass of the
above that helps with setting and detaching. i leave that as an excercise to
you.



Can I assume that doing all this may not be worth it if you are only trying
to derive a simple String value to put into a label - so the hardcoding
may be okay for most scenarios?
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user