Re: [Wicket-user] When the connetction must be opened and when it have to closed?

2007-01-15 Thread Igor Vaynberg

override form.process()

-igor

On 1/14/07, Ramazan Pekin <[EMAIL PROTECTED]> wrote:


Hi everone,

I am trying to develop a structure and I want this; already opened and
already closed the connection when my form is submitted and my forms logic
finished. I have a BaseForm class, which overriding OnSubmit function and my
other forms extends this BaseForm class. On Struts, when form submit I have
overrided the dispatchaction execute method and openning my connection, and
generate actionForward and closing connection. How can I make kind of a
struture with wicket framework? I have controlled the user with my BaseForm,
BaseApplicaiton, BaseSession, I want to same this thing with my connection.
I have seen on every form class I have to override the OnSubmit function, is
there any other steps when the OnSubmit event formed?

--
Want to start your own business? Learn how on Yahoo! Small 
Business.

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

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



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


Re: [Wicket-user] error deleting cookie when callingdeletWicketCookie

2007-01-15 Thread Nino Wael
Ok, seems that we got more than enough good reasons to upgrade

 

Thanks for the info..

 

Regards Nino

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: 12. januar 2007 17:02
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] error deleting cookie when callingdeletWicketCookie

 

in 1.2 it was used through, just upgrade to 1.2.4

-igor



On 1/12/07, Johan Compagner <[EMAIL PROTECTED] > wrote:

thats really old...
those cookies are not used anymore thats now done based on the window name. 

johan



On 1/12/07, Nino Wael < [EMAIL PROTECTED]  > wrote:



This is running wicket 1.2 btw, I'll try to remember version numbers in 
the original mails from now on.

 

Regards Nino





From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 12. januar 2007 13:50
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] error deleting cookie when calling 
deletWicketCookie



 

Hi I

Get an error when the page are calling this line, on my html :

 

http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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





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

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



 

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


[Wicket-user] MissingResourceException

2007-01-15 Thread Ayodeji Aladejebi
I always get this exception after a while of running my wicket
application. It works on redeployment but suddenly just starts showing
this exception after somedays of running

WicketMessage: Exception in rendering component: [Component id =
heading, page = com.nairanet.nelx.HomePage, path =
0:advert1:heading.Label, isVisible = true, isVersioned = true]

Root cause:

java.util.MissingResourceException: Unable to find resource:
panel_post_cv_heading for component: advert1
at wicket.Localizer.getString(Localizer.java:262)
at wicket.Localizer.getString(Localizer.java:121)
at wicket.model.StringResourceModel.getString(StringResourceModel.java:403)
at wicket.model.StringResourceModel.toString(StringResourceModel.java:464)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at 
wicket.model.AbstractDetachableModel.getObject(AbstractDetachableModel.java:108)
at wicket.Component.getModelObject(Component.java:990)
at wicket.Component.getModelObjectAsString(Component.java:1005)
at wicket.markup.html.basic.Label.onComponentTagBody(Label.java:113)
at wicket.Component.renderComponent(Component.java:1719)
at wicket.markup.html.WebComponent.onRender(WebComponent.java:61)
at wicket.Component.render(Component.java:1533)
at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)
at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982)
at wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:571)
at wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:108)
at wicket.Component.renderComponent(Component.java:1719)
at wicket.MarkupContainer.onRender(MarkupContainer.java:927)
at wicket.Component.render(Component.java:1533)



--

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


Re: [Wicket-user] wicket presentation

2007-01-15 Thread Nino Wael
Because I want the form to be updatet when something new is selected, should I 
do this another way?


Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
Sent: 13. januar 2007 20:45
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] wicket presentation

Those dropdowns should be updated without troubles. Why do you need
the wantOnSelectionChangedNotifications there? Did you try removing
the overrides of these methods? As far as I can see you're not doing
anything useful with them.


Eelco

On 1/12/07, Nino Wael <[EMAIL PROTECTED]> wrote:
>
>
>
>
> To my presentation im doing both a jsp version and a wicket version of a
> very small applikation (might just be a form or two separate pages with
> forms), btw would it be an idea to put the presentation with examples up
> somewhere perhaps the wiki (when im done with it?)?
>
>
>
>
>
> However upon doing this I've stumbled into something I find odd, in the
> below code the label called model are not updatet when it's model are
> changed, I got the same problem with the dropdown, I fixed that by calling
> the dropdown.modelchanged() method. But is it really necessary to call
> modelchanged? I saw the ajax example which is almost identical to this does
> not call modelchanged.
>
>
>
>
>
>
>
> public class IndexPage extends WebPage {
>
>
>
>   public IndexPage() {
>
>
>
> FormModel
> formModel = new FormModel();
>
>
>
> final
> PropertyModel carModel = new PropertyModel(formModel, "carModel");
>
> final
> PropertyModel carBrand = new PropertyModel(formModel, "carBrand");
>
>
>
> IModel
> carsFromBrand = new AbstractReadOnlyModel() {
>
>
>
>
>  public Object getObject(Component arg0) {
>
>
>String selected = (String)
> carBrand.getObject(null);
>
>
>if (selected != null) {
>
>
>
>   return Offline.getCarsFromBrand(selected);
>
>
>}
>
>
>return Collections.EMPTY_LIST;
>
>
>  }
>
> };
>
>
>
> add(new
> Label("brand", carBrand));
>
> add(new
> Label("model", carModel));
>
> Form form = new
> Form("theform");
>
> add(form);
>
> final
> DropDownChoice ddcCarModel = new DropDownChoice("carmodel",
>
>
>carModel, carsFromBrand) {
>
>
>  protected boolean
> wantOnSelectionChangedNotifications() {
>
>
>return true;
>
>
>  }
>
> };
>
> DropDownChoice
> ddcCarbrand = new DropDownChoice("carbrand", carBrand,
>
>
>Offline.getCarBrands()) {
>
>
>   protected boolean
> wantOnSelectionChangedNotifications() {
>
>
>return true;
>
>
>  }
>
>
>
>
>  protected void onSelectionChanged(Object arg0) {
>
>
>// TODO Auto-generated method
> stub
>
>
>super.onSelectionChanged(arg0);
>
>
>ddcCarModel.modelChanged();
>
>
>
>
>  }
>
> };
>
>
> form.add(ddcCarbrand);
>
>
>
>
> form.add(ddcCarModel);
>
>
>
>   }
>
>
>
> }
>
>
>
>  
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Nino Wael
>  Sent: 4. januar 2007 14:16
>  To: wicket-user@lists.sourceforge.net
>  Subject: [Wicket-user] wicket presentation
>
>
>
>
> Hi im doing a wicket presentation for our consultants team, on this first
> teaser I have about ten minutes.
>
>
>
>
>
> I plan to talk something about markup inheritance(the stuff with panels and
> borders, which are very nice), and the POJO concept.
>
>
>
> Also wickets model concept and that you don't have to think about the
> tedious tasks like printing html and setting the correct radio to be
> selected. I guess that part will be a big eye opener for some of themJ
>
>
>
> Which features should I show?
>
>
>
>
>
> The crowd will maximum have knowledge of struts or simple jsp pages.
>
>
>
>
>
>
>
> Regards Nino
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> __

[Wicket-user] Wicket Exceptions

2007-01-15 Thread Ayodeji Aladejebi

We are hosting a project based on wicket and we have done a series of test
deployments that seem to work very fine. However we did an upgrade and we
are consistently getting this error.

any idea as to why this happens. Code runs fine on localhost machine

B

Root cause:

java.lang.NullPointerException
at wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390)
at wicket.markup.MarkupParser.readAndParse(MarkupParser.java:196)
at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279)
at wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java
:354)
at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:198)
at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106)
at wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java
:827)
at wicket.markup.html.WebPage.commonInit(WebPage.java:235)
at wicket.markup.html.WebPage.(WebPage.java:120)
at com.nairanet.nelx.HomePage.(HomePage.java:55)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] spring integration question

2007-01-15 Thread Mats Norén
I personally think it is easer to override the init method of your application:

protected void init() {
super.init();
addComponentInstantiationListener(new SpringComponentInjector(this));
...
}

and use the @SpringBean where you want to use your DAO.

@SpringBean
ContactDao contactDao

/Mats


On 1/15/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I was thinking that more option can be added to the official wicket-spring
> integration documentation.  Something like this:
>
> 1) normal wicket servlet config in web.xml, with applicationClassName
> init-param
>
> 2) Application class uses Spring API to get hold of dependency like this:
>
> class MyApplication extends WebApplication {
>private ContactDao dao;
>public ContactDao getContactDao() { return dao; }
>
>public void init() {
>ServletContext sc =
> getWicketServlet().getServletContext();
>dao = (ContactDao)
> WebApplicationContextUtils.getWebApplicationContext(sc).getBean("contactDao");
>}
> }
>
> 3) Have all pages / components extend BasePage that has a getContactDao()
> method - exactly like the first option in the wicket-spring wiki
> documentation here:
> http://www.wicket-wiki.org.uk/wiki/index.php/Spring
>
> I understand the risk of running into the serialization problem and also
> that this may be considered not-so-elegant because of using the Spring API
> directly without any dependency injection.  But I want to mention my
> experience, I spent a lot of time going through the existing documentation
> agonizing over which option to choose.  Trying to understand all the
> options, lazy proxies etc was a little daunting for a spring fan like me.
>
> In my case I just have one clean dependency and finally it was so easy to do
> it as suggested above.  I also don't need the wicket-spring jar at all.  Are
> there any other compelling reasons for using the wicket-spring lib?  Is the
> suggested approach fine for small projects who want to hook into Spring
> quickly?
>
> Another thing - I initially tried to use wicket-spring-annot and Maven 2
> complained with this error:
>
> 
>
> [INFO] Failed to resolve artifact.
>
> GroupId: wicket
> ArtifactId: wicket-parent
>  Version: 1.2-SNAPSHOT
>
> Reason: Unable to download the artifact from any repository
>
>   wicket:wicket-parent:pom:1.2-SNAPSHOT
>
> from the specified remote repositories:
>   central ( http://repo1.maven.org/maven2)
>
> =
>
> I think the reason is because the wicket-spring-annot-1.2.4.pom incorrectly
> refers to 1.2-SNAPSHOT version for wicket-parent.  The url of the offending
> file in the maven repository is this:
>
> http://repo1.maven.org/maven2/wicket/wicket-spring-annot/1.2.4/wicket-spring-annot-1.2.4.pom
>
> Let me know if I need to log an issue or something.
>
> Thanks,
>
> Peter.
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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


Re: [Wicket-user] spring integration question

2007-01-15 Thread Peter Thomas

Thanks Mats, I totally agree that that is a pretty clean option.  This does
mean that you have to include wicket-spring and wicket-spring-annot though -
which I avoided.

I am trying to figure if the alternate approach is workable and then I do
feel it is worth adding to the wiki.  Also it may be more appealing to those
folks who are anti-annotations.  (yes such people exist :)

Regards,

Peter.

On 1/15/07, Mats Norén <[EMAIL PROTECTED]> wrote:


I personally think it is easer to override the init method of your
application:

protected void init() {
super.init();
addComponentInstantiationListener(new
SpringComponentInjector(this));
...
}

and use the @SpringBean where you want to use your DAO.

@SpringBean
ContactDao contactDao

/Mats

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


Re: [Wicket-user] MissingResourceException

2007-01-15 Thread Juergen Donnerstag
Which wicket version are you using? You are not running out of open
files, do you? Are you running the application in development or
deployment mode?

Juergen

On 1/15/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> I always get this exception after a while of running my wicket
> application. It works on redeployment but suddenly just starts showing
> this exception after somedays of running
>
> WicketMessage: Exception in rendering component: [Component id =
> heading, page = com.nairanet.nelx.HomePage, path =
> 0:advert1:heading.Label, isVisible = true, isVersioned = true]
>
> Root cause:
>
> java.util.MissingResourceException: Unable to find resource:
> panel_post_cv_heading for component: advert1
> at wicket.Localizer.getString(Localizer.java:262)
> at wicket.Localizer.getString(Localizer.java:121)
> at wicket.model.StringResourceModel.getString(StringResourceModel.java:403)
> at wicket.model.StringResourceModel.toString(StringResourceModel.java:464)
> at java.lang.String.valueOf(String.java:2615)
> at java.lang.StringBuffer.append(StringBuffer.java:220)
> at 
> wicket.model.AbstractDetachableModel.getObject(AbstractDetachableModel.java:108)
> at wicket.Component.getModelObject(Component.java:990)
> at wicket.Component.getModelObjectAsString(Component.java:1005)
> at wicket.markup.html.basic.Label.onComponentTagBody(Label.java:113)
> at wicket.Component.renderComponent(Component.java:1719)
> at wicket.markup.html.WebComponent.onRender(WebComponent.java:61)
> at wicket.Component.render(Component.java:1533)
> at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)
> at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982)
> at wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:571)
> at wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:108)
> at wicket.Component.renderComponent(Component.java:1719)
> at wicket.MarkupContainer.onRender(MarkupContainer.java:927)
> at wicket.Component.render(Component.java:1533)
>
>
>
> --
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

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


Re: [Wicket-user] Wicket Exceptions

2007-01-15 Thread Juergen Donnerstag
Which version are you using?

Juergen

On 1/15/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> We are hosting a project based on wicket and we have done a series of test
> deployments that seem to work very fine. However we did an upgrade and we
> are consistently getting this error.
>
> any idea as to why this happens. Code runs fine on localhost machine
>
> B
>
>
> Root cause:
>
> java.lang.NullPointerException
> at
> wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390)
> at
> wicket.markup.MarkupParser.readAndParse(MarkupParser.java
> :196)
> at
> wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279)
> at
> wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:354)
> at wicket.markup.MarkupCache.getMarkup(MarkupCache.java
> :198)
> at
> wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106)
> at
> wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827)
> at wicket.markup.html.WebPage.commonInit(WebPage.java :235)
> at wicket.markup.html.WebPage.(WebPage.java:120)
> at com.nairanet.nelx.HomePage.(HomePage.java:55)
> at
> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at java.lang.Class.newInstance0(Class.java:350)
> at java.lang.Class.newInstance(Class.java:303)
>
>
>
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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


Re: [Wicket-user] Wicket Exceptions

2007-01-15 Thread Johan Compagner

do you have a quickstart?
can you see what version do you use? (390 is not a code line in the code i
am now looking at)

But looking at the code around that line:

try
   {
   this.xmlReader = new XmlReader(
   new BufferedInputStream(resource.getInputStream(),
4000), encoding);
   this.input = new FullyBufferedReader(this.xmlReader);
   }
   finally
   {
   resource.close();
   this.xmlReader.close(); << this is 390 i guess
   }

then this seems a bit wrong yes..
If there is a problem constructing the XmlReader then that exception is
swallowed and a null pointer is generated
will fix this.

johan

On 1/15/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:


We are hosting a project based on wicket and we have done a series of test
deployments that seem to work very fine. However we did an upgrade and we
are consistently getting this error.

any idea as to why this happens. Code runs fine on localhost machine

B

Root cause:

java.lang.NullPointerException
at wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390)
at wicket.markup.MarkupParser.readAndParse(MarkupParser.java :196)
at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279)
at wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java
:354)
at wicket.markup.MarkupCache.getMarkup(MarkupCache.java :198)
at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106)
at wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java
:827)
at wicket.markup.html.WebPage.commonInit(WebPage.java :235)
at wicket.markup.html.WebPage.(WebPage.java:120)
at com.nairanet.nelx.HomePage.(HomePage.java:55)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)





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

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



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


[Wicket-user] ComponentModel

2007-01-15 Thread Nino Wael
Hi

Im trying to use a component model and som labels to display contents of the 
model.. It does not work why?


See pastebin :

http://pastebin.ca/317148


or here for code:

package wicketDemo;

import wicket.markup.html.WebPage;
import wicket.markup.html.basic.Label;
import wicket.markup.html.basic.MultiLineLabel;
import wicket.model.CompoundPropertyModel;

public class ThankYouPage extends WebPage {

public ThankYouPage(FormModel filledForm) {

CompoundPropertyModel model = new 
CompoundPropertyModel(filledForm);

add(new Label("carModel", model));
add(new Label("carYear", model));
add(new Label("carMillage", model));
add(new MultiLineLabel("carFailureText", model));

}

}

regards Nino

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


Re: [Wicket-user] ComponentModel

2007-01-15 Thread Martijn Dashorst
You use the compound property model wrong:

public ThankYouPage(FormModel filledForm) {
setModel(new CompoundPropertyModel(filledForm));
add(new Label("carModel"));
add(new Label("carYear"));
add(new Label("carMillage"));
add(new MultiLineLabel("carFailureText"));
}

Martijn

On 1/15/07, Nino Wael <[EMAIL PROTECTED]> wrote:
> Hi
>
> Im trying to use a component model and som labels to display contents of the 
> model.. It does not work why?
>
>
> See pastebin :
>
> http://pastebin.ca/317148
>
>
> or here for code:
>
> package wicketDemo;
>
> import wicket.markup.html.WebPage;
> import wicket.markup.html.basic.Label;
> import wicket.markup.html.basic.MultiLineLabel;
> import wicket.model.CompoundPropertyModel;
>
> public class ThankYouPage extends WebPage {
>
> public ThankYouPage(FormModel filledForm) {
>
> CompoundPropertyModel model = new 
> CompoundPropertyModel(filledForm);
>
> add(new Label("carModel", model));
> add(new Label("carYear", model));
> add(new Label("carMillage", model));
> add(new MultiLineLabel("carFailureText", model));
>
> }
>
> }
>
> regards Nino
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

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


Re: [Wicket-user] DropDownChoice inconsistent value returned

2007-01-15 Thread Johan Compagner

to quickly do it right in your example:

you should do it in reverse.

so this:

for(;i
public class DateDropDownChoice extends DropDownChoice implements
Serializable {
// values to go into the hidden value attribute in the HTML option tag
// AND to go into the model/database
final static private String[] ids =
{"20031","20032","20033","20034","20041",…};

// values to be displayed in the dropdown
final static private String[] values ={"2003, Fall","2003,
Winter","2003, Spring","2003, Summer","2004, Fall",…};

public DateDropDownChoice(String id, IModel iModel) {
super(id, iModel);
ArrayList choices = new ArrayList();

int i = 0;
for(;i 0 means that I need to look up the
appropriate/corresponding
 * value from the ids array.
 *
 */

String returnVal = i<0?obj.toString():ids[i];
System.out.println("returnVal: "+returnVal+" :: ID:: "+i);
return returnVal;
}
}
}



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


Re: [Wicket-user] DropDownChoice inconsistent value returned

2007-01-15 Thread Johan Compagner



To many people come from the Swing world, with its Cell renderers :(



that has to be of course:

Not to many people haven't used Swing, with its Cell renderers :( (where it
is based on)

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


Re: [Wicket-user] ComponentModel

2007-01-15 Thread Nino Wael
Hmm this does not difference, still not working.. Heres the markup before 
processing:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="da" lang="da">

this is my Wicket page


This is my Wicket page.

Thank you for the information 













And heres it after:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="da" lang="da">

this is my Wicket page
]]>*/



This is my Wicket page.

Thank you for the information 













-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martijn Dashorst
Sent: 15. januar 2007 11:00
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] ComponentModel

You use the compound property model wrong:

public ThankYouPage(FormModel filledForm) {
setModel(new CompoundPropertyModel(filledForm));
add(new Label("carModel"));
add(new Label("carYear"));
add(new Label("carMillage"));
add(new MultiLineLabel("carFailureText"));
}

Martijn

On 1/15/07, Nino Wael <[EMAIL PROTECTED]> wrote:
> Hi
>
> Im trying to use a component model and som labels to display contents of the 
> model.. It does not work why?
>
>
> See pastebin :
>
> http://pastebin.ca/317148
>
>
> or here for code:
>
> package wicketDemo;
>
> import wicket.markup.html.WebPage;
> import wicket.markup.html.basic.Label;
> import wicket.markup.html.basic.MultiLineLabel;
> import wicket.model.CompoundPropertyModel;
>
> public class ThankYouPage extends WebPage {
>
> public ThankYouPage(FormModel filledForm) {
>
> CompoundPropertyModel model = new 
> CompoundPropertyModel(filledForm);
>
> add(new Label("carModel", model));
> add(new Label("carYear", model));
> add(new Label("carMillage", model));
> add(new MultiLineLabel("carFailureText", model));
>
> }
>
> }
>
> regards Nino
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

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

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


Re: [Wicket-user] Wicket Exceptions

2007-01-15 Thread Juergen Donnerstag
Why is the exception swallowed? Finally doesnt swallow it.

Juergen

On 1/15/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> do you have a quickstart?
> can you see what version do you use? (390 is not a code line in the code i
> am now looking at)
>
> But looking at the code around that line:
>
> try
> {
> this.xmlReader = new XmlReader(
> new BufferedInputStream(resource.getInputStream(),
> 4000), encoding);
> this.input = new FullyBufferedReader(this.xmlReader);
> }
> finally
> {
> resource.close();
> this.xmlReader.close(); << this is 390 i guess
> }
>
> then this seems a bit wrong yes..
> If there is a problem constructing the XmlReader then that exception is
> swallowed and a null pointer is generated
> will fix this.
>
> johan
>
> On 1/15/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> >
> > We are hosting a project based on wicket and we have done a series of test
> deployments that seem to work very fine. However we did an upgrade and we
> are consistently getting this error.
> >
> > any idea as to why this happens. Code runs fine on localhost machine
> >
> > B
> >
> >
> > Root cause:
> >
> > java.lang.NullPointerException
> > at
> wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390)
> > at
> wicket.markup.MarkupParser.readAndParse(MarkupParser.java
> :196)
> > at
> wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279)
> > at
> wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:354)
> > at wicket.markup.MarkupCache.getMarkup(MarkupCache.java
> :198)
> > at
> wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106)
> > at
> wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827)
> > at wicket.markup.html.WebPage.commonInit(WebPage.java
> :235)
> > at wicket.markup.html.WebPage.(WebPage.java:120)
> > at com.nairanet.nelx.HomePage.(HomePage.java:55)
> > at
> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> > at java.lang.Class.newInstance0(Class.java:350)
> > at java.lang.Class.newInstance(Class.java:303)
> >
> >
> >
> >
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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


Re: [Wicket-user] ComponentModel

2007-01-15 Thread Erik van Oosten
Hi Nino,

You should never use  but always .

Regards,
 Erik.


Nino Wael wrote:
> Hmm this does not difference, still not working.. Heres the markup before 
> processing:
>
>   

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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


Re: [Wicket-user] spring integration question

2007-01-15 Thread Mats Norén
Oops, sorry, didn't read your entire mail.
However, I do feel that the extra dependency is worth it in the long
run. You very seldom have only one DAO in your application... :) Let's
say you have 50 beans that you want to use in different parts of the
system, the code bloat in the Application class will be quite big.

/Mats

On 1/15/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> Thanks Mats, I totally agree that that is a pretty clean option.  This does
> mean that you have to include wicket-spring and wicket-spring-annot though -
> which I avoided.
>
> I am trying to figure if the alternate approach is workable and then I do
> feel it is worth adding to the wiki.  Also it may be more appealing to those
> folks who are anti-annotations.  (yes such people exist :)
>
> Regards,
>
> Peter.
>
>
> On 1/15/07, Mats Norén <[EMAIL PROTECTED]> wrote:
> > I personally think it is easer to override the init method of your
> application:
> >
> > protected void init() {
> > super.init();
> > addComponentInstantiationListener(new
> SpringComponentInjector(this));
> > ...
> > }
> >
> > and use the @SpringBean where you want to use your DAO.
> >
> > @SpringBean
> > ContactDao contactDao
> >
> > /Mats
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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


Re: [Wicket-user] ComponentModel

2007-01-15 Thread Nino Wael
Argh so it did not work because im lazy.. That figures:)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten
Sent: 15. januar 2007 11:22
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] ComponentModel

Hi Nino,

You should never use  but always .

Regards,
 Erik.


Nino Wael wrote:
> Hmm this does not difference, still not working.. Heres the markup before 
> processing:
>
>   

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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

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


Re: [Wicket-user] Wicket Exceptions

2007-01-15 Thread Johan Compagner

because xmlReader == null
and then a null pointer is thrown. instead of the original exception that
was created somewhere
in the construction of xmlReader.. (thats why it is still null)

johan


On 1/15/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:


Why is the exception swallowed? Finally doesnt swallow it.

Juergen

On 1/15/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> do you have a quickstart?
> can you see what version do you use? (390 is not a code line in the code
i
> am now looking at)
>
> But looking at the code around that line:
>
> try
> {
> this.xmlReader = new XmlReader(
> new BufferedInputStream(resource.getInputStream(),
> 4000), encoding);
> this.input = new FullyBufferedReader(this.xmlReader);
> }
> finally
> {
> resource.close();
> this.xmlReader.close(); << this is 390 i guess
> }
>
> then this seems a bit wrong yes..
> If there is a problem constructing the XmlReader then that exception is
> swallowed and a null pointer is generated
> will fix this.
>
> johan
>
> On 1/15/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> >
> > We are hosting a project based on wicket and we have done a series of
test
> deployments that seem to work very fine. However we did an upgrade and
we
> are consistently getting this error.
> >
> > any idea as to why this happens. Code runs fine on localhost machine
> >
> > B
> >
> >
> > Root cause:
> >
> > java.lang.NullPointerException
> > at
> wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390)
> > at
> wicket.markup.MarkupParser.readAndParse(MarkupParser.java
> :196)
> > at
> wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279)
> > at
> wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java
:354)
> > at wicket.markup.MarkupCache.getMarkup(MarkupCache.java
> :198)
> > at
> wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106)
> > at
> wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java
:827)
> > at wicket.markup.html.WebPage.commonInit(WebPage.java
> :235)
> > at wicket.markup.html.WebPage.(WebPage.java:120)
> > at com.nairanet.nelx.HomePage.(HomePage.java:55)
> > at
> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> > at java.lang.Class.newInstance0(Class.java:350)
> > at java.lang.Class.newInstance(Class.java:303)
> >
> >
> >
> >
> >
> >
>
-
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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

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


Re: [Wicket-user] spring integration question

2007-01-15 Thread Peter Thomas

Thanks Mats, yes I agree.

I am also reporting (refer original message) that wicket-spring-annot is
broken for Maven 2 users, so at the moment I cannot use it even if I wanted
to.  Can anyone comment on this?

Thanks,

Peter.


On 1/15/07, Mats Norén <[EMAIL PROTECTED]> wrote:


Oops, sorry, didn't read your entire mail.
However, I do feel that the extra dependency is worth it in the long
run. You very seldom have only one DAO in your application... :) Let's
say you have 50 beans that you want to use in different parts of the
system, the code bloat in the Application class will be quite big.

/Mats

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


Re: [Wicket-user] Input Field background color change on validation

2007-01-15 Thread Cliff Pereira

Hi,

first of all. Thanks for your help. This version seems much easier and
clearer to me. But still I do not now where to validate the input of the
field. Should I use the wicket validators? I'm not so familiar with that.
Would be kind, if you could give me one or two more hints! The models
returns valid on startup. So the textfield is green. :-( How do I change the
value returned by the isValid() method? Could you give me a hint, how to
check for "Cliff" e.g.?

If I add this line to my code it works fine.
target.appendJavaScript("document.getElementById('" + uname.getMarkupId() +
"').focus();");


But I'm still trying to use your code as it seems to me cleaner.
final TextField usernameField = (TextField) new TextField("username", new
PropertyModel(this, "username"));
   usernameField.add(new AttributeModifier("class", true, new Model() {


   public Object getObject(Component c) {
   return usernameField.isValid() ? "valid" : "invalid";
   }
   }));

   usernameField.add(new
AjaxFormComponentUpdatingBehavior("onkeypress") {

   public void onUpdate(AjaxRequestTarget target) {
   if(!usernameField.isValid()) {
   target.appendJavascript("document.getElementById('"
+usernameField.getMarkupId() + "').focus();");
   }
   target.addComponent(usernameField);
   }
   });


Thanks once again in advance!
Cliff




2007/1/15, Erik van Oosten <[EMAIL PROTECTED]>:


Hi Cliff,

If I read your requirements correctly you should use "onkeypress"
instead of "onblur". But I guess you already guessed that.

Regards,
Erik.

Martijn Dashorst wrote:
> You make it very complicated :-)
>
> final TextField uname = new TextField("username", ...).add(new
> AttributeModifier("class", true, new Model() { public void
> getObject(Component c) { return uname.isValid() ? "valid" : "invalid";
> } });
>
> uname.add(new AjaxFormComponentUpdateBehavior("onblur") {
> public void onUpdate(AjaxRequestTarget target) {
> if(!uname.isValid()) {
> target.appendJavaScript("document.getElementById('" +
> uname.getMarkupId() + "').focus();"); }
> target.addComponent(uname);
> }
> });
>
> Should do the trick. Note that this is from the top of my head, so
> things might not compile completely.
>
> Martijn
>

--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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

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


Re: [Wicket-user] skandinavian characters encoding lost...

2007-01-15 Thread Erik van Oosten
Are you using Tomcat?

 Erik.

Nino Wael schreef:
>
> Hi
>
>  
>
> I seem to be expriencing lost of encoding, if I have an text area and 
> text field and if Æ Ø or Å are entered then they do not get interpered 
> as Å Ø Æ but losses their encoding. Am I missing something? Wicket 
> does pickup that the browser are in Danish locale and actually does 
> display the default text in dropdowns in Danish(choose one – vælg en).
>
>  
>
> Regards Nino
>
> 
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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


Re: [Wicket-user] Input Field background color change on validation

2007-01-15 Thread Erik van Oosten
Hi Cliff,

You can look on the Wiki: http://cwiki.apache.org/WICKET/forms.html
The wicket-examples probably have some eh, examples.

The basic thing is to call formfield#add(IValidator).

Have fun,
 Erik.


Cliff Pereira wrote:
> Hi,
>
> first of all. Thanks for your help. This version seems much easier and 
> clearer to me. But still I do not now where to validate the input of 
> the field. Should I use the wicket validators? I'm not so familiar 
> with that. Would be kind, if you could give me one or two more hints! 
> The models returns valid on startup. So the textfield is green. :-( 
> How do I change the value returned by the isValid() method? Could you 
> give me a hint, how to check for "Cliff" e.g.?
> 

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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


Re: [Wicket-user] skandinavian characters encoding lost...

2007-01-15 Thread Johan Compagner

by default wicket does everything in UTF-8
What is your page encoding when you see your webpage? (page info in FF)

If you use tomcat you need some other configuration (use utf 8 encoding in
request params) but thats only for GET request not post.

johan


On 1/15/07, Nino Wael <[EMAIL PROTECTED]> wrote:


 Hi



I seem to be expriencing lost of encoding, if I have an text area and text
field and if Æ Ø or Å are entered then they do not get interpered as Å Ø Æ
but losses their encoding. Am I missing something? Wicket does pickup that
the browser are in Danish locale and actually does display the default text
in dropdowns in Danish(choose one – vælg en).



Regards Nino

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

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



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


[Wicket-user] skandinavian characters encoding lost...

2007-01-15 Thread Nino Wael
Hi

 

I seem to be expriencing lost of encoding, if I have an text area and text 
field and if Æ Ø or Å are entered then they do not get interpered as Å Ø Æ but 
losses their encoding. Am I missing something? Wicket does pickup that the 
browser are in Danish locale and actually does display the default text in 
dropdowns in Danish(choose one - vælg en).

 

Regards Nino

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


Re: [Wicket-user] Wicket Exceptions

2007-01-15 Thread Ayodeji Aladejebi

version 1.2.3

On 1/15/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


because xmlReader == null
and then a null pointer is thrown. instead of the original exception that
was created somewhere
in the construction of xmlReader.. (thats why it is still null)

johan


On 1/15/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
>
> Why is the exception swallowed? Finally doesnt swallow it.
>
> Juergen
>
> On 1/15/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > do you have a quickstart?
> > can you see what version do you use? (390 is not a code line in the
> code i
> > am now looking at)
> >
> > But looking at the code around that line:
> >
> > try
> > {
> > this.xmlReader = new XmlReader(
> > new BufferedInputStream(resource.getInputStream(),
> > 4000), encoding);
> > this.input = new FullyBufferedReader(this.xmlReader);
> > }
> > finally
> > {
> > resource.close();
> > this.xmlReader.close(); << this is 390 i guess
> > }
> >
> > then this seems a bit wrong yes..
> > If there is a problem constructing the XmlReader then that exception
> is
> > swallowed and a null pointer is generated
> > will fix this.
> >
> > johan
> >
> > On 1/15/07, Ayodeji Aladejebi < [EMAIL PROTECTED]> wrote:
> > >
> > > We are hosting a project based on wicket and we have done a series
> of test
> > deployments that seem to work very fine. However we did an upgrade and
> we
> > are consistently getting this error.
> > >
> > > any idea as to why this happens. Code runs fine on localhost machine
> > >
> > > B
> > >
> > >
> > > Root cause:
> > >
> > > java.lang.NullPointerException
> > > at
> > wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390)
> > > at
> > wicket.markup.MarkupParser.readAndParse(MarkupParser.java
> > :196)
> > > at
> > wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279)
> > > at
> > wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
> MarkupCache.java:354)
> > > at wicket.markup.MarkupCache.getMarkup (MarkupCache.java
> > :198)
> > > at
> > wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106)
> > > at
> > wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java
> :827)
> > > at wicket.markup.html.WebPage.commonInit(WebPage.java
> > :235)
> > > at wicket.markup.html.WebPage.(WebPage.java:120)
> > > at com.nairanet.nelx.HomePage.(HomePage.java :55)
> > > at
> > java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> > > at java.lang.Class.newInstance0(Class.java:350)
> > > at java.lang.Class.newInstance(Class.java:303)
> > >
> > >
> > >
> > >
> > >
> > >
> >
> -
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
> share
> > your
> > > opinions on IT & business topics through brief surveys - and earn
> cash
> > >
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> >
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


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

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



-
Take Surveys. Earn Cash. Influen

Re: [Wicket-user] AjaxFallbackDefaultDataTable ajax event onclick on a row

2007-01-15 Thread Gustavo Yoshizaki

Great. it worked fine. thanks

On 1/12/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


try overriding newrowitem() on the datatable and adding an ajax onclick
behavior to the item returned by calling super

-igor


On 1/12/07, Gustavo Yoshizaki <[EMAIL PROTECTED]> wrote:

> Hi, I using an AjaxFallbackDefaultDataTable to show some data. I also
> need to captura the event "onclick" on a row and lunch an ajax code. The
> html code is the following:
>
> 
> [title]
>  wicket:id="table">[table]
> 
>
> So i don't know how to add a " wicket.id " to the row.
>
> The ajax code has to make the same thing as in the wicket examples where
> there is a column with a "select" link.
>
> Gustavo
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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

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



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


Re: [Wicket-user] MissingResourceException

2007-01-15 Thread Ayodeji Aladejebi

version 1.2.3
development mode

On 1/15/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:


Which wicket version are you using? You are not running out of open
files, do you? Are you running the application in development or
deployment mode?

Juergen

On 1/15/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> I always get this exception after a while of running my wicket
> application. It works on redeployment but suddenly just starts showing
> this exception after somedays of running
>
> WicketMessage: Exception in rendering component: [Component id =
> heading, page = com.nairanet.nelx.HomePage, path =
> 0:advert1:heading.Label, isVisible = true, isVersioned = true]
>
> Root cause:
>
> java.util.MissingResourceException: Unable to find resource:
> panel_post_cv_heading for component: advert1
> at wicket.Localizer.getString(Localizer.java:262)
> at wicket.Localizer.getString(Localizer.java:121)
> at wicket.model.StringResourceModel.getString(StringResourceModel.java
:403)
> at wicket.model.StringResourceModel.toString(StringResourceModel.java
:464)
> at java.lang.String.valueOf(String.java:2615)
> at java.lang.StringBuffer.append(StringBuffer.java:220)
> at wicket.model.AbstractDetachableModel.getObject(
AbstractDetachableModel.java:108)
> at wicket.Component.getModelObject(Component.java:990)
> at wicket.Component.getModelObjectAsString(Component.java:1005)
> at wicket.markup.html.basic.Label.onComponentTagBody(Label.java:113)
> at wicket.Component.renderComponent(Component.java:1719)
> at wicket.markup.html.WebComponent.onRender(WebComponent.java:61)
> at wicket.Component.render(Component.java:1533)
> at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)
> at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java
:982)
> at wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java
:571)
> at wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:108)
> at wicket.Component.renderComponent(Component.java:1719)
> at wicket.MarkupContainer.onRender(MarkupContainer.java:927)
> at wicket.Component.render(Component.java:1533)
>
>
>
> --
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

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

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


[Wicket-user] Adding multiple behaviors fails

2007-01-15 Thread Erik van Oosten
Hi,

In my current application I added 2 AjaxFormComponentUpdatingBehaviors 
with event "onchange" to the same form component. Only the behavior that 
is added last will actually be called. Is this on purpose? I would like 
both to be called.

I tried both on 1.2.4 and a fresh (today) 1.2 snapshot.

Regards,
 Erik.


-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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


Re: [Wicket-user] Adding multiple behaviors fails

2007-01-15 Thread Johan Compagner

yes this is how it works now

Maybe we could somehow merge it on the server side
when we see 2 behavior attached to the same event only generate for one but
also call the other..

johan


On 1/15/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:


Hi,

In my current application I added 2 AjaxFormComponentUpdatingBehaviors
with event "onchange" to the same form component. Only the behavior that
is added last will actually be called. Is this on purpose? I would like
both to be called.

I tried both on 1.2.4 and a fresh (today) 1.2 snapshot.

Regards,
 Erik.


--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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

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


Re: [Wicket-user] skandinavian characters encoding lost...

2007-01-15 Thread Nino Wael
Yes i am using tomcat..

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten
Sent: 15. januar 2007 13:17
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] skandinavian characters encoding lost...

Are you using Tomcat?

 Erik.

Nino Wael schreef:
>
> Hi
>
>  
>
> I seem to be expriencing lost of encoding, if I have an text area and 
> text field and if Æ Ø or Å are entered then they do not get interpered 
> as Å Ø Æ but losses their encoding. Am I missing something? Wicket 
> does pickup that the browser are in Danish locale and actually does 
> display the default text in dropdowns in Danish(choose one - vælg en).
>
>  
>
> Regards Nino
>
> 
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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

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


Re: [Wicket-user] skandinavian characters encoding lost...

2007-01-15 Thread Nino Wael
Page encoding reported by FF are ISO-8859-1.

 

 

Regards Nino

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: 15. januar 2007 13:24
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] skandinavian characters encoding lost...

 

by default wicket does everything in UTF-8
What is your page encoding when you see your webpage? (page info in FF) 

If you use tomcat you need some other configuration (use utf 8 encoding in 
request params) but thats only for GET request not post. 

johan



On 1/15/07, Nino Wael <[EMAIL PROTECTED]> wrote:

Hi

 

I seem to be expriencing lost of encoding, if I have an text area and text 
field and if Æ Ø or Å are entered then they do not get interpered as Å Ø Æ but 
losses their encoding. Am I missing something? Wicket does pickup that the 
browser are in Danish locale and actually does display the default text in 
dropdowns in Danish(choose one - vælg en).

 

Regards Nino


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

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



 

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


Re: [Wicket-user] Adding multiple behaviors fails

2007-01-15 Thread Erik van Oosten
Ok, that's too bad.
Yes, I would very much like that feature. I created a JIRA issue to 
request it (https://issues.apache.org/jira/browse/WICKET-214).

Thanks Johan,
 Erik.


Johan Compagner schreef:
> yes this is how it works now
>
> Maybe we could somehow merge it on the server side
> when we see 2 behavior attached to the same event only generate for 
> one but also call the other..
>
> johan

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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


Re: [Wicket-user] skandinavian characters encoding lost...

2007-01-15 Thread Erik van Oosten
Well according to Johan its only for POSTs that Tomcat can be a problem.
I just tried for at least 10 minutes to find a reference to the exact 
thing Tomcat does wrong, and I am sure it was on the Wicket Wiki at some 
point, but I can not find it anymore.

If someone can find it, or put it back on the Wicket Wiki, that would be 
great.

Cheers,
Erik.


Nino Wael schreef:
> Yes i am using tomcat..
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten
> Sent: 15. januar 2007 13:17
> To: wicket-user@lists.sourceforge.net
> Subject: Re: [Wicket-user] skandinavian characters encoding lost...
>
> Are you using Tomcat?
>
>  Erik.
>
> Nino Wael schreef:
>   
>> Hi
>>  
>>
>> I seem to be expriencing lost of encoding, if I have an text area and 
>> text field and if Æ Ø or Å are entered then they do not get interpered 
>> as Å Ø Æ but losses their encoding. Am I missing something? Wicket 
>> does pickup that the browser are in Danish locale and actually does 
>> display the default text in dropdowns in Danish(choose one - vælg en).
>>
>>  
>>
>> Regards Nino  
>> 
>
>   

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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


Re: [Wicket-user] skandinavian characters encoding lost...

2007-01-15 Thread Martijn Dashorst
Perhaps this:
http://cwiki.apache.org/WICKET/how-to-change-the-character-encoding.html

found through: http://woogle.billen.dk/search/q/tomcat%20encoding

Martijn

On 1/15/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> Well according to Johan its only for POSTs that Tomcat can be a problem.
> I just tried for at least 10 minutes to find a reference to the exact
> thing Tomcat does wrong, and I am sure it was on the Wicket Wiki at some
> point, but I can not find it anymore.
>
> If someone can find it, or put it back on the Wicket Wiki, that would be
> great.
>
> Cheers,
> Erik.
>
>
> Nino Wael schreef:
> > Yes i am using tomcat..
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van 
> > Oosten
> > Sent: 15. januar 2007 13:17
> > To: wicket-user@lists.sourceforge.net
> > Subject: Re: [Wicket-user] skandinavian characters encoding lost...
> >
> > Are you using Tomcat?
> >
> >  Erik.
> >
> > Nino Wael schreef:
> >
> >> Hi
> >>
> >>
> >> I seem to be expriencing lost of encoding, if I have an text area and
> >> text field and if Æ Ø or Å are entered then they do not get interpered
> >> as Å Ø Æ but losses their encoding. Am I missing something? Wicket
> >> does pickup that the browser are in Danish locale and actually does
> >> display the default text in dropdowns in Danish(choose one - vælg en).
> >>
> >>
> >>
> >> Regards Nino
> >>
> >
> >
>
> --
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

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


[Wicket-user] Tracking session expire exception

2007-01-15 Thread Marc-Andre Houle

Is there somebody here that had to track in his application why the session
expire?  I'm in need of some "hint" on how to efficiently find the damn
thing that have made the session expire abruptly.
Surely somebody have done something about that! :)

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


Re: [Wicket-user] skandinavian characters encoding lost...

2007-01-15 Thread Erik van Oosten
No, that's not it.
I vaguely remember that Tomcat needs a setting in its configuration 
files before it will serve UTF-8 content. Otherwise it will silently 
convert it to ISO8859-1.

 Erik.


Martijn Dashorst wrote:
> Perhaps this:
> http://cwiki.apache.org/WICKET/how-to-change-the-character-encoding.html
>
> found through: http://woogle.billen.dk/search/q/tomcat%20encoding
>
> Martijn
>
> On 1/15/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:
>   
>> Well according to Johan its only for POSTs that Tomcat can be a problem.
>> I just tried for at least 10 minutes to find a reference to the exact
>> thing Tomcat does wrong, and I am sure it was on the Wicket Wiki at some
>> point, but I can not find it anymore.
>>
>> If someone can find it, or put it back on the Wicket Wiki, that would be
>> great.
>>
>> Cheers,
>> Erik.
>> 

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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


Re: [Wicket-user] Wicket Exceptions

2007-01-15 Thread Ayodeji Aladejebi

also, even though the project is being tested on the internet, I am still in
development mode (which i suppose is default, if not set at all) . it runs
fine on localhost but the behaviour seems to appear once we try accessing
the application from the internet. works without errors for a session but
seems to throw this errors when other session users try to access it






On 1/15/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:


version 1.2.3

On 1/15/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
>
> because xmlReader == null
> and then a null pointer is thrown. instead of the original exception
> that was created somewhere
> in the construction of xmlReader.. (thats why it is still null)
>
> johan
>
>
> On 1/15/07, Juergen Donnerstag <[EMAIL PROTECTED] > wrote:
> >
> > Why is the exception swallowed? Finally doesnt swallow it.
> >
> > Juergen
> >
> > On 1/15/07, Johan Compagner < [EMAIL PROTECTED]> wrote:
> > > do you have a quickstart?
> > > can you see what version do you use? (390 is not a code line in the
> > code i
> > > am now looking at)
> > >
> > > But looking at the code around that line:
> > >
> > > try
> > > {
> > > this.xmlReader = new XmlReader(
> > > new BufferedInputStream(resource.getInputStream
> > (),
> > > 4000), encoding);
> > > this.input = new FullyBufferedReader(this.xmlReader);
> > > }
> > > finally
> > > {
> > > resource.close();
> > > this.xmlReader.close(); << this is 390 i guess
> > > }
> > >
> > > then this seems a bit wrong yes..
> > > If there is a problem constructing the XmlReader then that exception
> > is
> > > swallowed and a null pointer is generated
> > > will fix this.
> > >
> > > johan
> > >
> > > On 1/15/07, Ayodeji Aladejebi < [EMAIL PROTECTED]> wrote:
> > > >
> > > > We are hosting a project based on wicket and we have done a series
> > of test
> > > deployments that seem to work very fine. However we did an upgrade
> > and we
> > > are consistently getting this error.
> > > >
> > > > any idea as to why this happens. Code runs fine on localhost
> > machine
> > > >
> > > > B
> > > >
> > > >
> > > > Root cause:
> > > >
> > > > java.lang.NullPointerException
> > > > at
> > > wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390)
> > > > at
> > > wicket.markup.MarkupParser.readAndParse(MarkupParser.java
> > > :196)
> > > > at
> > > wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279)
> > > > at
> > > wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
> > MarkupCache.java:354)
> > > > at wicket.markup.MarkupCache.getMarkup (MarkupCache.java
> > > :198)
> > > > at
> > > wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106)
> > > > at
> > > wicket.MarkupContainer.getAssociatedMarkupStream(
> > MarkupContainer.java:827)
> > > > at wicket.markup.html.WebPage.commonInit(WebPage.java
> > > :235)
> > > > at wicket.markup.html.WebPage.(WebPage.java:120)
> > > > at com.nairanet.nelx.HomePage.(HomePage.java :55)
> > > > at
> > > java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> > > > at java.lang.Class.newInstance0(Class.java:350)
> > > > at java.lang.Class.newInstance(Class.java:303)
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > -
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share
> > > your
> > > > opinions on IT & business topics through brief surveys - and earn
> > cash
> > > >
> > >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > >
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > -
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > > opinions on IT & business topics through brief surveys - and earn
> > cash
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > >
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> >
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list

[Wicket-user] numbervalidator 'java.lang.ClassCastException'

2007-01-15 Thread Nino Wael
Hi

 

Im getting an exception when I submit my page(base cause line 205 I 
numbervalidator). Im a bit puzzled by this since I cant understand why it 
should happened.

 

Entering a text string triggers the error, but that's the reason why I put in 
the numbervalidator in the first place.. I've been looking at the forminput 
from wicket examples and my code appear to be ok:

 

final FormModel formModel = new 
FormModel();

 

final PropertyModel carModel = new 
PropertyModel(formModel, "carModel");

final PropertyModel carYear = new 
PropertyModel(formModel, "carYear");

final PropertyModel carMillage = 
new PropertyModel(formModel,


   "carMillage");

final PropertyModel carFailureText 
= new PropertyModel(formModel,


   "carFailureText");

FormComponentFeedbackBorder 
feedbackBorder = new FormComponentFeedbackBorder(


   "feedback");

add(feedbackBorder);

Form form = new Form("theform");

feedbackBorder.add(form);

form.add(new 
DropDownChoice("carmodel", carModel, Offline


   .getCarsFromBrand("Opel")));

form.add(new RadioChoice("caryear", 
carYear, Offline.getCarYears()));

form.add(new 
TextField("carmillage", carMillage).add(NumberValidator


   .minimum(0)));

form.add(new 
TextArea("carfailuretext", carFailureText)


   .setRequired(true));

 

form.add(new Button("btn_submit") {

 protected void 
onValid() {

 


   CompoundPropertyModel model = new CompoundPropertyModel(


   formModel);


   setResponsePage(new ThankYouPage(model));

 };

});

 

  }

 

 

Regards Nino

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


Re: [Wicket-user] Tracking session expire exception

2007-01-15 Thread Nino Wael
Hmm, we had to track something similar. Could you describe what happens?

 

Our thing was something that was caused by clearing the pagemap and the same 
time referencing to the cleared page. Also we have a problem where we loose our 
session's id.

 

Regards Nino

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc-Andre Houle
Sent: 15. januar 2007 15:35
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Tracking session expire exception

 

Is there somebody here that had to track in his application why the session 
expire?  I'm in need of some "hint" on how to efficiently find the damn thing 
that have made the session expire abruptly. 
Surely somebody have done something about that! :) 

Marc

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


Re: [Wicket-user] skandinavian characters encoding lost...

2007-01-15 Thread Nino Wael
Actually I also remember asking about this before, hmm...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten
Sent: 15. januar 2007 15:43
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] skandinavian characters encoding lost...

No, that's not it.
I vaguely remember that Tomcat needs a setting in its configuration 
files before it will serve UTF-8 content. Otherwise it will silently 
convert it to ISO8859-1.

 Erik.


Martijn Dashorst wrote:
> Perhaps this:
> http://cwiki.apache.org/WICKET/how-to-change-the-character-encoding.html
>
> found through: http://woogle.billen.dk/search/q/tomcat%20encoding
>
> Martijn
>
> On 1/15/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:
>   
>> Well according to Johan its only for POSTs that Tomcat can be a problem.
>> I just tried for at least 10 minutes to find a reference to the exact
>> thing Tomcat does wrong, and I am sure it was on the Wicket Wiki at some
>> point, but I can not find it anymore.
>>
>> If someone can find it, or put it back on the Wicket Wiki, that would be
>> great.
>>
>> Cheers,
>> Erik.
>> 

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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

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


Re: [Wicket-user] numbervalidator 'java.lang.ClassCastException'

2007-01-15 Thread Nino Wael
Hmm the error is actually triggered by everything even if I enter a number...

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 15. januar 2007 16:11
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] numbervalidator 'java.lang.ClassCastException'

 

Hi

 

Im getting an exception when I submit my page(base cause line 205 I 
numbervalidator). Im a bit puzzled by this since I cant understand why it 
should happened.

 

Entering a text string triggers the error, but that's the reason why I put in 
the numbervalidator in the first place.. I've been looking at the forminput 
from wicket examples and my code appear to be ok:

 

final FormModel formModel = new 
FormModel();

 

final PropertyModel carModel = new 
PropertyModel(formModel, "carModel");

final PropertyModel carYear = new 
PropertyModel(formModel, "carYear");

final PropertyModel carMillage = 
new PropertyModel(formModel,


   "carMillage");

final PropertyModel carFailureText 
= new PropertyModel(formModel,


   "carFailureText");

FormComponentFeedbackBorder 
feedbackBorder = new FormComponentFeedbackBorder(


   "feedback");

add(feedbackBorder);

Form form = new Form("theform");

feedbackBorder.add(form);

form.add(new 
DropDownChoice("carmodel", carModel, Offline


   .getCarsFromBrand("Opel")));

form.add(new RadioChoice("caryear", 
carYear, Offline.getCarYears()));

form.add(new 
TextField("carmillage", carMillage).add(NumberValidator


   .minimum(0)));

form.add(new 
TextArea("carfailuretext", carFailureText)


   .setRequired(true));

 

form.add(new Button("btn_submit") {

 protected void 
onValid() {

 


   CompoundPropertyModel model = new CompoundPropertyModel(


   formModel);


   setResponsePage(new ThankYouPage(model));

 };

});

 

  }

 

 

Regards Nino

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


Re: [Wicket-user] numbervalidator 'java.lang.ClassCastException'

2007-01-15 Thread Erik van Oosten
Try the following:

form.add(new TextField("carmillage", carMillage, 
Integer.class).add(NumberValidator.minimum(0)));


 Erik.


Nino Wael wrote:
>
> Hi
>
>  
>
> Im getting an exception when I submit my page(base cause line 205 I 
> numbervalidator). Im a bit puzzled by this since I cant understand why 
> it should happened.
>
>  
>
> Entering a text string triggers the error, but that’s the reason why I 
> put in the numbervalidator in the first place.. I’ve been looking at 
> the forminput from wicket examples and my code appear to be ok:
>
>  
>
> final FormModel formModel 
> = new FormModel();
>
>  
>
> final PropertyModel 
> carModel = new PropertyModel(formModel, "carModel");
>
> final PropertyModel 
> carYear = new PropertyModel(formModel, "carYear");
>
> final PropertyModel 
> carMillage = new PropertyModel(formModel,
>
>   
>  
> "carMillage");
>
> final PropertyModel 
> carFailureText = new PropertyModel(formModel,
>
>   
>  
> "carFailureText");
>
> 
> FormComponentFeedbackBorder feedbackBorder = new 
> FormComponentFeedbackBorder(
>
>   
>  
> "feedback");
>
> add(feedbackBorder);
>
> Form form = new 
> Form("theform");
>
> feedbackBorder.add(form);
>
> form.add(new 
> DropDownChoice("carmodel", carModel, Offline
>
>   
>  
> .getCarsFromBrand("Opel")));
>
> form.add(new 
> RadioChoice("caryear", carYear, Offline.getCarYears()));
>
> form.add(new 
> TextField("carmillage", carMillage).add(NumberValidator
>
>   
>  
> .minimum(0)));
>
> form.add(new 
> TextArea("carfailuretext", carFailureText)
>
>   
>  
> .setRequired(true));
>
>  
>
> form.add(new 
> Button("btn_submit") {
>
>  
> protected void onValid() {
>
>  
>
>   
>  
> CompoundPropertyModel model = new CompoundPropertyModel(
>
>   
>  
> formModel);
>
>   
>  
> setResponsePage(new ThankYouPage(model));
>
>  };
>
> });
>
>  
>
>   }
>
>  
>
>  
>
> Regards Nino
>
> 
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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


[Wicket-user] Dynamic Form fields

2007-01-15 Thread Gustavo Yoshizaki

Hi, I'm trying to make a dynamic form. The basic idea is to be able to add
fields like when you upload files in a mail. The amount of files is N and
not know in prior. Cause wicket needs to have in the HTML side an id for the
field, the number of fields would be limited. Is there a way to make this
totally dynamic? I mean, to have a button or a link and when it is pressed a
new field appears in the form with no need to make a round trip to the
server?

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


Re: [Wicket-user] Tracking session expire exception

2007-01-15 Thread Marc-Andre Houle

While asking this, I found maybe why the page expire, but not sure.  It is
due to the use of pagemap to communicate from a pop-up to the current
window.  I'll try to explain what is happening :

I log in my application, I click the link to open the pop-up.  When clicking
on the link, I'm tring to add a pageparameters to the pop-up to pass the
pagemap name.
Presently, the log say that about updating pagemap :

In the pop up, I add a link to update the main window to display something
different.  I get the page map from parameters.  If page map is null, it is
because this session currently does not have a name and by default, the
first name used by wicket is : wicket-default.  If there is nothing, this is
what I enter.

Then, when I click this link, it load the page in the correct window.  This
is what is printed in the log file when updating page map :

Then, if I click on normal bookmarkable link, it work, but the first
ajaxlink I click will made the session to expire.  Nothing can be done, it
even didn't pass in the onClick method of the ajaxLink.  There is no other
error in the log, only loadingthe expired page

Marc

On 1/15/07, Nino Wael <[EMAIL PROTECTED]> wrote:


 Hmm, we had to track something similar. Could you describe what happens?



Our thing was something that was caused by clearing the pagemap and the
same time referencing to the cleared page. Also we have a problem where we
loose our session's id.



Regards Nino


 --

*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Marc-Andre Houle
*Sent:* 15. januar 2007 15:35
*To:* wicket-user@lists.sourceforge.net
*Subject:* [Wicket-user] Tracking session expire exception



Is there somebody here that had to track in his application why the
session expire?  I'm in need of some "hint" on how to efficiently find the
damn thing that have made the session expire abruptly.
Surely somebody have done something about that! :)

Marc

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

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



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


Re: [Wicket-user] Tracking session expire exception

2007-01-15 Thread Marc-Andre Houle

Damn It, I forgot to past thing in the post 

Before loading the pop up :
2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3)
[Session  ] updateSession(): Attaching session to PageMap
[PageMap name=popuppagemap, access=[]]
2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3)
[Session  ] updateSession(): Attaching session to PageMap
[PageMap name=null, access=[[Access id=0, version=0], [Access id=1,
version=0]]]

After loading the pop-up :
2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4)
[Session  ] updateSession(): Attaching session to PageMap
[PageMap name=popuppagemap, access=[]]
2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4)
[Session  ] updateSession(): Attaching session to PageMap
[PageMap name=null, access=[[Access id=0, version=0], [Access id=1,
version=0]]]
2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4)
[Session  ] updateSession(): Attaching session to PageMap
[PageMap name=wicket:default, access=[]]


I think my problem is about page-map and session, but I'm not sure of
anything
Marc

On 1/15/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote:


While asking this, I found maybe why the page expire, but not sure.  It is
due to the use of pagemap to communicate from a pop-up to the current
window.  I'll try to explain what is happening :

I log in my application, I click the link to open the pop-up.  When
clicking on the link, I'm tring to add a pageparameters to the pop-up to
pass the pagemap name.
Presently, the log say that about updating pagemap :

In the pop up, I add a link to update the main window to display something
different.  I get the page map from parameters.  If page map is null, it is
because this session currently does not have a name and by default, the
first name used by wicket is : wicket-default.  If there is nothing, this is
what I enter.

Then, when I click this link, it load the page in the correct window.
This is what is printed in the log file when updating page map :

Then, if I click on normal bookmarkable link, it work, but the first
ajaxlink I click will made the session to expire.  Nothing can be done, it
even didn't pass in the onClick method of the ajaxLink.  There is no other
error in the log, only loadingthe expired page

Marc

On 1/15/07, Nino Wael <[EMAIL PROTECTED]> wrote:

>  Hmm, we had to track something similar. Could you describe what
> happens?
>
>
>
> Our thing was something that was caused by clearing the pagemap and the
> same time referencing to the cleared page. Also we have a problem where we
> loose our session's id.
>
>
>
> Regards Nino
>
>
>  --
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] * On Behalf Of *Marc-Andre
> Houle
> *Sent:* 15. januar 2007 15:35
> *To:* wicket-user@lists.sourceforge.net
> *Subject:* [Wicket-user] Tracking session expire exception
>
>
>
> Is there somebody here that had to track in his application why the
> session expire?  I'm in need of some "hint" on how to efficiently find the
> damn thing that have made the session expire abruptly.
> Surely somebody have done something about that! :)
>
> Marc
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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


Re: [Wicket-user] Tracking session expire exception

2007-01-15 Thread Marc-Andre Houle

I think I found something.

first of all : Pop-up communication with pagemap is a nightmare.  I think
the problem was that it loaded using a specific pagemap in the correct
window but when trying to use ajaxLink, it didn't use the correct page map
and then failed to find the associated session. (Not sure at all...)

The solution I found presently to avoid the session expire is to use the
bookmarkable link without passing to it a pagemap and just setting the
target field of the link to the pagemap name.

Now, the problem is : when using the same instance of Firefox, every time I
load the application, it always use the same window name, which is
wicket:default.  Is it possible to set a particular pagemap when the user
login or set a window.name when the user log in?

Marc

On 1/15/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote:


Damn It, I forgot to past thing in the post 

Before loading the pop up :
2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3)
[Session  ] updateSession(): Attaching session to PageMap
[PageMap name=popuppagemap, access=[]]
2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3)
[Session  ] updateSession(): Attaching session to PageMap
[PageMap name=null, access=[[Access id=0, version=0], [Access id=1,
version=0]]]

After loading the pop-up :
2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4)
[Session  ] updateSession(): Attaching session to PageMap
[PageMap name=popuppagemap, access=[]]
2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4)
[Session  ] updateSession(): Attaching session to PageMap
[PageMap name=null, access=[[Access id=0, version=0], [Access id=1,
version=0]]]
2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4 )
[Session  ] updateSession(): Attaching session to PageMap
[PageMap name=wicket:default, access=[]]


I think my problem is about page-map and session, but I'm not sure of
anything
Marc

On 1/15/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote:
>
> While asking this, I found maybe why the page expire, but not sure.  It
> is due to the use of pagemap to communicate from a pop-up to the current
> window.  I'll try to explain what is happening :
>
> I log in my application, I click the link to open the pop-up.  When
> clicking on the link, I'm tring to add a pageparameters to the pop-up to
> pass the pagemap name.
> Presently, the log say that about updating pagemap :
>
> In the pop up, I add a link to update the main window to display
> something different.  I get the page map from parameters.  If page map is
> null, it is because this session currently does not have a name and by
> default, the first name used by wicket is : wicket-default.  If there is
> nothing, this is what I enter.
>
> Then, when I click this link, it load the page in the correct window.
> This is what is printed in the log file when updating page map :
>
> Then, if I click on normal bookmarkable link, it work, but the first
> ajaxlink I click will made the session to expire.  Nothing can be done, it
> even didn't pass in the onClick method of the ajaxLink.  There is no other
> error in the log, only loadingthe expired page
>
> Marc
>
> On 1/15/07, Nino Wael < [EMAIL PROTECTED]> wrote:
>
> >  Hmm, we had to track something similar. Could you describe what
> > happens?
> >
> >
> >
> > Our thing was something that was caused by clearing the pagemap and
> > the same time referencing to the cleared page. Also we have a problem where
> > we loose our session's id.
> >
> >
> >
> > Regards Nino
> >
> >
> >  --
> >
> > *From:* [EMAIL PROTECTED] [mailto:
> > [EMAIL PROTECTED] * On Behalf Of *Marc-Andre
> > Houle
> > *Sent:* 15. januar 2007 15:35
> > *To:* wicket-user@lists.sourceforge.net
> > *Subject:* [Wicket-user] Tracking session expire exception
> >
> >
> >
> > Is there somebody here that had to track in his application why the
> > session expire?  I'm in need of some "hint" on how to efficiently find the
> > damn thing that have made the session expire abruptly.
> > Surely somebody have done something about that! :)
> >
> > Marc
> >
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief survey

Re: [Wicket-user] Tracking session expire exception

2007-01-15 Thread Nick Heudecker

You can subclass HttpSessionStore and provide your own implementation of
onUnbind(String).  Then, use your new HttpSessionStore from your application
subclass:

public ISessionStore newSessionStore() {
   return new MySessionStore();
}

On 1/15/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote:


I think I found something.

first of all : Pop-up communication with pagemap is a nightmare.  I think
the problem was that it loaded using a specific pagemap in the correct
window but when trying to use ajaxLink, it didn't use the correct page map
and then failed to find the associated session. (Not sure at all...)

The solution I found presently to avoid the session expire is to use the
bookmarkable link without passing to it a pagemap and just setting the
target field of the link to the pagemap name.

Now, the problem is : when using the same instance of Firefox, every time
I load the application, it always use the same window name, which is
wicket:default.  Is it possible to set a particular pagemap when the user
login or set a window.name when the user log in?

Marc

On 1/15/07, Marc-Andre Houle <[EMAIL PROTECTED] > wrote:
>
> Damn It, I forgot to past thing in the post 
>
> Before loading the pop up :
> 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3)
> [Session  ] updateSession(): Attaching session to PageMap
> [PageMap name=popuppagemap, access=[]]
> 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3)
> [Session  ] updateSession(): Attaching session to PageMap
> [PageMap name=null, access=[[Access id=0, version=0], [Access id=1,
> version=0]]]
>
> After loading the pop-up :
> 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4)
> [Session  ] updateSession(): Attaching session to PageMap
> [PageMap name=popuppagemap, access=[]]
> 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4)
> [Session  ] updateSession(): Attaching session to PageMap
> [PageMap name=null, access=[[Access id=0, version=0], [Access id=1,
> version=0]]]
> 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4 )
> [Session  ] updateSession(): Attaching session to PageMap
> [PageMap name=wicket:default, access=[]]
>
>
> I think my problem is about page-map and session, but I'm not sure of
> anything
> Marc
>
> On 1/15/07, Marc-Andre Houle < [EMAIL PROTECTED]> wrote:
> >
> > While asking this, I found maybe why the page expire, but not sure.
> > It is due to the use of pagemap to communicate from a pop-up to the current
> > window.  I'll try to explain what is happening :
> >
> > I log in my application, I click the link to open the pop-up.  When
> > clicking on the link, I'm tring to add a pageparameters to the pop-up to
> > pass the pagemap name.
> > Presently, the log say that about updating pagemap :
> >
> > In the pop up, I add a link to update the main window to display
> > something different.  I get the page map from parameters.  If page map is
> > null, it is because this session currently does not have a name and by
> > default, the first name used by wicket is : wicket-default.  If there is
> > nothing, this is what I enter.
> >
> > Then, when I click this link, it load the page in the correct window.
> > This is what is printed in the log file when updating page map :
> >
> > Then, if I click on normal bookmarkable link, it work, but the first
> > ajaxlink I click will made the session to expire.  Nothing can be done, it
> > even didn't pass in the onClick method of the ajaxLink.  There is no other
> > error in the log, only loadingthe expired page
> >
> > Marc
> >
> > On 1/15/07, Nino Wael < [EMAIL PROTECTED]> wrote:
> >
> > >  Hmm, we had to track something similar. Could you describe what
> > > happens?
> > >
> > >
> > >
> > > Our thing was something that was caused by clearing the pagemap and
> > > the same time referencing to the cleared page. Also we have a problem 
where
> > > we loose our session's id.
> > >
> > >
> > >
> > > Regards Nino
> > >
> > >
> > >  --
> > >
> > > *From:* [EMAIL PROTECTED] [mailto:
> > > [EMAIL PROTECTED] * On Behalf Of *Marc-Andre
> > > Houle
> > > *Sent:* 15. januar 2007 15:35
> > > *To:* wicket-user@lists.sourceforge.net
> > > *Subject:* [Wicket-user] Tracking session expire exception
> > >
> > >
> > >
> > > Is there somebody here that had to track in his application why the
> > > session expire?  I'm in need of some "hint" on how to efficiently find the
> > > damn thing that have made the session expire abruptly.
> > > Surely somebody have done something about that! :)
> > >
> > > Marc
> > >
> > >
> > > -
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > share your
> > > opinions on IT & business topics through brief surveys - and earn
> > > cash
> > >
> > > http://www.techsay.com/default.php?pa

Re: [Wicket-user] ComponentModel

2007-01-15 Thread Igor Vaynberg

label works by replacing the _body_, since  has no body its a noop

-igor


On 1/15/07, Nino Wael <[EMAIL PROTECTED]> wrote:


Argh so it did not work because im lazy.. That figures:)

-Original Message-
From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of Erik van Oosten
Sent: 15. januar 2007 11:22
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] ComponentModel

Hi Nino,

You should never use  but always .

Regards,
 Erik.


Nino Wael wrote:
> Hmm this does not difference, still not working.. Heres the markup
before processing:
>
>

--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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

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

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


Re: [Wicket-user] DropDownChoice inconsistent value returned

2007-01-15 Thread pboyd

Thank you very much. Your explanation cleared things up for me and solved my
problem.

Peter



Johan Compagner wrote:
> 
> to quickly do it right in your example:
> 
> you should do it in reverse.
> 
> so this:
> 
>  for(;i   choices.add(values[i]);
> 
> should be
> 
>  for(;i   choices.add(ids[i]);
> 
> 
> so the id's are the valules/choices not the display values. Thats done in
> the choicerenderer:
> 
>public Object getDisplayValue(Object obj) {
> // obj == id, lookup id in id array then return value out of
> value array.
> }
> 
> public String getIdValue(Object obj, int i) {
>   return obj; // obj == the id
> }
> 
> 
> hopefully this will make it also more clear to other people, because this
> question does popup again and again. :(
> To many people come from the Swing world, with its Cell renderers :(
> 
> johan
> 
> 
> 
>> public class DateDropDownChoice extends DropDownChoice implements
>> Serializable {
>> // values to go into the hidden value attribute in the HTML option
>> tag
>> // AND to go into the model/database
>> final static private String[] ids =
>> {"20031","20032","20033","20034","20041",…};
>>
>> // values to be displayed in the dropdown
>> final static private String[] values ={"2003, Fall","2003,
>> Winter","2003, Spring","2003, Summer","2004, Fall",…};
>>
>> public DateDropDownChoice(String id, IModel iModel) {
>> super(id, iModel);
>> ArrayList choices = new ArrayList();
>>
>> int i = 0;
>> for(;i>// choices.add(new DateChoice(ids[i],values[i]));
>>   choices.add(values[i]);
>>
>> this.setChoices(choices);
>> this.setChoiceRenderer(new CustomChoiceRenderer());
>> }
>>
>>
>>
>> class CustomChoiceRenderer implements IChoiceRenderer{
>>
>>
>> public Object getDisplayValue(Object obj) {
>> return obj.toString();
>> }
>>
>> public String getIdValue(Object obj, int i) {
>>
>> /**
>>  * An "i" of -1 is passed when a previous selection
>>  * has been made and is stored, so just return the obj string
>> value
>>  * because it is a properly stored value such as "20063" from
>> the previous submission
>>  *
>>  * An "i" > 0 means that I need to look up the
>> appropriate/corresponding
>>  * value from the ids array.
>>  *
>>  */
>>
>> String returnVal = i<0?obj.toString():ids[i];
>> System.out.println("returnVal: "+returnVal+" :: ID:: "+i);
>> return returnVal;
>> }
>> }
>> }
>>
>>
>>
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/DropDownChoice-inconsistent-value-returned-tf2971300.html#a8374726
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Adding multiple behaviors fails

2007-01-15 Thread Igor Vaynberg

thats a kludge, there is no good way to do this cleanly.

what if i have a regular behavior that sets an onchange attr, and then add
an ajax behavior? then the script generated by the first behavior is erased.

you can say, lets just append them, but what if the first behavior's script
includes return statements for all paths? then the second script is never
called.

we either need a more powerful js-generator that can handle merging multiple
scriptlets properly, or we shouldnt do anyting at all imho.

at least when we do noting at all the user knows the exact outcome.

just my 2c.

-igor

On 1/15/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


yes this is how it works now

Maybe we could somehow merge it on the server side
when we see 2 behavior attached to the same event only generate for one
but also call the other..

johan


On 1/15/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> In my current application I added 2 AjaxFormComponentUpdatingBehaviors
> with event "onchange" to the same form component. Only the behavior that
> is added last will actually be called. Is this on purpose? I would like
> both to be called.
>
> I tried both on 1.2.4 and a fresh (today) 1.2 snapshot.
>
> Regards,
>  Erik.
>
>
> --
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
>
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


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

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



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


Re: [Wicket-user] Wicket Exceptions

2007-01-15 Thread Juergen Donnerstag
sounds like the "reached limit of open-file" issue. Should be solved
in the latest versions 1.2 and 2.x versions as far as I know.

Juergen

On 1/15/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> also, even though the project is being tested on the internet, I am still in
> development mode (which i suppose is default, if not set at all) . it runs
> fine on localhost but the behaviour seems to appear once we try accessing
> the application from the internet. works without errors for a session but
> seems to throw this errors when other session users try to access it
>
>
>
>
>
>
>
> On 1/15/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> > version 1.2.3
> >
> >
> >
> > On 1/15/07, Johan Compagner < [EMAIL PROTECTED]> wrote:
> > > because xmlReader == null
> > > and then a null pointer is thrown. instead of the original exception
> that was created somewhere
> > > in the construction of xmlReader.. (thats why it is still null)
> > >
> > > johan
> > >
> > >
> > >
> > >
> > > On 1/15/07, Juergen Donnerstag <[EMAIL PROTECTED] > wrote:
> > > > Why is the exception swallowed? Finally doesnt swallow it.
> > > >
> > > > Juergen
> > > >
> > > > On 1/15/07, Johan Compagner < [EMAIL PROTECTED]> wrote:
> > > > > do you have a quickstart?
> > > > > can you see what version do you use? (390 is not a code line in the
> code i
> > > > > am now looking at)
> > > > >
> > > > > But looking at the code around that line:
> > > > >
> > > > > try
> > > > > {
> > > > > this.xmlReader = new XmlReader(
> > > > > new
> BufferedInputStream(resource.getInputStream(),
> > > > > 4000), encoding);
> > > > > this.input = new FullyBufferedReader(this.xmlReader);
> > > > > }
> > > > > finally
> > > > > {
> > > > > resource.close();
> > > > > this.xmlReader.close(); << this is 390 i guess
> > > > > }
> > > > >
> > > > > then this seems a bit wrong yes..
> > > > > If there is a problem constructing the XmlReader then that exception
> is
> > > > > swallowed and a null pointer is generated
> > > > > will fix this.
> > > > >
> > > > > johan
> > > > >
> > > > > On 1/15/07, Ayodeji Aladejebi < [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > We are hosting a project based on wicket and we have done a series
> of test
> > > > > deployments that seem to work very fine. However we did an upgrade
> and we
> > > > > are consistently getting this error.
> > > > > >
> > > > > > any idea as to why this happens. Code runs fine on localhost
> machine
> > > > > >
> > > > > > B
> > > > > >
> > > > > >
> > > > > > Root cause:
> > > > > >
> > > > > > java.lang.NullPointerException
> > > > > > at
> > > > >
> wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390)
> > > > > > at
> > > > >
> wicket.markup.MarkupParser.readAndParse(MarkupParser.java
> > > > > :196)
> > > > > > at
> > > > >
> wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279)
> > > > > > at
> > > > >
> wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:354)
> > > > > > at wicket.markup.MarkupCache.getMarkup
> (MarkupCache.java
> > > > > :198)
> > > > > > at
> > > > >
> wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106)
> > > > > > at
> > > > >
> wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827)
> > > > > > at
> wicket.markup.html.WebPage.commonInit(WebPage.java
> > > > > :235)
> > > > > > at wicket.markup.html.WebPage.(WebPage.java:120)
> > > > > > at com.nairanet.nelx.HomePage.(HomePage.java :55)
> > > > > > at
> > > > >
> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> > > > > > at java.lang.Class.newInstance0(Class.java:350)
> > > > > > at java.lang.Class.newInstance(Class.java:303)
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> -
> > > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> share
> > > > > your
> > > > > > opinions on IT & business topics through brief surveys - and earn
> cash
> > > > > >
> > > > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > > >
> > > > > > ___
> > > > > > Wicket-user mailing list
> > > > > > Wicket-user@lists.sourceforge.net
> > > > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> -
> > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> > > > > opinions on IT & business topics through brief surveys - and earn
> cash
> > > > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > >
> > > > > __

Re: [Wicket-user] skandinavian characters encoding lost...

2007-01-15 Thread Juergen Donnerstag
http://cwiki.apache.org/WW/how-to-support-utf-8-uriencoding-with-tomcat.html

Juergen

On 1/15/07, Nino Wael <[EMAIL PROTECTED]> wrote:
> Actually I also remember asking about this before, hmm...
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten
> Sent: 15. januar 2007 15:43
> To: wicket-user@lists.sourceforge.net
> Subject: Re: [Wicket-user] skandinavian characters encoding lost...
>
> No, that's not it.
> I vaguely remember that Tomcat needs a setting in its configuration
> files before it will serve UTF-8 content. Otherwise it will silently
> convert it to ISO8859-1.
>
> Erik.
>
>
> Martijn Dashorst wrote:
> > Perhaps this:
> > http://cwiki.apache.org/WICKET/how-to-change-the-character-encoding.html
> >
> > found through: http://woogle.billen.dk/search/q/tomcat%20encoding
> >
> > Martijn
> >
> > On 1/15/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> >
> >> Well according to Johan its only for POSTs that Tomcat can be a problem.
> >> I just tried for at least 10 minutes to find a reference to the exact
> >> thing Tomcat does wrong, and I am sure it was on the Wicket Wiki at some
> >> point, but I can not find it anymore.
> >>
> >> If someone can find it, or put it back on the Wicket Wiki, that would be
> >> great.
> >>
> >> Cheers,
> >> Erik.
> >>
>
> --
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

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


Re: [Wicket-user] Dynamic Form fields

2007-01-15 Thread Igor Vaynberg

yep, create a panel that has a label+fileupload field, then add as many of
these as you want to a RefreshingView or another repater. there are examples
of repeaters in wicket-examples

-igor


On 1/15/07, Gustavo Yoshizaki <[EMAIL PROTECTED]> wrote:


Hi, I'm trying to make a dynamic form. The basic idea is to be able to add
fields like when you upload files in a mail. The amount of files is N and
not know in prior. Cause wicket needs to have in the HTML side an id for the
field, the number of fields would be limited. Is there a way to make this
totally dynamic? I mean, to have a button or a link and when it is pressed a
new field appears in the form with no need to make a round trip to the
server?

Thanks

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

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



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


Re: [Wicket-user] Wicket Exceptions

2007-01-15 Thread Igor Vaynberg

also you shouldnt deploy your apps in development mode - that mode is
for...development :)

-igor


On 1/15/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:


sounds like the "reached limit of open-file" issue. Should be solved
in the latest versions 1.2 and 2.x versions as far as I know.

Juergen

On 1/15/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> also, even though the project is being tested on the internet, I am
still in
> development mode (which i suppose is default, if not set at all) . it
runs
> fine on localhost but the behaviour seems to appear once we try
accessing
> the application from the internet. works without errors for a session
but
> seems to throw this errors when other session users try to access it
>
>
>
>
>
>
>
> On 1/15/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> > version 1.2.3
> >
> >
> >
> > On 1/15/07, Johan Compagner < [EMAIL PROTECTED]> wrote:
> > > because xmlReader == null
> > > and then a null pointer is thrown. instead of the original exception
> that was created somewhere
> > > in the construction of xmlReader.. (thats why it is still null)
> > >
> > > johan
> > >
> > >
> > >
> > >
> > > On 1/15/07, Juergen Donnerstag <[EMAIL PROTECTED] >
wrote:
> > > > Why is the exception swallowed? Finally doesnt swallow it.
> > > >
> > > > Juergen
> > > >
> > > > On 1/15/07, Johan Compagner < [EMAIL PROTECTED]> wrote:
> > > > > do you have a quickstart?
> > > > > can you see what version do you use? (390 is not a code line in
the
> code i
> > > > > am now looking at)
> > > > >
> > > > > But looking at the code around that line:
> > > > >
> > > > > try
> > > > > {
> > > > > this.xmlReader = new XmlReader(
> > > > > new
> BufferedInputStream(resource.getInputStream(),
> > > > > 4000), encoding);
> > > > > this.input = new FullyBufferedReader(this.xmlReader
);
> > > > > }
> > > > > finally
> > > > > {
> > > > > resource.close();
> > > > > this.xmlReader.close(); << this is 390 i guess
> > > > > }
> > > > >
> > > > > then this seems a bit wrong yes..
> > > > > If there is a problem constructing the XmlReader then that
exception
> is
> > > > > swallowed and a null pointer is generated
> > > > > will fix this.
> > > > >
> > > > > johan
> > > > >
> > > > > On 1/15/07, Ayodeji Aladejebi < [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > We are hosting a project based on wicket and we have done a
series
> of test
> > > > > deployments that seem to work very fine. However we did an
upgrade
> and we
> > > > > are consistently getting this error.
> > > > > >
> > > > > > any idea as to why this happens. Code runs fine on localhost
> machine
> > > > > >
> > > > > > B
> > > > > >
> > > > > >
> > > > > > Root cause:
> > > > > >
> > > > > > java.lang.NullPointerException
> > > > > > at
> > > > >
> wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390)
> > > > > > at
> > > > >
> wicket.markup.MarkupParser.readAndParse(MarkupParser.java
> > > > > :196)
> > > > > > at
> > > > >
> wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279)
> > > > > > at
> > > > >
> wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java
:354)
> > > > > > at wicket.markup.MarkupCache.getMarkup
> (MarkupCache.java
> > > > > :198)
> > > > > > at
> > > > >
> wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106)
> > > > > > at
> > > > >
> wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java
:827)
> > > > > > at
> wicket.markup.html.WebPage.commonInit(WebPage.java
> > > > > :235)
> > > > > > at wicket.markup.html.WebPage.(WebPage.java:120)
> > > > > > at com.nairanet.nelx.HomePage.(HomePage.java :55)
> > > > > > at
> > > > >
> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> > > > > > at java.lang.Class.newInstance0(Class.java:350)
> > > > > > at java.lang.Class.newInstance(Class.java:303)
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
>
-
> > > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > > Join SourceForge.net's Techsay panel and you'll get the chance
to
> share
> > > > > your
> > > > > > opinions on IT & business topics through brief surveys - and
earn
> cash
> > > > > >
> > > > >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > > >
> > > > > > ___
> > > > > > Wicket-user mailing list
> > > > > > Wicket-user@lists.sourceforge.net
> > > > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
>
-
> > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > Join SourceForge.net's Techsay panel and you'll get the chance
to
> share your
> > > > > opinions on IT & business topics 

Re: [Wicket-user] Is there any uml diagram for wicket?

2007-01-15 Thread James McLaughlin

Probably pretty old, but...
http://www.nabble.com/UML-diagram--tf1501388.html#a4070219

hth,
jim

On 1/15/07, Ramazan Pekin <[EMAIL PROTECTED]> wrote:


Hi everyone

Is there any uml diagram for wicket framework, or is there any flowchart?

--
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! 
Travelto
 find your fit.

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

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



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


Re: [Wicket-user] MissingResourceException

2007-01-15 Thread Eelco Hillenius
Strange error. Did you try running in deployment mode in case you weren't yet?

Eelco


On 1/15/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> version 1.2.3
> development mode
>
>
> On 1/15/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> > Which wicket version are you using? You are not running out of open
> > files, do you? Are you running the application in development or
> > deployment mode?
> >
> > Juergen
> >
> > On 1/15/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> > > I always get this exception after a while of running my wicket
> > > application. It works on redeployment but suddenly just starts showing
> > > this exception after somedays of running
> > >
> > > WicketMessage: Exception in rendering component: [Component id =
> > > heading, page = com.nairanet.nelx.HomePage, path =
> > > 0:advert1:heading.Label, isVisible = true, isVersioned = true]
> > >
> > > Root cause:
> > >
> > > java.util.MissingResourceException: Unable to find
> resource:
> > > panel_post_cv_heading for component: advert1
> > > at wicket.Localizer.getString(Localizer.java:262)
> > > at wicket.Localizer.getString(Localizer.java:121)
> > > at
> wicket.model.StringResourceModel.getString(StringResourceModel.java:403)
> > > at wicket.model.StringResourceModel.toString
> (StringResourceModel.java:464)
> > > at java.lang.String.valueOf(String.java:2615)
> > > at java.lang.StringBuffer.append(StringBuffer.java:220)
> > > at
> wicket.model.AbstractDetachableModel.getObject(AbstractDetachableModel.java
> :108)
> > > at wicket.Component.getModelObject(Component.java:990)
> > > at
> wicket.Component.getModelObjectAsString(Component.java:1005)
> > > at
> wicket.markup.html.basic.Label.onComponentTagBody(Label.java:113)
> > > at
> wicket.Component.renderComponent(Component.java:1719)
> > > at
> wicket.markup.html.WebComponent.onRender(WebComponent.java:61)
> > > at wicket.Component.render(Component.java:1533)
> > > at wicket.MarkupContainer.renderNext
> (MarkupContainer.java:1334)
> > > at
> wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982)
> > > at
> wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:571)
> > > at wicket.markup.html.panel.Panel.onComponentTagBody
> (Panel.java:108)
> > > at
> wicket.Component.renderComponent(Component.java:1719)
> > > at wicket.MarkupContainer.onRender(MarkupContainer.java:927)
> > > at wicket.Component.render(Component.java:1533)
> > >
> > >
> > >
> > > --
> > >
> > >
> -
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > > opinions on IT & business topics through brief surveys - and earn cash
> > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net 's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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


Re: [Wicket-user] Adding multiple behaviors fails

2007-01-15 Thread Eelco Hillenius
Yeah, that is a bit dangerous. Currently, we don't do much to check
whether behaviors overwrite each other. We probably could if we think
up another interface that cooperates with IBehavior. And maybe we can
combine that with a convenience class a la AppendingBehavior, it would
make things easier than in the current situation. But that's about how
far we should go imho.

Eelco


On 1/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> thats a kludge, there is no good way to do this cleanly.
>
> what if i have a regular behavior that sets an onchange attr, and then add
> an ajax behavior? then the script generated by the first behavior is erased.
>
>  you can say, lets just append them, but what if the first behavior's script
> includes return statements for all paths? then the second script is never
> called.
>
> we either need a more powerful js-generator that can handle merging multiple
> scriptlets properly, or we shouldnt do anyting at all imho.
>
> at least when we do noting at all the user knows the exact outcome.
>
> just my 2c.
>
> -igor
>
>
> On 1/15/07, Johan Compagner < [EMAIL PROTECTED]> wrote:
> > yes this is how it works now
> >
> > Maybe we could somehow merge it on the server side
> > when we see 2 behavior attached to the same event only generate for one
> but also call the other..
> >
> > johan
> >
> >
> >
> >
> > On 1/15/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > In my current application I added 2
> AjaxFormComponentUpdatingBehaviors
> > > with event "onchange" to the same form component. Only the behavior that
> > > is added last will actually be called. Is this on purpose? I would like
> > > both to be called.
> > >
> > > I tried both on 1.2.4 and a fresh (today) 1.2 snapshot.
> > >
> > > Regards,
> > >  Erik.
> > >
> > >
> > > --
> > > Erik van Oosten
> > > http://www.day-to-day-stuff.blogspot.com/
> > >
> > >
> > >
> -
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > > opinions on IT & business topics through brief surveys - and earn cash
> > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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


Re: [Wicket-user] Adding multiple behaviors fails

2007-01-15 Thread Igor Vaynberg

problem with appending, etc, is that in my experience most behaviors will
have a return statement for every path, so appending will pretty much be a
noop

-igor


On 1/15/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


Yeah, that is a bit dangerous. Currently, we don't do much to check
whether behaviors overwrite each other. We probably could if we think
up another interface that cooperates with IBehavior. And maybe we can
combine that with a convenience class a la AppendingBehavior, it would
make things easier than in the current situation. But that's about how
far we should go imho.

Eelco


On 1/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> thats a kludge, there is no good way to do this cleanly.
>
> what if i have a regular behavior that sets an onchange attr, and then
add
> an ajax behavior? then the script generated by the first behavior is
erased.
>
>  you can say, lets just append them, but what if the first behavior's
script
> includes return statements for all paths? then the second script is
never
> called.
>
> we either need a more powerful js-generator that can handle merging
multiple
> scriptlets properly, or we shouldnt do anyting at all imho.
>
> at least when we do noting at all the user knows the exact outcome.
>
> just my 2c.
>
> -igor
>
>
> On 1/15/07, Johan Compagner < [EMAIL PROTECTED]> wrote:
> > yes this is how it works now
> >
> > Maybe we could somehow merge it on the server side
> > when we see 2 behavior attached to the same event only generate for
one
> but also call the other..
> >
> > johan
> >
> >
> >
> >
> > On 1/15/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > In my current application I added 2
> AjaxFormComponentUpdatingBehaviors
> > > with event "onchange" to the same form component. Only the behavior
that
> > > is added last will actually be called. Is this on purpose? I would
like
> > > both to be called.
> > >
> > > I tried both on 1.2.4 and a fresh (today) 1.2 snapshot.
> > >
> > > Regards,
> > >  Erik.
> > >
> > >
> > > --
> > > Erik van Oosten
> > > http://www.day-to-day-stuff.blogspot.com/
> > >
> > >
> > >
>
-
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > > opinions on IT & business topics through brief surveys - and earn
cash
> > >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> >
>
-
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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

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


Re: [Wicket-user] Adding multiple behaviors fails

2007-01-15 Thread Eelco Hillenius
Ok, so that wouldn't solve anything. Recognizing you're trying to
overwrite an attribute that was previously written by another behavior
might help in at least figuring out that there is a problem. Though
otoh, I don't think it's gonna be a big saver.

Any other ideas?

Eelco


On 1/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> problem with appending, etc, is that in my experience most behaviors will
> have a return statement for every path, so appending will pretty much be a
> noop
>
> -igor
>
>
>
> On 1/15/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > Yeah, that is a bit dangerous. Currently, we don't do much to check
> > whether behaviors overwrite each other. We probably could if we think
> > up another interface that cooperates with IBehavior. And maybe we can
> > combine that with a convenience class a la AppendingBehavior, it would
> > make things easier than in the current situation. But that's about how
> > far we should go imho.
> >
> > Eelco
> >
> >
> > On 1/15/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > > thats a kludge, there is no good way to do this cleanly.
> > >
> > > what if i have a regular behavior that sets an onchange attr, and then
> add
> > > an ajax behavior? then the script generated by the first behavior is
> erased.
> > >
> > >  you can say, lets just append them, but what if the first behavior's
> script
> > > includes return statements for all paths? then the second script is
> never
> > > called.
> > >
> > > we either need a more powerful js-generator that can handle merging
> multiple
> > > scriptlets properly, or we shouldnt do anyting at all imho.
> > >
> > > at least when we do noting at all the user knows the exact outcome.
> > >
> > > just my 2c.
> > >
> > > -igor
> > >
> > >
> > > On 1/15/07, Johan Compagner < [EMAIL PROTECTED]> wrote:
> > > > yes this is how it works now
> > > >
> > > > Maybe we could somehow merge it on the server side
> > > > when we see 2 behavior attached to the same event only generate for
> one
> > > but also call the other..
> > > >
> > > > johan
> > > >
> > > >
> > > >
> > > >
> > > > On 1/15/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> > > > > Hi,
> > > > >
> > > > > In my current application I added 2
> > > AjaxFormComponentUpdatingBehaviors
> > > > > with event "onchange" to the same form component. Only the behavior
> that
> > > > > is added last will actually be called. Is this on purpose? I would
> like
> > > > > both to be called.
> > > > >
> > > > > I tried both on 1.2.4 and a fresh (today) 1.2 snapshot.
> > > > >
> > > > > Regards,
> > > > >  Erik.
> > > > >
> > > > >
> > > > > --
> > > > > Erik van Oosten
> > > > > http://www.day-to-day-stuff.blogspot.com/
> > > > >
> > > > >
> > > > >
> > >
> -
> > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> share
> > > your
> > > > > opinions on IT & business topics through brief surveys - and earn
> cash
> > > > >
> > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > > ___
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > >
> > > >
> > > >
> > >
> -
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> share
> > > your
> > > > opinions on IT & business topics through brief surveys - and earn cash
> > > >
> > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > >
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > > >
> > > >
> > >
> > >
> > >
> -
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > > opinions on IT & business topics through brief surveys - and earn cash
> > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforg

Re: [Wicket-user] spring integration question

2007-01-15 Thread Eelco Hillenius
The licence header test fails. If you provide parameter
-Dmaven.test.skip=true, the project builds and works fine.

Frank, if you are reading this, wouldn't

licenseHeader = url.getFile();

work better than

licenseHeader = new wicket.util.file.File(new
URI(url.toString())).readString(); ?

Currently, the test run from Eclipse succeeds, but running from mvn results in:

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.161
sec <<< FAILURE!
testLicenseHeaders(wicket.util.license.ApacheLicenceHeaderTest)  Time
elapsed: 0.086 sec  <<< FAILURE!
junit.framework.AssertionFailedError: URI is not hierarchical
at junit.framework.Assert.fail(Assert.java:47)
at 
wicket.util.license.AbstractLicenseHeaderHandler.getLicenseHeader(AbstractLicenseHeaderHandler.java:77)
at 
wicket.util.license.JavaLicenseHeaderHandler.checkLicenseHeader(JavaLicenseHeaderHandler.java:81)
at 
wicket.util.license.ApacheLicenseHeaderTestCase$1.visitFile(ApacheLicenseHeaderTestCase.java:209)

etc.

Eelco

On 1/15/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> Thanks Mats, yes I agree.
>
> I am also reporting (refer original message) that wicket-spring-annot is
> broken for Maven 2 users, so at the moment I cannot use it even if I wanted
> to.  Can anyone comment on this?
>
>  Thanks,
>
> Peter.
>
>
> On 1/15/07, Mats Norén <[EMAIL PROTECTED]> wrote:
> > Oops, sorry, didn't read your entire mail.
> > However, I do feel that the extra dependency is worth it in the long
> > run. You very seldom have only one DAO in your application... :) Let's
> > say you have 50 beans that you want to use in different parts of the
> > system, the code bloat in the Application class will be quite big.
> >
> > /Mats
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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


Re: [Wicket-user] Tracking session expire exception

2007-01-15 Thread Marc-Andre Houle

I don't understand how this can help.  Can you give me an example?
And BTW, is there somewhere documentation on PageMap.  I'm not sure I really
grasp all the concept aroud this.  I tough that page map made sure that in
one instance in your application server, you have only one name/session
pair.  In my application, if I create new firefox tabs, it will have the
same page map name (which is "null").  Also, I though that the
window.namevalue was always synced with the pagemap name.

In fact, more I advance, less I'm sure to know :)

Marc

On 1/15/07, Nick Heudecker <[EMAIL PROTECTED]> wrote:


You can subclass HttpSessionStore and provide your own implementation of
onUnbind(String).  Then, use your new HttpSessionStore from your application
subclass:

public ISessionStore newSessionStore() {
return new MySessionStore();
}

On 1/15/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote:
>
> I think I found something.
>
> first of all : Pop-up communication with pagemap is a nightmare.  I
> think the problem was that it loaded using a specific pagemap in the correct
> window but when trying to use ajaxLink, it didn't use the correct page map
> and then failed to find the associated session. (Not sure at all...)
>
> The solution I found presently to avoid the session expire is to use the
> bookmarkable link without passing to it a pagemap and just setting the
> target field of the link to the pagemap name.
>
> Now, the problem is : when using the same instance of Firefox, every
> time I load the application, it always use the same window name, which is
> wicket:default.  Is it possible to set a particular pagemap when the user
> login or set a window.name when the user log in?
>
> Marc
>
> On 1/15/07, Marc-Andre Houle <[EMAIL PROTECTED] > wrote:
> >
> > Damn It, I forgot to past thing in the post 
> >
> > Before loading the pop up :
> > 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3)
> > [Session  ] updateSession(): Attaching session to PageMap
> > [PageMap name=popuppagemap, access=[]]
> > 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3)
> > [Session  ] updateSession(): Attaching session to PageMap
> > [PageMap name=null, access=[[Access id=0, version=0], [Access id=1,
> > version=0]]]
> >
> > After loading the pop-up :
> > 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4)
> > [Session  ] updateSession(): Attaching session to PageMap
> > [PageMap name=popuppagemap, access=[]]
> > 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4)
> > [Session  ] updateSession(): Attaching session to PageMap
> > [PageMap name=null, access=[[Access id=0, version=0], [Access id=1,
> > version=0]]]
> > 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4 )
> > [Session  ] updateSession(): Attaching session to PageMap
> > [PageMap name=wicket:default, access=[]]
> >
> >
> > I think my problem is about page-map and session, but I'm not sure of
> > anything
> > Marc
> >
> > On 1/15/07, Marc-Andre Houle < [EMAIL PROTECTED]> wrote:
> > >
> > > While asking this, I found maybe why the page expire, but not sure.
> > > It is due to the use of pagemap to communicate from a pop-up to the 
current
> > > window.  I'll try to explain what is happening :
> > >
> > > I log in my application, I click the link to open the pop-up.  When
> > > clicking on the link, I'm tring to add a pageparameters to the pop-up to
> > > pass the pagemap name.
> > > Presently, the log say that about updating pagemap :
> > >
> > > In the pop up, I add a link to update the main window to display
> > > something different.  I get the page map from parameters.  If page map is
> > > null, it is because this session currently does not have a name and by
> > > default, the first name used by wicket is : wicket-default.  If there is
> > > nothing, this is what I enter.
> > >
> > > Then, when I click this link, it load the page in the correct
> > > window.  This is what is printed in the log file when updating page map :
> > >
> > > Then, if I click on normal bookmarkable link, it work, but the first
> > > ajaxlink I click will made the session to expire.  Nothing can be done, it
> > > even didn't pass in the onClick method of the ajaxLink.  There is no other
> > > error in the log, only loadingthe expired page
> > >
> > > Marc
> > >
> > > On 1/15/07, Nino Wael < [EMAIL PROTECTED]> wrote:
> > >
> > > >  Hmm, we had to track something similar. Could you describe what
> > > > happens?
> > > >
> > > >
> > > >
> > > > Our thing was something that was caused by clearing the pagemap
> > > > and the same time referencing to the cleared page. Also we have a 
problem
> > > > where we loose our session's id.
> > > >
> > > >
> > > >
> > > > Regards Nino
> > > >
> > > >
> > > >  --
> > > >
> > > > *From:* [EMAIL PROTECTED] [mailto:
> > > > [EMAIL PROTECTED] * On Behalf Of *Marc-Andre
> > > > Houle
> > > > *Sent:* 15. januar 2007 1

[Wicket-user] revising the "Working with Wicket models" page

2007-01-15 Thread Loren Rosen

When I first started using Wicket I found the information on models a little
hard to follow. So now I'd like to revise the "Working with Wicket models"
wiki page 
(http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models)
to improve this. I'd be happy to outline what I think should be improved
(though this is a little hard to do in detail short of simply annotating the
page) or I can just plunge ahead and draft a revised page. If I do the
latter I could potentially post it somewhere else for comment instead of
directly replacing the existing page on the wiki. Perhaps we need a 'in
draft' part of the wiki for working on long pages like this one.

Actually, another alternative is for me to gradually introduce changes to
the wiki page over a span of days, giving people a chance to comment as I
go.
-- 
View this message in context: 
http://www.nabble.com/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8378321
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] revising the "Working with Wicket models" page

2007-01-15 Thread Igor Vaynberg

go ahead and edit the page...the wiki is versioned i think so we can always
roll back.

when you are done with the majority let us know and we will review the
changes.

-igor


On 1/15/07, Loren Rosen <[EMAIL PROTECTED]> wrote:



When I first started using Wicket I found the information on models a
little
hard to follow. So now I'd like to revise the "Working with Wicket models"
wiki page
(
http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
)
to improve this. I'd be happy to outline what I think should be improved
(though this is a little hard to do in detail short of simply annotating
the
page) or I can just plunge ahead and draft a revised page. If I do the
latter I could potentially post it somewhere else for comment instead of
directly replacing the existing page on the wiki. Perhaps we need a 'in
draft' part of the wiki for working on long pages like this one.

Actually, another alternative is for me to gradually introduce changes to
the wiki page over a span of days, giving people a chance to comment as I
go.
--
View this message in context:
http://www.nabble.com/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8378321
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


[Wicket-user] Wicket Examples - Repeater View - Data Table Example - How is it sorting?

2007-01-15 Thread MClark00

Hi,

I'm trying to mimic the Data Table example in the Repeaters examples, and
can't get the sort to work.  I looked at DataTablePage.java, and it looks
like it's just using the stock DefaultDataTable.  Once I dug down through
the 1.2.4 code a little, I noticed that the OrderByBorder doesn't actually
implement the sort direction change, which explains why mine doesn't sort.

My question is: why is the DataTablePage.java sorting correctly?  Is it
using 2.X?

Sorry for the simple question, but I just want to make sure there isn't some
subtlety with the example that I'm missing that I could use in 1.2.4 to get
the sort working.

Thanks,
Matt
-- 
View this message in context: 
http://www.nabble.com/Wicket-Examples---Repeater-View---Data-Table-Example---How-is-it-sorting--tf3016996.html#a8378532
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Wicket Examples - Repeater View - Data Table Example - How is it sorting?

2007-01-15 Thread MClark00

Sorry, to clarify my problem, it does sort initially correctly, but while
clicking the header changes the order by arrow (up or down), the sort
direction of the data does not change.  In fact, my data provider's setSort
methods never get called when I click to change the sort.

Thanks,
Matt


MClark00 wrote:
> 
> Hi,
> 
> I'm trying to mimic the Data Table example in the Repeaters examples, and
> can't get the sort to work.  I looked at DataTablePage.java, and it looks
> like it's just using the stock DefaultDataTable.  Once I dug down through
> the 1.2.4 code a little, I noticed that the OrderByBorder doesn't actually
> implement the sort direction change, which explains why mine doesn't sort.
> 
> My question is: why is the DataTablePage.java sorting correctly?  Is it
> using 2.X?
> 
> Sorry for the simple question, but I just want to make sure there isn't
> some subtlety with the example that I'm missing that I could use in 1.2.4
> to get the sort working.
> 
> Thanks,
> Matt
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Examples---Repeater-View---Data-Table-Example---How-is-it-sorting--tf3016996.html#a8378534
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Wicket Examples - Repeater View - Data Table Example - How is it sorting?

2007-01-15 Thread Igor Vaynberg

it is OrderByLink used inside OrderByBorder that sets the sort state.

see OrderByLink.sort() which is called from OrderByLink.onclick()

-igor


On 1/15/07, MClark00 <[EMAIL PROTECTED]> wrote:



Sorry, to clarify my problem, it does sort initially correctly, but while
clicking the header changes the order by arrow (up or down), the sort
direction of the data does not change.  In fact, my data provider's
setSort
methods never get called when I click to change the sort.

Thanks,
Matt


MClark00 wrote:
>
> Hi,
>
> I'm trying to mimic the Data Table example in the Repeaters examples,
and
> can't get the sort to work.  I looked at DataTablePage.java, and it
looks
> like it's just using the stock DefaultDataTable.  Once I dug down
through
> the 1.2.4 code a little, I noticed that the OrderByBorder doesn't
actually
> implement the sort direction change, which explains why mine doesn't
sort.
>
> My question is: why is the DataTablePage.java sorting correctly?  Is it
> using 2.X?
>
> Sorry for the simple question, but I just want to make sure there isn't
> some subtlety with the example that I'm missing that I could use in
1.2.4
> to get the sort working.
>
> Thanks,
> Matt
>

--
View this message in context:
http://www.nabble.com/Wicket-Examples---Repeater-View---Data-Table-Example---How-is-it-sorting--tf3016996.html#a8378534
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] Adding multiple behaviors fails

2007-01-15 Thread Erik van Oosten
No big ideas here, I am afraid.

For me it seems logical to just call both behaviors sequentially from 
the Wicket servlet/filter and combine the results (where the only 
results I know are things added to the AjaxRequestTarget). But the inner 
workings of Wicket are mostly terra incognita for me so I probably miss 
something. Perhaps we'll need to do 2 Ajax calls from the browser. But I 
suspect that everything I wrote here was already written in Igor's 
previous mails.

In my case one of the behaviors does some form validation and adds a 
feedback panel to the AjaxRequestTarget, the other behavior adds another 
div to the AjaxRequestTarget. These are easy to combine.

 Erik.


Eelco Hillenius wrote:
> Ok, so that wouldn't solve anything. Recognizing you're trying to
> overwrite an attribute that was previously written by another behavior
> might help in at least figuring out that there is a problem. Though
> otoh, I don't think it's gonna be a big saver.
>
> Any other ideas?
>
> Eelco
>
>
> On 1/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>   
>> problem with appending, etc, is that in my experience most behaviors will
>> have a return statement for every path, so appending will pretty much be a
>> noop
>>
>> -igor
>>
>>
>> On 1/15/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>> 
>>> Yeah, that is a bit dangerous. Currently, we don't do much to check
>>> whether behaviors overwrite each other. We probably could if we think
>>> up another interface that cooperates with IBehavior. And maybe we can
>>> combine that with a convenience class a la AppendingBehavior, it would
>>> make things easier than in the current situation. But that's about how
>>> far we should go imho.
>>>
>>> Eelco
>>>   

-- 
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


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


Re: [Wicket-user] Tracking session expire exception

2007-01-15 Thread Marc-Andre Houle

Let's make a demo of what I presently don't understand :
In a quickstart, have a page that only do this :
   System.out.println ("index Page map is :" + getPageMap
().getName ());
   add(new Link("page2")
   {

   public void onClick ()
   {
   setResponsePage(Page2.class);
   }
   });
In the page 2, the only thing you do is :
   System.out.println ("Page 2 map is :" + getPageMap ().getName ());

Now, the output look like this :
I access the index page first time :
index Page map is :null
I access the index page from another tab :
index Page map is :null
index Page map is :wicket-0
I access Page2 from the whatever link (I mean, the two tabs have the same
result :
Page 2 map is :null

So, now, I confused, what is this PageMap suppose to say in this case?  Two
window, same Pagemap and than, same window.name (Always this same problem
about window name in the pop up!)...

Sorry, I feel like being an asshole always asking for the same thing.  If
I'm not getting it with this, I just tell my boss to put this feature up is
ass and I'll do a search result ala google! :)

Marc
On 1/15/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote:


I don't understand how this can help.  Can you give me an example?
And BTW, is there somewhere documentation on PageMap.  I'm not sure I
really grasp all the concept aroud this.  I tough that page map made sure
that in one instance in your application server, you have only one
name/session pair.  In my application, if I create new firefox tabs, it will
have the same page map name (which is "null").  Also, I though that the
window.name value was always synced with the pagemap name.

In fact, more I advance, less I'm sure to know :)

Marc

On 1/15/07, Nick Heudecker <[EMAIL PROTECTED]> wrote:
>
> You can subclass HttpSessionStore and provide your own implementation of
> onUnbind(String).  Then, use your new HttpSessionStore from your application
> subclass:
>
> public ISessionStore newSessionStore() {
> return new MySessionStore();
> }
>
> On 1/15/07, Marc-Andre Houle < [EMAIL PROTECTED]> wrote:
> >
> > I think I found something.
> >
> > first of all : Pop-up communication with pagemap is a nightmare.  I
> > think the problem was that it loaded using a specific pagemap in the correct
> > window but when trying to use ajaxLink, it didn't use the correct page map
> > and then failed to find the associated session. (Not sure at all...)
> >
> > The solution I found presently to avoid the session expire is to use
> > the bookmarkable link without passing to it a pagemap and just setting the
> > target field of the link to the pagemap name.
> >
> > Now, the problem is : when using the same instance of Firefox, every
> > time I load the application, it always use the same window name, which is
> > wicket:default.  Is it possible to set a particular pagemap when the user
> > login or set a window.name when the user log in?
> >
> > Marc
> >
> > On 1/15/07, Marc-Andre Houle <[EMAIL PROTECTED] > wrote:
> > >
> > > Damn It, I forgot to past thing in the post 
> > >
> > > Before loading the pop up :
> > > 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3)
> > > [Session  ] updateSession(): Attaching session to PageMap
> > > [PageMap name=popuppagemap, access=[]]
> > > 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3)
> > > [Session  ] updateSession(): Attaching session to PageMap
> > > [PageMap name=null, access=[[Access id=0, version=0], [Access id=1,
> > > version=0]]]
> > >
> > > After loading the pop-up :
> > > 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4)
> > > [Session  ] updateSession(): Attaching session to PageMap
> > > [PageMap name=popuppagemap, access=[]]
> > > 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4)
> > > [Session  ] updateSession(): Attaching session to PageMap
> > > [PageMap name=null, access=[[Access id=0, version=0], [Access id=1,
> > > version=0]]]
> > > 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4 )
> > > [Session  ] updateSession(): Attaching session to PageMap
> > > [PageMap name=wicket:default, access=[]]
> > >
> > >
> > > I think my problem is about page-map and session, but I'm not sure
> > > of anything
> > > Marc
> > >
> > > On 1/15/07, Marc-Andre Houle < [EMAIL PROTECTED]> wrote:
> > > >
> > > > While asking this, I found maybe why the page expire, but not
> > > > sure.  It is due to the use of pagemap to communicate from a pop-up to 
the
> > > > current window.  I'll try to explain what is happening :
> > > >
> > > > I log in my application, I click the link to open the pop-up.
> > > > When clicking on the link, I'm tring to add a pageparameters to the 
pop-up
> > > > to pass the pagemap name.
> > > > Presently, the log say that about updating pagemap :
> > > >
> > > > In the pop up, I add a link to update the main window to display
> > > > something different

Re: [Wicket-user] Wicket Examples - Repeater View - Data Table Example - How is it sorting?

2007-01-15 Thread MClark00

Thanks Igor, I should have figured that out from the source.

Just in case this helps someone else later, my problem was that I had been
expecting the setSort method on SortableDataProvider to be called with the
new sort state, so I overrode the method and used that as an opportunity to
change the sort in my custom SortableDataProvider.  It turns out that the
real method that is called is setSortState, so I now decided to just perform
the sort at the very beginning of the iterator() method, by examining
getSort().isAscending() and getSort().getProperty().

BTW, I'm really excited about what I've seen over my first 3 days of looking
at Wicket.  Nice job everyone!

Thanks,
Matt



igor.vaynberg wrote:
> 
> it is OrderByLink used inside OrderByBorder that sets the sort state.
> 
> see OrderByLink.sort() which is called from OrderByLink.onclick()
> 
> -igor
> 
> 
> On 1/15/07, MClark00 <[EMAIL PROTECTED]> wrote:
>>
>>
>> Sorry, to clarify my problem, it does sort initially correctly, but while
>> clicking the header changes the order by arrow (up or down), the sort
>> direction of the data does not change.  In fact, my data provider's
>> setSort
>> methods never get called when I click to change the sort.
>>
>> Thanks,
>> Matt
>>
>>
>> MClark00 wrote:
>> >
>> > Hi,
>> >
>> > I'm trying to mimic the Data Table example in the Repeaters examples,
>> and
>> > can't get the sort to work.  I looked at DataTablePage.java, and it
>> looks
>> > like it's just using the stock DefaultDataTable.  Once I dug down
>> through
>> > the 1.2.4 code a little, I noticed that the OrderByBorder doesn't
>> actually
>> > implement the sort direction change, which explains why mine doesn't
>> sort.
>> >
>> > My question is: why is the DataTablePage.java sorting correctly?  Is it
>> > using 2.X?
>> >
>> > Sorry for the simple question, but I just want to make sure there isn't
>> > some subtlety with the example that I'm missing that I could use in
>> 1.2.4
>> > to get the sort working.
>> >
>> > Thanks,
>> > Matt
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Wicket-Examples---Repeater-View---Data-Table-Example---How-is-it-sorting--tf3016996.html#a8378534
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Examples---Repeater-View---Data-Table-Example---How-is-it-sorting--tf3016996.html#a8379926
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Wicket Examples - Repeater View - Data Table Example - How is it sorting?

2007-01-15 Thread Igor Vaynberg

On 1/15/07, MClark00 <[EMAIL PROTECTED]> wrote:


BTW, I'm really excited about what I've seen over my first 3 days of
looking
at Wicket.  Nice job everyone!



glad to hear it!

-igor



Thanks,

Matt



igor.vaynberg wrote:
>
> it is OrderByLink used inside OrderByBorder that sets the sort state.
>
> see OrderByLink.sort() which is called from OrderByLink.onclick()
>
> -igor
>
>
> On 1/15/07, MClark00 <[EMAIL PROTECTED]> wrote:
>>
>>
>> Sorry, to clarify my problem, it does sort initially correctly, but
while
>> clicking the header changes the order by arrow (up or down), the sort
>> direction of the data does not change.  In fact, my data provider's
>> setSort
>> methods never get called when I click to change the sort.
>>
>> Thanks,
>> Matt
>>
>>
>> MClark00 wrote:
>> >
>> > Hi,
>> >
>> > I'm trying to mimic the Data Table example in the Repeaters examples,
>> and
>> > can't get the sort to work.  I looked at DataTablePage.java, and it
>> looks
>> > like it's just using the stock DefaultDataTable.  Once I dug down
>> through
>> > the 1.2.4 code a little, I noticed that the OrderByBorder doesn't
>> actually
>> > implement the sort direction change, which explains why mine doesn't
>> sort.
>> >
>> > My question is: why is the DataTablePage.java sorting correctly?  Is
it
>> > using 2.X?
>> >
>> > Sorry for the simple question, but I just want to make sure there
isn't
>> > some subtlety with the example that I'm missing that I could use in
>> 1.2.4
>> > to get the sort working.
>> >
>> > Thanks,
>> > Matt
>> >
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/Wicket-Examples---Repeater-View---Data-Table-Example---How-is-it-sorting--tf3016996.html#a8378534
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>>
-
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

--
View this message in context:
http://www.nabble.com/Wicket-Examples---Repeater-View---Data-Table-Example---How-is-it-sorting--tf3016996.html#a8379926
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] How to do a table with cell specific background image and image ?

2007-01-15 Thread ZedroS Schwart
Hi igor

Thanks a lot for your answer.

Being a newbe and digging into the RepeatingPage example, I managed to
define an image per cell.

However, I didn't manage to set up the attribute "background" of the
 around my image...

I tried various things like, among others :
- to put some wicket id into the  but to no success
- to use getParent()
- to use a repeater for the td itself

Do you have any clue ?

Thanks in advance
ZedroS
On 1/14/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> take a look at repeater examples in wicket-examples
>
> -igor
>
>
>
> On 1/13/07, ZedroS Schwart <[EMAIL PROTECTED] > wrote:
> >
> > Hi all
> >
> > I'm new to wicket and I'm looking for creating a table where each cell
> > would have a specific background image and, as a content, a specific
> > image with a link upon it.
> >
> > What's the best way to do it in Wicket ? I've started looking at
> > SimpleViewList but I'm not so sure it's the right thing to do !
> >
> > Thanks in advance
> > ZedroS
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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


Re: [Wicket-user] error deleting cookie when callingdeletWicketCookie

2007-01-15 Thread ZedroS Schwart
I don't get it : isn't 1.2.4 the current up to date release version of Wicket ?

On 1/15/07, Nino Wael <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Ok, seems that we got more than enough good reasons to upgrade….
>
>
>
> Thanks for the info..
>
>
>
> Regards Nino
>
>
>
>  
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Igor Vaynberg
>  Sent: 12. januar 2007 17:02
>  To: wicket-user@lists.sourceforge.net
>  Subject: Re: [Wicket-user] error deleting cookie when
> callingdeletWicketCookie
>
>
>
>
> in 1.2 it was used through, just upgrade to 1.2.4
>
>  -igor
>
>
>
>
> On 1/12/07, Johan Compagner <[EMAIL PROTECTED] > wrote:
>
> thats really old...
>  those cookies are not used anymore thats now done based on the window name.
>
>  johan
>
>
>
>
>
> On 1/12/07, Nino Wael < [EMAIL PROTECTED]> wrote:
>
>
>
>
>
> This is running wicket 1.2 btw, I'll try to remember version numbers in the
> original mails from now on.
>
>
>
> Regards Nino
>
>  
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Nino Wael
>  Sent: 12. januar 2007 13:50
>  To: wicket-user@lists.sourceforge.net
>  Subject: [Wicket-user] error deleting cookie when calling deletWicketCookie
>
>
>
>
>
> Hi I
>
> Get an error when the page are calling this line, on my html :
>
>
>
>  onunload="deleteWicketCookie('pm-null/jobindsatsViewerComponentServlet');"
>
>
>
>
>
> I think I know why it's failing, it's because the browser does not allow
> cookie and therefore the cookie cant be deleted.. What can I do about it?
> Except getting the user to accept cookies?
>
>
>
>
>
> Regards Nino
>
>
> -
>  Take Surveys. Earn Cash. Influence the Future of IT
>  Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
>  opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>  ___
>  Wicket-user mailing list
>  Wicket-user@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
>
>
> -
>  Take Surveys. Earn Cash. Influence the Future of IT
>  Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
>  opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>  ___
>  Wicket-user mailing list
>  Wicket-user@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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


Re: [Wicket-user] How to do a table with cell specific background image and image ?

2007-01-15 Thread Igor Vaynberg

youve tried item.add(new SimpleAttributeModifier("style",
"background-color:red;")) ?

-igor


On 1/15/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote:


Hi igor

Thanks a lot for your answer.

Being a newbe and digging into the RepeatingPage example, I managed to
define an image per cell.

However, I didn't manage to set up the attribute "background" of the
 around my image...

I tried various things like, among others :
- to put some wicket id into the  but to no success
- to use getParent()
- to use a repeater for the td itself

Do you have any clue ?

Thanks in advance
ZedroS
On 1/14/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> take a look at repeater examples in wicket-examples
>
> -igor
>
>
>
> On 1/13/07, ZedroS Schwart <[EMAIL PROTECTED] > wrote:
> >
> > Hi all
> >
> > I'm new to wicket and I'm looking for creating a table where each cell
> > would have a specific background image and, as a content, a specific
> > image with a link upon it.
> >
> > What's the best way to do it in Wicket ? I've started looking at
> > SimpleViewList but I'm not so sure it's the right thing to do !
> >
> > Thanks in advance
> > ZedroS
> >
> >
>
-
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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

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


Re: [Wicket-user] error deleting cookie when callingdeletWicketCookie

2007-01-15 Thread Igor Vaynberg

i believe nino was using 1.2.0 ie 1.2

-igor


On 1/15/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote:


I don't get it : isn't 1.2.4 the current up to date release version of
Wicket ?

On 1/15/07, Nino Wael <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Ok, seems that we got more than enough good reasons to upgrade….
>
>
>
> Thanks for the info..
>
>
>
> Regards Nino
>
>
>
>  
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Igor Vaynberg
>  Sent: 12. januar 2007 17:02
>  To: wicket-user@lists.sourceforge.net
>  Subject: Re: [Wicket-user] error deleting cookie when
> callingdeletWicketCookie
>
>
>
>
> in 1.2 it was used through, just upgrade to 1.2.4
>
>  -igor
>
>
>
>
> On 1/12/07, Johan Compagner <[EMAIL PROTECTED] > wrote:
>
> thats really old...
>  those cookies are not used anymore thats now done based on the window
name.
>
>  johan
>
>
>
>
>
> On 1/12/07, Nino Wael < [EMAIL PROTECTED]> wrote:
>
>
>
>
>
> This is running wicket 1.2 btw, I'll try to remember version numbers in
the
> original mails from now on.
>
>
>
> Regards Nino
>
>  
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Nino Wael
>  Sent: 12. januar 2007 13:50
>  To: wicket-user@lists.sourceforge.net
>  Subject: [Wicket-user] error deleting cookie when calling
deletWicketCookie
>
>
>
>
>
> Hi I
>
> Get an error when the page are calling this line, on my html :
>
>
>
> 
onunload="deleteWicketCookie('pm-null/jobindsatsViewerComponentServlet');"
>
>
>
>
>
> I think I know why it's failing, it's because the browser does not allow
> cookie and therefore the cookie cant be deleted.. What can I do about
it?
> Except getting the user to accept cookies?
>
>
>
>
>
> Regards Nino
>
>
>
-
>  Take Surveys. Earn Cash. Influence the Future of IT
>  Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
>  opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>  ___
>  Wicket-user mailing list
>  Wicket-user@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
>
>
>
-
>  Take Surveys. Earn Cash. Influence the Future of IT
>  Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
>  opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>  ___
>  Wicket-user mailing list
>  Wicket-user@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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

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


Re: [Wicket-user] revising the "Working with Wicket models" page

2007-01-15 Thread Eelco Hillenius

Yeah, go for it. That'll be much appreciated.

Eelco


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


go ahead and edit the page...the wiki is versioned i think so we can
always roll back.

when you are done with the majority let us know and we will review the
changes.

-igor


On 1/15/07, Loren Rosen <[EMAIL PROTECTED]> wrote:
>
>
> When I first started using Wicket I found the information on models a
> little
> hard to follow. So now I'd like to revise the "Working with Wicket
> models"
> wiki page
> (http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
> )
> to improve this. I'd be happy to outline what I think should be improved
> (though this is a little hard to do in detail short of simply annotating
> the
> page) or I can just plunge ahead and draft a revised page. If I do the
> latter I could potentially post it somewhere else for comment instead of
> directly replacing the existing page on the wiki. Perhaps we need a 'in
> draft' part of the wiki for working on long pages like this one.
>
> Actually, another alternative is for me to gradually introduce changes
> to
> the wiki page over a span of days, giving people a chance to comment as
> I
> go.
> --
> View this message in context: 
http://www.nabble.com/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8378321
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


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

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



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


Re: [Wicket-user] Wicket 2 HEAD problem - java.lang.NoSuchMethodError: wicket.MetaDataKey.(Ljava/lang/Class; )V

2007-01-15 Thread De Soca

I receive a similar error from the AuthenticatedWebApplication.

Guess it has not been refactored as yet.

Cheers.


Mark Derricutt wrote:
> 
> Hey all,  I just updated my Wicket 2 HEAD copy and now get the following
> errors:
> 
> Exception in thread "main" java.lang.NoSuchMethodError: wicket.MetaDataKey
> .(Ljava/lang/Class;)V
> at wicket.spring.injection.SpringComponentInjector$1.(
> SpringComponentInjector.java:67)
> at wicket.spring.injection.SpringComponentInjector.(
> SpringComponentInjector.java:65)
> at com.theoryinpractice.timetrackr.TimeTrackrApplication.init(
> TimeTrackrApplication.java:34)
> at wicket.protocol.http.WicketFilter.init(WicketFilter.java:341)
> at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java
> :162)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(
> WebApplicationHandler.java:145)
> at org.mortbay.jetty.servlet.WebApplicationContext.start(
> WebApplicationContext.java:458)
> at org.mortbay.http.HttpServer.start(HttpServer.java:663)
> at com.theoryinpractice.timetrackr.Start.main(Start.java:57)
> [EMAIL PROTECTED]:~/IdeaProjects/timetrackr$
> 
> I'm using the latest HEAD of wicket, wicket-extensions, and wicket-spring
> -
> bug? uncommitted code?  something broken on my end?
> 
> Cheers,
> Mark
> 
> -- 
> It was not the presence of God that formed me, but his absence which broke
> me.
> 
> http://www.talios.com
> http://www.flickr.com/photos/talios
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-2-HEAD-problem---java.lang.NoSuchMethodError%3A-wicket.MetaDataKey.%3Cinit%3E%28Ljava-lang-Class--%29V-tf3011785.html#a8383006
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] skandinavian characters encoding lost...

2007-01-15 Thread Carfield Yim
Appearancely , tomcat 5.5 don't get this problem for me, at least for
Chinese character

On 1/16/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> http://cwiki.apache.org/WW/how-to-support-utf-8-uriencoding-with-tomcat.html
>
> Juergen
>
> On 1/15/07, Nino Wael <[EMAIL PROTECTED]> wrote:
> > Actually I also remember asking about this before, hmm...
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van 
> > Oosten
> > Sent: 15. januar 2007 15:43
> > To: wicket-user@lists.sourceforge.net
> > Subject: Re: [Wicket-user] skandinavian characters encoding lost...
> >
> > No, that's not it.
> > I vaguely remember that Tomcat needs a setting in its configuration
> > files before it will serve UTF-8 content. Otherwise it will silently
> > convert it to ISO8859-1.
> >
> > Erik.
> >
> >
> > Martijn Dashorst wrote:
> > > Perhaps this:
> > > http://cwiki.apache.org/WICKET/how-to-change-the-character-encoding.html
> > >
> > > found through: http://woogle.billen.dk/search/q/tomcat%20encoding
> > >
> > > Martijn
> > >
> > > On 1/15/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> > >
> > >> Well according to Johan its only for POSTs that Tomcat can be a problem.
> > >> I just tried for at least 10 minutes to find a reference to the exact
> > >> thing Tomcat does wrong, and I am sure it was on the Wicket Wiki at some
> > >> point, but I can not find it anymore.
> > >>
> > >> If someone can find it, or put it back on the Wicket Wiki, that would be
> > >> great.
> > >>
> > >> Cheers,
> > >> Erik.
> > >>
> >
> > --
> > Erik van Oosten
> > http://www.day-to-day-stuff.blogspot.com/
> >
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

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


[Wicket-user] table with grouping

2007-01-15 Thread Dmitry Kandalov

We need to make a table in which rows are grouped by one of parameters and
each group have a header (like cell spanned to the table width). We also
need sortable header, paginator and ability to take data like IDataProvider
does. What would be better way to do it?

ps I like functionality DataTable/DataGridView have, but I can't think of
any decent way how to extend it.
-- 
View this message in context: 
http://www.nabble.com/table-with-grouping-tf3019235.html#a8385156
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] table with grouping

2007-01-15 Thread Igor Vaynberg

instead of datatable you can use a dataview to do this since you have full
control of the markup. the sorting/paging components are available outside
of the datatable, and take a little bit of wiring to do.

-igor


On 1/15/07, Dmitry Kandalov <[EMAIL PROTECTED]> wrote:



We need to make a table in which rows are grouped by one of parameters and
each group have a header (like cell spanned to the table width). We also
need sortable header, paginator and ability to take data like
IDataProvider
does. What would be better way to do it?

ps I like functionality DataTable/DataGridView have, but I can't think of
any decent way how to extend it.
--
View this message in context:
http://www.nabble.com/table-with-grouping-tf3019235.html#a8385156
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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