Re: Handle Hibernate transaction in wicket

2008-02-20 Thread Pills

Thank you all for your ideas.


At the moment, I handle it manually (transaction and session), and until
now, I don't got much problems.

I don't want to use anything from spring, as it seems a lot more difficult
than anything else in my project. 

I've put a closeSession on the onAfterRender method, and every part of my
code that use the DB are properly surrounded with transactions... I don't
have any problem, and even if it is a bit slower than a best practice, it's
enough for me ;)
-- 
View this message in context: 
http://www.nabble.com/Handle-Hibernate-transaction-in-wicket-tp15451303p15590755.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DojoColorPicker seems not to work

2008-02-10 Thread Pills

Could anybody tell me if it's normal (maybe under developement) or if I made
something wrong during the checkout?

I got the sources from the svn, and packaged manually the whole dojo into a
jar... I tried to use the ants script, but it didn't work (many errors on
run). And I don't use maven...

Thanks ;)
-- 
View this message in context: 
http://www.nabble.com/DojoColorPicker-seems-not-to-work-tp15207161p15394197.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Upload files using Flex (php move_uploaded_file equivalent)

2008-01-23 Thread Pills

I looked on the code in the FileUploadField class. This lines seems
interesting:

// Get request
final Request request = getRequest();

// If we successfully installed a multipart request
if (request instanceof IMultipartWebRequest)
{
// Get the item for the path
final FileItem item =
((IMultipartWebRequest)request).getFile(getInputName());

// Only update the model when there is a file (larger than zero
// bytes)
if (item != null  item.getSize()  0)
{
if (fileUpload == null)
{
fileUpload = new FileUpload(item);
}

return fileUpload;
}
}


But in my case, I do not receive a IMultipartWebRequest from Flex, but a
ServletWebRequest. The content-type is multipart/form-data;
boundary=--GI3cH2Ij5cH2GI3Ef1gL6Ij5Ef1Ef1, the length is
46888bytes, so the data of my image is somewhere on the request

How can I write them in a file?


Thanks!
-- 
View this message in context: 
http://www.nabble.com/Upload-files-using-Flex-%28php-move_uploaded_file-equivalent%29-tp15021323p15036884.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Javascript call to wicket

2008-01-14 Thread Pills

Thanks, it's short and precise. I have nothing more to say about this ;)



Erik van Oosten-3 wrote:
 
 I did not find the results of this thread on the Wiki yet, so I created 
 the following page:
 http://cwiki.apache.org/confluence/display/WICKET/Calling+Wicket+from+Javascript
 
 Comments and edits are appreciated. There is a TODO on the page for 
 providing an example that adds Javascript to the header. Or perhaps this 
 should be on another page under AJAX?
 
 Thanks for sharing the information!
 
 Regards,
 Erik.
 

-- 
View this message in context: 
http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14800946.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Javascript call to wicket

2008-01-10 Thread Pills

Ok, I'll write it maybe tomorrow or this week end (I'm quite busy but I can
take an hour or two to write it).



Michael Sparer wrote:
 
 I'm also no native speaker but I'll certainly read through it and write
 some enhancements (if necessary) once it's in the wiki
 
 regards, Michael
 

-- 
View this message in context: 
http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14736458.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Javascript call to wicket

2008-01-09 Thread Pills

Thank you, now everything works fine, and it's clean ;)



Michael Sparer wrote:
 
 You can do that like so: Map map =
 ((WebRequestCycle)RequestCycle.get()).getRequest().getParameterMap();
 Maybe there's also an easier way but I'm not really into wicket's
 requestcycle ... 
 

-- 
View this message in context: 
http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14707957.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Javascript call to wicket

2008-01-08 Thread Pills



Michael Sparer wrote:
 
 Generally you can get the callback-url of a wicket ajax-component with
 calling getCallbackUrl(), you should have a look at wicketAjaxGet which is
 part of wicket's JS library
 
 
 to make the whole stuff a bit more dynamic you could make a javascript
 template using wicketstuff-dojo, e.g.
 
 function callWicket() {
var wcall = wicketAjaxGet('${url}' + addToUrl, function() { },
 function() { }); // addToUrl are optional parameters
 }
 
 and then in the java-code
   HashMapString, String map = new HashMapString, String();
 
   map.put(url, getCallbackUrl().toString()); // getcallbackurl 
 is from
 AbstractAjaxBehavior
   return new DojoPackagedTextTemplate(YourClass.class,
 CometdDefaultBehaviorTemplate.js)
   .asString(map);
 
 and then add it in your responseheader (renderHead method) with
 response.renderJavaScript(...)
 
 this may be not the easiest method but allows the most flexibility. 
 
 hope that helps
 
 Michael
 

Hello Michael,

thank you for your answer. 

I have two little problems with this way:
- how can I get an instance of ResponseHeader from a WebPage?
- I need to use an AbstractAjaxBehavior, but where do I  need to add it?
Simply on the page? Or on my ShockwaveComponent?


Thank you ;)
-- 
View this message in context: 
http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14689818.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Javascript call to wicket

2008-01-08 Thread Pills

Thank you, I choosed your first and pretty solution, and it works fine.

But how to get the parameters in the java code? I see nothing in the class
AjaxRequestTarget that may return the parameters of the request?


Michael Sparer wrote:
 
 hi, 
 
 - your component has to implement IHeaderContributor, that's where the
 response-object gets passed
 - you add the abstractdefaultajaxbehavior to the component you'd like to
 call from javascript. you then have to override the respond method of
 AbstractDefaultAjaxBehavior to perform your actions and to append your
 changes to the response
 

-- 
View this message in context: 
http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14700577.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



@AuthorizeInstanciation and several roles

2007-12-30 Thread Pills

Hello,

I'm using the wicket-auth-roles package to allow or restrict access to some
pages. I need to autorize the instanciation of some pages to several roles.
Is it possible to write something like:

@AuthorizeInstanciation(poweruser,admin,sysadmin)
class Mypage extends WebPage {...}

and something like this in my authenticated session:

public Roles getRoles() {
return new Roles(new String[] {poweruser,admin,sysadmin});
}

If it's possible, what is the right syntax?

PS: I've read a bit about wasp/swarm, but it looks too much complicated for
my needs (I just need to prevent some components to be instantiated for some
kinds of users). Hiding/showing links and such fonctionnality is not needed

Thank you ;)
-- 
View this message in context: 
http://www.nabble.com/%40AuthorizeInstanciation-and-several-roles-tp14552711p14552711.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Redirect to a page with POST parameters

2007-12-16 Thread Pills

Hello,

I'm looking for a way to redirect to an external page that needs some POST
parameters to works.

It will be used in a paiement system implementation (it needs some data like
currency, amount... passed using post parameters).

I know how to redirect a user to a simple url (with
getRequestCycle().setRequestTarget(...)), but I don't know how to define
post vars for it.


Thanks in advance ;)
-- 
View this message in context: 
http://www.nabble.com/Redirect-to-a-page-with-POST-parameters-tp14362262p14362262.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to secure passwords?

2007-12-03 Thread Pills

Hello,

I've a little question with wicket: I would like to hash my users' passwords
(with md5) to make them unreadable for a human. And I also would like to
hash them before sending them through the network (to avoid the biggest part
of security issues).

Is there a way to achieve this?

Thank you ;)
-- 
View this message in context: 
http://www.nabble.com/How-to-secure-passwords--tf4936916.html#a14131090
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to secure passwords?

2007-12-03 Thread Pills


Korbinian Bachl wrote:
 
 This is nothing about wicket - its about base security. MD5 is a 
 hash-algorithm (see: http://en.wikipedia.org/wiki/Md5) which is no more 
 secure (flaw found 1996) as there are tables to reverse given md5 (from 
 2003 on) to a valid input
 

thank you for your answers. I know that MD5 isn't much secure, but it
doesn't matter (I just want to obfuscate them, to prevent an admin to get a
clear password from his admin console). But I agree, SHA may be better...

I guessed there was a wicket way to 1) crypt some data before sending them
out of the client's browser (so it doesn't travel in clear) 2) compare it on
the server side with the required hashed password.

I know how to write the crypto algorithm... I just don't know the best way
to integrate it into wicket. However, I saw some interface on Wicket (like
ICrypt) and guessed there is a way to use it well...

Thank you for your interest ;)
-- 
View this message in context: 
http://www.nabble.com/How-to-secure-passwords--tf4936916.html#a14132134
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Generating email body with wicket

2007-11-30 Thread Pills

Hi everybody,

just a little question: is there a way to use wicket to generate the body of
an html email?

I mean, is it possible to output a page in an another place than the
servlet's response outup (like a ByteArrayOutputStream)?

If yes, then I'll be able to put it to my email's body ;)

Thanks
-- 
View this message in context: 
http://www.nabble.com/Generating-email-body-with-wicket-tf4902162.html#a14042459
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Use a custom converter (IntegerToMyClass)

2007-11-28 Thread Pills

Hello,

I've a textfield that accept an integer (it represents a foreign key). 

I would like it to be converted as an instance of MyClass before updating my
model.

But I don't know how to specifiy a custom converter for a field...

I would like to implement this converter like this:
code
Integer i = (Integer) myfield.getValue();
MyClass m = new MyClassDAO().findById(i);
return m;
/code

Is it possible?
-- 
View this message in context: 
http://www.nabble.com/Use-a-custom-converter-%28IntegerToMyClass%29-tf4887609.html#a13989621
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Use a custom converter (IntegerToMyClass)

2007-11-28 Thread Pills


Johan Compagner wrote:
 
 Converters are (in 1.3 especially) are String - X (or X - String)
 
 so browser string input converted to a model value.
 So how do you already get an integer? Because that should be converted by
 a
 converter already.
 
 johan
 

Well, I wrote this code:
person = new TextField(person, new PropertyModel(formTarget, person),
Integer.class)

So it accepts only integers... but I guess it's wrong, I'd better to write
this
person = new TextField(person, new PropertyModel(formTarget, people),
Person.class)

But in that case, I don't know how to convert the browser string to a
model's object and the model's object to a string (representing it's foreign
key). I've overriden the field's convertInput method, so now it's able to
convert string - Person (I don't know if it's the right way). But for the
other conversion I don't know what to override


Thank you for your help ;) 
-- 
View this message in context: 
http://www.nabble.com/Use-a-custom-converter-%28IntegerToMyClass%29-tf4887609.html#a13991029
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Use a custom converter (IntegerToMyClass)

2007-11-28 Thread Pills

Sorry, I made some big mistakes (again). 
http://cwiki.apache.org/WICKET/using-custom-converters.html#Usingcustomconverters-Usingcustomconverters
This document  helped me very much ;)
-- 
View this message in context: 
http://www.nabble.com/Use-a-custom-converter-%28IntegerToMyClass%29-tf4887609.html#a13993032
Sent from the Wicket - User mailing list archive at Nabble.com.


Manually handle post data

2007-11-27 Thread Pills

Hello,

I'm using an online payement system, and it sends me some data with the POST
method (transaction completed or not, amount payed, currency, etc...).

How can I retrieve this data with wicket? 

Thanks a lot ;)
-- 
View this message in context: 
http://www.nabble.com/Manually-handle-post-data-tf4880964.html#a13968500
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Manually handle post data

2007-11-27 Thread Pills


Michael Sparer wrote:
 
 I you really wanna do this manually, this code might help you: Map map =
 ((WebRequestCycle)RequestCycle.get()).getRequest().getParameterMap();
 
 regards
 

For me it doesn't matter... This way is quite good, but if you've a better
idea (the wicket way) I'll use it ;)

-- 
View this message in context: 
http://www.nabble.com/Manually-handle-post-data-tf4880964.html#a13970567
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wizard and form submission

2007-11-20 Thread Pills

Hello,

I'm working with wizards and having a small problem. Some steps needn't to
process the form validation (an internal form let the user inserts several
sets of values, it implements a 1-N relation of my database). 

How can I tell wicket that step #1 need to submit the whole form and that
step #2 not?

I tried to get the next button and setDefaultFormProcessing(false) to it
but it doesn't work (I dont know how to properly get the next button)


Thank you for your help ;)
-- 
View this message in context: 
http://www.nabble.com/Wizard-and-form-submission-tf4842010.html#a13853053
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wizard and form submission

2007-11-20 Thread Pills

Hi,

I'm using this code to disable the automatic form submission:

public void onActiveStepChanged(IWizardStep newStep) {
Button b = (Button) ((MarkupContainer)
getForm().get(BUTTONS_ID)).get(next);
b.setDefaultFormProcessing(myflag);
}

Is there something more pretty?
-- 
View this message in context: 
http://www.nabble.com/Wizard-and-form-submission-tf4842010.html#a13854908
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Submit a form and ignore nested forms

2007-11-16 Thread Pills

Hi everybody,

I'm using nested forms in my web app to provide to the user a simple way for
editting a product and its stock state at the same time (PRODUCTS and STOCKS
are bound with a relation 1-n in my database). So I've defined a form for
each of my tables.  

When I submit a nested form (in this case, the form STOCK), Wicket doesn't
care about the master form (PRODUCTS) and that's fine. But when I submit the
master form, Wicket does the validation of all the nested forms, and
obviously it failed because the nested forms aren't filled... 

How can I tell to Wicket to ignore the nested forms when submitting theire
parent? I won't use the setDefaultFormProcessing(false), because it forces
me to handle the validity of fields and the feedback messages...

Is there a way to do what I need?

Thank you for your help ;)
-- 
View this message in context: 
http://www.nabble.com/Submit-a-form-and-ignore-nested-forms-tf4821844.html#a13794970
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Usage of nested forms

2007-11-15 Thread Pills

Please ignore my previous post. I'd make a big mistake, I'd override
onSubmit from the button and not from the form

Now everything works fine

;)

-- 
View this message in context: 
http://www.nabble.com/Usage-of-nested-forms-tf4804894.html#a13763909
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Strange behavior with DropDownChoice and PropertyModel

2007-11-13 Thread Pills



Timo Rantalaiho wrote:
 
 What's the point of this method?
 
 And why is it calling modelChanging and modelChanged? I think
 that normally you don't call them themselves, just override 
 them to react when the framework calls them.
 
 Best wishes,
 Timo
 

Well, I use this method to edit a record. The form is bound with the field
formTarget. When called, it loads data in formTarget from the parameter. 

If I don't call modelChanging/modelChanged, some components like
DropDownChoices aren't properly inited, and they select old cached values. I
don't know if it is a bug or if I wrote something wrong...

-- 
View this message in context: 
http://www.nabble.com/Strange-behavior-with-DropDownChoice-and-PropertyModel-tf4778358.html#a13722626
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Example page]Internal error in Dataview?

2007-11-10 Thread Pills

Hi everybody,

I think there is a problem with some examples in the sample page.

If you go here: http://wicketstuff.org/wicket13/repeater/ , only the first
link works. Others displays the classic wicket's internal error page.

I tried with two desktops, both under XP/Firefox 2.0.0.9, and got the same
behavior. It's not being a long time, I tried on Wednesday and everything
was fine.


' hope this will help (and that I posted in the right place) ;)
-- 
View this message in context: 
http://www.nabble.com/-Example-page-Internal-error-in-Dataview--tf4784744.html#a13688381
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Strange behavior with DropDownChoice and PropertyModel

2007-11-09 Thread Pills

Hi,

I have a strange problem with the PropertyModel and a form. The property
model is bound with one of my class, like that:


  shops = new DropDownChoice(shop, new PropertyModel(formTarget,
shops), new ShopDAO().findAll(), new ChoiceRenderer() {
@Override
public Object getDisplayValue(Object o) {
if (o instanceof Shop) {
Shop s = (Shop) o;
return s.getName() +  ( + s.getUrl() + );
}

return null;
}
});


My formTarget has setShop and getShop methods. 

I have in this form an  edit(MyClass) method, for editing an existing
record. It looks like this:


public void edit(MyClass l) {
 [...]

shops.modelChanging();
formTarget.setShops(l.getShops());
shops.modelChanged();

 [...]


And when I test it, sometimes it works fine (the drop down choice selects
the right item), and sometimes not (it selects the null value). I played a
little with it, and about half time there is no problem and half time the
null value is selected... (and I'm certain the property isn't null)

Is is a known issue? How can I fix it?

Thank you very much ;)
 

-- 
View this message in context: 
http://www.nabble.com/Strange-behavior-with-DropDownChoice-and-PropertyModel-tf4778358.html#a13669185
Sent from the Wicket - User mailing list archive at Nabble.com.


Strange behavior with DropDownChoice and PropertyModel

2007-11-09 Thread Pills

Hi,


I have a strange problem with the PropertyModel and a form. The property
model is bound with one of my class, like that:




  shops = new DropDownChoice(shop, new PropertyModel(formTarget,
shops), new ShopDAO().findAll(), new ChoiceRenderer() {
@Override
public Object getDisplayValue(Object o) {
if (o instanceof Shop) {
Shop s = (Shop) o;
return s.getName() +  ( + s.getUrl() + );
}

return null;
}
});



My formTarget has setShop and getShop methods. 


I have in this form an  edit(MyClass) method, for editing an existing
record. It looks like this:




public void edit(MyClass l) {
 [...]

shops.modelChanging();
formTarget.setShops(l.getShops());
shops.modelChanged();

 [...]



And when I test it, sometimes it works fine (the drop down choice selects
the right item), and sometimes not (it selects the null value). I played a
little with it, and about half time there is no problem and half time the
null value is selected... (and I'm sure the property isn't null)


Is is a known issue? How can I fix it?


Thank you very much ;)
 

-- 
View this message in context: 
http://www.nabble.com/Strange-behavior-with-DropDownChoice-and-PropertyModel-tf4778359.html#a13669186
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: Strange behavior with DropDownChoice and PropertyModel

2007-11-09 Thread Pills

I think I've found the problem: I didn't override equals and hashcode in my
class Shop.

Can anybody confirm that was the cause of that problem?
-- 
View this message in context: 
http://www.nabble.com/Strange-behavior-with-DropDownChoice-and-PropertyModel-tf4778359.html#a13669424
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Several localized buttons in a form

2007-11-08 Thread Pills

Hello,

I would like to put 2 buttons on a form (submit/cancel). This 2 buttons need
to be localized. I tried to override the form's onSubmit, and add one new
Button (submit) and a new subclass of Button (cancel).

My code looks like this:

[CODE]
Form form = new Form(formaddeditcurrency) {
  @Override
  protected void onSubmit() {
// do submit (insert into db)
  }  
};

...
form.add(new Button(submitaddedit, new StringResourceModel(submit, this,
null)));
form.add(new Button(canceladdedit, new StringResourceModel(cancel, this,
null)) {
  @Override
  public void onSubmit() {
  // do cancel
  }
});
[/CODE]

My problem is that when a user click Cancel, the form still tried to be
submitted (and since some fields are invalid, it writes some garbage to the
Feedbackpanel). However, in markup, my cancel button is not a submit, but
a simple button.

How can I put several buttons on a form?

Thank you for your help ;)
-- 
View this message in context: 
http://www.nabble.com/Several-localized-buttons-in-a-form-tf4770293.html#a13645019
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Several localized buttons in a form

2007-11-08 Thread Pills


Sebastiaan van Erk wrote:
 
   /**
* Sets the defaultFormProcessing property. When false (default is 
 true),
* all validation and form updating is bypassed and the onSubmit method
 of
* that button is called directly, and the onSubmit method of the parent
* form is not called. A common use for this is to create a cancel
 button.
*
* @param defaultFormProcessing
*defaultFormProcessing
* @return This
*/
   public final Button setDefaultFormProcessing(boolean
 defaultFormProcessing)
 
 :)
 
It works fine ;)

Thank you for your help. It was trivial 
-- 
View this message in context: 
http://www.nabble.com/Several-localized-buttons-in-a-form-tf4770293.html#a13645905
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question about localization

2007-11-08 Thread Pills



igor.vaynberg wrote:
 
 application.init() {
  getresourcesettings().setlocalizer(...);
 }
 
 you dont have to use the default resource model, just write your own
 if you dont like the default one.
 
 -igor
 

Thank you, it works fine ;)

But I have another problem. I sometimes use wicket:message key=foo as
a shortcut for inserting text. Is it possible to automatically append some
text to the key value? (I need to transform it to style1.foo)

Thank you 

-- 
View this message in context: 
http://www.nabble.com/Question-about-localization-tf4756837.html#a13648232
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question about localization

2007-11-07 Thread Pills

Yes, I'll make it part of the key.

I searched but not found, how can I change the default localizer and the
default resourcemodel?

There is no method setLocalizer/setResourceModel in class
WebApplication...

Thank you for your help.


igor.vaynberg wrote:
 
 you can override methods in localizer to bend it to your will, but
 like i said beware if you do not expect to make style part of the key
 
 -igor
 

-- 
View this message in context: 
http://www.nabble.com/Question-about-localization-tf4756837.html#a13623105
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Invalid field feedbackpanel messages

2007-11-06 Thread Pills

Hi guys,

I would like to change the default text for invalid fields on a
FeedbackPanel...

How can I do that?


Thanks!
-- 
View this message in context: 
http://www.nabble.com/Invalid-field---feedbackpanel-messages-tf4758491.html#a13608034
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question about localization

2007-11-06 Thread Pills


igor.vaynberg wrote:
 
 now what you CAN do is write your own resourcemodel 
 
 -igor
 

Is it possible to place style1 and style2 strings in separate files? I mean,
is it possible to force the resource localizer to look up into several files
for style1.foo or style2.foo?

Thank you for your help ;)
-- 
View this message in context: 
http://www.nabble.com/Question-about-localization-tf4756837.html#a13615397
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Newbie][1.3 beta] StackOverflowError on LogFactory.getContextClassLoader

2007-10-28 Thread Pills

I found a way I've just copied all *.jar from /lib in
wicket-examples-1.3.0-beta4.war to myapp/WEB-INF/lib, ant that works
fine ;)

I still don't know exactly which jar are required by Wicket, but now it
works 

;) 

-- 
View this message in context: 
http://www.nabble.com/-Newbie--1.3-beta--StackOverflowError-on-LogFactory.getContextClassLoader-tf4706676.html#a13454622
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]