Re: [Wicket-user] Exception on startup with 2.0 latest and greatest

2006-10-23 Thread Eelco Hillenius
That's because of a signature change in IBehavior this weekend:
onRequest now gets the component the request initiated through passed
in. I thought/ think it's a little bit inconsistent that most methods
of IBehavior get the component passed in, and this method didn't,
while the info is available.

I had some problems updating wicket-contrib-dojo and
wicket-contrib-scriptaculous yesterday, but today it seems to have
worked. You might need to update your own code as well if you directly
implement IBehaviorListener, or extend from AbstractAjaxBehavior.

Eelco


On 10/23/06, James McLaughlin [EMAIL PROTECTED] wrote:
 Exception in thread main
 java.lang.ExceptionInInitializerError
 at wicket.Initializer.init(Initializer.java:52)
 at
 wicket.Application.callInitializers(Application.java:808)
 at wicket.Application.initializeComponents
 (Application.java:598)
 at
 wicket.protocol.http.WicketFilter.init(WicketFilter.java:344)
 at
 org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:162)
 at
 org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets
 (WebApplicationHandler.java:145)
 at
 org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:442)
 at
 org.mortbay.http.HttpServer.start(HttpServer.java:647)
 at jetty.Start.main ( Start.java:62)
 Caused by: java.lang.IllegalArgumentException: Method
 public abstract void
 wicket.behavior.IBehaviorListener.onRequest(wicket.Component)
 in interface interface wicket.behavior.IBehaviorListener
 cannot take any arguments
 at
 wicket.RequestListenerInterface.init(RequestListenerInterface.java:116)
 at
 wicket.RequestListenerInterface.init(RequestListenerInterface.java:78)
 at wicket.behavior.IBehaviorListener$1
 .init(IBehaviorListener.java:41)
 at
 wicket.behavior.IBehaviorListener.clinit(IBehaviorListener.java:41)
 ... 9 more


 thanks,
 jim

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

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




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


[Wicket-user] ModalWindow

2006-10-23 Thread Karl M. Davis



Hello 
all,

I am having a 
problem in my first attempts to use ModalWindow. What I'm trying to do is 
have a ModalWindow that is part of a panel which is added during an Ajax 
update. When I do this-- the Ajax for that page "hangs" 
on:


INFO: 
Responseparsed.Nowinvokingsteps...
INFO: 

INFO: 
InitiatingAjaxGETrequeston/doh/resources/wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js
INFO: 
Invokingpre-callhandler(s)...


... and no other 
Ajax events"work" until I refresh the page manually (i.e. start a new 
request). I've checked and just simply adding the ModalWindow to the panel 
in its constructor (not setting its content or anything) is enough to cause this 
problem. If I add the ModalWindow to the page itself, everything seems to 
work fine. Any ideas what might be causing this? Can ModalWindows be 
children of panels or must they be children of pages? Can they be created 
during an Ajax event?

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


Re: [Wicket-user] Exception on startup with 2.0 latest and greatest

2006-10-23 Thread Eelco Hillenius
Oops, that was a stupid mistake. Too focussed on the bookwriting, so I
didn't get to the testing part. I forgot about the fact that callback
interfaces in Wicket have to be interfaces with one method that takes
no arguments.

Sorry, will fix right away.

Eelco


On 10/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 That's because of a signature change in IBehavior this weekend:
 onRequest now gets the component the request initiated through passed
 in. I thought/ think it's a little bit inconsistent that most methods
 of IBehavior get the component passed in, and this method didn't,
 while the info is available.

 I had some problems updating wicket-contrib-dojo and
 wicket-contrib-scriptaculous yesterday, but today it seems to have
 worked. You might need to update your own code as well if you directly
 implement IBehaviorListener, or extend from AbstractAjaxBehavior.

 Eelco


 On 10/23/06, James McLaughlin [EMAIL PROTECTED] wrote:
  Exception in thread main
  java.lang.ExceptionInInitializerError
  at wicket.Initializer.init(Initializer.java:52)
  at
  wicket.Application.callInitializers(Application.java:808)
  at wicket.Application.initializeComponents
  (Application.java:598)
  at
  wicket.protocol.http.WicketFilter.init(WicketFilter.java:344)
  at
  org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:162)
  at
  org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets
  (WebApplicationHandler.java:145)
  at
  org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:442)
  at
  org.mortbay.http.HttpServer.start(HttpServer.java:647)
  at jetty.Start.main ( Start.java:62)
  Caused by: java.lang.IllegalArgumentException: Method
  public abstract void
  wicket.behavior.IBehaviorListener.onRequest(wicket.Component)
  in interface interface wicket.behavior.IBehaviorListener
  cannot take any arguments
  at
  wicket.RequestListenerInterface.init(RequestListenerInterface.java:116)
  at
  wicket.RequestListenerInterface.init(RequestListenerInterface.java:78)
  at wicket.behavior.IBehaviorListener$1
  .init(IBehaviorListener.java:41)
  at
  wicket.behavior.IBehaviorListener.clinit(IBehaviorListener.java:41)
  ... 9 more
 
 
  thanks,
  jim
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


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


[Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Carfield Yim
Hi all, I just start using wicket and would like to centralize all the
pre-processing logic, like permission checking, and  post-processing
logic, like resource cleanup.

How can I do that in wicket?

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


Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Eelco Hillenius
Depends on what exactly you want to do. Be careful not to force
yourself in a procedural way of programming where you don't need to
(typically, 'centralized' as 'global' should ring alarm bells).

Anyway, A typical global entry point is RequestCycle, with methods
#onBeginRequest and #onEndRequest.  You can provide a custom request
cycle by providing a custom request cycle factory, which you do by
overriding method Application#getRequestCycleFactory.

For permission checking, look at IAuthorizationStrategy, and maybe at
the example projects wicket-auth-roles/wicket-auth-roles-examples.

Eelco


On 10/23/06, Carfield Yim [EMAIL PROTECTED] wrote:
 Hi all, I just start using wicket and would like to centralize all the
 pre-processing logic, like permission checking, and  post-processing
 logic, like resource cleanup.

 How can I do that in wicket?

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


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


Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Carfield Yim
On 10/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Depends on what exactly you want to do. Be careful not to force
 yourself in a procedural way of programming where you don't need to
 (typically, 'centralized' as 'global' should ring alarm bells).


Yes... in fact I've do a simple web search about those topics and
sound like wicket support these goal much difference from what I does
before.

In the past what I do is having a single servlet serve all request:

doGet() {
preprocessing();
String actioncode = req.getParameter(code);
componentManager.getAction(actioncode).execute();
postprocessing();
}

I guess much applications using wicket still need similar operation,
right? Or it is totally not that case?

 Anyway, A typical global entry point is RequestCycle, with methods
 #onBeginRequest and #onEndRequest.  You can provide a custom request
 cycle by providing a custom request cycle factory, which you do by
 overriding method Application#getRequestCycleFactory.


So it is WebApplication.newRequestCycleProcessor().processEvents(/*
new RequestCycle I like */)

Right?

 For permission checking, look at IAuthorizationStrategy, and maybe at
 the example projects wicket-auth-roles/wicket-auth-roles-examples.


I see, thanks for the informations

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


Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Eelco Hillenius
On 10/23/06, Carfield Yim [EMAIL PROTECTED] wrote:
 On 10/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
  Depends on what exactly you want to do. Be careful not to force
  yourself in a procedural way of programming where you don't need to
  (typically, 'centralized' as 'global' should ring alarm bells).
 

 Yes... in fact I've do a simple web search about those topics and
 sound like wicket support these goal much difference from what I does
 before.

 In the past what I do is having a single servlet serve all request:

 doGet() {
 preprocessing();
 String actioncode = req.getParameter(code);
 componentManager.getAction(actioncode).execute();
 postprocessing();
 }

 I guess much applications using wicket still need similar operation,
 right? Or it is totally not that case?

Try to do without it first, and when there are specific things you
can't do, ask a question here. Components and resources  should take
care of their own cleanup etc. You don't need to directly get
parameters from the request. Rather then the code that you provide,
with Wicket you would do e.g. (Wicket 2.0 code):

class ActionLink extends Link {

  private final String action;
  @SpringBean ComponentManager componentManager;

  public ActionLink(MarkupContainer parent, String id, String action) {
super(parent, id);
this.action = action;
  }

  public void onClick() {
componentManager.getAction(action).execute();
  }
}

And in fact I'm wondering what that component manager is doing anyway?
As this would be more typical:

final String someBar ...
new Link(this, doFoo) {
  public void onClick() {
fooHandler.doFoo(someBar);
  }
}

  Anyway, A typical global entry point is RequestCycle, with methods
  #onBeginRequest and #onEndRequest.  You can provide a custom request
  cycle by providing a custom request cycle factory, which you do by
  overriding method Application#getRequestCycleFactory.
 

 So it is WebApplication.newRequestCycleProcessor().processEvents(/*
 new RequestCycle I like */)

 Right?

no, it's more like:

protected IRequestCycleFactory getRequestCycleFactory() {
  return new IRequestCycleFactory() {
public RequestCycle newRequestCycle(
  Session session, Request request, Response response) {

return new CountingRequestCycle((WebSession)session,
(WebRequest)request,
(WebResponse)response);
};
}

public class CountingRequestCycle extends WebRequestCycle {

  public CountingRequestCycle(WebSession session,
  WebRequest request, Response response) {
super(session, request, response);
  }

  protected void onBeginRequest() {
((CountingWebSession) getSession()).hit();
  }
}

etc.

Eelco

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


Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Carfield Yim
 And in fact I'm wondering what that component manager is doing anyway?
 As this would be more typical:


Look like we've some misunderstanding here, the component manager is
something that return a service for my old application. Where a
service in that application like an Object of Page in wicket. So the
idea is just every time a before a page render and after a page
render, or doing the operation. Run some setup before and cleanup
afterward.

 no, it's more like:


Yes, just figure out that, post it here please let me know if I am wrong:

public class Controller extends WebApplication {
public Class getHomePage() {
return UserMan.class;
}

@Override
protected IRequestCycleFactory getDefaultRequestCycleFactory() {
final IRequestCycleFactory factory =
super.getDefaultRequestCycleFactory();
return new GenucoRequestCycleFactory(factory);
}

private static class GenucoRequestCycleFactory implements
IRequestCycleFactory {
private static final long serialVersionUID = 1L;
private final IRequestCycleFactory factory;

public GenucoRequestCycleFactory(final IRequestCycleFactory factory) {
super();
this.factory = factory;
}

public RequestCycle newRequestCycle(final Session arg0, final
Request arg1, final Response arg2) {
final RequestCycle parentCycle =
factory.newRequestCycle(arg0, arg1, arg2);
return new RequestCycle(arg0, arg1, arg2) {
@Override
public IRequestCycleProcessor getProcessor() {
return parentCycle.getProcessor();
}

@Override
protected ClientInfo newClientInfo() {
return null;
}

@Override
public boolean getRedirect() {
return parentCycle.getRedirect();
}

@Override
protected void onBeginRequest() {
super.onBeginRequest();
// custom setup
}

@Override
protected void onEndRequest() {
super.onEndRequest();
// custom teardown
}

@Override
public Page onRuntimeException(final Page arg01, final
RuntimeException arg11) {
return parentCycle.onRuntimeException(arg01, arg11);
}

@Override
public void setUpdateSession(final boolean arg01) {
parentCycle.setUpdateSession(arg01);
}

@Override
public String toString() {
return parentCycle.toString();
}

@Override
public void redirectTo(final Page arg01) {
parentCycle.redirectTo(arg01);
}

};
}
}

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


Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Eelco Hillenius
On 10/23/06, Carfield Yim [EMAIL PROTECTED] wrote:
  And in fact I'm wondering what that component manager is doing anyway?
  As this would be more typical:
 
 Look like we've some misunderstanding here, the component manager is
 something that return a service for my old application. Where a
 service in that application like an Object of Page in wicket. So the
 idea is just every time a before a page render and after a page
 render, or doing the operation. Run some setup before and cleanup
 afterward.

Yeah, I expected it was something like that, hence the second example I gave.

This is a typical example of 'the unlearning effect' people go through
when used to developing with frameworks like Struts etc. Basically,
you have to let go of the request/response way of programming you
would do with other frameworks. Just try to code like you can see in
the examples etc.

 Yes, just figure out that, post it here please let me know if I am wrong:

You should provide instances of WebRequestCycle rather then
RequestCycle directly. And then let the super class handle things like
onRuntimeException and getRedirect, and only override those methods
you really need.

But again, instead of starting in this direction, postpone until you
are really sure you need a custom request cycle. In 99% of the case
you won't need it, and instead should focus on components instead.

Eelco

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


Re: [Wicket-user] AjaxTabbedPanel - changing tab label

2006-10-23 Thread Sharma, Kamlesh



I made further digging in the issue and found that 
TabbedPanel component needs to provide access to its tabs list attribute and 
ITab interface needs setTitle method. I am new to wicket hence, I don't know 
weather therewill issues to add, these facilities to TabbedPanel 
component. I will appreciate, if Igor or other developer help us 
here.

Regards
--Kamlesh


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Sharma, 
KamleshSent: Sunday, October 22, 2006 9:19 PMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
AjaxTabbedPanel - changing tab label

Thanks. Yes, I did. I could see the changed tab object, in 
respond(final RequestCycle requestCycle) method of AjaxRequestTarget. But in respondComponent(final Response response, 
final String 
markupId, final 
Component component), when component.renderComponent() is called, 
It spits old markup. I could not see the changed label going to respondComponent 
method.

--Kamlesh


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Karl M. 
DavisSent: Sunday, October 22, 2006 8:30 PMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
AjaxTabbedPanel - changing tab label

I haven't checked, but since AbstractTab takes a Model for 
the title, you could try just changing the value that model 
returns.

e.g.
Model tabLabel = new Model("label1");
... new AbstractTab(tabLabel) {...

... onAjaxUpdate ...
tabLabel.setObject("label2");
...



From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Sharma, 
KamleshSent: Sunday, October 22, 2006 8:08 AMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
AjaxTabbedPanel - changing tab label


Hi

I am using 
AjaxTabbedPanel and needs to change some tab labels(example from existing label 
"Search" to "New Search"on onAjaxUpdate callback method. Is it 
possible?

Regards
Kam

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


Re: [Wicket-user] getObjectAsString always null in 1.2.2

2006-10-23 Thread Johan Compagner
that seems to be the error then.What is the full stacktrace of that error?johanOn 10/23/06, kurt heston 
[EMAIL PROTECTED] wrote:Is this normal behavior or a good place to start chasing down my issue:
java.lang.NoSuchFieldException: usernamekurt heston wrote: Something changed about how I'm supposed to override WebRequestCycle. This is where my values are disappearing.Reading up on it now...
 Igor Vaynberg wrote: yes you are too vague, and another problem is that this list has been down because of sf.net http://sf.net
 for a while. -Igor On 10/2/06, * kurt heston* [EMAIL PROTECTED] mailto:
[EMAIL PROTECTED] wrote: Am I being too vague here to get an answer?Do I need to post my code? kurt heston wrote:  All I did was switch from 
wicket-1.2-rc3.jar to wicket-1.2.2.jar and my  SignIn page, adapted fromJuergen's code, stopped working.The fields  are always an empty string.
   What did I miss in the release notes?   -  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 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV  ___
  Wicket-user mailing list  Wicket-user@lists.sourceforge.net mailto:
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 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Scott Swank
In a related vein, where would you suggest starting  ending JTA
transactions (or Hibernate transactions or whatever).  Something like
99+% of the time transactions should start with the client request and
end with the client request -- whether that's Wicket or Swing or
whatever.  Multiple transactions (except for nested transactions for
things like logging) are almost always a mistake and transactions
spanning multiple client interactions are even more often a mistake.

Is #onBeginRequest and #onEndRequest a reasonable place to begin/end
transactions -- or are there transaction management hooks otherwise in
place in Wicket?

Thanks,
Scott

On 10/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 On 10/23/06, Carfield Yim [EMAIL PROTECTED] wrote:
   And in fact I'm wondering what that component manager is doing anyway?
   As this would be more typical:
  
  Look like we've some misunderstanding here, the component manager is
  something that return a service for my old application. Where a
  service in that application like an Object of Page in wicket. So the
  idea is just every time a before a page render and after a page
  render, or doing the operation. Run some setup before and cleanup
  afterward.

 Yeah, I expected it was something like that, hence the second example I gave.

 This is a typical example of 'the unlearning effect' people go through
 when used to developing with frameworks like Struts etc. Basically,
 you have to let go of the request/response way of programming you
 would do with other frameworks. Just try to code like you can see in
 the examples etc.

  Yes, just figure out that, post it here please let me know if I am wrong:

 You should provide instances of WebRequestCycle rather then
 RequestCycle directly. And then let the super class handle things like
 onRuntimeException and getRedirect, and only override those methods
 you really need.

 But again, instead of starting in this direction, postpone until you
 are really sure you need a custom request cycle. In 99% of the case
 you won't need it, and instead should focus on components instead.

 Eelco

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



-- 
Scott Swank
reformed mathematician

Power is not a means, it is an end. One does not establish a
dictatorship in order to safeguard a revolution; one makes the
revolution in order to establish the dictatorship. The object of
persecution is persecution. The object of torture is torture. The
object of power is power.  -- George Orwell, 1984

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


Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Martijn Dashorst
The request cycle is perfectly suited for that, though some/many
prefer to use the hibernate filter supplied with Spring for managing
the transactions.

Martijn

On 10/23/06, Scott Swank [EMAIL PROTECTED] wrote:
 In a related vein, where would you suggest starting  ending JTA
 transactions (or Hibernate transactions or whatever).  Something like
 99+% of the time transactions should start with the client request and
 end with the client request -- whether that's Wicket or Swing or
 whatever.  Multiple transactions (except for nested transactions for
 things like logging) are almost always a mistake and transactions
 spanning multiple client interactions are even more often a mistake.

 Is #onBeginRequest and #onEndRequest a reasonable place to begin/end
 transactions -- or are there transaction management hooks otherwise in
 place in Wicket?

 Thanks,
 Scott

 On 10/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
  On 10/23/06, Carfield Yim [EMAIL PROTECTED] wrote:
And in fact I'm wondering what that component manager is doing anyway?
As this would be more typical:
   
   Look like we've some misunderstanding here, the component manager is
   something that return a service for my old application. Where a
   service in that application like an Object of Page in wicket. So the
   idea is just every time a before a page render and after a page
   render, or doing the operation. Run some setup before and cleanup
   afterward.
 
  Yeah, I expected it was something like that, hence the second example I 
  gave.
 
  This is a typical example of 'the unlearning effect' people go through
  when used to developing with frameworks like Struts etc. Basically,
  you have to let go of the request/response way of programming you
  would do with other frameworks. Just try to code like you can see in
  the examples etc.
 
   Yes, just figure out that, post it here please let me know if I am wrong:
 
  You should provide instances of WebRequestCycle rather then
  RequestCycle directly. And then let the super class handle things like
  onRuntimeException and getRedirect, and only override those methods
  you really need.
 
  But again, instead of starting in this direction, postpone until you
  are really sure you need a custom request cycle. In 99% of the case
  you won't need it, and instead should focus on components instead.
 
  Eelco
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 --
 Scott Swank
 reformed mathematician

 Power is not a means, it is an end. One does not establish a
 dictatorship in order to safeguard a revolution; one makes the
 revolution in order to establish the dictatorship. The object of
 persecution is persecution. The object of torture is torture. The
 object of power is power.  -- George Orwell, 1984

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



-- 
a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a
for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a
at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in
the World!/a

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


Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Scott Swank
Thank you.  Is that filter as in servlet filter?

On 10/23/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
 The request cycle is perfectly suited for that, though some/many
 prefer to use the hibernate filter supplied with Spring for managing
 the transactions.

 Martijn

 On 10/23/06, Scott Swank [EMAIL PROTECTED] wrote:
  In a related vein, where would you suggest starting  ending JTA
  transactions (or Hibernate transactions or whatever).  Something like
  99+% of the time transactions should start with the client request and
  end with the client request -- whether that's Wicket or Swing or
  whatever.  Multiple transactions (except for nested transactions for
  things like logging) are almost always a mistake and transactions
  spanning multiple client interactions are even more often a mistake.
 
  Is #onBeginRequest and #onEndRequest a reasonable place to begin/end
  transactions -- or are there transaction management hooks otherwise in
  place in Wicket?
 
  Thanks,
  Scott
 
  On 10/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
   On 10/23/06, Carfield Yim [EMAIL PROTECTED] wrote:
 And in fact I'm wondering what that component manager is doing anyway?
 As this would be more typical:

Look like we've some misunderstanding here, the component manager is
something that return a service for my old application. Where a
service in that application like an Object of Page in wicket. So the
idea is just every time a before a page render and after a page
render, or doing the operation. Run some setup before and cleanup
afterward.
  
   Yeah, I expected it was something like that, hence the second example I 
   gave.
  
   This is a typical example of 'the unlearning effect' people go through
   when used to developing with frameworks like Struts etc. Basically,
   you have to let go of the request/response way of programming you
   would do with other frameworks. Just try to code like you can see in
   the examples etc.
  
Yes, just figure out that, post it here please let me know if I am 
wrong:
  
   You should provide instances of WebRequestCycle rather then
   RequestCycle directly. And then let the super class handle things like
   onRuntimeException and getRedirect, and only override those methods
   you really need.
  
   But again, instead of starting in this direction, postpone until you
   are really sure you need a custom request cycle. In 99% of the case
   you won't need it, and instead should focus on components instead.
  
   Eelco
  
   -
   Using Tomcat but need to do more? Need to support web services, security?
   Get stuff done quickly with pre-integrated technology to make your job 
   easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  --
  Scott Swank
  reformed mathematician
 
  Power is not a means, it is an end. One does not establish a
  dictatorship in order to safeguard a revolution; one makes the
  revolution in order to establish the dictatorship. The object of
  persecution is persecution. The object of torture is torture. The
  object of power is power.  -- George Orwell, 1984
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 --
 a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a
 for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a
 at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in
 the World!/a

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



-- 
Scott Swank
reformed mathematician

Power is not a means, it is an end. One does not establish a
dictatorship in order to safeguard a revolution; one makes the
revolution in order to 

Re: [Wicket-user] AjaxTabbedPanel - changing tab label

2006-10-23 Thread Igor Vaynberg
TabbedPanel has a getTabs() method which returns the list of ITab objects.if you want to have a settitle() then implement ITab directly instead of using AbstractTab.dont forget to add the panel to the ajax target when you change the label.
-IgorOn 10/23/06, Sharma, Kamlesh [EMAIL PROTECTED] wrote:







I made further digging in the issue and found that 
TabbedPanel component needs to provide access to its tabs list attribute and 
ITab interface needs setTitle method. I am new to wicket hence, I don't know 
weather therewill issues to add, these facilities to TabbedPanel 
component. I will appreciate, if Igor or other developer help us 
here.

Regards
--Kamlesh


From: [EMAIL PROTECTED]
 
[mailto:[EMAIL PROTECTED]] On Behalf Of Sharma, 
KamleshSent: Sunday, October 22, 2006 9:19 PMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
AjaxTabbedPanel - changing tab label

Thanks. Yes, I did. I could see the changed tab object, in 
respond(final RequestCycle requestCycle) method of AjaxRequestTarget. But in respondComponent(
final Response response, 
final String 
markupId, final 
Component component), when component.renderComponent() is called, 
It spits old markup. I could not see the changed label going to respondComponent 
method.

--Kamlesh


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of Karl M. 
DavisSent: Sunday, October 22, 2006 8:30 PMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
AjaxTabbedPanel - changing tab label

I haven't checked, but since AbstractTab takes a Model for 
the title, you could try just changing the value that model 
returns.

e.g.
Model tabLabel = new Model(label1);
... new AbstractTab(tabLabel) {...

... onAjaxUpdate ...
tabLabel.setObject(label2);
...



From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of Sharma, 
KamleshSent: Sunday, October 22, 2006 8:08 AMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
AjaxTabbedPanel - changing tab label


Hi

I am using 
AjaxTabbedPanel and needs to change some tab labels(example from existing label 
Search to New Searchon onAjaxUpdate callback method. Is it 
possible?

Regards
Kam


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

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


Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Igor Vaynberg
see org.springframework.orm.hibernate3.support.OpenSessionInViewFilter-IgorOn 10/23/06, Scott Swank 
[EMAIL PROTECTED] wrote:Thank you.Is that filter as in servlet filter?
On 10/23/06, Martijn Dashorst [EMAIL PROTECTED] wrote: The request cycle is perfectly suited for that, though some/many prefer to use the hibernate filter supplied with Spring for managing
 the transactions. Martijn On 10/23/06, Scott Swank [EMAIL PROTECTED] wrote:  In a related vein, where would you suggest starting  ending JTA
  transactions (or Hibernate transactions or whatever).Something like  99+% of the time transactions should start with the client request and  end with the client request -- whether that's Wicket or Swing or
  whatever.Multiple transactions (except for nested transactions for  things like logging) are almost always a mistake and transactions  spanning multiple client interactions are even more often a mistake.
   Is #onBeginRequest and #onEndRequest a reasonable place to begin/end  transactions -- or are there transaction management hooks otherwise in  place in Wicket? 
  Thanks,  Scott   On 10/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote:   On 10/23/06, Carfield Yim 
[EMAIL PROTECTED] wrote: And in fact I'm wondering what that component manager is doing anyway? As this would be more typical:
Look like we've some misunderstanding here, the component manager issomething that return a service for my old application. Where aservice in that application like an Object of Page in wicket. So the
idea is just every time a before a page render and after a pagerender, or doing the operation. Run some setup before and cleanupafterward.  
   Yeah, I expected it was something like that, hence the second example I gave. This is a typical example of 'the unlearning effect' people go through   when used to developing with frameworks like Struts etc. Basically,
   you have to let go of the request/response way of programming you   would do with other frameworks. Just try to code like you can see in   the examples etc.  
Yes, just figure out that, post it here please let me know if I am wrong: You should provide instances of WebRequestCycle rather then   RequestCycle directly. And then let the super class handle things like
   onRuntimeException and getRedirect, and only override those methods   you really need. But again, instead of starting in this direction, postpone until you
   are really sure you need a custom request cycle. In 99% of the case   you won't need it, and instead should focus on components instead. Eelco  
   -   Using Tomcat but need to do more? Need to support web services, security?   Get stuff done quickly with pre-integrated technology to make your job easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___   Wicket-user mailing list   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user  --  Scott Swank
  reformed mathematician   Power is not a means, it is an end. One does not establish a  dictatorship in order to safeguard a revolution; one makes the  revolution in order to establish the dictatorship. The object of
  persecution is persecution. The object of torture is torture. The  object of power is power.-- George Orwell, 1984   -
  Using Tomcat but need to do more? Need to support web services, security?  Get stuff done quickly with pre-integrated technology to make your job easier  Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___  Wicket-user mailing list  Wicket-user@lists.sourceforge.net  
https://lists.sourceforge.net/lists/listinfo/wicket-user  -- a href="" href="http://www.thebeststuffintheworld.com/vote_for/wicket">http://www.thebeststuffintheworld.com/vote_for/wicket
Vote/a for a href="" href="http://www.thebeststuffintheworld.com/stuff/wicket">http://www.thebeststuffintheworld.com/stuff/wicketWicket/a at the a href=""
http://www.thebeststuffintheworld.com/Best Stuff in the World!/a -
 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1
 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user--Scott Swankreformed mathematicianPower is 

Re: [Wicket-user] AjaxTabbedPanel - changing tab label

2006-10-23 Thread Sharma, Kamlesh



Thanks, Igor. I don't see getTabs method on TabbedPanel, I 
have wicket-extensions-1.2.2, it may be older version. Do I have to pull 
wicket-extensions from svn repository?

Regards
--Kamlesh



From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Igor 
VaynbergSent: Monday, October 23, 2006 12:27 PMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
AjaxTabbedPanel - changing tab label
TabbedPanel has a getTabs() method which returns the list of ITab 
objects.if you want to have a settitle() then implement ITab directly 
instead of using AbstractTab.dont forget to add the panel to the ajax 
target when you change the label. -Igor
On 10/23/06, Sharma, 
Kamlesh [EMAIL PROTECTED] 
wrote:

  
  I made 
  further digging in the issue and found that TabbedPanel component needs to 
  provide access to its tabs list attribute and ITab interface needs setTitle 
  method. I am new to wicket hence, I don't know weather therewill 
  issues to add, these facilities to TabbedPanel component. I will 
  appreciate, if Igor or other developer help us here.
  
  Regards
  --Kamlesh
  
  
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of 
  Sharma, KamleshSent: Sunday, October 22, 2006 9:19 
  PMTo: wicket-user@lists.sourceforge.netSubject: Re: 
  [Wicket-user] AjaxTabbedPanel - changing tab 
  label
  
  Thanks. 
  Yes, I did. I could see the changed tab object, in respond(final RequestCycle requestCycle) method 
  of AjaxRequestTarget. But in respondComponent( final Response response, final String markupId, 
  final Component 
  component), when component.renderComponent() is called, It spits 
  old markup. I could not see the changed label going to respondComponent 
  method.
  
  --Kamlesh
  
  
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of 
  Karl M. DavisSent: Sunday, October 22, 2006 8:30 
  PMTo: wicket-user@lists.sourceforge.netSubject: Re: 
  [Wicket-user] AjaxTabbedPanel - changing tab label
  
  I haven't 
  checked, but since AbstractTab takes a Model for the title, you could try just 
  changing the value that model returns.
  
  e.g.
  Model 
  tabLabel = new Model("label1");
  ... new 
  AbstractTab(tabLabel) {...
  
  ... 
  onAjaxUpdate ...
  tabLabel.setObject("label2");
  ...
  
  
  
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of 
  Sharma, KamleshSent: Sunday, October 22, 2006 8:08 
  AMTo: wicket-user@lists.sourceforge.netSubject: Re: 
  [Wicket-user] AjaxTabbedPanel - changing tab label
  
  
  Hi
  
  I am using 
  AjaxTabbedPanel and needs to change some tab labels(example from existing 
  label "Search" to "New Search"on onAjaxUpdate callback method. Is it 
  possible?
  
  Regards
  Kam
  -Using 
  Tomcat but need to do more? Need to support web services, security?Get 
  stuff done quickly with pre-integrated technology to make your job easier 
  Download IBM WebSphere Application Server v.1.0.1 based on Apache 
  Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user 
  mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user 
  
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Carfield Yim
Thx Eelco for answereing , and Scott Swank point out one of the
functions I think I need.

On 10/23/06, Scott Swank [EMAIL PROTECTED] wrote:
 In a related vein, where would you suggest starting  ending JTA
 transactions (or Hibernate transactions or whatever).  Something like
 99+% of the time transactions should start with the client request and
 end with the client request -- whether that's Wicket or Swing or
 whatever.  Multiple transactions (except for nested transactions for
 things like logging) are almost always a mistake and transactions
 spanning multiple client interactions are even more often a mistake.

 Is #onBeginRequest and #onEndRequest a reasonable place to begin/end
 transactions -- or are there transaction management hooks otherwise in
 place in Wicket?

 Thanks,
 Scott

 On 10/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
  On 10/23/06, Carfield Yim [EMAIL PROTECTED] wrote:
And in fact I'm wondering what that component manager is doing anyway?
As this would be more typical:
   
   Look like we've some misunderstanding here, the component manager is
   something that return a service for my old application. Where a
   service in that application like an Object of Page in wicket. So the
   idea is just every time a before a page render and after a page
   render, or doing the operation. Run some setup before and cleanup
   afterward.
 
  Yeah, I expected it was something like that, hence the second example I 
  gave.
 
  This is a typical example of 'the unlearning effect' people go through
  when used to developing with frameworks like Struts etc. Basically,
  you have to let go of the request/response way of programming you
  would do with other frameworks. Just try to code like you can see in
  the examples etc.
 
   Yes, just figure out that, post it here please let me know if I am wrong:
 
  You should provide instances of WebRequestCycle rather then
  RequestCycle directly. And then let the super class handle things like
  onRuntimeException and getRedirect, and only override those methods
  you really need.
 
  But again, instead of starting in this direction, postpone until you
  are really sure you need a custom request cycle. In 99% of the case
  you won't need it, and instead should focus on components instead.
 
  Eelco
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 --
 Scott Swank
 reformed mathematician

 Power is not a means, it is an end. One does not establish a
 dictatorship in order to safeguard a revolution; one makes the
 revolution in order to establish the dictatorship. The object of
 persecution is persecution. The object of torture is torture. The
 object of power is power.  -- George Orwell, 1984

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


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


Re: [Wicket-user] ModalWindow

2006-10-23 Thread Matej Knopp
Can you tell me what version of Wicket are you using? There have been 
couple of fixes since the latest stable release, so you might want to 
try the latest svn version.

If the latest doesn't work I'll certainly look at that.

-Matej

Karl M. Davis wrote:
 Hello all,
  
 I am having a problem in my first attempts to use ModalWindow.  What I'm 
 trying to do is have a ModalWindow that is part of a panel which is 
 added during an Ajax update.  When I do this-- the Ajax for that page 
 hangs on:
 
 *INFO: *Response parsed. Now invoking steps...
 *INFO: *
 *INFO: 
 *Initiating Ajax GET request on 
 /doh/resources/wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js
 *INFO: *Invoking pre-call handler(s)...
 
  
 ... and no other Ajax events work until I refresh the page manually 
 (i.e. start a new request).  I've checked and just simply adding the 
 ModalWindow to the panel in its constructor (not setting its content or 
 anything) is enough to cause this problem.  If I add the ModalWindow to 
 the page itself, everything seems to work fine.  Any ideas what might be 
 causing this?  Can ModalWindows be children of panels or must they be 
 children of pages?  Can they be created during an Ajax event?
  
 -- Karl
 
 
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 
 
 
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

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


[Wicket-user] location.href not working on button

2006-10-23 Thread Steve Knight
Hello,I have a Cancel button in my forms that, when clicked, should redirect the user back to the previous page. This works fine in all but one of my forms. It is almost identical to all the others, so I don't know why it doesn't work. I am simply using setResponsePage(backPage) in the onClick method of the button, and it generates the correct onclick code.
After doing some research, I have found other people with the same _javascript_ issue and it seems to be that 'location.href=''t always work inside of forms. To test this I created another button and tried using '
self.location=

', and it works fine.Anyone else run into this problem before or know of any workarounds? Steve


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


Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Scott Swank
Very helpful, thanks Igor.

On 10/23/06, Carfield Yim [EMAIL PROTECTED] wrote:
 Thx Eelco for answereing , and Scott Swank point out one of the
 functions I think I need.

 On 10/23/06, Scott Swank [EMAIL PROTECTED] wrote:
  In a related vein, where would you suggest starting  ending JTA
  transactions (or Hibernate transactions or whatever).  Something like
  99+% of the time transactions should start with the client request and
  end with the client request -- whether that's Wicket or Swing or
  whatever.  Multiple transactions (except for nested transactions for
  things like logging) are almost always a mistake and transactions
  spanning multiple client interactions are even more often a mistake.
 
  Is #onBeginRequest and #onEndRequest a reasonable place to begin/end
  transactions -- or are there transaction management hooks otherwise in
  place in Wicket?
 
  Thanks,
  Scott
 
  On 10/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
   On 10/23/06, Carfield Yim [EMAIL PROTECTED] wrote:
 And in fact I'm wondering what that component manager is doing anyway?
 As this would be more typical:

Look like we've some misunderstanding here, the component manager is
something that return a service for my old application. Where a
service in that application like an Object of Page in wicket. So the
idea is just every time a before a page render and after a page
render, or doing the operation. Run some setup before and cleanup
afterward.
  
   Yeah, I expected it was something like that, hence the second example I 
   gave.
  
   This is a typical example of 'the unlearning effect' people go through
   when used to developing with frameworks like Struts etc. Basically,
   you have to let go of the request/response way of programming you
   would do with other frameworks. Just try to code like you can see in
   the examples etc.
  
Yes, just figure out that, post it here please let me know if I am 
wrong:
  
   You should provide instances of WebRequestCycle rather then
   RequestCycle directly. And then let the super class handle things like
   onRuntimeException and getRedirect, and only override those methods
   you really need.
  
   But again, instead of starting in this direction, postpone until you
   are really sure you need a custom request cycle. In 99% of the case
   you won't need it, and instead should focus on components instead.
  
   Eelco
  
   -
   Using Tomcat but need to do more? Need to support web services, security?
   Get stuff done quickly with pre-integrated technology to make your job 
   easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  --
  Scott Swank
  reformed mathematician
 
  Power is not a means, it is an end. One does not establish a
  dictatorship in order to safeguard a revolution; one makes the
  revolution in order to establish the dictatorship. The object of
  persecution is persecution. The object of torture is torture. The
  object of power is power.  -- George Orwell, 1984
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

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



-- 
Scott Swank
reformed mathematician

Power is not a means, it is an end. One does not establish a
dictatorship in order to safeguard a revolution; one makes the
revolution in order to establish the dictatorship. The object of
persecution is persecution. The object of torture is torture. The
object of power is power.  -- George Orwell, 1984

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly 

Re: [Wicket-user] AjaxTabbedPanel - changing tab label

2006-10-23 Thread Igor Vaynberg
looks that way.-IgorOn 10/23/06, Sharma, Kamlesh [EMAIL PROTECTED] wrote:







Thanks, Igor. I don't see getTabs method on TabbedPanel, I 
have wicket-extensions-1.2.2, it may be older version. Do I have to pull 
wicket-extensions from svn repository?

Regards
--Kamlesh



From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of Igor 
VaynbergSent: Monday, October 23, 2006 12:27 PMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
AjaxTabbedPanel - changing tab label
TabbedPanel has a getTabs() method which returns the list of ITab 
objects.if you want to have a settitle() then implement ITab directly 
instead of using AbstractTab.dont forget to add the panel to the ajax 
target when you change the label. -Igor
On 10/23/06, Sharma, 
Kamlesh [EMAIL PROTECTED] 
wrote:

  
  I made 
  further digging in the issue and found that TabbedPanel component needs to 
  provide access to its tabs list attribute and ITab interface needs setTitle 
  method. I am new to wicket hence, I don't know weather therewill 
  issues to add, these facilities to TabbedPanel component. I will 
  appreciate, if Igor or other developer help us here.
  
  Regards
  --Kamlesh
  
  
  From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of 
  Sharma, KamleshSent: Sunday, October 22, 2006 9:19 
  PMTo: wicket-user@lists.sourceforge.netSubject: Re: 
  [Wicket-user] AjaxTabbedPanel - changing tab 
  label
  
  Thanks. 
  Yes, I did. I could see the changed tab object, in respond(final RequestCycle requestCycle) method 
  of AjaxRequestTarget. But in respondComponent( final Response response, 
final String markupId, 
  final Component 
  component), when component.renderComponent() is called, It spits 
  old markup. I could not see the changed label going to respondComponent 
  method.
  
  --Kamlesh
  
  
  From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]] On Behalf Of 
  Karl M. DavisSent: Sunday, October 22, 2006 8:30 
  PMTo: wicket-user@lists.sourceforge.netSubject: Re: 
  [Wicket-user] AjaxTabbedPanel - changing tab label
  
  I haven't 
  checked, but since AbstractTab takes a Model for the title, you could try just 
  changing the value that model returns.
  
  e.g.
  Model 
  tabLabel = new Model(label1);
  ... new 
  AbstractTab(tabLabel) {...
  
  ... 
  onAjaxUpdate ...
  tabLabel.setObject(label2);
  ...
  
  
  
  From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]] On Behalf Of 
  Sharma, KamleshSent: Sunday, October 22, 2006 8:08 
  AMTo: wicket-user@lists.sourceforge.netSubject: Re: 
  [Wicket-user] AjaxTabbedPanel - changing tab label
  
  
  Hi
  
  I am using 
  AjaxTabbedPanel and needs to change some tab labels(example from existing 
  label Search to New Searchon onAjaxUpdate callback method. Is it 
  possible?
  
  Regards
  Kam
  -Using 
  Tomcat but need to do more? Need to support web services, security?Get 
  stuff done quickly with pre-integrated technology to make your job easier 
  Download IBM WebSphere Application Server v.1.0.1 based on Apache 
  Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user 
  mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user 
  

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

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


Re: [Wicket-user] ModalWindow

2006-10-23 Thread Karl M. Davis
It's one of the 1.2.2 snapshots from the old 1.2.x branch (which seems to
have been switched to 1.x now).  I'll install the latest snapshots and let
you know if that fixes it.

-- Karl

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matej Knopp
Sent: Monday, October 23, 2006 10:05 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] ModalWindow

Can you tell me what version of Wicket are you using? There have been couple
of fixes since the latest stable release, so you might want to try the
latest svn version.

If the latest doesn't work I'll certainly look at that.

-Matej

Karl M. Davis wrote:
 Hello all,
  
 I am having a problem in my first attempts to use ModalWindow.  What 
 I'm trying to do is have a ModalWindow that is part of a panel which 
 is added during an Ajax update.  When I do this-- the Ajax for that 
 page hangs on:
 
 *INFO: *Response parsed. Now invoking steps...
 *INFO: *
 *INFO: 
 *Initiating Ajax GET request on 
 /doh/resources/wicket.extensions.ajax.markup.html.modal.ModalWindow/re
 s/modal.js
 *INFO: *Invoking pre-call handler(s)...
 
  
 ... and no other Ajax events work until I refresh the page manually 
 (i.e. start a new request).  I've checked and just simply adding the 
 ModalWindow to the panel in its constructor (not setting its content 
 or
 anything) is enough to cause this problem.  If I add the ModalWindow 
 to the page itself, everything seems to work fine.  Any ideas what 
 might be causing this?  Can ModalWindows be children of panels or must 
 they be children of pages?  Can they be created during an Ajax event?
  
 -- Karl
 
 
 --
 --
 
 --
 --- Using Tomcat but need to do more? Need to support web services, 
 security?
 Get stuff done quickly with pre-integrated technology to make your job 
 easier Download IBM WebSphere Application Server v.1.0.1 based on 
 Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=1216
 42
 
 
 --
 --
 
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

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


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


Re: [Wicket-user] ModalWindow

2006-10-23 Thread Karl M. Davis
Matej,

Thanks-- that seems to have done it.  At least, it's crashing respectably
now with a markup error that I'll look at later (my fault, I'm sure).

-- Karl 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Karl M.
Davis
Sent: Monday, October 23, 2006 10:40 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] ModalWindow

It's one of the 1.2.2 snapshots from the old 1.2.x branch (which seems to
have been switched to 1.x now).  I'll install the latest snapshots and let
you know if that fixes it.

-- Karl

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matej Knopp
Sent: Monday, October 23, 2006 10:05 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] ModalWindow

Can you tell me what version of Wicket are you using? There have been couple
of fixes since the latest stable release, so you might want to try the
latest svn version.

If the latest doesn't work I'll certainly look at that.

-Matej

Karl M. Davis wrote:
 Hello all,
  
 I am having a problem in my first attempts to use ModalWindow.  What 
 I'm trying to do is have a ModalWindow that is part of a panel which 
 is added during an Ajax update.  When I do this-- the Ajax for that 
 page hangs on:
 
 *INFO: *Response parsed. Now invoking steps...
 *INFO: *
 *INFO: 
 *Initiating Ajax GET request on
 /doh/resources/wicket.extensions.ajax.markup.html.modal.ModalWindow/re
 s/modal.js
 *INFO: *Invoking pre-call handler(s)...
 
  
 ... and no other Ajax events work until I refresh the page manually 
 (i.e. start a new request).  I've checked and just simply adding the 
 ModalWindow to the panel in its constructor (not setting its content 
 or
 anything) is enough to cause this problem.  If I add the ModalWindow 
 to the page itself, everything seems to work fine.  Any ideas what 
 might be causing this?  Can ModalWindows be children of panels or must 
 they be children of pages?  Can they be created during an Ajax event?
  
 -- Karl
 
 
 --
 --
 
 --
 --- Using Tomcat but need to do more? Need to support web services, 
 security?
 Get stuff done quickly with pre-integrated technology to make your job 
 easier Download IBM WebSphere Application Server v.1.0.1 based on 
 Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=1216
 42
 
 
 --
 --
 
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

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


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


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


[Wicket-user] ListChoice and default value

2006-10-23 Thread Karl M. Davis



Hello 
all,

This is a minor 
annoyance, but I figured I'd throw it out there anyways...

Is there a way to 
have a ListChoice that has no option selected by default and does not insert a 
default choice (e.g. "Choose One" or an empty entry if you set 
setIsNullValid(true))? It's possible in HTML but Wicket always inserts an 
extra option/ item. AbstractChoice.onComponentTagBody(...) seems 
to always call AbstractSingleSelectionChoice.getDefaultChoice(...) which will 
always insert something unless you've pre-selected an item for the 
user.

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


Re: [Wicket-user] ListChoice and default value

2006-10-23 Thread Igor Vaynberg
set listchoice's model value to one of the choices and the problem will go away-IgorOn 10/23/06, Karl M. Davis 
[EMAIL PROTECTED] wrote:




Hello 
all,

This is a minor 
annoyance, but I figured I'd throw it out there anyways...

Is there a way to 
have a ListChoice that has no option selected by default and does not insert a 
default choice (e.g. Choose One or an empty entry if you set 
setIsNullValid(true))? It's possible in HTML but Wicket always inserts an 
extra option/ item. AbstractChoice.onComponentTagBody(...) seems 
to always call AbstractSingleSelectionChoice.getDefaultChoice(...) which will 
always insert something unless you've pre-selected an item for the 
user.

Thanks,
Karl

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

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


Re: [Wicket-user] ListChoice and default value

2006-10-23 Thread Igor Vaynberg
alternatively override getdefaultchoice and return an empty string-IgorOn 10/23/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote:set listchoice's model value to one of the choices and the problem will go away
-IgorOn 10/23/06, Karl M. Davis 

[EMAIL PROTECTED] wrote:





Hello 
all,

This is a minor 
annoyance, but I figured I'd throw it out there anyways...

Is there a way to 
have a ListChoice that has no option selected by default and does not insert a 
default choice (e.g. Choose One or an empty entry if you set 
setIsNullValid(true))? It's possible in HTML but Wicket always inserts an 
extra option/ item. AbstractChoice.onComponentTagBody(...) seems 
to always call AbstractSingleSelectionChoice.getDefaultChoice(...) which will 
always insert something unless you've pre-selected an item for the 
user.

Thanks,
Karl

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list

Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



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


[Wicket-user] Help needed: Best practise or exa mple for first level navigation model

2006-10-23 Thread bednarz-hannover
Hi there !

I am new in wicket developement and currently setting up my first project. 
Everythin is so far very fine, but I am still lokking for a best practice 
navigation model. What I would like to do is someting like one level tree 
navigation as shown here:

- Topic 1 (goes to Topic1.class)
-- Topic 1.1 (goes to Topic11.class)
-- Topic 1.2 (goes to Topic12.class)
- Topic 2 (goes to Topic2.class)
-- Topic 2.1 (goes to Topic21.class)
-- Topic 2.2 (goes to Topic22.class)
...

My current idea is to maintain the navigation structure within a ListView for 
Topic1  Topic2 each having a subsequent view for subtopics. So far I think the 
idea is not so bad but I do not know how to code wicket aware. Does anyone have 
some example code how to handle such a navigation structure? Is there some way 
to put this in a model, so I can mark the current selected page within the 
model?

Thank you very much,

Maciej A. Bednarz

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


[Wicket-user] Autoenabled links and custom style for em element

2006-10-23 Thread bednarz-hannover
Hallo there,

I would like to change the output class of the em element for autoenabled 
links. Currently I use the following code to create a link:

Link link = new BookmarkablePageLink(link, pageClass).setAutoEnable(true);

After rendering such a link I get 

a href=/portal class=menuSub 1/a

and for enabled state:

span class=menuemSub 2/em/span


Does someone experienced know how to disable the em tags or how to add a custom 
css style to them? One of the following possiblities would be fine as output:

span class=menuemSub 2/em/span 

or 

span class=menuSub 2/span 

Thank you for any assistance to solve my problem,

Maciej A. Bednarz




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