Re: [Wicket-user] Table with TextFields example (Dissapointed in Wicket)

2007-03-19 Thread Igor Vaynberg

i wasnt in a bad mood when i wrote that. i dont generally drink coffee and i
had plenty of sex the night before. i said what needed to be said, and i
hope you were smart enough to get the most important message which was "help
us help you".

-igor


On 3/19/07, Udora <[EMAIL PROTECTED]> wrote:


Hi Igor,

First of all, I would want to say that I've solved the problem myself and
having now a great table component with all what I needed.
And I also want to say that I don't think I owe you as a developer
anything for using Wicket. Of course being an open source developer, you
have the luxury to tell your clients that. In my world, I try to be helpful
to my clients even with the insults that occasionally come with their being
in bad mood. In all those circumstances I strife to be client friendly, even
when I've had the worst sleep ever, or my girlfriend denied me sex the
previous night.
Because of the my impression so far, I've decided to download the Wicket
source and look for answers to my future questions there. Probably I'd be
less productive that way but unfortunately I don't clearly see any other
alternative.
Have a nice day, even when you couldn't get sufficient caffeine dose for
the day.

On 3/18/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
>
> so not having the _personal_ time to answer every single question that
> is on this list makes us arrogant? that is great!
>
> do you think i would rather spend my time pumping you for information or
> spend that time in a park playing with my daughter? maybe if you wouldve
> spent more then two minutes of your time writing up an appropriate question
> with code examples or a quickstart project instead of something so vague it
> is useless someone wouldve bothered to reply.
>
> remember: just because you are using wicket it doesnt mean the
> developers owe you anything. look at the threads on this list, quiet a lot
> of them are answered by other users. why do you think none of them answered
> yours?
>
> and unlike eelco i do hope this comes across as arrogant because your
> email was very disrespectful.
>
> -igor
>
>
> On 3/18/07, Udora < [EMAIL PROTECTED]> wrote:
>
> > Hi all,
> >
> > I was attracted to Wicket because of its finesse and all the stories
> > around praising how helpful their developers and user community are and the
> > quick response one receives when you post a question. I must say, my
> > experience has been bad so far. I posed the question below 2 days ago and
> > still no response. I've known frameworks whose developers were also
> > initially very helpful but became arrogant when they got the popularity and
> > success. I hope Wicket is not getting on that slippery road.
> >
> >
> >
> > On 3/16/07, Udora <[EMAIL PROTECTED] > wrote:
> > >
> > > Hi,
> > >
> > > I'm implementing a form with a table component as one of its
> > > component. The table has some textfields columns. The problem is that upon
> > > submit my model is not updated to reflect the values filled in the
> > > textfields. Can someone point me to an example where this sort of thing is
> > > implemented? I've already looked in Wicket examples but couldn't find
> > > anything.
> > >
> > > Thanks,
> > >
> > >
> > > --
> > > Wicket is Wicked
> >
> >
> >
> >
> > --
> > Wicket is Wicked
> >
> > -
> > 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 is Wicked
--

Re: [Wicket-user] Testing repeaters

2007-03-19 Thread Igor Vaynberg

you can deduce the path by looking at the markup the datatable uses.

-igor


On 3/15/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:


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

-
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] Table with TextFields example (Dissapointed in Wicket)

2007-03-18 Thread Igor Vaynberg

so not having the _personal_ time to answer every single question that is on
this list makes us arrogant? that is great!

do you think i would rather spend my time pumping you for information or
spend that time in a park playing with my daughter? maybe if you wouldve
spent more then two minutes of your time writing up an appropriate question
with code examples or a quickstart project instead of something so vague it
is useless someone wouldve bothered to reply.

remember: just because you are using wicket it doesnt mean the developers
owe you anything. look at the threads on this list, quiet a lot of them are
answered by other users. why do you think none of them answered yours?

and unlike eelco i do hope this comes across as arrogant because your email
was very disrespectful.

-igor


On 3/18/07, Udora <[EMAIL PROTECTED]> wrote:


Hi all,

I was attracted to Wicket because of its finesse and all the stories
around praising how helpful their developers and user community are and the
quick response one receives when you post a question. I must say, my
experience has been bad so far. I posed the question below 2 days ago and
still no response. I've known frameworks whose developers were also
initially very helpful but became arrogant when they got the popularity and
success. I hope Wicket is not getting on that slippery road.



On 3/16/07, Udora <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm implementing a form with a table component as one of its component.
> The table has some textfields columns. The problem is that upon submit my
> model is not updated to reflect the values filled in the textfields. Can
> someone point me to an example where this sort of thing is implemented? I've
> already looked in Wicket examples but couldn't find anything.
>
> Thanks,
>
>
> --
> Wicket is Wicked




--
Wicket is Wicked
-
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-16 Thread Igor Vaynberg

you are welcome. the wiki is here:

http://cwiki.apache.org/WICKET/

-igor


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



hey i think i figured it outi am passing a list of the object ideed
and
the toSting method is automatically called to display what the user sees.
I
need to go look up how to alter that using the ichoiceRender..once i get
that then i think it would work the way i want it to...you've been a big
help. Thank you so much. can you point me to the wiki please. Thanks
again.

-B



igor.vaynberg wrote:
>
> the id of dropdowns has nothing to do with their model. i am not using a
> compound property model anywhere in the code, nor am i not specifying it
> directly.
>
> the model for each dropdown is specified as a propertymodel where "this"
> refers to the page and the string refers to the property on that page.
>
> so the selected user object will go into the "user" page property, and
the
> selected logtype will go into the page's "logtype" property just like
the
> property models specify.
>
> then your dataprovider picks up those two properties and uses them to
> filter
> the result just like the code shows.
>
> the models are just glue between formcomponent and properties on some
java
> bean - which in this case happens to be the page.
>
> -igor
>
>
> On 3/16/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>>
>>
>> let me make sure i understand..
>> add(new DropDownChoice("users",new PropertyModel(this, "user"),));
>> the Property model returns the User model. and the id of this
>> dropdownchoice
>> is used to access that model? so get or setUsers on the User user of
>> this?
>> if that is correct. can i do  add(new DropDownChoice("users",new
>> PropertyModel(mydataprovider, "user"),)); and get a model that is a
>> property over there set to something?
>>
>> let me give a bit more detail..
>>
>> I have a filter in my dataprovider that searches my DB using a service
>> that
>> takes users and logTypes and returns a list. thats why i need to set
them
>> in
>> there. I have a list of all the users tied to a list and all the log
>> types
>> tied to a list in the web page. i just want to take the once selected
and
>> hand it to the dataprovider who will give me back a list of all the
>> process
>> matching those 2 models it was given. I understand what you said but
just
>> need some clarity on weither or not it would work in the way i am doing
>> it.
>> or is there another way i should be approaching the problem. Thank you
>> for
>> you repeated assistance.
>>
>> -B
>> .
>>
>> igor.vaynberg wrote:
>> >
>> > 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,

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

2007-03-16 Thread Igor Vaynberg

if this is the case then you build a listener using our requestcycle.urlfor()
methods. once robert has a specific usecase i can help him with that, but
what he described up till now is perfectly fulfilled via servlets.

-igor


On 3/16/07, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:


It could be useful in situation where UI components are not mapped to
Wicket components, but you wants access to page state.

For example just think about a javascript input dialog. How to send the
user input value in a wicket page?

Or in any other situation where you use third parts UI widgets not
supported by Wicket, but you want to interact with the server side page
status.


Paolo

On 3/16/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> but this is just scope creep in tapestry. what you have just described
> is almost exactly a service() method in a servlet. why not just build a
> servlet to do what you want?
>
> wicket is about the UI, if you need callbacks that have nothing to do
> with UI like youve mentioned why use wicket for that?
>
> wicket focuses on doing one thing but doing it very well. we do not
> provide a generic request/response framework because that is what servlets
> do.
>
> -igor
>
>
> On 3/16/07, Robert . <[EMAIL PROTECTED]> wrote:
> >
> > Hi!
> >
> > A Tapestry service basically has a
> > public void service(RequestCycle) method.
> > Something like a PageService would do something like
> > cycle.activate(cycleparam[0])
> >
> > Now I understand that I don't usually need a PageService. The onClick
> > for Link components are much easier to use. However what if I don't have a
> > component and
> > there is some javascript that wants to change the page? I'll try to
> > write about this more in the other replies in this thread.
> >
> > Robert
> >
> >
> > On 3/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > >
> > > 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
> > > 

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

2007-03-16 Thread Igor Vaynberg

first the properties are on the page, not on the dataprovider. since
dataprovider is an inner non-static class it has access to page properties.

second - the particular user object or logtype will come from the dropdown.
you give the dropdown a list of users and logtypes you said earlier no?

dropdowns work like this

DropDown(String id, IModel, IModel>, IChoiceRenderer)

so you give it a list of objects and it will push the selected object into
the model.

if all you are giving it is a list of strings then the selected object will
also be of type string.

-igor


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



I see..I am still thinking in old java style...let me try again...

i have my dataprovider class/model. my page class and 2 beans. in my
dataprovider class.model, the 2 beans are properties. that i need to set
via
drop down choice. so i set them as specified here. what i don't understand
is where does the user object that we set come from? if i select string x
from the drop down how do we get the object that sting x in the drop down
list belongs to.? i have many users objects is my point. Can you explain
that part to me please. is ther some special way i generate the list for
the
drop down...maybe thats waht i'm not getting..

-B



igor.vaynberg wrote:
>
> the id of dropdowns has nothing to do with their model. i am not using a
> compound property model anywhere in the code, nor am i not specifying it
> directly.
>
> the model for each dropdown is specified as a propertymodel where "this"
> refers to the page and the string refers to the property on that page.
>
> so the selected user object will go into the "user" page property, and
the
> selected logtype will go into the page's "logtype" property just like
the
> property models specify.
>
> then your dataprovider picks up those two properties and uses them to
> filter
> the result just like the code shows.
>
> the models are just glue between formcomponent and properties on some
java
> bean - which in this case happens to be the page.
>
> -igor
>
>
> On 3/16/07, GS-ikiini <[EMAIL PROTECTED]> wrote:
>>
>>
>> let me make sure i understand..
>> add(new DropDownChoice("users",new PropertyModel(this, "user"),));
>> the Property model returns the User model. and the id of this
>> dropdownchoice
>> is used to access that model? so get or setUsers on the User user of
>> this?
>> if that is correct. can i do  add(new DropDownChoice("users",new
>> PropertyModel(mydataprovider, "user"),)); and get a model that is a
>> property over there set to something?
>>
>> let me give a bit more detail..
>>
>> I have a filter in my dataprovider that searches my DB using a service
>> that
>> takes users and logTypes and returns a list. thats why i need to set
them
>> in
>> there. I have a list of all the users tied to a list and all the log
>> types
>> tied to a list in the web page. i just want to take the once selected
and
>> hand it to the dataprovider who will give me back a list of all the
>> process
>> matching those 2 models it was given. I understand what you said but
just
>> need some clarity on weither or not it would work in the way i am doing
>> it.
>> or is there another way i should be approaching the problem. Thank you
>> for
>> you repeated assistance.
>>
>> -B
>> .
>>
>> igor.vaynberg wrote:
>> >
>> > 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
>> 

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

2007-03-16 Thread Igor Vaynberg

we have a WicketSessionFilter, not sure if that is an exact name, that you
can map onto your servlet. it will give you access to wicket session, and
from there to application.

not sure why you need the request cycle, since that encapsulates
wicket-specific workflow.

-igor


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


Because I still want/need the Wicket session, request cycle, application
context and all that.


On 3/16/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
>
> but this is just scope creep in tapestry. what you have just described
> is almost exactly a service() method in a servlet. why not just build a
> servlet to do what you want?
>
> wicket is about the UI, if you need callbacks that have nothing to do
> with UI like youve mentioned why use wicket for that?
>
> wicket focuses on doing one thing but doing it very well. we do not
> provide a generic request/response framework because that is what servlets
> do.
>
> -igor
>
>
> On 3/16/07, Robert . <[EMAIL PROTECTED]> wrote:
> >
> > Hi!
> >
> > A Tapestry service basically has a
> > public void service(RequestCycle) method.
> > Something like a PageService would do something like
> > cycle.activate(cycleparam[0])
> >
> > Now I understand that I don't usually need a PageService. The onClick
> > for Link components are much easier to use. However what if I don't have a
> > component and
> > there is some javascript that wants to change the page? I'll try to
> > write about this more in the other replies in this thread.
> >
> > Robert
> >
> >
> > On 3/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > >
> > > 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 request

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

2007-03-16 Thread Igor Vaynberg

the id of dropdowns has nothing to do with their model. i am not using a
compound property model anywhere in the code, nor am i not specifying it
directly.

the model for each dropdown is specified as a propertymodel where "this"
refers to the page and the string refers to the property on that page.

so the selected user object will go into the "user" page property, and the
selected logtype will go into the page's "logtype" property just like the
property models specify.

then your dataprovider picks up those two properties and uses them to filter
the result just like the code shows.

the models are just glue between formcomponent and properties on some java
bean - which in this case happens to be the page.

-igor


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



let me make sure i understand..
add(new DropDownChoice("users",new PropertyModel(this, "user"),));
the Property model returns the User model. and the id of this
dropdownchoice
is used to access that model? so get or setUsers on the User user of this?
if that is correct. can i do  add(new DropDownChoice("users",new
PropertyModel(mydataprovider, "user"),)); and get a model that is a
property over there set to something?

let me give a bit more detail..

I have a filter in my dataprovider that searches my DB using a service
that
takes users and logTypes and returns a list. thats why i need to set them
in
there. I have a list of all the users tied to a list and all the log types
tied to a list in the web page. i just want to take the once selected and
hand it to the dataprovider who will give me back a list of all the
process
matching those 2 models it was given. I understand what you said but just
need some clarity on weither or not it would work in the way i am doing
it.
or is there another way i should be approaching the problem. Thank you for
you repeated assistance.

-B
.

igor.vaynberg wrote:
>
> 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?
>> >>
>> >>

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

2007-03-16 Thread Igor Vaynberg

but this is just scope creep in tapestry. what you have just described is
almost exactly a service() method in a servlet. why not just build a servlet
to do what you want?

wicket is about the UI, if you need callbacks that have nothing to do with
UI like youve mentioned why use wicket for that?

wicket focuses on doing one thing but doing it very well. we do not provide
a generic request/response framework because that is what servlets do.

-igor


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


Hi!

A Tapestry service basically has a
public void service(RequestCycle) method.
Something like a PageService would do something like
cycle.activate(cycleparam[0])

Now I understand that I don't usually need a PageService. The onClick for
Link components are much easier to use. However what if I don't have a
component and
there is some javascript that wants to change the page? I'll try to write
about this more in the other replies in this thread.

Robert


On 3/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> 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 Cas

Re: [Wicket-user] Example 1.2.5 Tree problem

2007-03-16 Thread Igor Vaynberg

this is fixed in wicket-1.2.x branch and will be available when 1.2.6 is
released.

-igor


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


Hi,

I noticed a problem on the Tree pages of wicket-examples.1.2.5
If you do some actions on one of the tree pages and then switch to another
page, then the WICKET AJAX DEBUG link is not available, and the tree does
not work.
For example:
1) Goto Simple tree
2) Click "Expand all nodes"
3) Goto Tree table

It's always reproducable in both IE and Firefox. I use Tomcat 5.5.20
Should I file a JIRA issue?

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


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] Hibernate/Spring and Wicket architecture "request for validation" (was Wicket's questions)

2007-03-14 Thread Igor Vaynberg

On 3/14/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote:


When I have to change an object on the "OnSubmit", I use the update
methods from my managers. What I fear here is to update some data
which have already been updated in between.



hibernate and jpa provide optimistic locking that guards against this. see
hibernate's manual for more info.


Overall, I'm wondering whether my implentation is "good enough" and

how to avoid "data collision".



personally i prefer to work with form beans and then apply those beans to
persistent objects. the reason is that in anything but trivial apps forms
usually dont map very well to persistent objects, so you end up doing hacks.
its easier to build a pojo that maps exactly to the form, and then apply
that to wherever in a service method. but this is just my preference.

otherwise sounds good.

-igor



What do you think of it ?


Thanks in advance
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

-
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] Build failure

2007-03-14 Thread Igor Vaynberg

umm, we already found a solution for that

mvn eclipse:eclipse -U

which tells maven to update its dependencies

woops :)

-igor


On 3/14/07, Frank Bille <[EMAIL PROTECTED]> wrote:


I finally got it!! Ok, two things:

First the pom file error. I'll commit a fix for the root pom without the
jdk15 profile. This was the one which caused problems with the second error.

The first error was because of some old versions of maven plugins. I
didn't find out what it exactly was (though I suspect maven-jar to be the
sinner), but a rm -rf ~/.m2/repository/org/apache took care of it.

So John there your solution.

Frank


On 3/14/07, Gwyn Evans < [EMAIL PROTECTED]> wrote:
>
> Double-check the top-level pom.xml? It should have
> jdk-1.4
> jdk-1.5
> but your log doesn't seem to show it doing the jdk-1.4 module tree for
> soem reason...
>
> /Gwyn
>
> On 14/03/07, Frank Bille < [EMAIL PROTECTED]> wrote:
> > I have upgraded to 2.0.5 and also updated to latest svn version of 1.3,
> and
> > I now get a different error:
> >
> >
> http://www.nabble.com/Al%27s-repository-restructure-tf3386729.html#a9469179
> >
> > Frank
> >
> >
> >
> > On 3/13/07, John Patterson < [EMAIL PROTECTED] > wrote:
> > > Strange, I just deleted the entire
> > .m2/repository/org/apache/wicket/
> > > directory and checked out a fresh copy of http://svn.apache.org/repos/
>
> > > asf/incubator/wicket/branches/wicket- 1.x into a new
> > directory,
> > > updated mvn to 2.0.5 (using darwin ports) and ran:
> > >
> > > mvn -Dmaven.test.skip=true  install
> > >
> > > But got the exact same error as before:
> > >
> > > Loading source file
> > /Users/John/Development/wicket/current/wicket- 1.x/
> > >
> > jdk-1.4/wicket-extensions/src/main/java/wicket/extensions/wizard/
> > > WizardModel.java...
> > > Loading source file
> > /Users/John/Development/wicket/current/wicket-1.x/
> > >
> > jdk-1.4/wicket-extensions/src/main/java/wicket/extensions/wizard/
> > > WizardStep.java...
> > > 1 error
> > > [INFO]
> > >
> >
> 
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > >
> >
> 
> > > [INFO] An error has occurred in JavaDocs report generation.
> > >
> > > Embedded error: Exit code: 1 - error: error reading /Users/John/
> > >
> > Development/wicket/current/wicket-1.x/jdk-1.4/wicket/target/
> > > wicket-1.3.0-incubating-SNAPSHOT.jar ; invalid header
> > field
> > >
> > > could it be a different javadoc binary that causes the different
> > > behaviour?
> > >
> > > My Mac OS X java version is reported as:
> > >
> > > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
> > >
> > > On 13 Mar 2007, at 14:40, Martijn Dashorst wrote:
> > >
> > > > I just did a clean checkout of our 1.x branch, removed my local
> > > > repository, and it 'just worked'.
> > > >
> > > > I do use maven 2.0.5 , perhaps that is the deciding factor?
> > > >
> > > > Martijn
> > > >
> > > > On 3/13/07, John Patterson <[EMAIL PROTECTED] > wrote:
> > > >> On 13 Mar 2007, at 12:31, Frank Bille wrote:
> > > >>
> > > >>> I get the same error and have tried to remove local jar files.
> I'll
> > > >>> look into it tonight (can't get workspace setup using new "al"
> > > >>> structure)
> > > >>>
> > > >>
> > > >> Great, cheers.  Until then I have checked out the last revision
> > > >> before the restructuring.
> > > >>
> > > >>
> > -
> > > >> 
> > > >> 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://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] Reverting the constructor change of 2.0

2007-03-14 Thread Igor Vaynberg

i guess sacrasm and frustration dont transfer well over email :|

-igor


On 3/14/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


On 3/14/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> well obviously we cannot poll for that until we have decided what 1.3will
> be. so first you need a poll on that, then you need a poll that depends
on
> that poll so we can decide when to drop support for 1.5. and then
another
> poll on the what to do next, but that poll has to depend on the previous
two
> polls. and while all these polls are going on no one is doing anything
> because nothing is certain. do i commit to 2.0? naah, maybe into 1.3.
but
> wait i dont know if i can put this into 1.3 because a poll on that is
still
> going on. blah blah blah blah.

We are looking for consensus, and as we're doing that on the mailing
list, yes there will be a couple of bounces back and forth.

But I think we pretty much know all the options now. I've been
sticking my neck out with polls and proposals a couple of times now,
so Igor, why don't you write that next ultimate all-compassing vote
where we can decide on ditching the constructor refactor and when and
how?

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

-
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-14 Thread Igor Vaynberg

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

-
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] Reverting the constructor change of 2.0

2007-03-14 Thread Igor Vaynberg

well obviously we cannot poll for that until we have decided what 1.3 will
be. so first you need a poll on that, then you need a poll that depends on
that poll so we can decide when to drop support for 1.5. and then another
poll on the what to do next, but that poll has to depend on the previous two
polls. and while all these polls are going on no one is doing anything
because nothing is certain. do i commit to 2.0? naah, maybe into 1.3. but
wait i dont know if i can put this into 1.3 because a poll on that is still
going on. blah blah blah blah.

create a few variations of the roadmap. put them into a single poll. lets
poll, and vote on that and restore some sanity.

-igor


On 3/14/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


This thread is about 'Reverting the constructor change of 2.0', not
about 'Stop supporting < JDK 1.5  after 1.3'.

Eelco

On 3/14/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> isnt this thread a poll? how many polls of the same thing do we need?
omfg
> ponies!
>
> -igor
>
>
> On 3/14/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> >
> > > Maintaining Wicket 1.3 should be for bug fixes, not new features.
But
> > > that doesn't prevent new components to be developed, or backported
by
> > > our community if there is a need for JDK 1.4 components. And if you
> > > really have a need, then you can always use retrotranslator/weaver
to
> > > backport 1.5 for your own pleasure.
> >
> > If that would be the consensus, we could consider skipping backporting
> > those last 2.0 features and just put them in 1.4 together with the JDK
> > 5 features.
> >
> > Who wants to write the poll?
> >
> > 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
> >
>
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

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

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


Re: [Wicket-user] Reverting the constructor change of 2.0

2007-03-14 Thread Igor Vaynberg

isnt this thread a poll? how many polls of the same thing do we need? omfg
ponies!

-igor


On 3/14/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> Maintaining Wicket 1.3 should be for bug fixes, not new features. But
> that doesn't prevent new components to be developed, or backported by
> our community if there is a need for JDK 1.4 components. And if you
> really have a need, then you can always use retrotranslator/weaver to
> backport 1.5 for your own pleasure.

If that would be the consensus, we could consider skipping backporting
those last 2.0 features and just put them in 1.4 together with the JDK
5 features.

Who wants to write the poll?

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

-
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-14 Thread Igor Vaynberg

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___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AbstractBehavior or AjaxFormSubmitBehaviorexception handling

2007-03-14 Thread Igor Vaynberg

ok

onexception is for exceptions that occur during form processing. in
onsubmit() you are responsible to process your own exceptions since that is
your own handler code

-igor


On 3/14/07, Apaar Trivedi <[EMAIL PROTECTED]> wrote:


 Something like the following code:



Button searchButton = *new* Button("searchButton", 
*new*StringResourceModel(
"searchButton", *this*, *null*));

searchButton.add(*new* MyAjaxFormSubmitBehaviorWithIndicator(form,
"onclick") {



*protected* *void* onError(AjaxRequestTarget arg0) {

*super*.onError(arg0);

}



*public* *void* onException(Component target, RuntimeException
e) {  ß Does not get called

*super*.onException(target, e);

}



*protected* *void* onSubmit(AjaxRequestTarget target)
{

Collection ldapUsers = getUsersOrGroupsFromLdap() ß causes
a null pointer exception

target.addComponent(*this*);

}

}



So in the following code, AbstractBehavior.onException does not get
called, and it is also not being handled by RequestCycle.onRuntimException,
since I have overridden that to catch run time exceptions already, I know it
is not being called.  This is making it rather difficult to implement ajax
error handling for this situation.



Alternatively, I have a similar piece of code where I explicitly do a
'throw new MyRuntimeException()', and this DOES get handled by
RequestCycle.onRuntimeException.



Any ideas?



Thanks


 --

*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Igor Vaynberg
*Sent:* Wednesday, March 14, 2007 11:05 AM
*To:* wicket-user@lists.sourceforge.net
*Subject:* Re: [Wicket-user] AbstractBehavior or
AjaxFormSubmitBehaviorexception handling



onexception where? onerror is called when a form validation error occurs.

-igor

 On 3/14/07, *Apaar Trivedi* < [EMAIL PROTECTED]> wrote:

Hey guys,



When I have an exception (in this case a NullPointerException) occur
during the onSubmit of an AjaxFormSubmitBehavior, neither onException or
onError is being called.  Why is that?  I thought these methods existed
specifically to catch these types of problems?



Thanks

Par




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



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


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


Re: [Wicket-user] AbstractBehavior or AjaxFormSubmitBehavior exception handling

2007-03-14 Thread Igor Vaynberg

onexception where? onerror is called when a form validation error occurs.

-igor


On 3/14/07, Apaar Trivedi <[EMAIL PROTECTED]> wrote:


 Hey guys,



When I have an exception (in this case a NullPointerException) occur
during the onSubmit of an AjaxFormSubmitBehavior, neither onException or
onError is being called.  Why is that?  I thought these methods existed
specifically to catch these types of problems?



Thanks

Par



-
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] find a "cousin" Component

2007-03-14 Thread Igor Vaynberg

you could keep component instances as fields so you can reference them
directly instead of getting them via their path

-igor


On 3/14/07, ChuckDeal <[EMAIL PROTECTED]> wrote:



This feels like something someone would have asked before, but I couldn't
find any relevant answers.

I have a usecase where my page/components have role-based security;
ENABLE/RENDER actions are dynamic as opposed to static based upon the
user/data on the page.  When data on the page changes that could affect
another field, I want to refresh the other field so that it's
ENABLE/RENDER
function can be re-evaluated.

In my specific example, a field in one Panel is enabled ONLY when you are
in
the List of Responsible Individuals (a field on a different Panel).  If
that
list of RIs change, I want to immediately refresh (via AJAX) the other
(dependent) field.

I am working towards a Listerner(?) pattern whereby a Component registers
itself with another Component to be refreshed.  In order for that to work,
I
need to geta handle to the other Component and the only way I know to do
that is by calling get from a common parent.  Other ways?

Given this hierarchy, I want to register OtherMdays to be refreshed when
ResponsibleIndividuals changes (ResponsibleIndividuals panel is
responsible
for knowing when to refresh it's listeners).

content (Panel)
  + form
+ headerSection (Panel)
  + collapsibleBody (WebMarkupContainer)
+ sections (RepeatingView)
  + header (Panel)
+ responsibleIndividuals (Panel)
(other textfields, etc)
+ romEvents (RepeatingView)
  + baseEvent (Panel)
+ collapsibleBody (WebMarkupContainer)
  + sections (RepeatingView)
+ event (Panel)
  + rates (Panel)
OtherMdays (TextField)
(other textfields, etc)
  + signatures (Panel)

So, the name of the RI Panel (relative to form) is
"headerSection:collapsibleBody:sections:header:responsibleIndividuals".

Therefore, I can do
form.get
("headerSection:collapsibleBody:sections:header:responsibleIndividuals")
to return that Component.  But that means that everywhere that I want to
get
a handle to the RI Panel, I need to use that string.  Is that really the
only/best way to do it?  I suppose I could extract that string into a
constant at the Page level so that at least I am not propagating a raw
string, but it is still just a plain old string, then why not store a ref
to
the component at the page level?  There could be many such "refreshers"
that
listener Components register with.

Chuck
--
View this message in context:
http://www.nabble.com/find-a-%22cousin%22-Component-tf3401959.html#a9473809
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] When you have tabs and forms, is it ok to have the tabs all inside one form,

2007-03-13 Thread Igor Vaynberg

if elements are not visible they are not validated

so what you have to do is not allow the user to switch between tabs unless
everything on that tab has validated. you can do this by overriding the
linkfactory on the tabbed panel, using a submitlink, and only calling
setactivetab on the panel if everything has passed validation

if that is unacceptable - you want the user to roam freely from tab to tab:

a better option for these situations imho is to not to use a serverside
tabpanel, but a clientside one. that way your entire form is written out and
the submit button submits the entire thing. a js lib like this makes it
trivial: http://www.stilbuero.de/jquery/tabs/

-igor


On 3/13/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:


On Monday, 12 March 2007 04:37 pm, Jean-Baptiste Quenot escreveu:
> * Thomas R. Corbin:
> > or do you need to have each tab have it's own form?
> >
> > And if each  tab has it's own  form, does the user  need to save
> > their data before switching tabs?
> >
> > Would the submit button be on each form, on each tab, or outside
> > the tabs entirely?
>
> If all the  tab's contents are generated in the  page, you can put
> the form around all the tabs,  so that each tab can contribute its
> respective  input fields.   Otherwise,  if tab  contents are  only
> rendered after  an Ajax  callback, you'd be  safer putting  a form
> inside every tab.

How do you get all the tabs generated in one page?

The problem I'm having is that only the current tab's stuff is
there, so I'm
not sure how to do all the validation.

I guess I would need a form validator that validates all the
fields of the
object that the form allows the user to edit.

I have required fields on several different tabs, but if the
elements of
another tab are not visible, I'm not sure how to validate against that.

Thanks!

>
> That depends on your code actually.

-
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] Reverting the constructor change of 2.0

2007-03-13 Thread Igor Vaynberg

i would opt for (b) but seems im in a minority :)

-igor


On 3/13/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


Can I have the opinions of all committers please? Johan is on a skiing
trip but opts for c).

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

-
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] Design questions: Use of controllers and wicket models

2007-03-12 Thread Igor Vaynberg

if you disable a formcomponent then neither a set or get will be called

-igor


On 3/12/07, David Leangen <[EMAIL PROTECTED]> wrote:



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:
> Maybe it is good to gather a couple of use cases and pros and cons and
> start a separate thread?
>
> Eelco
>
> On 3/12/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > ah, but if you modify a collection that is a model object are you
infact
> > "changing" the object? you are not changing the reference itself but
you are
> > doing something that has sideffects.
> >
> > eg lets say you have a dropdown choice, but what you want is a
collection of
> > ids not the objects. the easiest way is to have a model in between
that
> > translates a collection of objects to ids and back again. but how to
do that
> > if setobject() is never called?
> >
> > -igor
> >
> >
> >
> > On 3/12/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > >
> > > If you are not changing the object that is the subject of the model,
I
> > > see no reason why setObject should be called.
> > >
> > > Eelco
> > >
> > > On 3/12/07, Igor Vaynberg <[EMAIL PROTECTED] > wrote:
> > > > actually we are inconsistent in some places and i have been trying
to
> > fix
> > > > it. what we mostly do is whenever we work with a collection we
clear it
> > and
> > > > repopulate it. but we never call setobject() on the model which
imho is
> > > > wrong. sometimes i have a model in between that depends on
setobject()
> > > > called whenever a property is updated because it does some
translation
> > and
> > > > its a lot easier to proxy a model then it is to proxy a
collection. just
> > my
> > > > 2c.
> > > >
> > > > -igor
> > > >
> > > >
> > > >
> > > > On 3/12/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > > > > now all you have to do is
> > > > > > > >
> > > > > > > > LoadableDetachableModel person=new
LoadalbeDetachableModel(id);
> > > > > > > > new CheckBox(this, "cb", new PersonCheckBoxModel(person));
> > > > > > > >
> > > > > > > > and everything magically works, hope it gives you some
ideas.
> > > > > >
> > > > > > Yes, it does indeed give me many ideas. Right now, I'm trying
to
> > figure
> > > > > > out the implementation details.
> > > > > >
> > > > > > While stepping through the code, I noticed that the
setObject()
> > method
> > > > > > of my IModel never gets called.
> > > > > >
> > > > > > When is this _supposed_ to be set, and why would it not be
called in
> > my
> > > > > > case?
> > > > >
> > > > > There's not always a need for setObject to be called. I haven't
read
> > > > > the whole thread, but in the above example, you work on a
property
> > > > > ('cb') of the person, so all you have to do (probably) is do
something
> > > > > with this updated object (like saving it). You would only do
setObject
> > > > > when you would provide a new person, and when the getObject
&g

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

2007-03-12 Thread Igor Vaynberg

ah, but if you modify a collection that is a model object are you infact
"changing" the object? you are not changing the reference itself but you are
doing something that has sideffects.

eg lets say you have a dropdown choice, but what you want is a collection of
ids not the objects. the easiest way is to have a model in between that
translates a collection of objects to ids and back again. but how to do that
if setobject() is never called?

-igor


On 3/12/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


If you are not changing the object that is the subject of the model, I
see no reason why setObject should be called.

Eelco

On 3/12/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> actually we are inconsistent in some places and i have been trying to
fix
> it. what we mostly do is whenever we work with a collection we clear it
and
> repopulate it. but we never call setobject() on the model which imho is
> wrong. sometimes i have a model in between that depends on setobject()
> called whenever a property is updated because it does some translation
and
> its a lot easier to proxy a model then it is to proxy a collection. just
my
> 2c.
>
> -igor
>
>
>
> On 3/12/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> >
> > > > > now all you have to do is
> > > > >
> > > > > LoadableDetachableModel person=new LoadalbeDetachableModel(id);
> > > > > new CheckBox(this, "cb", new PersonCheckBoxModel(person));
> > > > >
> > > > > and everything magically works, hope it gives you some ideas.
> > >
> > > Yes, it does indeed give me many ideas. Right now, I'm trying to
figure
> > > out the implementation details.
> > >
> > > While stepping through the code, I noticed that the setObject()
method
> > > of my IModel never gets called.
> > >
> > > When is this _supposed_ to be set, and why would it not be called in
my
> > > case?
> >
> > There's not always a need for setObject to be called. I haven't read
> > the whole thread, but in the above example, you work on a property
> > ('cb') of the person, so all you have to do (probably) is do something
> > with this updated object (like saving it). You would only do setObject
> > when you would provide a new person, and when the getObject
> > implementation wouldn't take care of that.
> >
> > Personally, I rarely use/ depend on setObject as working with
> > properties of objects is a very typical thing to do.
> >
> > Hope this makes sense,
> >
> > 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
> >
>
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

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

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


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

2007-03-12 Thread Igor Vaynberg

actually we are inconsistent in some places and i have been trying to fix
it. what we mostly do is whenever we work with a collection we clear it and
repopulate it. but we never call setobject() on the model which imho is
wrong. sometimes i have a model in between that depends on setobject()
called whenever a property is updated because it does some translation and
its a lot easier to proxy a model then it is to proxy a collection. just my
2c.

-igor


On 3/12/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> > > now all you have to do is
> > >
> > > LoadableDetachableModel person=new LoadalbeDetachableModel(id);
> > > new CheckBox(this, "cb", new PersonCheckBoxModel(person));
> > >
> > > and everything magically works, hope it gives you some ideas.
>
> Yes, it does indeed give me many ideas. Right now, I'm trying to figure
> out the implementation details.
>
> While stepping through the code, I noticed that the setObject() method
> of my IModel never gets called.
>
> When is this _supposed_ to be set, and why would it not be called in my
> case?

There's not always a need for setObject to be called. I haven't read
the whole thread, but in the above example, you work on a property
('cb') of the person, so all you have to do (probably) is do something
with this updated object (like saving it). You would only do setObject
when you would provide a new person, and when the getObject
implementation wouldn't take care of that.

Personally, I rarely use/ depend on setObject as working with
properties of objects is a very typical thing to do.

Hope this makes sense,

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

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


Re: [Wicket-user] Wicket for Bog Projects

2007-03-12 Thread Igor Vaynberg

do "tiny" fall before or after extra small???

-igor


On 3/12/07, Michael Day <[EMAIL PROTECTED]> wrote:


No, only extra small, small, medium, and medium-to-big projects.  Big
projects will be supported in wicket 3.0.

On Mar 13, 2007, at 12:51 AM, Sazib wrote:

> Hi everybody,
> I just want to know, is wicket suitable for a big project?
>
> Thanks
> ---
> Sazib
>
> --
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>


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

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


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

2007-03-12 Thread Igor Vaynberg

setobject is called when the component needs to update the model. eg when
you submit a textfield it needs to push new input into the model and so it
calls setobject(). sometimes components that work with collections do not do
that - they simply clear the collection and add new values - this is so you
are in control of creating the collection - be it a set/list/etc.

-igor


On 3/12/07, David Leangen <[EMAIL PROTECTED]> wrote:



Igor,

Regarding your suggestions below:

> > class mypage extends page {
> > private Set selected=new HashSet();
> >
> > private class PersonCheckboxModel implements IModel {
> > private final IModel person;
> > public final PersonCheckBoxModel(IModel person) {
> > this.person=person; }
> >
> > public Boolean getObject() {
> > return selected.contains(person.getObject());
> > }
> >
> > public void setObject(Boolean b) {
> > if (Boolean.TRUE.equals(b)) {
> > selected.put(person.getObject());
> > } else {
> > selected.remove(person.getObject());
> > }
> > }
> >
> > public void detach() { person.detach(); }
> > }
> >
> > }
> >
> > now all you have to do is
> >
> > LoadableDetachableModel person=new LoadalbeDetachableModel(id);
> > new CheckBox(this, "cb", new PersonCheckBoxModel(person));
> >
> > and everything magically works, hope it gives you some ideas.

Yes, it does indeed give me many ideas. Right now, I'm trying to figure
out the implementation details.

While stepping through the code, I noticed that the setObject() method
of my IModel never gets called.


When is this _supposed_ to be set, and why would it not be called in my
case?


Cheers,
David





-
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-12 Thread Igor Vaynberg

i was being sarcastic :)

-igor

On 3/12/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:




i think that's correct.  but i also heard that it will be publicly visible
later.


igor.vaynberg wrote:
>
> is it at all feasible that it is being used for an internal system?
>
> -igor
>
>
> 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
>
>

--
View this message in context:
http://www.nabble.com/Joost-uses-Wicket-tf3390296.html#a9448145
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] Joost uses Wicket

2007-03-12 Thread Igor Vaynberg

look how wicket-examples are setup

-igor


On 3/12/07, cowwoc <[EMAIL PROTECTED]> wrote:



That's news to me :) Thanks!

I tried reading more about it on the Wiki but I couldn't find an
example that maps the root. The example in
http://cwiki.apache.org/WICKET/migrate-13.html maps the application to
"/app". Do you have another example or documentation somewhere?

Gili

Igor Vaynberg wrote:
> it is ok to do that (use /* mapping) if you use WicketFilter instead of
> WicketServlet
>
> -igor
>
>
> On 3/12/07, *cowwoc* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi Brian,
>
> Yes you can probably do that for a Wicket site with no
external
> references (i.e. static files hosted outside the scope of the
servlet
> such as images) but last time I checked the Wicket developers were
> recommending against such a configuration.
>
> Gili
>
> Brian Topping wrote:
> > Gili,
> >
> > I think I did this on http://www.autoscraper.com...
> >
> > Brian
> >
> > On Mar 12, 2007, at 5:30 PM, cowwoc 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]
> <mailto:[EMAIL PROTECTED]>> wrote:
> >>>> If they use Wicket why doesn't it show at all on their
> >>>> website at
> >>>> joost.com <http://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
> <http://en.wikipedia.org/wiki/Joost>
> >>>>>>
> >>>>>> Matt
> >>>>>> --
> >>>>>> View this message in context:
> http://www.nabble.com/Joost-uses- <http://www.nabble.com/Joost-uses-
>
> >>>>>> Wicket-tf3390296.html#a9437082
> >>>>>> Sent from the Wicket - User mailing list archive at
> Nabble.com <http://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
> <mailto:Wicket-user@lists.sourceforge.net>
> >>>>>> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>>>>>
> >>>>>
> ---
> >>>>> --
> >>>>> Take Surveys. Earn Cash. Influence the Future of IT
> >>>>> Join SourceForge.net's Techsay panel and you'll get the chance
> >>>>> to share 

Re: [Wicket-user] Joost uses Wicket

2007-03-12 Thread Igor Vaynberg

it is ok to do that (use /* mapping) if you use WicketFilter instead of
WicketServlet

-igor


On 3/12/07, cowwoc <[EMAIL PROTECTED]> wrote:


Hi Brian,

Yes you can probably do that for a Wicket site with no external
references (i.e. static files hosted outside the scope of the servlet
such as images) but last time I checked the Wicket developers were
recommending against such a configuration.

Gili

Brian Topping wrote:
> Gili,
>
> I think I did this on http://www.autoscraper.com...
>
> Brian
>
> On Mar 12, 2007, at 5:30 PM, cowwoc 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
> 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.

Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in2.0

2007-03-12 Thread Igor Vaynberg

the cons of this have already been discussed in this thread. see the
"onWire" messages.

-igor


On 3/12/07, Rüdiger Schulz <[EMAIL PROTECTED]> wrote:


Hm, that looks good!

What would any of the Wicket developers say to that approach? Is there
some hidden catch waiting to happen, or this ok?

I'm not sure if a behaviour like that should end up in Wicket core (e.g.
a method Component#onFirstAttach()), but I think I'll use that in some
of my components.

ChuckDeal schrieb:
> I had also hoped that the new Constructor in 2.0 would have been useful.
> But, I have been using the following solution in 1.2 / 1.3 to overcome
not
> having the parent at Component construction time.  Then, all of my
Panels
> extend this Panel instead of the core Panel.  It has been working for me
for
> quite some time.
>
> Chuck
>
> public abstract class InitializablePanel extends Panel {
>   private boolean initialized;
>
>   /**
>* Constructor for InitializablePanel
>*
>* @param id
>*/
>   public InitializablePanel(String id) {
>   super(id);
>
>   commonInit();
>   }
>
>   /**
>* Constructor for InitializablePanel
>*
>* @param id
>* @param model
>*/
>   public InitializablePanel(String id, IModel model) {
>   super(id, model);
>
>   commonInit();
>   }
>
>   /**
>* commonInit
>*/
>   private void commonInit() {
>   initialized = false;
>   }
>
>   /**
>* This method will be called by onAttach, therefore subclasses
>* should override this method to create their components.
>*/
>   protected abstract void createComponents();
>
>   /**
>* @see wicket.Component#onAttach()
>*/
>   @Override
>   protected void onAttach() {
>   if (!initialized) {
>   createComponents();
>   initialized = true;
>   }
>   }
>
>
>
> Rüdiger Schulz-3 wrote:
>> Same here, having rolled out a 1.2.3 project with no need for updating,
>> and currently in the final stages of a 1.2.5 project, which will
>> eventually update to 1.3 if it comes out. Never did any tests beyond
1.2.
>>
>> Regarding the constructor change:
>>
>> the 1.x way of compiling the hierarchie via add() methods was very
>> natural for me, as I have quite some experience in swing. Specifying
the
>> parent in the constructor always seemed odd to me; still I came across
>> some situations where it would have been useful to have it in the
>> constructor.
>>
>> What I once tried was to add all my components in onAttach() but that
>> didn't work of course (subcomponents were added again next request).
But
>> some common method in Component where that could be done *after* the
>> constructor would be cool (if that is somehow possible).
>>
>> What I was looking forward to in 2.x were mostly the Java 5 IModels and
>> so on, as I think this would make the code a lot more readable.
>>
>> Well, just my 2 cents here :)
>>
>>
>> Rüdiger
>>
>> Dipu schrieb:
>>> We are still using 1.2.1 and 1.2.5 for our production and near
production
>>> projects.
>>>
>>>
>>> Thanks
>>> Dipu
>>>
>>>
>>> - Original Message -
>>> From: "Eelco Hillenius" <[EMAIL PROTECTED]>
>>> To: "Wicket User List" 
>>> Sent: Tuesday, March 06, 2007 10:12 PM
>>> Subject: [Wicket-user] IMPORTANT: your opinion on the constructor
change
>>> in2.0
>>>
>>>
 Hi,

 We (Wicket's developers) are having some discussion over 1.3 vs 2.0
 and how difficult it is as a nun-funded project to spend so much time
 synchronizing the branches.

 A major issue in the discussion is that not everyone is convinced
 anymore that the constructor change in 2.0 is for the better. There
 are pros and cons for sure, but we want to get your opinion on this.

 Please help us out giving your opinion. We want to know:

 1) Who uses 2.0 for serious projects?

 2) What do you think of the constructor change? Do you prefer 1.3's
 add style or 2.0's style of passing in the parent construction time.

 3) If we would ever backtrack on the constructor change (*if*, don't
 panic for now) how much trouble would that give you?

 Please don't be shy giving your opinion. This is an important issue
in
 the future development of Wicket.

 Regards,

 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.s

Re: [Wicket-user] Wicket mailing lists no more archived ?

2007-03-12 Thread Igor Vaynberg

why dont you just port wicket to perl!

-igor


On 3/12/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:


On 3/12/07, smallufo <[EMAIL PROTECTED]> wrote:
> Hi
> will the wicket package name change in the future ?
> eg: org.apache.wicket.* ...

This depends on the future of our current trunk. When we vote to
discontinue the current Wicket 2.0 effort, we have to take another
look at the wicket package names. If we continue with Wicket 2.0, that
will be the only part that will move the package names. At least that
is what has been decided upon for our incubation effort.

That said, the rename won't be a big effort. A simple perl script or
find/replace can modify your code automatically.

Martijn
--
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://wicketframework.org

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

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


Re: [Wicket-user] Wicket mailing lists no more archived ?

2007-03-12 Thread Igor Vaynberg

not for 1.3

-igor


On 3/12/07, smallufo <[EMAIL PROTECTED]> wrote:


Hi
will the wicket package name change in the future ?
eg: org.apache.wicket.* ...

2007/3/12, Martijn Dashorst <[EMAIL PROTECTED] >:
>
> On 3/12/07, ZedroS Schwart <[EMAIL PROTECTED] > wrote:
> > Having played with the nabble search engine I can already tell that it
> > rocks ! :)
>
> Yeah, it is pretty decent.
>
> > And the new Wicket website is really nice ! :)
>
> Thanks
>
> > When will it be the "official" new wicket website ?
>
> When we graduate. Then it will become: http://wicket.apache.org
>


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


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


Re: [Wicket-user] Joost uses Wicket

2007-03-12 Thread Igor Vaynberg

is it at all feasible that it is being used for an internal system?

-igor


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


Re: [Wicket-user] Instructions for using WICKET-126

2007-03-12 Thread Igor Vaynberg

no we do not. someone needs to write a script to montor -javadoc.jar files
and extract them i suppose

-igor


On 3/12/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:


OK, I  improved the  documentation accordingly.   I don't  know if
this is published anywhere in real time however.  Wicket team?  Do
you have a magic URL on wicketstuff.org for API documentation?
--
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
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] : How to set TABPanels'titel to EscapeModel(false)

2007-03-12 Thread Igor Vaynberg

thank you much

-igor


On 3/12/07, Stefan Lindner <[EMAIL PROTECTED]> wrote:


I have created an enhancment request for Wicket 2 as
http://issues.apache.org/jira/browse/WICKET-380

-
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] Instructions for using WICKET-126

2007-03-12 Thread Igor Vaynberg

if you need to extend it to configure it then it should be made abstract

-igor


On 3/12/07, Matt Welch <[EMAIL PROTECTED]> wrote:


On 3/12/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:
>
> Yes, you  may be  missing something.  You  should have  written at
> least 5 lines  of Java code to activate the  reloading of your own
> classes.  Did you extend ReloadingWicketFilter to include your own
> packages?  You need to specify your own class.
>
> Maybe the Javadoc in ReloadingWicketFilter is not explicit enough,
> in that case an updated description would be more than welcome.
>
>

Ok, yeah, I misunderstood that. I thought I could just use
ReloadingWicketFilter from my web.xml and it would work withs some
defaults but needing to specify some sane bounds for it to work within makes
perfect sense. It's still not working perfectly for me but I think I'm
running into issues similar to what you described for Spring ( i.e. class
cast exceptions on a few things loaded before the filter classloader).

If I were to suggest a few changes to the javadocs, then it might be a
good idea to explicitly say that you need to extend the
ReloadingWicketFilter for your own application. I'm sure this is obvious to
you and once I put some thought into it, it makes perfect sense, but one
doesn't need to extend the normal WicketFilter in order to use it, so that's
why I wasn't thinking about it in the right way. Also, in your static block
example where you show include and exclude patterns, you might want to use
packages like com.yourapp.* instead of wicket packages.I can't speak for
everyone but I think most of us work in the mindset of the wicket classes
being static (as in not changing) during our application development so it
isn't immediately clear why you would need to exclude those. Again, once I
thought about it for a bit, I understood why you had it set up that way.

Then again, I might just be a little slow on the uptake.. :)

...

Well before I finished up this email, I figured out what packages to
exclude to eliminate the classcast exceptions and it's all working
perfectly. This is going to be a huge productivity boost!

Thanks for your help!
Matt



-
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] How to set TABPanels'titel to EscapeModel(false)

2007-03-12 Thread Igor Vaynberg

yes i know its trivial. and if you open a jira request i will also know what
version you need this for. and if it is for 1.2.x then it would be in the
changelog which is important for that version.

-igor


On 3/12/07, Stefan Lindner <[EMAIL PROTECTED]> wrote:


Dear Igor,

should I send you a propsal (a modified class as source)? The Modificatoin
is very trivial.

Stefan Lindner

-
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] How to set TABPanels'titel to EscapeModel(false)

2007-03-11 Thread Igor Vaynberg

add an rfe for a factory method for that label

-igor


On 3/11/07, Stefan Lindner <[EMAIL PROTECTED]> wrote:


How can I set the TabPanel'S title labe to excapteModelStrings(false)?
Of cource, I can make my OwnTabPanel extends TabPanel and overwrite the
whole constructor but I think this is not a good design.
The panel title is simly created in a leeop with

 new label(.);

And I can't see how to get a reference to this title label. Any ideas?

Stefan Lindner

-
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] AJAX validation

2007-03-11 Thread Igor Vaynberg

On 3/11/07, Arnout Engelen <[EMAIL PROTECTED]> wrote:


Igor Vaynberg schreef:
> this bug has been fixed in 1.2.5.
Cool! Any idea why it manifests itself only on 1 of our environments?



maybe different servlet containers map urls slightly differently? for me it
was reproducable consistently.


what problems did you have in 1.2.5? most of them have been fixed and
> you can build the branch yourself until we release 1.2.6
For some reason at random times the wicket ajax javascript would 'go
missing' breaking all ajax functionality. We haven't been able to
reliably reproduce it and track it to write a useful bugreport/fix, so
we decided to just go back to 1.2.4 for now. I'll try and give 1.2-svn a
shot.



yes that is fixed in wicket-1.2.x branch.

-igor


Arnout


-
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] Reverting the constructor change of 2.0

2007-03-10 Thread Igor Vaynberg

ive talked some with martijn on irc, what we've tentatively agreed on is
this:

since there is a possibility of introducing big api breaks it is too early
for a beta release.

what we are going to do right now is create a non-public "alpha" release.
(although "checkpoint" is a better name for it). this release will only be
made available to the ipmc because its only purpose is to check the legal
status of our code.

-igor

On 3/10/07, Gwyn Evans <[EMAIL PROTECTED]> wrote:


On 10/03/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> a) focus on stabilizing 1.3 first, meanwhile keep supporting 2.0
> (though only for bugfixes). 1.4 will be the release with backports of
> the currently missing 2.0 features, and 1.5 will be 1.4 + the Java 5
> features (including generics).
>
> b) as a) but rather than developing 1.3 up to a final release, freeze
> asap (only fix bugs) and start on 1.4
>
> c) put all backports except for the Java 5 features in 1.3 after the
> beta1 release (which we agreed upon doing this weekend). 1.4 will be
> for the Java 5 features, and the branch should be started as soon as
> 1.3 is feature complete.

Hi,
  I've kept quiet, as I've not had a chance to actually get into 2.0,
so have no personal view on rollback, but I'm certainly not going to
go against the experiences of the committers who do have to deal with
the multiple branches.

My preferences would be (c), for the same reasons you state in your
other email.  Regarding the "beta" release, I think we must do the
release ASAP, if for no other reason than to work through the stages
of an Apache release, although I'm not sure what the best designation
is - personally I'd consider calling it a "checkpoint" release, but
that's another matter!

/Gwyn

-
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] AJAX validation

2007-03-10 Thread Igor Vaynberg

this bug has been fixed in 1.2.5. what problems did you have in 1.2.5? most
of them have been fixed and you can build the branch yourself until we
release 1.2.6

-igor


On 3/10/07, Arnout Engelen <[EMAIL PROTECTED]> wrote:


Jean-Baptiste Quenot schreef:
> * Arnout Engelen:
>
>> So far it seems either Apache2, mod_caucho or Resin (2.1.16) is eating
>> the POST body parameters. Has anyone ever seen something like this? Any
>> idea where to look?
>>
> Is POST followed by a redirect?
Yes, the response to the POST is a redirect (http 301 moved permanently).
> If yes, is the URL missing a trailing slash?
>
Do you mean the URL to which the POST request is sent or the one to
which the user is redirected?

The POST request goes to 'https://host/contextname?wicket:interface (etc)
The redirect redirects to 'https://host/contextname/?wicket:interface(etc)
> What Wicket version are you using?
>
1.2.4 - we had some problems with 1.2.5 that didn't appear in 1.2.4.


Kind regards,

Arnout

-
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] Question about DataGridView

2007-03-09 Thread Igor Vaynberg

On 3/9/07, blackboy zabaha <[EMAIL PROTECTED]> wrote:


- with the checkbox I can't get the list of
selected row, I try to
do DataGridView.getModelObject
but it return null, so my question is how can I get
list of model object
in current page of DataGridView, it take IDataProvider
rather than
IModel, not like ListView, isn't it used for
displaying only not for
modifying in form because it does not hold any model
and so can't update
it's model?



i have very recently described how to do this in this thread:

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

*


- how can I get row index of each row, in
ICellPopulator#populateItem(Item cellItem, String
componentId, IModel
rowModel), both cellItem & rowModel seem to contain no
detail of row index.



there should be a method on Item like getIndex()

   - how to dynamic change style of each row to

class="odd"/class="even" up to row index in
DataGridView.



see how DataTable does, namely DataTable.newRowItem() i believe.

-igor



   Thank you,


Blackzabaha







The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

-
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] mountBookmarkablePage problem

2007-03-09 Thread Igor Vaynberg

make sure your servlet mapping ends with /* and not just /

-igor


On 3/9/07, Joel Hill <[EMAIL PROTECTED]> wrote:


I cannot seem to get mountBookmarkablePage() to work.  Any time I try an
access a page through the mapping I set up, I get a 404 error.  The
strange thing is, if I set up a wicket Link in my app to link to the
mounted page, it puts the proper mapped address in the browser's address
bar but still gives a 404 error.  So it recognizes the mapping but can't
find the page.  If I remove the mountBookmarkablePage() call, run the
app and click the link it finds the page just fine.

I even tried mounting the entire package (since all my wicket
components are in the same package), but get a 404 error when trying to
access the app at all.

Is it at all possible that the application server is to blame?  That
it's trying to map the address before passing it to the wicket servlet?
I'm using oc4j 10.1.3.1.1 and don't have much of a choice on what app
server I use.

I'm baffled why something so basic in wicket is simply not working, and
I'm completely out of ideas.

Thanks.

Joel

-
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] Frustracted with JDBC...

2007-03-09 Thread Igor Vaynberg

you do know that session.load() will return a proxy even if the object
doesnt exist, where as session.get() will return null.

-igor


On 3/9/07, ChuckDeal <[EMAIL PROTECTED]> wrote:




Scott Swank wrote:
>
> If you have lazy-loaded objects in your graph then they are initially
> populated with Hibernate proxies and only resolved from the database
> when you access them in your application code.  I imagine that in one
> case the Hibernate transaction is being closed before you have walked
> the object graph far enough to retrieve all of the relevant objects,
> while in the other case the transaction is still open and so Hibernate
> can resolve the proxies.
>
> Try looking at any relevant settings on the jdbc drivers.  We're using
> jtds successfully (to the degree that anyone uses sql server
> successfully).
>
> Scott
>


Yeah, I thought of that, but given the following code, you'll see that
that
isn't the case.  Yet, the load() statement fails in my scenario.  I made a
very simple Parent and Child class test that doesn't suffer from this
problem.  But, my complex objects do.  My guess is that I have a "bad"
mapping, but my REAL concern is that with one driver it works and the
other
it doesn't!

SpecChangeModelObject result;
Session sess = hibernateSessionFactory.openSession();

Criteria criteria = sess.createCriteria(SpecChangeModelObject.class);
criteria.add(Restrictions.idEq("{8D6A620D-B094-46CB-A6E7-34B4CE99EECD}"));
result = (SpecChangeModelObject) criteria.uniqueResult();
assertNotNull("SpecChangeModelObject should not be null", result);
assertNotNull("ResponsibleIndividuals should not be null",
result.getResponsibleIndividuals());
assertFalse("ResponsibleIndividuals.isEmpty failed",
result.getResponsibleIndividuals().isEmpty());
assertEquals("ResponsibleIndividuals.size failed", 2,
result.getResponsibleIndividuals().size());


result = (SpecChangeModelObject) sess.load(SpecChangeModelObject.class,
"{8D6A620D-B094-46CB-A6E7-34B4CE99EECD}");
assertNotNull("SpecChangeModelObject should not be null", result);
// will fail on the next line!
assertNotNull("ResponsibleIndividuals should not be null",
result.getResponsibleIndividuals());
assertFalse("ResponsibleIndividuals.isEmpty failed",
result.getResponsibleIndividuals().isEmpty());
assertEquals("ResponsibleIndividuals.size failed", 2,
result.getResponsibleIndividuals().size());

sess.close();

Chuck
--
View this message in context:
http://www.nabble.com/Frustracted-with-JDBC...-tf3375802.html#a9399084
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] Design questions: Use of controllers and wicket models

2007-03-09 Thread Igor Vaynberg

yes, but then you are married to the output it genereates.

[] label
[] label

whats below you can use just for the checkbox, so you are free to generate
your own label/panel/whatever. eg selecting rows in a table.

-igor


On 3/9/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:


On Thursday, 08 March 2007 07:58 pm, Igor Vaynberg escreveu:
> see above. take a simple example where you have a list of checkboxes and
> you want all selected objects to end up in a collection. how do you do
it?
> sounds like a complex mapping? the most elegant way is to write a custom
> model.

Can you use a CheckBoxMultipleChoice for this?

>
> class mypage extends page {
> private Set selected=new HashSet();
>
> private class PersonCheckboxModel implements IModel {
> private final IModel person;
> public final PersonCheckBoxModel(IModel person) {
> this.person=person; }
>
> public Boolean getObject() {
> return selected.contains(person.getObject());
> }
>
> public void setObject(Boolean b) {
> if (Boolean.TRUE.equals(b)) {
> selected.put(person.getObject());
> } else {
> selected.remove(person.getObject());
> }
> }
>
> public void detach() { person.detach(); }
> }
>
> }
>
> now all you have to do is
>
> LoadableDetachableModel person=new LoadalbeDetachableModel(id);
> new CheckBox(this, "cb", new PersonCheckBoxModel(person));
>
> and everything magically works, hope it gives you some ideas.

-
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] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-08 Thread Igor Vaynberg

it is mostly the same

instead of form.add(new textfield("name"));

you do

new TextField(form, "name");

thats all there really is to it

-igor


On 3/8/07, aozster <[EMAIL PROTECTED]> wrote:



I know how to do it with 1.x (actually already done some of  them in
previous
project) , but I don't know how to do it with 2.x constructors, can you
give
me a clue if I want to create something like that?.


igor.vaynberg wrote:
>
> feel free to go ahead and do that. looking forward to your analysis.
>
> -igor
>
>
> On 3/8/07, aozster <[EMAIL PROTECTED]> wrote:
>>
>>
>> --> before voting we should compare them by given usecases and
construct
>> it
>> with 1.x and 2.x constructors.
>> I prefer
>> 1 rich internet application
>> 2 highly personalized user interfaces for portal
>> 3 CMS
>> to be our usecases.
>>
>>
>> Eelco Hillenius wrote:
>> >
>> > We've gathered a lot of opinions by now (more are still welcome
>> > though!) and I think we should let this sink in for a bit.
>> >
>> > There are a couple of projects being built on 2.0 (see the replies in
>> > this thread, but also
>> > http://www.mail-archive.com/general@lists.ops4j.org/msg00240.html),
>> > but so far, people who reacted seem to be understanding and flexible
>> > to go with us if we would decide to revert the constructor change.
>> >
>> > It looks like quite a few people, more than I expected in fact,
>> > weren't that crazy about the constructor refactor in the first place,
>> > though some people like it better in general (me being one of them
>> > though I see disadvantages as well, but also
>> > http://www.mail-archive.com/general@lists.ops4j.org/msg00402.html).
>> > Based on the replies in this thread, it seems that people find add
>> > more intuitive and like the flexibility that gives you over the
>> > tighter model of 2.0
>> >
>> > I propose to start a real vote on what to do with the constructor
>> > change somewhere next week. Until then, please feel free to keep
>> > venting your opinions on this thread.
>> >
>> > Regards,
>> >
>> > 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
>> >
>> >
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constructor-change-in-2.0-tf3358738.html#a9388671
>> 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
>
>

--
View this message in context:
http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constructor-change-in-2.0-tf3358738.html#a9388757
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_

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

2007-03-08 Thread Igor Vaynberg

On 3/8/07, David Leangen <[EMAIL PROTECTED]> wrote:



This is actually something I'm kinda struggling with.

In our model, the "biz logic" is the query. So, for instance, if I have
two radios and a group of checkboxes:

( ) Any colour
( ) Choose colours
  [ ] Blue
  [ ] Red
  ...



If "Any colour" is chosen, then this produces one kind of query (where

choosing colours is irrelevant). In that case, the checkboxes must be
disabled. However, if "Choose colours" is chosen, colours become
relevant, so the checkboxes are activated.

So, is this "biz" or "ui" logic?



the part that enables and disables components is ui logic. there is no need
to break that out into somewhere else.

the logic that validates the bean constructed by the ui is business logic.
but there are aguments to keep validation as close to the ui as possible
because its easier to map and is closest to the input - so that one is up
for grabs i suppose. this is why i decoupled validators in 2.0 - so
potentially you can use the exact same validator in your service layer and
in the ui layer.

Or, worded differently, does this go into the controller or directly

into the wicket component?



i would put this into the wicket component and call it a day. if you are
planning on having some other interface these beans can be constructed from
then i would consider some sort of validation in the controller.


it would be a good idea if you can initialize some state off the
> pageparameters, be that business state or ui state or both. that way
> you can retain bookmarkability.

Just to confirm:

We would not be _required_ to use PageParameters. Having a lightweight
bean would allow us to "save" the state of the bean in the model, and
therefore to the PageMap, right?



s/PageMap/session/

But, using PageParameters would give us the option of making pages

bookmarkable, right?



bookmarkable pages serve as entry points into the workflow, so if you need
that then yes, but it doesnt mean every page makes sense as an entry point.

In either case, this approach is still valid, so it seems.



Another question:

Say we do want to keep our pages bookmarkable, but we don't want to have
to encode everything in the URL. Say also we don't want to use a db on
the backend. Would it be appropriate to save the beans to the wicket
session?



if its not encoded in the url then where would it be encoded? as i said
bookmarkable pages are entry points so they need to contain all the
necessary state to initiate the workflow. and the only place for that is the
url.


If so:


  1. What is an elegant way of doing this? Just a Map(id, object)
 that is accessed by the controller?



i would write a converter that can do bean<->pageparameters

 2. Is there anything to watch out for? (Such as the map growing to

 an incredible size, for example)



if you keep things  scoped at a page and pass them from page to page you can
take advantage of wicket's state management so your state wont get too big.

-igor








> i think a lot of users underestimate the power of IModel when you
> implement it directly.




> now all you have to do is
>
> LoadableDetachableModel person=new LoadalbeDetachableModel(id);
> new CheckBox(this, "cb", new PersonCheckBoxModel(person));
>
> and everything magically works, hope it gives you some ideas.

Very interesting!

I'll have to give this a try.


Thanks again!
Dave





-
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] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-08 Thread Igor Vaynberg

feel free to go ahead and do that. looking forward to your analysis.

-igor


On 3/8/07, aozster <[EMAIL PROTECTED]> wrote:



--> before voting we should compare them by given usecases and construct
it
with 1.x and 2.x constructors.
I prefer
1 rich internet application
2 highly personalized user interfaces for portal
3 CMS
to be our usecases.


Eelco Hillenius wrote:
>
> We've gathered a lot of opinions by now (more are still welcome
> though!) and I think we should let this sink in for a bit.
>
> There are a couple of projects being built on 2.0 (see the replies in
> this thread, but also
> http://www.mail-archive.com/general@lists.ops4j.org/msg00240.html),
> but so far, people who reacted seem to be understanding and flexible
> to go with us if we would decide to revert the constructor change.
>
> It looks like quite a few people, more than I expected in fact,
> weren't that crazy about the constructor refactor in the first place,
> though some people like it better in general (me being one of them
> though I see disadvantages as well, but also
> http://www.mail-archive.com/general@lists.ops4j.org/msg00402.html).
> Based on the replies in this thread, it seems that people find add
> more intuitive and like the flexibility that gives you over the
> tighter model of 2.0
>
> I propose to start a real vote on what to do with the constructor
> change somewhere next week. Until then, please feel free to keep
> venting your opinions on this thread.
>
> Regards,
>
> 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
>
>

--
View this message in context:
http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constructor-change-in-2.0-tf3358738.html#a9388671
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] IMPORTANT: your opinion on the constructor change in2.0

2007-03-08 Thread Igor Vaynberg

my point is that we are a framework and we already provide what is needed to
make this and the entire superset of these kinds of things possible. our job
is to provide functionality needed for 90% of usecases and leave the other
10% possible. this falls into the 10%.

-igor


On 3/8/07, cowwoc <[EMAIL PROTECTED]> wrote:



The point *was* that onWire should get called whenever the parent
changes (i.e. when moving a component to another parent). If one wishes
to listen for hierarchy changes one could implement some event listener
mechanism to that effect by overriding onWire() of the ancestor nodes
and have them fire an event down to interested descendants when onWire()
gets fired on them.

I don't claim to solve all theoretical use-cases that users might
come
up with, I am simply commenting on the existing use-cases that have been
brought up.

Gili

Igor Vaynberg wrote:
> what happens when you move the component to another parent? will onWire
> be called again? and if not can we have a method that will please? and
> then another method if the component's hierarchy changes - a components
> ancestor is moved.
>
> point being only a small percentage of wicket components care about
> this, and we provide a general solution which is onattach and ondetach,
> and will not provide ten thousand other solutions that cover ten
> thousand esoteric usecases users can come up with.
>
> just my 2c.
>
> -igor
>
>
> On 3/8/07, *cowwoc* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
> That's why I used the terminology onWire() as opposed to
> onAdd(). My
> point was that you should shift the burden of isInitialized() away
from
> the end-user over to Wicket. When a component's ancestors (all the
way
> up to the top-most component) are connected the first time or
changed at
> some later time Wicket invokes onWire(), at which point the
component
> modifies its state accordingly. This behavior differs from
> onAttach() in
> that the latter assumes that wiring will always take place at render
> time. onWire() allows you to do the wiring either shortly after
> construction time or at render-time depending on whether all
ancestors
> have been defined or not.
>
> It guarantees that errors will be thrown as soon as
> technically possible.
>
> Gili
>
> Eelco Hillenius wrote:
> > The problem with that is that the 2.0 constructor actually forced
the
> > whole parent hierarchy to be in place, while add in 1.x just means
it
> > is added to the parent without any guarantee the parent is added
to
> > the parent yet. So even if we would provide onWire (though onAdd
would
> > be better then) it wouldn't be safe to do things like getMarkupId.
> > onAttach is safe for that, as by then the rendering phase is
reached.
> >
> > Eelco
> >
> >
> > On 3/8/07, cowwoc <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> >> Alternatively:
> >>
> >> 1) Components are POJOs. Users can define whatever constructor
> they want.
> >>
> >> 2) Users always use add() to associate a parent with a component
> but you
> >> move the component wiring out of the constructor and into a
onWire()
> >> method. Now, whenever the hierarchy/parent changes onWire() gets
> >> invoked. So components with dynamic hierarchies get onWire() once
> per
> >> rendering whereas components with static hierarchies only have
this
> >> method invoked once. Users can then remove isInitialized() so
long as
> >> they invoke their methods from inside onWire().
> >>
> >> Gili
> >>
> >> Eelco Hillenius wrote:
> >>>> How about a hybrid system?
> >>>>
> >>>> Is there a clear-cut way to know up-front which
> components have an
> >>>> immutable parent versus others that might require it to change
> during
> >>>> rendering time? If so, couldn't you require the use of
> constructors that
> >>>> take a parent for components whose parents are immutable and
> then for
> >>>> all other components use the add() paradigm?
> >>> The largest problem with that would be that it would be
inconsistent
> >>> for users. So apart from whether this is achievable, I wouldn't
> like
> >>> it as it

Re: [Wicket-user] @SpringBean and Model objects

2007-03-08 Thread Igor Vaynberg

prototype beans are not supported just yet, there is a patch for that and a
vote to apply to 1.2.x

-igor


On 3/8/07, Jonathan Cone <[EMAIL PROTECTED]> wrote:



Using Wicket 1.2.5 / Spring 2.0.2

Is it possible (or reasonable) to inject Page model implementations with
the
@SpringBean annotation?  I've tried this with prototype-scoped beans.  The
problem is that if I submit a form with an injected model object and leave
the page, then come back later, the form data is still present.  That is
to
say, a new model doesn't seem to be created every time I hit the page.

-Jon
--
View this message in context:
http://www.nabble.com/%40SpringBean-and-Model-objects-tf3373381.html#a9387404
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] Design questions: Use of controllers and wicket models

2007-03-08 Thread Igor Vaynberg

here are my short answers :) ask more if you need something explained in
detail

On 3/8/07, David Leangen <[EMAIL PROTECTED]> wrote:



First Question: Controller Logic


The idea sounds good, but I'm wondering if this is even necessary. It
was suggested to me that cleanly separating stuff into a controller is
not worth the effort, since we'd be "duplicating" so much code for no
good reason.



you have to decide what is clearly "business logic" vs "ui logic". the
business logic should go into a separate service/controller/whatchamaggicit.
the ui logic is best embedded in wicket components because each component is
a full implementation of MVC already.



Also, say if we wanted to make the component compatible with
"bookmarkability", would it be a good idea to have a setter or
constructor in the controller that accepts something similar to
PageParameters, so wicket can just pass through that object to the
controller?



it would be a good idea if you can initialize some state off the
pageparameters, be that business state or ui state or both. that way you can
retain bookmarkability.

Second Question: Mapping Above Model to Wicket Models

-

1. How do we connect the wicket model with our controller
   above when validating the state and delegating to the
   state-holder bean?



i think a lot of users underestimate the power of IModel when you implement
it directly. you  dont have to use the default Model or PropertyModel, you
are just boxing yourself in. implement the interface yourself for most
flexibility - that way you can achieve any kind of mapping.

also do not underestimate the power of decorator/adapter pattern when it
comes to models.

2. How do we "associate" parts of the state-holder bean

   with the wicket controls? For example, the "blue"
   above needs a checkbox, so how do we associate the
   value of blue in our bean above to the "blue" checkbox?



see above. take a simple example where you have a list of checkboxes and you
want all selected objects to end up in a collection. how do you do it?
sounds like a complex mapping? the most elegant way is to write a custom
model.

class mypage extends page {
 private Set selected=new HashSet();

 private class PersonCheckboxModel implements IModel {
   private final IModel person;
   public final PersonCheckBoxModel(IModel person) {
this.person=person; }

  public Boolean getObject() {
 return selected.contains(person.getObject());
   }

   public void setObject(Boolean b) {
   if (Boolean.TRUE.equals(b)) {
  selected.put(person.getObject());
} else {
   selected.remove(person.getObject());
 }
  }

   public void detach() { person.detach(); }
  }

   }

now all you have to do is

LoadableDetachableModel person=new LoadalbeDetachableModel(id);
new CheckBox(this, "cb", new PersonCheckBoxModel(person));

and everything magically works, hope it gives you some ideas.

-igor



Hope my ramblings make some sense.




Cheers,
Dave





-
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] IMPORTANT: your opinion on the constructor change in2.0

2007-03-08 Thread Igor Vaynberg

what happens when you move the component to another parent? will onWire be
called again? and if not can we have a method that will please? and then
another method if the component's hierarchy changes - a components ancestor
is moved.

point being only a small percentage of wicket components care about this,
and we provide a general solution which is onattach and ondetach, and will
not provide ten thousand other solutions that cover ten thousand esoteric
usecases users can come up with.

just my 2c.

-igor


On 3/8/07, cowwoc <[EMAIL PROTECTED]> wrote:



That's why I used the terminology onWire() as opposed to onAdd().
My
point was that you should shift the burden of isInitialized() away from
the end-user over to Wicket. When a component's ancestors (all the way
up to the top-most component) are connected the first time or changed at
some later time Wicket invokes onWire(), at which point the component
modifies its state accordingly. This behavior differs from onAttach() in
that the latter assumes that wiring will always take place at render
time. onWire() allows you to do the wiring either shortly after
construction time or at render-time depending on whether all ancestors
have been defined or not.

It guarantees that errors will be thrown as soon as technically
possible.

Gili

Eelco Hillenius wrote:
> The problem with that is that the 2.0 constructor actually forced the
> whole parent hierarchy to be in place, while add in 1.x just means it
> is added to the parent without any guarantee the parent is added to
> the parent yet. So even if we would provide onWire (though onAdd would
> be better then) it wouldn't be safe to do things like getMarkupId.
> onAttach is safe for that, as by then the rendering phase is reached.
>
> Eelco
>
>
> On 3/8/07, cowwoc <[EMAIL PROTECTED]> wrote:
>> Alternatively:
>>
>> 1) Components are POJOs. Users can define whatever constructor they
want.
>>
>> 2) Users always use add() to associate a parent with a component but
you
>> move the component wiring out of the constructor and into a onWire()
>> method. Now, whenever the hierarchy/parent changes onWire() gets
>> invoked. So components with dynamic hierarchies get onWire() once per
>> rendering whereas components with static hierarchies only have this
>> method invoked once. Users can then remove isInitialized() so long as
>> they invoke their methods from inside onWire().
>>
>> Gili
>>
>> Eelco Hillenius wrote:
 How about a hybrid system?

 Is there a clear-cut way to know up-front which components
have an
 immutable parent versus others that might require it to change during
 rendering time? If so, couldn't you require the use of constructors
that
 take a parent for components whose parents are immutable and then for
 all other components use the add() paradigm?
>>> The largest problem with that would be that it would be inconsistent
>>> for users. So apart from whether this is achievable, I wouldn't like
>>> it as it would be too confusing.
>>>
>>> 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
>>
>>
-
>> 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.ph

Re: [Wicket-user] Getting value of a text field via Ajax, no form

2007-03-08 Thread Igor Vaynberg

youre welcome

-igor


On 3/8/07, Jason Roelofs <[EMAIL PROTECTED]> wrote:


Ok, that did it. Thanks again Igor.

Jason

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

> see AjaxFormComponentUpdatingBehavior
>
> AjaxEventBehavior doesnt send over the value of the form component, just
> triggers a roundtrip
>
> -igor
>
>
> On 3/8/07, Jason Roelofs <[EMAIL PROTECTED]> wrote:
>
> >  Well, the model never actually gets changed. I must be missing
> > something, the new value of the field never gets back to the server. Anyone
> > know why this would be or if there's a better way to do this?
> >
> > Jason
> >
> > On 3/8/07, Stefan Lindner < [EMAIL PROTECTED]> wrote:
> >
> > > Try something like
> > >
> > >  startDate.getModelObject()
> > >
> > > or address the form's model
> > >
> > >vacationForm.getModelobject.get
> > >
> > > Stefan LIndner
> > >
> > > -
> > >
> > > 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


Re: [Wicket-user] Ajax Indicators for custom components

2007-03-08 Thread Igor Vaynberg

the behavior checks if it or the component it is attached to implement
IAjaxIndicatorAware. what it then does is display:; to show whatever dom
element has the id returned by IAjaxIndicatorAware when the ajax request is
initiated, and then display:none; when the ajax request is finished.

also see javadoc on IAjaxIndicatorAware

-igor


On 3/8/07, Apaar Trivedi <[EMAIL PROTECTED]> wrote:


 Hey all,



I've got a custom component (drop down of AjaxLinks) which extends Panel.
I would like for this component to be able to use an ajax indicator.  How
can I do this?  Can I just have that component implement
IAjaxIndicatorAware?  When I use the indicatorAppender as part of this, it
does not seem to work.  Any help is appreciated.  Thanks.





Sorry if this is a double post, my previous one did not seem to appear.

-
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] Getting value of a text field via Ajax, no form

2007-03-08 Thread Igor Vaynberg

see AjaxFormComponentUpdatingBehavior

AjaxEventBehavior doesnt send over the value of the form component, just
triggers a roundtrip

-igor


On 3/8/07, Jason Roelofs <[EMAIL PROTECTED]> wrote:


Well, the model never actually gets changed. I must be missing something,
the new value of the field never gets back to the server. Anyone know why
this would be or if there's a better way to do this?

Jason

On 3/8/07, Stefan Lindner <[EMAIL PROTECTED]> wrote:

> Try something like
>
>  startDate.getModelObject()
>
> or address the form's model
>
>vacationForm.getModelobject.get
>
> Stefan LIndner
>
> -
>
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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


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


Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-08 Thread Igor Vaynberg

the advantage is that the error points you to the place in java code where
the problem is instead of a place in markup.

-igor


On 3/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> I have been using 1.2.4 for some days. I think the current construct
works
> well. If there is no overwhelming reason, I prefer preserve the old
style.
> Why wicket team choose SWT style construct for 2.0? To prevent mistakes
like
> forgetting to add component to component tree?

The reasons are outlined here

http://cwiki.apache.org/WICKET/migrate-20.html#Migrate-2.0-Constructorchange
.

Mainly line precise early error reporting when the component hierarchy
mismatches with the hierarchy in the markup, and to enable users to do
a couple of things at construction time they now have to do
workarounds for (like doing getForm() or getMarkupId in the
constructor).

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

-
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] IMPORTANT: your opinion on the constructor change in2.0

2007-03-08 Thread Igor Vaynberg

this wont work.

-igor


On 3/8/07, cowwoc <[EMAIL PROTECTED]> wrote:



How about a hybrid system?

Is there a clear-cut way to know up-front which components have an
immutable parent versus others that might require it to change during
rendering time? If so, couldn't you require the use of constructors that
take a parent for components whose parents are immutable and then for
all other components use the add() paradigm?

It seems to me that any component that knows up-front that its
parent
is supposed to change between renderings will not run any operations
that depend on that parent until render time -- hence no need to add a
isInitialized() sanity check from all your methods. All methods that
depend on the parent should only be invoked at render time and if the
component has no parent it will never be rendered in the first place
hence there is no reason to check isInitialized() again.

On the other hand, other components that require an immutable
parent
can then require it in their constructor and their methods can
implicitly assume it exists without that isInitialized() check.

Gili


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



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


Re: [Wicket-user] wicket-autocomplete.js bug

2007-03-08 Thread Igor Vaynberg

how about a jira issue with a patch? :)

-igor


On 3/8/07, David Robison <[EMAIL PROTECTED]> wrote:


 When selecting a item from the autocomplete drop down, the onchange event
handler on the input is not called. The wicket-autocomplete.js needs to be
modified to call the onchange function explicitly. the changes should
include:

case KEY_ENTER:
if(selected>-1){
obj.value=getSelectedValue();
if (typeof obj.onchange == "function") obj.onchange();
hideAutoComplete();
return killEvent(event);
}
return true;
break;

and

node.onclick = function(event){
wicketGet(elementId).value=getSelectedValue();
if (typeof wicketGet(elementId).onchange ==
"function") wicketGet(elementId).onchange();
hideAutoComplete();
   }

Thanks, David

-
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] conditionally include a portion of an HTML document

2007-03-08 Thread Igor Vaynberg

WebMarkupContainer adminSpan=new WebMarkupContainer("admin-span") {
  public boolean isVisible() { return getsesion().getuser().isadmin(); }}

if you have a lot of components in that span and you dont want the overhead
of creating them make the span a panel or a fragment and add it or an empty
webmarkupcontainer conditionally

also look at our IAuthorizationStrategy which can enforce these kinds of
rules globally - mainly isActionAuthorized and Component.RENDER

-igor


On 3/8/07, David Robison <[EMAIL PROTECTED]> wrote:


 I have an HTML document where I want to conditionally include (or
exclude) based on the type of user. For example, I might have a span that
contains a link to an administrator page that I only want shown of the user
is an "administrator" user. Is there a convenient way to only include the
span containing the link?

Thanks, David


-
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] Retrieving a value from a PropertyModel

2007-03-08 Thread Igor Vaynberg

havent looked at your code but here is how i would do it

class mypanel extends panel {

  private String value;
  //getter+setter

  public mypanel() {
   TextField tf=new TextField("tf", new PropertyModel(this, "value"));
   Label l=new Label("l", new propertyModel(this, "value"));

   .
}
}


-igor


On 3/8/07, Tim Squires <[EMAIL PROTECTED]> wrote:


Hi,

I'm trying to get working a panel containing a TextField and a Label.
The label contains the hex value for the TextField content.  The
TextField is Ajaxed so that it updates the label on each key press.

Unfortunalty, I cannot retrieve the value from the TextField, it always
returns a null.  Will someone elighten me to the best way to retrieve
the current TextField value?

Code is included below.

Thanks for your help,
Tim

public class TextFieldWithHexValue extends Panel {

private static final Log logger = LogFactory
.getLog(TextFieldWithHexValue.class);

@SuppressWarnings("serial")
public TextFieldWithHexValue(String id, final PropertyModel
model,
int tabindex) {
super(id);
final TextField textField = new TextField("text field
with hex", model);
textField.setOutputMarkupId(true);
add(textField);

textField.add(new AttributeModifier("tabindex", true,
new Model(
tabindex)));
textField.setOutputMarkupId(true);

// Server Port Hex
Model hexModel = new Model() {
public Object getObject(Component arg0) {
logger.debug("Calculating hex
value...");
String value = model.getObject(null) +
"";
logger.debug("Pre hexed value = " +
value);

if (StringUtils.isNotEmpty(value)) {
StringBuffer buffer = new
StringBuffer();
StringTokenizer tokens = new
StringTokenizer(value, ".");
while (tokens.hasMoreTokens()) {
String token =
tokens.nextToken();
try {
Integer hex =
new Integer(token);

buffer.append(StringUtils.leftPad(Integer

.toHexString(hex), 2, '0'));
} catch
(NumberFormatException e) {

logger.warn("Unable to format >>" + token

+ "<< to hex");
}
}
return
buffer.toString().toUpperCase();
} else
return "";
}
};
final Label hexLabel = new Label("hex for text field",
hexModel);
hexLabel.setOutputMarkupId(true);

textField.add(new AjaxEventBehavior("onkeypress") {
protected void onEvent(AjaxRequestTarget target)
{
logger.debug("value has changed,
recalculate hex value");
target.addComponent(hexLabel);
}
});
add(hexLabel);
}
}


The Information contained in this e-mail message is intended only for
the individuals named above. If you are not the intended recipient,
you should be aware that any dissemination, distribution, forwarding
or other duplication of this communication is strictly prohibited.
The views expressed in this e-mail are those of the individual
author and not necessarily those of LINK Interchange Network Ltd.
Prior to taking any action based upon this e-mail message you should
seek appropriate confirmation of its authenticity. If you have
received this e-mail in error, please notify the sender immediately.


LINK Interchange Network Limited
Tel: 01423 356000, Fax: 01423 356356
email: [EMAIL PROTECTED]  http://www.link.co.uk
Registered in ENGLAND Number. 3565766
Registered Office: Arundel House * 1 Liverpool Gardens * Worthing * West
Sussex* BN11 1SL

-
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/li

Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-07 Thread Igor Vaynberg

On 3/7/07, aozster <[EMAIL PROTECTED]> wrote:



Eelco Hillenius wrote:
>
> 2) What do you think of the constructor change? Do you prefer 1.3's
> add style or 2.0's style of passing in the parent construction time.
>
> > After I've read wiki about the constructor change I suddenly
oppose
> this idea.
> Why ?
>   - Component should not rely on language level constructor for
domain
> specific life cycle ( It actually defines life cycle for JVM/CLR level
> object,or component ),



constructors have nothing to do with the "vm"

It should rely on component container life cycle

> service which specify the life cycle method and contract for component
> developer, init beforeAttach afterAttach beforeRender afterRender etc.



wicket is not a managed framework. you are in charge of instantiation the
components, thus constructors.


  - Component architecture for specific domain like GUI  should define
> life cycle method that ensure "which resources are avaliable" in that
> method.



we do, but like i said we let you be in control of instantiation because we
believe that delivers you the most flexibility


  - By assuming that component should have knowledge about the
> enclosing structure in constructor, It means
> "Sturcture of the enclosing component should avaiable before it can be
> constructed" or
> every components should know about the structure they will live in
before
> they can be constructed which make component more dependent.



yes but this is a gui framework with markup. you cant really compare it to
layout manager gui frameworks. this is also a framework where you have
separation of concerns, designers, etc. so we have a few special
requirements.

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


Re: [Wicket-user] was Re: Fwd: VOTE: backporting wicket 2.0 model change to 1.3

2007-03-07 Thread Igor Vaynberg

lets keep the roadmap discussion out of this thread.

-igor


On 3/7/07, Al Maw <[EMAIL PROTECTED]> wrote:


Johan Compagner wrote:
> In 2.0 we have a model change:
[...]
> 1> port it to 1.3
>
> 2> don't port it to 1.3

I'm afraid I'm very much -1 on this for 1.3.

I have a bunch of really complex models built using the current 1.3
models, and I expect other people do too.

At the moment, 1.2.x -> 1.3 migration (even for a fairly complex site)
isn't terribly complicated. Putting this in will make it so.

I'd have probably an entire week's worth of rewriting and testing to
update my code (yes, I do have that many complex wrapper models). I just
won't have the time to do that before we want to be releasing beta and
RC builds of 1.3, so I'd suddenly find myself without a nice big complex
app to test against any more. I expect many many people would be in this
situation.

Models are one of the harder things to get your head around in Wicket,
complicated wrapped ones doubly so. Forcing users to suddenly update
large chunks of complex code won't happen - a lot of people will stick
with their current SNAPSHOT 1.3 versions for a while until they have the
time to devote to fixing this. This will mean the beta and RC builds
won't as much testing, which is a really bad idea IMHO.

In my opinion we could, within the next:
-
   1 week  - Push 1.3-betas as-is.
2/3 weeks - Bug fix as people test it and push out rc's when
 we feel it's solid and stable.
   4 weeks - Rename 1.x branch to 1.3.x.
   - Release 1.3.0 final and put 1.3.x immediately into
 maintenance mode.
   - Create 1.4.x branch from 1.3.0 tag.
   - Merge the model changes from trunk to 1.4.x.
   - Backport anything else from trunk to 1.4.x that's
 not JDK5-specific.
   6 weeks - Push out 1.4-betas
7/8 weeks - Push out 1.4-rc's
   9 weeks - Push out 1.4.0 final
   - Create 1.5.x branch from 1.4.0 tag.
   - Backport/add generics, covariance and other JDK 5 trunk
 features to the 1.5.x branch.
   - Move trunk to "2.0_deprecated_-_use_1.5.x_instead"
14+ weeks - Release 1.5.0

Suggestions to make this work:
--
We won't backport from 1.4.x -> 1.3.x.
We won't actively develop trunk.
We will push 1.4 out very soon after 1.3, and encourage migration.
We will have this in a public roadmap so people can see it coming.

Notes on what you think is insanity, but actually isn't:

We will of course end up with five(!) branches (1.2.x, 1.3.x, 1.4.x,
1.5.x and what's currently trunk). This may seem like madness to you,
but I reckon it isn't:

During 1.3 development, 2.x is low activity, 1.2.x negligible.
During 1.4 development, 1.3.x and 2.x are low, 1.2.x negligible.
During 1.5 development, only 1.4.x will also be quite active.

Once 1.5.0 is out, we can properly deprecate 2.0. People currently using
it may not like being told to migrate to 1.5.x, but that shouldn't be
too hard (much less hard than going from 1.3->2.0) and there shouldn't
be too many of them. I guess that's the price you sometimes pay for
using unreleased software. :-/

I'd envisage 1.4.x will require some backports from 1.5.x. We'd
obviously encourage core developers and patchers to upgrade their sites
to use 1.5.x, do active development on that, and therefore try to only
ever backport from 1.5.x to 1.4.x, not forward-port the other way around.

If you think I'm smoking crack, the above is utterly unreasonable, you
want to kick me out of the gang, or you have any better ideas or
suggestions as to how to keep everyone happy, please shout now. :-)

Best regards,

Alastair

-
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] Issue when trying to specify Spring dependency through annotations

2007-03-07 Thread Igor Vaynberg

ah well, thats the problem. cglib is a requirement of wicket-spring. it is
in the pom.xml

-igor


On 3/7/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote:


Thanks for your reply.

However, I don't understand how come this issue with the cglib jar,
which I don't even have in my classpath...

In case it could help, here is the complete stack trace :
java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Callback

wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getFieldValue(
AnnotProxyFieldValueFactory.java:100)
wicket.injection.Injector.inject(Injector.java:110)
wicket.injection.ConfigurableInjector.inject(
ConfigurableInjector.java:24)
wicket.injection.ComponentInjector.onInstantiation(
ComponentInjector.java:54)
wicket.Application.notifyComponentInstantiationListeners(
Application.java:823)
wicket.Component.(Component.java:574)
wicket.MarkupContainer.(MarkupContainer.java:115)
wicket.Page.(Page.java:193)
wicket.markup.html.WebPage.(WebPage.java:119)
org.zedros.commun.BasePage.(BasePage.java:12)
org.zedros.forms.LoginPage.(LoginPage.java:36)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
java.lang.reflect.Constructor.newInstance(Unknown Source)
java.lang.Class.newInstance0(Unknown Source)
java.lang.Class.newInstance(Unknown Source)
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java
:58)

wicket.request.target.component.BookmarkablePageRequestTarget.newPage(
BookmarkablePageRequestTarget.java:267)

wicket.request.target.component.BookmarkablePageRequestTarget.getPage(
BookmarkablePageRequestTarget.java:286)

wicket.request.target.component.BookmarkablePageRequestTarget.processEvents
(BookmarkablePageRequestTarget.java:205)

wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
DefaultEventProcessorStrategy.java:65)

wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents
(AbstractCompoundRequestCycleProcessor.java:57)
wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java
:896)
wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
wicket.RequestCycle.step(RequestCycle.java:1010)
wicket.RequestCycle.steps(RequestCycle.java:1084)
wicket.RequestCycle.request(RequestCycle.java:454)
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Do you have any idea ?

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

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


Re: [Wicket-user] Wicket homepage Lucida Sans font

2007-03-07 Thread Igor Vaynberg

ff2 worked find on xp

-igor


On 3/7/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


is it vista or ff2 ;)

On 3/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> cause ff2 on vista has issues
>
> -igor
>
>
> On 3/7/07, Johan Compagner < [EMAIL PROTECTED]> wrote:
> >
> > igor! FF1.5??
> > why use such an old thing why you use such a just new maybe barely
> > release worthy os? ;)
> >
> > johan
> >
> >
> > On 3/7/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > >
> > >  http://wicketframework.org/ ?
> > >
> > > no problem here: vista/ffox 1.5.x
> > >
> > > -igor
> > >
> > >
> > > On 3/7/07, Xavier Hanin <[EMAIL PROTECTED]> wrote:
> > > >
> > > >  On 3/7/07, remco bos <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > I just upgraded firefox (from 1.5.0.10 to 2.0.0.2). I still have
> > > > > the same problem... And it's not only my home pc, but also my pc at 
work and
> > > > > on my laptop...
> > > > >
> > > >
> > > > I use firefox 2.0.0.2, but only tested on my laptop (dell inspiron
> > > > with windows XP service pack 2) where I don't have the problem. But 
maybe
> > > > its due to the font installed on the machine (I have "Lucida Sans" as 
far as
> > > > I can say).
> > > >
> > > > Xavier
> > > >
> > > >  Does any one else has this problem??
> > > > >
> > > > >
> > > > > - Original Message 
> > > > > From: Xavier Hanin <[EMAIL PROTECTED]>
> > > > > To: wicket-user@lists.sourceforge.net
> > > > > Sent: Wednesday, March 7, 2007 10:21:41 PM
> > > > > Subject: Re: [Wicket-user] Wicket homepage Lucida Sans font
> > > > >
> > > > > On 3/7/07, remco bos < [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Just a few notes on the font used by the wicket homepage...
> > > > > >
> > > > > > The wicket homepage uses a font "Lucida Sans" which looks very
> > > > > > very ugly in Windows / Firefox. Firefox can't handle Lucida Sans 
correctly
> > > > > > (neither does IE on my computer)...The "Lucida Sans Unicode" font 
looks
> > > > > > similar but doesn't have those problems.
> > > > > >
> > > > >
> > > > > FYI, I don't have the same problem on my windows XP box under
> > > > > firefox 2.0, IE 7 or Opera 9.
> > > > >
> > > > > - Xavier
> > > > >
> > > > >
> > > > > --
> > > > > > Never miss an email again!
> > > > > > Yahoo! 
Toolbar<http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/>alerts
 you the instant new Mail arrives.Check it out.
> > > > > >
> > > > > >
> > > > > > 
-
> > > > > > 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
> > > > > ___

Re: [Wicket-user] Wicket homepage Lucida Sans font

2007-03-07 Thread Igor Vaynberg

cause ff2 on vista has issues

-igor


On 3/7/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


igor! FF1.5??
why use such an old thing why you use such a just new maybe barely release
worthy os? ;)

johan


On 3/7/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
>
> http://wicketframework.org/ ?
>
> no problem here: vista/ffox 1.5.x
>
> -igor
>
>
> On 3/7/07, Xavier Hanin <[EMAIL PROTECTED]> wrote:
> >
> >  On 3/7/07, remco bos <[EMAIL PROTECTED]> wrote:
> > >
> > > I just upgraded firefox (from 1.5.0.10 to 2.0.0.2). I still have the
> > > same problem... And it's not only my home pc, but also my pc at work and 
on
> > > my laptop...
> > >
> >
> > I use firefox 2.0.0.2, but only tested on my laptop (dell inspiron
> > with windows XP service pack 2) where I don't have the problem. But maybe
> > its due to the font installed on the machine (I have "Lucida Sans" as far as
> > I can say).
> >
> > Xavier
> >
> >  Does any one else has this problem??
> > >
> > >
> > > - Original Message 
> > > From: Xavier Hanin <[EMAIL PROTECTED]>
> > > To: wicket-user@lists.sourceforge.net
> > > Sent: Wednesday, March 7, 2007 10:21:41 PM
> > > Subject: Re: [Wicket-user] Wicket homepage Lucida Sans font
> > >
> > > On 3/7/07, remco bos < [EMAIL PROTECTED]> wrote:
> > > >
> > > > Just a few notes on the font used by the wicket homepage...
> > > >
> > > > The wicket homepage uses a font "Lucida Sans" which looks very
> > > > very ugly in Windows / Firefox. Firefox can't handle Lucida Sans 
correctly
> > > > (neither does IE on my computer)...The "Lucida Sans Unicode" font looks
> > > > similar but doesn't have those problems.
> > > >
> > >
> > > FYI, I don't have the same problem on my windows XP box under
> > > firefox 2.0, IE 7 or Opera 9.
> > >
> > > - Xavier
> > >
> > >
> > > --
> > > > Never miss an email again!
> > > > Yahoo! 
Toolbar<http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/>alerts
 you the instant new Mail arrives.Check it out.
> > > >
> > > >
> > > > 
-
> > > > 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
> > >
> > >
> > > --
> > > It's here! Your new message!
> > > Get new email 
alerts<http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/>with
 the free Yahoo!
> > > Toolbar.
> > >
> > >
> > > -
> > > 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 

Re: [Wicket-user] Wicket homepage Lucida Sans font

2007-03-07 Thread Igor Vaynberg

http://wicketframework.org/ ?

no problem here: vista/ffox 1.5.x

-igor


On 3/7/07, Xavier Hanin <[EMAIL PROTECTED]> wrote:


On 3/7/07, remco bos <[EMAIL PROTECTED]> wrote:
>
> I just upgraded firefox (from 1.5.0.10 to 2.0.0.2). I still have the
> same problem... And it's not only my home pc, but also my pc at work and on
> my laptop...
>

I use firefox 2.0.0.2, but only tested on my laptop (dell inspiron with
windows XP service pack 2) where I don't have the problem. But maybe its due
to the font installed on the machine (I have "Lucida Sans" as far as I can
say).

Xavier

Does any one else has this problem??
>
>
> - Original Message 
> From: Xavier Hanin <[EMAIL PROTECTED]>
> To: wicket-user@lists.sourceforge.net
> Sent: Wednesday, March 7, 2007 10:21:41 PM
> Subject: Re: [Wicket-user] Wicket homepage Lucida Sans font
>
> On 3/7/07, remco bos < [EMAIL PROTECTED]> wrote:
> >
> > Just a few notes on the font used by the wicket homepage...
> >
> > The wicket homepage uses a font "Lucida Sans" which looks very very
> > ugly in Windows / Firefox. Firefox can't handle Lucida Sans correctly
> > (neither does IE on my computer)...The "Lucida Sans Unicode" font looks
> > similar but doesn't have those problems.
> >
>
> FYI, I don't have the same problem on my windows XP box under firefox
> 2.0, IE 7 or Opera 9.
>
> - Xavier
>
>
> --
> > Never miss an email again!
> > Yahoo! 
Toolbaralerts
 you the instant new Mail arrives.Check it out.
> >
> >
> > -
> > 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
>
>
> --
> It's here! Your new message!
> Get new email 
alertswith
 the free Yahoo!
> Toolbar.
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

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


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


Re: [Wicket-user] Fwd: VOTE: backporting wicket 2.0 model change to 1.3

2007-03-07 Thread Igor Vaynberg

notice this will break any existing user imodel subclasses. mostly it should
be trivial to fix, but if you do use the component argument in the get/set
object it will not be so trivial.

-igor


On 3/7/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


In 2.0 we have a model change:

IModel.getObject(Component) -> IModel.getObject()
IModel.setObject(Component,Object) -> IModel.setObject(Object)

So if you want to object from a component in 2.0 you only have to do:

component.getModel().getObject()

instead of


component.getModel().getObject()

That XXX is depending on what kind of model you use. If the component
did inherit a CompoundModel then you have to specify the component.this
If you where owner of the compoundmodel then you shouldn't specify
anything (null)

This is all fixed in 2.0 and now we can backport it to 1.3:

1> port it to 1.3

2> don't port it to 1.3

-
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] Issue when trying to specify Spring dependency through annotations

2007-03-07 Thread Igor Vaynberg

sounds like you have a bad/wrong version cglib jar on your classpath

the second way is better, the way the book describes is indeed deprecated

-igor


On 3/7/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote:


Hi all

I've a goal, a simple one I think : using Spring through annotations
in my wicket application.

To do so, I tried with both the wiki and the book "Pro Wicket". Each
time I end up with the same error : java.lang.NoClassDefFoundError:
net/sf/cglib/proxy/Callback.

Do you have any clue ?

BTW, I've a side question : "Pro Wicket" tells to extend
AnnotSpringWebApplication to be able to use the annotations. The wiki
just tells to add this line in the init() :
addComponentInstantiationListener(new SpringComponentInjector(this));

Which way is the best ? I guess the second one, since the class
AnnotSpringWebApplication is deprecated, but I'm wondering...

Thanks again in advance
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

-
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] Test of panels

2007-03-07 Thread Igor Vaynberg

looks like you are passing int he wrong path to the form?

-igor


On 3/7/07, Murat Yücel <[EMAIL PROTECTED]> wrote:


Hi Jean

Yes i have tried tester.newFormTester("form"). I get the following error:

junit.framework.AssertionFailedError: path: 'form' does no exist for page:
DummyPanelPage
at wicket.util.tester.WicketTester.getComponentFromLastRenderedPage (
WicketTester.java:399)
at wicket.util.tester.WicketTester.newFormTester(WicketTester.java
:557)
at wicket.util.tester.WicketTester.newFormTester(WicketTester.java
:540)

Do i have to override DummyPanelPage? It seems like i dont have to because
it is a dummy
container containing the panel i want to test.

/Murat

2007/3/7, Jean-Baptiste Quenot <[EMAIL PROTECTED]>:
>
> * Murat Yücel:
>
> > Is it possible to test a panel that includes a form and make use
> > of ajax?  If yes  how is it possible and do  you have an example
> > :)...
> >
> > I am already using this method WicketTester.startPanel but i can
> > only test that the panel  is rendered without any errors. I cant
> > retrieve  the  form  element. Well  i cant  figure  out  how  to
> > retrieve them :)
>
> Have you tried tester.newFormTester("form")
> --
>  Jean-Baptiste Quenot
> aka  John Banana   Qwerty
> http://caraldi.com/jbq/
>
> -
>
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


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


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


Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-07 Thread Igor Vaynberg

yes i have been while there were legal issues unresolved (we were waiting on
other people for their iclas). now they all are afaik and we can do a
release. so lets concentrate on that.

if we do provide a new generified version, then lets make that 1.4 and make
1.3 the last jdk1.4 and put that into maintenance. we dont have the
resources to fix bugs twice everywhere.

-igor


On 3/7/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> backport everything new and useful into 1.4 (or seems like even 1.3since
> you guys got such itchy fingers).

Those itchy fingers are easily explained: we'd like to get in those
'missing' features in asap so that we don't have to worry about
backporting them in the future! Furthermore, don't play such an
innocent kid, because you've been guilty of applying or at least
encouraging quite a few ajax and header contribution backports
yourself!

> at that point we will decide whether or
> not we will make 1.3 or 1.4 the last java1.4 version, and from then on
move
> on to java5 with the older version being in _maintenance_ mode.

We have to take some responsibility here don't we? If we decide to
reverse the constructor change, that doesn't mean we just drop the
whole thing right away. As you have read in the thread so far, people
/are/ using those generics, so we /should/ provide a proper upgrade
path. And I mean very soon, not just in some distant future. So, yes,
we have to either keep 2.0 alive for bug fixes and stuff, or we have
to provide a version that is as close to 1.3 as possible, but with
generics/ java 5 support.

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

-
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] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-07 Thread Igor Vaynberg

ummm.hell no. the big point of this is to get rid of having multiple
branches!

so what we will most likely do is drop 2.0

backport everything new and useful into 1.4 (or seems like even 1.3 since
you guys got such itchy fingers). at that point we will decide whether or
not we will make 1.3 or 1.4 the last java1.4 version, and from then on move
on to java5 with the older version being in _maintenance_ mode.

at least that is what i think we should do.

-igor


On 3/7/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> Reverting the
> constructor change will probably cost me a few days, but the end it will
> probably be worth it. I have noticed recently a somewhat troubling
trend.
> You guys used to be very disciplined about adding features to 2.0 and
then
> backporting them to the other branches. Now it seems like new features
are
> developed in any branch and then maybe or maybe not ported to the
others.
> That's definitely a train wreck waiting to happen, and it is
understandably
> a source of misery for all of you. Dump it if you need to, your
collective
> happiness is more important to me :).

Thanks for supporting us.

> It would be great to have a definitive list of 2.0 features that will be
> lost, so I can plan ahead for any redesign if necessary. For example,
I've
> used generics (with mixed feelings) and covariance extensively, so these
> will probably be more painful to lose than the constructor change. Will
> these be jettisoned as well?

It's really only about the constructor change. The constructor change
is probably the primary reason why it is tough to maintain the
separate branches, as they are so different.

I started a discussion about generics, but unfortunately, I didn't
check that what I was proposing was actually possible. Turns out it
isn't, so it looks like the generics will stay in there as is.

So, if we would go on ditching 2.0, we would still have two separate
branches (and maybe we just still keep calling it 2.0, no preferences
at this time) where - ideally - the only difference is that one is
based on 1.4 and the other on 1.5.

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

-
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] Using the session

2007-03-07 Thread Igor Vaynberg

wicket is a new wheel. we were happy to be basement hackers and create a
more round wheel for you so you dont bump your head as much when you ride it
:)

-igor


On 3/7/07, Jason Roelofs <[EMAIL PROTECTED]> wrote:


On 3/6/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> > Would you mine expounding on this a little more? This comes across to
> me as
> > "it's bad programming practice to follow paradigms set in place for
> the past
> > 10+ years (Web session being a hash of strings at it's most basic
> > implementation)."
>
> Exactly, that's what I'm saying! :) Much of what is wrong with web
> application framework today is that they do not support proper
> strongly typed object oriented development.
>
> > In response to the topic at hand, I implemented what I posted earlier,
> it
> > seems to work alright.
>
> Cool,
>
> 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



Well, I come from Rails after having spent time in PHP and even some
Cocoon (shudder). Rails sessions are of course Ruby hashes, and fully OO,
strongly typed, etc. PHP sessions can also have anything put into them,
though objects are basically hashes anyway.

I do see where the idea of 'subclassing to make your own' comes from; Java
does little to help with dynamic data structures. Right now I'm still in the
Ruby mindset, trying to get back into the mind of Java developers. It isn't
easy but I'm getting there.

And to Igor: I'm a software developer, not a basement hacker, and I'm sure
most of you here are the same. I'm never happy to be reinventing the wheel
:P. And as I said earlier, I've never seen such easy to use Ajax support in
a web framework.

Jason



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


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


Re: [Wicket-user] wicket:message without escape

2007-03-07 Thread Igor Vaynberg

add a jira issue

-igor


On 3/7/07, Ingram Chen <[EMAIL PROTECTED]> wrote:


Hi,

   how do I turn off escape string in  ?
a typical use case is:

[Copyright here]
copyright=Copyright © 2005

I search the doc and source but nothing found...
It would be better one can add an attribute like



any suggestion ?

--
Ingram Chen
��便��啦: http://dinbendon.net
blog: http://www.javaworld.com.tw/roller/page/ingramchen
-
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] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-07 Thread Igor Vaynberg

On 3/7/07, Matej Knopp <[EMAIL PROTECTED]> wrote:


I've been using trunk for some time and I really like the constructor
change.

Can't we fix somehow the problems we have with it rather than dropping
the entire effort? Can we make it possible to create component with null
parent and reparent it afterwards? (Just thinking loud)



no we cant. like i have explained before we did this, it is either all or
nothing. suppose you create a component with a null parent, and in its
constructor it adds a ajaxsubmitlink to itself. what happens now? the
submitlink needs the hierarchy, but its not there.

you also dont need to pass the form into ajaxsubmitlink in 1.3. in onattach
it can search for the form and add the behavior to itself then. you just
need some flag so you dont do it twice.

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


Re: [Wicket-user] Exception using @SpringBean and HibernateSessionFactory - wicket 1.3

2007-03-06 Thread Igor Vaynberg

create a jira issue and assign it to johan :)

-igor


On 3/6/07, Michel Wichers <[EMAIL PROTECTED]> wrote:


Hi Igor,

using the default factory works ... however a fix would be great ;-)

Thanks  for your help.

Regards,

Michel

Igor Vaynberg schrieb:
> do like the message says:
>
> You can switch to JDK based serialization by
> calling: wicket.util.lang.Objects
> .setObjectStreamFactory(new
> IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init
> method of your application
>
> i think there is a bug in our optimized serialization where it doesnt
> handle proxies properly yet
>
> -igor
>
>
>
> On 3/6/07, *Michel Wichers* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi all,
>
> we received the following exception within a WebPage using an
injected
> SpringBean - HibernateSessionFactory via sublassed
> LocalSessionFactoryBean :
>
> ERROR - Objects : Error serializing object class
> de.ponton.box.core.ui.detail.Detail [object=[Page class =
> de.ponton.box.core.ui.detail.Detail, id = 0, version = 0]]
> wicket.util.io.WicketSerializeableException: Error writing fields
for
> wicket.proxy.$Proxy7
> de.ponton.box.core.ui.detail.Detail->sessionFactory
> NOTE: if you feel Wicket is at fault with this exception, please
> report
> to the mailing list. You can switch to JDK based serialization by
> calling: wicket.util.lang.Objects.setObjectStreamFactory (new
> IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init
> method of your application
> at
> wicket.util.io.WicketObjectOutputStream.writeObjectOverride(
WicketObjectOutputStream.java:806)
> at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
> at
> wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(
ClassStreamHandler.java:860)
> at
> wicket.util.io.ClassStreamHandler.writeFields
> (ClassStreamHandler.java:387)
> at
> wicket.util.io.WicketObjectOutputStream.writeObjectOverride(
WicketObjectOutputStream.java:779)
> at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
> at wicket.util.lang.Objects.objectToByteArray(Objects.java:1102)
> at
> wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java
:408)
> at
> wicket.protocol.http.FilePageStore.access$1500(FilePageStore.java:49)
> at
> wicket.protocol.http.FilePageStore$PageSerializingThread.run(
FilePageStore.java:705)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at
> wicket.util.io.ClassStreamHandler.writeFields
> (ClassStreamHandler.java:397)
> at
> wicket.util.io.WicketObjectOutputStream.writeObjectOverride(
WicketObjectOutputStream.java:779)
> ... 10 more
> ERROR - FilePageStore$PageSerializingThread : Error in page save
> thread
> java.lang.NullPointerException
> at
> wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java
:413)
> at
> wicket.protocol.http.FilePageStore.access$1500(FilePageStore.java
:49)
> at
> wicket.protocol.http.FilePageStore$PageSerializingThread.run
> (FilePageStore.java:705)
> at java.lang.Thread.run(Thread.java:595)
> shouldn't happen
>
>
> Here is the applicationContextSnippet:
> ...
>  class="
> de.ponton.box.core.bootstrap.DynamicSessionFactoryBean"
> singleton="true">
> 
> 
> 
> 
>
> we are subclassing LocalSessionFactoryBean from spring:
>
> ...
> public class DynamicSessionFactoryBean extends
LocalSessionFactoryBean
> {
> ...
>
> and here is the code snippet:
> 
> @SpringBean
> SessionFactory sessionFactory;
> 
>
> This has worked with Wicket 1.2.5...
>
> Any ideas?
>
> --
> Best regards / Mit freundlichen Grüßen
> Michel Wichers
>
_
> Ponton Consulting GmbH voice:  +49.40.69213-340
> http://www.ponton-consulting.de/   fax:+49.40.69213-355
> Dorotheenstrasse 60mobile: +49.175.566 9970
> D-22301
> Hamburgmailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>
_
>
> HRB 81480, AG Hamburg, Managing Director: Dr. Michael Merz
> Pont

Re: [Wicket-user] Exception using @SpringBean and HibernateSessionFactory - wicket 1.3

2007-03-06 Thread Igor Vaynberg

if its injected through @springbean its ok

-igor


On 3/6/07, Al Maw <[EMAIL PROTECTED]> wrote:


Michel Wichers wrote:
> we received the following exception within a WebPage using an injected
> SpringBean - HibernateSessionFactory via sublassed
LocalSessionFactoryBean :

...

> de.ponton.box.core.ui.detail.Detail->sessionFactory

It looks to me like that class has a reference to sessionFactory.
Needless to say, you shouldn't do that! You can't serialise your session
factory - it has connections to the database, etc.

So I don't think this is a bug in our serialization, but instead someone
having a SessionFactory reference where they shouldn't.

Al

-
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] IMPORTANT: your opinion on the constructor

2007-03-06 Thread Igor Vaynberg

On 3/6/07, Stefan Lindner <[EMAIL PROTECTED]> wrote:


To speak as an end-user:


> 2) What do you think of the constructor change? Do you prefer 1.3's
We prefer the 2.0 constructor.



what about it do you prefer?




in most cases. But I was convinced of the advantages that the new
constructor has and the question is now
1. Are the proposed advantages no longer advantages



they still are, although less so with the new headercontributor stuff

2. Does the new constructor make anything impossible that was possible with

the old style contructor?



yes. it makes indirectly creating children more difficult. it also makes
moving components very difficult.

3. What does the wicket 1.x users prevent to switch to the 2.0 style that

goes beyond a simple syntax change?



because the constructor is more limiting in the way you create hierarchies
(see point 2) you need to rewrite parts of your code in a non-trivial manner

going the other way 2.0->1.x should be trivial

-igor


Stefan Lindner




-
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] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-06 Thread Igor Vaynberg

yeah, with our new headercontributor stuff some of these problems no longer
matter

-igor


On 3/6/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> i don't care to much
> about accessing markup attributes in the constructor because i don't
care
> much about driving code from markup.

If you create components that are based on or work together with
Javascript components, this is a nice feature to have. Driving code
from markup sounds more negative than it is, as when working with ajax
and javascript, you *need* this, and the ability to do it at any time
is nice.

There are workarounds, and I found that in the end I'm often coupling
such components on render time anyway (e.g. using header contributors
with LoadableDetachableModels).

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

-
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] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-06 Thread Igor Vaynberg

well it is useful when constructing javascript behaviors because they can
create urls to pass to javascript at construction time instead of doing it
at a later point (onattach?). but it is mere convinience.

-igor


On 3/6/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:




just thinking out loud, there is no workaround for the constructor pros.
are there any important things people really /need/ to get done that we're
making impossible without the constructor change?  i don't care to much
about accessing markup attributes in the constructor because i don't care
much about driving code from markup.  but what about the others?  are
there
any useful things we'd lose?

i think i can live without the perfect error reporting as wicket error
reporting seems good enough to me now.  it's almost certainly not worth a
code explosion to get this alone.

   jon


igor.vaynberg wrote:
>
> pros:
>
> * free to call any method in the constructor like getpage(), urlfor(),
> etc.
>
> * access to markup attributes in constructor as opposed to render time
>
> * fail at component instantiation time rather then render time if there
is
> a
> hierarchy<->java mismatch - so you get a java line-precise error as
> opposed
> to our error webpage
>
> cons:
>
> * code explosion
> 2.0: http://papernapkin.org/pastebin/view/4900
> 1.3: http://papernapkin.org/pastebin/view/4908
>
> * hacks necessary for nontrivial components
> GridView.populate()
> http://papernapkin.org/pastebin/view/4902
> notice fake1,fake2 parents necessary for child item instantiation and
> which
> are later removed
>
> * more limited in how the hierarchy is created since it MUST be created
> top-down
>
> * replacing components is less explicit.
> 1.3: a.replaceWith(new B());
> 2.0: new B(a.getParent(), a.getId());
>
> -igor
>
>
>
>
> On 3/6/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> i would like to see a list of what we'd lose by not supporting the
>> constructor change.  i actually prefer the add() usage and always
>> have.  i just don't want us to forget why we originally wanted to
>> make the constructor change.  the only two things i can recall are:
>>
>> - better diagnostics, but i can't recall exactly /what/ diagnostics we
>> thought we'd get
>>
>> - ability to make component init dependent on parental context.  this
>> might
>> be either xml association or component data somehow.  i can't think of
>> any
>> times i've been screaming to do this, but can anyone give some of the
>> best
>> examples so we can evaluate what we'd be losing here?
>>
>>
>> Eelco Hillenius wrote:
>> >
>> > Hi,
>> >
>> > We (Wicket's developers) are having some discussion over 1.3 vs 2.0
>> > and how difficult it is as a nun-funded project to spend so much time
>> > synchronizing the branches.
>> >
>> > A major issue in the discussion is that not everyone is convinced
>> > anymore that the constructor change in 2.0 is for the better. There
>> > are pros and cons for sure, but we want to get your opinion on this.
>> >
>> > Please help us out giving your opinion. We want to know:
>> >
>> > 1) Who uses 2.0 for serious projects?
>> >
>> > 2) What do you think of the constructor change? Do you prefer 1.3's
>> > add style or 2.0's style of passing in the parent construction time.
>> >
>> > 3) If we would ever backtrack on the constructor change (*if*, don't
>> > panic for now) how much trouble would that give you?
>> >
>> > Please don't be shy giving your opinion. This is an important issue
in
>> > the future development of Wicket.
>> >
>> > Regards,
>> >
>> > 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
>> >
>> >
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constructor-change-in-2.0-tf3358738.html#a9342589
>> 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.

Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-06 Thread Igor Vaynberg

because the parent must be known at construction time and by YOU since YOU
are the one calling new. so if there is an indirection somewhere like there
is with the toolbars you have to use a factory in order to get the correct
parent passed to you by the component at a later time.

-igor


On 3/6/07, cowwoc <[EMAIL PROTECTED]> wrote:



Why does "code explosion" happen as a consequence of the
constructor
change?

Gili

Igor Vaynberg wrote:
> pros:
>
> * free to call any method in the constructor like getpage(), urlfor(),
etc.
>
> * access to markup attributes in constructor as opposed to render time
>
> * fail at component instantiation time rather then render time if there
> is a hierarchy<->java mismatch - so you get a java line-precise error as
> opposed to our error webpage
>
> cons:
>
> * code explosion
> 2.0: http://papernapkin.org/pastebin/view/4900
> 1.3: http://papernapkin.org/pastebin/view/4908
> <http://papernapkin.org/pastebin/view/4908>
>
> * hacks necessary for nontrivial components
> GridView.populate()
> http://papernapkin.org/pastebin/view/4902
> notice fake1,fake2 parents necessary for child item instantiation and
> which are later removed
>
> * more limited in how the hierarchy is created since it MUST be created
> top-down
>
> * replacing components is less explicit.
> 1.3: a.replaceWith(new B());
> 2.0: new B(a.getParent(), a.getId());
>
> -igor
>
>
>
>
> On 3/6/07, *Jonathan Locke* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
>
> i would like to see a list of what we'd lose by not supporting the
> constructor change.  i actually prefer the add() usage and always
> have.  i just don't want us to forget why we originally wanted to
> make the constructor change.  the only two things i can recall are:
>
> - better diagnostics, but i can't recall exactly /what/ diagnostics
we
> thought we'd get
>
> - ability to make component init dependent on parental
> context.  this might
> be either xml association or component data somehow.  i can't think
> of any
> times i've been screaming to do this, but can anyone give some of
> the best
> examples so we can evaluate what we'd be losing here?
>
>
> Eelco Hillenius wrote:
> >
> > Hi,
> >
> > We (Wicket's developers) are having some discussion over 1.3 vs
2.0
> > and how difficult it is as a nun-funded project to spend so much
time
> > synchronizing the branches.
> >
> > A major issue in the discussion is that not everyone is convinced
> > anymore that the constructor change in 2.0 is for the better.
There
> > are pros and cons for sure, but we want to get your opinion on
this.
> >
> > Please help us out giving your opinion. We want to know:
> >
> > 1) Who uses 2.0 for serious projects?
> >
> > 2) What do you think of the constructor change? Do you prefer 1.3
's
> > add style or 2.0's style of passing in the parent construction
time.
> >
> > 3) If we would ever backtrack on the constructor change (*if*,
don't
> > panic for now) how much trouble would that give you?
> >
> > Please don't be shy giving your opinion. This is an important
issue in
> > the future development of Wicket.
> >
> > Regards,
> >
> > 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
> <
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> <mailto:Wicket-user@lists.sourceforge.net>
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> <https://lists.sourceforge.net/lists/listinfo/wicket-user>
> >
> >
>
> --
> View this message in context:
>
http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constructor-change-in-2.0-tf3358738.html#a9342589
> <
http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constr

Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-06 Thread Igor Vaynberg

pros:

* free to call any method in the constructor like getpage(), urlfor(), etc.

* access to markup attributes in constructor as opposed to render time

* fail at component instantiation time rather then render time if there is a
hierarchy<->java mismatch - so you get a java line-precise error as opposed
to our error webpage

cons:

* code explosion
2.0: http://papernapkin.org/pastebin/view/4900
1.3: http://papernapkin.org/pastebin/view/4908

* hacks necessary for nontrivial components
GridView.populate()
http://papernapkin.org/pastebin/view/4902
notice fake1,fake2 parents necessary for child item instantiation and which
are later removed

* more limited in how the hierarchy is created since it MUST be created
top-down

* replacing components is less explicit.
1.3: a.replaceWith(new B());
2.0: new B(a.getParent(), a.getId());

-igor




On 3/6/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:




i would like to see a list of what we'd lose by not supporting the
constructor change.  i actually prefer the add() usage and always
have.  i just don't want us to forget why we originally wanted to
make the constructor change.  the only two things i can recall are:

- better diagnostics, but i can't recall exactly /what/ diagnostics we
thought we'd get

- ability to make component init dependent on parental context.  this
might
be either xml association or component data somehow.  i can't think of any
times i've been screaming to do this, but can anyone give some of the best
examples so we can evaluate what we'd be losing here?


Eelco Hillenius wrote:
>
> Hi,
>
> We (Wicket's developers) are having some discussion over 1.3 vs 2.0
> and how difficult it is as a nun-funded project to spend so much time
> synchronizing the branches.
>
> A major issue in the discussion is that not everyone is convinced
> anymore that the constructor change in 2.0 is for the better. There
> are pros and cons for sure, but we want to get your opinion on this.
>
> Please help us out giving your opinion. We want to know:
>
> 1) Who uses 2.0 for serious projects?
>
> 2) What do you think of the constructor change? Do you prefer 1.3's
> add style or 2.0's style of passing in the parent construction time.
>
> 3) If we would ever backtrack on the constructor change (*if*, don't
> panic for now) how much trouble would that give you?
>
> Please don't be shy giving your opinion. This is an important issue in
> the future development of Wicket.
>
> Regards,
>
> 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
>
>

--
View this message in context:
http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constructor-change-in-2.0-tf3358738.html#a9342589
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] Using the session

2007-03-06 Thread Igor Vaynberg

On 3/6/07, Jason Roelofs <[EMAIL PROTECTED]> wrote:



Would you mine expounding on this a little more? This comes across to me
as "it's bad programming practice to follow paradigms set in place for the
past 10+ years (Web session being a hash of strings at it's most basic
implementation)."



so why even look into wicket? why not use servlets directly? after all they
have been around for 10+ years :)

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


Re: [Wicket-user] Wicket Spring Annotations

2007-03-06 Thread Igor Vaynberg

the released wicket-spring-annot jar is bad, rebuild it from source or use
the one from 1.2.4

-igor


On 3/6/07, jklcom99 <[EMAIL PROTECTED]> wrote:



I'm trying out Wicket Spring Annotation Integration example and I'm
getting
this error at server startup

2007-03-06 13:32:29.030::WARN:  failed example
java.lang.Error: Unresolved compilation problems:
The import wicket.injection.IFieldValueFactory cannot be resolved
IFieldValueFactory cannot be resolved to a type
factory cannot be resolved
IFieldValueFactory cannot be resolved to a type
factory cannot be resolved

Can some tell me what I am missing?
--
View this message in context:
http://www.nabble.com/Wicket-Spring-Annotations-tf3357621.html#a9338799
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] Question: Sometimes our web pages come back incomplete.

2007-03-06 Thread Igor Vaynberg

im not sure if a solution has been found. afaik its some weird bug in
sitemesh. search the mailing list for "sitemesh" to see other threads

-igor


On 3/6/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:


On Tuesday, 06 March 2007 10:57 am, Igor Vaynberg escreveu:
> ive only heard of this happening when wicket pages were rendered inside
> sitemesh, is that what you are doing?

Jeez.   Yes!   That's exactly what we're doing.

We have been thinking of getting rid of sitemesh once we're
totatlly off of
webwork and onto wicket.   Then we can just use wicket composition.

I guess we need to accelerate that!

Or is there some temporary solution?

Thanks!  Wow.

>
> -igor
>
> On 3/6/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > It seems as though some of the data just doesn't come back until we do
a
> > refresh.
> >
> > We're using wicket 1.2.5.
> >
> > We've got a form and then after the form we have a DefaultDataTable
with
> > some
> > rows.
> >
> > Sometimes it seems like it stops drawing the page after part of the
form,
> > maybe after the second datepicker.
> >
> > Does this sound familiar?
> >
> > Do you have any suggestions?
> >
> > I am no wicket or web wizard, so any hints would be appreciated.
> > 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

-
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] Question: Sometimes our web pages come back incomplete.

2007-03-06 Thread Igor Vaynberg

ive only heard of this happening when wicket pages were rendered inside
sitemesh, is that what you are doing?

-igor


On 3/6/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:


It seems as though some of the data just doesn't come back until we do a
refresh.

We're using wicket 1.2.5.

We've got a form and then after the form we have a DefaultDataTable with
some
rows.

Sometimes it seems like it stops drawing the page after part of the form,
maybe after the second datepicker.

Does this sound familiar?

Do you have any suggestions?

I am no wicket or web wizard, so any hints would be appreciated.
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



-
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] Pushing data to the Ajax client in wicket?

2007-03-06 Thread Igor Vaynberg

class NewChatMsgEvent implements ComentEvent {
...
}

final WebMarkupContainer chatwindow=new WebMarkupContainer("chatwindow");
chatwindow.add(new CometBehavior(NewChatMsgEvent.class) {
  protected void onEvent(CometEvent e, ComentTarget t) {
   t.addComponent(chatwindow);
   }
}

form.add(new SendChatButton() {
 public void onsubmit() {
  getApplication().getCometBroadcaster().publish(new
NewChatMsgEvent());
  }
}

something like that should do quiet nicely i think

the broadcaster then has to find all active pages that have a behavior that
subscribed to this event and trigger them.

-igor



On 3/6/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


i am planning to build an abstraction for cometd support (jetty and tomcat
now)
inside wicket. So that it really works like a ajax behavior that has a
constant open connection
where that you can get and then write the components you need.
I first need to build that we can release and get the page again (set the
pagemap barrier and release it when in idle mode)


If somebody has nice idea's/api for this please speak!

johan


On 3/6/07, Peter Neubauer <[EMAIL PROTECTED]> wrote:
>
> Hi there,
> I am trying to push out events that contain the moving locations of a
> users buddies, so I can update the GMap on the page using plain JS and
> the GMarkerManager.
>
> Right now I am using Pushlet for this, but that has the disadvantage
> that it is not integrated into Wicket, and it uses a generic broadcast
> mechanism, much like JMS subscribing to topics from JS.
>
> Is there any way to get this functionality working using Wicket, e.g.
> the GMap not being reloaded, just moving the markers on a pull/push
> interval?
>
> Thanks for any hints!
>
> /peter
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


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


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


Re: [Wicket-user] Exception using @SpringBean and HibernateSessionFactory - wicket 1.3

2007-03-06 Thread Igor Vaynberg

do like the message says:

You can switch to JDK based serialization by
calling: wicket.util.lang.Objects.setObjectStreamFactory(new
IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init
method of your application

i think there is a bug in our optimized serialization where it doesnt handle
proxies properly yet

-igor



On 3/6/07, Michel Wichers <[EMAIL PROTECTED]> wrote:


Hi all,

we received the following exception within a WebPage using an injected
SpringBean - HibernateSessionFactory via sublassed LocalSessionFactoryBean
:

ERROR - Objects : Error serializing object class
de.ponton.box.core.ui.detail.Detail [object=[Page class =
de.ponton.box.core.ui.detail.Detail, id = 0, version = 0]]
wicket.util.io.WicketSerializeableException: Error writing fields for
wicket.proxy.$Proxy7
de.ponton.box.core.ui.detail.Detail->sessionFactory
NOTE: if you feel Wicket is at fault with this exception, please report
to the mailing list. You can switch to JDK based serialization by
calling: wicket.util.lang.Objects.setObjectStreamFactory(new
IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init
method of your application
at
wicket.util.io.WicketObjectOutputStream.writeObjectOverride(
WicketObjectOutputStream.java:806)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
at
wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(
ClassStreamHandler.java:860)
at
wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)
at
wicket.util.io.WicketObjectOutputStream.writeObjectOverride(
WicketObjectOutputStream.java:779)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
at wicket.util.lang.Objects.objectToByteArray(Objects.java:1102)
at
wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java:408)
at wicket.protocol.http.FilePageStore.access$1500(FilePageStore.java
:49)
at
wicket.protocol.http.FilePageStore$PageSerializingThread.run(
FilePageStore.java:705)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at
wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:397)
at
wicket.util.io.WicketObjectOutputStream.writeObjectOverride(
WicketObjectOutputStream.java:779)
... 10 more
ERROR - FilePageStore$PageSerializingThread : Error in page save thread
java.lang.NullPointerException
at
wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java:413)
at wicket.protocol.http.FilePageStore.access$1500(FilePageStore.java
:49)
at
wicket.protocol.http.FilePageStore$PageSerializingThread.run(
FilePageStore.java:705)
at java.lang.Thread.run(Thread.java:595)
shouldn't happen


Here is the applicationContextSnippet:
...






we are subclassing LocalSessionFactoryBean from spring:

...
public class DynamicSessionFactoryBean extends LocalSessionFactoryBean
{
...

and here is the code snippet:

@SpringBean
SessionFactory sessionFactory;


This has worked with Wicket 1.2.5...

Any ideas?

--
Best regards / Mit freundlichen Grüßen
Michel Wichers
_
Ponton Consulting GmbH voice:  +49.40.69213-340
http://www.ponton-consulting.de/   fax:+49.40.69213-355
Dorotheenstrasse 60mobile: +49.175.566 9970
D-22301 Hamburgmailto:[EMAIL PROTECTED]
_

HRB 81480, AG Hamburg, Managing Director: Dr. Michael Merz
Ponton Consulting is a Member of C1 Group (www.c1-group.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] Unexplained behavior...

2007-03-05 Thread Igor Vaynberg

if the page is mounted that will do it

lets say you have a mount /foo

and in that html you have 

the full path is /foo/gif/image.gif

which will match your page mounted at /foo

-igor


On 3/5/07, Corey Puffalt <[EMAIL PROTECTED]> wrote:


The URLs that seem to be triggering the extra page constructions look like
.  (I only know this because the PageParameters seem
to be gif = "image.gif".)

Corey

On 3/5/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> do the urls in those img tags point back to the page? :)
>
> eg  will do it
>
> -igor
>

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


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


Re: [Wicket-user] Unexplained behavior...

2007-03-05 Thread Igor Vaynberg

do the urls in those img tags point back to the page? :)

eg  will do it

-igor


On 3/5/07, Corey Puffalt <[EMAIL PROTECTED]> wrote:


Hi...

I'm new to Wicket so hopefully this will be obvious to someone else.  I'm
seeing what seems (to me) to be strange behavior.  I've got a page into
which I'm rendering some Labels with models that contain some HTML.  These
Labels are being rendered inside a DataView (though I doubt that makes a
difference).  The code in the constructor for my page looks something like
this:

...
DataView dataView = new DataView("pageable", new EntryDataProvider())
{
  protected void populateItem(final Item item)
  {
log.debug("Populating " + item);
Entry entry = (Entry)item.getModelObject();

item.add(new Label("message", entry.getMessage
()).setEscapeModelStrings(false));

  }
};
add(dataView);
...

The strange behavior I'm seeing is that my Page is being constructed
multiple times and it appears to be somehow due to the HTML content in my
Label?!?  If I setEscapeModelStrings(true) then my Page is only constructed
once but otherwise it is constructed multiple times.  I've added some
additional debug logging and it seems to be somehow related to some embedded
 tags in the HTML I'm outputting.  Can anyone explain what is going on
here?  Does anyone know how I can prevent my Page from being unnecessarily
constructed multiple times?

Thanks,
Corey

-
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] Components final add() method a flaw by design?

2007-03-05 Thread Igor Vaynberg

why? whats the point? you would generate a runtime exception in both cases.
in some variant of add you would fail earlier then in onattach, but the
error message makes it very clear what is wrong.

its just bloat imho. you will never have a design that pleases everyone, in
this case i dont think we will make things any better.

-igor


On 3/5/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


On 3/5/07, Chris Lintz <[EMAIL PROTECTED]> wrote:
>
> I was hoping to prevent any one implementing the component from ever
being
> able to add more than one at development time by wrapping add() with
> something like setComponent().  I guess I will have to lean on the
method
> below and fall back on run-time exceptions.
>
> Thanks.  That is helpful although not ideal.

I agree that it is not very elegant. Igor and others, how about adding
a protected non-final method like allowAdd or something?

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

-
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] Components final add() method a flaw by design?

2007-03-05 Thread Igor Vaynberg

onattach() { if (size()>1) throw new IllagelStateException("more then one
child added to component that must only have one child"); }

-igor


On 3/5/07, Chris Lintz <[EMAIL PROTECTED]> wrote:



Hi all,
I have just found an annoying design flaw that prevents me from creating
components that need exactly say 2 child components (no more no less).  I
understand why the Components add() method is final, but the framework
gives
me  no other option of enforcing exact number of children components
leaving
the code wide open for misuse on certain components.

For example, I am creating my own FeedbackBorder that displays component
error messages directly under the component.  Each of these Feedbackborder
objects can only contain 1 component and 1 component only (dont want the
developer callling add() multiple times.  I cannot even wrap the Border
object because the FeedbackBorder object itself needs to extend from
Component in order to be added to a form.  This seems like a bad design
not
being able to easily enforce rules around how many child components can be
part of a particular component.

Please let me know your thoughts.

--
View this message in context:
http://www.nabble.com/Components-final-add%28%29-method-a-flaw-by-design--tf3352685.html#a9323530
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] How do I make CheckBoxMultipleChoice show horizontal instead of vertical?

2007-03-05 Thread Igor Vaynberg

well if you want it to be horizontal then you can do something like this:

setprefix("");
setsuffix("");

-igor


On 3/5/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:


On Monday, 05 March 2007 04:22 pm, Igor Vaynberg escreveu:
> override getprefix/getsuffix to return whatever html you want

Ok, sorry - but I'm not sure what html I want there.

I'm more of a swing programmer than a web programmer.

>
> -igor
>
> On 3/5/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > I know that must be a dumb question, but I just can't quite get it.
> >
> >
-
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> > your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

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

-
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] building wicket-stuff snapshots

2007-03-05 Thread Igor Vaynberg

nothing special, just mvn install

the webserver links to the local maven repository :)

-igor


On 3/5/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote:


I'm working on setting up the wicket-contrib-scriptaculous project on the
wicket-stuff bamboo server, and would like to know if it's possible to have
it automatically publish snapshots to the wicket-stuff maven repo?

anything special needed to set this up?

-
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


<    4   5   6   7   8   9   10   11   12   13   >