Re: [Wicket-user] Spring annotation ut can work now.

2007-01-05 Thread Igor Vaynberg

try the below

 application.addComponentInstantiationListener(new
SpringComponentInjector(application, context));

-igor


On 1/5/07, tooy li(Gmail) <[EMAIL PROTECTED]> wrote:


I try the code depends on the wiki's spring post, but it cannot inject the
springbean well.

I trace the source code of AnnotApplicationContextMock and wickeTester ,
and find it cannot really register a Injector into the
componentInstantiationListeners of component class . I think i can add this
one in the wicketTeser's DummyWebApplication, it' work well.

below is my code. it had spent me more than 4 hours, i'm so stupid.  Is
there anyone can give some adivce how to use the
AnnotApplicationContextMock  correctly?

public static WicketTester createWicketTester(Class pageClass) {
  AnnotApplicationContextMock appctx = new AnnotApplicationContextMock();
  ApplicationContext context = CoreServiceLocator.getInstance
().getAppContext();

  Field[] fields = pageClass.getDeclaredFields();
  for (int i = 0; i < fields.length; i++) {
 SpringBean bean = fields[i].getAnnotation(SpringBean.class);
 appctx.putBean(bean.id(), context.getBean(bean.id()));
  }

  DummyWebApplication application = new DummyWebApplication();
  application.addComponentInstantiationListener(new ComponentInjector());
  return new WicketTester(application);
}
-
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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] When will RequestCycle.detach() being called?

2007-01-05 Thread Carfield Yim
> but it can be that it is purely 1.3
>
So I need to wait for version 1.3 you mean?

-
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] cannot run the annoation unit test in 2.0

2007-01-05 Thread Igor Vaynberg

there is in 1.x, are you using 2.0 (trunk) ?

-igor


On 1/5/07, tooy li(Gmail) <[EMAIL PROTECTED]> wrote:


hi,
there is not any add method in the WicketTester.and you also cannot add
the SpringComponentInjector directly, since it cannot find
any true application context in this environment.  I think someone should
update the related wiki.
> Message: 2
> Date: Fri, 5 Jan 2007 10:04:51 -0800
> From: "Igor Vaynberg" <[EMAIL PROTECTED]>
> Subject: Re: [Wicket-user] cannot run the annoation unit test in 2.0
> To: wicket-user@lists.sourceforge.net
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> try this
>
> WicketTester test = new WicketTester();
> test.add(new SpringComponentInjector());
>
> -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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] cannot run the annoation unit test in 2.0

2007-01-05 Thread tooy li(Gmail)
hi, 
there is not any add method in the WicketTester.and you also cannot add the 
SpringComponentInjector directly, since it cannot find 
any true application context in this environment.  I think someone should 
update the related wiki.
> Message: 2
> Date: Fri, 5 Jan 2007 10:04:51 -0800
> From: "Igor Vaynberg" <[EMAIL PROTECTED]>
> Subject: Re: [Wicket-user] cannot run the annoation unit test in 2.0
> To: wicket-user@lists.sourceforge.net
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> try this
> 
> WicketTester test = new WicketTester();
> test.add(new SpringComponentInjector());
> 
> -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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Spring annotation ut can work now.

2007-01-05 Thread tooy li(Gmail)
I try the code depends on the wiki's spring post, but it cannot inject the 
springbean well.

I trace the source code of AnnotApplicationContextMock and wickeTester , and 
find it cannot really register a Injector into the 
componentInstantiationListeners of component class . I think i can add this one 
in the wicketTeser's DummyWebApplication, it' work well.

below is my code. it had spent me more than 4 hours, i'm so stupid.  Is there 
anyone can give some adivce how to use the AnnotApplicationContextMock  
correctly?

public static WicketTester createWicketTester(Class pageClass) {
  AnnotApplicationContextMock appctx = new AnnotApplicationContextMock();
  ApplicationContext context = CoreServiceLocator.getInstance().getAppContext();
  
  Field[] fields = pageClass.getDeclaredFields();
  for (int i = 0; i < fields.length; i++) {
 SpringBean bean = fields[i].getAnnotation(SpringBean.class);
 appctx.putBean(bean.id(), context.getBean(bean.id()));
  }
  
  DummyWebApplication application = new DummyWebApplication();
  application.addComponentInstantiationListener(new ComponentInjector());
  return new WicketTester(application);
 }
-
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AbstractStringResourceStream content type bug

2007-01-05 Thread Ryan Sonnek

I'm building a class that implements the IMarkupResourceStreamProvidor
interface and I'm using the AbstractStringResourceStream like so:

   public IResourceStream getMarkupResourceStream(MarkupContainer
container, Class containerClass) {
   final String feedOutput = renderFeed();
   return new AbstractStringResourceStream("application/xml;
charset=UTF-8") {
   @Override
   protected String getString() {
   return feedOutput;
   }
   public long length() {
   return feedOutput.length();
   }
   };
   }


I'm passing in the content type, but the page always renders as text/html.
is this a bug, or am I doing something incorrect?
-
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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about wicket-auth-roles

2007-01-05 Thread Jonathan Locke


All wicket runtime authorization is done in Component before anything
interesting happens:

public Component(final MarkupContainer parent, final String id, final
IModel model)
{
setId(id);

this.parent = getRealParent(parent, id);

getApplication().notifyComponentInstantiationListeners(this);

The instantiation listener(s) do the authorization.  This is a particularly
strong guarantee since you cannot construct a Component any checks in the
instantiation listeners taking place.


Carfield Yim-2 wrote:
> 
> According to the example AnnotationsPanelsPage.java , look like I just
> setup the role at user object and it will read the Annotations for the
> permission.
> 
> Just wonder is the Annotations only for the class extending wicket API
> like WebPage and Panel or it will work for all objects running at that
> VM?
> 
> -
> 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.php&p=sourceforge&CID=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/Question-about-wicket-auth-roles-tf2924973.html#a8186948
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] cannot run the annoation unit test in 2.0

2007-01-05 Thread Igor Vaynberg

try this

WicketTester test = new WicketTester();
test.add(new SpringComponentInjector());

-igor



On 1/5/07, tooy li(Gmail) <[EMAIL PROTECTED]> wrote:


hi,all
I try the annoation unit test to the page, but I find it cannot work with
injection.
below is my code

  ColumnInfo example = new ColumnInfo();

  MockControl daoCtrl = MockControl
.createControl(ColumnManagerServiceI.class);
  ColumnManagerServiceI dao = (ColumnManagerServiceI) daoCtrl.getMock();

  daoCtrl.expectAndReturn(dao.selectCount(example), 20);
  daoCtrl.replay();

  AnnotApplicationContextMock appctx = new AnnotApplicationContextMock();
  appctx.putBean("ColumnMangerService", dao);

  WicketTester test = new WicketTester();
  test.startPage(new ListColumnInfoPage(new DummyHomePage(), "test"));
  test.assertRenderedPage(ListColumnInfoPage.class);
  daoCtrl.verify();

there is a SpringBean in the ListColumnInfoPage, it can work well in the
true environment. is some people can help me ?
i just think it's should to injection the mockContext in some place, so i
try to add the my appliction into the construtor of WicketTester , it throw
a error about cannot find the applicationcontext of spring.

i think i only can insert the  the object into the page before test it :(


-
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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] cannot run the annoation unit test in 2.0

2007-01-05 Thread tooy li(Gmail)
hi,all
I try the annoation unit test to the page, but I find it cannot work with 
injection.
below is my code
  
  ColumnInfo example = new ColumnInfo();

  MockControl daoCtrl = MockControl
.createControl(ColumnManagerServiceI.class);
  ColumnManagerServiceI dao = (ColumnManagerServiceI) daoCtrl.getMock();

  daoCtrl.expectAndReturn(dao.selectCount(example), 20);
  daoCtrl.replay();

  AnnotApplicationContextMock appctx = new AnnotApplicationContextMock();
  appctx.putBean("ColumnMangerService", dao);
 
  WicketTester test = new WicketTester();
  test.startPage(new ListColumnInfoPage(new DummyHomePage(), "test"));
  test.assertRenderedPage(ListColumnInfoPage.class);
  daoCtrl.verify();

there is a SpringBean in the ListColumnInfoPage, it can work well in the true 
environment. is some people can help me ?
i just think it's should to injection the mockContext in some place, so i try 
to add the my appliction into the construtor of WicketTester , it throw a error 
about cannot find the applicationcontext of spring.

i think i only can insert the  the object into the page before test it :( 

-
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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about wicket-auth-roles

2007-01-05 Thread Igor Vaynberg

i would imagine it would be for anything that extends wicket.Component

-igor


On 1/5/07, Carfield Yim <[EMAIL PROTECTED]> wrote:


According to the example AnnotationsPanelsPage.java , look like I just
setup the role at user object and it will read the Annotations for the
permission.

Just wonder is the Annotations only for the class extending wicket API
like WebPage and Panel or it will work for all objects running at that
VM?

-
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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView

2007-01-05 Thread Johan Compagner

try: *new* CheckGroup("sectorCheckGroup", new Model());

the check group doesn't have a model where it can store the values in.

johan



On 1/5/07, Lost Still Lost <[EMAIL PROTECTED]> wrote:


Hello I'm Yuri.
I was trying to make use of a ListView instance to get checkboxes for
strings that I have stored in a database
But I get this error when trying to access the page containing the
ListView instance.

*WicketMessage: CheckGroup [4:searchform:sectorCheckGroup] contains a null
model object, must be an object of type java.util.Collection*
*Root cause:*
*wicket.WicketRuntimeException: CheckGroup [4:searchform:sectorCheckGroup]
contains a null model object, must be an object of type
java.util.Collection
*
My HTML page which consist of the ListView code is as follows:

<
span wicket:id="sectorCheckGroup">

select one or more numbers (CheckGroup)

  

 

 [this is where number will be]

  

 


My Model class have the following getter method:
*

public
* List getSectorCheckGroup()

{

*   return* sectorCheckGroup; }
sectorCheckGroup is a *List  *type


My Page/Java class have the following code that refers to the ListView:

List se = Arrays.*asList*(*new* String[] {"Primair", "Special", "Superb
special"});


sectors
= *new* CheckGroup("sectorCheckGroup");

add(
sectors);

sectorList = *new* ListView("sectors", se)

{

*  protected* *void* populateItem(ListItem item)

  {

  item.add(
*new* Check("check", item.getModel()));


item.add(*new* Label("name", item.getModelObjectAsString()));

  };

};
sectors.add(sectorList);



My Code is pretty much the same as the one in the wicket-examples(the
Forminput example which uses ListView)
What is it that I'm doing wrong then?
Anyone?




--
Get free, personalized online radio with MSN Radio powered by Pandora. Try
it! 

-
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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView

2007-01-05 Thread Lost Still Lost
Hello I'm Yuri.
I was trying to make use of a ListView instance to get checkboxes for strings 
that I have stored in a database
But I get this error when trying to access the page containing the ListView 
instance.
 
WicketMessage: CheckGroup [4:searchform:sectorCheckGroup] contains a null model 
object, must be an object of type java.util.Collection
Root cause:
wicket.WicketRuntimeException: CheckGroup [4:searchform:sectorCheckGroup] 
contains a null model object, must be an object of type java.util.Collection
My HTML page which consist of the ListView code is as follows:

select one or more numbers (CheckGroup)
  
 
 [this is where number will be]
  


 
 
My Model class have the following getter method:
public List getSectorCheckGroup()
{
   return sectorCheckGroup;
}
sectorCheckGroup is a List  type
 
 
My Page/Java class have the following code that refers to the ListView:
 
List se = Arrays.asList(new String[] {"Primair", "Special", "Superb special"});
 
sectors = new CheckGroup("sectorCheckGroup");
add(sectors);
sectorList = new ListView("sectors", se)
{
  protected void populateItem(ListItem item)
  { 
  item.add(new Check("check", item.getModel()));
  item.add(new Label("name", item.getModelObjectAsString()));
  };
};
sectors.add(sectorList);
 
 
 
My Code is pretty much the same as the one in the wicket-examples(the Forminput 
example which uses ListView)
What is it that I'm doing wrong then?
Anyone?
 
 
 
_
Type your favorite song.  Get a customized station.  Try MSN Radio powered by 
Pandora.
http://radio.msn.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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] advanced

2007-01-05 Thread Tapia

We suspect this is not only good news for gamblers and punters, but we expect 
an increase in stock value.
As Huygens descended toward Titan, it would be moving at approximately 5. The 
player is already free, the SWF file format is open and now if the revenue that 
comes out of the Flash IDE also goes down things may take a turn.

crew.gif
Description: GIF image
-
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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IE 6 requests new session OTT

2007-01-05 Thread Nino Wael
Correct, I think I know whats going wrong...

Since we live in an Iframe. I guess this is what happens:

User clicks a link which leads to us via an Iframe with an static url. Then the 
servlet container makes the url rewrite, which is ok. But if the user clicks 
again on the link our session id are of course gone from the url and the 
servlet container treats this as an new session. Again this is only a problem 
when session cookies aren't allowed.


So the solution are to give an session id from the page having our application 
within the iframe. 

So this is where I ask how do I force a specific session id to be used, 
retrieved from the url?

Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martijn Dashorst
Sent: 5. januar 2007 12:19
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] IE 6 requests new session OTT

The servlet container will use url rewriting (i.e. append the
jsessionid=afwo020394) when a cookie can't be set.

Martijn


On 1/5/07, Nino Wael <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Sorry for so many posts about this. But are there any way to avoid session
> cookies? And stil maintain session state?
>
>
>
> We are using load balancing with apache upfront and then tomcat.
>
>
>
> Regards Nino
>
>
>
>  
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Nino Wael
>  Sent: 5. januar 2007 12:12
>  To: wicket-user@lists.sourceforge.net
>  Subject: Re: [Wicket-user] IE 6 requests new session OTT
>
>
>
>
> Hmm just found out that, there is a setting in IE 6 where you can disallow
> session cookies. Setting this to false, clears our problem...
>
>
>
> This appears to be default, are there any way to change this from our server
> side (im guessing no).
>
>
>
>
>
> Regards Nino
>
>
>
>  
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Nino Wael
>  Sent: 5. januar 2007 12:05
>  To: wicket-user@lists.sourceforge.net
>  Subject: [Wicket-user] IE 6 requests new session OTT
>
>
>
> Hi
>
>
>
> I guess this is not directly connected to wicket. But it seems that IE 6 has
> a nasty habbit of requesting new sessions sometimes(Bill Gates random
> generator). This are giving us some problems with the page expired
> exceptions, and some other stuff, THE FACT that we loose our session context
> are horrible.
>
>
>
> We live within an iframe, so im not sure if this triggers it somehow. Has
> anyone experienced this and what did you do, if something could be done?
>
>
>
> I do not have this problem with firefox. Which even uses authenticated
> sessions cross browser instance.
>
>
>
>
>
> Regards Nino
> -
> 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.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IE 6 requests new session OTT

2007-01-05 Thread Nino Wael
We are using BookmarkablePages and mounted parameters 
(app/page/parametera/valuea) btw, does this affect the ability to force 
jessionId?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 5. januar 2007 13:22
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] IE 6 requests new session OTT

Correct, I think I know whats going wrong...

Since we live in an Iframe. I guess this is what happens:

User clicks a link which leads to us via an Iframe with an static url. Then the 
servlet container makes the url rewrite, which is ok. But if the user clicks 
again on the link our session id are of course gone from the url and the 
servlet container treats this as an new session. Again this is only a problem 
when session cookies aren't allowed.


So the solution are to give an session id from the page having our application 
within the iframe. 

So this is where I ask how do I force a specific session id to be used, 
retrieved from the url?

Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martijn Dashorst
Sent: 5. januar 2007 12:19
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] IE 6 requests new session OTT

The servlet container will use url rewriting (i.e. append the
jsessionid=afwo020394) when a cookie can't be set.

Martijn


On 1/5/07, Nino Wael <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Sorry for so many posts about this. But are there any way to avoid session
> cookies? And stil maintain session state?
>
>
>
> We are using load balancing with apache upfront and then tomcat.
>
>
>
> Regards Nino
>
>
>
>  
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Nino Wael
>  Sent: 5. januar 2007 12:12
>  To: wicket-user@lists.sourceforge.net
>  Subject: Re: [Wicket-user] IE 6 requests new session OTT
>
>
>
>
> Hmm just found out that, there is a setting in IE 6 where you can disallow
> session cookies. Setting this to false, clears our problem...
>
>
>
> This appears to be default, are there any way to change this from our server
> side (im guessing no).
>
>
>
>
>
> Regards Nino
>
>
>
>  
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Nino Wael
>  Sent: 5. januar 2007 12:05
>  To: wicket-user@lists.sourceforge.net
>  Subject: [Wicket-user] IE 6 requests new session OTT
>
>
>
> Hi
>
>
>
> I guess this is not directly connected to wicket. But it seems that IE 6 has
> a nasty habbit of requesting new sessions sometimes(Bill Gates random
> generator). This are giving us some problems with the page expired
> exceptions, and some other stuff, THE FACT that we loose our session context
> are horrible.
>
>
>
> We live within an iframe, so im not sure if this triggers it somehow. Has
> anyone experienced this and what did you do, if something could be done?
>
>
>
> I do not have this problem with firefox. Which even uses authenticated
> sessions cross browser instance.
>
>
>
>
>
> Regards Nino
> -
> 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.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=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 

Re: [Wicket-user] IE 6 requests new session OTT

2007-01-05 Thread Korbinian Bachl
You can configure Tomcat to use URL manipulation only, so he always adds the
session to the URLs - however, loosing a session this way is not known and
is usually a problem in your application, as the standard behaviour in
tomcat is that he rewrites the session on creation to all URLs as wellas
passes a cookie and only drops the URL rewriting if the cookie is working.
Browsers dont change their behaviour during a single session as long as the
user doenst chose to do so.
 
Regards

 

  _  

Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Nino Wael
Gesendet: Freitag, 5. Januar 2007 12:15
An: wicket-user@lists.sourceforge.net
Betreff: Re: [Wicket-user] IE 6 requests new session OTT



Sorry for so many posts about this. But are there any way to avoid session
cookies? And stil maintain session state?

 

We are using load balancing with apache upfront and then tomcat.

 

Regards Nino

 


  _  


From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 5. januar 2007 12:12
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] IE 6 requests new session OTT

 

Hmm just found out that, there is a setting in IE 6 where you can disallow
session cookies. Setting this to false, clears our problem.

 

This appears to be default, are there any way to change this from our server
side (im guessing no).

 

 

Regards Nino

 


  _  


From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 5. januar 2007 12:05
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] IE 6 requests new session OTT

 

Hi 

 

I guess this is not directly connected to wicket. But it seems that IE 6 has
a nasty habbit of requesting new sessions sometimes(Bill Gates random
generator). This are giving us some problems with the page expired
exceptions, and some other stuff, THE FACT that we loose our session context
are horrible.

 

We live within an iframe, so im not sure if this triggers it somehow. Has
anyone experienced this and what did you do, if something could be done?

 

I do not have this problem with firefox. Which even uses authenticated
sessions cross browser instance.

 

 

Regards Nino

-
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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IE 6 requests new session OTT

2007-01-05 Thread Martijn Dashorst
The servlet container will use url rewriting (i.e. append the
jsessionid=afwo020394) when a cookie can't be set.

Martijn


On 1/5/07, Nino Wael <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Sorry for so many posts about this. But are there any way to avoid session
> cookies? And stil maintain session state?
>
>
>
> We are using load balancing with apache upfront and then tomcat.
>
>
>
> Regards Nino
>
>
>
>  
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Nino Wael
>  Sent: 5. januar 2007 12:12
>  To: wicket-user@lists.sourceforge.net
>  Subject: Re: [Wicket-user] IE 6 requests new session OTT
>
>
>
>
> Hmm just found out that, there is a setting in IE 6 where you can disallow
> session cookies. Setting this to false, clears our problem…
>
>
>
> This appears to be default, are there any way to change this from our server
> side (im guessing no).
>
>
>
>
>
> Regards Nino
>
>
>
>  
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Nino Wael
>  Sent: 5. januar 2007 12:05
>  To: wicket-user@lists.sourceforge.net
>  Subject: [Wicket-user] IE 6 requests new session OTT
>
>
>
> Hi
>
>
>
> I guess this is not directly connected to wicket. But it seems that IE 6 has
> a nasty habbit of requesting new sessions sometimes(Bill Gates random
> generator). This are giving us some problems with the page expired
> exceptions, and some other stuff, THE FACT that we loose our session context
> are horrible.
>
>
>
> We live within an iframe, so im not sure if this triggers it somehow. Has
> anyone experienced this and what did you do, if something could be done?
>
>
>
> I do not have this problem with firefox. Which even uses authenticated
> sessions cross browser instance.
>
>
>
>
>
> Regards Nino
> -
> 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.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IE 6 requests new session OTT

2007-01-05 Thread Nino Wael
Sorry for so many posts about this. But are there any way to avoid session 
cookies? And stil maintain session state?

 

We are using load balancing with apache upfront and then tomcat.

 

Regards Nino

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 5. januar 2007 12:12
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] IE 6 requests new session OTT

 

Hmm just found out that, there is a setting in IE 6 where you can disallow 
session cookies. Setting this to false, clears our problem...

 

This appears to be default, are there any way to change this from our server 
side (im guessing no).

 

 

Regards Nino

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 5. januar 2007 12:05
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] IE 6 requests new session OTT

 

Hi 

 

I guess this is not directly connected to wicket. But it seems that IE 6 has a 
nasty habbit of requesting new sessions sometimes(Bill Gates random generator). 
This are giving us some problems with the page expired exceptions, and some 
other stuff, THE FACT that we loose our session context are horrible.

 

We live within an iframe, so im not sure if this triggers it somehow. Has 
anyone experienced this and what did you do, if something could be done?

 

I do not have this problem with firefox. Which even uses authenticated sessions 
cross browser instance.

 

 

Regards Nino

-
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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IE 6 requests new session OTT

2007-01-05 Thread Nino Wael
Hmm just found out that, there is a setting in IE 6 where you can disallow 
session cookies. Setting this to false, clears our problem...

 

This appears to be default, are there any way to change this from our server 
side (im guessing no).

 

 

Regards Nino

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 5. januar 2007 12:05
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] IE 6 requests new session OTT

 

Hi 

 

I guess this is not directly connected to wicket. But it seems that IE 6 has a 
nasty habbit of requesting new sessions sometimes(Bill Gates random generator). 
This are giving us some problems with the page expired exceptions, and some 
other stuff, THE FACT that we loose our session context are horrible.

 

We live within an iframe, so im not sure if this triggers it somehow. Has 
anyone experienced this and what did you do, if something could be done?

 

I do not have this problem with firefox. Which even uses authenticated sessions 
cross browser instance.

 

 

Regards Nino

-
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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Question about wicket-auth-roles

2007-01-05 Thread Carfield Yim
According to the example AnnotationsPanelsPage.java , look like I just
setup the role at user object and it will read the Annotations for the
permission.

Just wonder is the Annotations only for the class extending wicket API
like WebPage and Panel or it will work for all objects running at that
VM?

-
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] IE 6 requests new session OTT

2007-01-05 Thread Nino Wael
Hi 

 

I guess this is not directly connected to wicket. But it seems that IE 6 has a 
nasty habbit of requesting new sessions sometimes(Bill Gates random generator). 
This are giving us some problems with the page expired exceptions, and some 
other stuff, THE FACT that we loose our session context are horrible.

 

We live within an iframe, so im not sure if this triggers it somehow. Has 
anyone experienced this and what did you do, if something could be done?

 

I do not have this problem with firefox. Which even uses authenticated sessions 
cross browser instance.

 

 

Regards Nino

-
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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket presentation

2007-01-05 Thread Nino Wael
Where in wicket you just write your markupfile .html and your java file and 
thats it...


Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 5. januar 2007 08:42
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] wicket presentation

Sure 

Here I was thinking against wicket versus JSP/servlets, in those you have to 
print each line of html you want displayed at the browser..
 

-Nino
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Santucho
Sent: Friday, January 05, 2007 3:43 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] wicket presentation

 > you don't have to think about the tedious tasks like printing html

Can you explain this?

-
Gustavo.

-
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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] When will RequestCycle.detach() being called?

2007-01-05 Thread Johan Compagner

this is currently the code:

public final Page startPage(final Page page)
   {
   setHomePage(DummyHomePage.class);
   processRequestCycle(page);

   Page last = getLastRenderedPage();

   createRequestCycle();   this line should
make sure that the touch works...
   getWicketSession().touch(page);
   if (page != last)
   {
   getWicketSession().touch(last);
   }
   return last;
   }

but it can be that it is purely 1.3

johan

On 1/5/07, Carfield Yim <[EMAIL PROTECTED]> wrote:


On 12/28/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
> On 12/27/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > which version of wicket is that?
> > That should be fixed.
>
> Wicket 1.2.3, may be I should upgrade to 1.2.4
>
Just upgrade to 1.2.4 and this problem is still there. And I've double
verify that RequestCycle SHOULD be there as creating wickettester
should trigger that RequestCycle creation

wicket.WicketRuntimeException: Can not set the attribute. No
RequestCycle available
at wicket.Session.setAttribute(Session.java:933)
at wicket.PageMap.put(PageMap.java:526)
at wicket.Session.touch(Session.java:744)
at wicket.util.tester.WicketTester.startPage(WicketTester.java
:264)
at com.genuco.web.pages.account.MainTest.testMain(MainTest.java
:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.junit.internal.runners.TestMethodRunner.executeMethodBody(
TestMethodRunner.java:99)
at org.junit.internal.runners.TestMethodRunner.runUnprotected(
TestMethodRunner.java:81)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestMethodRunner.runMethod(
TestMethodRunner.java:75)
at org.junit.internal.runners.TestMethodRunner.run(
TestMethodRunner.java:45)
at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(
TestClassMethodsRunner.java:71)
at org.junit.internal.runners.TestClassMethodsRunner.run(
TestClassMethodsRunner.java:35)
at org.junit.internal.runners.TestClassRunner$1.runUnprotected(
TestClassRunner.java:42)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestClassRunner.run(
TestClassRunner.java:52)
at org.junit.internal.runners.CompositeRunner.run(
CompositeRunner.java:29)
at org.junit.internal.runners.TestClassRunner$1.runUnprotected(
TestClassRunner.java:42)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestClassRunner.run(
TestClassRunner.java:52)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(
JUnit4TestReference.java:38)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(
TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
RemoteTestRunner.java:196)

-
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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-05 Thread Carfield Yim
On 1/5/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> Navigating to different page is a bit tricky unfortunately. There is no
> easy way of disabling the alert. This should be addressed in future
> version. For now I'd suggest you to try to close the window
> (ModalWindow.close(...)) and navigate to the target page in modal window
> onclose handler.
>
Thx, that should work for me

-
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-05 Thread Matej Knopp
Navigating to different page is a bit tricky unfortunately. There is no 
easy way of disabling the alert. This should be addressed in future 
version. For now I'd suggest you to try to close the window 
(ModalWindow.close(...)) and navigate to the target page in modal window 
onclose handler.

-Matej

Carfield Yim wrote:
> Ok, I finally find out what going wrong, it is the AjaxSubmitButton
> only trigger the onError() method but not onSubmit() method, is it the
> excepted behaviour?
> 
> By the way, after the form process finished it will forward to another
> page ( actually after add a new account it will redirect to edit page
> of that account ) . It work ok but wicket will popup an alarm box
> about ModalWindows closing, can I suppress this warning?
> 
> On 1/5/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>> On 1/4/07, Carfield Yim <[EMAIL PROTECTED]> wrote:
>>> On 1/4/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
 you click on the wicket ajax debug link at the bottom of the page and it
 should open. then look for errors in the output.

>>> There is not error, just info, and I don't understand the meaning of
>>> those info message, do you know if there reference
>> you can paste the output if you want here
>>
 or better yet create a quickstart that reproduces the problem - that is
 probably the fastest way to get help

>>> quickstart? you mean a simple application and put it some where at web
>>> and post the link here?
>> yep
>>
>> -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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] When will RequestCycle.detach() being called?

2007-01-05 Thread Carfield Yim
On 12/28/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
> On 12/27/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > which version of wicket is that?
> > That should be fixed.
>
> Wicket 1.2.3, may be I should upgrade to 1.2.4
>
Just upgrade to 1.2.4 and this problem is still there. And I've double
verify that RequestCycle SHOULD be there as creating wickettester
should trigger that RequestCycle creation

wicket.WicketRuntimeException: Can not set the attribute. No
RequestCycle available
at wicket.Session.setAttribute(Session.java:933)
at wicket.PageMap.put(PageMap.java:526)
at wicket.Session.touch(Session.java:744)
at wicket.util.tester.WicketTester.startPage(WicketTester.java:264)
at com.genuco.web.pages.account.MainTest.testMain(MainTest.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
at 
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at 
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
at 
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
at 
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
at 
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
at 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at 
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at 
org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:29)
at 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at 
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-05 Thread Carfield Yim
Ok, I finally find out what going wrong, it is the AjaxSubmitButton
only trigger the onError() method but not onSubmit() method, is it the
excepted behaviour?

By the way, after the form process finished it will forward to another
page ( actually after add a new account it will redirect to edit page
of that account ) . It work ok but wicket will popup an alarm box
about ModalWindows closing, can I suppress this warning?

On 1/5/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> On 1/4/07, Carfield Yim <[EMAIL PROTECTED]> wrote:
> > On 1/4/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > you click on the wicket ajax debug link at the bottom of the page and it
> > > should open. then look for errors in the output.
> > >
> > There is not error, just info, and I don't understand the meaning of
> > those info message, do you know if there reference
>
> you can paste the output if you want here
>
> > > or better yet create a quickstart that reproduces the problem - that is
> > > probably the fastest way to get help
> > >
> > quickstart? you mean a simple application and put it some where at web
> > and post the link here?
>
> yep
>
> -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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket not compiling

2007-01-05 Thread Peter Neubauer
Thanks,
works now.

/peter

On 1/3/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> OK they are in...
>
> Martijn
>
> On 1/3/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> > On 1/3/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> > > And to resolve your compilation errors upgrade your JDK  to 1.5.08. If
> > > you are stuck on 1.5_06 because you're on an Apple, then perform an
> > > svn update, because I fixed this last weekend. It needed an extra cast
> > > to fool the compiler.
> >
> > Hang on... Just committing the fix, forgot to do so.
> >
> > Martijn
> >
>
>
> --
> Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
> Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
> http://wicketframework.org
>
> -
> 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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user