Re: Wicket Session and threading

2008-01-05 Thread Johan Compagner
Only store the userid in the session, and get that id and the user
object in the request cycle on begin request also store the user
object in that request cycle then no synching is really needed, except
maybe a (db) version/timestamp check if you really want to make sure
you are the latest update.

On 1/4/08, Dan Kaplan [EMAIL PROTECTED] wrote:
 Yeah that makes sense.  Since we're sorta on the topic, I thought I would
 ask this question.  As the User object goes from being initially registered
 to its profile being edited, how does one update the User in the session and
 the db simultaneously?

 Here's a scenario:  A user registers with your website and later adds a
 signature that is to show up on every post he makes.

 Do you add an instance of a UserService to your WebSession and then have
 this in it:

 private User user;

 public synchronized void setUser(User updatedUser) {
   userService.updateUser(updatedUser);
   this.user = updatedUser;
 }

 public synchronized User getUser() {
   return this.user;
 }

 ?  Cause I've been doing something like that.  Is there a better way to go
 about this?


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
 Frank Bille
 Sent: Friday, January 04, 2008 2:02 PM
 To: users@wicket.apache.org
 Subject: Re: Wicket Session and threading

 What about (i)frames with pages being loaded in every one of them at the
 same time?

 Frank


 On Jan 4, 2008 7:57 PM, Dan Kaplan [EMAIL PROTECTED] wrote:

  To me it seems like it would be an unusual situation for two threads to
  access the session at the same time.  Under what circumstances does this
  happen?
 
  -Original Message-
  From: Eelco Hillenius [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 03, 2008 10:15 PM
  To: users@wicket.apache.org
  Subject: Re: Wicket Session and threading
 
  You're right, we should mention this in WIA. Would you mind leaving a
  comment on the author forum?
  http://www.manning-sandbox.com/forum.jspa?forumID=328
 
  Cheers,
 
  Eelco
 
  On Jan 3, 2008 11:10 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
  
   Eelco Hillenius wrote:
Am I right in concluding that I must make my wicket session
  thread-safe?
   
That is, if I want to store an int value in the session, I should
  use
a volatile or AtomicInteger?
   
Yes. We try our best to make pages/ components as thread safe as
possible, but making the session thread safe would impose a too large
performance penalty.
   
Is there anywhere a small piece on how to deal with threading within
Wicket (i.e., what is/is not synchronized in a request/response
roundtrip?). I did some quick searching in the mailing list archives
  and
google, but could not find anything related to version 1.3.
   
Pages are synced on pagemaps, which basically relates to browser
windows. RequestCycles are separate instances which are not reused, so
no sync needed there. Sessions are not synced so you need to sync
manually. Though in practice this wouldn't give much trouble to start
with. Applications are shared an not synced.
   
Eelco
  
   Thanks for the answer. :-)
  
   Before really thinking about it I kind of implicitly assumed that
   session access was synced. It hasn't really gone wrong yet either, but
   that's probably because of the use of ThreadLocal which acts as a memory
   barrier (for session/application) and the fact that it's very hard to
   get two threads to interleave within one session unless you start having
   a fit on the mouse (or use lots of autoupdating ajaxy stuff).
  
   It could be (very) useful to have this info in the Wicket in Action book
   though. For example in listing 2.1 there is a Session object with a
   get/setUser, but it is completely unsynchronized; similarly, there is no
   synchronization at all on the Cheesr session. Again the visibility seems
   to be ensured by the fact that the session is set in a thread local, but
   the code somehow seems to suggest (to me anyway) that no synchronization
   is necessary...
  
   There are some comments on multithreadedness and threads (2.3; but in
   the context of detaching, not thread-safety, and 4.1.1 in the context of
   the Application object). However it also says (in 4.1.1) that all is
   safe if the Application only has read-only properties, however, in the
   CheesrApplication the list of cheeses is not final. This must mean that
   Wicket does ensure visibility (or else it's a bug ;-)), but that is not
   trivial and should probably be mentioned.
  
   Regards,
   Sebastiaan
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 

Bug in MultiFileUploadField

2008-01-05 Thread Franklin Antony

Dear All,
   I have been extensively using the MutiFileUploadField and have been
facing some issues, however I am happy that there is a component like this
and has save a lot of time for me. Some of the things that I have come
across are as follows

1)If I enter some data in the file upload field and just move out(something
like loose focus), then that entry I placed inside the text file just gets
listed below. My suggestion would be somehow to get that field as disabled
2)If you enter some data in the field and click just below the text field 
so as your click will be placed right on top of the delete, then you can
enter data inside the Delete button. My suggestion is that if the text
field is disabled then this problem might not come.
3)Not really sure how I can do internationalization.

I would really appreciate your help.
I have placed an image to show the problems also

Thanks guys for all the help.
Franklin.


Problem Image:  http://www.nabble.com/file/p14631169/wicket_bug.jpg 

-- 
View this message in context: 
http://www.nabble.com/Bug-in-MultiFileUploadField-tp14631169p14631169.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: Form binding fails when formcomponents are previously invalidated

2008-01-05 Thread Edvin Syse

Allright. I got it working nicely for my purpose now :)

-- Edvin

Igor Vaynberg skrev:

ajaxformcomponentupdatingbehavior (AB) is really made for isolated
component updates. because you are tweaking more then one component
you need to process the components that AB is not attached to
manually. this involves calling valid() and all that yourself.

alternatively you can use AjaxFormSubmitBehavior which will properly
process the entire form.

-igor


On Jan 4, 2008 12:47 PM, Edvin Syse [EMAIL PROTECTED] wrote:

Just found out that calling valid() for the components before returning does 
the trick, but I guess that's not the correct approach. I added:

f.visitChildren(new IVisitor() {
public Object component(Component component) {
if(component instanceof FormComponent)
((FormComponent)component).valid();
return null;
}
});

in the onUpdate method of the AjaxFormComponentUpdatingBehavior, but it feels 
kind of nasty :)

-- Edvin

Edvin Syse skrev:


I created a standard quickstart project and added this to HomePage.java:

public class HomePage extends WebPage {
private ModelObject o = new ModelObject();

public HomePage(final PageParameters parameters) {
add(new FeedbackPanel(feedback));
Form f = new Form(f, new CompoundPropertyModel(o));
add(f);

final TextField name = new TextField(name, Integer.class);
name.setRequired(true);
name.setOutputMarkupId(true);
f.add(name);

final TextField number = new TextField(number);
number.add(new AjaxFormComponentUpdatingBehavior(onblur) {
@Override protected void onUpdate(AjaxRequestTarget target) {
o.setName(Number  + number.getConvertedInput());
target.addComponent(name);
}
});
f.add(number);

f.add(new Button(submit));
}

class ModelObject implements Serializable {
private Integer number;
private String name;

public Integer getNumber() {
return number;
}
public void setNumber(Integer number) {
this.number = number;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
}

And the HomePage.html:

html xmlns:wicket=http://wicket.apache.org;
body
div wicket:id=feedbackFeedback/div

form wicket:id=f
fieldset
p
labelNumber/label
input type=text wicket:id=number /
/p

p
labelName/label
input type=text wicket:id=name /
/p
/fieldset

input type=submit wicket:id=submit /

/form
/body
/html


If you add a number and press tab, the name input will display Name
number.
Works good until you try to submit once without a value in the name
input, and get the validation message Field 'name' is required..

After that, name will not be updated if you tab out of number.

-- Edvin


Igor Vaynberg skrev:

create a testcase please

-igor


On Jan 4, 2008 11:52 AM, Edvin Syse [EMAIL PROTECTED] wrote:

Hi!

I have a form which uses a CompoundPropertyModel.

On the form I have a textfield which has a
AjaxFormComponentUpdatingBehavior connected to the onblur event. When
I have some data in the
field and tab out of the field, the onblur event will update some
other parts of the modelobject and add their respective components
(textfields) to the ajax target.

This works good until I once submit the form and get one or more
validation errors. After that, the changed data that occur in the onblur
event doesn't get pushed back with the ajax target. (They just
display their former data even though the model object was updated).

Can anyone think of what causes this, or should I create a testcase?

Sincerely,
Edvin Syse

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



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



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



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




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




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

Re: Trouble with HybridUrlCodingStrategy and PageParameters

2008-01-05 Thread Daniel Fernández Garrido

Well, that's a pity...

Anyway, I finally had to go with passing page id and page map name so 
that I could retrieve the previous page back from the page map... if it 
existed. I used HybridUrlCodingStrategy anyway so that, once I get these 
two parameters from the PageParameters object and remove them from 
there, the URL coding strategy rewrites the URL (redirect) not showing 
the removed parameters.


Thanks,
Daniel.



Matej Knopp wrote:

Hi, this is unfortunately not possible at the moment. The reason is
that the pageparameters are set to page as page metadata, but the
metadata key is private
(HybridUrlCodingStaretegy#PAGE_PARAMETERS_META_DATA_KEY).

So while I could make the key public, but you'd have to use snapshot
releases until 1.3.1 is out.

-Matej

On Jan 3, 2008 3:09 PM, Daniel Fernández Garrido
[EMAIL PROTECTED] wrote:
  

Hello everyone,

I have the following scenario:

* I have a page PageA with lots of Ajax-driven state, with a link to
PageB

* PageB needs a parameter (an object id, to be specific), which it
can receive with a PageParameters constructor argument.

* PageB needs a reference to the PageA object that the user came
from, so that it can link back to a PageA with the very same
ajax-modified state.

* Both PageA and PageB must have bookmarkable URLs.


For that, I am using:

* HybridUrlCodingStrategy for both PageA and PageB.

* Two constructors in PageB, one wich only receives PageParameters
(so that the page is considered bookmarkable) and another one which
receives PageParameters and a WebPage (which will be the PageA object).

* Anonymously-defined Link subtypes for links in both directions.


My problem is that, although everything works fine, when I get to PageB,
I have a bookmarkable URL like: /my/path/my/page/.3, which includes a
version number, but not the contents of the PageParameters (so, it's not
truly bookmarkable).

I need to have /my/path/my/page/param1/value1/.3... how can I get this?


Thank you very much in advance. And congratulations for 1.3! ;-)

Regards,
Daniel.



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





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


  



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



Re: Wicket Session and threading

2008-01-05 Thread Martijn Dashorst
If you use hibernate, this is not recommended... An entity can only be
part of one Hibernate Session, and storing the instance in the wicket
session will share it across threads, and hence you'll get hibernate
exceptions.

Note that this may not be only a problem in Hibernate, but can also be
a problem in other db frameworks.

So do what Johan described and you will be safe...

Martijn

On Jan 5, 2008 3:54 AM, Eelco Hillenius [EMAIL PROTECTED] wrote:
 On Jan 5, 2008 5:15 AM, Dan Kaplan [EMAIL PROTECTED] wrote:
  Yeah that makes sense.  Since we're sorta on the topic, I thought I would
  ask this question.  As the User object goes from being initially registered
  to its profile being edited, how does one update the User in the session and
  the db simultaneously?
 
  Here's a scenario:  A user registers with your website and later adds a
  signature that is to show up on every post he makes.
 
  Do you add an instance of a UserService to your WebSession and then have
  this in it:
 
  private User user;
 
  public synchronized void setUser(User updatedUser) {
userService.updateUser(updatedUser);
this.user = updatedUser;
  }
 
  public synchronized User getUser() {
return this.user;
  }
 
  ?  Cause I've been doing something like that.  Is there a better way to go
  about this?


 Looks fine to me.

 Eelco


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





-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0

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



Re: Clear Localizer Cache

2008-01-05 Thread marcus dickerhof
Thanks! It worked!

Marcus

2008/1/5, Matej Knopp [EMAIL PROTECTED]:

 Application.getResourceSettings().getLocalizer().clearCache() might do
 the trick.

 -Matej

 On Jan 4, 2008 9:00 PM, marcus dickerhof [EMAIL PROTECTED] wrote:
  Hello,
  is there a possiblity to globally clear the localizer cache?
  I have a database stringresource, which might get updated.
  If that happens I do not want to restart the application.
  I want to have button with which I can clear the cache.
 
  Thanks!
 
  Best regards
  Marcus
 

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




Re: Migration issue from 1.2.6 to 1.3

2008-01-05 Thread Timo Rantalaiho
On Fri, 04 Jan 2008, Andrew Berman wrote:
 I am having an issue migrating from 1.2.6 to 1.3.  I changed my Application
 class so it would compile for 1.3 and the method in question is
 newRequestCycle(Request request, Response response).  Before I was looking
 at the URL and based on the URL selecting a skin for the site and logging in
 as a particular user which creates the new session.  With 1.3 I am now
 getting an exception of java.lang.IllegalStateException: you can only locate
 or create sessions in the context of a request cycle.  Is there some other
 method I can use to do the URL testing and creating of the session?

Maybe you can do it by overriding newSession() in your
Application subclass and creating your custom session
there? RequestCycle (and Request from it) can be found
anywhere by RequestCycle.get() .

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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



More CheckBox.setRequired() agony :)

2008-01-05 Thread Edvin Syse

Hi!

In regards to my earlier post concerning this:

http://www.nabble.com/Bug-in-1.3-final%3A-CheckBox.setRequired%28%29-is-not-picked-up-as-error-when-unchecked-to14619181.html

I suddenly got the reverse problem: When I have a checkbox like this:

 CheckBox agree = new CheckBox(agree, new Model()) {
 @Override public boolean checkRequired() {
return false;
}
 };
 agree.setRequired(true);

.. I get the error Field 'agree' is required. even when I check the box. This is driving me crazy :) What am I doing wrong? I could swear 
that it worked earlier :)


Sincerely,
Edvin Syse

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



Re: Clear Localizer Cache

2008-01-05 Thread Eelco Hillenius
Btw, that method is also exposed via JMX if you use that.

Eelco

On Jan 5, 2008 9:12 PM, marcus dickerhof [EMAIL PROTECTED] wrote:
 Thanks! It worked!

 Marcus

 2008/1/5, Matej Knopp [EMAIL PROTECTED]:

 
  Application.getResourceSettings().getLocalizer().clearCache() might do
  the trick.
 
  -Matej
 
  On Jan 4, 2008 9:00 PM, marcus dickerhof [EMAIL PROTECTED] wrote:
   Hello,
   is there a possiblity to globally clear the localizer cache?
   I have a database stringresource, which might get updated.
   If that happens I do not want to restart the application.
   I want to have button with which I can clear the cache.
  
   Thanks!
  
   Best regards
   Marcus
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Checked-TextFields not updated on exchange-panels

2008-01-05 Thread Per Newgro
Hi *,

before i develop a testing project for this issue i ask here. Maybe someone 
can see my fault.

I try to develop an user registration. This will be managed by a 
RegistrationPanel. On this a LoginPanel and a NewUserPanel will be exchanged 
by toggling the visible state while pressing the newUser Button. So far i 
hope its simple.

Some Textfields on the NewUserPanel contain an InputValidator (EMail, Phone, 
etc.). They avoiding submitting the NewUserDataForm if required data are not 
present.

RegistartionPanel
add(LoginPanel)
  add(UserIdTextField)
  add(NewUserButton)
add(NewUserPanel)
  add(EMailTextField)
add(EMailValidator)
  add(UserIdTextField)
add(MinStringLenghtValidator(5))
  add(NameTextField)
add(MinStringLenghtValidator(3))
  add(GobackButton)

All panels share a user POJO. They accessing it by their own property model 
instance.

So the following process happens:
1. LoginPanel will be presented
2. Press Button:NewUser (LoginPanel.visible=false, NewUserPanel.visible=true)
3. Add invalid email data and submit (validation of all fields failed - no 
submit)
4. Press Button:Goback to LoginPanel (LoginPanel.visible=true, 
NewUserPanel.visible=false)
5. Load userdata while logging in correctly (LoginPanel.visible=false, 
NewUserPanel.visible=true)

The effect is that only the email field contains data of the user logged in, 
but not the others. The model contains data. The fields without data present 
didn't have been edited. Maybe i have to reset some error messages or the 
validators?

Any help is appreciated
Thanks
Per

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



About Page Expired of guestbook sample

2008-01-05 Thread rosen jiang

hi all,

I am studying guestbook sample of 1.3 right now, but encounter some problem:
If i submit the form, then rising Page Expired.

I have read this thread
http://www.nabble.com/forum/ViewPost.jtp?post=13663558framed=y;, but
nothing help.

Have anybody tried guestbook sample of 1.3?

regards,
rosen jiang
-- 
View this message in context: 
http://www.nabble.com/About-Page-Expired-of-guestbook-sample-tp14635300p14635300.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: Bug in MultiFileUploadField

2008-01-05 Thread Igor Vaynberg
On Jan 5, 2008 1:03 AM, Franklin Antony [EMAIL PROTECTED] wrote:

 1)If I enter some data in the file upload field and just move out(something
 like loose focus), then that entry I placed inside the text file just gets
 listed below. My suggestion would be somehow to get that field as disabled

cant do that. the field is input type=upload. if we disable it then
the browse button will be disabled also.

 2)If you enter some data in the field and click just below the text field
 so as your click will be placed right on top of the delete, then you can
 enter data inside the Delete button. My suggestion is that if the text
 field is disabled then this problem might not come.

that sounds like a browser bug. which one are you using? the delete
button is just input type=button, not sure why you can enter text
into it.

 3)Not really sure how I can do internationalization.

see .properties files next to the .java/.class file for resource keys available.

-igor



 I would really appreciate your help.
 I have placed an image to show the problems also

 Thanks guys for all the help.
 Franklin.


 Problem Image:  http://www.nabble.com/file/p14631169/wicket_bug.jpg

 --
 View this message in context: 
 http://www.nabble.com/Bug-in-MultiFileUploadField-tp14631169p14631169.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]



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



Re: More CheckBox.setRequired() agony :)

2008-01-05 Thread Igor Vaynberg
boolean checkRequired() { return
Boolean.TRUE.equals((Boolean)getModelObject()); }

-igor


On Jan 5, 2008 7:07 AM, Edvin Syse [EMAIL PROTECTED] wrote:
 Hi!

 In regards to my earlier post concerning this:

 http://www.nabble.com/Bug-in-1.3-final%3A-CheckBox.setRequired%28%29-is-not-picked-up-as-error-when-unchecked-to14619181.html

 I suddenly got the reverse problem: When I have a checkbox like this:

   CheckBox agree = new CheckBox(agree, new Model()) {
  @Override public boolean checkRequired() {
 return false;
 }
   };
   agree.setRequired(true);

 .. I get the error Field 'agree' is required. even when I check the box. 
 This is driving me crazy :) What am I doing wrong? I could swear
 that it worked earlier :)

 Sincerely,
 Edvin Syse

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



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



Re: Bug in MultiFileUploadField

2008-01-05 Thread Suad AlShamsi

I was able to reproduce the same bug as well. I am using IE 6


Igor Vaynberg wrote:

On Jan 5, 2008 1:03 AM, Franklin Antony [EMAIL PROTECTED] wrote:
  

1)If I enter some data in the file upload field and just move out(something
like loose focus), then that entry I placed inside the text file just gets
listed below. My suggestion would be somehow to get that field as disabled



cant do that. the field is input type=upload. if we disable it then
the browse button will be disabled also.

  

2)If you enter some data in the field and click just below the text field
so as your click will be placed right on top of the delete, then you can
enter data inside the Delete button. My suggestion is that if the text
field is disabled then this problem might not come.



that sounds like a browser bug. which one are you using? the delete
button is just input type=button, not sure why you can enter text
into it.

  

3)Not really sure how I can do internationalization.



see .properties files next to the .java/.class file for resource keys available.

-igor


  

I would really appreciate your help.
I have placed an image to show the problems also

Thanks guys for all the help.
Franklin.


Problem Image:  http://www.nabble.com/file/p14631169/wicket_bug.jpg

--
View this message in context: 
http://www.nabble.com/Bug-in-MultiFileUploadField-tp14631169p14631169.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]





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


  




Re: More CheckBox.setRequired() agony :)

2008-01-05 Thread Igor Vaynberg
erm, spoke too soon

boolean checkRequired() { if (isRequired()) { return
!Strings.isEmpty(getInput()); }}

-igor


On Jan 5, 2008 8:58 AM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 boolean checkRequired() { return
 Boolean.TRUE.equals((Boolean)getModelObject()); }

 -igor



 On Jan 5, 2008 7:07 AM, Edvin Syse [EMAIL PROTECTED] wrote:
  Hi!
 
  In regards to my earlier post concerning this:
 
  http://www.nabble.com/Bug-in-1.3-final%3A-CheckBox.setRequired%28%29-is-not-picked-up-as-error-when-unchecked-to14619181.html
 
  I suddenly got the reverse problem: When I have a checkbox like this:
 
CheckBox agree = new CheckBox(agree, new Model()) {
   @Override public boolean checkRequired() {
  return false;
  }
};
agree.setRequired(true);
 
  .. I get the error Field 'agree' is required. even when I check the box. 
  This is driving me crazy :) What am I doing wrong? I could swear
  that it worked earlier :)
 
  Sincerely,
  Edvin Syse
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: [wicket-security] LDAP integration?

2008-01-05 Thread Maurice Marrink
You could do LoginPage extends AbstractBasePage
MySecurePage extends AbstractBasePage implements ISecurePage
OtherPage extends MySecurePage

Or alternatively
MyInterface extends ISecurePage
AbstractBasePage extends SecureWebPage
LoginPage extends AbstractBasePage
OtherPage extends AbstractBasePage implements MyInterface
The important part here is the MyInterface
By default Swarm only does an instantiation check on components with
the ISecurePage interface (which is implemented by SecureWebPage).
But you can change this to any interface you like as long as the
interface extends ISecureComponent.
To do this you need to overwrite the setupStrategyFactory method of
SwarmWebApplication to do
setStrategyFactory(new SwarmStrategyFactory(MyInterface.class,getHiveKey()));

Personally i would go for option 1 as you can simply copy the
implementation for ISecurePage from SecureWebPage

BTW once you have the ldap part up and running and if it is setup in a
generic way i would be interested in including it with swarm or a
subproject if thats alright with you.

Maurice

On Jan 4, 2008 8:39 PM, William Hoover [EMAIL PROTECTED] wrote:
 I do have another question...

 According to the documentation one should not extend SecureWebPage for the 
 login page (makes sense), but if you have a decorator that is used on all of 
 your pages (including the login page) how can you accomplish this? For 
 example:

 Example 1:
 AbstractBasePage extends SecureWebPage (wrapper)

 LoginPage extends AbstractBasePage (will not work)
 OtherPage1 extends AbstractBasePage
 OtherPage2 extends AbstractBasePage
 ...

 Example 2:
 AbstractBasePage extends WebPage (wrapper)

 LoginPage extends AbstractBasePage
 OtherPage1 extends ? (cannot extend both AbstractBasePage and SecureWebPage)
 OtherPage2 extends ? (cannot extend both AbstractBasePage and SecureWebPage)
 ...

 -Original Message-
 From: William Hoover [mailto:[EMAIL PROTECTED]

 Sent: Friday, January 04, 2008 1:24 PM
 To: users@wicket.apache.org
 Subject: RE: [wicket-security] LDAP integration?


 Never mind... I wasn't calling super.init() when I was overriding init() in 
 SwarmWebApplication impl

 -Original Message-
 From: William Hoover [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 04, 2008 1:14 PM
 To: users@wicket.apache.org
 Subject: RE: [wicket-security] LDAP integration?


 I'm with you... it doesn't seem to be too difficult to get the mapping 
 between ldap/swarm working. I am attempting to try it out in a simple 
 application. However, I am receiving a NullPointerException in WaspSession 
 because the StrategyFactory is not instantiated. Is there something else that 
 needs to be down in the SwarmWebApplication (following the instructions from 
 http://wicketstuff.org/confluence/display/STUFFWIKI/Getting+started+with+Swarm)?

 public WaspSession(WaspApplication application, Request request)
 {
 super(request);
 securityStrategy = 
 application.getStrategyFactory().newStrategy(); // throws npe
 }

 -Original Message-
 From: Maurice Marrink [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 04, 2008 11:16 AM
 To: users@wicket.apache.org
 Subject: Re: [wicket-security] LDAP integration?


 I think there will be one more beta before we do the final.
 I recently made some changes to boost performance and a public beta
 for that will be better. Even though we are already using it in our
 apps without problems through the snapshot release.
 With any luck the 2nd beta will be released this weekend and the final
 will probably follow soon after.

 Well the slightly more complex route is connecting to ldap yourself
 (option number 1 in my previous mail).
 Personally i think the mapping between ldap and swarm will be a
 breeze. because a swarm principal is basically just a name.

 Maurice

 On Jan 4, 2008 3:43 PM, William Hoover [EMAIL PROTECTED] wrote:
  Thanks for the info. We are not using Spring (opted for Plexus) so I'm not 
  sure how plausible it will be to implement the easiest solution in our 
  case. The application in question is still in the preliminary evaluation 
  stage so we may have to look for another route.
 
  Do you have a roadmap/timeline on a release date for wicket-security?
 
 
  -Original Message-
  From: Maurice Marrink [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 04, 2008 8:36 AM
  To: users@wicket.apache.org
  Subject: Re: [wicket-security] LDAP integration?
 
 
  Yes and not exactly.
 
  wicket-security is build with plugability in mind, meaning if it does
  not yet exist you can build it yourself quite easily.
  Regarding LDAP, i myself have never worked with it but there are a
  couple of options you can try
  -use swarm and map ldap permissions to swarm principals
  -use swarm with acegi and let acegi handle the ldap part, you still
  need to map acegi permissions to swarm principals though but it saves
  you from having to do all the ldap connection stuff 

Re: [Wicket 1.2.6] How to get Wizard's form from inside a WizardStep?

2008-01-05 Thread Paolo Di Tommaso
Let me guess .. you need the form to create a AjaxSubmitLink instance.

But the #findParent(Form.class) will return null until the component
hierarchy is constructed, being so you cannot invoke it at component
construction-time.

A possible workaround is to postpone the findParent(Form.class) method
invocation instantiating a the AjaxSubmitLink using a form proxy.

I've hacked this writing a custom AjaxFormSubmitBehavior that does not
require the form instance on its constructor but just discover it - invoking
#findParent(Form.class) method - when is required.

Me fate sempre lavora.. ;)

P


On Jan 4, 2008 12:43 PM, Fabio Fioretti [EMAIL PROTECTED] wrote:

 First of all, many compliments for the great Wicket 1.3 release: we're
 looking forward to port our application to the new cool version!

 How can I get the Wizard's form from inside a WizardStep? I need it to
 trigger an AjaxSubmitLink which should update a part of my model while
 remaining inside that step. What leaves me clueless is the fact that
 WizardStep instances are added to the WizardModel instead of the
 Wizard, so doing something like this from inside the WizardStep:

 Form form = (Form)WizardStep.this.findParent(Form.class);

 seems to return null; moreover, this makes me wonder how the same
 instruction inside WizardStep.AddFormValidatorAction.execute() can
 succeed.

 I'm sure I'm missing something really stupid. Please forgive me. :-)


 Thanks a lot,

 Fabio Fioretti - WindoM

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




Re: About Page Expired of guestbook sample

2008-01-05 Thread Igor Vaynberg
seems to work fine

http://wicketstuff.org/wicket13/guestbook/

did you tweak the filter mapping?

-igor

On Jan 5, 2008 8:23 AM, rosen jiang [EMAIL PROTECTED] wrote:

 hi all,

 I am studying guestbook sample of 1.3 right now, but encounter some problem:
 If i submit the form, then rising Page Expired.

 I have read this thread
 http://www.nabble.com/forum/ViewPost.jtp?post=13663558framed=y;, but
 nothing help.

 Have anybody tried guestbook sample of 1.3?

 regards,
 rosen jiang
 --
 View this message in context: 
 http://www.nabble.com/About-Page-Expired-of-guestbook-sample-tp14635300p14635300.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]



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



Re: More CheckBox.setRequired() agony :)

2008-01-05 Thread Edvin Syse

Thanks, got it :) I misunderstood the point of the checkRequired() method 
earlier :)

-- Edvin

Igor Vaynberg skrev:

erm, spoke too soon

boolean checkRequired() { if (isRequired()) { return
!Strings.isEmpty(getInput()); }}

-igor


On Jan 5, 2008 8:58 AM, Igor Vaynberg [EMAIL PROTECTED] wrote:

boolean checkRequired() { return
Boolean.TRUE.equals((Boolean)getModelObject()); }

-igor



On Jan 5, 2008 7:07 AM, Edvin Syse [EMAIL PROTECTED] wrote:

Hi!

In regards to my earlier post concerning this:

http://www.nabble.com/Bug-in-1.3-final%3A-CheckBox.setRequired%28%29-is-not-picked-up-as-error-when-unchecked-to14619181.html

I suddenly got the reverse problem: When I have a checkbox like this:

  CheckBox agree = new CheckBox(agree, new Model()) {
 @Override public boolean checkRequired() {
return false;
}
  };
  agree.setRequired(true);

.. I get the error Field 'agree' is required. even when I check the box. This 
is driving me crazy :) What am I doing wrong? I could swear
that it worked earlier :)

Sincerely,
Edvin Syse

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




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




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



unsubscribe

2008-01-05 Thread Michael Day


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



Wicket URLs

2008-01-05 Thread Alan Gutierrez
I'm taking a quick look at Wicket for use on a new project. I'm  
curious about the URLs. It it possible to have more control over the  
URLs that Wicket uses for form submissions? In the guest book example  
the submit URL is...


http://wicketstuff.org/wicket13/guestbook/?wicket:interface=:0

I'd like to be able to change that to look a little less cryptic.

RESTLET is another framework I'm looking at, where there is a lot of  
control over the look of URLs.


If there is a way, please let me know, or send me a pointer to the  
right documentation. Thanks.


--
Alan Gutierrez | [EMAIL PROTECTED] | http://blogometer.com/ | 504  
717 1428

Think New Orleans | http://thinknola.com/



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



Re: Why dioes this error occur?

2008-01-05 Thread Timo Rantalaiho
On Fri, 04 Jan 2008, wicket21 wrote:
 a) reading the Ajax - Links Example  (get the starting point: use
 AjaxCallDecorator)
 b) finding/writing a js function to display a layer to cover all the visible
 area of the window + disallow any user clicks (similar behaviour as the
 layer behind the modal window)
 c) calling this js function before the ajax call
 d) calling some more js code to hide the extra layer after the ajax call

Making your Ajax-Behavior implement IAjaxIndicatorAware you
can automatise the major part of this.

Best wishes,
Timo


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



Re: Wicket URLs

2008-01-05 Thread Matej Knopp
You can mount pages using hybridurlcoding strategy to make sure user
doesn't see wicket:interface in url. However, the urls in documents
are not that easy to change. It would require custom url coding
strategy for imho no good reason as those are urls the user doesn't
really see.

The ajax example pages are mount using the hybridurlcodingstrategy for example.
http://wicketstuff.org/wicket13/ajax/

-Matej

On Jan 5, 2008 7:53 PM, Alan Gutierrez [EMAIL PROTECTED] wrote:
 I'm taking a quick look at Wicket for use on a new project. I'm
 curious about the URLs. It it possible to have more control over the
 URLs that Wicket uses for form submissions? In the guest book example
 the submit URL is...

 http://wicketstuff.org/wicket13/guestbook/?wicket:interface=:0

 I'd like to be able to change that to look a little less cryptic.

 RESTLET is another framework I'm looking at, where there is a lot of
 control over the look of URLs.

 If there is a way, please let me know, or send me a pointer to the
 right documentation. Thanks.

 --
 Alan Gutierrez | [EMAIL PROTECTED] | http://blogometer.com/ | 504
 717 1428
 Think New Orleans | http://thinknola.com/



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



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



Re: Wicket URLs

2008-01-05 Thread Alan Gutierrez

Thank you for the response. I'm not quite sure I follow, though.

URLs in documents, do you mean AJAX? Because it seems that there is  
an interface for mapping URLs, this mount interface that you mentioned.


On Jan 5, 2008, at 1:13 PM, Matej Knopp wrote:


You can mount pages using hybridurlcoding strategy to make sure user
doesn't see wicket:interface in url. However, the urls in documents
are not that easy to change. It would require custom url coding
strategy for imho no good reason as those are urls the user doesn't
really see.

The ajax example pages are mount using the hybridurlcodingstrategy  
for example.

http://wicketstuff.org/wicket13/ajax/

-Matej

On Jan 5, 2008 7:53 PM, Alan Gutierrez [EMAIL PROTECTED] wrote:

I'm taking a quick look at Wicket for use on a new project. I'm
curious about the URLs. It it possible to have more control over the
URLs that Wicket uses for form submissions? In the guest book example
the submit URL is...

http://wicketstuff.org/wicket13/guestbook/?wicket:interface=:0

I'd like to be able to change that to look a little less cryptic.

RESTLET is another framework I'm looking at, where there is a lot of
control over the look of URLs.

If there is a way, please let me know, or send me a pointer to the
right documentation. Thanks.



--
Alan Gutierrez | [EMAIL PROTECTED] | http://blogometer.com/ | 504  
717 1428

Think New Orleans | http://thinknola.com/



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



Re: set the feedback message to js function

2008-01-05 Thread JohnSmith333

Thans for your help,thanks

igor.vaynberg wrote:
 
 renderhead(IHeaderResponse r) {
   for (FeedbackMessage m:messages) {
 r.renderonloadjavascript(alert('+m.toString()+'););
   }
 }
 
 -igor
 
 
 On Dec 31, 2007 11:25 PM, JohnSmith333 [EMAIL PROTECTED] wrote:

 Thanks for your kindly reply and help.
 I have read the FeedbackPanel  source code and know the use of
 HeaderContributor.
 But I still don't know how to do . Could you or anyone help me more?
 Thanks!

 HeaderContributor.forJavaScript(/js/default.js);




 igor.vaynberg wrote:
 
  see how feedbackpanel is implemented, you can write a header
  contributor to spit feedback messages to a js function
 
  -igor
 
 
  On Dec 31, 2007 7:51 AM, JohnSmith333 [EMAIL PROTECTED]
 wrote:
 
  Could anyone tell me how to set the feedback message to js function
 like
  alert(some txt must set)?
  thanks!
  --
  View this message in context:
 
 http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14558865.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]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14565041.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]


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

-- 
View this message in context: 
http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14641646.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: Wicket URLs

2008-01-05 Thread Matej Knopp
Hi,

by url in documents i mean urls that you see when you e.g. look at the
generated page source code.

-Matej

On Jan 5, 2008 8:54 PM, Alan Gutierrez [EMAIL PROTECTED] wrote:
 Thank you for the response. I'm not quite sure I follow, though.

 URLs in documents, do you mean AJAX? Because it seems that there is
 an interface for mapping URLs, this mount interface that you mentioned.


 On Jan 5, 2008, at 1:13 PM, Matej Knopp wrote:

  You can mount pages using hybridurlcoding strategy to make sure user
  doesn't see wicket:interface in url. However, the urls in documents
  are not that easy to change. It would require custom url coding
  strategy for imho no good reason as those are urls the user doesn't
  really see.
 
  The ajax example pages are mount using the hybridurlcodingstrategy
  for example.
  http://wicketstuff.org/wicket13/ajax/
 
  -Matej
 
  On Jan 5, 2008 7:53 PM, Alan Gutierrez [EMAIL PROTECTED] wrote:
  I'm taking a quick look at Wicket for use on a new project. I'm
  curious about the URLs. It it possible to have more control over the
  URLs that Wicket uses for form submissions? In the guest book example
  the submit URL is...
 
  http://wicketstuff.org/wicket13/guestbook/?wicket:interface=:0
 
  I'd like to be able to change that to look a little less cryptic.
 
  RESTLET is another framework I'm looking at, where there is a lot of
  control over the look of URLs.
 
  If there is a way, please let me know, or send me a pointer to the
  right documentation. Thanks.
 

 --
 Alan Gutierrez | [EMAIL PROTECTED] | http://blogometer.com/ | 504
 717 1428
 Think New Orleans | http://thinknola.com/



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



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



Re: About Page Expired of guestbook sample

2008-01-05 Thread rosen jiang

hi igor,

Yes, i have tweak mapping.
I am following http://wicket.apache.org/exampleguestbook.html; sample, my
GuestBookApplication.java and GuestBook.html and GuestBook.java and
Comment.java all same as sample, and all files put into com.cdsafe.guestbook
package.

This is my web.xml:
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

filter
filter-nameGuestBookApplication/filter-name
   
filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
  param-nameapplicationClassName/param-name
 
param-valuecom.cdsafe.guestbook.GuestBookApplication/param-value
/init-param
/filter
filter-mapping
filter-nameGuestBookApplication/filter-name
url-pattern/app/*/url-pattern
/filter-mapping
/web-app


regards,
rosen jiang


igor.vaynberg wrote:
 
 seems to work fine
 
 http://wicketstuff.org/wicket13/guestbook/
 
 did you tweak the filter mapping?
 
 -igor
 
 On Jan 5, 2008 8:23 AM, rosen jiang [EMAIL PROTECTED] wrote:

 hi all,

 I am studying guestbook sample of 1.3 right now, but encounter some
 problem:
 If i submit the form, then rising Page Expired.

 I have read this thread
 http://www.nabble.com/forum/ViewPost.jtp?post=13663558framed=y;, but
 nothing help.

 Have anybody tried guestbook sample of 1.3?

 regards,
 rosen jiang
 --
 View this message in context:
 http://www.nabble.com/About-Page-Expired-of-guestbook-sample-tp14635300p14635300.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]


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

-- 
View this message in context: 
http://www.nabble.com/About-Page-Expired-of-guestbook-sample-tp14635300p14644130.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: [Wicket 1.2.6] How to get Wizard's form from inside a WizardStep?

2008-01-05 Thread Eelco Hillenius
Yeah, the form is initialized in the Wizard's init method, not right
away during construction. You could try patching the wizard and
creating the form in the constructor instead and see if that solves
your problem and propose a patch if it does. I wouldn't mind having
another wizard example in wicket-examples either, so if you want, you
can make a little test app that plugs in wicket-examples for this :-)

Eelco

On 1/5/08, Paolo Di Tommaso [EMAIL PROTECTED] wrote:
 Let me guess .. you need the form to create a AjaxSubmitLink instance.

 But the #findParent(Form.class) will return null until the component
 hierarchy is constructed, being so you cannot invoke it at component
 construction-time.

 A possible workaround is to postpone the findParent(Form.class) method
 invocation instantiating a the AjaxSubmitLink using a form proxy.

 I've hacked this writing a custom AjaxFormSubmitBehavior that does not
 require the form instance on its constructor but just discover it - invoking
 #findParent(Form.class) method - when is required.

 Me fate sempre lavora.. ;)

 P


 On Jan 4, 2008 12:43 PM, Fabio Fioretti [EMAIL PROTECTED] wrote:

  First of all, many compliments for the great Wicket 1.3 release: we're
  looking forward to port our application to the new cool version!
 
  How can I get the Wizard's form from inside a WizardStep? I need it to
  trigger an AjaxSubmitLink which should update a part of my model while
  remaining inside that step. What leaves me clueless is the fact that
  WizardStep instances are added to the WizardModel instead of the
  Wizard, so doing something like this from inside the WizardStep:
 
  Form form = (Form)WizardStep.this.findParent(Form.class);
 
  seems to return null; moreover, this makes me wonder how the same
  instruction inside WizardStep.AddFormValidatorAction.execute() can
  succeed.
 
  I'm sure I'm missing something really stupid. Please forgive me. :-)
 
 
  Thanks a lot,
 
  Fabio Fioretti - WindoM
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Overriding panel markup

2008-01-05 Thread Eelco Hillenius
 I wondering what's the best approach to overriding the markup for a
 panel. Is there a method I can override or should I just extend the
 Panel?

You should extend it. You *could* use a custom resolution (see the
custom markup example in wicket-examples), but extending the class is
easier to implement (and probably to maintain).

 I thought extending might be overkill if all I want to do is
 specify different markup but not change the functionality. Specically
 I'm trying to override the markup for
 org.apache.wicket.authentication.panel.SignInPanel to restructure it but
 maintain all of the wicket ids, etc.

Just create another class. You VM can handle it :-)

Eelco

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



Re: Bug in MultiFileUploadField

2008-01-05 Thread Eelco Hillenius
If you have a reproducible case, please attach this to an issue.

Cheers,

Eelco

On 1/5/08, Suad AlShamsi [EMAIL PROTECTED] wrote:
 I was able to reproduce the same bug as well. I am using IE 6


 Igor Vaynberg wrote:
  On Jan 5, 2008 1:03 AM, Franklin Antony [EMAIL PROTECTED] wrote:
 
  1)If I enter some data in the file upload field and just move out(something
  like loose focus), then that entry I placed inside the text file just gets
  listed below. My suggestion would be somehow to get that field as disabled
 
 
  cant do that. the field is input type=upload. if we disable it then
  the browse button will be disabled also.
 
 
  2)If you enter some data in the field and click just below the text field
  so as your click will be placed right on top of the delete, then you can
  enter data inside the Delete button. My suggestion is that if the text
  field is disabled then this problem might not come.
 
 
  that sounds like a browser bug. which one are you using? the delete
  button is just input type=button, not sure why you can enter text
  into it.
 
 
  3)Not really sure how I can do internationalization.
 
 
  see .properties files next to the .java/.class file for resource keys 
  available.
 
  -igor
 
 
 
  I would really appreciate your help.
  I have placed an image to show the problems also
 
  Thanks guys for all the help.
  Franklin.
 
 
  Problem Image:  http://www.nabble.com/file/p14631169/wicket_bug.jpg
 
  --
  View this message in context: 
  http://www.nabble.com/Bug-in-MultiFileUploadField-tp14631169p14631169.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]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 



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



Re: Wicket/Ajax history support

2008-01-05 Thread Eelco Hillenius
On 1/4/08, Sam Hough [EMAIL PROTECTED] wrote:

 What is the best bet for supporting the back button and bookmarking in Ajax
 heavy Wicket 1.3?

 I saw this ticket which I think covers what I'm on about:
 http://issues.apache.org/jira/browse/WICKET-271

 So far we are thinking about marking which bean properties of components
 should be recorded for history and bookmark purposes and then shoving these
 into #bit after the URL. Then need a bit of JS to send that to the server...
 Obviously this will be a lot of work :(

Yeah, it's a tough problem to solve. Any concrete help (meaning
executable code) is welcome.

 Matej : Sorry if I gave the wrong impression on TheServerSide (as x.y) about
 Wicket's performance. I thought I was saying pretty much as matt raible had
 by putting it in the Internal, more desktop-like applications that are
 stateful category.

We don't always agree with Matt either :-)

 Doing server side component based framework is tough and
 you guys have done an amazing job. I'm very, very grateful that Wicket has
 saved me from struts 2 in my current job.

Wicket is not the answer to everything either. No-one on the team is
dogmatic on this. I think Wicket is especially useful for complex
applications that resemble desktop apps (but then with bookmarking
etc). But that doesn't mean that you can only use it for that. It
scales well enough to handle lots of users, and we've always made sure
that Wicket would behave as good as it can in clusters, and is
optimized as well as we can. Also, if your application is simple, you
might want to consider a 'lighter' approach (like plain HTML 
JavaScript/ Ajax - webservices or REST). But then again, if you are
already comfortable with Wicket, why not save yourself a bunch of time
and just use that?

Eelco

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