Re: nested forms onSubmit

2010-01-31 Thread Martijn Dashorst
VisitChildren(Form.class, )

Martijn

On Friday, January 29, 2010, Dave Kallstrom dave.kallst...@gmail.com wrote:
 Hi,
 Is there anyway to notify nested forms that they are being submitted?  The
 onSubmit method of nested forms do not get called when the parent form is
 submitted.
 I tried implementing IFormSubmitListener but that didn't seem to help.

 --
 Dave Kallstrom


-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



FeedbackMessage Localization

2010-01-31 Thread Marek Šabo
Hi all,

I was wondering, is there a way to localize messages comming from info()
and error() form methods via property files?
I could do it via session logic but I'm interested in other ways.

Regards,

--
Marek Šabo


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: FeedbackMessage Localization

2010-01-31 Thread Andrew Lombardi
You could use a StringResourceModel or ResourceModel and just grab the object 
that results

On Jan 31, 2010, at 6:12 AM, Marek Šabo wrote:

 Hi all,
 
 I was wondering, is there a way to localize messages comming from info()
 and error() form methods via property files?
 I could do it via session logic but I'm interested in other ways.
 
 Regards,
 
 --
 Marek Šabo
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


To our success!

Mystic Coders, LLC | Code Magic | www.mysticcoders.com

ANDREW LOMBARDI | and...@mysticcoders.com
2321 E 4th St. Ste C-128, Santa Ana CA 92705
ofc: 714-816-4488
fax: 714-782-6024
cell: 714-697-8046
linked-in: http://www.linkedin.com/in/andrewlombardi
twitter: http://www.twitter.com/kinabalu

Eco-Tip: Printing e-mails is usually a waste.


This message is for the named person's use only. You must not, directly or 
indirectly, use,
 disclose, distribute, print, or copy any part of this message if you are not 
the intended recipient.




Re: Mounting problem with GlassFishv3

2010-01-31 Thread Major Péter
Hi,

I made some investigation today, and found out the followings:
With GlassFishv2 when the bookmarkablepagelink calculates the url,
finally it goes to
ServletWebRequest#getRelativePathPrefixToWicketHandler() .
The difference is on line #270:
String forwardUrl =
(String)httpRequest.getAttribute(javax.servlet.forward.servlet_path);

With v2, the forwardUrl is
/asdf (the wrong url again)

With v3 the forwardUrl is null!

It looks like there were some changes in the servlet API, namely: The
HttpServletRequest's dispatcherType is now an enum instead of Integer (I
don't know if this is relevant to the issue), and also, the HSR contains
a HashMap called specialAttributes, which with GFv2 contains the forward
attributes, but not with GFv3.

After further tests, I checked the whole thing without wicket with just
simple servlets, and this behaviour is appearing there too. Now I'm
gonna go and ask the GlassFish team what they think about this issue and
return here with the answer.

Thanks,
Peter


2010-01-30 20:28 keltezéssel, Major Péter írta:
 Hi,
 
 I've an application, which in its web.xml has a 404 page declared:
 error-page
 error-code404/error-code
 location/error/NotFound/location
 /error-page
 
 The filter-mapping for wicket that's why has the ERROR dispatcher.
 
 I created a NotFound page and mounted it via:
 mount(/error, PackageName.forClass(NotFound.class));
 and the homepage is mounted via:
 mountBookmarkablePage(/homepage, HomePage.class);
 
 So, if the error page has a bookmarkablepagelink, which is pointing to
 the Homepage, and I request a wrong URL (e.g. 'asdf'), then the link is
 'error/NotFound/homepage' instead of 'homepage'.
 But when I get the page with error/NotFound the link works just fine.
 
 I have a Quickstart app which demonstrates the problem, and it looks
 like with Jetty and GFv2 it works, but not with GFv3.
 Should I create a JIRA issue for this? I'm not sure that the
 web.xml-like errorpage is causing the error or the mount is the problem..
 I also checked version-compatibilities, and both with 1.4.1 and 1.3.6 I
 got the same behaviour.
 
 Thanks,
 Peter

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Back button, PageMap, Sessions Logout

2010-01-31 Thread sakthi vel
Hello All,

I have a application which have login  logout concept. When i logout, i am
clearing the session using invalidate() (Each session have a  atleast on one
or more page map, which contains all the pages that are visited in the
particular session).

In IE8 when i press the back button, it not going back to the last screen
where logout is done.
But, in Fire fox when i press the back button it is taken back to the last
screen where logout is done.

Is it something related to the browser or something that can be acheived
with wicket (PageMap)?
If it can be done with wicket, please explain the procedure or code to
acheive this.


Re: FeedbackMessage Localization

2010-01-31 Thread Igor Vaynberg
info(getstring(key))

-igor

On Sun, Jan 31, 2010 at 6:12 AM, Marek Šabo ms...@buk.cvut.cz wrote:
 Hi all,

 I was wondering, is there a way to localize messages comming from info()
 and error() form methods via property files?
 I could do it via session logic but I'm interested in other ways.

 Regards,

 --
 Marek Šabo


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: (my code palette) how to set default options in object palette

2010-01-31 Thread nino martinez wael
Ok Victor next step for you would be to create a quickstart.. So we can play
with it.. I've sure had this working with wicket 1.2 / 1.3 soo should still
be the case.

2010/1/29 victorTrapiello vic...@trapiello.net


 I does not work, I think the key point is my

 IChoiceRenderer renderer = new ChoiceRenderer(fullName, fullName);

 i leave it empty and it works for the available subject but not for the
 predefined!

 any more thoughts¿?

 Thank you very much guys



 nino martinez wael wrote:
 
  Form f=new Form(form);
  add(f);
  List persons = ComponentReferenceApplication.getPersons();;
  IChoiceRenderer renderer = new ChoiceRenderer(fullName,
 fullName);
  final Palette palette = new Palette(palette, new
  ListModelPerson(new
  ArrayListPerson()), new CollectionModelPerson(
persons), renderer, 10, true);
  palette.setmodelObject or something like that.
 
  2010/1/29 victorTrapiello vic...@trapiello.net
 
 
  well I have defined my palette component like this:
 
  asignString is an string linst with the available subjects (It works
  fine,
  the palette shows the proper subjects, but it doesn´t show the default
  selected one which I save them in the list lSelected
 
   IChoiceRenderer renderer = new ChoiceRenderer(, );
   ListString lSelected=new ArrayList();
 lSelected.add(predefined);
 Model aux=new Model();
 aux.setObject((Serializable) lSelected);
 
 final Palette palette = new Palette(palette, aux, new Model(
 (Serializable) asignString), renderer, 10, true);
 
  Any thought¿?
 
  thankyou in advance
 
 
  James Carman-3 wrote:
  
   Make sure your model reflects the selected state.  Palette will pick
   that up automatically
  
   On Sat, Jan 23, 2010 at 12:50 PM, victorTrapiello
  vic...@trapiello.net
   wrote:
  
  
   I use the palette component, to assigne option to a User. but I don't
   find a functionnality, how to set already selected option ?.
  
   Exemple : a user selected option, I store it into a database:
   In the future, the user want to update his option, at the moment he
   doesn't see his previous selected option.
  
Do you have a solution.¿?, doe sir make sense¿?
  
   cheers!!
  
   quote author=MartinM
   Well.. you can override newChoicesComponent
  
   **
   Martin
  
   2009/4/28 新希望软件 -- 俞宏伟 nhsoft@gmail.com:
   yes, i can setMarkupId for Palette. but now i want to filter for
   palette's
   choicesComponent.
  
   there is no public getChoicesComponent() method for
 choicesComponent.
  
  
  
   2009/4/28 Martin Makundi martin.maku...@koodaripalvelut.com
  
   Why cannot get markupid? You can determine it yourself
 (setMarkupId)
  
   You could also update via ajax using a textfield which sends the
   filtered text to server and server updates the select via ajax...
  
   I wonder if someone has made a select in which the filter is
  visually
   built into the select component?
  
   **
   Martin
  
   2009/4/28 新希望软件 -- 俞宏伟 nhsoft@gmail.com:
I want to add a filter for palette choice list, because  choice
  list
have a
very large HTML SELECT list.
   
I found that there is a select filter implement(
http://www.barelyfitz.com/projects/filterlist/index.php/1), but
 i
  can
   not
get select component markupid, so filter can not init.
   
--
   
H. L. Mencken 
   http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html
- It is even harder for the average ape to believe that he has
descended
from man.
   
  
  
  -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
   --
   View this message in context:
  
 
 http://old.nabble.com/how-to-add-filter-for-Palette-choice-tp23269578p27288282.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 
  --
  View this message in context:
 
 http://old.nabble.com/how-to-add-filter-for-Palette-choice-tp23269578p27374968.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 

 --
 View 

Re: (my code palette) how to set default options in object palette

2010-01-31 Thread victorTrapiello

Thank you very mucv Nino, but what do you mena by a quick start¿? I´m new in
this comunity.

nino martinez wael wrote:
 
 Ok Victor next step for you would be to create a quickstart.. So we can
 play
 with it.. I've sure had this working with wicket 1.2 / 1.3 soo should
 still
 be the case.
 
 2010/1/29 victorTrapiello vic...@trapiello.net
 

 I does not work, I think the key point is my

 IChoiceRenderer renderer = new ChoiceRenderer(fullName, fullName);

 i leave it empty and it works for the available subject but not for the
 predefined!

 any more thoughts¿?

 Thank you very much guys



 nino martinez wael wrote:
 
  Form f=new Form(form);
  add(f);
  List persons = ComponentReferenceApplication.getPersons();;
  IChoiceRenderer renderer = new ChoiceRenderer(fullName,
 fullName);
  final Palette palette = new Palette(palette, new
  ListModelPerson(new
  ArrayListPerson()), new CollectionModelPerson(
persons), renderer, 10, true);
  palette.setmodelObject or something like that.
 
  2010/1/29 victorTrapiello vic...@trapiello.net
 
 
  well I have defined my palette component like this:
 
  asignString is an string linst with the available subjects (It works
  fine,
  the palette shows the proper subjects, but it doesn´t show the default
  selected one which I save them in the list lSelected
 
   IChoiceRenderer renderer = new ChoiceRenderer(, );
   ListString lSelected=new ArrayList();
 lSelected.add(predefined);
 Model aux=new Model();
 aux.setObject((Serializable) lSelected);
 
 final Palette palette = new Palette(palette, aux, new Model(
 (Serializable) asignString), renderer, 10, true);
 
  Any thought¿?
 
  thankyou in advance
 
 
  James Carman-3 wrote:
  
   Make sure your model reflects the selected state.  Palette will pick
   that up automatically
  
   On Sat, Jan 23, 2010 at 12:50 PM, victorTrapiello
  vic...@trapiello.net
   wrote:
  
  
   I use the palette component, to assigne option to a User. but I
 don't
   find a functionnality, how to set already selected option ?.
  
   Exemple : a user selected option, I store it into a database:
   In the future, the user want to update his option, at the moment he
   doesn't see his previous selected option.
  
Do you have a solution.¿?, doe sir make sense¿?
  
   cheers!!
  
   quote author=MartinM
   Well.. you can override newChoicesComponent
  
   **
   Martin
  
   2009/4/28 新希望软件 -- 俞宏伟 nhsoft@gmail.com:
   yes, i can setMarkupId for Palette. but now i want to filter for
   palette's
   choicesComponent.
  
   there is no public getChoicesComponent() method for
 choicesComponent.
  
  
  
   2009/4/28 Martin Makundi martin.maku...@koodaripalvelut.com
  
   Why cannot get markupid? You can determine it yourself
 (setMarkupId)
  
   You could also update via ajax using a textfield which sends the
   filtered text to server and server updates the select via ajax...
  
   I wonder if someone has made a select in which the filter is
  visually
   built into the select component?
  
   **
   Martin
  
   2009/4/28 新希望软件 -- 俞宏伟 nhsoft@gmail.com:
I want to add a filter for palette choice list, because  choice
  list
have a
very large HTML SELECT list.
   
I found that there is a select filter implement(
http://www.barelyfitz.com/projects/filterlist/index.php/1), but
 i
  can
   not
get select component markupid, so filter can not init.
   
--
   
H. L. Mencken 
   http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html
- It is even harder for the average ape to believe that he has
descended
from man.
   
  
  
  -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
   --
   View this message in context:
  
 
 http://old.nabble.com/how-to-add-filter-for-Palette-choice-tp23269578p27288282.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 
  --
  View this message in context:
 
 http://old.nabble.com/how-to-add-filter-for-Palette-choice-tp23269578p27374968.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To 

Re: (my code palette) how to set default options in object palette

2010-01-31 Thread Carlos Vara
Hi Victor,

a quickstart is a wicket project using this maven archetype:

http://wicket.apache.org/quickstart.html


On Sun, Jan 31, 2010 at 7:46 PM, victorTrapiello vic...@trapiello.netwrote:


 Thank you very mucv Nino, but what do you mena by a quick start¿? I´m new
 in
 this comunity.

 nino martinez wael wrote:
 
  Ok Victor next step for you would be to create a quickstart.. So we can
  play
  with it.. I've sure had this working with wicket 1.2 / 1.3 soo should
  still
  be the case.
 
  2010/1/29 victorTrapiello vic...@trapiello.net
 
 
  I does not work, I think the key point is my
 
  IChoiceRenderer renderer = new ChoiceRenderer(fullName, fullName);
 
  i leave it empty and it works for the available subject but not for the
  predefined!
 
  any more thoughts¿?
 
  Thank you very much guys
 
 
 
  nino martinez wael wrote:
  
   Form f=new Form(form);
   add(f);
   List persons = ComponentReferenceApplication.getPersons();;
   IChoiceRenderer renderer = new ChoiceRenderer(fullName,
  fullName);
   final Palette palette = new Palette(palette, new
   ListModelPerson(new
   ArrayListPerson()), new CollectionModelPerson(
 persons), renderer, 10, true);
   palette.setmodelObject or something like that.
  
   2010/1/29 victorTrapiello vic...@trapiello.net
  
  
   well I have defined my palette component like this:
  
   asignString is an string linst with the available subjects (It works
   fine,
   the palette shows the proper subjects, but it doesn´t show the
 default
   selected one which I save them in the list lSelected
  
IChoiceRenderer renderer = new ChoiceRenderer(, );
ListString lSelected=new ArrayList();
  lSelected.add(predefined);
  Model aux=new Model();
  aux.setObject((Serializable) lSelected);
  
  final Palette palette = new Palette(palette, aux, new Model(
  (Serializable) asignString), renderer, 10, true);
  
   Any thought¿?
  
   thankyou in advance
  
  
   James Carman-3 wrote:
   
Make sure your model reflects the selected state.  Palette will
 pick
that up automatically
   
On Sat, Jan 23, 2010 at 12:50 PM, victorTrapiello
   vic...@trapiello.net
wrote:
   
   
I use the palette component, to assigne option to a User. but I
  don't
find a functionnality, how to set already selected option ?.
   
Exemple : a user selected option, I store it into a database:
In the future, the user want to update his option, at the moment
 he
doesn't see his previous selected option.
   
 Do you have a solution.¿?, doe sir make sense¿?
   
cheers!!
   
quote author=MartinM
Well.. you can override newChoicesComponent
   
**
Martin
   
2009/4/28 新希望软件 -- 俞宏伟 nhsoft@gmail.com:
yes, i can setMarkupId for Palette. but now i want to filter for
palette's
choicesComponent.
   
there is no public getChoicesComponent() method for
  choicesComponent.
   
   
   
2009/4/28 Martin Makundi martin.maku...@koodaripalvelut.com
   
Why cannot get markupid? You can determine it yourself
  (setMarkupId)
   
You could also update via ajax using a textfield which sends the
filtered text to server and server updates the select via
 ajax...
   
I wonder if someone has made a select in which the filter is
   visually
built into the select component?
   
**
Martin
   
2009/4/28 新希望软件 -- 俞宏伟 nhsoft@gmail.com:
 I want to add a filter for palette choice list, because
  choice
   list
 have a
 very large HTML SELECT list.

 I found that there is a select filter implement(
 http://www.barelyfitz.com/projects/filterlist/index.php/1),
 but
  i
   can
not
 get select component markupid, so filter can not init.

 --

 H. L. Mencken 
http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html
 - It is even harder for the average ape to believe that he
 has
 descended
 from man.

   
   
   -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
   
   
  -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
   
--
View this message in context:
   
  
 
 http://old.nabble.com/how-to-add-filter-for-Palette-choice-tp23269578p27288282.html
Sent from the Wicket - User mailing list archive at Nabble.com.
   
   
   
  -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
   
  -
To unsubscribe, e-mail: 

Re: (my code palette) how to set default options in object palette

2010-01-31 Thread victorTrapiello

Thank you very much I will try to do it

victorTrapiello wrote:
 
 Thank you very mucv Nino, but what do you mena by a quick start¿? I´m new
 in this comunity.
 
 nino martinez wael wrote:
 
 Ok Victor next step for you would be to create a quickstart.. So we can
 play
 with it.. I've sure had this working with wicket 1.2 / 1.3 soo should
 still
 be the case.
 
 2010/1/29 victorTrapiello vic...@trapiello.net
 

 I does not work, I think the key point is my

 IChoiceRenderer renderer = new ChoiceRenderer(fullName, fullName);

 i leave it empty and it works for the available subject but not for the
 predefined!

 any more thoughts¿?

 Thank you very much guys



 nino martinez wael wrote:
 
  Form f=new Form(form);
  add(f);
  List persons = ComponentReferenceApplication.getPersons();;
  IChoiceRenderer renderer = new ChoiceRenderer(fullName,
 fullName);
  final Palette palette = new Palette(palette, new
  ListModelPerson(new
  ArrayListPerson()), new CollectionModelPerson(
persons), renderer, 10, true);
  palette.setmodelObject or something like that.
 
  2010/1/29 victorTrapiello vic...@trapiello.net
 
 
  well I have defined my palette component like this:
 
  asignString is an string linst with the available subjects (It works
  fine,
  the palette shows the proper subjects, but it doesn´t show the
 default
  selected one which I save them in the list lSelected
 
   IChoiceRenderer renderer = new ChoiceRenderer(, );
   ListString lSelected=new ArrayList();
 lSelected.add(predefined);
 Model aux=new Model();
 aux.setObject((Serializable) lSelected);
 
 final Palette palette = new Palette(palette, aux, new Model(
 (Serializable) asignString), renderer, 10, true);
 
  Any thought¿?
 
  thankyou in advance
 
 
  James Carman-3 wrote:
  
   Make sure your model reflects the selected state.  Palette will
 pick
   that up automatically
  
   On Sat, Jan 23, 2010 at 12:50 PM, victorTrapiello
  vic...@trapiello.net
   wrote:
  
  
   I use the palette component, to assigne option to a User. but I
 don't
   find a functionnality, how to set already selected option ?.
  
   Exemple : a user selected option, I store it into a database:
   In the future, the user want to update his option, at the moment
 he
   doesn't see his previous selected option.
  
Do you have a solution.¿?, doe sir make sense¿?
  
   cheers!!
  
   quote author=MartinM
   Well.. you can override newChoicesComponent
  
   **
   Martin
  
   2009/4/28 新希望软件 -- 俞宏伟 nhsoft@gmail.com:
   yes, i can setMarkupId for Palette. but now i want to filter for
   palette's
   choicesComponent.
  
   there is no public getChoicesComponent() method for
 choicesComponent.
  
  
  
   2009/4/28 Martin Makundi martin.maku...@koodaripalvelut.com
  
   Why cannot get markupid? You can determine it yourself
 (setMarkupId)
  
   You could also update via ajax using a textfield which sends the
   filtered text to server and server updates the select via
 ajax...
  
   I wonder if someone has made a select in which the filter is
  visually
   built into the select component?
  
   **
   Martin
  
   2009/4/28 新希望软件 -- 俞宏伟 nhsoft@gmail.com:
I want to add a filter for palette choice list, because 
 choice
  list
have a
very large HTML SELECT list.
   
I found that there is a select filter implement(
http://www.barelyfitz.com/projects/filterlist/index.php/1),
 but
 i
  can
   not
get select component markupid, so filter can not init.
   
--
   
H. L. Mencken 
   http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html
- It is even harder for the average ape to believe that he
 has
descended
from man.
   
  
  
  -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
   --
   View this message in context:
  
 
 http://old.nabble.com/how-to-add-filter-for-Palette-choice-tp23269578p27288282.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 
  --
  View this message in context:
 
 http://old.nabble.com/how-to-add-filter-for-Palette-choice-tp23269578p27374968.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  

property file location feature request (ComponentStringResourceLoader)

2010-01-31 Thread pete swulius
Everyone,

I am curious.  Why are .properties files not located in the same way as
.html?  I've overridden:

[ResourceStreamLocator]
public IResourceStream locate( Class? clazz, String aPath, String aStyle,
Locale aLocale, String anExtension )

I notice that property file locating doesn't invoke this method, but only
invokes the lesser arg version with the style/variation/locale already
embedded in the path.  This is an inconvenience for me because I'm trying to
inspect the style during location.  Perhaps I shouldn't be doing what I'm
trying to do, but after reading the docs, I expected locating to work the
way it does for .html, but .properties threw me.

Thanks!  And again, thanks to all contributors for making such an awesome
product.

Peter Swulius


Re: FeedbackMessage Localization

2010-01-31 Thread Marek Šabo
@Igor - works like a charm
@Andrew - took me a while to play with hierarchy but got it working

Thank you both, regards

--
Marek Šabo

On 01/31/2010 07:16 PM, Igor Vaynberg wrote:
 info(getstring(key))

 -igor

 On Sun, Jan 31, 2010 at 6:12 AM, Marek Šabo ms...@buk.cvut.cz wrote:
   
 Hi all,

 I was wondering, is there a way to localize messages comming from info()
 and error() form methods via property files?
 I could do it via session logic but I'm interested in other ways.

 Regards,

 --
 Marek Šabo


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


   


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: FeedbackMessage Localization

2010-01-31 Thread Andrew Lombardi
No problem.  Igor's is probably a helluva lot easier :)

If this helped, consider writing an example in the Wiki and/or adding an 
Example to WicketByExample.com! :P

Cheers!

On Jan 31, 2010, at 4:35 PM, Marek Šabo wrote:

 @Igor - works like a charm
 @Andrew - took me a while to play with hierarchy but got it working
 
 Thank you both, regards
 
 --
 Marek Šabo
 
 On 01/31/2010 07:16 PM, Igor Vaynberg wrote:
 info(getstring(key))
 
 -igor
 
 On Sun, Jan 31, 2010 at 6:12 AM, Marek Šabo ms...@buk.cvut.cz wrote:
 
 Hi all,
 
 I was wondering, is there a way to localize messages comming from info()
 and error() form methods via property files?
 I could do it via session logic but I'm interested in other ways.
 
 Regards,
 
 --
 Marek Šabo
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


To our success!

Mystic Coders, LLC | Code Magic | www.mysticcoders.com

ANDREW LOMBARDI | and...@mysticcoders.com
2321 E 4th St. Ste C-128, Santa Ana CA 92705
ofc: 714-816-4488
fax: 714-782-6024
cell: 714-697-8046
linked-in: http://www.linkedin.com/in/andrewlombardi
twitter: http://www.twitter.com/kinabalu

Eco-Tip: Printing e-mails is usually a waste.


This message is for the named person's use only. You must not, directly or 
indirectly, use,
 disclose, distribute, print, or copy any part of this message if you are not 
the intended recipient.




appending to the componentTagBody

2010-01-31 Thread Andrew Lombardi
Is there any method while inside onComponentTagBody to append values to the 
contents of the body rather than replacing?  I'd like to ensure that if we're 
committing to the body on this custom tag, we don't remove what the user has 
put inside.

thanks!


To our success!

Mystic Coders, LLC | Code Magic | www.mysticcoders.com

ANDREW LOMBARDI | and...@mysticcoders.com
2321 E 4th St. Ste C-128, Santa Ana CA 92705
ofc: 714-816-4488
fax: 714-782-6024
cell: 714-697-8046
linked-in: http://www.linkedin.com/in/andrewlombardi
twitter: http://www.twitter.com/kinabalu

Eco-Tip: Printing e-mails is usually a waste.


This message is for the named person's use only. You must not, directly or 
indirectly, use,
 disclose, distribute, print, or copy any part of this message if you are not 
the intended recipient.




wicketGlobalPreCallHandler

2010-01-31 Thread Douglas Ferguson
I just started to use the wicketGlobalPreCallHandler and there is one of my 
pages that calls wicketGlobalPreCallHandler but not the 
wicketGlobalPostCallHandler

Any reason why the post call handler wouldn't get called?

D/


Re: wicketGlobalPreCallHandler

2010-01-31 Thread Matt Zemeck
unsubscribe





From: Douglas Ferguson doug...@douglasferguson.us
To: Wicket Mailing List List users@wicket.apache.org
Sent: Sun, January 31, 2010 11:10:15 PM
Subject: wicketGlobalPreCallHandler

I just started to use the wicketGlobalPreCallHandler and there is one of my 
pages that calls wicketGlobalPreCallHandler but not the 
wicketGlobalPostCallHandler

Any reason why the post call handler wouldn't get called?

D/



  

Tomcat Deployment problem : adding CSS links have been modified ?

2010-01-31 Thread Ashika Umanga Umagiliya

Greetings,

I've been developing my wicket application using maven+jetty and when I 
deployed it in Tomcat , all the CSS styles were missing.
I noticed that all the CSS links have been modified by the container(or 
wicket?) and added the prefix ../


Eg: In my pages I have:

link rel=stylesheet type=text/css href=style/tablestyle.css/
link rel=stylesheet type=text/css href=images/style.css/

But in the page Tomcat serves ,it has:

link rel=stylesheet type=text/css href=../style/tablestyle.css/
link rel=stylesheet type=text/css href=../images/style.css/

This works fine with Jetty ,what could be the problem?

thanks in advance


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RIA solution based on wicket

2010-01-31 Thread Josh Kamau
Hi guys;

I would like to get your opinions and also share some of my views. I have
been test-driving wicket for a couple of weeks now and i found it quite
impressive. However , i would like to say that IMHO wicket is more suitable
for creating websites as opposed to RIA applications. I would like to make
applications that look and feel like desktop applications but running on a
browser, i have a solid GWT background and i used to make this kind of
applications but alot of work is involved. Should we not have a ria
framework based on wicket? It could just be some nice CSS based theme or an
intergration with something like extJs or something like this. WiQuery is a
great step in this direction but it lacks components for making the main
application layout.

In the meantime, i will be trying out Vaadin.

Regards.


Re: RIA solution based on wicket

2010-01-31 Thread Riyad Kalla
Great idea -- probably just boils down to a time/resource issue more than
anything.

On Sun, Jan 31, 2010 at 10:28 PM, Josh Kamau joshnet2...@gmail.com wrote:

 Hi guys;

 I would like to get your opinions and also share some of my views. I have
 been test-driving wicket for a couple of weeks now and i found it quite
 impressive. However , i would like to say that IMHO wicket is more suitable
 for creating websites as opposed to RIA applications. I would like to make
 applications that look and feel like desktop applications but running on a
 browser, i have a solid GWT background and i used to make this kind of
 applications but alot of work is involved. Should we not have a ria
 framework based on wicket? It could just be some nice CSS based theme or an
 intergration with something like extJs or something like this. WiQuery is a
 great step in this direction but it lacks components for making the main
 application layout.

 In the meantime, i will be trying out Vaadin.

 Regards.



Re: appending to the componentTagBody

2010-01-31 Thread Igor Vaynberg
in oncomponenttagbody you have access to the markup stream. you can
use the stream to retreive the RawMarkup element that represents the
current body, tostring() it, append to it, and
replaceComponentTagBody(mystring)

-igor

On Sun, Jan 31, 2010 at 5:44 PM, Andrew Lombardi
and...@mysticcoders.com wrote:
 Is there any method while inside onComponentTagBody to append values to the 
 contents of the body rather than replacing?  I'd like to ensure that if we're 
 committing to the body on this custom tag, we don't remove what the user has 
 put inside.

 thanks!


 To our success!

 Mystic Coders, LLC | Code Magic | www.mysticcoders.com

 ANDREW LOMBARDI | and...@mysticcoders.com
 2321 E 4th St. Ste C-128, Santa Ana CA 92705
 ofc: 714-816-4488
 fax: 714-782-6024
 cell: 714-697-8046
 linked-in: http://www.linkedin.com/in/andrewlombardi
 twitter: http://www.twitter.com/kinabalu

 Eco-Tip: Printing e-mails is usually a waste.

 
 This message is for the named person's use only. You must not, directly or 
 indirectly, use,
  disclose, distribute, print, or copy any part of this message if you are not 
 the intended recipient.
 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: property file location feature request (ComponentStringResourceLoader)

2010-01-31 Thread Igor Vaynberg
i think this is due to historical reasons, the path is kept together
in references as a single string. feel free to add an rfe for this, i
think we are already working on this in 1.5 but an rfe in jira will
help us remember.

-igor

On Sun, Jan 31, 2010 at 1:41 PM, pete swulius pswul...@gmail.com wrote:
 Everyone,

 I am curious.  Why are .properties files not located in the same way as
 .html?  I've overridden:

 [ResourceStreamLocator]
 public IResourceStream locate( Class? clazz, String aPath, String aStyle,
 Locale aLocale, String anExtension )

 I notice that property file locating doesn't invoke this method, but only
 invokes the lesser arg version with the style/variation/locale already
 embedded in the path.  This is an inconvenience for me because I'm trying to
 inspect the style during location.  Perhaps I shouldn't be doing what I'm
 trying to do, but after reading the docs, I expected locating to work the
 way it does for .html, but .properties threw me.

 Thanks!  And again, thanks to all contributors for making such an awesome
 product.

 Peter Swulius


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: appending to the componentTagBody

2010-01-31 Thread Andrew Lombardi
awww, I see.  would doing something like  getResponse().write(myNewText) be 
incorrect?  it seems to append how i'd like and a call to super puts in the 
users contribution

On Jan 31, 2010, at 10:03 PM, Igor Vaynberg wrote:

 in oncomponenttagbody you have access to the markup stream. you can
 use the stream to retreive the RawMarkup element that represents the
 current body, tostring() it, append to it, and
 replaceComponentTagBody(mystring)
 
 -igor
 
 On Sun, Jan 31, 2010 at 5:44 PM, Andrew Lombardi
 and...@mysticcoders.com wrote:
 Is there any method while inside onComponentTagBody to append values to the 
 contents of the body rather than replacing?  I'd like to ensure that if 
 we're committing to the body on this custom tag, we don't remove what the 
 user has put inside.
 
 thanks!
 
 
 To our success!
 
 Mystic Coders, LLC | Code Magic | www.mysticcoders.com
 
 ANDREW LOMBARDI | and...@mysticcoders.com
 2321 E 4th St. Ste C-128, Santa Ana CA 92705
 ofc: 714-816-4488
 fax: 714-782-6024
 cell: 714-697-8046
 linked-in: http://www.linkedin.com/in/andrewlombardi
 twitter: http://www.twitter.com/kinabalu
 
 Eco-Tip: Printing e-mails is usually a waste.
 
 
 This message is for the named person's use only. You must not, directly or 
 indirectly, use,
  disclose, distribute, print, or copy any part of this message if you are 
 not the intended recipient.
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


To our success!

Mystic Coders, LLC | Code Magic | www.mysticcoders.com

ANDREW LOMBARDI | and...@mysticcoders.com
2321 E 4th St. Ste C-128, Santa Ana CA 92705
ofc: 714-816-4488
fax: 714-782-6024
cell: 714-697-8046
linked-in: http://www.linkedin.com/in/andrewlombardi
twitter: http://www.twitter.com/kinabalu

Eco-Tip: Printing e-mails is usually a waste.


This message is for the named person's use only. You must not, directly or 
indirectly, use,
 disclose, distribute, print, or copy any part of this message if you are not 
the intended recipient.




Re: appending to the componentTagBody

2010-01-31 Thread Igor Vaynberg
knock yourself out.

-igor

On Sun, Jan 31, 2010 at 10:23 PM, Andrew Lombardi
and...@mysticcoders.com wrote:
 awww, I see.  would doing something like  getResponse().write(myNewText) be 
 incorrect?  it seems to append how i'd like and a call to super puts in the 
 users contribution

 On Jan 31, 2010, at 10:03 PM, Igor Vaynberg wrote:

 in oncomponenttagbody you have access to the markup stream. you can
 use the stream to retreive the RawMarkup element that represents the
 current body, tostring() it, append to it, and
 replaceComponentTagBody(mystring)

 -igor

 On Sun, Jan 31, 2010 at 5:44 PM, Andrew Lombardi
 and...@mysticcoders.com wrote:
 Is there any method while inside onComponentTagBody to append values to the 
 contents of the body rather than replacing?  I'd like to ensure that if 
 we're committing to the body on this custom tag, we don't remove what the 
 user has put inside.

 thanks!


 To our success!

 Mystic Coders, LLC | Code Magic | www.mysticcoders.com

 ANDREW LOMBARDI | and...@mysticcoders.com
 2321 E 4th St. Ste C-128, Santa Ana CA 92705
 ofc: 714-816-4488
 fax: 714-782-6024
 cell: 714-697-8046
 linked-in: http://www.linkedin.com/in/andrewlombardi
 twitter: http://www.twitter.com/kinabalu

 Eco-Tip: Printing e-mails is usually a waste.

 
 This message is for the named person's use only. You must not, directly or 
 indirectly, use,
  disclose, distribute, print, or copy any part of this message if you are 
 not the intended recipient.
 



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 To our success!

 Mystic Coders, LLC | Code Magic | www.mysticcoders.com

 ANDREW LOMBARDI | and...@mysticcoders.com
 2321 E 4th St. Ste C-128, Santa Ana CA 92705
 ofc: 714-816-4488
 fax: 714-782-6024
 cell: 714-697-8046
 linked-in: http://www.linkedin.com/in/andrewlombardi
 twitter: http://www.twitter.com/kinabalu

 Eco-Tip: Printing e-mails is usually a waste.

 
 This message is for the named person's use only. You must not, directly or 
 indirectly, use,
  disclose, distribute, print, or copy any part of this message if you are not 
 the intended recipient.
 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Tomcat Deployment problem : adding CSS links have been modified ?

2010-01-31 Thread François Meillet
Hi Ashika,

Give a try to this

wicket:link
link rel=stylesheet type=text/css href=style/tablestyle.css/
link rel=stylesheet type=text/css href=images/style.css/
/wicket:link



François

Le 1 févr. 2010 à 05:59, Ashika Umanga Umagiliya a écrit :

 Greetings,
 
 I've been developing my wicket application using maven+jetty and when I 
 deployed it in Tomcat , all the CSS styles were missing.
 I noticed that all the CSS links have been modified by the container(or 
 wicket?) and added the prefix ../
 
 Eg: In my pages I have:
 
 link rel=stylesheet type=text/css href=style/tablestyle.css/
 link rel=stylesheet type=text/css href=images/style.css/
 
 But in the page Tomcat serves ,it has:
 
 link rel=stylesheet type=text/css href=../style/tablestyle.css/
 link rel=stylesheet type=text/css href=../images/style.css/
 
 This works fine with Jetty ,what could be the problem?
 
 thanks in advance
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Tomcat Deployment problem : adding CSS links have been modified ?

2010-01-31 Thread Ashika Umanga Umagiliya

Thanks François,

That solved my issue.
You r the best :)

Regards

Hi Ashika,

Give a try to this

wicket:link
link rel=stylesheet type=text/css href=style/tablestyle.css/
link rel=stylesheet type=text/css href=images/style.css/
/wicket:link



François

Le 1 févr. 2010 à 05:59, Ashika Umanga Umagiliya a écrit :

  

Greetings,

I've been developing my wicket application using maven+jetty and when I 
deployed it in Tomcat , all the CSS styles were missing.
I noticed that all the CSS links have been modified by the container(or wicket?) and 
added the prefix ../

Eg: In my pages I have:

link rel=stylesheet type=text/css href=style/tablestyle.css/
link rel=stylesheet type=text/css href=images/style.css/

But in the page Tomcat serves ,it has:

link rel=stylesheet type=text/css href=../style/tablestyle.css/
link rel=stylesheet type=text/css href=../images/style.css/

This works fine with Jetty ,what could be the problem?

thanks in advance


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org








-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org