Re: [Wicket-user] Design questions: Use of controllers and wicket models

2007-03-15 Thread David Leangen

Ok, thanks for the info.

Sorry for not letting this thread die... but one more question (and
hopefully last):

Right now, the page I refactored looks like this:

MyPage page = new MyPage( MyBean bean )
{
   SomeComponent component = new Component( "id", new MyModel( bean ) );
   bla bla
   Hi, Mom
}


So, I'm injecting my bean, as is, into the constructor of the page. The
bean is created somewhere else. In the MyModel above, I'm actually using
a field of a field of the model, so I get:

class MyModel implements IModel
{
  private MyThing thing;

  public MyModel( MyBean bean )
  {
  this.thing = bean.getField().getThing();
  }

  More bla bla
}


So:

Is it "ok" to pass in the raw bean into the page contructor, or should I
be passing in a model instead?

Is there an even better way to go about all this that I haven't noticed?


In any case, what I do really like about IModel is that it gives a
direct translation between the controls and my bean. So cool!


Cheers,
David



On Thu, 2007-03-15 at 07:27 -0800, Igor Vaynberg wrote:
> it is mostly internal and will be removed in the coming model refactor
> 
> -igor
> 
> 
> On 3/14/07, David Leangen <[EMAIL PROTECTED]> wrote:
> 
> 
> Ok, thanks for your help, guys. I finally figured out what you
> meant by 
> your last comments, and implemented one way to go about this.
> Not sure
> if it's the "best" way, but it's certainly much cleaner than
> before.
> 
> Thanks!!
> 
> Just one question remaining.
> 
> What's the deal with getNestedModel( )?
> 
> It sounds useful, but that never gets invoked.
> 
> 
> What is it for, and how would I use it?
> 
> 
> Cheers,
> Dave
> 
> 
> 
> 
> 
> 
> On Tue, 2007-03-13 at 16:07 +0900, David Leangen wrote: 
> > :-)
> >
> > > if you disable a formcomponent then neither a set or get
> will be
> > > called
> >
> >
> > Yes. But it's not disabled, and get is being called. Just
> not set.
> > 
> > I must be doing something wrong or missing something in the
> impl here...
> > but I don't see what it is. :-(
> >
> >
> > Cheers,
> > Dave
> >
> >
> >
> >
> >
> > > Sorry for pulling you guys back to my mail
> issue. ;-) 
> > >
> > > Since setObject() is not being called, I don't see
> how to
> > > apply my
> > > complex model to its children. I thought I could
> pull this off
> > > with 
> > > setModel()... but it just ain't being called.
> > >
> > >
> > > Ok, let's stick with the "person" object. The
> person has
> > > attributes, and 
> > > one of these attributes may itself have
> attributes.
> > >
> > > For example:
> > >
> > >   Person:
> > > isSingle?
> > >
> > > if( isSingle ) 
> > >
> > >   [ ] does dishes?
> > >   [ ] makes bed?
> > >
> > > else
> > >
> > >   [ ] has kids?
> > >   [ ] walks dog? 
> > >
> > > Whatever.
> > >
> > > Point is, if the isSingle attribute is "true", I
> want to
> > > enable certain
> > > checkboxes and bind those values DIRECTLY to the
> model. Same 
> > > goes if
> > > isSingle is false.
> > >
> > > Right now, I collect a boolean for each value and
> set them
> > > back
> > > "manually" into my model, which seems really
> messy. 
> > >
> > > Same thing for enabling/disabling my checkboxes
> above: I do
> > > that
> > > "manually" depending on the current value in the
> model.
> > >
> > >
> > > What I'd really like to do is somehow bind all
> those controls
> > > directly
> > > to my model so I'm not duplicating parts of the
> model for each
> > > control. 
> > >
> > >
> > > Any hints that would enlighten me on how to do
> this?
> > >
> > >
> > > Thanks so much!!
> > >
> > >
> > >
> > > On Mon, 2007-03-12 at 22:58 -0700, Eelco Hillenius
> wrote: 
> > > >

Re: [Wicket-user] wicket-ajax.js

2007-03-15 Thread Yoav Landman

Sorry, it is still broken.
I updated WICKET-387.


Matej Knopp-2 wrote:
> 
> Actually, it should be fixed already. Can you please check if it works
> as it should?
> 
> -Matej
> 
> On 3/14/07, Vincent Demay <[EMAIL PROTECTED]> wrote:
>> Hi
>>
>> I do not see difference between you two ;) samples
>>
>> but maybe you was talking about that :
>> https://issues.apache.org/jira/browse/WICKET-387.
>>
>> I think, it will be fixed soon.
>>
>> cheers
>>
>> --
>> Vincent
>> http://www.demay-fr.net/blog/
>>
>> ChuckDeal a écrit :
>> > wicket-ajax.js (revision 518211) appears to have a problem.
>> >
>> > I think lines 296-299 should be
>> > var e = element.childNodes[i];
>> > if (e.tagName != null) {
>> >   result += Wicket.Form.serialize(e);
>> > }
>> >
>> > but right now they are
>> > var e = element.childNodes[i] {
>> >   if (e.tagName != null) {
>> >   result += Wicket.Form.serialize(e);
>> >   }
>> > }
>> >
>> > Chuck
>> >
>>
>>
>> -
>> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/wicket-ajax.js-tf3403817.html#a9509885
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] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread Igor Vaynberg

once you understand models it becomes quiet trivial :)
below is the simple way (without using a compound property model)

class mypage extends webpage {
private user user;
private logtype logtype;
// getters setters (only necessary in 1.2.x, in later wicket will access
private properties through property model)

public mypage() {
 form form=new form();
 add(new DropDownChoice("users",new PropertyModel(this, "user"),));
 add(new DropDownChoice("logtypes", new PropertyModel(this,
"logtype"),...));

  add(new DataView("results",new MyDataProvider(),...
  ...


 private class MyDataProvider implements IDataProvider {
 public Iterator iterator(int f,int c) {
 return getlogs(user,logtype);
  }
  }
}

and thats all she wrote. makes sense?

-igor




On 3/15/07, GS-ikiini <[EMAIL PROTECTED]> wrote:



The popilateItem as i know it is used within the dataview. That part i
understand. let me re-explain myself.

on my webpage class, i have a dataview component. i also have a
dropdownview
component . they are both children of a form component. i have a beans
user,
log and logtype. (I am using wicket along with spring.). now in my webpage
i have a drop down class whic implements dropdownchoice. the list for the
drop down is generated earlier in the webpage class. i have a drop down
for
the user. and a drop down for the log type. I want to get the user
selection
for these two, tie it back to the appropriate bean then set those beans in
the implementation of the dataprovider then use the implementation of the
data provider as the model for the dataview. My problem lies is getting
the
user selection from the drop down. I can't seem get it without having a
model to tie it to.



igor.vaynberg wrote:
>
> first of all the dataprovider is a readonly interface, it has no set
> method
> like the model.
>
> that said what you want is simple:
>
> populateitem(item item) {
>final imodel namemodel=new propertymodel(item.getmodel(), "name");
>add(new dropdownchoice("names",namemodel,nameslist));
> }
>
> -igor
>
>
> On 3/15/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>>
>>
>> i seei have a fair understaning of models this is what i am doing:
I
>> have
>> a dataprovider that services a dataview. this data provider is the the
>> model
>> that i ultimately need to update. however the properties within this
are
>> beans i need to set them using the selection from the dropdown. so fo
>> instancemy dataprovider has a property that is a saya user. this
user
>> itself has a property called name. which is a string. now in my webpage
>> class i have a dropdown with a list of names. what i need to do is
select
>> a
>> name and get the appropriate bean to pass it to the dataprovider so
that
>> it
>> can do its thing and return its results to the dataview. how would i go
>> about this?
>>
>> -B
>>
>>
>> igor.vaynberg wrote:
>> >
>> > since you dont specify the model for the selection wicket will look
for
>> a
>> > compoundpropertymodel you have somewhere above. the value will go
into
>> the
>> > bean that is in the compoundpropertymodel into a property with the
same
>> > name
>> > as the id of the dropdownchoice.
>> >
>> > there is a great page on models on our wiki
>> >
>> > -igor
>> >
>> >
>> > On 3/15/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> also how do i get the user selection from a drop down that uses the
>> >> dropDownchoice(String id,list choinces) constrctor?
>> >>
>> >>
>> >>
>> >> Gwyn wrote:
>> >> >
>> >> > I'm away from my main computer now, so can't check code, but have
>> you
>> >> > had a look at the Wicket examples, e.g.
>> >> >
>> >>
>>
http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.compref.DropDownChoicePage
>> >> >
>> >> > /Gwyn
>> >> >
>> >> > On 15/03/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> ok here is another question...how do i by pass the validating and
>> form
>> >> >> processing and go straight to the onSubmit method of my form(not
>> the
>> >> >> button)?
>> >> >>
>> >> >> -B
>> >> >>
>> >> >>
>> >> >>
>> >> >> GS-ikiini wrote:
>> >> >> >
>> >> >> > hey all,
>> >> >> >
>> >> >> > I am attempting to do some form processing for a filter that i
am
>> >> >> > building. I user 4 dropDownChoice in a form with a submit
button.
>> I
>> >> >> want
>> >> >> > to overide the onSubmit method, which i did. however when i try
>> to
>> >> get
>> >> >> the
>> >> >> > values selected from the drop down in the method for
prodessing,
>> >> they
>> >> >> come
>> >> >> > back empty. I am using pro wicket as a reference. i wrote
simple
>> >> helper
>> >> >> > methods as illustrated in the book but they don't seem to work:
>> >> >> >
>> >> >> >
>> >> >> > ...
>> >> >> > desc = new
>> >> >> FilterChoice("description",ldp,processTypeDropDownList,logs);
>> >> >> > ...
>> >> >> >
>> >> >> > protected String getDescriptionSelection(){
>> >> >> > return desc.getModelObjectAsString();
>> >> >> >   }
>> >> >> >
>> >> >> > ...
>> 

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread GS-ikiini

 The popilateItem as i know it is used within the dataview. That part i
understand. let me re-explain myself.

on my webpage class, i have a dataview component. i also have a dropdownview
component . they are both children of a form component. i have a beans user,
log and logtype. (I am using wicket along with spring.). now in my webpage
i have a drop down class whic implements dropdownchoice. the list for the
drop down is generated earlier in the webpage class. i have a drop down for
the user. and a drop down for the log type. I want to get the user selection
for these two, tie it back to the appropriate bean then set those beans in
the implementation of the dataprovider then use the implementation of the
data provider as the model for the dataview. My problem lies is getting the
user selection from the drop down. I can't seem get it without having a
model to tie it to.



igor.vaynberg wrote:
> 
> first of all the dataprovider is a readonly interface, it has no set
> method
> like the model.
> 
> that said what you want is simple:
> 
> populateitem(item item) {
>final imodel namemodel=new propertymodel(item.getmodel(), "name");
>add(new dropdownchoice("names",namemodel,nameslist));
> }
> 
> -igor
> 
> 
> On 3/15/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>>
>>
>> i seei have a fair understaning of models this is what i am doing: I
>> have
>> a dataprovider that services a dataview. this data provider is the the
>> model
>> that i ultimately need to update. however the properties within this are
>> beans i need to set them using the selection from the dropdown. so fo
>> instancemy dataprovider has a property that is a saya user. this user
>> itself has a property called name. which is a string. now in my webpage
>> class i have a dropdown with a list of names. what i need to do is select
>> a
>> name and get the appropriate bean to pass it to the dataprovider so that
>> it
>> can do its thing and return its results to the dataview. how would i go
>> about this?
>>
>> -B
>>
>>
>> igor.vaynberg wrote:
>> >
>> > since you dont specify the model for the selection wicket will look for
>> a
>> > compoundpropertymodel you have somewhere above. the value will go into
>> the
>> > bean that is in the compoundpropertymodel into a property with the same
>> > name
>> > as the id of the dropdownchoice.
>> >
>> > there is a great page on models on our wiki
>> >
>> > -igor
>> >
>> >
>> > On 3/15/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> also how do i get the user selection from a drop down that uses the
>> >> dropDownchoice(String id,list choinces) constrctor?
>> >>
>> >>
>> >>
>> >> Gwyn wrote:
>> >> >
>> >> > I'm away from my main computer now, so can't check code, but have
>> you
>> >> > had a look at the Wicket examples, e.g.
>> >> >
>> >>
>> http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.compref.DropDownChoicePage
>> >> >
>> >> > /Gwyn
>> >> >
>> >> > On 15/03/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> ok here is another question...how do i by pass the validating and
>> form
>> >> >> processing and go straight to the onSubmit method of my form(not
>> the
>> >> >> button)?
>> >> >>
>> >> >> -B
>> >> >>
>> >> >>
>> >> >>
>> >> >> GS-ikiini wrote:
>> >> >> >
>> >> >> > hey all,
>> >> >> >
>> >> >> > I am attempting to do some form processing for a filter that i am
>> >> >> > building. I user 4 dropDownChoice in a form with a submit button.
>> I
>> >> >> want
>> >> >> > to overide the onSubmit method, which i did. however when i try
>> to
>> >> get
>> >> >> the
>> >> >> > values selected from the drop down in the method for prodessing,
>> >> they
>> >> >> come
>> >> >> > back empty. I am using pro wicket as a reference. i wrote simple
>> >> helper
>> >> >> > methods as illustrated in the book but they don't seem to work:
>> >> >> >
>> >> >> >
>> >> >> > ...
>> >> >> > desc = new
>> >> >> FilterChoice("description",ldp,processTypeDropDownList,logs);
>> >> >> > ...
>> >> >> >
>> >> >> > protected String getDescriptionSelection(){
>> >> >> > return desc.getModelObjectAsString();
>> >> >> >   }
>> >> >> >
>> >> >> > ...
>> >> >> > @overide
>> >> >> > onSubmit(){
>> >> >> > if(MyClass.this.getDescriptionSelection() .equals(something)){
>> >> >> >do something...
>> >> >> > }
>> >> >> > }
>> >> >> >
>> >> >> > thing is...I insert some log.debugs in there to see what was
>> being
>> >> >> > returned and nothing came back. How can i get the selection back
>> to
>> >> my
>> >> >> > onSubmit method i guess is my question. Thank you
>> >> >> >
>> >> >> > -B
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/form-processing---getting-dropdown-selection-back-to-onSubmit-method.-tf3409455.html#a9501974
>> >> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >> >>
>> >> >
>> >> > --
>> >> > Download Wicket 1.2.5 now! - http://wicketframewor

Re: [Wicket-user] Tapestry -> Wicket | Action Service

2007-03-15 Thread Jonathan Locke


yes.  that and the ability to create new listeners.  there is nothing
special about the listeners that wicket pre-registers to handle various
kinds of requests such as resource requests or link clicks (although you
should definitely prefer the already existing event listeners!).  in fact,
below is the code in init that registers all the "service" listeners in
wicket
revealing that you can create your own if you're doing something special
that wicket does not (yet) support.

/**
 * @see wicket.IInitializer#init(wicket.Application)
 */
public void init(Application application)
{
// Register listener interfaces explicitly (even though they 
implicitly
// register when loaded) because deserialization of an object 
that
// implements an interface does not load the interfaces it 
implements!
IBehaviorListener.INTERFACE.register();
IUnversionedBehaviorListener.INTERFACE.register();
IFormSubmitListener.INTERFACE.register();
ILinkListener.INTERFACE.register();
IOnChangeListener.INTERFACE.register();
IRedirectListener.INTERFACE.register();
IResourceListener.INTERFACE.register();
}

public interface ILinkListener extends IRequestListener
{
/** Listener interface */
public static final RequestListenerInterface INTERFACE = new
RequestListenerInterface(
ILinkListener.class);

/**
 * Called when a link is clicked.
 */
void onLinkClicked();
}


igor.vaynberg wrote:
> 
> wicket's equivalent of a service is a shared resource. you can register
> your
> own shared resources through your webapplication subclass.
> 
> as far as selecting pages via javascript:
> 
> wicket doesnt really have a page service. urls for pages are resolved
> internally. if you want a stable entry point into the page then you should
> mount it, also via the webapplication subclass, and then the javascript
> can
> redirect to the mounted url.
> 
> -igor
> 
> 
> On 3/15/07, Robert . <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I have been examining how I can convert a web application product from
>> Tapestry 3 to Wicket, and trying to adapt
>> myself to the Wicket way of thinking about web flow.
>>
>> One part that I just can't seem to figure out from reading Pro Wicket and
>> browsing through the apidocs is how to
>> make something like Tapestry "services".
>>
>> For example I have an action service in Tapestry that let's me send an
>> action command, including additonal parameters,
>> to the service by using javascript. I have such a service for both normal
>> requests and XMLHTTP requests. But thinking
>> about this further makes me realize I don't even know how to make
>> something like a PageService where the page is determined by javascript.
>>
>> I feel like I am missing something.
>>
>> Robert
>>
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php?page=join.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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tapestry--%3E-Wicket-%7C-Action-Service-tf3408177.html#a9504695
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] Hibernate/Spring and Wicket architecture "request for validation" (was Wicket's questions)

2007-03-15 Thread ZedroS Schwart
Thanks for your comment Igor, I really appreciate.

Just some questions : do you use CompoundPropertyModel or the detachable one ?

For the form beans, the user profile page I'm working on really proves
you right. I was willing at first to avoid "yet another bean" but in
fact it seems indeed to be the easiest way.

For the optimistic locking, I've read
http://www.hibernate.org/hib_docs/reference/en/html/transactions.html#transactions-optimistic
Is it what you had in mind ?

Thanks again

ZedroS

-
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] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread GS-ikiini

I have an implementaion of IDataProvider. that has setters in it and
originally i used it like a model. however the properties have now been
changed to beans. can i still use what you say below? does that populateItem
go into my implementaion of dataView?

in other words, 

Imodel myModelwhichImplementsIDataProvider = new
PropertyModel(item.getModel(),"user")//user is the name of the user property
in myModelwhichImplementsIDataProvider.



-B




igor.vaynberg wrote:
> 
> first of all the dataprovider is a readonly interface, it has no set
> method
> like the model.
> 
> that said what you want is simple:
> 
> populateitem(item item) {
>final imodel namemodel=new propertymodel(item.getmodel(), "name");
>add(new dropdownchoice("names",namemodel,nameslist));
> }
> 
> -igor
> 
> 
> On 3/15/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>>
>>
>> i seei have a fair understaning of models this is what i am doing: I
>> have
>> a dataprovider that services a dataview. this data provider is the the
>> model
>> that i ultimately need to update. however the properties within this are
>> beans i need to set them using the selection from the dropdown. so fo
>> instancemy dataprovider has a property that is a saya user. this user
>> itself has a property called name. which is a string. now in my webpage
>> class i have a dropdown with a list of names. what i need to do is select
>> a
>> name and get the appropriate bean to pass it to the dataprovider so that
>> it
>> can do its thing and return its results to the dataview. how would i go
>> about this?
>>
>> -B
>>
>>
>> igor.vaynberg wrote:
>> >
>> > since you dont specify the model for the selection wicket will look for
>> a
>> > compoundpropertymodel you have somewhere above. the value will go into
>> the
>> > bean that is in the compoundpropertymodel into a property with the same
>> > name
>> > as the id of the dropdownchoice.
>> >
>> > there is a great page on models on our wiki
>> >
>> > -igor
>> >
>> >
>> > On 3/15/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> also how do i get the user selection from a drop down that uses the
>> >> dropDownchoice(String id,list choinces) constrctor?
>> >>
>> >>
>> >>
>> >> Gwyn wrote:
>> >> >
>> >> > I'm away from my main computer now, so can't check code, but have
>> you
>> >> > had a look at the Wicket examples, e.g.
>> >> >
>> >>
>> http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.compref.DropDownChoicePage
>> >> >
>> >> > /Gwyn
>> >> >
>> >> > On 15/03/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> ok here is another question...how do i by pass the validating and
>> form
>> >> >> processing and go straight to the onSubmit method of my form(not
>> the
>> >> >> button)?
>> >> >>
>> >> >> -B
>> >> >>
>> >> >>
>> >> >>
>> >> >> GS-ikiini wrote:
>> >> >> >
>> >> >> > hey all,
>> >> >> >
>> >> >> > I am attempting to do some form processing for a filter that i am
>> >> >> > building. I user 4 dropDownChoice in a form with a submit button.
>> I
>> >> >> want
>> >> >> > to overide the onSubmit method, which i did. however when i try
>> to
>> >> get
>> >> >> the
>> >> >> > values selected from the drop down in the method for prodessing,
>> >> they
>> >> >> come
>> >> >> > back empty. I am using pro wicket as a reference. i wrote simple
>> >> helper
>> >> >> > methods as illustrated in the book but they don't seem to work:
>> >> >> >
>> >> >> >
>> >> >> > ...
>> >> >> > desc = new
>> >> >> FilterChoice("description",ldp,processTypeDropDownList,logs);
>> >> >> > ...
>> >> >> >
>> >> >> > protected String getDescriptionSelection(){
>> >> >> > return desc.getModelObjectAsString();
>> >> >> >   }
>> >> >> >
>> >> >> > ...
>> >> >> > @overide
>> >> >> > onSubmit(){
>> >> >> > if(MyClass.this.getDescriptionSelection() .equals(something)){
>> >> >> >do something...
>> >> >> > }
>> >> >> > }
>> >> >> >
>> >> >> > thing is...I insert some log.debugs in there to see what was
>> being
>> >> >> > returned and nothing came back. How can i get the selection back
>> to
>> >> my
>> >> >> > onSubmit method i guess is my question. Thank you
>> >> >> >
>> >> >> > -B
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/form-processing---getting-dropdown-selection-back-to-onSubmit-method.-tf3409455.html#a9501974
>> >> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >> >>
>> >> >
>> >> > --
>> >> > Download Wicket 1.2.5 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
>> >> > ___

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread Igor Vaynberg

first of all the dataprovider is a readonly interface, it has no set method
like the model.

that said what you want is simple:

populateitem(item item) {
  final imodel namemodel=new propertymodel(item.getmodel(), "name");
  add(new dropdownchoice("names",namemodel,nameslist));
}

-igor


On 3/15/07, GS-ikiini <[EMAIL PROTECTED]> wrote:



i seei have a fair understaning of models this is what i am doing: I
have
a dataprovider that services a dataview. this data provider is the the
model
that i ultimately need to update. however the properties within this are
beans i need to set them using the selection from the dropdown. so fo
instancemy dataprovider has a property that is a saya user. this user
itself has a property called name. which is a string. now in my webpage
class i have a dropdown with a list of names. what i need to do is select
a
name and get the appropriate bean to pass it to the dataprovider so that
it
can do its thing and return its results to the dataview. how would i go
about this?

-B


igor.vaynberg wrote:
>
> since you dont specify the model for the selection wicket will look for
a
> compoundpropertymodel you have somewhere above. the value will go into
the
> bean that is in the compoundpropertymodel into a property with the same
> name
> as the id of the dropdownchoice.
>
> there is a great page on models on our wiki
>
> -igor
>
>
> On 3/15/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>>
>>
>> also how do i get the user selection from a drop down that uses the
>> dropDownchoice(String id,list choinces) constrctor?
>>
>>
>>
>> Gwyn wrote:
>> >
>> > I'm away from my main computer now, so can't check code, but have you
>> > had a look at the Wicket examples, e.g.
>> >
>>
http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.compref.DropDownChoicePage
>> >
>> > /Gwyn
>> >
>> > On 15/03/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>> >>
>> >> ok here is another question...how do i by pass the validating and
form
>> >> processing and go straight to the onSubmit method of my form(not the
>> >> button)?
>> >>
>> >> -B
>> >>
>> >>
>> >>
>> >> GS-ikiini wrote:
>> >> >
>> >> > hey all,
>> >> >
>> >> > I am attempting to do some form processing for a filter that i am
>> >> > building. I user 4 dropDownChoice in a form with a submit button.
I
>> >> want
>> >> > to overide the onSubmit method, which i did. however when i try to
>> get
>> >> the
>> >> > values selected from the drop down in the method for prodessing,
>> they
>> >> come
>> >> > back empty. I am using pro wicket as a reference. i wrote simple
>> helper
>> >> > methods as illustrated in the book but they don't seem to work:
>> >> >
>> >> >
>> >> > ...
>> >> > desc = new
>> >> FilterChoice("description",ldp,processTypeDropDownList,logs);
>> >> > ...
>> >> >
>> >> > protected String getDescriptionSelection(){
>> >> > return desc.getModelObjectAsString();
>> >> >   }
>> >> >
>> >> > ...
>> >> > @overide
>> >> > onSubmit(){
>> >> > if(MyClass.this.getDescriptionSelection() .equals(something)){
>> >> >do something...
>> >> > }
>> >> > }
>> >> >
>> >> > thing is...I insert some log.debugs in there to see what was being
>> >> > returned and nothing came back. How can i get the selection back
to
>> my
>> >> > onSubmit method i guess is my question. Thank you
>> >> >
>> >> > -B
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>>
http://www.nabble.com/form-processing---getting-dropdown-selection-back-to-onSubmit-method.-tf3409455.html#a9501974
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >
>> > --
>> > Download Wicket 1.2.5 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
>> >
>> >
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/form-processing---getting-dropdown-selection-back-to-onSubmit-method.-tf3409455.html#a9503553
>> 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://l

Re: [Wicket-user] clone object error when open a new window.

2007-03-15 Thread Matej Knopp
Yeah, this seem to be related to the new wicket object stream code.
Reverting back to DefaultObectStreamFactory fixes it
Objects.setObjectStreamFactory(new
IObjectStreamFactory.DefaultObjectStreamFactory()). Johan, any ideas?

On 3/15/07, tooy li(Gmail) <[EMAIL PROTECTED]> wrote:
> When i try to open a link by new window ,it' happen. I have tried the sample 
> library, it get the same error.
> Is there one can tell me something? I wanto know how to catch the error 
> information in a customed error page.
> thx
>
>
> 2007-03-15 23:35:00,640 ERROR wicket.markup.html.WebPage - Page [Page class = 
> com.toywork.MyTaskList, id = 12] couldn't be cloned to move to another pagemap
> java.lang.ClassCastException: cannot assign instance of 
> com.toywork.UserManagerService$$EnhancerByCGLIB$$ecaf938d to field 
> com.toywork.base.BasePage.userService of type com.toywork.UserManagerService 
> in instance of com.toywork.MyTaskList
>  at 
> java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2004)
>  at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1184)
>  at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1914)
>  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
>  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
>  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
>  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
>  at wicket.util.lang.Objects.cloneObject(Objects.java:505)
> -
> 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] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread GS-ikiini

i seei have a fair understaning of models this is what i am doing: I have
a dataprovider that services a dataview. this data provider is the the model
that i ultimately need to update. however the properties within this are
beans i need to set them using the selection from the dropdown. so fo
instancemy dataprovider has a property that is a saya user. this user
itself has a property called name. which is a string. now in my webpage
class i have a dropdown with a list of names. what i need to do is select a
name and get the appropriate bean to pass it to the dataprovider so that it
can do its thing and return its results to the dataview. how would i go
about this?

-B


igor.vaynberg wrote:
> 
> since you dont specify the model for the selection wicket will look for a
> compoundpropertymodel you have somewhere above. the value will go into the
> bean that is in the compoundpropertymodel into a property with the same
> name
> as the id of the dropdownchoice.
> 
> there is a great page on models on our wiki
> 
> -igor
> 
> 
> On 3/15/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>>
>>
>> also how do i get the user selection from a drop down that uses the
>> dropDownchoice(String id,list choinces) constrctor?
>>
>>
>>
>> Gwyn wrote:
>> >
>> > I'm away from my main computer now, so can't check code, but have you
>> > had a look at the Wicket examples, e.g.
>> >
>> http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.compref.DropDownChoicePage
>> >
>> > /Gwyn
>> >
>> > On 15/03/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>> >>
>> >> ok here is another question...how do i by pass the validating and form
>> >> processing and go straight to the onSubmit method of my form(not the
>> >> button)?
>> >>
>> >> -B
>> >>
>> >>
>> >>
>> >> GS-ikiini wrote:
>> >> >
>> >> > hey all,
>> >> >
>> >> > I am attempting to do some form processing for a filter that i am
>> >> > building. I user 4 dropDownChoice in a form with a submit button. I
>> >> want
>> >> > to overide the onSubmit method, which i did. however when i try to
>> get
>> >> the
>> >> > values selected from the drop down in the method for prodessing,
>> they
>> >> come
>> >> > back empty. I am using pro wicket as a reference. i wrote simple
>> helper
>> >> > methods as illustrated in the book but they don't seem to work:
>> >> >
>> >> >
>> >> > ...
>> >> > desc = new
>> >> FilterChoice("description",ldp,processTypeDropDownList,logs);
>> >> > ...
>> >> >
>> >> > protected String getDescriptionSelection(){
>> >> > return desc.getModelObjectAsString();
>> >> >   }
>> >> >
>> >> > ...
>> >> > @overide
>> >> > onSubmit(){
>> >> > if(MyClass.this.getDescriptionSelection() .equals(something)){
>> >> >do something...
>> >> > }
>> >> > }
>> >> >
>> >> > thing is...I insert some log.debugs in there to see what was being
>> >> > returned and nothing came back. How can i get the selection back to
>> my
>> >> > onSubmit method i guess is my question. Thank you
>> >> >
>> >> > -B
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/form-processing---getting-dropdown-selection-back-to-onSubmit-method.-tf3409455.html#a9501974
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >
>> > --
>> > Download Wicket 1.2.5 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
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/form-processing---getting-dropdown-selection-back-to-onSubmit-method.-tf3409455.html#a9503553
>> 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
>>
> 
> -
> 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
> 

Re: [Wicket-user] HttpSessionStore vs SecondLevelCacheSessionStore(FilePageStore)

2007-03-15 Thread Matej Knopp
I've got no clue about those exception. There is problem with current
wicket's output stream (it's obvious even in wicket-examples.
Reverting back to default helps here).

But. There is bigger problem than this. The problem with two different
instances of one page. I don't see easy solution for this. Normally,
this is not an issue, because if you keep page instance, you usually
call setResposnePage(instance) to get to it. However, this is not the
case with modal window. So if you keep reference to modal window page,
and then change it's state, it won't help you, because wicket reads
the serialized age anyway.



On 3/15/07, ChuckDeal <[EMAIL PROTECTED]> wrote:
>
> A Page, with a private final ModalWindow reference.
>
> Also, the more I used the ModalWindow in a Tomcat session (between start and
> stop of server) the less of the exceptions I see.  In one case where I was
> constantly loading the ModalWindow, I stopped getting those exceptions!  I
> didn't get the chance to debug it further because my top priority was
> figuring out what had changed since the last time my code worked.
>
> Chuck
>
>
> Matej Knopp-2 wrote:
> >
> > This really is strange. Do you have panel inside the window or a page?
> >
> > -Matej
> >
> > On 3/15/07, ChuckDeal <[EMAIL PROTECTED]> wrote:
> >>
> >> Yeah, already tried that :)  I knew there was something else I was
> >> supposed
> >> to say in that last post...
> >>
> >> On a side note, I don't know if this is related, but I get a bunch of the
> >> following exceptions just by opening my ModalWindow, regardless of the
> >> SessionStore or ObjectStream:
> >>
> >> 12:39:42,537 ERROR RequestCycle:1096 - ClientAbortException:
> >> java.net.SocketException: Connection reset by peer: socket write error
> >> wicket.WicketRuntimeException: ClientAbortException:
> >> java.net.SocketException: Connection reset by peer: socket write error
> >> at wicket.Response.write(Response.java:308)
> >> at
> >> wicket.request.target.resource.ResourceStreamRequestTarget.respond(ResourceStreamRequestTarget.java:125)
> >> at
> >> wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:102)
> >> at wicket.RequestCycle.respond(RequestCycle.java:1001)
> >> at wicket.RequestCycle.step(RequestCycle.java:1074)
> >> at wicket.RequestCycle.steps(RequestCycle.java:1138)
> >> at wicket.RequestCycle.request(RequestCycle.java:474)
> >> at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:256)
> >> at
> >> wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:137)
> >> at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> >> at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> >> at
> >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> >> at
> >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> >> at
> >> org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
> >> at
> >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> >> at
> >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> >> at
> >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> >> at
> >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> >> at
> >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> >> at
> >> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> >> at
> >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> >> at
> >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> >> at
> >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> >> at java.lang.Thread.run(Thread.java:595)
> >> Caused by: ClientAbortException:  java.net.SocketException: Connection
> >> reset
> >> by peer: socket write error
> >> at
> >> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327)
> >> at
> >> org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
> >> at
> >> org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:97)
> >> at wicket.Response.write(Response.java:304)
> >> ... 23 more
> >> Caused by: java.net.SocketException: Connection reset by peer: socket
> >> write
> >> error
> >> at java.net.SocketOutputStream.socketWrite0(Native Method)
> >> at
> >> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> >> at java.net.SocketOutputStream.write(SocketOutputStre

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread Igor Vaynberg

since you dont specify the model for the selection wicket will look for a
compoundpropertymodel you have somewhere above. the value will go into the
bean that is in the compoundpropertymodel into a property with the same name
as the id of the dropdownchoice.

there is a great page on models on our wiki

-igor


On 3/15/07, GS-ikiini <[EMAIL PROTECTED]> wrote:



also how do i get the user selection from a drop down that uses the
dropDownchoice(String id,list choinces) constrctor?



Gwyn wrote:
>
> I'm away from my main computer now, so can't check code, but have you
> had a look at the Wicket examples, e.g.
>
http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.compref.DropDownChoicePage
>
> /Gwyn
>
> On 15/03/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>>
>> ok here is another question...how do i by pass the validating and form
>> processing and go straight to the onSubmit method of my form(not the
>> button)?
>>
>> -B
>>
>>
>>
>> GS-ikiini wrote:
>> >
>> > hey all,
>> >
>> > I am attempting to do some form processing for a filter that i am
>> > building. I user 4 dropDownChoice in a form with a submit button. I
>> want
>> > to overide the onSubmit method, which i did. however when i try to
get
>> the
>> > values selected from the drop down in the method for prodessing, they
>> come
>> > back empty. I am using pro wicket as a reference. i wrote simple
helper
>> > methods as illustrated in the book but they don't seem to work:
>> >
>> >
>> > ...
>> > desc = new
>> FilterChoice("description",ldp,processTypeDropDownList,logs);
>> > ...
>> >
>> > protected String getDescriptionSelection(){
>> > return desc.getModelObjectAsString();
>> >   }
>> >
>> > ...
>> > @overide
>> > onSubmit(){
>> > if(MyClass.this.getDescriptionSelection() .equals(something)){
>> >do something...
>> > }
>> > }
>> >
>> > thing is...I insert some log.debugs in there to see what was being
>> > returned and nothing came back. How can i get the selection back to
my
>> > onSubmit method i guess is my question. Thank you
>> >
>> > -B
>> >
>> >
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/form-processing---getting-dropdown-selection-back-to-onSubmit-method.-tf3409455.html#a9501974
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>
> --
> Download Wicket 1.2.5 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
>
>

--
View this message in context:
http://www.nabble.com/form-processing---getting-dropdown-selection-back-to-onSubmit-method.-tf3409455.html#a9503553
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

-
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] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread GS-ikiini

also how do i get the user selection from a drop down that uses the
dropDownchoice(String id,list choinces) constrctor? 



Gwyn wrote:
> 
> I'm away from my main computer now, so can't check code, but have you
> had a look at the Wicket examples, e.g.
> http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.compref.DropDownChoicePage
> 
> /Gwyn
> 
> On 15/03/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>>
>> ok here is another question...how do i by pass the validating and form
>> processing and go straight to the onSubmit method of my form(not the
>> button)?
>>
>> -B
>>
>>
>>
>> GS-ikiini wrote:
>> >
>> > hey all,
>> >
>> > I am attempting to do some form processing for a filter that i am
>> > building. I user 4 dropDownChoice in a form with a submit button. I
>> want
>> > to overide the onSubmit method, which i did. however when i try to get
>> the
>> > values selected from the drop down in the method for prodessing, they
>> come
>> > back empty. I am using pro wicket as a reference. i wrote simple helper
>> > methods as illustrated in the book but they don't seem to work:
>> >
>> >
>> > ...
>> > desc = new
>> FilterChoice("description",ldp,processTypeDropDownList,logs);
>> > ...
>> >
>> > protected String getDescriptionSelection(){
>> > return desc.getModelObjectAsString();
>> >   }
>> >
>> > ...
>> > @overide
>> > onSubmit(){
>> > if(MyClass.this.getDescriptionSelection() .equals(something)){
>> >do something...
>> > }
>> > }
>> >
>> > thing is...I insert some log.debugs in there to see what was being
>> > returned and nothing came back. How can i get the selection back to my
>> > onSubmit method i guess is my question. Thank you
>> >
>> > -B
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/form-processing---getting-dropdown-selection-back-to-onSubmit-method.-tf3409455.html#a9501974
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
> 
> -- 
> Download Wicket 1.2.5 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/form-processing---getting-dropdown-selection-back-to-onSubmit-method.-tf3409455.html#a9503553
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] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread GS-ikiini

yes i have but i am not quite sure how to apply it to what i am doing. It
calls for a model on which the current selecting is designated thing is in
my selection list i have a strings. but in the model that need setting i
have only mostly bean properties. what i want to do is as the user makes a
selection, i want to take that selection and look up the appropriate bean.
then pass that bean to the model which does something with it. any
suggestions on how to accomplish this? 

-B



Gwyn wrote:
> 
> I'm away from my main computer now, so can't check code, but have you
> had a look at the Wicket examples, e.g.
> http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.compref.DropDownChoicePage
> 
> /Gwyn
> 
> On 15/03/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>>
>> ok here is another question...how do i by pass the validating and form
>> processing and go straight to the onSubmit method of my form(not the
>> button)?
>>
>> -B
>>
>>
>>
>> GS-ikiini wrote:
>> >
>> > hey all,
>> >
>> > I am attempting to do some form processing for a filter that i am
>> > building. I user 4 dropDownChoice in a form with a submit button. I
>> want
>> > to overide the onSubmit method, which i did. however when i try to get
>> the
>> > values selected from the drop down in the method for prodessing, they
>> come
>> > back empty. I am using pro wicket as a reference. i wrote simple helper
>> > methods as illustrated in the book but they don't seem to work:
>> >
>> >
>> > ...
>> > desc = new
>> FilterChoice("description",ldp,processTypeDropDownList,logs);
>> > ...
>> >
>> > protected String getDescriptionSelection(){
>> > return desc.getModelObjectAsString();
>> >   }
>> >
>> > ...
>> > @overide
>> > onSubmit(){
>> > if(MyClass.this.getDescriptionSelection() .equals(something)){
>> >do something...
>> > }
>> > }
>> >
>> > thing is...I insert some log.debugs in there to see what was being
>> > returned and nothing came back. How can i get the selection back to my
>> > onSubmit method i guess is my question. Thank you
>> >
>> > -B
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/form-processing---getting-dropdown-selection-back-to-onSubmit-method.-tf3409455.html#a9501974
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
> 
> -- 
> Download Wicket 1.2.5 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/form-processing---getting-dropdown-selection-back-to-onSubmit-method.-tf3409455.html#a9503495
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] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread Gwyn Evans
I'm away from my main computer now, so can't check code, but have you
had a look at the Wicket examples, e.g.
http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.compref.DropDownChoicePage

/Gwyn

On 15/03/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>
> ok here is another question...how do i by pass the validating and form
> processing and go straight to the onSubmit method of my form(not the
> button)?
>
> -B
>
>
>
> GS-ikiini wrote:
> >
> > hey all,
> >
> > I am attempting to do some form processing for a filter that i am
> > building. I user 4 dropDownChoice in a form with a submit button. I want
> > to overide the onSubmit method, which i did. however when i try to get the
> > values selected from the drop down in the method for prodessing, they come
> > back empty. I am using pro wicket as a reference. i wrote simple helper
> > methods as illustrated in the book but they don't seem to work:
> >
> >
> > ...
> > desc = new FilterChoice("description",ldp,processTypeDropDownList,logs);
> > ...
> >
> > protected String getDescriptionSelection(){
> > return desc.getModelObjectAsString();
> >   }
> >
> > ...
> > @overide
> > onSubmit(){
> > if(MyClass.this.getDescriptionSelection() .equals(something)){
> >do something...
> > }
> > }
> >
> > thing is...I insert some log.debugs in there to see what was being
> > returned and nothing came back. How can i get the selection back to my
> > onSubmit method i guess is my question. Thank you
> >
> > -B
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/form-processing---getting-dropdown-selection-back-to-onSubmit-method.-tf3409455.html#a9501974
> Sent from the Wicket - User mailing list archive at Nabble.com.
>

-- 
Download Wicket 1.2.5 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] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread GS-ikiini

ok here is another question...how do i by pass the validating and form
processing and go straight to the onSubmit method of my form(not the
button)?

-B 



GS-ikiini wrote:
> 
> hey all,
> 
> I am attempting to do some form processing for a filter that i am
> building. I user 4 dropDownChoice in a form with a submit button. I want
> to overide the onSubmit method, which i did. however when i try to get the
> values selected from the drop down in the method for prodessing, they come
> back empty. I am using pro wicket as a reference. i wrote simple helper
> methods as illustrated in the book but they don't seem to work:
> 
> 
> ...
> desc = new FilterChoice("description",ldp,processTypeDropDownList,logs);
> ...
>  
> protected String getDescriptionSelection(){
> return desc.getModelObjectAsString();
>   }
> 
> ...
> @overide
> onSubmit(){
> if(MyClass.this.getDescriptionSelection() .equals(something)){
>do something...
> }
> }
> 
> thing is...I insert some log.debugs in there to see what was being
> returned and nothing came back. How can i get the selection back to my
> onSubmit method i guess is my question. Thank you
> 
> -B
>  
> 

-- 
View this message in context: 
http://www.nabble.com/form-processing---getting-dropdown-selection-back-to-onSubmit-method.-tf3409455.html#a9501974
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] HttpSessionStore vs SecondLevelCacheSessionStore(FilePageStore)

2007-03-15 Thread ChuckDeal

A Page, with a private final ModalWindow reference.

Also, the more I used the ModalWindow in a Tomcat session (between start and
stop of server) the less of the exceptions I see.  In one case where I was
constantly loading the ModalWindow, I stopped getting those exceptions!  I
didn't get the chance to debug it further because my top priority was
figuring out what had changed since the last time my code worked.

Chuck


Matej Knopp-2 wrote:
> 
> This really is strange. Do you have panel inside the window or a page?
> 
> -Matej
> 
> On 3/15/07, ChuckDeal <[EMAIL PROTECTED]> wrote:
>>
>> Yeah, already tried that :)  I knew there was something else I was
>> supposed
>> to say in that last post...
>>
>> On a side note, I don't know if this is related, but I get a bunch of the
>> following exceptions just by opening my ModalWindow, regardless of the
>> SessionStore or ObjectStream:
>>
>> 12:39:42,537 ERROR RequestCycle:1096 - ClientAbortException:
>> java.net.SocketException: Connection reset by peer: socket write error
>> wicket.WicketRuntimeException: ClientAbortException:
>> java.net.SocketException: Connection reset by peer: socket write error
>> at wicket.Response.write(Response.java:308)
>> at
>> wicket.request.target.resource.ResourceStreamRequestTarget.respond(ResourceStreamRequestTarget.java:125)
>> at
>> wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:102)
>> at wicket.RequestCycle.respond(RequestCycle.java:1001)
>> at wicket.RequestCycle.step(RequestCycle.java:1074)
>> at wicket.RequestCycle.steps(RequestCycle.java:1138)
>> at wicket.RequestCycle.request(RequestCycle.java:474)
>> at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:256)
>> at
>> wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:137)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>> at
>> org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>> at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>> at
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>> at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>> at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>> at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>> at java.lang.Thread.run(Thread.java:595)
>> Caused by: ClientAbortException:  java.net.SocketException: Connection
>> reset
>> by peer: socket write error
>> at
>> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327)
>> at
>> org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
>> at
>> org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:97)
>> at wicket.Response.write(Response.java:304)
>> ... 23 more
>> Caused by: java.net.SocketException: Connection reset by peer: socket
>> write
>> error
>> at java.net.SocketOutputStream.socketWrite0(Native Method)
>> at
>> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
>> at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
>> at
>> org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:746)
>> at
>> org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
>> at
>> org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:304)
>> at
>> org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991)
>> at org.apache.coyote.Response.action(Response.java:182)
>> at
>> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)
>> ... 26 more
>>
>> Chuck
>>
>>
>> Eelco Hillenius wrote:
>> >
>> >> Can someone offer me some guidance on how to verify that the
>> >> SecLvlCahce/FilePageStore is actually the culprit?  Can I provide some
>> >> debugging info/log output that would be of use to a Wicket dev i

Re: [Wicket-user] HttpSessionStore vs SecondLevelCacheSessionStore(FilePageStore)

2007-03-15 Thread Matej Knopp
This really is strange. Do you have panel inside the window or a page?

-Matej

On 3/15/07, ChuckDeal <[EMAIL PROTECTED]> wrote:
>
> Yeah, already tried that :)  I knew there was something else I was supposed
> to say in that last post...
>
> On a side note, I don't know if this is related, but I get a bunch of the
> following exceptions just by opening my ModalWindow, regardless of the
> SessionStore or ObjectStream:
>
> 12:39:42,537 ERROR RequestCycle:1096 - ClientAbortException:
> java.net.SocketException: Connection reset by peer: socket write error
> wicket.WicketRuntimeException: ClientAbortException:
> java.net.SocketException: Connection reset by peer: socket write error
> at wicket.Response.write(Response.java:308)
> at
> wicket.request.target.resource.ResourceStreamRequestTarget.respond(ResourceStreamRequestTarget.java:125)
> at
> wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:102)
> at wicket.RequestCycle.respond(RequestCycle.java:1001)
> at wicket.RequestCycle.step(RequestCycle.java:1074)
> at wicket.RequestCycle.steps(RequestCycle.java:1138)
> at wicket.RequestCycle.request(RequestCycle.java:474)
> at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:256)
> at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:137)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at
> org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: ClientAbortException:  java.net.SocketException: Connection reset
> by peer: socket write error
> at
> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327)
> at 
> org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
> at
> org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:97)
> at wicket.Response.write(Response.java:304)
> ... 23 more
> Caused by: java.net.SocketException: Connection reset by peer: socket write
> error
> at java.net.SocketOutputStream.socketWrite0(Native Method)
> at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
> at
> org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:746)
> at 
> org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
> at
> org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:304)
> at
> org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991)
> at org.apache.coyote.Response.action(Response.java:182)
> at
> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)
> ... 26 more
>
> Chuck
>
>
> Eelco Hillenius wrote:
> >
> >> Can someone offer me some guidance on how to verify that the
> >> SecLvlCahce/FilePageStore is actually the culprit?  Can I provide some
> >> debugging info/log output that would be of use to a Wicket dev in
> >> tracking
> >> it down?  Mind you, I'm not getting anything in my logs that says there
> >> is a
> >> problem, it just isn't working...
> >>
> >> Is there a big difference in using HttpSessionStore instead of the
> >> SecLvlCacheStore in the mean time?
> >
> > There shouldn't be, though SLCSS relies more on serialization then
> > HttpSessionStore as the latter only uses serialization for the changes
> > between request (e.g. when you replace a component, it makes a deep
> > clone of that component so that on a roll back, that component can be
> > se

Re: [Wicket-user] how do refresh the repeatview after close ajax modal window?

2007-03-15 Thread Matej Knopp
To refresh a repeater, you have to add it's parent (e.g.
webmarkupcontainer) to ajax request target. Repeater itself has no
markup.

-Matej

On 3/15/07, tooy li(Gmail) <[EMAIL PROTECTED]> wrote:
> for the defaultdatatable ,i only need add a parent container of datatable 
> into the target of  ajax modal window.
> But for the repeat view ,it cannot work !!. I also want to when the gridview 
> can work well in 2.0 version
> I used 2.0 version snapshot
> thx.
> -
> 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] Joost uses Wicket

2007-03-15 Thread Ryan
It is definitely possible. First make sure you are running 1.2.5 or
better (this will fix a bug where posts did not have a '/' after the
context name if you choose to deploy the application with a non root
context). Map your servlet to '/*' ... Next, deploy. =)

The only other issue to worry about is how to serve static content. My
preference is to frontend tomcat or jetty with apache and have apache
serve anything located at /images or /css etc. This means in wicket if
I want to create an image tag that refers to a static image I create a
url that references /images/filename.jpg. When deploying with apache
this will be served by apache and when running without apache I deploy
a static web application to the /images context. This has proven to
work very well for the last few projects I have worked on.

Ryan

On 3/12/07, cowwoc <[EMAIL PROTECTED]> wrote:
>
> My point is that you can't do that with Wicket, unless you know
> something I don't...?
>
> Gili
>
> Ryan wrote:
> > In any public application I deploy I remove the servlet context path
> > (wicket or no wicket).
> >
> > Ryan
> >
> > On 3/12/07, cowwoc <[EMAIL PROTECTED]> wrote:
> >> If they use Wicket why doesn't it show at all on their website at
> >> joost.com? I am expecting to at least see some evidence of a servlet
> >> context path...
> >>
> >> Gili
> >>
> >> Brian Topping wrote:
> >>> Here I thought they were cool, then they use Ant?!?
> >>>
> >>> :b
> >>>
> >>> On Mar 12, 2007, at 8:45 AM, mraible wrote:
> >>>
>  Thought y'all might be interested:
> 
>  http://opensource.joost.com/
> 
>  Joost is a new company started by the founders of Skype:
> 
>  http://en.wikipedia.org/wiki/Joost
> 
>  Matt
>  --
>  View this message in context: http://www.nabble.com/Joost-uses-
>  Wicket-tf3390296.html#a9437082
>  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
> 
> >>>
> >>> -
> >>> 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
>
>
>

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

Re: [Wicket-user] Should i upgrade the wicket 2.0 snapshot?

2007-03-15 Thread Eelco Hillenius
The snapshot works well. As you probably read, we probably will
abandon the constructor change, and will need some time to get a
version up that is like 2.0 but without that feature. In the
meanwhile, 2.0 snapshot should work pretty good. In your case, the
best thing to do is probably create a version yourself by manually
adjusting the version numbers in the pom(s) and creating a release
with maven 2.

Eelco


On 3/15/07, tooy li(Gmail) <[EMAIL PROTECTED]> wrote:
> When I began my project at last year, i had to make a choice between 1.2 and 
> 2.0 snapshot. considering the upgrading in furture, i began my wicket travel 
> on a snapshot of december. after three month , i have to deploy the 
> application into production env, but the wicket 2.0 is still not release . so 
> should I upgrade the application to the latest snapshot?  I tried the 
> snapshot of feb, and find some error. and return the previous snapshot again.
>
> I really want to whether that snapshot verson work well .
> -
> 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] file upload validation resets form

2007-03-15 Thread Jaime De La Jara
Hi, I'm using the FileUpload component and set the maxSize property to 150Kb, 
I've 
found that when the uploaded file size is greater than this value, an error 
message is 
displayed (which I customized) but the other fields in the form are emptied. 
How can I fix this situation?

Thanks,

Jaime.




 
-
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.-
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] Tapestry -> Wicket | Action Service

2007-03-15 Thread Eelco Hillenius
> One part that I just can't seem to figure out from reading Pro Wicket and
> browsing through the apidocs is how to
> make something like Tapestry "services".

Contrary to what some people say on The Server Side etc, Wicket and
Tapestry are very different frameworks. This means that not everything
can be mapped from one framework to the other. Tapestry's services
seem to be pretty particular for that framework.

The best way to go here is to forget about the facilities you had in
Tapestry, but just focus on what you want to accomplish. It will be
easier for us to help you out with specific use cases, or you might be
able to figure it out yourself.

FYI, I think we had a very short discussion on whether we should have
the concept of services some 2 years ago, but if I remember correctly
we decided against it as we thought it would distract from thinking in
components. That was then though, and it is never to late to hear some
compelling arguments ;)

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.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] Tapestry -> Wicket | Action Service

2007-03-15 Thread Igor Vaynberg

you wanted to know how to have an equivalent of a tapestry service. if i
remember correctly tapestry services return things. like an asset service
that streams images.

if all you want is a callback then you can use urlFor methods to build such
a callback url. see, for example, how Link component does it.

wicket is event driven. tapestry is also, but not to the same degree. in
wicket you rarely need to build urls yourself because we provide components
that do this for you.

for example Link has an onClick() method and a Button has onSubmit(). wicket
takes care of wiring these methods with urls it generates.

-igor


On 3/15/07, Robert . <[EMAIL PROTECTED]> wrote:


Really? A resource?
But I have nothing to return from my service resource.

Robert


On 3/15/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
>
> wicket's equivalent of a service is a shared resource. you can register
> your own shared resources through your webapplication subclass.
>
> as far as selecting pages via javascript:
>
> wicket doesnt really have a page service. urls for pages are resolved
> internally. if you want a stable entry point into the page then you should
> mount it, also via the webapplication subclass, and then the javascript can
> redirect to the mounted url.
>
> -igor
>
>
> On 3/15/07, Robert . < [EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > I have been examining how I can convert a web application product from
> > Tapestry 3 to Wicket, and trying to adapt
> > myself to the Wicket way of thinking about web flow.
> >
> > One part that I just can't seem to figure out from reading Pro Wicket
> > and browsing through the apidocs is how to
> > make something like Tapestry "services".
> >
> > For example I have an action service in Tapestry that let's me send an
> > action command, including additonal parameters,
> > to the service by using javascript. I have such a service for both
> > normal requests and XMLHTTP requests. But thinking
> > about this further makes me realize I don't even know how to make
> > something like a PageService where the page is determined by javascript.
> >
> > I feel like I am missing something.
> >
> > Robert
> >
> >
> >
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
> > http://www.techsay.com/default.php?page=join.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


[Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread GS-ikiini

hey all,

I am attempting to do some form processing for a filter that i am building.
I user 4 dropDownChoice in a form with a submit button. I want to overide
the onSubmit method, which i did. however when i try to get the values
selected from the drop down in the method for prodessing, they come back
empty. I am using pro wicket as a reference. i wrote simple helper methods
as illustrated in the book but they don't seem to work:


...
desc = new FilterChoice("description",ldp,processTypeDropDownList,logs);
...
 
protected String getDescriptionSelection(){
return desc.getModelObjectAsString();
  }

...
@overide
onSubmit(){
if(MyClass.this.getDescriptionSelection() .equals(something)){
   do something...
}
}

thing is...I insert some log.debugs in there to see what was being returned
and nothing came back. How can i get the selection back to my onSubmit
method i guess is my question. Thank you

-B
 
-- 
View this message in context: 
http://www.nabble.com/form-processing---getting-dropdown-selection-back-to-onSubmit-method.-tf3409455.html#a9498483
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] HttpSessionStore vs SecondLevelCacheSessionStore(FilePageStore)

2007-03-15 Thread ChuckDeal

Yeah, already tried that :)  I knew there was something else I was supposed
to say in that last post...

On a side note, I don't know if this is related, but I get a bunch of the
following exceptions just by opening my ModalWindow, regardless of the
SessionStore or ObjectStream:

12:39:42,537 ERROR RequestCycle:1096 - ClientAbortException: 
java.net.SocketException: Connection reset by peer: socket write error
wicket.WicketRuntimeException: ClientAbortException: 
java.net.SocketException: Connection reset by peer: socket write error
at wicket.Response.write(Response.java:308)
at
wicket.request.target.resource.ResourceStreamRequestTarget.respond(ResourceStreamRequestTarget.java:125)
at
wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:102)
at wicket.RequestCycle.respond(RequestCycle.java:1001)
at wicket.RequestCycle.step(RequestCycle.java:1074)
at wicket.RequestCycle.steps(RequestCycle.java:1138)
at wicket.RequestCycle.request(RequestCycle.java:474)
at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:256)
at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:137)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: ClientAbortException:  java.net.SocketException: Connection reset
by peer: socket write error
at
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327)
at 
org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
at
org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:97)
at wicket.Response.write(Response.java:304)
... 23 more
Caused by: java.net.SocketException: Connection reset by peer: socket write
error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:746)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
at
org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:304)
at
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991)
at org.apache.coyote.Response.action(Response.java:182)
at
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)
... 26 more

Chuck


Eelco Hillenius wrote:
> 
>> Can someone offer me some guidance on how to verify that the
>> SecLvlCahce/FilePageStore is actually the culprit?  Can I provide some
>> debugging info/log output that would be of use to a Wicket dev in
>> tracking
>> it down?  Mind you, I'm not getting anything in my logs that says there
>> is a
>> problem, it just isn't working...
>>
>> Is there a big difference in using HttpSessionStore instead of the
>> SecLvlCacheStore in the mean time?
> 
> There shouldn't be, though SLCSS relies more on serialization then
> HttpSessionStore as the latter only uses serialization for the changes
> between request (e.g. when you replace a component, it makes a deep
> clone of that component so that on a roll back, that component can be
> set back) whereas SLCSS serializes the whole pages and stores them on
> disk.
> 
>>From your description and the fact that it worked earlier for you, I
> suspect the custom serialization we are building into Wicket and which
> is currently the default is at fault. To set that back you can call:
> 
> Objects.setObjectStream

Re: [Wicket-user] HttpSessionStore vs SecondLevelCacheSessionStore(FilePageStore)

2007-03-15 Thread Eelco Hillenius
> Can someone offer me some guidance on how to verify that the
> SecLvlCahce/FilePageStore is actually the culprit?  Can I provide some
> debugging info/log output that would be of use to a Wicket dev in tracking
> it down?  Mind you, I'm not getting anything in my logs that says there is a
> problem, it just isn't working...
>
> Is there a big difference in using HttpSessionStore instead of the
> SecLvlCacheStore in the mean time?

There shouldn't be, though SLCSS relies more on serialization then
HttpSessionStore as the latter only uses serialization for the changes
between request (e.g. when you replace a component, it makes a deep
clone of that component so that on a roll back, that component can be
set back) whereas SLCSS serializes the whole pages and stores them on
disk.

>From your description and the fact that it worked earlier for you, I
suspect the custom serialization we are building into Wicket and which
is currently the default is at fault. To set that back you can call:

Objects.setObjectStreamFactory(new
IObjectStreamFactory.DefaultObjectStreamFactory());

in your application#init method. Custom serialization can be turned on
again by calling:

Objects.setObjectStreamFactory(new WicketObjectStreamFactory());

Note that the naming is a bit weird maybe, as the
DefaultObjectStreamFactory is not the default :) Interpret this as a
factory for JDK's default object streams.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.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] Tapestry -> Wicket | Action Service

2007-03-15 Thread Robert .

Really? A resource?
But I have nothing to return from my service resource.

Robert


On 3/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


wicket's equivalent of a service is a shared resource. you can register
your own shared resources through your webapplication subclass.

as far as selecting pages via javascript:

wicket doesnt really have a page service. urls for pages are resolved
internally. if you want a stable entry point into the page then you should
mount it, also via the webapplication subclass, and then the javascript can
redirect to the mounted url.

-igor


On 3/15/07, Robert . <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I have been examining how I can convert a web application product from
> Tapestry 3 to Wicket, and trying to adapt
> myself to the Wicket way of thinking about web flow.
>
> One part that I just can't seem to figure out from reading Pro Wicket
> and browsing through the apidocs is how to
> make something like Tapestry "services".
>
> For example I have an action service in Tapestry that let's me send an
> action command, including additonal parameters,
> to the service by using javascript. I have such a service for both
> normal requests and XMLHTTP requests. But thinking
> about this further makes me realize I don't even know how to make
> something like a PageService where the page is determined by javascript.
>
> I feel like I am missing something.
>
> Robert
>
>
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.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


[Wicket-user] how do refresh the repeatview after close ajax modal window?

2007-03-15 Thread tooy li(Gmail)
for the defaultdatatable ,i only need add a parent container of datatable into 
the target of  ajax modal window.
But for the repeat view ,it cannot work !!. I also want to when the gridview 
can work well in 2.0 version
I used 2.0 version snapshot
thx.  
-
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] Should i upgrade the wicket 2.0 snapshot?

2007-03-15 Thread tooy li(Gmail)
When I began my project at last year, i had to make a choice between 1.2 and 
2.0 snapshot. considering the upgrading in furture, i began my wicket travel on 
a snapshot of december. after three month , i have to deploy the application 
into production env, but the wicket 2.0 is still not release . so should I 
upgrade the application to the latest snapshot?  I tried the snapshot of feb, 
and find some error. and return the previous snapshot again. 

I really want to whether that snapshot verson work well .
-
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] clone object error when open a new window.

2007-03-15 Thread tooy li(Gmail)
When i try to open a link by new window ,it' happen. I have tried the sample 
library, it get the same error. 
Is there one can tell me something? I wanto know how to catch the error 
information in a customed error page.
thx


2007-03-15 23:35:00,640 ERROR wicket.markup.html.WebPage - Page [Page class = 
com.toywork.MyTaskList, id = 12] couldn't be cloned to move to another pagemap
java.lang.ClassCastException: cannot assign instance of 
com.toywork.UserManagerService$$EnhancerByCGLIB$$ecaf938d to field 
com.toywork.base.BasePage.userService of type com.toywork.UserManagerService in 
instance of com.toywork.MyTaskList
 at 
java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2004)
 at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1184)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1914)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
 at wicket.util.lang.Objects.cloneObject(Objects.java:505)
-
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] Tapestry -> Wicket | Action Service

2007-03-15 Thread Igor Vaynberg

wicket's equivalent of a service is a shared resource. you can register your
own shared resources through your webapplication subclass.

as far as selecting pages via javascript:

wicket doesnt really have a page service. urls for pages are resolved
internally. if you want a stable entry point into the page then you should
mount it, also via the webapplication subclass, and then the javascript can
redirect to the mounted url.

-igor


On 3/15/07, Robert . <[EMAIL PROTECTED]> wrote:


Hi,

I have been examining how I can convert a web application product from
Tapestry 3 to Wicket, and trying to adapt
myself to the Wicket way of thinking about web flow.

One part that I just can't seem to figure out from reading Pro Wicket and
browsing through the apidocs is how to
make something like Tapestry "services".

For example I have an action service in Tapestry that let's me send an
action command, including additonal parameters,
to the service by using javascript. I have such a service for both normal
requests and XMLHTTP requests. But thinking
about this further makes me realize I don't even know how to make
something like a PageService where the page is determined by javascript.

I feel like I am missing something.

Robert



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.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] AjaxFallbackLink and ListView

2007-03-15 Thread Igor Vaynberg

there is a bug in 1.2.5 with header contributors. what happens is that
wicket-ajax.js file doesnt get included in the rendered page and so the link
goes into fallback mode.

this is fixed in wicket-1.2.x branch which you can check out and build, or
wait for 1.2.6 release

-igor


On 3/15/07, Juha Alatalo <[EMAIL PROTECTED]> wrote:


Hi,

I found out that in some cases AjaxFallbackLinks creates a normal call
(AjaxRequestTarget == null) in onClick instead of an ajax call.

In my example case there is a (submit)Button that puts some stuff on
Vector which is shown in a ListView below. If following process is done,
the AjaxRequestTarget is null in onClick:
- press Submit test
- press some link in the list (let's say Open 2)
- press Submit test again
- press Open 2 again

Why does this happen?

I am using wicket 1.2.5 and the example can be found on:
https://download.syncrontech.com/public/wicket-ajax-fallback.zip

- Juha Alatalo

-
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] HttpSessionStore vs SecondLevelCacheSessionStore(FilePageStore)

2007-03-15 Thread ChuckDeal

Sorry, I posted this too soon.  more details...

Wicket 1.3 (revision 518581)
I know that the code was working correctly with the SecLvlCacheStore as
recently as the week of  01MAR2007 - 07MAR2007 if not even a few days after
that.


ChuckDeal wrote:
> 
> I need some help tracking down a problem with the
> SecondLevelCacheSessionStore/FilePageStore.  I think the problem is there
> because when I switched to the HttpSessionStore, it went away.  That only
> took me 5 or 6 hours to figure out...arghh
> 
> Anyway, my scenario is this:
> I have a Page that contains an enhanced ModalWindow (I added a couple of
> methods to return state info; which button was clicked, what is the return
> value Object is).  The actual operation of the ModalWindow appears to be
> fine.  When I click one of the buttons on my Page (ie a CANCEL button that
> sets the button state to CANCEL and returnValue=null, then closes the
> ModalWindow), I can see that the state info is stored in the correct
> fields on the corrent *instance* of the ModalWindow object.  But, by the
> time the ModalWindow.WindowClosedCallback.onClose() method fires, I have a
> handle to the wrong *instance* of the ModalWindow!  We're talking the
> actual ModalWindow Component instance has changed (I verify this in the
> debugger by looking at the Java Object id).
> 
> I'm dumbfounded, I couldn't imagine how that could happen, then I
> remembered all the talk about serialization and such, so just for fun, I
> overrode the newSessionStore() method of my Application to return new
> HttpSessionStore() and sonofabitch if the same code didn't work this time.
> 
> Can someone offer me some guidance on how to verify that the
> SecLvlCahce/FilePageStore is actually the culprit?  Can I provide some
> debugging info/log output that would be of use to a Wicket dev in tracking
> it down?  Mind you, I'm not getting anything in my logs that says there is
> a problem, it just isn't working...
> 
> Is there a big difference in using HttpSessionStore instead of the
> SecLvlCacheStore in the mean time?
> 
> Thanks
> Chuck
> 

-- 
View this message in context: 
http://www.nabble.com/HttpSessionStore-vs-SecondLevelCacheSessionStore%28FilePageStore%29-tf3408964.html#a9496931
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


[Wicket-user] HttpSessionStore vs SecondLevelCacheSessionStore(FilePageStore)

2007-03-15 Thread ChuckDeal

I need some help tracking down a problem with the
SecondLevelCacheSessionStore/FilePageStore.  I think the problem is there
because when I switched to the HttpSessionStore, it went away.  That only
took me 5 or 6 hours to figure out...arghh

Anyway, my scenario is this:
I have a Page that contains an enhanced ModalWindow (I added a couple of
methods to return state info; which button was clicked, what is the return
value Object is).  The actual operation of the ModalWindow appears to be
fine.  When I click one of the buttons on my Page (ie a CANCEL button that
sets the button state to CANCEL and returnValue=null, then closes the
ModalWindow), I can see that the state info is stored in the correct fields
on the corrent *instance* of the ModalWindow object.  But, by the time the
ModalWindow.WindowClosedCallback.onClose() method fires, I have a handle to
the wrong *instance* of the ModalWindow!  We're talking the actual
ModalWindow Component instance has changed (I verify this in the debugger by
looking at the Java Object id).

I'm dumbfounded, I couldn't imagine how that could happen, then I remembered
all the talk about serialization and such, so just for fun, I overrode the
newSessionStore() method of my Application to return new HttpSessionStore()
and sonofabitch if the same code didn't work this time.

Can someone offer me some guidance on how to verify that the
SecLvlCahce/FilePageStore is actually the culprit?  Can I provide some
debugging info/log output that would be of use to a Wicket dev in tracking
it down?  Mind you, I'm not getting anything in my logs that says there is a
problem, it just isn't working...

Is there a big difference in using HttpSessionStore instead of the
SecLvlCacheStore in the mean time?

Thanks
Chuck
-- 
View this message in context: 
http://www.nabble.com/HttpSessionStore-vs-SecondLevelCacheSessionStore%28FilePageStore%29-tf3408964.html#a9496832
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] how do I set Ajax time out[wicket 1.2.4]?

2007-03-15 Thread Nino Wael
Hmm this is really wierd, when testing this against one of our dev machine's 
these errors does not occur.. It only occurs against our servers.



Fra: [EMAIL PROTECTED] på vegne af Nino Wael
Sendt: to 15-03-2007 13:56
Til: wicket-user@lists.sourceforge.net
Emne: [Wicket-user] how do I set Ajax time out[wicket 1.2.4]?



Hi

I have some components that uses the ajaxformupdatingbehavior. Some times(1% of 
1300 requests) under "heavy" load(24 concurent users/threads using jmeter) some 
of them fails to be able to select something in the dropdown thats using the 
updating behavior. This leads me to think that the ajax updating behavior times 
out, so how do I increase the duration on ajaxrequests?

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


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

2007-03-15 Thread Daniele Dellafiore
Hi. I am trying to make a test to check the content of a DataTable
that is in a WebPage.
I can get the table with page.get("table");
where "table" is of course the path to my table component in the page.

How can I access a cell in the table? What is the path for, say, cell 1,1?
Or there are other way using tester?

Till now I am using httpunit to test tables but I would like to test
the wicket component by itself and, more over, the WebPage stays in a
Modal Window and I do not know how to test a page in a modal window
via httpunit.

PS: also to know how to test a model window would be very useful.

 Thanks.

-
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] how do I set Ajax time out[wicket 1.2.4]?

2007-03-15 Thread Nino Wael
Hi 
 
I have some components that uses the ajaxformupdatingbehavior. Some times(1% of 
1300 requests) under "heavy" load(24 concurent users/threads using jmeter) some 
of them fails to be able to select something in the dropdown thats using the 
updating behavior. This leads me to think that the ajax updating behavior times 
out, so how do I increase the duration on ajaxrequests?
 
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] Tapestry -> Wicket | Action Service

2007-03-15 Thread Robert .

Hi,

I have been examining how I can convert a web application product from
Tapestry 3 to Wicket, and trying to adapt
myself to the Wicket way of thinking about web flow.

One part that I just can't seem to figure out from reading Pro Wicket and
browsing through the apidocs is how to
make something like Tapestry "services".

For example I have an action service in Tapestry that let's me send an
action command, including additonal parameters,
to the service by using javascript. I have such a service for both normal
requests and XMLHTTP requests. But thinking
about this further makes me realize I don't even know how to make something
like a PageService where the page is determined by javascript.

I feel like I am missing something.

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


[Wicket-user] AjaxFallbackLink and ListView

2007-03-15 Thread Juha Alatalo
Hi,

I found out that in some cases AjaxFallbackLinks creates a normal call 
(AjaxRequestTarget == null) in onClick instead of an ajax call.

In my example case there is a (submit)Button that puts some stuff on 
Vector which is shown in a ListView below. If following process is done, 
the AjaxRequestTarget is null in onClick:
- press Submit test
- press some link in the list (let's say Open 2)
- press Submit test again
- press Open 2 again

Why does this happen?

I am using wicket 1.2.5 and the example can be found on:
https://download.syncrontech.com/public/wicket-ajax-fallback.zip

- Juha Alatalo

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

2007-03-15 Thread Anders Peterson
When I read some old posts discussing changes to the converts I thought 
you where trying to re-invent Format. All that would be required is a 
factory/cache that finds/builds the correct instance and perhaps some 
new Format subclasses.

If you can code MyOwnBigDecimal, then my would it be impossible to code 
a MyOwnFormat and register it with the factory/cache?

I don't know how the new converters work - I'm sure they're great. I 
look forward to the next new release!

/Anders

Igor Vaynberg wrote:
> do i control the factory? what if i have MyOwnBigDecimal class and i 
> want to write a formatter to go between that and a string automatically. 
> how do i integrate that into the jdk api so it works transparently like 
> it would if i used wicket's converters?
> 
> -igor
> 
> 
> On 3/14/07, *Anders Peterson* <[EMAIL PROTECTED] 
> > wrote:
> 
> Not sure what you mean, but if you control the factory you control the
> formatters. /Anders
> 
> Igor Vaynberg wrote:
>  > and does that api support registering your own converters?
>  >
>  > -igor
>  >
>  >
>  > On 3/14/07, *Anders Peterson* <[EMAIL PROTECTED]
> 
>  > >> wrote:
>  >
>  > No. You create them specifying which Locale to use. Look at
> the static
>  > factory methods in NumbverFormat.
>  >
>  >
> http://java.sun.com/j2se/1.5.0/docs/api/java/text/NumberFormat.html
>  >
>  > All Wicket would needs is a FormatFactory that reads the
> Locale from
>  > the
>  > request/session/user and instantiates correct Format instances.
>  >
>  > /Anders
>  >
>  > Martijn Dashorst wrote:
>  >  > On 3/14/07, Anders Peterson <[EMAIL PROTECTED]
> 
>  > >> wrote:
>  >  >> One of my questions remain: Why does Wicket need
> converters at
>  > all? Java
>  >  >> already has java.text.Format with two-way conversion between
>  > String and
>  >  >> some other class.
>  >  >
>  >  > But they assume the VM's locale, not the locale of the
>  > request/session/user.
>  >  >
>  >  > Martijn
>  >  >
>  >
>  >
>  >
> -
>  > 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
> 
> 
>  >
> 
> 
> -
> 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] Package rename heads-up for wicket-1.x branch

2007-03-15 Thread Gwyn Evans

On 15/03/07, Al Maw <[EMAIL PROTECTED]> wrote:

As part of our ongoing incubation process at Apache, we're going to be
renaming the core wicket package from "wicket" to "org.apache.wicket"
shortly (not quite sure when yet, but soon).

If you're developing against the subversion wicket-1.x branch, you'll
need to change your imports accordingly.


And possible web.xml & Javadocs (e.g. @see
wicket.model.IModel#getNestedModel())


If someone feels like telling IDEA/NetBeans/ other IDE users how best to
accomplish this, by all means tell us. :-)


With IDEA, the best way is probably "Refactor/Migrate" then "New..."
then "Add" a "Package" mapping from "wicket" to "org.apache.wicket".
Give it a name, e.g. "Wicket to Apache Wicket" then run it - you'll be
able to preview/exclude the changes as normal.

(If the attatchment comes through, just drop it in your IDEA's
config\migration\ folder to have the mapping setup for you, but it's
no big deal if it doesn't.)

You'll need to exclude the wicket.contrib manually (or just run it
then migrate org.apache.wicket.contrib back to wicket.contrib)!

/Gwyn
--
Download Wicket 1.2.5 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] How to attach thread

2007-03-15 Thread Martijn Dashorst
You can still do that, but you need to reverse the logic: query the
running thread for the required progress/data instead of pushing it
from the thread to the session.

The difference between Swing apps and web apps is that you can run the
web app on multiple machines, where the session is shared between
different servers.

Another thing is that the session is managed by the web container, and
can be serialized to disk or a database. Keeping (unmanaged)
references to managed objects is not a wise thing to do.

"Don't call us, we call you" is a good principle in this case.

Martijn

On 3/15/07, Thomas Kuechenthal <[EMAIL PROTECTED]> wrote:
> But how for example will it then be possible to run time intensive
> functions while updating the process status within the gui?
> I think in a MVC or event driven environment it must be possible to
> completly seperate the business logic from the gui.
> In Swing for example it is the usual way to put time intensive actions
> into an own thread. e.g. time consuming database queries of which the
> results shall be displayed after a while, without freezing the whole gui.
>
> regards
> /thomas
>
> Johan Compagner wrote:
> > First of all you shouldn't really access the session in another thread.
> > Because that is not really supported by a webcontainer, especially in
> > clustering or persistent storage..
> >
> > So if you want to spawn to a thread you should only really do backend
> > logic, not gui logic things.
> >
> > If you really want then you could look at Session.set/get and
> > Application.set/get
> >
> > johan
> >
> >
> > On 3/14/07, *Thomas Küchenthal* < [EMAIL PROTECTED]
> > > wrote:
> >
> > Dear all,
> >
> > within my Wicket application I'm using a self build process
> > framework. I
> > klick on a wicket button and a process starts running in an own thread.
> > I want the process thread to take over the control of the wicket thread
> > to e.g. build the gui, or change the current model of a component
> > etc...
> > (Actually I'm using the wizard component and want to combine/synchronize
> > my own process steps with the wizard steps)
> >
> > But for now I receive this error message:
> >
> > caused by: wicket.WicketRuntimeException : there is no session attached
> > to current thread Thread-51
> > at wicket.Session.get(Session.java:210)
> > at wicket.Page.dirty(Page.java:338)
> > at wicket.Page.componentStateChanging(Page.java:956)
> > at wicket.Component.addStateChange(Component.java:2347)
> >
> >
> >
> > How can I attach the process thread to the wicket thread?
> >
> > Thanks in advance
> >
> > /thomas
> >
> > 
> > -
> >
> > 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
>


-- 
Learn Wicket at ApacheCon Europe: http://apachecon.com
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.5 will keep your server alive. Download Wicket now!
http://wick

Re: [Wicket-user] How to attach thread

2007-03-15 Thread Thomas Kuechenthal
But how for example will it then be possible to run time intensive
functions while updating the process status within the gui?
I think in a MVC or event driven environment it must be possible to
completly seperate the business logic from the gui.
In Swing for example it is the usual way to put time intensive actions
into an own thread. e.g. time consuming database queries of which the
results shall be displayed after a while, without freezing the whole gui.

regards
/thomas

Johan Compagner wrote:
> First of all you shouldn't really access the session in another thread.
> Because that is not really supported by a webcontainer, especially in
> clustering or persistent storage..
> 
> So if you want to spawn to a thread you should only really do backend
> logic, not gui logic things.
> 
> If you really want then you could look at Session.set/get and
> Application.set/get
> 
> johan
> 
> 
> On 3/14/07, *Thomas Küchenthal* < [EMAIL PROTECTED]
> > wrote:
> 
> Dear all,
> 
> within my Wicket application I'm using a self build process
> framework. I
> klick on a wicket button and a process starts running in an own thread.
> I want the process thread to take over the control of the wicket thread
> to e.g. build the gui, or change the current model of a component
> etc...
> (Actually I'm using the wizard component and want to combine/synchronize
> my own process steps with the wizard steps)
> 
> But for now I receive this error message:
> 
> caused by: wicket.WicketRuntimeException : there is no session attached
> to current thread Thread-51
> at wicket.Session.get(Session.java:210)
> at wicket.Page.dirty(Page.java:338)
> at wicket.Page.componentStateChanging(Page.java:956)
> at wicket.Component.addStateChange(Component.java:2347)
> 
> 
> 
> How can I attach the process thread to the wicket thread?
> 
> Thanks in advance
> 
> /thomas
> 
> -
> 
> 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