RE: Get informed about invalidation of a session

2008-04-03 Thread BatiB80

Hi Warren,

thanks for your answer. But I'm not sure how I could use this. The
information that I need to access are stored in the session. How can I
access a single instance of this session from the session store?

Thanks,
Sebastian
-- 
View this message in context: 
http://www.nabble.com/Get-informed-about-invalidation-of-a-session-tp16447452p16466115.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]



Get informed about invalidation of a session

2008-04-02 Thread BatiB80

Hi together,

I want to store some user related information (something like last viewed
articles) in the session instance for this user. During one session I simply
store the information directly in the session. But when the session is being
invaldidated I want to persist the information in the database. Therefore I
need to get informed when a session is being invalidated. 

Does anybody know how I can reach this?

Thanks in advance,
Sebastian
-- 
View this message in context: 
http://www.nabble.com/Get-informed-about-invalidation-of-a-session-tp16447452p16447452.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]



Replace HTML Frameset

2008-01-20 Thread BatiB80

Hi together,

I've a page with a Frameset. In one frame I include a page from another
server. I want to replace the Frameset by something else... - Does anybody
knows how I can do this???

Thanks,
Sebastian
-- 
View this message in context: 
http://www.nabble.com/Replace-HTML-Frameset-tp14983298p14983298.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]



Reload problem with picture upload

2007-12-27 Thread BatiB80

Hi together,

I've a problem with a page which handles a fileupload. I took the upload
example from the wicket examples (1.2.6) as base and modified the example in
that way that's only possible to upload pictiures. Furthermore the listview
contains the real images instead os the file names. But this causes some
trouble. 

For the first time everything works fine. If I try to upload pictures again,
the pictures from the first upload will be shown instead of the new ones.
The model-values are absolutely correct and contain the new files. I found
out, that after a browser refresh (press F5) the images are shown correctly.
So it seems that the browser caches the old values. Is there any way to
force the browser to reload the images???

Thanks in advance for your help!
Regards,
Sebastian
-- 
View this message in context: 
http://www.nabble.com/Reload-problem-with-picture-upload-tp14513009p14513009.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: Wizard and Upload Form

2007-12-26 Thread BatiB80

Hi,

is it anyhow possible to validate only this single input field without
looking for the others. Maybe there can be one submit button which is only
used to submit this single field?

Thanks,
Sebastian
-- 
View this message in context: 
http://www.nabble.com/Wizard-and-Upload-Form-tp14481506p14504032.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: Wizard and Upload Form

2007-12-23 Thread BatiB80

I already tried so but it didn't work. I found this post:

http://www.nabble.com/File-Upload-inside-a-Wizard--td10272971.html#a10334530
http://www.nabble.com/File-Upload-inside-a-Wizard--td10272971.html#a10334530 

That's why I added it to the same form... 
-- 
View this message in context: 
http://www.nabble.com/Wizard-and-Upload-Form-tp14481506p14481649.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]



Error Page

2007-11-13 Thread BatiB80

Hi,

I've a question which is a little bit offtopic. I'm using a tomcat webserver
and configured a error-page for error 404. In case such a error occures, do
I have the possibilty to find out which page was originally requested by the
user???

My error page is a .jsp so I'm able to access the HttpServletRequest, but
I've also extended the WicketServlet class, so I'm also able to access
anything there.

Any ideas?
-- 
View this message in context: 
http://www.nabble.com/Error-Page-tf4799850.html#a13732233
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: Show and hide panel with radio-choice

2007-11-10 Thread BatiB80

Hi,

sorry, but it's me again. I still do not understand this stuff...
No the switch between the panels is working, but everytime the panel is
changed, all the already entered form-values are lost. Here is a snipplet
out of the source:

private final class RegisterForm extends Form {
private final ValueMap properties = new ValueMap();
private RequiredTextField username = null;
private PasswordTextField password = null;
private RadioChoice registrationType = null;
private final RegisterUserSinglePersonPanel singlePersonPanel;
private final RegisterUserCompanyPanel companyPanel;

public RegisterForm(final String id) {
  super(id);
  AttributeModifier highlightAttributeModifier =
  new AttributeModifier(class, true, new AbstractReadOnlyModel() {
  public Object getObject(Component component) {
  if (component.hasErrorMessage())
  return inputNormalMissing;
  return null;
  }
  });

  username = new RequiredTextField(username, new
PropertyModel(properties, username));
  username.add(StringValidator.minimumLength(5));
  username.add(highlightAttributeModifier);

  password = new PasswordTextField(password, new
PropertyModel(properties, password));
  password.add(StringValidator.minimumLength(5));
  password.add(highlightAttributeModifier);

  registrationType = new RadioChoice(registrationType, new
PropertyModel(properties, registrationType), TYPES).setSuffix();

  singlePersonPanel = new
RegisterUserSinglePersonPanel(registerSinglePersonPanel);
  singlePersonPanel.setVisible(true);

  companyPanel = new RegisterUserCompanyPanel(registerCompanyPanel);
  companyPanel.setVisible(false);

  registrationType.add(new AjaxFormComponentUpdatingBehavior(onchange)
{
protected void onUpdate(AjaxRequestTarget target) {
  singlePersonPanel.setVisible(!singlePersonPanel.isVisible());
  companyPanel.setVisible(!companyPanel.isVisible());
  target.addComponent(singlePersonPanel.getParent());
}
  });

  add(username);
  add(password);
  add(registrationType);
  add(singlePersonPanel);
  add(companyPanel);
}
}

Does anybody knows what I'm doing wrong? In case I type some value into
username and afterwards select something in my radio-button, the panels
(singleUser and company) are switched (thats OK) but my value in username is
lost... :-(
-- 
View this message in context: 
http://www.nabble.com/Show-and-hide-panel-with-radio-choice-tf4779601.html#a13681821
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: Show and hide panel with radio-choice

2007-11-10 Thread BatiB80

One more information:

when I change the source to:
  target.addComponent(singlePersonPanel);
  target.addComponent(companyPanel);
(that means I add the panels instead of the form) I get the following error
in ajax debug view:

ERROR: Component with id [[registerForm_registerCompanyPanel]] a was not
found while trying to perform markup update. Make sure you called
component.setOutputMarkupId(true) on the component whose markup you are
trying to update.
ERROR: Component with id [[registerForm_registerSinglePersonPanel]] a was
not found while trying to perform markup update. Make sure you called
component.setOutputMarkupId(true) on the component whose markup you are
trying to update.

Seems to be clear, but I also added:
 singlePersonPanel.setOutputMarkupId(true);
 companyPanel.setOutputMarkupId(true);

If I had a look into the sourcecode I can find the component id's:

span wicket:id=registerSinglePersonPanel
id=registerForm_registerSinglePersonPanel
  wicket:panel
...
  /wicket:panel
/span

span wicket:id=registerCompanyPanel id=registerForm_registerCompanyPanel
  wicket:panel
...
  /wicket:panel
/span

any ideas???

-- 
View this message in context: 
http://www.nabble.com/Show-and-hide-panel-with-radio-choice-tf4779601.html#a13682081
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: Show and hide panel with radio-choice

2007-11-10 Thread BatiB80

Hmm - I think this method is new in version 1.3, but I use version 1.2.
And I think it's not included there...

Do you know how to solve the problem with this version?

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Show-and-hide-panel-with-radio-choice-tf4779601.html#a13684798
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Change css-class of form on validation

2007-11-09 Thread BatiB80

[EMAIL PROTECTED],

I want to use a different css-class for my inputfields after the validation
of that field has failed. For example, if an requiredfield isn't filled, the
field should get red. 

Does anybody knows how to do this? Furthermore I do not want to have the
message field ... is required in my feedback panel.

Thanks 
Sebastian
-- 
View this message in context: 
http://www.nabble.com/Change-css-class-of-form-on-validation-tf4777497.html#a13666379
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: Change css-class of form on validation

2007-11-09 Thread BatiB80

Hmmm... - sorry, but one more question on this. I added an attributemodifier
to my component. When accessing the page the attribute is correctly
renderred. But I want to rerender the component after the validation
failed. But the validation method isn't called again.

example: myfield.add(new AttributeModifier(class, getClassValue());

The method getClassValue is only called when the page is displayed the first
time. After validation I want to called it again, but it isn't. Does anybody
knows why???

Thanks,
Sebastian
-- 
View this message in context: 
http://www.nabble.com/Change-css-class-of-form-on-validation-tf4777497.html#a13668008
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: Change css-class of form on validation

2007-11-09 Thread BatiB80

I found something in the wiki :-)

http://cwiki.apache.org/WICKET/removing-message-bundle-requirements-for-validation.html

-- 
View this message in context: 
http://www.nabble.com/Change-css-class-of-form-on-validation-tf4777497.html#a13668693
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Show and hide panel with radio-choice

2007-11-09 Thread BatiB80

Hi together,

I have in my page two panels and one choice input. If the user select the
first option, the first panel should be shown, if the user selects the
second option, the second panel should be shown. Does anybody knows how this
could work?

I tried it with:
  choice.add(new AjaxFormComponentUpdatingBehavior(onchange) {
protected void onUpdate(AjaxRequestTarget target) {
  if (panel1.isVisible()) {
panel1.setVisible(false);
panel2.setVisible(true);
  } else {
panel1.setVisible(true);
panel2.setVisible(false);
  }
}
but it isn't working... :-(
-- 
View this message in context: 
http://www.nabble.com/Show-and-hide-panel-with-radio-choice-tf4779601.html#a13673554
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: Show and hide panel with radio-choice

2007-11-09 Thread BatiB80

one additional information:

when I change the choice nothing happens. But it seems, that internally the
state of the component is beeing changed, when I reload the page the panels
will be swapped. So it seems, that there must be some re-render request???

Does anybody has an idea?
-- 
View this message in context: 
http://www.nabble.com/Show-and-hide-panel-with-radio-choice-tf4779601.html#a13674117
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: Show and hide panel with radio-choice

2007-11-09 Thread BatiB80

What do you mean?

I tried: 
  target.addComponent(singlePerson);
  target.addComponent(company);
But it is'nt working

-- 
View this message in context: 
http://www.nabble.com/Show-and-hide-panel-with-radio-choice-tf4779601.html#a13674510
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Add Meta-Information to wicket-page

2007-11-05 Thread BatiB80

Hi,

does anybody knows how I can add MetaDataInformation like 

meta name=Keywords content=...

to a Wicket-Page. I want to set the values dynamically by the Java-Classes
so I wont hardcode the values in the .html-template!

Thanks in advance - regards,
Sebastian
-- 
View this message in context: 
http://www.nabble.com/Add-Meta-Information-to-wicket-page-tf4751820.html#a13587442
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: Add Meta-Information to wicket-page

2007-11-05 Thread BatiB80

Yupp... - That's it!!!

Thanks! :-)

-- 
View this message in context: 
http://www.nabble.com/Add-Meta-Information-to-wicket-page-tf4751820.html#a13589318
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: Load Image from another server

2007-10-28 Thread BatiB80

Thanks for the answer. But is there no already existing class in the
framework which is doing it? Do I have to implement this by myselve???

Regards,
Sebastian
-- 
View this message in context: 
http://www.nabble.com/Load-Image-from-another-server-tf4695833.html#a13452769
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Add String which contains HTML markups

2007-10-28 Thread BatiB80

[EMAIL PROTECTED],

I want to add some string to a HTML page which already contains some HTML
markups. 

For example: 

add(new Label(component_id, some textwhich contains makups));

If I add the HTML Markups will be shown instead of interpreted. Does anybody
knows what to do???

Thanks in advance,
Sebastian
-- 
View this message in context: 
http://www.nabble.com/Add-String-which-contains-HTML-markups-tf4706791.html#a13452983
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: Load Image from another server

2007-10-28 Thread BatiB80

Thanks for your help, it works. 

I added a new class which implements WebResouce. The overridden method
getResourceStream() simply returns a new UrlResourceStream(aUrl);

Thanks, 
Sebastian
-- 
View this message in context: 
http://www.nabble.com/Load-Image-from-another-server-tf4695833.html#a13452993
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: Add String which contains HTML markups

2007-10-28 Thread BatiB80

such simple... :-D

Thank you very much!!!


-- 
View this message in context: 
http://www.nabble.com/Add-String-which-contains-HTML-markups-tf4706791.html#a13453417
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: add multiple images

2007-10-28 Thread BatiB80

Thanks, I implemented some DataView with a ListDataProvider and it works.

I not really get the information from a database. I make some webservice
call and render the response!

Thanks!
Sebastian
-- 
View this message in context: 
http://www.nabble.com/add-multiple-images-tf4707969.html#a13457467
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Load Image from another server

2007-10-26 Thread BatiB80

Hi,

is it possible to load an image which is located on another server. In my
Page-Class I like to do somethink like this:

add(new Image(myImage, new
SomeKindOfWebReference(http://www.sample.com/sampleImage.gif;)));

Can this be provided by the framework or do I have to create my own
WebResource-Implementation which reads the picture in the
getResourceStream()-Method???

Many thanks for you help
Sebastian
-- 
View this message in context: 
http://www.nabble.com/Load-Image-from-another-server-tf4695833.html#a13422770
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: Load Image from another server

2007-10-26 Thread BatiB80

Think that this is not exactly what I want. I do not want to link to another
site, I want to view an image. But the imageresource isn't located on my
webserver. What I did in my .html-Page:

  img wicket:id=someExternalPic height=85 width=120

No I'm trying to replace this with an external resource. I'm searching for
something like:

  add(new Image(someExternalPic, new
SomeKindOfWebReference(http://www.sample.com/sampleImage.gif;));

When I'm adding an ExternalLink, for sure I get an exception that I'm trying
to add a link to some markup of kind image. 

Sorry for the last two postings...

-- 
View this message in context: 
http://www.nabble.com/Load-Image-from-another-server-tf4695833.html#a13424786
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: PagingNavigator with custom images

2007-10-26 Thread BatiB80

Hmm... - not very nice but it works!

Thanks for the fast response!
-- 
View this message in context: 
http://www.nabble.com/PagingNavigator-with-custom-images-tf4695835.html#a13424495
Sent from the Wicket - User mailing list archive at Nabble.com.


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