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) Vaynber

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

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

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]

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

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

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")

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 DropD

[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 ns

[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

[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     

[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 acco

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 ro

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

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

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 ever

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

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 (co

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

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 Acco

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() meth

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 Zumme

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 (ecli

[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 initi

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 dis

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, us

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

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 whic

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: clas

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 Vayn

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

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 thin

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));                 

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

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); 

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) {

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:ca

[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 ListMultipl

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 cou

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

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 ne

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 MyDa

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 clas

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/

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 n

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 Vaynbe

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+sprin

[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 ListMultipl

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

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

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 put

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)); } } Sho

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 easil

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

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 proj

[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 ListMultipl

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 fe

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 yo

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 attribut