Re: [Wicket-user] Wicket Beta 2 Ajax Broken !

2006-03-20 Thread Matej Knopp

Sorry, my bad.

setRenderBodyOnly, not setStripWicketTags.

the problem is for example having

 Span body


the entire tag is replaced by new span body, but without the tags with 
id, e.g.


 New span body

(tags and id is missing, because it's replaced through outerHtml, not 
innerHtml)


Vaynberg wrote:
what exactly is the problem? ajax requests use the same settings, so if 
you have stripwickettags=false both full and ajax renders should act the 
same.


-Igor


On 3/19/06, * Matej Knopp* <[EMAIL PROTECTED] > wrote:

Hi, there seems to be a serious problem with beta 2.

Javascript replaces components with outerHtml, but they are rendered
with setStripWicketTags(true), which causes severe problems.

Or am I missing something?

-Matej


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user







---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Beta 2 Ajax Broken !

2006-03-20 Thread Johan Compagner
but if you use setRenderBodyOnly(true) on a labelhow can you target it for a ajax update at the first place?On 3/20/06, Matej Knopp <
[EMAIL PROTECTED]> wrote:Sorry, my bad.setRenderBodyOnly, not setStripWicketTags.
the problem is for example having  Span bodythe entire tag is replaced by new span body, but without the tags withid, e.g.  New span body
(tags and id is missing, because it's replaced through outerHtml, notinnerHtml)Vaynberg wrote:> what exactly is the problem? ajax requests use the same settings, so if> you have stripwickettags=false both full and ajax renders should act the
> same.>> -Igor>>> On 3/19/06, * Matej Knopp* <[EMAIL PROTECTED] [EMAIL PROTECTED]>> wrote:
>> Hi, there seems to be a serious problem with beta 2.>> _javascript_ replaces components with outerHtml, but they are rendered> with setStripWicketTags(true), which causes severe problems.
>> Or am I missing something?>> -Matej>>> ---> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language> that extends applications into web and mobile media. Attend the live> webcast> and join the prime developer group breaking into this new coding> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> <
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>> ___> Wicket-user mailing list> 
Wicket-user@lists.sourceforge.net> Wicket-user@lists.sourceforge.net>> 
https://lists.sourceforge.net/lists/listinfo/wicket-user> >>
---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] error message in the absence of wicket:extend, wicket:panel tags.

2006-03-20 Thread karthik Guru
if one forgets to specify tags like  or , the error says - "tag expected".Would it be possible to have a more descriptive error message  along the lines of - "tag expected - may be you forgot to add  or ..just to assist faster debugging.. -- karthik -- 


Re: [Wicket-user] why create new page instances ?

2006-03-20 Thread Johan Compagner
you can reuse pages just fine for one session ofcourse if you want.So in youre BookList you hold on to an internal page BookDetails or EditBook pageAnd when you click on a view/edit link you just reuse that page.
I wouldn't share pages across sessions. johanOn 3/20/06, ali <[EMAIL PROTECTED]
> wrote:i am new in wicket , it's correct that we tell1- always use getPageFactory.newPage
() instead "new".2- if a user view/edit 4 book in its session , for him/her created 4BookDetails and 4 EditBook page object.(why this needed)do we can define page be singleton in level of handler thread or session
(i remember ThreadLocal)? so that like swing only once EditBook orBookDetails pages instanced and for next book only needed that call onthem setBook(booK);refrence to these pages can keep in session and also they can
or maybe i must more read examples and docs--Using Opera's revolutionary e-mail client: http://www.opera.com/mail/---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] Wicket Beta 2 Ajax Broken !

2006-03-20 Thread Matej Knopp
Again, I didn't express correctly. I don't call this on label. 
AjaxRequestTarget does.


-Matej

Johan Compagner wrote:

but if you use setRenderBodyOnly(true) on a label
how can you target it for a ajax update at the first place?


On 3/20/06, *Matej Knopp* < [EMAIL PROTECTED] > wrote:

Sorry, my bad.

setRenderBodyOnly, not setStripWicketTags.

the problem is for example having

  Span body


the entire tag is replaced by new span body, but without the tags with
id, e.g.

  New span body

(tags and id is missing, because it's replaced through outerHtml, not
innerHtml)

Vaynberg wrote:
 > what exactly is the problem? ajax requests use the same settings,
so if
 > you have stripwickettags=false both full and ajax renders should
act the
 > same.
 >
 > -Igor
 >
 >
 > On 3/19/06, * Matej Knopp* <[EMAIL PROTECTED]
 >> wrote:
 >
 > Hi, there seems to be a serious problem with beta 2.
 >
 > Javascript replaces components with outerHtml, but they are
rendered
 > with setStripWicketTags(true), which causes severe problems.
 >
 > Or am I missing something?
 >
 > -Matej
 >
 >
 > ---
 > This SF.Net email is sponsored by xPML, a groundbreaking
scripting
 > language
 > that extends applications into web and mobile media. Attend
the live
 > webcast
 > and join the prime developer group breaking into this new coding
 > territory!
 >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


 > <
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>
 > ___
 > Wicket-user mailing list
 > Wicket-user@lists.sourceforge.net

 > >
 > https://lists.sourceforge.net/lists/listinfo/wicket-user
 > 
 >
 >



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user






---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] error message in the absence of wicket:extend, wicket:panel tags.

2006-03-20 Thread Juergen Donnerstag
This is the error message I get, which I think is perfectly fine (and
it is latest svn head). There is some other mistake in your markup
which causes the error.

wicket.markup.MarkupException: Markup for a panel component has to
contain part ''
[markup = 
file:/D:/Programme/eclipse-3.1M3/eclipse/workspace/wicket/target/test-classes/wicket/markup/html/panel/SimplePanel_2.html,
index = 4, current = '' (line 2, column 28)]

Juergen

On 3/20/06, karthik Guru <[EMAIL PROTECTED]> wrote:
> if one forgets to specify tags like  or , the
> error says - "tag expected".
> Would it be possible to have a more descriptive error message  along the
> lines of -
>
> "tag expected - may be you forgot to add  or  etc?"
>
> ..just to assist faster debugging..
>
>  -- karthik --


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Beta 2 Ajax Broken !

2006-03-20 Thread Matej Knopp
AjaxRequestTarget renders only the body of component. That was fine, 
because it was replaced by innerHtml, so only the content of tag was 
changed. But in current beta, wicket ajax javascript replaces component 
with outerHtml, but still only body of component is generated by 
AjaxRequestTarget. And on javascript side, the whole tag is replaced.


This way, each component can be replaced only once.

So the solution would be perhaps not to call setRenderBodyOnly in 
AjaxRequestTarget (or switch back to innerHtml).


-Matej

Matej Knopp wrote:
Again, I didn't express correctly. I don't call this on label. 
AjaxRequestTarget does.


-Matej

Johan Compagner wrote:

but if you use setRenderBodyOnly(true) on a label
how can you target it for a ajax update at the first place?


On 3/20/06, *Matej Knopp* < [EMAIL PROTECTED] > 
wrote:


Sorry, my bad.

setRenderBodyOnly, not setStripWicketTags.

the problem is for example having

  Span body


the entire tag is replaced by new span body, but without the tags 
with

id, e.g.

  New span body

(tags and id is missing, because it's replaced through outerHtml, not
innerHtml)

Vaynberg wrote:
 > what exactly is the problem? ajax requests use the same settings,
so if
 > you have stripwickettags=false both full and ajax renders should
act the
 > same.
 >
 > -Igor
 >
 >
 > On 3/19/06, * Matej Knopp* <[EMAIL PROTECTED]
 >> wrote:
 >
 > Hi, there seems to be a serious problem with beta 2.
 >
 > Javascript replaces components with outerHtml, but they are
rendered
 > with setStripWicketTags(true), which causes severe problems.
 >
 > Or am I missing something?
 >
 > -Matej
 >
 >
 > ---
 > This SF.Net email is sponsored by xPML, a groundbreaking
scripting
 > language
 > that extends applications into web and mobile media. Attend
the live
 > webcast
 > and join the prime developer group breaking into this new 
coding

 > territory!
 >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

 


 > <

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

> 


 > ___
 > Wicket-user mailing list
 > Wicket-user@lists.sourceforge.net

 > >
 > https://lists.sourceforge.net/lists/listinfo/wicket-user
 > 
 >
 >



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

 


___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user






---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live 
webcast

and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Selecting an item in a DropDownChoice

2006-03-20 Thread Johan Compagner
if you use new ChoiceRenderer(displayExpression) only then the id value (how we know what is selected) is the current index.But in youre case it should be the id of the function so i guess you have to have something like:
add(new
DropDownChoice("function", functions, new
ChoiceRenderer("name","id")).setRequired(true));and id is also a property that returns the unique identifier of a function.johan
On 3/20/06, Tom van Zummeren <[EMAIL PROTECTED]> wrote:













I have something I can't
figure out about the DropDownChoice component.

 

This is the case:

 

I have a form, I have a
CompoundPropertyModel attached to it to hold my domain object.

This domain object is
already filled with data from the database, so I want this form to show the properties
of the domain object (because this form is used for editing a database record).

In this case the domain
object is an Employee. It has a firstName, a lastName and a function. First
name and last name are Strings, but the function is a

Function object (also a
domain object).

I was able to let the
form show the firstName and lastName properties by using RequiredTextField like
this:

 

add(new
RequiredTextField("firstName", String.class));

add(new
RequiredTextField("lastName", String.class));

 

But now for the function,
I don't want to simply show the function name there. I want to have a
dropdown box there, with all the functions from the database.

So I used the DropDownChoice
component, I added it like this:

 

add(new
DropDownChoice("function", functions, new
ChoiceRenderer("name")).setRequired(true));

 

By the way, 'functions'
is a LoadableDetachableModel which represents the complete list of functions of
the database.

 

It all works fine, it
shows the drop down list in the form with all the functions, but the problem is
… it doesn't automatically select the right function from it's
list!

 

So my question is: how
can I let the DropDownChoice by default select the Function of the Employee I am
editing?

 

(I hope I clearified my
problem enough)

 

Thanks,

 

Tom

 










RE: [Wicket-user] Selecting an item in a DropDownChoice

2006-03-20 Thread Tom van Zummeren








Ok thank you, that did the trick! It now
selects the correct option.

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: Monday, March 20, 2006 11:30
AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Selecting an item in a DropDownChoice



 

if you use new
ChoiceRenderer(displayExpression) only then the id value (how we know what is
selected) is the current index.
But in youre case it should be the id of the function 
so i guess you have to have something like: 

add(new
DropDownChoice("function", functions, new
ChoiceRenderer("name","id")).setRequired(true));

and id is also a property that returns the unique identifier of a function.

johan







On 3/20/06, Tom van
Zummeren <[EMAIL PROTECTED]>
wrote:





I have something I can't figure out about the
DropDownChoice component.

 

This is the case:

 

I have a form, I have a CompoundPropertyModel
attached to it to hold my domain object.

This domain object is already filled with data
from the database, so I want this form to show the properties of the domain
object (because this form is used for editing a database record).

In this case the domain object is an Employee. It
has a firstName, a lastName and a function. First name and last name are
Strings, but the function is a

Function object (also a domain object).

I was able to let the form show the firstName and
lastName properties by using RequiredTextField like this:

 

add(new RequiredTextField("firstName",
String.class));

add(new RequiredTextField("lastName",
String.class));

 

But now for the function, I don't want to simply
show the function name there. I want to have a dropdown box there, with all the
functions from the database.

So I used the DropDownChoice component, I added
it like this:

 

add(new DropDownChoice("function",
functions, new ChoiceRenderer("name")).setRequired(true));

 

By the way, 'functions' is a
LoadableDetachableModel which represents the complete list of functions of the
database.

 

It all works fine, it shows the drop down list in
the form with all the functions, but the problem is … it doesn't automatically
select the right function from it's list!

 

So my question is: how can I let the
DropDownChoice by default select the Function of the Employee I am editing?

 

(I hope I clearified my problem enough)

 

Thanks,

 

Tom

 







 

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006








--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006
 


[Wicket-user] Wicket Panel: Page Refresh Problem

2006-03-20 Thread Ayodeji Aladejebi
i have this row numbering property on my panel such that without using the IDs from the database, i want to use this property count on my DataPanel to number a List
within ListView...it did this
 
   int count = 1;
  protected void populateItem(final Item listItem) {    //final State nstate =  (State) listItem.getModelObject();    count = getCount();    setCount(count+1);
    State state = (State)listItem.getModelObject();    listItem.add(new Label("id", String.valueOf(count)));  }
 
 
but whenever i click the browser refresh, the count does not start from 1 againis there anyway to trap refresh or what is the way to go by these? 


[Wicket-user] New features Wicket 1.2

2006-03-20 Thread Tom van Zummeren








I was wondering if there are any examples
yet of new features in Wicket 1.2

 

Because on the wicket site I saw a list of
new features in Wicket 1.2, but it didn’t say how the new features are
implemented.

In this case I’d like to know the
following:

 

Spring support for injecting your business logic into your web pages in
a non-intrusive manner, while still being able to use the convenient Wicket
idiom for creating pages (using the Java new operator).

 

What is this non-intrusive manner?

 

 

Tom








--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006
 


[Wicket-user] Re: Wicket Panel: Page Refresh Problem

2006-03-20 Thread Ayodeji Aladejebi
ha ha
listItem.getIndex() + 1 
I see it 
On 3/20/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:


i have this row numbering property on my panel such that without using the IDs from the database, i want to use this property count on my DataPanel to number a List
within ListView...it did this
 
   int count = 1;
  protected void populateItem(final Item listItem) {    //final State nstate =  (State) listItem.getModelObject();    count = getCount();    setCount(count+1); 
    State state = (State)listItem.getModelObject();    listItem.add(new Label("id", String.valueOf(count)));  }
 
 
but whenever i click the browser refresh, the count does not start from 1 againis there anyway to trap refresh or what is the way to go by these? 



[Wicket-user] how to include a Struts action from a wicket page

2006-03-20 Thread Nili Adoram

Hi All,
I would like to include the output of a struts action inside a wicket page.
For example:
public MyPage(PageParameters params) {
   add (new Include("header","/action/header.do"));
   add (new Include("sidebar","/action/sidebar.do"));
}

However Tomcat is redirecting me to login action according to 
 definition inside web.xml.

It seems that the Include is ignoring the authenticated user.
Any suggestions how to overcome this issue?
Thanks
Nili



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] New features Wicket 1.2

2006-03-20 Thread karthik Guru
> Spring support for injecting your business logic into your web pages in
a non-intrusive manner, while still being able to use the > convenient Wicket
idiom for creating pages (using the Java new operator).Yes - this one is my favourite! . ..actually even IAuthorizationStrategy and Ajax support rocks.!..now am not sure which is the best 
1.2 feature. May be we s'd have a vote :)You can inject spring-ified objects into your page / components just by specifying an annotation @SpringBean.
Then wicket-spring module takes care of resolving all those dependencies when the component is instantiated.It does it by using the cool 1.2 feature that allows you to register as many IComponentInstantiationListener as you want.
These listeners get called when the component is instantiated.wicket-spring registers a IComponentInstantiationListener that runs through your page/components looking for fields that require injecttion (the ones that have @SpringBean specified) and resolves them through Spring's ApplicationContext.
So you just do this - @SecuredWicketPage public class EditAccountPage extends Template{    private String repeatedPassword;    @SpringBean        private AccountService accountService;


    public EditAccountPage() {        Form form = new Form("form", new CompoundPropertyModel(this)) {and by the time you actually get to use accountService, wicket w'd have already resolved it for you with the help of Spring...and as you can see its all non-intrusive (yeah as long as you are ok with specifying @SpringBean :)) )
 wicket team rocks!! - and in this case igor & eelco.. ..great job!
On 3/20/06, Tom van Zummeren <[EMAIL PROTECTED]> wrote:


















I was wondering if there are any examples
yet of new features in Wicket 1.2

 

Because on the wicket site I saw a list of
new features in Wicket 1.2, but it didn't say how the new features are
implemented.

In this case I'd like to know the
following:

 

Spring support for injecting your business logic into your web pages in
a non-intrusive manner, while still being able to use the convenient Wicket
idiom for creating pages (using the Java new operator).

 

What is this non-intrusive manner?

 

 

Tom








--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006
 

--  -- karthik -- 





RE: [Wicket-user] New features Wicket 1.2

2006-03-20 Thread Tom van Zummeren








Does it automatically remove the
dependency when the page is put in the session? (and of course re-injected when
taken out of the session?)

Because I don’t want the services to
end up in the session.

 

Tom

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of karthik Guru
Sent: Monday, March 20, 2006 2:59
PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] New
features Wicket 1.2



 

> Spring support for
injecting your business logic into your web pages in a non-intrusive manner,
while still being able to use the 
> convenient Wicket idiom for creating pages (using the Java new
operator).

Yes - this one is my favourite! . ..actually even IAuthorizationStrategy and Ajax support rocks.!..now
am not sure which is the best 1.2 feature. May be we s'd have a vote :)

You can inject spring-ified objects into your page / components just by
specifying an annotation @SpringBean. Then wicket-spring module takes care of
resolving all those dependencies when the component is instantiated.
It does it by using the cool 1.2 feature that allows you to register as many
IComponentInstantiationListener as you want. 
These listeners get called when the component is instantiated.

wicket-spring registers a IComponentInstantiationListener that runs through
your page/components looking for fields that require injecttion (the ones that
have @SpringBean specified) and resolves them through Spring's ApplicationContext.


So you just do this - 

@SecuredWicketPage public class EditAccountPage extends Template{
    private String repeatedPassword;

    @SpringBean    
    private AccountService accountService;

    public EditAccountPage() {
        Form form = new Form("form",
new CompoundPropertyModel(this)) {



and by the time you actually get to use accountService, wicket w'd have already
resolved it for you with the help of Spring...and as you can see its all
non-intrusive (yeah as long as you are ok with specifying @SpringBean :)) ) 

wicket team rocks!! - and in this case igor & eelco.. ..great job!






On 3/20/06, Tom van
Zummeren <[EMAIL PROTECTED]>
wrote:





I was wondering if there are any examples yet of new features
in Wicket 1.2

 

Because on the wicket site I saw a list of new features in
Wicket 1.2, but it didn't say how the new features are implemented.

In this case I'd like to know the following:

 

Spring
support for injecting your business logic into your web pages in a
non-intrusive manner, while still being able to use the convenient Wicket idiom
for creating pages (using the Java new
operator).

 

What is this non-intrusive manner?

 

 

Tom



 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006








-- 
-- karthik -- 

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006








--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006
 


Re: [Wicket-user] New features Wicket 1.2

2006-03-20 Thread Martijn Dashorst
Usually most new features have corresponding examples in the examples projects. Download the examples distributions and take a look at the code. Writing articles is hard, much work, and generally not something developers like to do. Writing software on the other hand is. Hence a lot of examples.
MartijnOn 3/20/06, Tom van Zummeren <[EMAIL PROTECTED]> wrote:















I was wondering if there are any examples
yet of new features in Wicket 1.2

 

Because on the wicket site I saw a list of
new features in Wicket 1.2, but it didn't say how the new features are
implemented.

In this case I'd like to know the
following:

 

Spring support for injecting your business logic into your web pages in
a non-intrusive manner, while still being able to use the convenient Wicket
idiom for creating pages (using the Java new operator).

 

What is this non-intrusive manner?

 

 

Tom








--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006
 

-- Cast your final vote for Wicket in the SourceForge.net 2006 Community Choice Awards!http://www.wilsonresearch.com/2006/ostgawards06/ostgawards4.php



Re: [Wicket-user] New features Wicket 1.2

2006-03-20 Thread karthik Guru
AFAIK the field content is just a proxy (jdk dynamic proxy/cglib) to the actual Spring bean. So when the page is serialized when in a cluster, it just serializes the proxy with minmal information to re-construct it back on other node. But I'm not so sure if it detaches itself at the end of the every request / when it is put back into the Page map in the session the way you want it. The proxy holds on to the the actual Spring service bean.
Igor is the best person to answer  this..looks like he is not awake yet :)
On 3/20/06, Tom van Zummeren <[EMAIL PROTECTED]> wrote:




















Does it automatically remove the
dependency when the page is put in the session? (and of course re-injected when
taken out of the session?)

Because I don't want the services to
end up in the session.

 

Tom

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of 
karthik Guru
Sent: Monday, March 20, 2006 2:59
PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] New
features Wicket 1.2



 

> Spring support for
injecting your business logic into your web pages in a non-intrusive manner,
while still being able to use the 
> convenient Wicket idiom for creating pages (using the Java new
operator).

Yes - this one is my favourite! . ..actually even IAuthorizationStrategy and Ajax support rocks.!..now
am not sure which is the best 1.2 feature. May be we s'd have a vote :)

You can inject spring-ified objects into your page / components just by
specifying an annotation @SpringBean. Then wicket-spring module takes care of
resolving all those dependencies when the component is instantiated.
It does it by using the cool 1.2 feature that allows you to register as many
IComponentInstantiationListener as you want. 
These listeners get called when the component is instantiated.

wicket-spring registers a IComponentInstantiationListener that runs through
your page/components looking for fields that require injecttion (the ones that
have @SpringBean specified) and resolves them through Spring's ApplicationContext.


So you just do this - 

@SecuredWicketPage public class EditAccountPage extends Template{
    private String repeatedPassword;

    @SpringBean    
    private AccountService accountService;

    public EditAccountPage() {
        Form form = new Form("form",
new CompoundPropertyModel(this)) {



and by the time you actually get to use accountService, wicket w'd have already
resolved it for you with the help of Spring...and as you can see its all
non-intrusive (yeah as long as you are ok with specifying @SpringBean :)) ) 

wicket team rocks!! - and in this case igor & eelco.. ..great job!






On 3/20/06, Tom van
Zummeren <[EMAIL PROTECTED]>
wrote:





I was wondering if there are any examples yet of new features
in Wicket 1.2

 

Because on the wicket site I saw a list of new features in
Wicket 1.2, but it didn't say how the new features are implemented.

In this case I'd like to know the following:

 

Spring
support for injecting your business logic into your web pages in a
non-intrusive manner, while still being able to use the convenient Wicket idiom
for creating pages (using the Java new
operator).

 

What is this non-intrusive manner?

 

 

Tom



 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006








-- 
-- karthik -- 


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006








--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006
 

--  -- karthik -- 








RE: [Wicket-user] New features Wicket 1.2

2006-03-20 Thread Tom van Zummeren








Yeah I already started to take a look at
it, and it works realy easy!

I see they proxied the service before
injecting it, (which allows lazy loading of the service)

 









From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Martijn Dashorst
Sent: Monday, March 20, 2006 3:55
PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] New
features Wicket 1.2



 

Usually most new features
have corresponding examples in the examples projects. Download the examples
distributions and take a look at the code. 

Writing articles is hard, much work, and generally not something developers
like to do. Writing software on the other hand is. Hence a lot of examples. 

Martijn



On 3/20/06, Tom van
Zummeren <[EMAIL PROTECTED]>
wrote:





I was wondering if there are any examples yet of new features
in Wicket 1.2

 

Because on the wicket site I saw a list of new features in
Wicket 1.2, but it didn't say how the new features are implemented.

In this case I'd like to know the following:

 

Spring
support for injecting your business logic into your web pages in a non-intrusive
manner, while still being able to use the convenient Wicket idiom for creating
pages (using the Java new operator).

 

What is this non-intrusive manner?

 

 

Tom



 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006








-- 
Cast your final vote for Wicket in the SourceForge.net 2006 Community Choice
Awards!
http://www.wilsonresearch.com/2006/ostgawards06/ostgawards4.php


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006








--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006
 


Re: [Wicket-user] Wicket Beta 2 Ajax Broken !

2006-03-20 Thread Igor Vaynberg
this is not true, when i made the change to outerhtml i also made a change to the request target. it now no longer renders only the body, but the full component.in fact i added a check to make sure setrenderbodyonly==false on any component that you rerender via ajax:
AjaxRequestTarget:228    if (component.getRenderBodyOnly() == true)        {            throw new IllegalStateException(                    "Ajax render cannot be called on component that has setRenderBodyOnly enabled. Component: "
                            + component.toString());        }-IgorOn 3/20/06, Matej Knopp <
[EMAIL PROTECTED]> wrote:AjaxRequestTarget renders only the body of component. That was fine,
because it was replaced by innerHtml, so only the content of tag waschanged. But in current beta, wicket ajax _javascript_ replaces componentwith outerHtml, but still only body of component is generated byAjaxRequestTarget. And on _javascript_ side, the whole tag is replaced.
This way, each component can be replaced only once.So the solution would be perhaps not to call setRenderBodyOnly inAjaxRequestTarget (or switch back to innerHtml).-MatejMatej Knopp wrote:
> Again, I didn't express correctly. I don't call this on label.> AjaxRequestTarget does.>> -Matej>> Johan Compagner wrote:>> but if you use setRenderBodyOnly(true) on a label
>> how can you target it for a ajax update at the first place?>> On 3/20/06, *Matej Knopp* < [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote: Sorry, my bad. setRenderBodyOnly, not setStripWicketTags. the problem is for example having
>> >>   Span body>>  the entire tag is replaced by new span body, but without the tags>> with
>> id, e.g.   New span body (tags and id is missing, because it's replaced through outerHtml, not>> innerHtml) Vaynberg wrote:
>>  > what exactly is the problem? ajax requests use the same settings,>> so if>>  > you have stripwickettags=false both full and ajax renders should>> act the
>>  > same.>>  >>>  > -Igor>>  >>>  >>>  > On 3/19/06, * Matej Knopp* <[EMAIL PROTECTED]
>> [EMAIL PROTECTED]> [EMAIL PROTECTED]>> [EMAIL PROTECTED]
>>> wrote:>>  >>>  > Hi, there seems to be a serious problem with beta 2.>>  >>>  > _javascript_ replaces components with outerHtml, but they are
>> rendered>>  > with setStripWicketTags(true), which causes severe problems.>>  >>>  > Or am I missing something?>>  >>>  > -Matej
>>  >>>  >>>  > --->>  > This SF.Net email is sponsored by xPML, a groundbreaking>> scripting
>>  > language>>  > that extends applications into web and mobile media. Attend>> the live>>  > webcast>>  > and join the prime developer group breaking into this new
>> coding>>  > territory!>>  >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
 
  > < http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
 >
  > ___>>  > Wicket-user mailing list>>  > Wicket-user@lists.sourceforge.net
>> Wicket-user@lists.sourceforge.net>>>  > Wicket-user@lists.sourceforge.net
>> Wicket-user@lists.sourceforge.net  > 
https://lists.sourceforge.net/lists/listinfo/wicket-user>>  > 
>>  >>>  > --->> This SF.Net email is sponsored by xPML, a groundbreaking scripting
>> language>> that extends applications into web and mobile media. Attend the live>> webcast>> and join the prime developer group breaking into this new coding>> territory!
 http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>>
>>  ___
>> Wicket-user mailing list>> Wicket-user@lists.sourceforge.net>> 
Wicket-user@lists.sourceforge.net>>> https://lists.sourceforge.net/lists/listinfo/wicket-user>
>>> ---> This SF.Net email is sponsored by xPML, a groundbreaking scripting language> that extends applications into web and mobile media. Attend the live
> webcast> and join the prime developer group breaking into this new coding territory!> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/l

Re: [Wicket-user] New features Wicket 1.2

2006-03-20 Thread Johan Compagner
One warning don't do this:@SecuredWicketPage public class EditAccountPage extends Template{    private String repeatedPassword;    @SpringBean        private AccountService accountService = null; 



    public EditAccountPage() {        Form form = new Form("form", new CompoundPropertyModel(this)) {(the = null)Because then youre accountService will be null again when the page is fully constructed.
johanOn 3/20/06, karthik Guru <[EMAIL PROTECTED]> wrote:
> Spring support for injecting your business logic into your web pages in
a non-intrusive manner, while still being able to use the > convenient Wicket
idiom for creating pages (using the Java new operator).Yes - this one is my favourite! . ..actually even IAuthorizationStrategy and Ajax support rocks.!..now am not sure which is the best 
1.2 feature. May be we s'd have a vote :)You can inject spring-ified objects into your page / components just by specifying an annotation @SpringBean.
Then wicket-spring module takes care of resolving all those dependencies when the component is instantiated.It does it by using the cool 1.2 feature that allows you to register as many IComponentInstantiationListener as you want.
These listeners get called when the component is instantiated.wicket-spring registers a IComponentInstantiationListener that runs through your page/components looking for fields that require injecttion (the ones that have @SpringBean specified) and resolves them through Spring's ApplicationContext.
So you just do this - @SecuredWicketPage public class EditAccountPage extends Template{    private String repeatedPassword;    @SpringBean        private AccountService accountService;



    public EditAccountPage() {        Form form = new Form("form", new CompoundPropertyModel(this)) {and by the time you actually get to use accountService, wicket w'd have already resolved it for you with the help of Spring...and as you can see its all non-intrusive (yeah as long as you are ok with specifying @SpringBean :)) )
 wicket team rocks!! - and in this case igor & eelco.. ..great job!
On 3/20/06, Tom van Zummeren <[EMAIL PROTECTED]> wrote:



















I was wondering if there are any examples
yet of new features in Wicket 1.2

 

Because on the wicket site I saw a list of
new features in Wicket 1.2, but it didn't say how the new features are
implemented.

In this case I'd like to know the
following:

 

Spring support for injecting your business logic into your web pages in
a non-intrusive manner, while still being able to use the convenient Wicket
idiom for creating pages (using the Java new operator).

 

What is this non-intrusive manner?

 

 

Tom








--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006
 

--  -- karthik -- 







Re: [Wicket-user] New features Wicket 1.2

2006-03-20 Thread Igor Vaynberg
there is more info here:http://www.wicket-wiki.org.uk/wiki/index.php/Spring-IgorOn 3/20/06, 
Johan Compagner <[EMAIL PROTECTED]> wrote:
One warning don't do this:@SecuredWicketPage public class EditAccountPage extends Template{    private String repeatedPassword;
    @SpringBean        private AccountService accountService = null; 



    public EditAccountPage() {        Form form = new Form("form", new CompoundPropertyModel(this)) {(the = null)Because then youre accountService will be null again when the page is fully constructed.
johanOn 3/20/06, 
karthik Guru <[EMAIL PROTECTED]> wrote:

> Spring support for injecting your business logic into your web pages in
a non-intrusive manner, while still being able to use the > convenient Wicket
idiom for creating pages (using the Java new operator).Yes - this one is my favourite! . ..actually even IAuthorizationStrategy and Ajax support rocks.!..now am not sure which is the best 
1.2 feature. May be we s'd have a vote :)You can inject spring-ified objects into your page / components just by specifying an annotation @SpringBean.
Then wicket-spring module takes care of resolving all those dependencies when the component is instantiated.It does it by using the cool 1.2 feature that allows you to register as many IComponentInstantiationListener as you want.
These listeners get called when the component is instantiated.wicket-spring registers a IComponentInstantiationListener that runs through your page/components looking for fields that require injecttion (the ones that have @SpringBean specified) and resolves them through Spring's ApplicationContext.
So you just do this - @SecuredWicketPage public class EditAccountPage extends Template{    private String repeatedPassword;    @SpringBean        private AccountService accountService;




    public EditAccountPage() {        Form form = new Form("form", new CompoundPropertyModel(this)) {and by the time you actually get to use accountService, wicket w'd have already resolved it for you with the help of Spring...and as you can see its all non-intrusive (yeah as long as you are ok with specifying @SpringBean :)) )
 wicket team rocks!! - and in this case igor & eelco.. ..great job!
On 3/20/06, Tom van Zummeren <[EMAIL PROTECTED]> wrote:




















I was wondering if there are any examples
yet of new features in Wicket 1.2

 

Because on the wicket site I saw a list of
new features in Wicket 1.2, but it didn't say how the new features are
implemented.

In this case I'd like to know the
following:

 

Spring support for injecting your business logic into your web pages in
a non-intrusive manner, while still being able to use the convenient Wicket
idiom for creating pages (using the Java new operator).

 

What is this non-intrusive manner?

 

 

Tom








--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006
 

--  -- karthik -- 









RE: [Wicket-user] New features Wicket 1.2

2006-03-20 Thread Tom van Zummeren








Ok thanks,

 

By the way, is this the best way to inject
dependencies? It works like a charm but it isn’t Spring-like to inject a
dependency with only a private field. Spring normally uses a setter to do so,
and if the bean implements InitializingBean it calls the afterPropertiesSet()
method afterwards (to do some validation of the just set dependencies)

Is there an option to do it like this?

 

Tom

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: Monday, March 20, 2006 5:17
PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] New
features Wicket 1.2



 

there is more info here:

http://www.wicket-wiki.org.uk/wiki/index.php/Spring

-Igor





On 3/20/06, Johan
Compagner <[EMAIL PROTECTED]>
wrote:



One warning don't do this:







@SecuredWicketPage public class EditAccountPage extends Template{
    private String repeatedPassword;

    @SpringBean    





    private AccountService accountService = null; 







    public EditAccountPage() {
        Form form = new
Form("form", new CompoundPropertyModel(this)) {





(the = null)

Because then youre accountService will be null again when the page is fully
constructed. 






johan












On 3/20/06, karthik
Guru <[EMAIL PROTECTED]>
wrote:



> Spring support for
injecting your business logic into your web pages in a non-intrusive manner,
while still being able to use the 
> convenient Wicket idiom for creating pages (using the Java new
operator).





Yes - this one is my favourite! . ..actually even
IAuthorizationStrategy and Ajax
support rocks.!..now am not sure which is the best 1.2 feature. May be we s'd
have a vote :)

You can inject spring-ified objects into your page / components just by
specifying an annotation @SpringBean. Then wicket-spring module takes care of
resolving all those dependencies when the component is instantiated.
It does it by using the cool 1.2 feature that allows you to register as many
IComponentInstantiationListener as you want. 
These listeners get called when the component is instantiated.

wicket-spring registers a IComponentInstantiationListener that runs through
your page/components looking for fields that require injecttion (the ones that
have @SpringBean specified) and resolves them through Spring's
ApplicationContext. 

So you just do this - 

@SecuredWicketPage public class EditAccountPage extends Template{
    private String repeatedPassword;

    @SpringBean    
    private AccountService accountService;

    public EditAccountPage() {
        Form form = new Form("form",
new CompoundPropertyModel(this)) {



and by the time you actually get to use accountService, wicket w'd have already
resolved it for you with the help of Spring...and as you can see its all
non-intrusive (yeah as long as you are ok with specifying @SpringBean :)) ) 

wicket team rocks!! - and in this case igor & eelco.. ..great job!












On 3/20/06, Tom van
Zummeren <[EMAIL PROTECTED]>
wrote:





I was wondering if there are any examples yet of new features
in Wicket 1.2

 

Because on the wicket site I saw a list of new features in
Wicket 1.2, but it didn't say how the new features are implemented.

In this case I'd like to know the following:

 

Spring
support for injecting your business logic into your web pages in a
non-intrusive manner, while still being able to use the convenient Wicket idiom
for creating pages (using the Java new
operator).

 

What is this non-intrusive manner?

 

 

Tom



 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006













-- 





-- karthik -- 















 

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006








--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006
 


Re: [Wicket-user] New features Wicket 1.2

2006-03-20 Thread Igor Vaynberg
we can write a traversal for setters, but i really dont see value in it, what is your setter going to do - stick it into some private field.as far as afterPropertiesSet() callback, you already have it - it is the constructor of the component with @SpringBean annots :)
-IgorOn 3/20/06, Tom van Zummeren <[EMAIL PROTECTED]> wrote:



















Ok thanks,

 

By the way, is this the best way to inject
dependencies? It works like a charm but it isn't Spring-like to inject a
dependency with only a private field. Spring normally uses a setter to do so,
and if the bean implements InitializingBean it calls the afterPropertiesSet()
method afterwards (to do some validation of the just set dependencies)

Is there an option to do it like this?

 

Tom

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of 
Igor Vaynberg
Sent: Monday, March 20, 2006 5:17
PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] New
features Wicket 1.2



 

there is more info here:

http://www.wicket-wiki.org.uk/wiki/index.php/Spring

-Igor





On 3/20/06, Johan
Compagner <[EMAIL PROTECTED]>
wrote:



One warning don't do this:







@SecuredWicketPage public class EditAccountPage extends Template{
    private String repeatedPassword;

    @SpringBean    





    private AccountService accountService = null; 







    public EditAccountPage() {
        Form form = new
Form("form", new CompoundPropertyModel(this)) {





(the = null)

Because then youre accountService will be null again when the page is fully
constructed. 






johan












On 3/20/06, karthik
Guru <[EMAIL PROTECTED]>
wrote:



> Spring support for
injecting your business logic into your web pages in a non-intrusive manner,
while still being able to use the 
> convenient Wicket idiom for creating pages (using the Java new
operator).





Yes - this one is my favourite! . ..actually even
IAuthorizationStrategy and Ajax
support rocks.!..now am not sure which is the best 1.2 feature. May be we s'd
have a vote :)

You can inject spring-ified objects into your page / components just by
specifying an annotation @SpringBean. Then wicket-spring module takes care of
resolving all those dependencies when the component is instantiated.
It does it by using the cool 1.2 feature that allows you to register as many
IComponentInstantiationListener as you want. 
These listeners get called when the component is instantiated.

wicket-spring registers a IComponentInstantiationListener that runs through
your page/components looking for fields that require injecttion (the ones that
have @SpringBean specified) and resolves them through Spring's
ApplicationContext. 

So you just do this - 

@SecuredWicketPage public class EditAccountPage extends Template{
    private String repeatedPassword;

    @SpringBean    
    private AccountService accountService;

    public EditAccountPage() {
        Form form = new Form("form",
new CompoundPropertyModel(this)) {



and by the time you actually get to use accountService, wicket w'd have already
resolved it for you with the help of Spring...and as you can see its all
non-intrusive (yeah as long as you are ok with specifying @SpringBean :)) ) 

wicket team rocks!! - and in this case igor & eelco.. ..great job!












On 3/20/06, Tom van
Zummeren <[EMAIL PROTECTED]>
wrote:





I was wondering if there are any examples yet of new features
in Wicket 1.2

 

Because on the wicket site I saw a list of new features in
Wicket 1.2, but it didn't say how the new features are implemented.

In this case I'd like to know the following:

 

Spring
support for injecting your business logic into your web pages in a
non-intrusive manner, while still being able to use the convenient Wicket idiom
for creating pages (using the Java new
operator).

 

What is this non-intrusive manner?

 

 

Tom



 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006













-- 





-- karthik -- 















 


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006








--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006
 




Re: [Wicket-user] wicket:preview feature

2006-03-20 Thread Igor Vaynberg
it would be awesome to have an inspector that validates all the paths in the wicket:preview attr :)-IgorOn 3/19/06, Joni Suominen <
[EMAIL PROTECTED]> wrote:On Sun, 2006-03-19 at 17:05 -0700, Ryan Sonnek wrote:
> does wicket-bench only work with JDK 1.5?  I tried it with my work> installation (eclipse 3.2 and java 1.4) and got the following> exception:> "Incompatible major/minor class version"
>> It'd be great to support jdk 1.4 as long as wicket is 1.4 compatible.Yes, it is only tested with Java 5 + eclipse 3.1. Eclipse 3.2 support isscheduled for 0.3.0. We might consider java 1.4 support too if it is
straightforward to do.Joni---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] EJB3/Hibernate Lazy fetching...

2006-03-20 Thread Vincent Jenks
OK, so I'm in a bit of a quagmire.I'm using Wicket + EJB3 (JBoss 4.0.4RC1) which uses Hibernate as the persistence behind EJB3.Unless I set all of my parent/child object relationship annotations to EAGER fetching...I get this error:
"org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role:"...when I try to access the child collection of the parent object.  In my case, for example, I am passing an object to a form in Wicket using the constructor:
public class ProductDetail extends WebPage{    public ProductDetail()    {        this(null);    }    public ProductDetail(Product product)    {    add(new ProductDetailForm("productDetailForm", product));
...The parent object being "Product" and the child being Product.getConfigurations()which is a List.This same ProductDetail page has a form (see above where I passed the Product into the form)...and I need to access the child collection inside the form:
            add(new ListView("configs", product.getConfigurations())            {                protected void populateItem(ListItem item)                {                    final Configuration config = (Configuration)item.getModelObject();
                                        item.add(new Label("quantity", String.valueOf(config.getQuantity(;                    item.add(new Label("name", config.getName()));                    
item.add(new Label("weight", config.getWeight()));                    item.add(new Label("price", String.valueOf(config.getPrice(;                }            });badda-bing...here's when the exception occurs.  Now...I *could* fix it by setting the collection to EAGER fetching...but this could eventually cause me some severe performance problemsespecially once the collections begin to grow in size...I just have to be able to do LAZY fetching.
Since I'm using EJB3 CMP I don't have control over the hibernate session - the container does...so my flexibility there is limited.  Is there something I could do to work around this?Thanks!


Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-03-20 Thread Igor Vaynberg
instead of using the product object directly, use a detachable model.you might also need to use an open session in view interceptor in case jboss closes the hibernate session after your bean's method is finished executing. if it does this, then by the time wicket code runs the object is already disconnected from its session and thus cant load any child collections.
-IgorOn 3/20/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:
OK, so I'm in a bit of a quagmire.I'm using Wicket + EJB3 (JBoss 4.0.4RC1) which uses Hibernate as the persistence behind EJB3.Unless I set all of my parent/child object relationship annotations to EAGER fetching...I get this error:
"org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role:"...when I try to access the child collection of the parent object.  In my case, for example, I am passing an object to a form in Wicket using the constructor:
public class ProductDetail extends WebPage{    public ProductDetail()    {        this(null);    }    public ProductDetail(Product product)    {    add(new ProductDetailForm("productDetailForm", product));
...The parent object being "Product" and the child being Product.getConfigurations()which is a List.This same ProductDetail page has a form (see above where I passed the Product into the form)...and I need to access the child collection inside the form:
            add(new ListView("configs", product.getConfigurations())            {                protected void populateItem(ListItem item)                {                    final Configuration config = (Configuration)item.getModelObject();
                                        item.add(new Label("quantity", String.valueOf(config.getQuantity(;                    item.add(new Label("name", config.getName()));                    
item.add(new Label("weight", config.getWeight()));                    item.add(new Label("price", String.valueOf(config.getPrice(;                }            });badda-bing...here's when the exception occurs.  Now...I *could* fix it by setting the collection to EAGER fetching...but this could eventually cause me some severe performance problemsespecially once the collections begin to grow in size...I just have to be able to do LAZY fetching.
Since I'm using EJB3 CMP I don't have control over the hibernate session - the container does...so my flexibility there is limited.  Is there something I could do to work around this?Thanks!




Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-03-20 Thread Vincent Jenks
Well, in the previous page which passes the Product into this page...the object was wrapped in a detachable model...not just called directly...so I should try and wrap it again in the current page?
On 3/20/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
instead of using the product object directly, use a detachable model.you might also need to use an open session in view interceptor in case jboss closes the hibernate session after your bean's method is finished executing. if it does this, then by the time wicket code runs the object is already disconnected from its session and thus cant load any child collections.
-IgorOn 3/20/06, 
Vincent Jenks <[EMAIL PROTECTED]> wrote:

OK, so I'm in a bit of a quagmire.I'm using Wicket + EJB3 (JBoss 4.0.4RC1) which uses Hibernate as the persistence behind EJB3.Unless I set all of my parent/child object relationship annotations to EAGER fetching...I get this error:
"org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role:"...when I try to access the child collection of the parent object.  In my case, for example, I am passing an object to a form in Wicket using the constructor:
public class ProductDetail extends WebPage{    public ProductDetail()    {        this(null);    }    public ProductDetail(Product product)    {    add(new ProductDetailForm("productDetailForm", product));
...The parent object being "Product" and the child being Product.getConfigurations()which is a List.This same ProductDetail page has a form (see above where I passed the Product into the form)...and I need to access the child collection inside the form:
            add(new ListView("configs", product.getConfigurations())            {                protected void populateItem(ListItem item)                {                    final Configuration config = (Configuration)item.getModelObject();
                                        item.add(new Label("quantity", String.valueOf(config.getQuantity(;                    item.add(new Label("name", config.getName()));                    
item.add(new Label("weight", config.getWeight()));                    item.add(new Label("price", String.valueOf(config.getPrice(;                }            });badda-bing...here's when the exception occurs.  Now...I *could* fix it by setting the collection to EAGER fetching...but this could eventually cause me some severe performance problemsespecially once the collections begin to grow in size...I just have to be able to do LAZY fetching.
Since I'm using EJB3 CMP I don't have control over the hibernate session - the container does...so my flexibility there is limited.  Is there something I could do to work around this?Thanks!






Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-03-20 Thread Igor Vaynberg
or pass the same model :) -IgorOn 3/20/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:
Well, in the previous page which passes the Product into this page...the object was wrapped in a detachable model...not just called directly...so I should try and wrap it again in the current page?

On 3/20/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

instead of using the product object directly, use a detachable model.you might also need to use an open session in view interceptor in case jboss closes the hibernate session after your bean's method is finished executing. if it does this, then by the time wicket code runs the object is already disconnected from its session and thus cant load any child collections.
-IgorOn 3/20/06, 
Vincent Jenks <[EMAIL PROTECTED]> wrote:


OK, so I'm in a bit of a quagmire.I'm using Wicket + EJB3 (JBoss 4.0.4RC1) which uses Hibernate as the persistence behind EJB3.Unless I set all of my parent/child object relationship annotations to EAGER fetching...I get this error:
"org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role:"...when I try to access the child collection of the parent object.  In my case, for example, I am passing an object to a form in Wicket using the constructor:
public class ProductDetail extends WebPage{    public ProductDetail()    {        this(null);    }    public ProductDetail(Product product)    {    add(new ProductDetailForm("productDetailForm", product));
...The parent object being "Product" and the child being Product.getConfigurations()which is a List.This same ProductDetail page has a form (see above where I passed the Product into the form)...and I need to access the child collection inside the form:
            add(new ListView("configs", product.getConfigurations())            {                protected void populateItem(ListItem item)                {                    final Configuration config = (Configuration)item.getModelObject();
                                        item.add(new Label("quantity", String.valueOf(config.getQuantity(;                    item.add(new Label("name", config.getName()));                    
item.add(new Label("weight", config.getWeight()));                    item.add(new Label("price", String.valueOf(config.getPrice(;                }            });badda-bing...here's when the exception occurs.  Now...I *could* fix it by setting the collection to EAGER fetching...but this could eventually cause me some severe performance problemsespecially once the collections begin to grow in size...I just have to be able to do LAZY fetching.
Since I'm using EJB3 CMP I don't have control over the hibernate session - the container does...so my flexibility there is limited.  Is there something I could do to work around this?Thanks!








Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-03-20 Thread Igor Vaynberg
this usecase will be much better when we release 2.0EditProductPage(IModel) is not nearly as nice as EditProductPage(IModel)-IgorOn 3/20/06, 
Igor Vaynberg <[EMAIL PROTECTED]> wrote:
or pass the same model :) -IgorOn 3/20/06, 
Vincent Jenks <[EMAIL PROTECTED]> wrote:
Well, in the previous page which passes the Product into this page...the object was wrapped in a detachable model...not just called directly...so I should try and wrap it again in the current page?

On 3/20/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


instead of using the product object directly, use a detachable model.you might also need to use an open session in view interceptor in case jboss closes the hibernate session after your bean's method is finished executing. if it does this, then by the time wicket code runs the object is already disconnected from its session and thus cant load any child collections.
-IgorOn 3/20/06, 
Vincent Jenks <[EMAIL PROTECTED]> wrote:



OK, so I'm in a bit of a quagmire.I'm using Wicket + EJB3 (JBoss 4.0.4RC1) which uses Hibernate as the persistence behind EJB3.Unless I set all of my parent/child object relationship annotations to EAGER fetching...I get this error:
"org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role:"...when I try to access the child collection of the parent object.  In my case, for example, I am passing an object to a form in Wicket using the constructor:
public class ProductDetail extends WebPage{    public ProductDetail()    {        this(null);    }    public ProductDetail(Product product)    {    add(new ProductDetailForm("productDetailForm", product));
...The parent object being "Product" and the child being Product.getConfigurations()which is a List.This same ProductDetail page has a form (see above where I passed the Product into the form)...and I need to access the child collection inside the form:
            add(new ListView("configs", product.getConfigurations())            {                protected void populateItem(ListItem item)                {                    final Configuration config = (Configuration)item.getModelObject();
                                        item.add(new Label("quantity", String.valueOf(config.getQuantity(;                    item.add(new Label("name", config.getName()));                    
item.add(new Label("weight", config.getWeight()));                    item.add(new Label("price", String.valueOf(config.getPrice(;                }            });badda-bing...here's when the exception occurs.  Now...I *could* fix it by setting the collection to EAGER fetching...but this could eventually cause me some severe performance problemsespecially once the collections begin to grow in size...I just have to be able to do LAZY fetching.
Since I'm using EJB3 CMP I don't have control over the hibernate session - the container does...so my flexibility there is limited.  Is there something I could do to work around this?Thanks!










Re: [Wicket-user] Images, Flashs, Javascripts, CSSs and other resources

2006-03-20 Thread Bruno Borges
We could do that, only if all the web pages stay in the same package, but imagine that in a modularized project or even with sub-modules!So, how about some code like this:
class IndexPage extends WebPage {    public String getResourcePage() {
    return "Index.html";    }
}And to complete: class PetShopApp extends WebApplication {
    public String getPagesRootPath() {    return "/WEB-INF/html/";    }}
Regards,Bruno Borges
Date: Mon, 20 Mar 2006 08:56:30 +0100From: "Dirk Markert" <[EMAIL PROTECTED]>To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Images, Flashs, _javascript_s, CSSs and other resourcesReply-To: wicket-user@lists.sourceforge.net--=_Part_9855_22859891.1142841390656
Content-Type: text/plain; charset=ISO-8859-1Content-Transfer-Encoding: quoted-printableContent-Disposition: inlineWhy don't you include 
file:///C:/Docs%20and%20Settings/you/your-project/src/webap=p/"/>in your html head.Dirk2006/3/18, Thomas Singer <[EMAIL PROTECTED]
>:>> Hi Bruno,>> I'm with you. Please take a look at issue 1448195 in the wicket tracker> (> 
http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1448195&grou=p_id=3D119783&atid=3D684978> ).>> --> Best regards,> Thomas Singer>>> Bruno Borges schrieb:
> > In the case of static resources, the problem is that, as you show, if m=y> > web designer opens the Index.html he'll not see the images in his> > WYSIWYG editor.> >> > Thanks.
> >> > From: "Martijn Dashorst" <[EMAIL PROTECTED]> > [EMAIL PROTECTED]
>>> > To: wicket-user@lists.sourceforge.net> > wicket-user@lists.sourceforge.net
>> > Subject: Re: [Wicket-user] Images, Flashs, _javascript_s, CSSs and> > other resources> > Reply-To: wicket-user@lists.sourceforge.net
> > wicket-user@lists.sourceforge.net>> >> > There are several possibilities here.> >> > Dynamic approach
> > Needed in the following cases:> >  - resource needs to be generated> >  - resource comes from external, non-web system (database, etc)> >  - resource must be filtered (component id's subsitution, etc)
> >  - resource must be packaged with your component> >> > Static approach> > Needed in the following cases:> >  - absolute performance requirements -> static resources served by
> > webserver, not servlet> >  - static files, no special requirement for dynamic content> >  - ?> >> > In the dynamic approach the resources need either to be registered
> > at load> > time (this will change I think), or generated on the fly as needed.> > Resourc=3D> > e> > source files should be available on the classpath, but need not be
> > (provide> > your own resolver).> >> > In the static approach, you put the files in the webroot and thus> > have them> > available to link from your pages.
> >> > com.foo.Index.html> > > > > > 
> > > > type=3D3D"text/_javascript_">> > > > > > 
> > > >> > and directories:> >> > src/webapp/style/style.css> > src/webapp/prototype/prototype.js> > src/webapp/WEB-INF/web.xml
> > src/main/java/com/foo/Index.html> > src/main/java/com/foo/Index.java> >> > Not complete, but a start.> >> > Martijn> >> > On 3/17/06, Bruno Borges <
[EMAIL PROTECTED]> > [EMAIL PROTECTED]>> wrote:> >  >> >  > I've seen some threads in the mailing-list archive, and for I
> > understand,> >  > there's no common way to deal with resources like those in the> > subject.> >  >> >  > Could you guys please list what's the best approaches to deal
> > with images=3D> > ,> >  > so programmers and designers can work together without any> > problem? I wan=3D> > na> >  > see developers coding the html files, and designers specifying
> > images in> >  > these pages, so the images can be displayed in the same way at> > developmen=3D> > t> >  > time (WYSIWYG HTML Editors) and at runtime.
> >  >> >  > The same question for _javascript_ files (.js) and stylesheet file=s> > (.css).> >  >> >  > And after that, we could put all information together and submit
> > to the> >  > Wiki.> >  >> >  > Thank you!> >  >> >  > --> >  > Bruno Borges - SCJP 1.4> >  > 
[EMAIL PROTECTED] [EMAIL PROTECTED]>-- Bruno Borges - SCJP 1.4
[EMAIL PROTECTED]


RE: [Wicket-user] New features Wicket 1.2

2006-03-20 Thread Tom van Zummeren








Ok it does the same, but it
doesn’t feel like normal java usage. And besides, you’re basically
saying that we don’t need setters at all, because you can use reflection
to set private fields on objects.

 

Tom









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: maandag 20 maart 2006 17:54
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] New
features Wicket 1.2



 

we can write a traversal
for setters, but i really dont see value in it, what is your setter going to do
- stick it into some private field.

as far as afterPropertiesSet() callback, you already have it - it is the
constructor of the component with @SpringBean annots :) 

-Igor





On 3/20/06, Tom van
Zummeren <[EMAIL PROTECTED]>
wrote:





Ok thanks,

 

By the way, is this the best way to inject dependencies? It
works like a charm but it isn't Spring-like to inject a dependency with only a
private field. Spring normally uses a setter to do so, and if the bean
implements InitializingBean it calls the afterPropertiesSet() method afterwards
(to do some validation of the just set dependencies)

Is there an option to do it like this?

 

Tom

 









From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Igor Vaynberg






Sent: Monday, March
20, 2006 5:17 PM
To: wicket-user@lists.sourceforge.net
Subject: Re:
[Wicket-user] New features Wicket 1.2



 





there is more info here:

http://www.wicket-wiki.org.uk/wiki/index.php/Spring

-Igor



On
3/20/06, Johan Compagner <[EMAIL PROTECTED]>
wrote:



One
warning don't do this:







@SecuredWicketPage public class EditAccountPage extends Template{
    private String repeatedPassword;

    @SpringBean    





   
private AccountService accountService = null; 







    public EditAccountPage() {
        Form form = new Form("form",
new CompoundPropertyModel(this)) {





(the =
null)

Because then youre accountService will be null again when the page is fully
constructed. 






johan











On
3/20/06, karthik Guru <[EMAIL PROTECTED]>
wrote:



> Spring support for injecting your business logic
into your web pages in a non-intrusive manner, while still being able to use
the 
> convenient Wicket idiom for creating pages (using the Java new
operator).





Yes -
this one is my favourite! . ..actually even IAuthorizationStrategy and Ajax
support rocks.!..now am not sure which is the best 1.2 feature. May be we s'd
have a vote :)

You can inject spring-ified objects into your page / components just by
specifying an annotation @SpringBean. Then wicket-spring module takes care of
resolving all those dependencies when the component is instantiated.
It does it by using the cool 1.2 feature that allows you to register as many
IComponentInstantiationListener as you want. 
These listeners get called when the component is instantiated.

wicket-spring registers a IComponentInstantiationListener that runs through
your page/components looking for fields that require injecttion (the ones that
have @SpringBean specified) and resolves them through Spring's
ApplicationContext. 

So you just do this - 

@SecuredWicketPage public class EditAccountPage extends Template{
    private String repeatedPassword;

    @SpringBean    
    private AccountService accountService;

    public EditAccountPage() {
        Form form = new Form("form",
new CompoundPropertyModel(this)) {



and by the time you actually get to use accountService, wicket w'd have already
resolved it for you with the help of Spring...and as you can see its all
non-intrusive (yeah as long as you are ok with specifying @SpringBean :)) ) 

wicket team rocks!! - and in this case igor & eelco.. ..great job!











On
3/20/06, Tom van Zummeren <[EMAIL PROTECTED]> wrote:





I was wondering if there are any examples yet of new features
in Wicket 1.2

 

Because on the wicket site I saw a list of new features in
Wicket 1.2, but it didn't say how the new features are implemented.

In this case I'd like to know the following:

 

Spring support
for injecting your business logic into your web pages in a non-intrusive
manner, while still being able to use the convenient Wicket idiom for creating
pages (using the Java new operator).

 

What is this non-intrusive manner?

 

 

Tom



 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006













-- 





--
karthik -- 





 





 







--
No virus found in this incoming message.






Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date:
3/17/2006







 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006





 








Re: [Wicket-user] New features Wicket 1.2

2006-03-20 Thread Igor Vaynberg
On 3/20/06, Tom van Zummeren <[EMAIL PROTECTED]> wrote:















Ok it does the same, but it
doesn't feel like normal java usage.this project is not meant to map 1:1 to the way spring works. it is meant to make it easy to get the beans from spring context "injected" into your components.  so what you are saying is that we should check if the page implements InitializingBean and call afterPropertiesSet() on it. but the page is not a bean, so why would it implement InitializingBean interface? what would you put into that method that you cannot do in your constructor?

And besides, you're basically
saying that we don't need setters at all, because you can use reflection
to set private fields on objects.no, what i am saying is that in this situation i see no value in adding setter support. we are already doing something dangerous - setting class fields before the class' constructor is executed. this is why you cannot do @SpringBean Dao dao=null; because first the injection code will set the dao to the bean, and then the cosntructor will override it back to null. setters open an even bigger hole here in that you can now have code executing on an uninitialized object. so in order to be safe all your setter has to do is set the dependency and not touch anything else, but then what is the point?
another argument against this is that wicket components initialize in their constructors (good citizen pattern), so in constructor you have to have all dependencies available - so you can only use the injection mechanism since a manual call to a setter is already too late.
wicket components are unmanaged so its more difficult to apply aop type constructs to them. if you really want to have setter support you can create it youself, it wont be very hard.-Igor 










From:

[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of 
Igor Vaynberg
Sent: maandag 20 maart 2006 17:54
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] New
features Wicket 1.2



 

we can write a traversal
for setters, but i really dont see value in it, what is your setter going to do
- stick it into some private field.

as far as afterPropertiesSet() callback, you already have it - it is the
constructor of the component with @SpringBean annots :) 

-Igor





On 3/20/06, Tom van
Zummeren <[EMAIL PROTECTED]>
wrote:





Ok thanks,

 

By the way, is this the best way to inject dependencies? It
works like a charm but it isn't Spring-like to inject a dependency with only a
private field. Spring normally uses a setter to do so, and if the bean
implements InitializingBean it calls the afterPropertiesSet() method afterwards
(to do some validation of the just set dependencies)

Is there an option to do it like this?

 

Tom

 









From: 
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Igor Vaynberg






Sent: Monday, March
20, 2006 5:17 PM
To: wicket-user@lists.sourceforge.net

Subject: Re:
[Wicket-user] New features Wicket 1.2



 





there is more info here:

http://www.wicket-wiki.org.uk/wiki/index.php/Spring

-Igor



On
3/20/06, Johan Compagner <[EMAIL PROTECTED]>
wrote:



One
warning don't do this:







@SecuredWicketPage public class EditAccountPage extends Template{
    private String repeatedPassword;

    @SpringBean    





   
private AccountService accountService = null; 







    public EditAccountPage() {
        Form form = new Form("form",
new CompoundPropertyModel(this)) {





(the =
null)

Because then youre accountService will be null again when the page is fully
constructed. 






johan











On
3/20/06, karthik Guru <[EMAIL PROTECTED]>
wrote:



> Spring support for injecting your business logic
into your web pages in a non-intrusive manner, while still being able to use
the 
> convenient Wicket idiom for creating pages (using the Java new
operator).





Yes -
this one is my favourite! . ..actually even IAuthorizationStrategy and Ajax
support rocks.!..now am not sure which is the best 1.2 feature. May be we s'd
have a vote :)

You can inject spring-ified objects into your page / components just by
specifying an annotation @SpringBean. Then wicket-spring module takes care of
resolving all those dependencies when the component is instantiated.
It does it by using the cool 1.2 feature that allows you to register as many
IComponentInstantiationListener as you want. 
These listeners get called when the component is instantiated.

wicket-spring registers a IComponentInstantiationListener that runs through
your page/components looking for fields that require injecttion (the ones that
have @SpringBean specified) and resolves them through Spring's
ApplicationContext. 

So you just do this - 

@SecuredWicketPage public class EditAccountPage extends Template{
    private String repeatedPassword;

    @SpringBean    
    private AccountService accountService;

    public EditAccountPage() {
        Form form = new Form("form",
new CompoundPropertyModel(this)) {



and by the time you actual

RE: [Wicket-user] New features Wicket 1.2

2006-03-20 Thread Tom van Zummeren








Ok, thank you for your detailed
opinion about the subject. 

 

I can realy use it,
because I am going to give a presentation about Wicket soon, and I need to
present a solution of integrating with Spring, and I was sure people would
start complaining if I showed them the private field thing. Now I can explain why
this solution is chosen.

 

Tom









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: maandag 20 maart 2006 21:32
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] New
features Wicket 1.2



 

On 3/20/06, Tom van Zummeren
<[EMAIL PROTECTED]> wrote:









Ok it does the same, but it doesn't feel like
normal java usage.









this project is not meant
to map 1:1 to the way spring works. it is meant to make it easy to get the
beans from spring context "injected" into your components.  so
what you are saying is that we should check if the page implements InitializingBean
and call afterPropertiesSet() on it. but the page is not a bean, so why would
it implement InitializingBean interface? what would you put into that method
that you cannot do in your constructor? 









And besides, you're basically saying that we
don't need setters at all, because you can use reflection to set private fields
on objects.









no, what i am saying is that in this situation i see no value in adding
setter support. we are already doing something dangerous - setting class fields
before the class' constructor is executed. this is why you cannot do
@SpringBean Dao dao=null; because first the injection code will set the dao to
the bean, and then the cosntructor will override it back to null. setters open
an even bigger hole here in that you can now have code executing on an
uninitialized object. so in order to be safe all your setter has to do is set
the dependency and not touch anything else, but then what is the point? 

another argument against this is that wicket components initialize in their
constructors (good citizen pattern), so in constructor you have to have all
dependencies available - so you can only use the injection mechanism since a
manual call to a setter is already too late. 

wicket components are unmanaged so its more difficult to apply aop type constructs
to them. if you really want to have setter support you can create it youself,
it wont be very hard.

-Igor

 





 













From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Igor Vaynberg
Sent: maandag 20 maart 2006 17:54






To: wicket-user@lists.sourceforge.net
Subject: Re:
[Wicket-user] New features Wicket 1.2







 

we can write a traversal for setters, but i really
dont see value in it, what is your setter going to do - stick it into some
private field.

as far as afterPropertiesSet() callback, you already have it - it is the
constructor of the component with @SpringBean annots :) 

-Igor



On
3/20/06, Tom van Zummeren <[EMAIL PROTECTED]> wrote:





Ok thanks,

 

By the way, is this the best way to inject dependencies? It
works like a charm but it isn't Spring-like to inject a dependency with only a
private field. Spring normally uses a setter to do so, and if the bean
implements InitializingBean it calls the afterPropertiesSet() method afterwards
(to do some validation of the just set dependencies)

Is there an option to do it like this?

 

Tom

 









From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Igor Vaynberg






Sent: Monday, March 20, 2006 5:17
PM
To: wicket-user@lists.sourceforge.net

Subject: Re: [Wicket-user] New
features Wicket 1.2



 





there is more info here:

http://www.wicket-wiki.org.uk/wiki/index.php/Spring

-Igor



On
3/20/06, Johan Compagner <[EMAIL PROTECTED]>
wrote:



One
warning don't do this:







@SecuredWicketPage public class EditAccountPage extends Template{
    private String repeatedPassword;

    @SpringBean    





   
private AccountService accountService = null; 







    public EditAccountPage() {
        Form form = new Form("form",
new CompoundPropertyModel(this)) {





(the =
null)

Because then youre accountService will be null again when the page is fully
constructed. 






johan





 



On
3/20/06, karthik Guru <[EMAIL PROTECTED]>
wrote:



> Spring support for injecting your business logic
into your web pages in a non-intrusive manner, while still being able to use
the 
> convenient Wicket idiom for creating pages (using the Java new
operator).





Yes -
this one is my favourite! . ..actually even IAuthorizationStrategy and Ajax support
rocks.!..now am not sure which is the best 1.2 feature. May be we s'd have a
vote :)

You can inject spring-ified objects into your page / components just by
specifying an annotation @SpringBean. Then wicket-spring module takes care of
resolving all those dependencies when the component is instantiated.
It does it by using the cool 1.2 feature that allows you to register as many
IComponentInstantiationListener as you want. 
These liste

Re: [Wicket-user] onSubmit vs onClick for form submission

2006-03-20 Thread Vincent Jenks
OK, believe it or not, I did just that and *still* cannot get it to work.Here's my Form class:    private static class EditProductForm extends Form    {        public EditProductForm(String name, Product product)
        {            super(name, new CompoundPropertyModel(product));                        //get collection of Category items            IModel catsModel = new LoadableDetachableModel()            {
                protected Object load()                {                    return ProductProxy.getAllCategories(); //via proxy                }            };                        //add form components
            add(new TextField("productCode").add(RequiredValidator.getInstance()));            add(new TextField("name").add(RequiredValidator.getInstance()));            add(new TextArea("summary").add(
RequiredValidator.getInstance()));            add(new TextArea("description").add(RequiredValidator.getInstance()));            add(new TextField("unitPrice"));            add(new TextField("weight"));
            add(new TextField("height"));            add(new TextField("width"));            add(new TextField("length"));            add(new TextField("insuredValue"));
            add(new CheckBox("freeShipping"));            add(new TextField("thumbnail").add(RequiredValidator.getInstance()));            add(new TextField("photo").add(RequiredValidator.getInstance
()));                        //add reset button            add(new Button("cancelButton")            {                public void onSubmit()                {                                        setResponsePage(new EditProduct());
                }            }.setDefaultFormProcessing(false));                        //add reset button            add(new Button("saveButton")            {                public void onSubmit()
                {                    //save form values, redirect                    Product product = (Product)getModelObject();                    ProductProxy.addProduct(product);                    setResponsePage(new EditProduct());
                }            });        }    }The cancel button works now but the save button is now throwing an exception:wicket.WicketRuntimeException: Method public abstract void wicket.markup.html.form.IFormSubmitListener.onFormSubmitted
() of interface java.lang.reflect.Method threw an exception ..Caused by: java.lang.reflect.InvocationTargetException ..Caused by: wicket.WicketRuntimeException: OGNL Exception: _expression_='saveButton'; path='4:editProductForm:saveButton'
...Caused by: ognl.NoSuchPropertyException: com.myapp.model.Product.saveButton...Here's the form HTML just in case I'm goofing something there:
...                                                                                                                        
                                                                                                                                 
                                                                                                                                                            
What's wrong w/ this?Thanks!On 3/19/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
the easiest way to do this is add two buttons with two onsubmit handlers instead of using the form's onsubmit.
so add(new Button("save") { onsubmit() { // do the saving here } })add(new Button("cancel") { onsubmit() { //navigate away here } }.setDefaultFormProcessing(false));
notice the call to setDefaultFormProcessing(false) on the cancel button. this will tell wicket that when this button is pressed it should not validate/update model instead go directly to the button's onsubmit handler.
-IgorOn 3/19/06, 
Riyad Kalla <[EMAIL PROTECTED]> wrote:

Don't you need to commit the response?(just a lame guess from the servlet world)On 3/19/06, Vincent Jenks <
[EMAIL PROTECTED]> wrote:> Alright, did that, now the button doesn't do anything at *all*.
>> Here's the HTML button:>> >> ...and the event handler:>>> add(new Button("cancelButton")
> {> public void onClick()> {> setResponsePage(new Home());> }> });>> Any ideas?
>>> On 3/19/06, Justin Lee <[EMAIL PROTECTED]> wrote:> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: RIPEMD160> >> > Make sure the cancel button is type="button" and not type="submit".
> > then just define an onClick for your cancel button to navigate where you> > want.> >> > Vincent Jenks wrote:> > > So, I'm trying to figure out if I should do with my form buttons.  I
> > > have two buttons ('save' and 'cancel') but only the onSubmit event> > > handler is fired.  I have a button inside of the form's constructor that> > > has an onClick event but that never happens...apparently because the
> > > onSubmit 'trumps' the onClick event.> > >> > > Here's my class as it stands:> > >> > > private static class EditProductForm extends Form> > > {
> > > public 

Re: [Wicket-user] onSubmit vs onClick for form submission

2006-03-20 Thread Vincent Jenks
I "fixed" this by using Form.onSubmit() for the save button and keeping the cancel button the same...now both work just fine...but not exactly as Igor described.Good enough!
On 3/20/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:
OK, believe it or not, I did just that and *still* cannot get it to work.Here's my Form class:    private static class EditProductForm extends Form
    {        public EditProductForm(String name, Product product)
        {            super(name, new CompoundPropertyModel(product));                        //get collection of Category items            IModel catsModel = new LoadableDetachableModel()            {
                protected Object load()                {                    return ProductProxy.getAllCategories(); //via proxy                }            };                        //add form components
            add(new TextField("productCode").add(RequiredValidator.getInstance()));            add(new TextField("name").add(RequiredValidator.getInstance()));            add(new TextArea("summary").add(
RequiredValidator.getInstance()));            add(new TextArea("description").add(RequiredValidator.getInstance()));            add(new TextField("unitPrice"));
            add(new TextField("weight"));
            add(new TextField("height"));            add(new TextField("width"));            add(new TextField("length"));            add(new TextField("insuredValue"));
            add(new CheckBox("freeShipping"));            add(new TextField("thumbnail").add(RequiredValidator.getInstance()));            add(new TextField("photo").add(RequiredValidator.getInstance

()));                        //add reset button            add(new Button("cancelButton")            {                public void onSubmit()                {                                        setResponsePage(new EditProduct());
                }            }.setDefaultFormProcessing(false));                        //add reset button            add(new Button("saveButton")
            {                public void onSubmit()
                {                    //save form values, redirect                    Product product = (Product)getModelObject();                    ProductProxy.addProduct(product);                    setResponsePage(new EditProduct());
                }            });        }    }The cancel button works now but the save button is now throwing an exception:wicket.WicketRuntimeException
: Method public abstract void wicket.markup.html.form.IFormSubmitListener.onFormSubmitted
() of interface java.lang.reflect.Method threw an exception ..Caused by: java.lang.reflect.InvocationTargetException ..Caused by: wicket.WicketRuntimeException: OGNL Exception: _expression_='saveButton'; path='4:editProductForm:saveButton'
...Caused by: ognl.NoSuchPropertyException: com.myapp.model.Product.saveButton...Here's the form HTML just in case I'm goofing something there:
...                                                                                                                        
                                                                                                                                 
                                                                                                                                                            

What's wrong w/ this?Thanks!On 3/19/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:
the easiest way to do this is add two buttons with two onsubmit handlers instead of using the form's onsubmit.
so add(new Button("save") { onsubmit() { // do the saving here } })add(new Button("cancel") { onsubmit() { //navigate away here } }.setDefaultFormProcessing(false));
notice the call to setDefaultFormProcessing(false) on the cancel button. this will tell wicket that when this button is pressed it should not validate/update model instead go directly to the button's onsubmit handler.
-IgorOn 3/19/06, 
Riyad Kalla <[EMAIL PROTECTED]> wrote:


Don't you need to commit the response?(just a lame guess from the servlet world)On 3/19/06, Vincent Jenks <

[EMAIL PROTECTED]> wrote:> Alright, did that, now the button doesn't do anything at *all*.
>> Here's the HTML button:>> >> ...and the event handler:>>> add(new Button("cancelButton")
> {> public void onClick()> {> setResponsePage(new Home());> }> });>> Any ideas?
>>> On 3/19/06, Justin Lee <[EMAIL PROTECTED]> wrote:> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: RIPEMD160> >> > Make sure the cancel button is type="button" and not type="submit".
> > then just define an onClick for your cancel button to navigate where you> > want.> >> > Vincent Jenks wrote:> > > So, I'm trying to figure out if I should do with my form buttons.  I
> > > have two buttons ('save' and 'cancel') but only the onSubmit event> > > handler is fired.  I have a button inside of the form's constructor that> > > has an onCli

Re: [Wicket-user] onSubmit vs onClick for form submission

2006-03-20 Thread Martijn Dashorst
In the following code:            add(new Button("saveButton")            {                public void onSubmit()
                {                    //save form values, redirect@@                    Product product = (Product)getModelObject();                    ProductProxy.addProduct(product);                    setResponsePage(new EditProduct());
                }            });The line marked @@ is wrong. You ask from the submit button the modelobject. Because the button doesn't have a model (model == null), and the form has a compound model, it will use the component id "saveButton" as an OGNL _expression_ with the form modelobject as base.
This happened because you create an anonymous subclass on the Button. The event handler 'onSubmit' has a this pointer to the button.This can be solved by changing the line to the following:Product product = (Product)getParent().getModelObject();
MartijnOn 3/20/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:
OK, believe it or not, I did just that and *still* cannot get it to work.Here's my Form class:    private static class EditProductForm extends Form
    {        public EditProductForm(String name, Product product)
        {            super(name, new CompoundPropertyModel(product));                        //get collection of Category items            IModel catsModel = new LoadableDetachableModel()            {
                protected Object load()                {                    return ProductProxy.getAllCategories(); //via proxy                }            };                        //add form components
            add(new TextField("productCode").add(RequiredValidator.getInstance()));            add(new TextField("name").add(RequiredValidator.getInstance()));            add(new TextArea("summary").add(
RequiredValidator.getInstance()));            add(new TextArea("description").add(RequiredValidator.getInstance()));            add(new TextField("unitPrice"));
            add(new TextField("weight"));
            add(new TextField("height"));            add(new TextField("width"));            add(new TextField("length"));            add(new TextField("insuredValue"));
            add(new CheckBox("freeShipping"));            add(new TextField("thumbnail").add(RequiredValidator.getInstance()));            add(new TextField("photo").add(RequiredValidator.getInstance

()));                        //add reset button            add(new Button("cancelButton")            {                public void onSubmit()                {                                        setResponsePage(new EditProduct());
                }            }.setDefaultFormProcessing(false));                        //add reset button            add(new Button("saveButton")
            {                public void onSubmit()
                {                    //save form values, redirect                    Product product = (Product)getModelObject();                    ProductProxy.addProduct(product);                    setResponsePage(new EditProduct());
                }            });        }    }The cancel button works now but the save button is now throwing an exception:wicket.WicketRuntimeException
: Method public abstract void wicket.markup.html.form.IFormSubmitListener.onFormSubmitted
() of interface java.lang.reflect.Method threw an exception ..Caused by: java.lang.reflect.InvocationTargetException ..Caused by: wicket.WicketRuntimeException: OGNL Exception: _expression_='saveButton'; path='4:editProductForm:saveButton'
...Caused by: ognl.NoSuchPropertyException: com.myapp.model.Product.saveButton...Here's the form HTML just in case I'm goofing something there:
...                                                                                                                        
                                                                                                                                 
                                                                                                                                                            

What's wrong w/ this?Thanks!On 3/19/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:
the easiest way to do this is add two buttons with two onsubmit handlers instead of using the form's onsubmit.
so add(new Button("save") { onsubmit() { // do the saving here } })add(new Button("cancel") { onsubmit() { //navigate away here } }.setDefaultFormProcessing(false));
notice the call to setDefaultFormProcessing(false) on the cancel button. this will tell wicket that when this button is pressed it should not validate/update model instead go directly to the button's onsubmit handler.
-IgorOn 3/19/06, 
Riyad Kalla <[EMAIL PROTECTED]> wrote:


Don't you need to commit the response?(just a lame guess from the servlet world)On 3/19/06, Vincent Jenks <

[EMAIL PROTECTED]> wrote:> Alright, did that, now the button doesn't do anything at *all*.
>> Here's the HTML button:>> >> ...and the event handler:>>> add(new Bu

Re: [Wicket-user] why create new page instances ?

2006-03-20 Thread ali
On Mon, 20 Mar 2006 14:18:48 +0530, Johan Compagner <[EMAIL PROTECTED]>  
wrote:

can i do like :

class BookList extends WebPage {

public BookList() {

add(new ListView("booksList", booksList){

public void populateItem(ListItem item) {

add(new Link("editLink") {
EditBook page = EditBook.getInstance();
	page.setModel(new CompoundPropertyModel(item.getModelObject())); //or  
line also move to page

setResponsePage(page);
}
});
}
}

if i can do this then what effects do it put in on end-user of app?


you can reuse pages just fine for one session ofcourse if you want.

So in youre BookList you hold on to an internal page BookDetails or  
EditBook

page
And when you click on a view/edit link you just reuse that page.

I wouldn't share pages across sessions.

johan


On 3/20/06, ali <[EMAIL PROTECTED]> wrote:


i am new in wicket , it's correct that we tell

1- always use getPageFactory.newPage() instead "new".

2- if a user view/edit 4 book in its session , for him/her created 4
BookDetails and 4 EditBook page object.(why this needed)

do we can define page be singleton in level of handler thread or session
(i remember ThreadLocal)? so that like swing only once EditBook or
BookDetails pages instanced and for next book only needed that call on
them setBook(booK);

refrence to these pages can keep in session and also they can

or maybe i must more read examples and docs

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] why create new page instances ?

2006-03-20 Thread Martijn Dashorst
new Link("editLink") {    protected void onClick() {    Book book = (Book)getParent().getModelObject();    setResponsePage(new EditBook(book));    }}Should work.Martijn
On 3/20/06, ali <[EMAIL PROTECTED]> wrote:
On Mon, 20 Mar 2006 14:18:48 +0530, Johan Compagner <[EMAIL PROTECTED]>wrote:can i do like :class BookList extends WebPage {public BookList() {
add(new ListView("booksList", booksList){public void populateItem(ListItem item) {add(new Link("editLink") {
EditBook page = EditBook.getInstance();page.setModel(new CompoundPropertyModel(item.getModelObject())); //orline also move to page
setResponsePage(page);}});}}if i can do this then what effects do it put in on end-user of app?> you can reuse pages just fine for one session ofcourse if you want.
>> So in youre BookList you hold on to an internal page BookDetails or> EditBook> page> And when you click on a view/edit link you just reuse that page.>> I wouldn't share pages across sessions.
>> johan>>> On 3/20/06, ali <[EMAIL PROTECTED]> wrote: i am new in wicket , it's correct that we tell
 1- always use getPageFactory.newPage() instead "new". 2- if a user view/edit 4 book in its session , for him/her created 4>> BookDetails and 4 EditBook page object.(why this needed)
 do we can define page be singleton in level of handler thread or session>> (i remember ThreadLocal)? so that like swing only once EditBook or>> BookDetails pages instanced and for next book only needed that call on
>> them setBook(booK); refrence to these pages can keep in session and also they can or maybe i must more read examples and docs -->> Using Opera's revolutionary e-mail client: 
http://www.opera.com/mail/>> --->> This SF.Net email is sponsored by xPML, a groundbreaking scripting
>> language>> that extends applications into web and mobile media. Attend the live>> webcast>> and join the prime developer group breaking into this new coding>> territory!
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>> ___
>> Wicket-user mailing list>> Wicket-user@lists.sourceforge.net>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>--Using Opera's revolutionary e-mail client: http://www.opera.com/mail/---This 
SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Cast your final vote for Wicket in the SourceForge.net 2006 Community Choice Awards!http://www.wilsonresearch.com/2006/ostgawards06/ostgawards4.php



[Wicket-user] ListMultipleChoice should not change the size attribute

2006-03-20 Thread Ramnivas Laddad

Hi,

ListMultipleChoice overrides the size attribute specified in HTML
markup. I think that attribute, if specified in HTML, should be left
untouched.

In my case, the page needs a few lists to have the same sizes to get a
good layout. I could have fixed this problem by subclassing the
ListMultipleChoice and overriding onComponentTag(), but that method is
marked final :-(

-Ramnivas




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListMultipleChoice should not change the size attribute

2006-03-20 Thread Igor Vaynberg
done-IgorOn 3/20/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrote:
Hi,ListMultipleChoice overrides the size attribute specified in HTMLmarkup. I think that attribute, if specified in HTML, should be leftuntouched.In my case, the page needs a few lists to have the same sizes to get a
good layout. I could have fixed this problem by subclassing theListMultipleChoice and overriding onComponentTag(), but that method ismarked final :-(-Ramnivas---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



[Wicket-user] Wicket / Databinder issue

2006-03-20 Thread Thibaut Colar

Hello there, I'm an experienced java developer, however new to wicket.

I found wicket and think it looks great and decided to use it, though i 
wanted Hibernate too, so decided to use databinder.
I installed databinder as explained on there site, and ran the examples 
locally without problems.


For Info: I got databinder three days ago, i use java 5.0 and maven2, 
databinder uses i believe hibernate/ejb3 and wicket 1.1.


Then i created my own Application using maven (as explained on the 
databinder site), it does compile, however as soon as i try to get 
something from the database (hibernate) it fails with this error:


org.hibernate.hql.ast.QuerySyntaxException: Owner is not mapped. [from 
Owner order by name]


"Owner" is my table name.

The code i have is very very basic and short, and I've been over it 25 
hundred time, it is basically similar to the "bookmarks" example, yet it 
keeps failing with this error.


I bet i am missing something obvious here, so please show me what it is :-)

I put the whole code on my wiki (since it's kinda long in an email)

http://wiki.colar.net/doku.php/databinder_issue

Let me know what I'm doing wrong, so i can start sleeping again  :-)

Thanks.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket / Databinder issue

2006-03-20 Thread Justin Lee
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

The "Owner" you see there is the class.  You need to tell hibernate that
Owner is a hibernated class.  If you're using spring that's done in
applicationContext.xml.

Thibaut Colar wrote:
> Hello there, I'm an experienced java developer, however new to wicket.
> 
> I found wicket and think it looks great and decided to use it, though i
> wanted Hibernate too, so decided to use databinder.
> I installed databinder as explained on there site, and ran the examples
> locally without problems.
> 
> For Info: I got databinder three days ago, i use java 5.0 and maven2,
> databinder uses i believe hibernate/ejb3 and wicket 1.1.
> 
> Then i created my own Application using maven (as explained on the
> databinder site), it does compile, however as soon as i try to get
> something from the database (hibernate) it fails with this error:
> 
> org.hibernate.hql.ast.QuerySyntaxException: Owner is not mapped. [from
> Owner order by name]
> 
> "Owner" is my table name.
> 
> The code i have is very very basic and short, and I've been over it 25
> hundred time, it is basically similar to the "bookmarks" example, yet it
> keeps failing with this error.
> 
> I bet i am missing something obvious here, so please show me what it is :-)
> 
> I put the whole code on my wiki (since it's kinda long in an email)
> 
> http://wiki.colar.net/doku.php/databinder_issue
> 
> Let me know what I'm doing wrong, so i can start sleeping again  :-)
> 
> Thanks.
> 
> 
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user

- --
Justin Lee
http://www.antwerkz.com
AIM : evan chooly
720.299.0101
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (Cygwin)

iD8DBQFEH2FYJnQfEGuJ90MRA8lCAKCrBs2KVJsDYtxSSsSpqMVZrz62dQCbBVNC
/Q5kPS0atIvjDa5NTR0pJRo=
=dU/Z
-END PGP SIGNATURE-


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket / Databinder issue

2006-03-20 Thread Thibaut Colar
I believe with Databinder wich uses jaav5 annotations i don't need any 
xml  declaration.


See the application class, "addAnnotedClass" call.

public class HockeyPondApplication extends DataApplication
{

@Override
protected Class getHomePage()
{
return MyDataPage.class;
}

@Override
protected void configureHibernate(AnnotationConfiguration config)
{
super.configureHibernate(config);

   // Loading the annotated Owner model 
		config.addAnnotatedClass(Owner .class);

}

}



Justin Lee wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

The "Owner" you see there is the class.  You need to tell hibernate that
Owner is a hibernated class.  If you're using spring that's done in
applicationContext.xml.

Thibaut Colar wrote:
 


Hello there, I'm an experienced java developer, however new to wicket.

I found wicket and think it looks great and decided to use it, though i
wanted Hibernate too, so decided to use databinder.
I installed databinder as explained on there site, and ran the examples
locally without problems.

For Info: I got databinder three days ago, i use java 5.0 and maven2,
databinder uses i believe hibernate/ejb3 and wicket 1.1.

Then i created my own Application using maven (as explained on the
databinder site), it does compile, however as soon as i try to get
something from the database (hibernate) it fails with this error:

org.hibernate.hql.ast.QuerySyntaxException: Owner is not mapped. [from
Owner order by name]

"Owner" is my table name.

The code i have is very very basic and short, and I've been over it 25
hundred time, it is basically similar to the "bookmarks" example, yet it
keeps failing with this error.

I bet i am missing something obvious here, so please show me what it is :-)

I put the whole code on my wiki (since it's kinda long in an email)

http://wiki.colar.net/doku.php/databinder_issue

Let me know what I'm doing wrong, so i can start sleeping again  :-)

Thanks.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   



- --
Justin Lee
http://www.antwerkz.com
AIM : evan chooly
720.299.0101
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (Cygwin)

iD8DBQFEH2FYJnQfEGuJ90MRA8lCAKCrBs2KVJsDYtxSSsSpqMVZrz62dQCbBVNC
/Q5kPS0atIvjDa5NTR0pJRo=
=dU/Z
-END PGP SIGNATURE-


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket / Databinder issue

2006-03-20 Thread Igor Vaynberg
have you tried emailing the author of databinder, that might be a better place to seek help.-IgorOn 3/20/06, Thibaut Colar <
[EMAIL PROTECTED]> wrote:I believe with Databinder wich uses jaav5 annotations i don't need any
xml  declaration.See the application class, "addAnnotedClass" call.public class HockeyPondApplication extends DataApplication{@Overrideprotected Class getHomePage()
{return MyDataPage.class;}@Overrideprotected void configureHibernate(AnnotationConfiguration config){super.configureHibernate
(config);// Loading the annotated Owner modelconfig.addAnnotatedClass(Owner .class);}}Justin Lee wrote:>-BEGIN PGP SIGNED MESSAGE->Hash: RIPEMD160>>The "Owner" you see there is the class.  You need to tell hibernate that
>Owner is a hibernated class.  If you're using spring that's done in>applicationContext.xml.>>Thibaut Colar wrote:Hello there, I'm an experienced java developer, however new to wicket.
I found wicket and think it looks great and decided to use it, though i>>wanted Hibernate too, so decided to use databinder.>>I installed databinder as explained on there site, and ran the examples
>>locally without problems.For Info: I got databinder three days ago, i use java 5.0 and maven2,>>databinder uses i believe hibernate/ejb3 and wicket 1.1.Then i created my own Application using maven (as explained on the
>>databinder site), it does compile, however as soon as i try to get>>something from the database (hibernate) it fails with this error:org.hibernate.hql.ast.QuerySyntaxException
: Owner is not mapped. [from>>Owner order by name]"Owner" is my table name.The code i have is very very basic and short, and I've been over it 25>>hundred time, it is basically similar to the "bookmarks" example, yet it
>>keeps failing with this error.I bet i am missing something obvious here, so please show me what it is :-)I put the whole code on my wiki (since it's kinda long in an email)
http://wiki.colar.net/doku.php/databinder_issueLet me know what I'm doing wrong, so i can start sleeping again  :-)
Thanks.>>--->>This SF.Net email is sponsored by xPML, a groundbreaking scripting language>>that extends applications into web and mobile media. Attend the live
>>webcast>>and join the prime developer group breaking into this new coding territory!>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>>___>>Wicket-user mailing list>>Wicket-user@lists.sourceforge.net>>
https://lists.sourceforge.net/lists/listinfo/wicket-user>>- -->Justin Lee>http://www.antwerkz.com>AIM : evan chooly>
720.299.0101>-BEGIN PGP SIGNATURE->Version: GnuPG v1.4.2.1 (Cygwin)>>iD8DBQFEH2FYJnQfEGuJ90MRA8lCAKCrBs2KVJsDYtxSSsSpqMVZrz62dQCbBVNC>/Q5kPS0atIvjDa5NTR0pJRo=>=dU/Z>-END PGP SIGNATURE-
>>>--->This SF.Net email is sponsored by xPML, a groundbreaking scripting language>that extends applications into web and mobile media. Attend the live webcast
>and join the prime developer group breaking into this new coding territory!>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>___>Wicket-user mailing list>Wicket-user@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/wicket-user>>---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket / Databinder issue

2006-03-20 Thread Thibaut Colar
I agree with this, however so far i found no contact infos whatsoever, 
will look some more.

I figured some other wicket users might have experience with databinder.

Igor Vaynberg wrote:

have you tried emailing the author of databinder, that might be a 
better place to seek help.


-Igor


On 3/20/06, *Thibaut Colar* < [EMAIL PROTECTED] 
> wrote:


I believe with Databinder wich uses jaav5 annotations i don't need
any
xml  declaration.

See the application class, "addAnnotedClass" call.

public class HockeyPondApplication extends DataApplication
{

@Override
protected Class getHomePage()
{
return MyDataPage.class;
}

@Override
protected void configureHibernate(AnnotationConfiguration
config)
{
super.configureHibernate (config);

// Loading the annotated Owner model
config.addAnnotatedClass(Owner
>.class);
}

}



Justin Lee wrote:

>-BEGIN PGP SIGNED MESSAGE-
>Hash: RIPEMD160
>
>The "Owner" you see there is the class.  You need to tell
hibernate that
>Owner is a hibernated class.  If you're using spring that's done in
>applicationContext.xml.
>
>Thibaut Colar wrote:
>
>
>>Hello there, I'm an experienced java developer, however new to
wicket.
>>
>>I found wicket and think it looks great and decided to use it,
though i
>>wanted Hibernate too, so decided to use databinder.
>>I installed databinder as explained on there site, and ran the
examples
>>locally without problems.
>>
>>For Info: I got databinder three days ago, i use java 5.0 and
maven2,
>>databinder uses i believe hibernate/ejb3 and wicket 1.1.
>>
>>Then i created my own Application using maven (as explained on the
>>databinder site), it does compile, however as soon as i try to get
>>something from the database (hibernate) it fails with this error:
>>
>>org.hibernate.hql.ast.QuerySyntaxException : Owner is not
mapped. [from
>>Owner order by name]
>>
>>"Owner" is my table name.
>>
>>The code i have is very very basic and short, and I've been over
it 25
>>hundred time, it is basically similar to the "bookmarks"
example, yet it
>>keeps failing with this error.
>>
>>I bet i am missing something obvious here, so please show me
what it is :-)
>>
>>I put the whole code on my wiki (since it's kinda long in an email)
>>
>>http://wiki.colar.net/doku.php/databinder_issue
>>
>>Let me know what I'm doing wrong, so i can start sleeping
again  :-)
>>
>>Thanks.
>>
>>
>>---
>>This SF.Net email is sponsored by xPML, a groundbreaking
scripting language
>>that extends applications into web and mobile media. Attend the
live
>>webcast
>>and join the prime developer group breaking into this new coding
territory!
>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

>>___
>>Wicket-user mailing list
>>Wicket-user@lists.sourceforge.net

>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>
>- --
>Justin Lee
>http://www.antwerkz.com
>AIM : evan chooly
> 720.299.0101
>-BEGIN PGP SIGNATURE-
>Version: GnuPG v1.4.2.1 (Cygwin)
>
>iD8DBQFEH2FYJnQfEGuJ90MRA8lCAKCrBs2KVJsDYtxSSsSpqMVZrz62dQCbBVNC
>/Q5kPS0atIvjDa5NTR0pJRo=
>=dU/Z
>-END PGP SIGNATURE-
>
>
>---
>This SF.Net email is sponsored by xPML, a groundbreaking
scripting language
>that extends applications into web and mobile media. Attend the
live webcast
>and join the prime developer group breaking into this new coding
territory!
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

>___
>Wicket-user mailing list
>Wicket-user@lists.sourceforge.net

> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join 

Re: [Wicket-user] Wicket / Databinder issue

2006-03-20 Thread Igor Vaynberg
if you want an example of a wicket+spring+hibernate app look at wicket-phonebook in wicket stuff cvs. i think more people here have experience with that setup so you will be able to find more help.-Igor
On 3/20/06, Thibaut Colar <[EMAIL PROTECTED]> wrote:
I agree with this, however so far i found no contact infos whatsoever,will look some more.I figured some other wicket users might have experience with databinder.Igor Vaynberg wrote:> have you tried emailing the author of databinder, that might be a
> better place to seek help.>> -Igor>>> On 3/20/06, *Thibaut Colar* < [EMAIL PROTECTED]> 
[EMAIL PROTECTED]>> wrote:>> I believe with Databinder wich uses jaav5 annotations i don't need> any> xml  declaration.>> See the application class, "addAnnotedClass" call.
>> public class HockeyPondApplication extends DataApplication> {>> @Override> protected Class getHomePage()> {> return 
MyDataPage.class;> }>> @Override> protected void configureHibernate(AnnotationConfiguration> config)> {> 
super.configureHibernate (config);>> // Loading the annotated Owner model> config.addAnnotatedClass(Owner> <
http://www.google.com/search?q=allinurl%3AOwner+java.sun.com&bntl=1> >.class);> }>> } Justin Lee wrote:>> >-BEGIN PGP SIGNED MESSAGE-> >Hash: RIPEMD160> >
> >The "Owner" you see there is the class.  You need to tell> hibernate that> >Owner is a hibernated class.  If you're using spring that's done in> >applicationContext.xml
.> >> >Thibaut Colar wrote:> >> >> >>Hello there, I'm an experienced java developer, however new to> wicket.> >>> >>I found wicket and think it looks great and decided to use it,
> though i> >>wanted Hibernate too, so decided to use databinder.> >>I installed databinder as explained on there site, and ran the> examples> >>locally without problems.
> >>> >>For Info: I got databinder three days ago, i use java 5.0 and> maven2,> >>databinder uses i believe hibernate/ejb3 and wicket 1.1.> >>
> >>Then i created my own Application using maven (as explained on the> >>databinder site), it does compile, however as soon as i try to get> >>something from the database (hibernate) it fails with this error:
> >>> >>org.hibernate.hql.ast.QuerySyntaxException : Owner is not> mapped. [from> >>Owner order by name]> >>> >>"Owner" is my table name.
> >>> >>The code i have is very very basic and short, and I've been over> it 25> >>hundred time, it is basically similar to the "bookmarks"> example, yet it
> >>keeps failing with this error.> >>> >>I bet i am missing something obvious here, so please show me> what it is :-)> >>> >>I put the whole code on my wiki (since it's kinda long in an email)
> >>> >>http://wiki.colar.net/doku.php/databinder_issue> >>> >>Let me know what I'm doing wrong, so i can start sleeping
> again  :-)> >>> >>Thanks.> >>> >>> >>---> >>This SF.Net
 email is sponsored by xPML, a groundbreaking> scripting language> >>that extends applications into web and mobile media. Attend the> live> >>webcast> >>and join the prime developer group breaking into this new coding
> territory!> >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > >>___
> >>Wicket-user mailing list> >>Wicket-user@lists.sourceforge.net> 
Wicket-user@lists.sourceforge.net>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user> >>> >>
> >> >- --> >Justin Lee> >http://www.antwerkz.com> >AIM : evan chooly> > 720.299.0101> >-BEGIN PGP SIGNATURE-
> >Version: GnuPG v1.4.2.1 (Cygwin)> >> >iD8DBQFEH2FYJnQfEGuJ90MRA8lCAKCrBs2KVJsDYtxSSsSpqMVZrz62dQCbBVNC> >/Q5kPS0atIvjDa5NTR0pJRo=> >=dU/Z> >-END PGP SIGNATURE-
> >> >> >---> >This SF.Net email is sponsored by xPML, a groundbreaking> scripting language> >that extends applications into web and mobile media. Attend the
> live webcast> >and join the prime developer group breaking into this new coding> territory!> >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> > >___> >Wicket-user mailing list> >Wicket-user@lists.s

Re: [Wicket-user] Wicket / Databinder issue

2006-03-20 Thread Eelco Hillenius
He is on this list; I'm sure Nathan will read it :)

Eelco

On 3/20/06, Thibaut Colar <[EMAIL PROTECTED]> wrote:
> I agree with this, however so far i found no contact infos whatsoever,
> will look some more.
> I figured some other wicket users might have experience with databinder.
>
> Igor Vaynberg wrote:
>
> > have you tried emailing the author of databinder, that might be a
> > better place to seek help.
> >
> > -Igor
> >
> >
> > On 3/20/06, *Thibaut Colar* < [EMAIL PROTECTED]
> > > wrote:
> >
> > I believe with Databinder wich uses jaav5 annotations i don't need
> > any
> > xml  declaration.
> >
> > See the application class, "addAnnotedClass" call.
> >
> > public class HockeyPondApplication extends DataApplication
> > {
> >
> > @Override
> > protected Class getHomePage()
> > {
> > return MyDataPage.class;
> > }
> >
> > @Override
> > protected void configureHibernate(AnnotationConfiguration
> > config)
> > {
> > super.configureHibernate (config);
> >
> > // Loading the annotated Owner model
> > config.addAnnotatedClass(Owner
> >  > 
> > >.class);
> > }
> >
> > }
> >
> >
> >
> > Justin Lee wrote:
> >
> > >-BEGIN PGP SIGNED MESSAGE-
> > >Hash: RIPEMD160
> > >
> > >The "Owner" you see there is the class.  You need to tell
> > hibernate that
> > >Owner is a hibernated class.  If you're using spring that's done in
> > >applicationContext.xml.
> > >
> > >Thibaut Colar wrote:
> > >
> > >
> > >>Hello there, I'm an experienced java developer, however new to
> > wicket.
> > >>
> > >>I found wicket and think it looks great and decided to use it,
> > though i
> > >>wanted Hibernate too, so decided to use databinder.
> > >>I installed databinder as explained on there site, and ran the
> > examples
> > >>locally without problems.
> > >>
> > >>For Info: I got databinder three days ago, i use java 5.0 and
> > maven2,
> > >>databinder uses i believe hibernate/ejb3 and wicket 1.1.
> > >>
> > >>Then i created my own Application using maven (as explained on the
> > >>databinder site), it does compile, however as soon as i try to get
> > >>something from the database (hibernate) it fails with this error:
> > >>
> > >>org.hibernate.hql.ast.QuerySyntaxException : Owner is not
> > mapped. [from
> > >>Owner order by name]
> > >>
> > >>"Owner" is my table name.
> > >>
> > >>The code i have is very very basic and short, and I've been over
> > it 25
> > >>hundred time, it is basically similar to the "bookmarks"
> > example, yet it
> > >>keeps failing with this error.
> > >>
> > >>I bet i am missing something obvious here, so please show me
> > what it is :-)
> > >>
> > >>I put the whole code on my wiki (since it's kinda long in an email)
> > >>
> > >>http://wiki.colar.net/doku.php/databinder_issue
> > >>
> > >>Let me know what I'm doing wrong, so i can start sleeping
> > again  :-)
> > >>
> > >>Thanks.
> > >>
> > >>
> > >>---
> > >>This SF.Net email is sponsored by xPML, a groundbreaking
> > scripting language
> > >>that extends applications into web and mobile media. Attend the
> > live
> > >>webcast
> > >>and join the prime developer group breaking into this new coding
> > territory!
> > 
> > >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > 
> > 
> > >>___
> > >>Wicket-user mailing list
> > >>Wicket-user@lists.sourceforge.net
> > 
> > >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >>
> > >>
> > >
> > >- --
> > >Justin Lee
> > >http://www.antwerkz.com
> > >AIM : evan chooly
> > > 720.299.0101
> > >-BEGIN PGP SIGNATURE-
> > >Version: GnuPG v1.4.2.1 (Cygwin)
> > >
> > >iD8DBQFEH2FYJnQfEGuJ90MRA8lCAKCrBs2KVJsDYtxSSsSpqMVZrz62dQCbBVNC
> > >/Q5kPS0atIvjDa5NTR0pJRo=
> > >=dU/Z
> > >-END PGP SIGNATURE-
> > >
> > >
> > >---
> > >This SF.Net email is sponsored by xPML, a groundbreaking
> > scripting language
> > >that extends applications into web and mobile media. Attend the
> > live webcast
> > >and join the prime developer group breaking into this new coding
> > 

Re: [Wicket-user] Wicket / Databinder issue

2006-03-20 Thread Thibaut Colar

Ok sounds good.
I had just downloaded the wicket example that use hibernate as well.
So will look at that too.
But if i can get Databinder to work that would be even better, i like 
the idea (no XML :-) etc)


Thanks for the help.

Igor Vaynberg wrote:

if you want an example of a wicket+spring+hibernate app look at 
wicket-phonebook in wicket stuff cvs. i think more people here have 
experience with that setup so you will be able to find more help.


-Igor


On 3/20/06, *Thibaut Colar* <[EMAIL PROTECTED] 
> wrote:


I agree with this, however so far i found no contact infos whatsoever,
will look some more.
I figured some other wicket users might have experience with
databinder.

Igor Vaynberg wrote:

> have you tried emailing the author of databinder, that might be a
> better place to seek help.
>
> -Igor
>
>
> On 3/20/06, *Thibaut Colar* < [EMAIL PROTECTED]

> mailto:[EMAIL PROTECTED]>>> wrote:
>
> I believe with Databinder wich uses jaav5 annotations i
don't need
> any
> xml  declaration.
>
> See the application class, "addAnnotedClass" call.
>
> public class HockeyPondApplication extends DataApplication
> {
>
> @Override
> protected Class getHomePage()
> {
> return MyDataPage.class;
> }
>
> @Override
> protected void
configureHibernate(AnnotationConfiguration
> config)
> {
> super.configureHibernate (config);
>
> // Loading the annotated Owner model
> config.addAnnotatedClass(Owner
> <
http://www.google.com/search?q=allinurl%3AOwner+java.sun.com&bntl=1

>
>>.class);
> }
>
> }
>
>
>
> Justin Lee wrote:
>
> >-BEGIN PGP SIGNED MESSAGE-
> >Hash: RIPEMD160
> >
> >The "Owner" you see there is the class.  You need to tell
> hibernate that
> >Owner is a hibernated class.  If you're using spring that's
done in
> >applicationContext.xml .
> >
> >Thibaut Colar wrote:
> >
> >
> >>Hello there, I'm an experienced java developer, however new to
> wicket.
> >>
> >>I found wicket and think it looks great and decided to use
it,
> though i
> >>wanted Hibernate too, so decided to use databinder.
> >>I installed databinder as explained on there site, and ran the
> examples
> >>locally without problems.
> >>
> >>For Info: I got databinder three days ago, i use java 5.0 and
> maven2,
> >>databinder uses i believe hibernate/ejb3 and wicket 1.1.
> >>
> >>Then i created my own Application using maven (as
explained on the
> >>databinder site), it does compile, however as soon as i
try to get
> >>something from the database (hibernate) it fails with this
error:
> >>
> >>org.hibernate.hql.ast.QuerySyntaxException : Owner is not
> mapped. [from
> >>Owner order by name]
> >>
> >>"Owner" is my table name.
> >>
> >>The code i have is very very basic and short, and I've
been over
> it 25
> >>hundred time, it is basically similar to the "bookmarks"
> example, yet it
> >>keeps failing with this error.
> >>
> >>I bet i am missing something obvious here, so please show me
> what it is :-)
> >>
> >>I put the whole code on my wiki (since it's kinda long in
an email)
> >>
> >>http://wiki.colar.net/doku.php/databinder_issue
> >>
> >>Let me know what I'm doing wrong, so i can start sleeping
> again  :-)
> >>
> >>Thanks.
> >>
> >>
> >>---
> >>This SF.Net email is sponsored by xPML, a groundbreaking
> scripting language
> >>that extends applications into web and mobile media.
Attend the
> live
> >>webcast
> >>and join the prime developer group breaking into this new
coding
> territory!
>
>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


>


[Wicket-user] ListMultipleChoice should not change the size attribute

2006-03-20 Thread Ramnivas Laddad

Hi,

ListMultipleChoice overrides the size attribute specified in HTML
markup. I think that attribute, if specified in HTML, should be left
untouched.

In my case, the page needs a few lists to have the same sizes to get a
good layout. I could have fixed this problem by subclassing the
ListMultipleChoice and overriding onComponentTag(), but that method is
marked final :-(

-Ramnivas





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IBatis jpetstore on wicket

2006-03-20 Thread Eelco Hillenius
Nice! You are more than welcome putting sharing the sources as a
wicket-stuff project. Let me know if you are interested in that.

Eelco

On 3/20/06, karthik Guru <[EMAIL PROTECTED]> wrote:
> I started something this as an exercise and asked Clinton if he can host the
> wicket implementation of his jpetstore for a download instead of struts. I
> thought that it w'd be cool for wicket as well. I didn't know at that point
> of time that he w'd resort to this ...
>
> http://www.theserverside.com/news/thread.tss?thread_id=39529#204229
>
> :)
>
> I'm almost done with my implementation. But since I'm not likely to provide
> the best implementation due to relative inexperience with the framework, it
> w'd be great if somebody could offer to do a code review. Let me know if you
> are interested and i shall send it across. Then i can pass it on to clinton
> after incorporating your feedback.
>
> thanks,
>
> karthik
>
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Images, Flashs, Javascripts, CSSs and other resources

2006-03-20 Thread Dirk Markert
Bruno,
 
I am not getting your point. I was talking about static resources at design time. Like you mentioned it before. What kind of problems do you see with web pages from different packages?
 
Dirk 
2006/3/20, Bruno Borges <[EMAIL PROTECTED]>:

We could do that, only if all the web pages stay in the same package, but imagine that in a modularized project or even with sub-modules!So, how about some code like this:
class IndexPage extends WebPage {    public String getResourcePage() {
    return "Index.html";    }
}And to complete: 
class PetShopApp extends WebApplication {    public String getPagesRootPath() {
    return "/WEB-INF/html/";    }} 
Regards,Bruno Borges 
Date: Mon, 20 Mar 2006 08:56:30 +0100From: "Dirk Markert" <
[EMAIL PROTECTED]>To: wicket-user@lists.sourceforge.net 
Subject: Re: [Wicket-user] Images, Flashs, _javascript_s, CSSs and other resourcesReply-To: 
wicket-user@lists.sourceforge.net--=_Part_9855_22859891.1142841390656 Content-Type: text/plain; charset=ISO-8859-1Content-Transfer-Encoding: quoted-printableContent-Disposition: inline
Why don't you include file:///C:/Docs%20and%20Settings/you/your-project/src/webap=p/"/>
in your html head.Dirk2006/3/18, Thomas Singer <[EMAIL PROTECTED] >:>> Hi Bruno,
>> I'm with you. Please take a look at issue 1448195 in the wicket tracker> (> 
http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1448195&grou=p_id=3D119783&atid=3D684978> ).>> --> Best regards,> Thomas Singer>
>> Bruno Borges schrieb: > > In the case of static resources, the problem is that, as you show, if m=y 
> > web designer opens the Index.html he'll not see the images in his> > WYSIWYG editor.> >> > Thanks. > >> > From: "Martijn Dashorst" <
[EMAIL PROTECTED]> > 
[EMAIL PROTECTED] >>> > To: wicket-user@lists.sourceforge.net
> > wicket-user@lists.sourceforge.net >> > Subject: Re: [Wicket-user] Images, Flashs, _javascript_s, CSSs and
> > other resources> > Reply-To: wicket-user@lists.sourceforge.net 
> > wicket-user@lists.sourceforge.net>> >> > There are several possibilities here.
> >> > Dynamic approach > > Needed in the following cases:> >  - resource needs to be generated> >  - resource comes from external, non-web system (database, etc)
> >  - resource must be filtered (component id's subsitution, etc) > >  - resource must be packaged with your component> >> > Static approach> > Needed in the following cases:
> >  - absolute performance requirements -> static resources served by > > webserver, not servlet> >  - static files, no special requirement for dynamic content> >  - ?
> >> > In the dynamic approach the resources need either to be registered > > at load> > time (this will change I think), or generated on the fly as needed.
> > Resourc=3D> > e> > source files should be available on the classpath, but need not be > > (provide> > your own resolver).> >
> > In the static approach, you put the files in the webroot and thus> > have them> > available to link from your pages. > >> > com.foo.Index.html> > 
> > > > > > 
> > type=3D3D"text/_javascript_">> > > > > >  > > > >
> > and directories:> >> > src/webapp/style/style.css> > src/webapp/prototype/prototype.js> > src/webapp/WEB-INF/web.xml > > src/main/java/com/foo/Index.html
> > src/main/java/com/foo/Index.java> >> > Not complete, but a start.> >> > Martijn> >> > On 3/17/06, Bruno Borges < 
[EMAIL PROTECTED]> > [EMAIL PROTECTED]>> wrote:> >  >
> >  > I've seen some threads in the mailing-list archive, and for I > > understand,> >  > there's no common way to deal with resources like those in the> > subject.
> >  >> >  > Could you guys please list what's the best approaches to deal > > with images=3D> > ,> >  > so programmers and designers can work together without any
> > problem? I wan=3D> > na> >  > see developers coding the html files, and designers specifying > > images in> >  > these pages, so the images can be displayed in the same way at
> > developmen=3D> > t> >  > time (WYSIWYG HTML Editors) and at runtime. > >  >> >  > The same question for _javascript_ files (.js) and stylesheet file=
s> > (.css).> >  >> >  > And after that, we could put all information together and submit > > to the> >  > Wiki.> >  >
> >  > Thank you!> >  >> >  > --> >  > Bruno Borges - SCJP 1.4> >  > 
[EMAIL PROTECTED] [EMAIL PROTECTED]>
-- Bruno Borges - SCJP 1.4[EMAIL PROTECTED]



Re: [Wicket-user] IBatis jpetstore on wicket

2006-03-20 Thread Igor Vaynberg
i also think having this as a wicket-stuff project would be nice. it
would be in a place where  we can build it up and encorporate best
practices, as well as a place where newbies can get to it easily.

-Igor
On 3/20/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
Nice! You are more than welcome putting sharing the sources as awicket-stuff project. Let me know if you are interested in that.EelcoOn 3/20/06, karthik Guru <
[EMAIL PROTECTED]> wrote:> I started something this as an exercise and asked Clinton if he can host the> wicket implementation of his jpetstore for a download instead of struts. I> thought that it w'd be cool for wicket as well. I didn't know at that point
> of time that he w'd resort to this ...>> http://www.theserverside.com/news/thread.tss?thread_id=39529#204229>
> :)>> I'm almost done with my implementation. But since I'm not likely to provide> the best implementation due to relative inexperience with the framework, it> w'd be great if somebody could offer to do a code review. Let me know if you
> are interested and i shall send it across. Then i can pass it on to clinton> after incorporating your feedback.>> thanks,>> karthik>>---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] why create new page instances ?

2006-03-20 Thread ali
On Tue, 21 Mar 2006 04:47:13 +0530, Martijn Dashorst  
<[EMAIL PROTECTED]> wrote:


i want suppose can EditBook be is singleton .


new Link("editLink") {
protected void onClick() {
Book book = (Book)getParent().getModelObject();
setResponsePage(new EditBook(book));
}
}

Should work.

Martijn

On 3/20/06, ali <[EMAIL PROTECTED]> wrote:


On Mon, 20 Mar 2006 14:18:48 +0530, Johan Compagner  
<[EMAIL PROTECTED]>

wrote:
can i do like :

class BookList extends WebPage {

public BookList() {

add(new ListView("booksList", booksList){

public void populateItem(ListItem item) {

add(new Link("editLink") {
EditBook page =
EditBook.getInstance();
page.setModel(new
CompoundPropertyModel(item.getModelObject())); //or
line also move to page
setResponsePage(page);
}
});
}
}

if i can do this then what effects do it put in on end-user of app?

> you can reuse pages just fine for one session ofcourse if you want.
>
> So in youre BookList you hold on to an internal page BookDetails or
> EditBook
> page
> And when you click on a view/edit link you just reuse that page.
>
> I wouldn't share pages across sessions.
>
> johan
>
>
> On 3/20/06, ali <[EMAIL PROTECTED]> wrote:
>>
>> i am new in wicket , it's correct that we tell
>>
>> 1- always use getPageFactory.newPage() instead "new".
>>
>> 2- if a user view/edit 4 book in its session , for him/her created 4
>> BookDetails and 4 EditBook page object.(why this needed)
>>
>> do we can define page be singleton in level of handler thread or
session
>> (i remember ThreadLocal)? so that like swing only once EditBook or
>> BookDetails pages instanced and for next book only needed that call  
on

>> them setBook(booK);
>>
>> refrence to these pages can keep in session and also they can
>>
>> or maybe i must more read examples and docs
>>
>> --
>> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>>
>>
>> ---
>> This SF.Net email is sponsored by xPML, a groundbreaking scripting
>> language
>> that extends applications into web and mobile media. Attend the live
>> webcast
>> and join the prime developer group breaking into this new coding
>> territory!
>>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Cast your final vote for Wicket in the SourceForge.net 2006 Community  
Choice

Awards!
http://www.wilsonresearch.com/2006/ostgawards06/ostgawards4.php




--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IBatis jpetstore on wicket

2006-03-20 Thread karthik Guru
Great! So you w'd need it as a maven project..?On 3/21/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
i also think having this as a wicket-stuff project would be nice. it
would be in a place where  we can build it up and encorporate best
practices, as well as a place where newbies can get to it easily.

-Igor
On 3/20/06, Eelco Hillenius <[EMAIL PROTECTED]
> wrote:
Nice! You are more than welcome putting sharing the sources as awicket-stuff project. Let me know if you are interested in that.EelcoOn 3/20/06, karthik Guru <

[EMAIL PROTECTED]> wrote:> I started something this as an exercise and asked Clinton if he can host the> wicket implementation of his jpetstore for a download instead of struts. I> thought that it w'd be cool for wicket as well. I didn't know at that point
> of time that he w'd resort to this ...>> http://www.theserverside.com/news/thread.tss?thread_id=39529#204229
>
> :)>> I'm almost done with my implementation. But since I'm not likely to provide> the best implementation due to relative inexperience with the framework, it> w'd be great if somebody could offer to do a code review. Let me know if you
> are interested and i shall send it across. Then i can pass it on to clinton> after incorporating your feedback.>> thanks,>> karthik>>---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


--  -- karthik -- 


Re: [Wicket-user] Wicket / Databinder issue

2006-03-20 Thread Dirk Markert
Hi Thibaut,
I think the error is here:
 
final IModel listModel = new HibernateListModel("from Owner order by name")
;
There is no 'name' attribute.
 
Dirk
 
2006/3/21, Thibaut Colar <[EMAIL PROTECTED]>:
Ok sounds good.I had just downloaded the wicket example that use hibernate as well.So will look at that too.
But if i can get Databinder to work that would be even better, i likethe idea (no XML :-) etc)Thanks for the help.Igor Vaynberg wrote:> if you want an example of a wicket+spring+hibernate app look at
> wicket-phonebook in wicket stuff cvs. i think more people here have> experience with that setup so you will be able to find more help.>> -Igor>>> On 3/20/06, *Thibaut Colar* <
[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote:>> I agree with this, however so far i found no contact infos whatsoever,
> will look some more.> I figured some other wicket users might have experience with> databinder.>> Igor Vaynberg wrote:>> > have you tried emailing the author of databinder, that might be a
> > better place to seek help.> >> > -Igor> >> >> > On 3/20/06, *Thibaut Colar* < [EMAIL PROTECTED]
> [EMAIL PROTECTED]>> > [EMAIL PROTECTED] [EMAIL PROTECTED]
>>> wrote:> >> > I believe with Databinder wich uses jaav5 annotations i> don't need> > any> > xml  declaration.> >
> > See the application class, "addAnnotedClass" call.> >> > public class HockeyPondApplication extends DataApplication> > {> >
> > @Override> > protected Class getHomePage()> > {> > return MyDataPage.class;> > }
> >> > @Override> > protected void> configureHibernate(AnnotationConfiguration> > config)> > {> > 
super.configureHibernate (config);> >> > // Loading the annotated Owner model> > config.addAnnotatedClass(Owner> > <
> http://www.google.com/search?q=allinurl%3AOwner+java.sun.com&bntl=1> <
http://www.google.com/search?q=allinurl%3AOwner+java.sun.com&bntl=1>> >>  >>.class);> > }
> >> > }> >> >> >> > Justin Lee wrote:> >> > >-BEGIN PGP SIGNED MESSAGE-> > >Hash: RIPEMD160
> > >> > >The "Owner" you see there is the class.  You need to tell> > hibernate that> > >Owner is a hibernated class.  If you're using spring that's
> done in> > >applicationContext.xml .> > >> > >Thibaut Colar wrote:> > >> > >> > >>Hello there, I'm an experienced java developer, however new to
> > wicket.> > >>> > >>I found wicket and think it looks great and decided to use> it,> > though i> > >>wanted Hibernate too, so decided to use databinder.
> > >>I installed databinder as explained on there site, and ran the> > examples> > >>locally without problems.> > >>> > >>For Info: I got databinder three days ago, i use java 
5.0 and> > maven2,> > >>databinder uses i believe hibernate/ejb3 and wicket 1.1.> > >>> > >>Then i created my own Application using maven (as
> explained on the> > >>databinder site), it does compile, however as soon as i> try to get> > >>something from the database (hibernate) it fails with this
> error:> > >>> > >>org.hibernate.hql.ast.QuerySyntaxException : Owner is not> > mapped. [from> > >>Owner order by name]
> > >>> > >>"Owner" is my table name.> > >>> > >>The code i have is very very basic and short, and I've> been over
> > it 25> > >>hundred time, it is basically similar to the "bookmarks"> > example, yet it> > >>keeps failing with this error.
> > >>> > >>I bet i am missing something obvious here, so please show me> > what it is :-)> > >>> > >>I put the whole code on my wiki (since it's kinda long in
> an email)> > >>> > >>http://wiki.colar.net/doku.php/databinder_issue> > >>
> > >>Let me know what I'm doing wrong, so i can start sleeping> > again  :-)> > >>> > >>Thanks.> > >>> > >>
> > >>---> > >>This SF.Net email is sponsored by xPML, a groundbreaking> > scripting language> > >>that extends applications into web and mobile media.
> Attend the> > live> > >>webcast> > >>and join the prime developer group breaking into this

Re: [Wicket-user] IBatis jpetstore on wicket

2006-03-20 Thread Igor Vaynberg
there is no such requirement for wicket-stuff projects, but it would certainly be a plus :)

-Igor
On 3/20/06, karthik Guru <[EMAIL PROTECTED]> wrote:
Great! So you w'd need it as a maven project..?On 3/21/06, 
Igor Vaynberg <[EMAIL PROTECTED]> wrote:
i also think having this as a wicket-stuff project would be nice. it
would be in a place where  we can build it up and encorporate best
practices, as well as a place where newbies can get to it easily.

-Igor
On 3/20/06, Eelco Hillenius <[EMAIL PROTECTED]
> wrote:
Nice! You are more than welcome putting sharing the sources as awicket-stuff project. Let me know if you are interested in that.EelcoOn 3/20/06, karthik Guru <


[EMAIL PROTECTED]> wrote:> I started something this as an exercise and asked Clinton if he can host the> wicket implementation of his jpetstore for a download instead of struts. I> thought that it w'd be cool for wicket as well. I didn't know at that point
> of time that he w'd resort to this ...>> http://www.theserverside.com/news/thread.tss?thread_id=39529#204229
>
> :)>> I'm almost done with my implementation. But since I'm not likely to provide> the best implementation due to relative inexperience with the framework, it> w'd be great if somebody could offer to do a code review. Let me know if you
> are interested and i shall send it across. Then i can pass it on to clinton> after incorporating your feedback.>> thanks,>> karthik>>---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user


--  -- karthik -- 




[Wicket-user] ListMultipleChoice should not change the size attribute

2006-03-20 Thread Ramnivas Laddad

Hi,

ListMultipleChoice overrides the size attribute specified in HTML
markup. I think that attribute, if specified in HTML, should be left
untouched.

In my case, the page needs a few lists to have the same sizes to get a
good layout. I could have fixed this problem by subclassing the
ListMultipleChoice and overriding onComponentTag(), but that method is
marked final :-(

-Ramnivas






---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListMultipleChoice should not change the size attribute

2006-03-20 Thread Dirk Markert
Ramnivas,
 
Igor fixed it already. Check out latest svn version.
 
Dirk 
2006/3/21, Ramnivas Laddad <[EMAIL PROTECTED]>:
Hi,ListMultipleChoice overrides the size attribute specified in HTMLmarkup. I think that attribute, if specified in HTML, should be left
untouched.In my case, the page needs a few lists to have the same sizes to get agood layout. I could have fixed this problem by subclassing theListMultipleChoice and overriding onComponentTag(), but that method is
marked final :-(-Ramnivas---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] why create new page instances ?

2006-03-20 Thread Martijn Dashorst
You probably can manage to make the page a singleton, but I strongly discourage you from trying. You are in a multithreaded environment. Wicket pages are stateful, which means you can't safely share them across threads. As a consequence a page can not be shared between sessions, and that is what you do when you build a singleton.
When you let Wicket 'manage' your pages, i.e. you just create pages on the fly, you won't run into multithreading problems. Wicket will synchronize for each session on the session with an incoming request. So per user you won't have threading issues.
I can't think of any web framework that supports this way of working, perhaps the action oriented frameworks (webwork, struts). Wicket is not like that. Wicket creates statefull pages and components, which means they cannot be shared between threads at the same time. Even Tapestry doesn't support singletons, but uses page pooling. And because of that, they had to create some magic to make the pages loose their state when the page is put back into the pool.
If you are /that/ concerned with memory, then you probably shouldn't use Wicket. Not because we don't think Wicket is up for the task, but I think you'd have more fun with Tapestry or another framework that let's you work the way you want.
MartijnOn 3/21/06, ali <
[EMAIL PROTECTED]> wrote:
On Tue, 21 Mar 2006 04:47:13 +0530, Martijn Dashorst<[EMAIL PROTECTED]> wrote:
i want suppose can EditBook be is singleton .> new Link("editLink") {
> protected void onClick() {> Book book = (Book)getParent().getModelObject();> setResponsePage(new EditBook(book));> }> }>> Should work.>

> Martijn>> On 3/20/06, ali <[EMAIL PROTECTED]> wrote: On Mon, 20 Mar 2006 14:18:48 +0530, Johan Compagner
>> <
[EMAIL PROTECTED]>>> wrote:>> can i do like : class BookList extends WebPage {
 public BookList() {
 add(new ListView("booksList", booksList){ public void populateItem(ListItem item) { add(new Link("editLink") {
>> EditBook page =>> EditBook.getInstance();>> page.setModel(new>> CompoundPropertyModel(item.getModelObject

())); //or>> line also move to page>> setResponsePage(page);>> }>> });>> }>> }
 if i can do this then what effects do it put in on end-user of app? > you can reuse pages just fine for one session ofcourse if you want.>> >>> > So in youre BookList you hold on to an internal page BookDetails or
>> > EditBook>> > page>> > And when you click on a view/edit link you just reuse that page.>> >>> > I wouldn't share pages across sessions.>> >
>> > johan>> >>> >>> > On 3/20/06, ali <[EMAIL PROTECTED]
> wrote:>>  >> i am new in wicket , it's correct that we tell
>>  >> 1- always use getPageFactory.newPage() instead "new".>>  >> 2- if a user view/edit 4 book in its session , for him/her created 4

>> >> BookDetails and 4 EditBook page object.(why this needed)>>  >> do we can define page be singleton in level of handler thread or>> session>> >> (i remember ThreadLocal)? so that like swing only once EditBook or
>> >> BookDetails pages instanced and for next book only needed that call>> on>> >> them setBook(booK);>>  >> refrence to these pages can keep in session and also they can
>>  >> or maybe i must more read examples and docs>>  >> -->> >> Using Opera's revolutionary e-mail client: 

http://www.opera.com/mail/>>   >> --->> >> This SF.Net email is sponsored by xPML, a groundbreaking scripting
>> >> language>> >> that extends applications into web and mobile media. Attend the live>> >> webcast>> >> and join the prime developer group breaking into this new coding
>> >> territory!>>  
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>> >> ___>> >> Wicket-user mailing list>> >> 
Wicket-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >> --
>> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>> --->> This 
SF.Net email is sponsored by xPML, a groundbreaking scripting>> language>> that extends applications into web and mobile media. Attend the live>> webcast>> and join the prime developer group breaking into this new coding
>> territory!>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

>> ___>> Wicket-user mailing list>> 
Wicket-user@lists.sourceforge.net>> 
https://lists.sourceforge.net/lists/listinfo/wicket-user>> --> Cast your final vote for Wicket in the SourceForge.net 2006 Community> Choice> Awards!
> 
http://www.wilsonresearch.com/2006/ostgawar

Re: [Wicket-user] ListMultipleChoice should not change the size attribute

2006-03-20 Thread Ramnivas Laddad




Wonderful! Thanks.

-Ramnivas

Dirk Markert wrote:

  Ramnivas,
   
  Igor fixed it already. Check out latest svn version.
   
  Dirk
  
 
  2006/3/21, Ramnivas Laddad <[EMAIL PROTECTED]>:
  Hi,

ListMultipleChoice overrides the size attribute specified in HTML
markup. I think that attribute, if specified in HTML, should be left

untouched.

In my case, the page needs a few lists to have the same sizes to get a
good layout. I could have fixed this problem by subclassing the
ListMultipleChoice and overriding onComponentTag(), but that method is

marked final :-(

-Ramnivas






---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast

and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

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





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user