Re: [Wicket-user] AjaxSubmitButton How To?

2006-03-13 Thread Igor Vaynberg
did you call form.setOutputMarkupId(true) ?-IgorOn 3/12/06, Ali Zaid [EMAIL PROTECTED] wrote:
I did, but it's abstract and I have to override onSubmit, still Idid,and it didn't work, Iwill give it more try.
Thanks! :)On 3/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote: all you have to do is attach it to input type=button/ and it should work
 i think. -Igor On 3/12/06, Ali Zaid  [EMAIL PROTECTED] wrote:  Hi; any code snippet on how to submit a form using Ajax by
 AjaxSubmitButton? Please :) -- Regards, Ali --- 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?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user--Regards, Ali
---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?cmdlnkkid0944bid$1720dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Request for a feature!

2006-03-13 Thread Johan Compagner
make youre bookmarkable url with the locale param yourself:new BookmarkablePageLink(id, MyPage.class, new PageParameters().put(locale,locale.toString()));And then in youre constructor of the page set the locale you are given.
johanOn 3/12/06, nato [EMAIL PROTECTED] wrote:
[Warning: my English sucks!]Hi. I have been evaluating Wicket for 4 days now. I would like torequest a feature for i18n that I wish other MVC framework had.Based on what I've learned on Wicket's wiki, the Wicket pages' default
locale depends on the header property sent by the browsers (correct meif I'm wrong). And I can set the pages to use a different locale otherthan the default. But my problem is this: after I set the session to
use another locale (japanese for example), of course, the page'scontent also change to japanese but the URL do not change. The problemis, the japanese page is no longer bookmarkable.A scenario in real-life is this: A user visited my site, selected the japanese
locale and found some content in there interesting, he would probablycopy the page's URLhttp://mysite/myapp/app?bookmarkablePage=Page2and send it to a friend saying,
Hey buddy! go to this URL and read the article. Don't worry, you will surelyunderstand the text because it's in Japanese language.Then, his friend will reply saying,Are you crazy? The URL you've given me is not in Japanese, it's in English.
Of course, it's because his friend got the default locale which isEnglish. So I suggest that aside from Wickets getting the browserslocale as the default for the session, let the session also be set by
default according to a URL in the page (but not theparameterized-bookmarkable-page way because I'm talking about thesession's default locale).---
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?cmdlnkkid0944bid$1720dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] Re: Snapshots at some maven2 repo?

2006-03-13 Thread Gwyn Evans
I think that's the right level - betas ( RC's, I presume) fine but
snapshots would be too ephemeral.

/Gwyn

On 13/03/06, Nathan Hamblen [EMAIL PROTECTED] wrote:
 Yeah it was no problem. They've gotten a lot better at handling the
 upload requests to Maven repos, including source attachments. I'll keep
 uploading future betas, but no snapshots.

 Nathan

 Gwyn Evans wrote:
  Looks to have resulted in
  http://www.ibiblio.org/maven2/wicket/wicket/1.2-beta1/
  /Gwyn
 
  On 12/03/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
  A search on the maven issues list revealed the following issue which is
  closed by now.
 
  http://jira.codehaus.org/browse/MAVENUPLOAD-775
 
  Martijn
 
 
  On 3/12/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
  Nope,
 
  The maven stance on the contents of the ibiblio repository is that no
  development artifacts should be there. And I agree with them on that point.
  In order to make my release life a lot easier, and less time consuming, I
  only provide the 1.2 development releases through the sourceforge download
  center.
  I know that Nathan Hamblen is trying to upload the beta release, but I
  haven't heard (good) news regarding that.
  Martijn
 
 
 
  On 3/12/06, Mats Norén [EMAIL PROTECTED] wrote:
  Sorry if this is a stupid question,
  but are there any 1.2 snapshots of the various wicket projects
  available at for instance ibiblio?
 
  /Mats
 
 
  ---
  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?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  --
  Nominate Wicket for the SourceForge.net's Choice awards!
 
  http://www.wilsonresearch.com/2006/ostgawards06/ostgawards4.php
 
 
 
  --
  Nominate Wicket for the SourceForge.net's Choice awards!
  http://www.wilsonresearch.com/2006/ostgawards06/ostgawards4.php
 
 
  ---
  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=kkid0944bid$1720dat1642



 ---
 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=lnkkid=110944bid=241720dat=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=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wiki in wicket?

2006-03-13 Thread David Leangen

Cool! I'm very interested. I'm also interested in any blogging impl that
may be availabled based on wicket.

Now... try to get some normal sleep! ;-)


On Fri, 2006-03-10 at 01:05 -0800, Igor Vaynberg wrote:
 there was some talk about building a wiki/cms with wicket in ##wicket
 and i had a bit of insomnia tonight, so i built a basic wiki in an
 hour or so. wel its more of a skeleton really. you can add/edit/link
 pages. it uses radeox (which you will need to compile the attached
 source) for wiki syntax rendering. im attaching the code for anyone
 who is curious. if anyone is interested in working on an ASL licensed
 wiki/cms let me know or come to ##wicket. if enough people want to do
 it we can make it a wicket-stuff project. 
 
 -Igor
 
 PS. the code is a mess, as i said it was a result of insomnia, so
 caveat emptor



---
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=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxSubmitButton How To?

2006-03-13 Thread Ali Zaid
Yes :), I'm working on it again now, I will inform you of the result
as soon I'm done.

Igor you will not believe the amount of popularity wicket is gaining
(in my working group), it's becoming like the savior of our life.

Regards, Ali

On 3/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 did you call form.setOutputMarkupId(true) ?


 -Igor


 On 3/12/06, Ali Zaid [EMAIL PROTECTED] wrote:
  I did, but it's abstract and I have to override onSubmit, still Idid,
  and it didn't work, Iwill give it more try.
 
  Thanks! :)
 
  On 3/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   all you have to do is attach it to input type=button/ and it should
 work
   i think.
  
   -Igor
  
  
  
   On 3/12/06, Ali Zaid  [EMAIL PROTECTED] wrote:
   
   Hi;
  
   any code snippet on how to submit a form using Ajax by
   AjaxSubmitButton? Please :)
  
   --
   Regards, Ali
  
  
   ---
   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?cmdlnkkid0944bid$1720dat1642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  --
  Regards, Ali
 
 
  ---
  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?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




--
Regards, Ali


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


[Wicket-user] getMarkupSettings().setStripWicketTags(true);

2006-03-13 Thread Dorel Vaida

this doesn't have any effect in version 1.2 beta1

getMarkupSettings().setStripWicketTags(true);

Can someone chech that out please. Maybe I'm doing something wrong.

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=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView: Rendering table row id attribute

2006-03-13 Thread Dirk Markert
Hi Michael,

you need an AttributeModifier. Something like

protected void populateItem(final ListItem listItem) { add(new Label(name,Scooby).new AttributeModifier(id, .., 
 new Model(row + listItem.getIndex()));
}
Dirk

2006/3/13, Michael K [EMAIL PROTECTED]: 
Hi,I want to be able to render id=rowcount attribute when using ListView. I need it to code _javascript_ using getElementById(). Please find the examples below: 
Html code:---tabletr wicket:id = rowToRender id=row0 tdspan wicket:id=namename/span/td/tr 
tr wicket:id = rowToRender id=row1 tdspan wicket:id=namename/span/td/trtr wicket:id = rowToRender id=row2 
 tdspan wicket:id=namename/span/td/tr/tableJava code:---add(new ListView(rowToRender,someArrayList){
 protected void populateItem(final ListItem listItem) { add(new Label(name,Scooby);}});Has anyone done this? Any help wo uld be greatly appreciated.BTW, I 'm using Wicket 
1.1.1.Thanks in Advance.--Michael


Yahoo! MailBring photos to life! New PhotoMail 
makes sharing a breeze. 




Re: [Wicket-user] ListView: Rendering table row id attribute

2006-03-13 Thread Dirk Markert
Well,

actually it is


protected void populateItem(final ListItem listItem) {listItem.add(new AttributeModifier(id, .., new Model(row + listItem.getIndex()
));
}
Dirk
2006/3/13, Dirk Markert [EMAIL PROTECTED]:

Hi Michael,

you need an AttributeModifier. Something like

protected void populateItem(final ListItem listItem) { add(new Label(name,Scooby).new AttributeModifier(id, .., 
 new Model(row + listItem.getIndex()));
}
Dirk

2006/3/13, Michael K [EMAIL PROTECTED]: 

Hi,I want to be able to render id=rowcount attribute when using ListView. I need it to code _javascript_ using getElementById(). Please find the examples below: 
Html code:---tabletr wicket:id = rowToRender id=row0 tdspan wicket:id=namename/span/td/tr 
tr wicket:id = rowToRender id=row1 tdspan wicket:id=namename/span/td/trtr wicket:id = rowToRender id=row2 
 tdspan wicket:id=namename/span/td/tr/tableJava code:---add(new ListView(rowToRender,someArrayList){
 protected void populateItem(final ListItem listItem) { add(new Label(name,Scooby);}});Has anyone done this? Any help wo uld be greatly appreciated.BTW, I 'm using Wicket 
1.1.1.Thanks in Advance.--Michael


Yahoo! MailBring photos to life! New PhotoMail 
makes sharing a breeze. 





Re: [Wicket-user] ListView: Rendering table row id attribute

2006-03-13 Thread Karl-Erik Rønsen
Title: Re: [Wicket-user] ListView: Rendering table row id attribute




Why do you need to set an id for each row? Instead you can set an id for the table element and call:

var myRow = document.getElementById( tableId ).getElementsByTagName( tr )[indexOfRowYouWant];

Karl-Erik


On 13-03-06 12:24, Dirk Markert [EMAIL PROTECTED] wrote:

Hi Michael,

you need an AttributeModifier. Something like

protected void populateItem(final ListItem listItem) {
add(new Label(name,Scooby).new AttributeModifier(id, .., 
new Model(row + listItem.getIndex()));
}

Dirk


2006/3/13, Michael K [EMAIL PROTECTED]: 
Hi,

I want to be able to render id=rowcount attribute when using ListView. I need it to code _javascript_ using getElementById(). Please find the examples below: 

Html code:
---
table
tr wicket:id = rowToRender id=row0
tdspan wicket:id=namename/span/td
/tr 
tr wicket:id = rowToRender id=row1
tdspan wicket:id=namename/span/td
/tr
tr wicket:id = rowToRender id=row2 
tdspan wicket:id=namename/span/td
/tr
/table


Java code:
---
add(new ListView(rowToRender,someArrayList){

protected void populateItem(final ListItem listItem) {
add(new Label(name,Scooby);
}

});

Has anyone done this? Any help wo uld be greatly appreciated.

BTW, I 'm using Wicket 1.1.1.


Thanks in Advance.


--Michael


Yahoo! Mail
Bring photos to life! New PhotoMail http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=39174/*http://photomail.mail.yahoo.com makes sharing a breeze. 










Re: [Wicket-user] getMarkupSettings().setStripWicketTags(true);

2006-03-13 Thread Johan Compagner
move that call from youre web application constructor to the init method of the webapplication.You shouldn't configure anything anymore in the constructor of youre WebApplicationAlways do everything in the init()
johanOn 3/13/06, Dorel Vaida [EMAIL PROTECTED] wrote:
this doesn't have any effect in version 1.2 beta1getMarkupSettings().setStripWicketTags(true);Can someone chech that out please. Maybe I'm doing something wrong.Thanks---
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=lnkkid=110944bid=241720dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



[Wicket-user] reference to image within CSS

2006-03-13 Thread Siddharth Agarwal
Hi,

I have a CSS thathas something likethis ..
style.css---.style1 {width:16px; height:22px; background: url(../../images/hello.gif) ; }---
I have style.css in the same package as the components and have added it as aStyleSheetReference. How do i make sure that the images inside the CSS are rendered fine. Will having something like this work?
com -something -component -MyComp.java -style.css  -images - 
hello.gif 
OR 
com -something -component - MyComp.java - style.css  - hello.gif 

should the image url in the CSS be replaced with string returned by call to urlFor(new PackageResourceReference(MyComp.class, hello.gif))

It would be great if i can get the existing CSS ( url(../../images/hello.gif))to work because there are references to images in lots of other places as well. 
If yes, how s'd the package structure look like. I want to be able to package the wholecomponent as a jar.

thanks.
- Siddharth 


Re: [Wicket-user] reference to image within CSS

2006-03-13 Thread Johan Compagner
fist of all you have to do this:com -something -component -MyComp.java -style.css  -images
 - 
hello.gif 
or thiscom -something -component -MyComp.java -style.css  -images
- 
hello.gif With the last it is: new PackageResourceReference(MyComp.class, images/hello.gif)
But in youre css you have this:background: url(../../images/hello.gif) ; that will not work. Because there you have to put in a real working url that new PackageResourceReference(MyComp.class, images/hello.gif)
generatesand that is something like this:contextroot/wicketservlet/resources/my.com.package.MyCom/images/hello.gifSo you need to dynamically replace that background css or generated the css on the fly.
Or have a fixed url in it like above. But then you have to know the context root and wicketservlet name upfront.johanOn 3/13/06, Siddharth Agarwal
 [EMAIL PROTECTED] wrote:
Hi,

I have a CSS thathas something likethis ..
style.css---.style1 {width:16px; height:22px; background: url(../../images/hello.gif) ; }---
I have style.css in the same package as the components and have added it as aStyleSheetReference. How do i make sure that the images inside the CSS are rendered fine. Will having something like this work?
com -something -component -MyComp.java -style.css  -images - 
hello.gif 
OR 
com -something -component - MyComp.java - style.css  - hello.gif 


should the image url in the CSS be replaced with string returned by call to urlFor(new PackageResourceReference(MyComp.class, hello.gif))

It would be great if i can get the existing CSS ( url(../../images/hello.gif))to work because there are references to images in lots of other places as well. 
If yes, how s'd the package structure look like. I want to be able to package the wholecomponent as a jar.

thanks.
- Siddharth 




[Wicket-user] Testing form with multiple submit buttons?

2006-03-13 Thread Nino Wael
Hi
 
I have a form with multiple submit buttons, how do I click the correct button? 
On formtester I can only set the submit method. Which does not allow med to 
specify which button to click.
 
 
-regards Nino


Re: [Wicket-user] reference to image within CSS

2006-03-13 Thread Siddharth Agarwal
Thanks Johan !
So having something like this hardcoded..

background: url(contextroot/wicketservlet/resources/my.com.package.MyCom/images/hello.gif) ; 
is probably ruled out since if i were to ship a component, I would not have any idea of the user's contextroot etc?.

So the only way left is to generate the url/css dynamically throughcall to 
new PackageResourceReference(MyComp.class, images/hello.gif) ?

How do you guys typically handle this (generating the background: CSS attribute dynamically?)
I would have loved to have it inthe css.

Ok am thinking of justgenerating that attribute dynamically.
So, 

style.css---.style1 {width:16px; height:22px; }

Whilei try to do somethign in renderHead for just specifying that attribute.

//dynamically specified by the component
style
.style1{
background: url(contextroot/wicketservlet/resources/my.com.package.MyCom/images/hello.gif) ; }
/style
Ok tell me this. Does it make sense for wicket to provide some place holders in the CSS for such things ?am a newbieand i might be way off mark.

style.css---.style1 {width:16px; height:22px; background: url($(hellogif)) ; }---

and while creating a Creating a StyleSheetReference,

Map context = new HashMap();
context.put(hello.gif,new PackageResourceReference(MyComp.class, images/hello.gif));
new StyleSheetReference(css_id, MyComp.class, style.css,context);

thanks!


On 3/13/06, Johan Compagner [EMAIL PROTECTED] 
 wrote: 

fist of all you have to do this:

com -something -component -MyComp.java -style.css  -images  - 
hello.gif 
or this

com -something -component -MyComp.java -style.css  -images - 
hello.gif 

With the last it is: new PackageResourceReference(MyComp.class, images/hello.gif)But in youre css you have this:
background: url(../../images/hello.gif) ; 
that will not work. Because there you have to put in a real working url that new PackageResourceReference(MyComp.class, images/hello.gif) generatesand that is something like this: 
contextroot/wicketservlet/resources/my.com.package.MyCom/images/hello.gifSo you need to dynamically replace that background css or generated the css on the fly. Or have a fixed url in it like above. But then you have to know the context root and wicketservlet name upfront. 

johan

On 3/13/06, Siddharth Agarwal [EMAIL PROTECTED] 
 wrote: 


Hi,

I have a CSS thathas something likethis ..
style.css---.style1 {width:16px; height:22px; background: url(../../images/hello.gif) ; }---
I have style.css in the same package as the components and have added it as aStyleSheetReference. How do i make sure that the images inside the CSS are rendered fine. Will having something like this work?
com -something -component -MyComp.java -style.css  -images - 
hello.gif 
OR 
com -something -component - MyComp.java - style.css  - hello.gif 

should the image url in the CSS be replaced with string returned by call to urlFor(new PackageResourceReference(MyComp.class, hello.gif))

It would be great if i can get the existing CSS ( url(../../images/hello.gif))to work because there are references to images in lots of other places as well. 
If yes, how s'd the package structure look like. I want to be able to package the wholecomponent as a jar.

thanks.

- Siddharth -- - Siddharth 


Re: [Wicket-user] reference to image within CSS

2006-03-13 Thread Johan Compagner
don't know if the base wicket core should handle this.This means some kind of parser in wicket for those kind of files.please make a RFE for this.johanOn 3/13/06, 
Siddharth Agarwal [EMAIL PROTECTED] wrote:
Thanks Johan !
So having something like this hardcoded..

background: url(contextroot/wicketservlet/resources/my.com.package.MyCom/images/hello.gif) ; 
is probably ruled out since if i were to ship a component, I would not have any idea of the user's contextroot etc?.

So the only way left is to generate the url/css dynamically throughcall to 
new PackageResourceReference(MyComp.class, images/hello.gif) ?

How do you guys typically handle this (generating the background: CSS attribute dynamically?)
I would have loved to have it inthe css.

Ok am thinking of justgenerating that attribute dynamically.
So, 

style.css---.style1 {width:16px; height:22px; }

Whilei try to do somethign in renderHead for just specifying that attribute.

//dynamically specified by the component
style
.style1{
background: url(contextroot/wicketservlet/resources/my.com.package.MyCom/images/hello.gif) ; }
/style
Ok tell me this. Does it make sense for wicket to provide some place holders in the CSS for such things ?am a newbieand i might be way off mark.

style.css---.style1 {width:16px; height:22px; background: url($(hellogif)) ; }---


and while creating a Creating a StyleSheetReference,

Map context = new HashMap();
context.put(hello.gif,new PackageResourceReference(MyComp.class, images/hello.gif));
new StyleSheetReference(css_id, MyComp.class, style.css,context);

thanks!


On 3/13/06, Johan Compagner [EMAIL PROTECTED] 
 wrote: 

fist of all you have to do this:

com -something -component -MyComp.java -style.css  -images  - 
hello.gif 
or this

com -something -component -MyComp.java -style.css  -images - 
hello.gif 

With the last it is: new PackageResourceReference(MyComp.class, images/hello.gif)But in youre css you have this:
background: url(../../images/hello.gif) ; 
that will not work. Because there you have to put in a real working url that new PackageResourceReference(MyComp.class, images/hello.gif) generatesand that is something like this: 
contextroot/wicketservlet/resources/my.com.package.MyCom/images/hello.gifSo you need to dynamically replace that background css or generated the css on the fly. Or have a fixed url in it like above. But then you have to know the context root and wicketservlet name upfront. 

johan

On 3/13/06, Siddharth Agarwal [EMAIL PROTECTED] 
 wrote: 


Hi,

I have a CSS thathas something likethis ..
style.css---.style1 {width:16px; height:22px; background: url(../../images/hello.gif) ; }---
I have style.css in the same package as the components and have added it as aStyleSheetReference. How do i make sure that the images inside the CSS are rendered fine. Will having something like this work?
com -something -component -MyComp.java -style.css  -images - 
hello.gif 
OR 
com -something -component - MyComp.java - style.css  - hello.gif 


should the image url in the CSS be replaced with string returned by call to urlFor(new PackageResourceReference(MyComp.class, hello.gif))

It would be great if i can get the existing CSS ( url(../../images/hello.gif))to work because there are references to images in lots of other places as well. 
If yes, how s'd the package structure look like. I want to be able to package the wholecomponent as a jar.

thanks.

- Siddharth -- - Siddharth 




[Wicket-user] Ajax tree view

2006-03-13 Thread Christophe Lombart
Hi all,

First of all, you are making a very nice job  - just a couple of
minutes to build a ajax tab pane with a very limited wicket knowledge.

Is there already an ajax treeview component somewhere ?
Thanks

--
Best regards,

Christophe


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


Re: [Wicket-user] Ajax tree view

2006-03-13 Thread Juergen Donnerstag
Not as far as I know, unfortunately.

Juergen

On 3/13/06, Christophe Lombart [EMAIL PROTECTED] wrote:
 Hi all,

 First of all, you are making a very nice job  - just a couple of
 minutes to build a ajax tab pane with a very limited wicket knowledge.

 Is there already an ajax treeview component somewhere ?
 Thanks

 --
 Best regards,

 Christophe


 ---
 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?cmdlnkkid0944bid$1720dat1642
 ___
 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=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax tree view

2006-03-13 Thread Matej Knopp
Well, few months ago I took wicket tree view and converted it to ajax 
tree view in basicaly in couple of minutes, just replacing links with 
ajaxfallbacklinks. But since then the wicket ajax implementation change 
a bit so it wouldn't work now (even if it had i would have hard time 
finding the source code :))


but the thing is that it should not be difficult converting wicket tree 
to ajax. The only drawback is that always the entire tree is redrawn, 
not only the changed nodes, but that doesn't seem a big issue to me 
(still much better than rendering whole page).


-Matej

Juergen Donnerstag wrote:

Not as far as I know, unfortunately.

Juergen

On 3/13/06, Christophe Lombart [EMAIL PROTECTED] wrote:

Hi all,

First of all, you are making a very nice job  - just a couple of
minutes to build a ajax tab pane with a very limited wicket knowledge.

Is there already an ajax treeview component somewhere ?
Thanks

--
Best regards,

Christophe


---
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?cmdlnkkid0944bid$1720dat1642
___
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=kkid0944bid$1720dat1642
___
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=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax tree view

2006-03-13 Thread Christophe Lombart
ok thanks I will investigate the ajaxfallbacklinks


On 3/13/06, Matej Knopp [EMAIL PROTECTED] wrote:
 Well, few months ago I took wicket tree view and converted it to ajax
 tree view in basicaly in couple of minutes, just replacing links with
 ajaxfallbacklinks. But since then the wicket ajax implementation change
 a bit so it wouldn't work now (even if it had i would have hard time
 finding the source code :))

 but the thing is that it should not be difficult converting wicket tree
 to ajax. The only drawback is that always the entire tree is redrawn,
 not only the changed nodes, but that doesn't seem a big issue to me
 (still much better than rendering whole page).

 -Matej

 Juergen Donnerstag wrote:
  Not as far as I know, unfortunately.
 
  Juergen
 
  On 3/13/06, Christophe Lombart [EMAIL PROTECTED] wrote:
  Hi all,
 
  First of all, you are making a very nice job  - just a couple of
  minutes to build a ajax tab pane with a very limited wicket knowledge.
 
  Is there already an ajax treeview component somewhere ?
  Thanks
 
  --
  Best regards,
 
  Christophe
 
 
  ---
  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?cmdlnkkid0944bid$1720dat1642
  ___
  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=kkid0944bid$1720dat1642
  ___
  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=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
Best regards,

Christophe


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


Re: [Wicket-user] ListView: Rendering table row id attribute

2006-03-13 Thread Michael K
Title: Re: [Wicket-user] ListView: Rendering table row id attribute
Hi Karl,I thought it will be much easier if I use rowindex (or may be I 'm wrong) instead of retrieving 'tr' element. In real situation I 'm going to use it against a nested table and use _javascript_ to toggle (hide/visible) for each row within the nested table and the table below it. Having said that I use rowindex to 'handle' the messy table layout. Thanks guys, its been very helpful now I got it running.Cheers,MichaelKarl-Erik R�nsen [EMAIL PROTECTED] wrote:  Why do you need to set an id for each row? Instead you can set an id for the table element and call:  var myRow = document.getElementById( “tabl
 eId”
 ).getElementsByTagName( “tr” )[indexOfRowYouWant];  Karl-Erik   On 13-03-06 12:24, "Dirk Markert" [EMAIL PROTECTED] wrote:  Hi Michael,  you need an AttributeModifier. Something like  protected void populateItem(final ListItem listItem) { add(new Label("name","Scooby").new AttributeModifier("id", ..,  new Model("row" + listItem.getIndex())); }  Dirk   2006/3/13, Michael K [EMAIL PROTECTED]:  Hi,  I want to be able to render id="rowcount" attribute when using ListView. I need it to code _javascript_ using getElementById(). Please find 
 the
 examples below:   Html code: --- table tr wicket:id = "rowToRender" id="row0" tdspan wicket:id="name"name/span/td /tr  tr wicket:id = "rowToRender" id="row1" tdspan wicket:id="name"name/span/td /tr tr wicket:id = "rowToRender" id="row2"  tdspan wicket:id="name"name/span/td /tr /table   Java code: --- add(new ListView("rowToRender",someArrayList){  protected void populateItem(final ListItem listItem) { add(new Label("name","Scooby"); }  });  Has anyone done this? Any help wo uld be greatly appreciated.  BTW, I 'm using Wicket 1.1.1.   Thanks in Advance. 
 
  --Michael   Yahoo! Mail Bring photos to life! New PhotoMail http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=39174/*http://photomail.mail.yahoo.com makes sharing a breeze.   
		Relax. Yahoo! Mail 
virus scanning helps detect nasty viruses!

Re: [Wicket-user] AjaxSubmitButton How To?

2006-03-13 Thread Igor Vaynberg
On 3/13/06, Ali Zaid [EMAIL PROTECTED] wrote:
Igor you will not believe the amount of popularity wicket is gaining(in my working group), it's becoming like the savior of our life.awesome to hear! enjoy :)-Igor


Re: [Wicket-user] reference to image within CSS

2006-03-13 Thread Eelco Hillenius
I am currently investigating if we can do without the explicit
registration. We can't totally do without, as we need at least
classloader to load any resources like that, but the intend now is to
make it at least easier. More about this later this week.

Eelco

On 3/13/06, Siddharth Agarwal [EMAIL PROTECTED] wrote:

 Thanks Johan !

 So having something like this hardcoded..

 background:
 url(contextroot/wicketservlet/resources/my.com.package.MyCom/images/hello.gif)
 ;
 is probably ruled out since if i were to ship a component, I would not have
 any idea of the user's contextroot etc?.

 So the only way left is to generate the url/css dynamically through call to
 new PackageResourceReference(MyComp.class, images/hello.gif)  ?

 How do you guys typically handle this (generating the background: CSS
 attribute dynamically?)
 I would have loved to have it in the css.

 Ok am thinking of just generating that attribute dynamically.
 So,


 style.css
 ---
 .style1 {
  width:16px; height:22px;
 }


 While i try to do somethign in renderHead for just specifying that
 attribute.

 //dynamically specified by the component
 style
 .style1{
  background:
 url(contextroot/wicketservlet/resources/my.com.package.MyCom/images/hello.gif)
 ;
 }
 /style

 Ok tell me this. Does it make sense for wicket to provide some place holders
 in the CSS for such things ?am a newbie and i might be way off mark.

 style.css
 ---
 .style1 {
  width:16px; height:22px;
  background: url($(hellogif)) ;
 }
 ---

 and while creating a Creating a StyleSheetReference,

 Map context = new HashMap();
 context.put(hello.gif,new PackageResourceReference(MyComp.class,
 images/hello.gif));
 new StyleSheetReference(css_id, MyComp.class, style.css,context);

 thanks!




 On 3/13/06, Johan Compagner [EMAIL PROTECTED]  wrote:
 
  fist of all
 
  you have to do this:
 
 
 
 
  com
   -something
 -component
 -MyComp.java
 -style.css
 -images
   - hello.gif
 
 
 
  or this
 
 
 
 
 
  com
   -something
 -component
 -MyComp.java
 -style.css
 -images
   - hello.gif
 
 
 
  With the last it is: new PackageResourceReference(MyComp.class,
 images/hello.gif)
  But in youre css you have this:
 
 
   background: url(../../images/hello.gif) ;
 
 
  that will not work. Because there you have to put in a real working url
 that
  new PackageResourceReference(MyComp.class, images/hello.gif)
 
  generates
  and that is something like this:
 
 
 contextroot/wicketservlet/resources/my.com.package.MyCom/images/hello.gif
 
  So you need to dynamically replace that background css or generated the
 css on the fly.
  Or have a fixed url in it like above. But then you have to know the
 context root and wicketservlet name upfront.
 
 
  johan
 
 
 
 
  On 3/13/06, Siddharth Agarwal [EMAIL PROTECTED]  wrote:
  
  
   Hi,
  
   I have a CSS that has something like this ..
  
   style.css
   ---
   .style1 {
width:16px; height:22px;
background: url(../../images/hello.gif) ;
   }
   ---
  
   I have style.css in the same package as the components and have added it
 as a
   StyleSheetReference. How do i make sure that the images inside the CSS
 are rendered fine. Will having something like this work?
  
   com
-something
  -component
  -MyComp.java
  -style.css
  -images
- hello.gif
  
  
   OR
  
   com
-something
  -component
  - MyComp.java
  - style.css
  - hello.gif
   should the image url in the CSS be replaced with string returned by call
 to
   urlFor( new PackageResourceReference(MyComp.class, hello.gif))
  
   It would be great if i can get the existing CSS (
 url(../../images/hello.gif) ) to work because there are
 references to images in lots of other places as well.
   If yes, how s'd the package structure look like. I want to be able to
 package the whole component as a jar.
  
   thanks.
  
   - Siddharth
 
 



 --
 - Siddharth


---
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=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net

Re: [Wicket-user] reference to image within CSS

2006-03-13 Thread Johan Compagner
that won't fix Siddharth problemBecause he needs an url that is dynamic inside a css.johanOn 3/13/06, Eelco Hillenius 
[EMAIL PROTECTED] wrote:I am currently investigating if we can do without the explicit
registration. We can't totally do without, as we need at leastclassloader to load any resources like that, but the intend now is tomake it at least easier. More about this later this week.Eelco
On 3/13/06, Siddharth Agarwal [EMAIL PROTECTED] wrote: Thanks Johan ! So having something like this hardcoded.. background:
 url(contextroot/wicketservlet/resources/my.com.package.MyCom/images/hello.gif) ; is probably ruled out since if i were to ship a component, I would not have any idea of the user's contextroot etc?.
 So the only way left is to generate the url/css dynamically through call to new PackageResourceReference(MyComp.class, images/hello.gif)? How do you guys typically handle this (generating the background: CSS
 attribute dynamically?) I would have loved to have it in the css. Ok am thinking of just generating that attribute dynamically. So, style.css ---
 .style1 {width:16px; height:22px; } While i try to do somethign in renderHead for just specifying that attribute. //dynamically specified by the component
 style .style1{background: url(contextroot/wicketservlet/resources/my.com.package.MyCom/images/hello.gif) ; } /style Ok tell me this. Does it make sense for wicket to provide some place holders
 in the CSS for such things ?am a newbie and i might be way off mark. style.css --- .style1 {width:16px; height:22px;background: url($(hellogif)) ;
 } --- and while creating a Creating a StyleSheetReference, Map context = new HashMap(); context.put(hello.gif,new PackageResourceReference(MyComp.class
, images/hello.gif)); new StyleSheetReference(css_id, MyComp.class, style.css,context); thanks! On 3/13/06, Johan Compagner 
[EMAIL PROTECTED]  wrote:   fist of all   you have to do this:  com
 -something -component -MyComp.java -style.css -images
 - hello.gif or this   com -something
 -component -MyComp.java -style.css -images
 - hello.gif With the last it is: new PackageResourceReference(MyComp.class, images/hello.gif)  But in youre css you have this:
   background: url(../../images/hello.gif) ;that will not work. Because there you have to put in a real working url that  new PackageResourceReference(
MyComp.class, images/hello.gif)   generates  and that is something like this:   contextroot/wicketservlet/resources/my.com.package.MyCom/images/hello.gif
   So you need to dynamically replace that background css or generated the css on the fly.  Or have a fixed url in it like above. But then you have to know the context root and wicketservlet name upfront.
johan  On 3/13/06, Siddharth Agarwal [EMAIL PROTECTED]  wrote:
   Hi, I have a CSS that has something like this .. style.css   ---   .style1 {
  width:16px; height:22px;  background: url(../../images/hello.gif) ;   }   --- I have style.css in the same package as the components and have added it
 as a   StyleSheetReference. How do i make sure that the images inside the CSS are rendered fine. Will having something like this work? com  -something
  -component  -MyComp.java  -style.css  -images
  - hello.gif   OR com  -something  -component
  - MyComp.java  - style.css  - hello.gif   should the image url in the CSS be replaced with string returned by call
 to   urlFor( new PackageResourceReference(MyComp.class, hello.gif)) It would be great if i can get the existing CSS ( url(../../images/hello.gif) ) to work because there are
 references to images in lots of other places as well.   If yes, how s'd the package structure look like. I want to be able to package the whole component as a jar. thanks.
 - Siddharth   -- - Siddharth---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?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Best practice for handling exceptions?

2006-03-13 Thread Frank Silbermann








I have a DataTable
(Wicket-extensions) that gets data from JDBC. My implementation of:



java.util.Iterator IDataProvider.iterator(int first,
int count) 



throws a variety of API exceptions (e.g. SQLException) which I have to catch, because the IDataProvider interface does not allow my method to throw
them. There is nothing I can do to
recover; I just want to do the standard default correct thing.



I suppose my application should have an
error page registered, and my exception handler should link to it. Would someone please point me to an
example or send me some sample code demonstrating the standard Wicket way of
doing this?



Thank you.








Re: [Wicket-user] Best practice for handling exceptions?

2006-03-13 Thread Igor Vaynberg
you dont do anything fancy. wrap that exception in a runtime exception and throw that. wicket will show the default error page by default. if you want to have a custom one simple create a page and set its class into application 
settings.seterrorpage() or whatever that method is called.-IgorOn 3/13/06, Frank Silbermann 
[EMAIL PROTECTED] wrote:
















I have a DataTable
(Wicket-extensions) that gets data from JDBC. My implementation of:



java.util.Iterator
 IDataProvider.iterator(int first,
int count) 



throws a variety of API exceptions (e.g. SQLException) which I have to catch, because the IDataProvider
 interface does not allow my method to throw
them. There is nothing I can do to
recover; I just want to do the standard default correct thing.



I suppose my application should have an
error page registered, and my exception handler should link to it. Would someone please point me to an
example or send me some sample code demonstrating the standard Wicket way of
doing this?



Thank you.









Re: [Wicket-user] JavaOne, Wicket, NetBeans

2006-03-13 Thread Geertjan Wielenga


Hi all,

OK, Petr Pisl (my co-presenter for JavaOne, see previous e-mail for 
details) and I have made some progress on our Wicket plugin. Here it is 
described:


http://blogs.sun.com/roller/page/geertjan?entry=wicket_increasing_productivity_even_further

So, now you can select the Wicket libraries while creating the app (or 
afterwards) and you can drag an icon representing a Label component and 
generate code in Java and HTML  simultaneously when you drop the 
component. (Screenshots are at the link above.) There are some questions 
at the end of that blog -- any comments to them would be highly appreciated!


-- Geertjan




Geertjan Wielenga wrote:




Hi all,

Firstly, I want to apologize for not being a regular contributor to 
these Wicket lists (at all). Some time ago I blogged about Wicket 
quite a bit (http://blogs.sun.com/geertjan), but since then other work 
activities have taken up my time.


I work as a technical writer for NetBeans in Prague, Czech Republic.

I'm going to be at JavaOne, where I will do a presentation called 
Developing an Editor for your Favorite Web Framework.


Basically, I'll show how you can strip the NetBeans IDE to its bare 
essentials, and then add plug-ins for the editor functionality 
specific to whatever web framework you want to use, and then finish 
off with some branding -- adding a splash screen, creating an 
executable, and then running the resulting executable with just the 
NetBeans core plus your plug-ins.


So, that's where Wicket comes in! I'm going to use Wicket as my 
example web framework for purposes of this presentation at JavaOne.


For this reason, I'd really appreciate your help. When you think of: 
Wicket IDE, what would be some of the features that you'd like to be 
there? I'm thinking of:


-- project templates
-- project samples
-- a single file template that creates two source files: HTML file and 
Java source file
-- a palette that lets you drag components into the HML file, while 
simultaneously generating the associated Java code in the Java source 
file
-- being able to jump for the HTML code to the related Java code, 
using a shortcut key or menu item in the editor


Do the above make sense to you? Are there other things you can think of?

Any help would be appreciated.

Thanks,

Geertjan



---
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=lnkkid=110944bid=241720dat=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=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] JavaOne, Wicket, NetBeans

2006-03-13 Thread Riyad Kalla
This is fantastic headway, keep it up guys. IDE support for Wicket is in 
high demand and I'm sure most people on this list appreciate the 
exposure and time you are putting towards this.


Best,
Riyad

Geertjan Wielenga wrote:


Hi all,

OK, Petr Pisl (my co-presenter for JavaOne, see previous e-mail for 
details) and I have made some progress on our Wicket plugin. Here it 
is described:


http://blogs.sun.com/roller/page/geertjan?entry=wicket_increasing_productivity_even_further 



So, now you can select the Wicket libraries while creating the app (or 
afterwards) and you can drag an icon representing a Label component 
and generate code in Java and HTML  simultaneously when you drop the 
component. (Screenshots are at the link above.) There are some 
questions at the end of that blog -- any comments to them would be 
highly appreciated!


-- Geertjan




Geertjan Wielenga wrote:




Hi all,

Firstly, I want to apologize for not being a regular contributor to 
these Wicket lists (at all). Some time ago I blogged about Wicket 
quite a bit (http://blogs.sun.com/geertjan), but since then other 
work activities have taken up my time.


I work as a technical writer for NetBeans in Prague, Czech Republic.

I'm going to be at JavaOne, where I will do a presentation called 
Developing an Editor for your Favorite Web Framework.


Basically, I'll show how you can strip the NetBeans IDE to its bare 
essentials, and then add plug-ins for the editor functionality 
specific to whatever web framework you want to use, and then finish 
off with some branding -- adding a splash screen, creating an 
executable, and then running the resulting executable with just the 
NetBeans core plus your plug-ins.


So, that's where Wicket comes in! I'm going to use Wicket as my 
example web framework for purposes of this presentation at JavaOne.


For this reason, I'd really appreciate your help. When you think of: 
Wicket IDE, what would be some of the features that you'd like to 
be there? I'm thinking of:


-- project templates
-- project samples
-- a single file template that creates two source files: HTML file 
and Java source file
-- a palette that lets you drag components into the HML file, while 
simultaneously generating the associated Java code in the Java source 
file
-- being able to jump for the HTML code to the related Java code, 
using a shortcut key or menu item in the editor


Do the above make sense to you? Are there other things you can think of?

Any help would be appreciated.

Thanks,

Geertjan



---
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=lnkkid=110944bid=241720dat=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=lnkkid=110944bid=241720dat=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=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] IllegalStateException in WebSession.valueUnbound 1.2beta1 on Tomcat 5.5.15

2006-03-13 Thread Jerry Smith
Undeploying and redeploying my webapp I'm getting:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.IllegalStateException: getId: Session already
invalidated
at
org.apache.catalina.session.StandardSession.getId(StandardSession.java:3
28)
at
org.apache.catalina.session.StandardSessionFacade.getId(StandardSessionF
acade.java:78)
at
wicket.protocol.http.WebSession.valueUnbound(WebSession.java:144)
at
org.apache.catalina.session.StandardSession.removeAttributeInternal(Stan
dardSession.java:1607)
at
org.apache.catalina.session.StandardSession.expire(StandardSession.java:
737)
at
org.apache.catalina.session.StandardSession.expire(StandardSession.java:
643)
at
org.apache.catalina.session.PersistentManagerBase.stop(PersistentManager
Base.java:966)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4316)
at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:89
2)
at
org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1159
)
at
org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1131)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
2)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)
at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1053)
at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1065)
at
org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:512)
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)
at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
... 6 more

Looking at the Tomcat source it's calling interested
HttpSessionListeners first, then invalidates the session, then notifies
the HttpSessionBindingListeners.  Is this the proper order for the spec?
If so, maybe WebApplication should implement HttpSessionListener, and
WebSession should check if the session is valid inside valueUnbound?


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


Re: [Wicket-user] AjaxSubmitButton How To?

2006-03-13 Thread Ali Zaid
Eelco :), nothing till this moment about wicket I don't like, my only
hope is that wicket in Action be realesed soon, and I cover my weak
points, which I still have allot, other wise, I'm finishing my 2ed
application using wicket, and I have never been as productive and
impressive as I am now using wicket, using wicket, Ajax and db4o I not
only have managed to wrap 2 projects, but also deliver client request
and modification in record time (maybe record to me too :))

Oh, and I still didn't manage to make the form submit using Ajax ;),
if someone can wrap a simple code, I don't really know what I'm doing
wrong.

On 3/13/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Good to hear. Just remember there is no perfect framework, and you
 *will* find things about Wicket you don't like. Anyway, if you find
 them, it's open source and please help our community to improve it.

 Eelco

  Igor you will not believe the amount of popularity wicket is gaining
  (in my working group), it's becoming like the savior of our life.


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



--
Regards, Ali


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


[Wicket-user] WicketTester replaces Application class

2006-03-13 Thread Nick Heudecker
The problem with WicketTester is it replaces your Application subclass, so if you're using something like Spring, you no longer have access to Spring-managed beans. Is there a convenient workaround for this?


Re: [Wicket-user] IllegalStateException in WebSession.valueUnbound 1.2beta1 on Tomcat 5.5.15

2006-03-13 Thread Johan Compagner
already fixed in head.On 3/13/06, Jerry Smith [EMAIL PROTECTED] wrote:
Undeploying and redeploying my webapp I'm getting:java.lang.reflect.InvocationTargetExceptionat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)atsun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Caused by: java.lang.IllegalStateException: getId: Session already
invalidatedatorg.apache.catalina.session.StandardSession.getId(StandardSession.java:328)atorg.apache.catalina.session.StandardSessionFacade.getId(StandardSessionFacade.java:78)at
wicket.protocol.http.WebSession.valueUnbound(WebSession.java:144)atorg.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1607)atorg.apache.catalina.session.StandardSession.expire
(StandardSession.java:737)atorg.apache.catalina.session.StandardSession.expire(StandardSession.java:643)atorg.apache.catalina.session.PersistentManagerBase.stop(PersistentManager
Base.java:966)atorg.apache.catalina.core.StandardContext.stop(StandardContext.java:4316)atorg.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892)atorg.apache.catalina.startup.HostConfig.undeployApps
(HostConfig.java:1159)atorg.apache.catalina.startup.HostConfig.stop(HostConfig.java:1131)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)atorg.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1053)atorg.apache.catalina.core.ContainerBase.stop
(ContainerBase.java:1065)atorg.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)atorg.apache.catalina.core.StandardService.stop(StandardService.java:512)atorg.apache.catalina.core.StandardServer.stop
(StandardServer.java:734)at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)at org.apache.catalina.startup.Catalina.start(Catalina.java:576)... 6 moreLooking at the Tomcat source it's calling interested
HttpSessionListeners first, then invalidates the session, then notifiesthe HttpSessionBindingListeners.Is this the proper order for the spec?If so, maybe WebApplication should implement HttpSessionListener, and
WebSession should check if the session is valid inside valueUnbound?---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?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IllegalStateException in WebSession.valueUnbound 1.2beta1 on Tomcat 5.5.15

2006-03-13 Thread Johan Compagner
and i agreeIt is a stupid implementation or stupid spec or what everit doesn't make any sense that you get an value unboundBut can't do anything with it (just asking for stuff not setting then it can throw an error)
johanOn 3/13/06, Jerry Smith [EMAIL PROTECTED] wrote:
Undeploying and redeploying my webapp I'm getting:java.lang.reflect.InvocationTargetExceptionat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)atsun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Caused by: java.lang.IllegalStateException: getId: Session already
invalidatedatorg.apache.catalina.session.StandardSession.getId(StandardSession.java:328)atorg.apache.catalina.session.StandardSessionFacade.getId(StandardSessionFacade.java:78)at
wicket.protocol.http.WebSession.valueUnbound(WebSession.java:144)atorg.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1607)atorg.apache.catalina.session.StandardSession.expire
(StandardSession.java:737)atorg.apache.catalina.session.StandardSession.expire(StandardSession.java:643)atorg.apache.catalina.session.PersistentManagerBase.stop(PersistentManager
Base.java:966)atorg.apache.catalina.core.StandardContext.stop(StandardContext.java:4316)atorg.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892)atorg.apache.catalina.startup.HostConfig.undeployApps
(HostConfig.java:1159)atorg.apache.catalina.startup.HostConfig.stop(HostConfig.java:1131)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)atorg.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1053)atorg.apache.catalina.core.ContainerBase.stop
(ContainerBase.java:1065)atorg.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)atorg.apache.catalina.core.StandardService.stop(StandardService.java:512)atorg.apache.catalina.core.StandardServer.stop
(StandardServer.java:734)at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)at org.apache.catalina.startup.Catalina.start(Catalina.java:576)... 6 moreLooking at the Tomcat source it's calling interested
HttpSessionListeners first, then invalidates the session, then notifiesthe HttpSessionBindingListeners.Is this the proper order for the spec?If so, maybe WebApplication should implement HttpSessionListener, and
WebSession should check if the session is valid inside valueUnbound?---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?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Request for a feature!

2006-03-13 Thread nato
But the locale param is not bookmarkable; the param is not visible in
the URL. BTW I'm using Wicket 1.2beta

On 3/13/06, Johan Compagner [EMAIL PROTECTED] wrote:
 make youre bookmarkable url with the locale param yourself:

 new BookmarkablePageLink(id, MyPage.class, new
 PageParameters().put(locale,locale.toString()));

 And then in youre constructor of the page set the locale you are given.

 johan



 On 3/12/06, nato [EMAIL PROTECTED] wrote:
 
  [Warning: my English sucks!]

 Hi. I have been evaluating Wicket for 4 days now. I would like to
 request a feature for i18n that I wish other MVC framework had.

 Based on what I've learned on Wicket's wiki, the Wicket pages' default
 locale depends on the header property sent by the browsers (correct me
 if I'm wrong). And I can set the pages to use a different locale other
 than the default. But my problem is this: after I set the session to
  use another locale (japanese for example), of course, the page's
 content also change to japanese but the URL do not change. The problem
 is, the japanese page is no longer bookmarkable.

 A scenario in real-life is this: A user visited my site, selected the
 japanese
 locale and found some content in there interesting, he would probably
 copy the page's URL
 http://mysite/myapp/app?bookmarkablePage=Page2
 and send it to a friend saying,
 Hey buddy! go to this URL and read the article. Don't worry, you will
 surely
 understand the text because it's in Japanese language.
 Then, his friend will reply saying,
 Are you crazy? The URL you've given me is not in Japanese, it's in
 English.

 Of course, it's because his friend got the default locale which is
 English. So I suggest that aside from Wickets getting the browsers
 locale as the default for the session, let the session also be set by
  default according to a URL in the page (but not the
 parameterized-bookmarkable-page way because I'm talking about the
 session's default locale).


 ---
  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?cmdlnkkid0944bid$1720dat1642

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


Re: [Wicket-user] Request for a feature!

2006-03-13 Thread nato
You're right. I was actually looking at the wrong page that's why I
did not see the querystring.

On 3/14/06, Johan Compagner [EMAIL PROTECTED] wrote:
 what do you mean?
 you can append anything you want as a page parameter as long as it can be
 presented in a string.
 You just have to make in visible in the url just like i did in the example i
 gave you:


  new BookmarkablePageLink(id, MyPage.class, new
  PageParameters().put(locale,locale.toString()));

 johan



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


[Wicket-user] nesting components

2006-03-13 Thread Vincent Jenks
I'm trying to nest a Label within a Link so the name of the link displayed is dynamic (please fill me in if there's a better way.)Here's my Link  Label on the page:a href="" wicket:id=linkspan wicket:id=linkNamelink/span/a
Here's the panel class:public class TrailPanel extends Panel{ public TrailPanel(String id, String linkName) {  super(id);//create link w/ event handler
  Link currentLink = new Link(link)  {   public void onClick()   {//redirectsetResponsePage(getPage());   }  };  
//add link to page  add(currentLink);  add(new Label(linkName, linkName)); }}I'm getting this exception, which makes sense..just don't know how to fix it:
wicket.markup.MarkupException: Unable to find component with id 'linkName' in [MarkupContainer [Component id = link, page = com.myapp.ui.admin.EditProduct, path = 1:trailPanel:link.TrailPanel$1, isVisible = true, isVersioned = true]]. This means that you declared wicket:id=linkName in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match
Don't shoot the n00b!!


Re: [Wicket-user] nesting components

2006-03-13 Thread Eelco Hillenius
As you nest them, you should do:

add(currentLink);
currentLink.add(new Label(linkName, linkName));

instead of:


add(currentLink);
add(new Label(linkName, linkName));

which adds those two components at the same level.

Eelco


On 3/13/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 I'm trying to nest a Label within a Link so the name of the link displayed
 is dynamic (please fill me in if there's a better way.)

 Here's my Link  Label on the page:

 a href=# wicket:id=linkspan
 wicket:id=linkNamelink/span/a

 Here's the panel class:

 public class TrailPanel extends Panel
 {
 public TrailPanel(String id, String linkName)
 {
 super(id);

 //create link w/ event handler
  Link currentLink = new Link(link)
 {
 public void onClick()
 {
 //redirect
 setResponsePage(getPage());
 }
 };

 //add link to page
 add(currentLink);
 add(new Label(linkName, linkName));
 }
 }

 I'm getting this exception, which makes sense..just don't know how to fix
 it:

 wicket.markup.MarkupException: Unable to find component with id 'linkName'
 in [MarkupContainer [Component id = link, page =
 com.myapp.ui.admin.EditProduct, path = 1:trailPanel:link.TrailPanel$1,
 isVisible = true, isVersioned = true]]. This means that you declared
 wicket:id=linkName in your markup, but that you either did not add the
 component to your page at all, or that the hierarchy does not match

 Don't shoot the n00b!!



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


[Wicket-user] Re: Request for a feature!

2006-03-13 Thread nato
Disregard this message of mine. It's nonsense. (I think I must learn
Wicket first or exert some of my brains effort before sending to this
list a foolish question like this so that noone's valuable time is
wasted.)

Hmmm. I think I love Wicket now. If Wicket were a lady, I would kiss
and hug her. :D

On 3/13/06, nato [EMAIL PROTECTED] wrote:
 [Warning: my English sucks!]

 Hi. I have been evaluating Wicket for 4 days now. I would like to
 request a feature for i18n that I wish other MVC framework had.

 Based on what I've learned on Wicket's wiki, the Wicket pages' default
 locale depends on the header property sent by the browsers (correct me
 if I'm wrong). And I can set the pages to use a different locale other
 than the default. But my problem is this: after I set the session to
 use another locale (japanese for example), of course, the page's
 content also change to japanese but the URL do not change. The problem
 is, the japanese page is no longer bookmarkable.

 A scenario in real-life is this: A user visited my site, selected the japanese
 locale and found some content in there interesting, he would probably
 copy the page's URL
 http://mysite/myapp/app?bookmarkablePage=Page2
 and send it to a friend saying,
 Hey buddy! go to this URL and read the article. Don't worry, you will surely
 understand the text because it's in Japanese language.
 Then, his friend will reply saying,
 Are you crazy? The URL you've given me is not in Japanese, it's in English.

 Of course, it's because his friend got the default locale which is
 English. So I suggest that aside from Wickets getting the browsers
 locale as the default for the session, let the session also be set by
 default according to a URL in the page (but not the
 parameterized-bookmarkable-page way because I'm talking about the
 session's default locale).



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


[Wicket-user] Re: Request for a feature!

2006-03-13 Thread nato
Disregard this message of mine. It's nonsense. (I think I must learn
Wicket first or exert some of my brains effort before sending to this
list a foolish question like this so that noone's valuable time is
wasted.)

Hmmm. I think I love Wicket now. If Wicket were a lady, I would kiss
and hug her. :D

On 3/13/06, nato [EMAIL PROTECTED] wrote:
 [Warning: my English sucks!]

 Hi. I have been evaluating Wicket for 4 days now. I would like to
 request a feature for i18n that I wish other MVC framework had.

 Based on what I've learned on Wicket's wiki, the Wicket pages' default
 locale depends on the header property sent by the browsers (correct me
 if I'm wrong). And I can set the pages to use a different locale other
 than the default. But my problem is this: after I set the session to
 use another locale (japanese for example), of course, the page's
 content also change to japanese but the URL do not change. The problem
 is, the japanese page is no longer bookmarkable.

 A scenario in real-life is this: A user visited my site, selected the japanese
 locale and found some content in there interesting, he would probably
 copy the page's URL
 http://mysite/myapp/app?bookmarkablePage=Page2
 and send it to a friend saying,
 Hey buddy! go to this URL and read the article. Don't worry, you will surely
 understand the text because it's in Japanese language.
 Then, his friend will reply saying,
 Are you crazy? The URL you've given me is not in Japanese, it's in English.

 Of course, it's because his friend got the default locale which is
 English. So I suggest that aside from Wickets getting the browsers
 locale as the default for the session, let the session also be set by
 default according to a URL in the page (but not the
 parameterized-bookmarkable-page way because I'm talking about the
 session's default locale).



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


Re: [Wicket-user] Evaluation question

2006-03-13 Thread Matthias Albert

Thank you for your very quick response.
I found out myself what caused this error. I used one of my orginal HTML 
pages that didn't have a wicket id.


But this raises my nect question: Is there a way to automatically use 
the same component id for a navigation component in all pages so that 
these can be unchanged?


Can several pages share a common class?

This would be very useful if I would migrate to wicket.

Thank you

Matthias Albert


Igor Vaynberg schrieb:
this means that you have added a component in your code but no markup 
references this component so it is not and never will be rendered.


if you give us your code we can point out exactly where the problem is.

-Igor


On 3/12/06, *Matthias Albert* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote:

I'm evaluating Wicket for use in an existing web application with many
quasi-static pages. I have worked through the helloworld an the
navomativc example. All was ok, then I started to port the navomatic
example to my own web application. The navborder item orginates from
the
navomatic item.

I hope anybody can help me with this error page output:


 Start of error page
Root cause:

wicket.WicketRuntimeException: The component(s) below failed to render:

1. [MarkupContainer [Component id = navborder, page = content.index,
path = 0:navborder.NavigationBorder, isVisible = true, isVersioned =
false]]
2. [MarkupContainer [Component id = navborder, page = content.index ,
path = 0:navborder:navborder.BoxBorder, isVisible = true, isVersioned =
false]]
3. [MarkupContainer [Component id = bodyBorder, page = content.index,
path = 0:navborder:bodyBorder.BoxBorder, isVisible = true,
isVersioned =
false]]

at wicket.Page.checkRendering(Page.java:1068)
at wicket.Page.doRender(Page.java:393)
at

wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:224)


 end of error page

My pages and start at the content package.


Where do I have to search for this error?

Thank you

Matthias Albert


---
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=lnkkid=110944bid=241720dat=121642
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
mailto:Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
https://lists.sourceforge.net/lists/listinfo/wicket-user






---
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=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Evaluation question

2006-03-13 Thread Igor Vaynberg
you can use markup inheritance and add the common components to the super class. there is an explanation on our wiki.-IgorOn 3/13/06, Matthias Albert
 [EMAIL PROTECTED] wrote:Thank you for your very quick response.
I found out myself what caused this error. I used one of my orginal HTMLpages that didn't have a wicket id.But this raises my nect question: Is there a way to automatically usethe same component id for a navigation component in all pages so that
these can be unchanged?Can several pages share a common class?This would be very useful if I would migrate to wicket.Thank youMatthias AlbertIgor Vaynberg schrieb: this means that you have added a component in your code but no markup
 references this component so it is not and never will be rendered. if you give us your code we can point out exactly where the problem is. -Igor On 3/12/06, *Matthias Albert* 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm evaluating Wicket for use in an existing web application with many quasi-static pages. I have worked through the helloworld an the
 navomativc example. All was ok, then I started to port the navomatic example to my own web application. The navborder item orginates from the navomatic item. I hope anybody can help me with this error page output:
Start of error page Root cause: wicket.WicketRuntimeException: The component(s) below failed to render: 1. [MarkupContainer [Component id = navborder, page = 
content.index, path = 0:navborder.NavigationBorder, isVisible = true, isVersioned = false]] 2. [MarkupContainer [Component id = navborder, page = content.index , path = 0:navborder:
navborder.BoxBorder, isVisible = true, isVersioned = false]] 3. [MarkupContainer [Component id = bodyBorder, page = content.index, path = 0:navborder:bodyBorder.BoxBorder, isVisible = true,
 isVersioned = false]] at wicket.Page.checkRendering(Page.java:1068) at wicket.Page.doRender(Page.java:393) at wicket.request.target.component.BookmarkablePageRequestTarget.respond
(BookmarkablePageRequestTarget.java:224)   end of error page My pages and start at the content package. Where do I have to search for this error?
 Thank you Matthias Albert --- 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=lnkkid=110944bid=241720dat=121642 
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user
---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=lnkkid=110944bid=241720dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxSubmitButton How To?

2006-03-13 Thread Igor Vaynberg
i added an example of ajaxsubmitbutton to the ajax examples in wicket. go to form example and there will be two buttons, the ajax submit and a regular submit. the ajax submit will validate the form and update the feedback panel via ajax.
there is also a wicket ajax debug feature that might help you find the problem. call getAjaxSettings().setAjaxDebugModeEnabled(true); in your app.init() and if you have any ajax components on the page you will have a WICKET AJAX DEBUG link on the bottom left corner of the screen. click that and it will open a log console.
-IgorOn 3/13/06, Ali Zaid [EMAIL PROTECTED] wrote:
Eelco :), nothing till this moment about wicket I don't like, my onlyhope is that wicket in Action be realesed soon, and I cover my weakpoints, which I still have allot, other wise, I'm finishing my 2edapplication using wicket, and I have never been as productive and
impressive as I am now using wicket, using wicket, Ajax and db4o I notonly have managed to wrap 2 projects, but also deliver client requestand modification in record time (maybe record to me too :))Oh, and I still didn't manage to make the form submit using Ajax ;),
if someone can wrap a simple code, I don't really know what I'm doingwrong.On 3/13/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Good to hear. Just remember there is no perfect framework, and you
 *will* find things about Wicket you don't like. Anyway, if you find them, it's open source and please help our community to improve it. Eelco  Igor you will not believe the amount of popularity wicket is gaining
  (in my working group), it's becoming like the savior of our life. --- 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?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--Regards, Ali
---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?cmdlnkkid0944bid$1720dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



[Wicket-user] two forms on the same page

2006-03-13 Thread kurt heston
I've got a page with two forms on it.  They both use a 
CompoundPropertyModel and work perfectly aside from one thing: they 
don't update when their model changes.


I've passed a reference of the same POJO instance to each of them.

public class MyPage extends WebPage {
SomePojoClass pojo = new SomePojoClass();
...
public MyPage() {
add(new SearchForm(new CompoundPropertyModel(pojo)));
add(new ChangeRecForm(new CompoundPropertyModel(pojo)));
}
..
class SearchForm extends Form {
...
onSubmit() {
   doStuffToModel((SomePojoClass)SearchForm.this.getModelObject());  
   this.getParent().get(ChangeRecForm).modelChanged();

}

I was hoping changing the properties in the object and calling 
modelChanged on the not submitted would cause it to refresh its fields, 
no such luck.
The code executes, but ChangeRecForm's fields do not change.  Where is 
the gap in my understanding of things?



---
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=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] set an anchor to land on in onSubmit

2006-03-13 Thread kurt heston

Thanks, Arto.  I'm using it, works fine.

Arto Arffman wrote:
Well, I have used different approach; with javascript you can scroll 
to where you were before hitting submit. I once posted a behaviour 
that automatically takes care of that. I found it from archives ( 
http://sourceforge.net/mailarchive/message.php?msg_id=13241596). That 
was done for 1.1 and it could be more elegant. But you can use it for 
a starter and develop it a bit further. Of course you should use 
anchors, if javascript-free solution is required.


 
2006/3/12, kurt heston [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]:


I've got a page with multiple forms.  Every time I press a submit
button, the browser starts me at the top of the page again.  I
then have
to scroll back to where I want to be.  Is there a way to set an anchor
name to land on (in the URL) in the onSubmit method so the browser
auto-scrolls to where I want to be?


---
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=lnkkid=110944bid=241720dat=121642
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
mailto:Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
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=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] set an anchor to land on in onSubmit

2006-03-13 Thread kurt heston
I figured it out.  I was changing the model in a place that was being 
executed every time.


False alarm. :)

kurt heston wrote:

Thanks, Arto.  I'm using it, works fine.

Arto Arffman wrote:
Well, I have used different approach; with javascript you can scroll 
to where you were before hitting submit. I once posted a behaviour 
that automatically takes care of that. I found it from archives ( 
http://sourceforge.net/mailarchive/message.php?msg_id=13241596). That 
was done for 1.1 and it could be more elegant. But you can use it for 
a starter and develop it a bit further. Of course you should use 
anchors, if javascript-free solution is required.


 
2006/3/12, kurt heston [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]:


I've got a page with multiple forms.  Every time I press a submit
button, the browser starts me at the top of the page again.  I
then have
to scroll back to where I want to be.  Is there a way to set an 
anchor

name to land on (in the URL) in the onSubmit method so the browser
auto-scrolls to where I want to be?


---
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=lnkkid=110944bid=241720dat=121642

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


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





---
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=lnkkid=110944bid=241720dat=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=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user