Re: QuickStart not finding Wicket classes

2009-01-27 Thread Michael Sparer

nope,
http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.4-SNAPSHOT/


Anton Veretennikov wrote:
 
 There is no 1.4-SNAPSHOT in central repository so it must be
 downloaded first and installed in local repository.
 Am I right?
 
 On Tue, Jan 27, 2009 at 1:18 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
 works fine for me:
 C:\dev\src\wicket\wicket-quickstartsvn up
 At revision 738009.
 C:\dev\src\wicket\wicket-quickstartmvn clean package
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building Wicket Quickstart
 [INFO]task-segment: [clean, package]
 [INFO]
 
 [INFO] [clean:clean]
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] [compiler:compile]
 [INFO] Compiling 5 source files to
 C:\dev\src\wicket\wicket-quickstart\target\classes
 [INFO] [bundle:manifest {execution: bundle-manifest}]
 [WARNING] Ignoring project type war - supportedProjectTypes = [jar,
 bundle]
 [INFO] [resources:testResources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] [compiler:testCompile]
 [INFO] Compiling 1 source file to
 C:\dev\src\wicket\wicket-quickstart\target\test-classes
 [INFO] [surefire:test]
 [INFO] Surefire report directory:
 C:\dev\src\wicket\wicket-quickstart\target\surefire-reports

 ---
  T E S T S
 ---
 Running org.apache.wicket.util.license.ApacheLicenceHeaderTest
 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.297 sec

 Results :

 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

 [INFO] [war:war]
 [INFO] Exploding webapp...
 [INFO] Assembling webapp wicket-quickstart in
 C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart-1.4-SNAPSHOT
 [INFO] Copy webapp webResources to
 C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart-1.4-SNAPSHOT
 [INFO] Generating war
 C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart.war
 [INFO] Building war:
 C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart.war
 [INFO] Preparing source:jar
 [WARNING] Removing: jar from forked lifecycle, to prevent recursive
 invocation.
 [INFO] No goals needed for project - skipping
 [INFO] [source:jar {execution: attach-sources}]
 [INFO] Building jar:
 C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart-1.4-SNAPSHOT-sources.jar
 [INFO] [jar:test-jar {execution: default}]
 [INFO] Building jar:
 C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart-1.4-SNAPSHOT-tests.jar
 [INFO]
 
 [INFO] BUILD SUCCESSFUL
 [INFO]
 
 [INFO] Total time: 13 seconds
 [INFO] Finished at: Mon Jan 26 22:16:15 PST 2009
 [INFO] Final Memory: 18M/32M
 [INFO]
 

 -igor

 On Mon, Jan 26, 2009 at 11:09 AM, Dane Laverty
 danelave...@chemeketa.edu wrote:
 Sorry about that. Here you go:

 mvn clean compile

 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building quickstart
 [INFO]task-segment: [clean, compile]
 [INFO]
 
 [INFO] [clean:clean]
 [INFO] Deleting directory C:\wicket-dev\myproject\target
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] [compiler:compile]
 [INFO] Compiling 2 source files to
 C:\wicket-dev\myproject\target\classes
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] Compilation failure

 could not parse error message:
 org\apache\wicket\protocol\http\WicketFilter.java(org\apache\wicket\prot
 ocol\http:WicketFilter.java):28: package javax.portlet does not exist
 import javax.portlet.Portlet;
^

 could not parse error message:
 org\apache\wicket\protocol\http\portlet\WicketFilterPortletContext.java(
 org\apache\wicket\protocol\http\portlet:WicketFilterPortletContext.java)
 :21: package javax.portlet does not exist
 import javax.portlet.PortletConfig;
^

 could not parse error message:
 org\apache\wicket\protocol\http\portlet\WicketFilterPortletContext.java(
 org\apache\wicket\protocol\http\portlet:WicketFilterPortletContext.java)
 :22: package javax.portlet does not exist
 import javax.portlet.RenderResponse;
^

 could not parse error message:
 org\apache\wicket\protocol\http\portlet\WicketFilterPortletContext.java(
 org\apache\wicket\protocol\http\portlet:WicketFilterPortletContext.java)
 :29: package org.apache.portals.bridges.util does 

Re: tinymce settings

2009-01-27 Thread Swanthe Lindgren
Ok, so things like mceSettings.addCustomSetting(skin : \o2k7\) work, 
but the readonly setting is in a newer version (3.1.1) when wicket 
tinymce is only 3.1.0.


//Swanthe

Hello to you all
Im trying to use the tinymce behavior to get a nice editor. On one 
page I want a read-only tinymce, but how do I configure its settings?


Is this anywhere near?

TinyMCESettings mceSettings = new TinyMCESettings(Theme.simple);
mceSettings.addCustomSetting(readonly:true);
mceSettings.addCustomSetting(theme_advanced_resizing : true);
  add(new TextAreaString(message, new 
PropertyModelString(obj, body)).add(new 
TinyMceBehavior(mceSettings)));


//Swanthe


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






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



Re: Wicket placeholder for tr component causing invalid markup

2009-01-27 Thread the_adam

Hi,


Jeremy Thomerson-5 wrote:
 
 I agree 100% - that's the only clean solution I see.
 

To let you all know - Igor has provided a quick solution and committed it to
a trunk. Now there is overridible Component#renderPlaceholderTag method.

Regards,
Adam
-- 
View this message in context: 
http://www.nabble.com/Wicket-placeholder-for-%3Ctr%3E-component-causing-invalid-markup-tp21663544p21681424.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: Wicket placeholder for tr component causing invalid markup

2009-01-27 Thread Harrison, Andy
I'm unclear of what you actually want here...

In the thread you state:

I know the benefits of wicket:enclosure. What I need, however is a
placeholder, which is what wicket:enclosure doesn't provide (instead it
removes it's entire body along with self when the specified child is not
visible). This makes it impossible to show a component after the page
has
been rendered without it. 

Surely if you use the wicket:enclosure around a tr (something I have
done in the past) then surely all you need is a little ajax to make the
enclosure and its contents visible again?  IIRC all you need to do is to
add the list item to the target once you've set the visibility.

Feel free to berate if I'm on the wrong track.

Regards

Andrew

-Original Message-
From: Jeremy Thomerson [mailto:jer...@wickettraining.com] 
Sent: 26 January 2009 15:27
To: users@wicket.apache.org
Subject: Re: Wicket placeholder for tr component causing invalid
markup

I agree 100% - that's the only clean solution I see.

On Mon, Jan 26, 2009 at 9:25 AM, the_adam
adam.parchimow...@gmail.comwrote:



 Jeremy Thomerson-5 wrote:
 
  The problem you're facing is clear - and you're right -
wicket:enclosure
  won't work for you.  Unfortunately, that closed-tag code for the
  placeholder
  is hard-coded in Component.
 

 Thanks for understanding :) Also, I've looked already in the Component
 source and I realise that it can't be done as is, hence the thread.


 Jeremy Thomerson-5 wrote:
 
  Hmmm  Could you instead have a wrapping component inside of your
TR
  and
  use that for the visibility swap?  (...) Or don't use TR - use div's
 (...)
 

 The wrapping component would be a solution, but it's rather an ugly
 workaround and a code-expensive one (as of trading invocation of
chainable
 method for an additional container AND manual setting of a td colspan
 property AND explicit visibility linking).

 I might have opened this thread in a wrong group - I was thinking
about a
 possibility of reimplementing the placeholder generation fragment of
 Component#render(MarkupStream) method. Right now it is hardcoded into
the
 method and invoked if flag FLAG_PLACEHOLDER has been set to true. It
could
 delegate the generation to a different method which wouldn't be final.
I
 can
 think of a few solutions, but since we've settled that my problem
won't be
 solved in a clean way with the current state of Wicket I will move
this
 discussion to developers group.
 --
 View this message in context:

http://www.nabble.com/Wicket-placeholder-for-%3Ctr%3E-component-causing-
invalid-markup-tp21663544p21667320.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




-- 
Jeremy Thomerson
http://www.wickettraining.com



..

CarbonNeutral?  office

Thomson.co.uk for Holidays, Flights, Hotels, customer reviews and over 2000 
videos. Find us at www.thomson.co.uk, Sky 637 or on your high street.

CONFIDENTIALITY NOTICE  DISCLAIMER

This message, together with any attachments, is for the confidential and 
exclusive use of the intended addresses(s). If you receive it in error, please 
delete the message and its attachments from your system immediately and notify 
us by return e-mail. Do not disclose copy, circulate or use any information 
contained in this e-mail. 
(1) The content of this e-mail is to be read subject to our terms of business, 
as applicable. 
(2) E-mail may be intercepted or affected by viruses and we accept no 
responsibility for any interception or liability for any form of viruses 
introduced with this e-mail. 
(3) The sender shall remain solely accountable for any statements, 
representations or opinions that are clearly his or her own and not made in the 
course of employment. 
(4) For risk, protection and security purposes, we may monitor e-mails and take 
appropriate action. 
Registered Office: TUI Travel House, Crawley Business Quarter, Fleming Way, 
Crawley, West Sussex RH10 9QL 

TUI Travel PLC, Registered in England and Wales (Number 6072876)
TUI Northern Europe Limited, Registered in England and Wales (Number 3490138)
TUI UK Limited, Registered in England and Wales (Number 2830117) ; VAT Number: 
233 3687 62
Thomsonfly Limited, Registered in England and Wales (Number 444359); VAT 
Number: 490 2120 79  

Telephone: +44 (0)24 7628 2828 | Fax: +44 (0)24 7628 2844 | IT Helpdesk: +44 
(0)20 7383 1555 | IT E-mail: postmas...@thomson.co.uk

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



Refreshing Datview with pageNavigator

2009-01-27 Thread newbie_to_wicket

Hi All, 

I am using DataView with PageNavigator, when ever i click on page numbers
the URL is changing 
I'd like to implemnet Navigator with Ajax, so that the URL cannot be change,
why because my requirement is  I am putting the DATA view in div element
when ever the url is changed then DIV is closing 


Please give me the solution if you have 


Thanks
Johnny
 
-- 
View this message in context: 
http://www.nabble.com/Refreshing-Datview-with-pageNavigator-tp21682188p21682188.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: Wicket placeholder for tr component causing invalid markup

2009-01-27 Thread the_adam


Phooey wrote:
 
 I'm unclear of what you actually want here...
 
Actually what I want has been already provided as stated in my previous post
:)


Phooey wrote:
 
 Surely if you use the wicket:enclosure around a tr (something I have
 done in the past) then surely all you need is a little ajax to make the
 enclosure and its contents visible again?  IIRC all you need to do is to
 add the list item to the target once you've set the visibility.
 

You cannot show the enclosure when it is hidden - since it's not a DOM
element you cannot add it to target. Instead you'd have to use a
WebMarkupContainer (but still you'd have to output it's id, so i.e.
wicket:container wouldn't be a go). TR would have to be wrapped in TBODY
to make visibility swapping possible. But again I wanted a simple solution
without an overhead of adding additional components. Of course you could add
your own AJAX js calls that would do thing other way then the Wicket way,
but Wicket way is - return a chunk of markup and replace a dom element with
a given id with this returned chunk - you need a hook to be there before
switching visibility on.

Also - you cannot just add ListItem to the target - it's a repeater and they
don't have the body of their own - instead their children inherit it.
addChildren would be helpful here though.
-- 
View this message in context: 
http://www.nabble.com/Wicket-placeholder-for-%3Ctr%3E-component-causing-invalid-markup-tp21663544p21682504.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Example for presenting pdf in modal window

2009-01-27 Thread Ernesto Reinaldo Barreiro
Why not use an iframe as the content of the modal window and display there
your PDF?  I do not use modal-windows myself but showing the PDF inside an
iframe on a Panel is not difficult to achieve with Wicket... So, I do not
see why that wouldn't work with modal windows.
Best,

Ernesto



On Mon, Jan 26, 2009 at 8:50 PM, Per Newgro per.new...@gmx.ch wrote:

 Is there no way to achieve my goal?

 Per


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




Re: London Wicket Event - 4th February @ Google

2009-01-27 Thread francisco treacy
hi cemal,

i am actually very interested in wicket and scala real world apps.
unfortunately i can't make it to london, but i would like to ask you
if the presentation slides will be available for download after the
event.
or should i ask daan, jan, al, ... ?

thanks

francisco



On Mon, Jan 26, 2009 at 11:40 AM, jWeekend jweekend_for...@cabouge.com wrote:

 We already have some 35 registered guests (29 confirmed) for our next London
 Wicket Event on the evening of February 4th, at Google (close to Victoria
 station). We have space for 15 more so if you are interested in coming
 http://jweekend.com/dev/LWUGReg/ register  soon and remember to confirm your
 place.

 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend


 jWeekend wrote:

 Our next London Wicket Event will be on the evening of Wednesday, February
 4th, at Google.
 This time we have presentations lined-up from three experienced
 Java/Wicket developers who have been experimenting with Scala and Wicket,
 just for fun, and, in some cases, on commercial development projects (yes,
 there are already Wicket applications built using Scala out there).
 Al's presentation is called Abstraction - you know what to expect!
 Al and I will also run a more concrete, general Wicket QA to wrap things
 up as usual.

 We'll be getting in some hot Pizza for around 18:15 and then:
 *  http://www.jWeekend.com Cemal Bayramoglu :  Welcome/Introduction
 *  http://www.stuq.nl Daan van Etten : Basic Introduction to Scala
 With Wicket
 * Dean Phersson-Chapman: Experiences Converting an Existing Wicket
 Application To Scala
 *  http://www.footprint.de Jan Kriesten : Real World Scala and Wicket
 *  http://herebebeasties.com/ Al Maw : ABSTRACTION!
 * Al Maw  Cemal Bayramoglu: General Wicket QA
 If you're not in a rush to get away join us for the customary visit to a
 local pub straight after the QA.

 We're lucky to attract a very good crowd and they say really nice things
 about our events, so if you've never been, you'd most likely enjoy the
 experience.

 Full details and registration are at
 http://www.jweekend.co.uk/dev/LWUGReg/ at the usual place . Register early
 and don't forget to confirm (or cancel) your registration using the link
 in the automated email.

 We'd like to thank Google for generously continuing to host our events.

 Regards - Cemal
  http://www.jWeekend.co.uk jWeekend


 --
 View this message in context: 
 http://www.nabble.com/London-Wicket-Event---4th-February-%40-Google-tp21428590p21663404.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: London Wicket Event - 4th February @ Google

2009-01-27 Thread Daan van Etten

Hi,

My code samples and presentation will be available online, on my own  
site and probably also on the London Wicket User group site.

Not only real world apps, but also hello world apps...

Regards,

Daan

Op 27 jan 2009, om 11:39 heeft francisco treacy het volgende geschreven:


hi cemal,

i am actually very interested in wicket and scala real world apps.
unfortunately i can't make it to london, but i would like to ask you
if the presentation slides will be available for download after the
event.
or should i ask daan, jan, al, ... ?

thanks

francisco



On Mon, Jan 26, 2009 at 11:40 AM, jWeekend jweekend_for...@cabouge.com 
 wrote:


We already have some 35 registered guests (29 confirmed) for our  
next London
Wicket Event on the evening of February 4th, at Google (close to  
Victoria
station). We have space for 15 more so if you are interested in  
coming
http://jweekend.com/dev/LWUGReg/ register  soon and remember to  
confirm your

place.

Regards - Cemal
http://www.jWeekend.co.uk jWeekend


jWeekend wrote:


Our next London Wicket Event will be on the evening of Wednesday,  
February

4th, at Google.
This time we have presentations lined-up from three experienced
Java/Wicket developers who have been experimenting with Scala and  
Wicket,
just for fun, and, in some cases, on commercial development  
projects (yes,

there are already Wicket applications built using Scala out there).
Al's presentation is called Abstraction - you know what to expect!
Al and I will also run a more concrete, general Wicket QA to wrap  
things

up as usual.

We'll be getting in some hot Pizza for around 18:15 and then:
   *  http://www.jWeekend.com Cemal Bayramoglu :  Welcome/ 
Introduction
   *  http://www.stuq.nl Daan van Etten : Basic Introduction to  
Scala

With Wicket
   * Dean Phersson-Chapman: Experiences Converting an Existing  
Wicket

Application To Scala
   *  http://www.footprint.de Jan Kriesten : Real World Scala and  
Wicket

   *  http://herebebeasties.com/ Al Maw : ABSTRACTION!
   * Al Maw  Cemal Bayramoglu: General Wicket QA
If you're not in a rush to get away join us for the customary  
visit to a

local pub straight after the QA.

We're lucky to attract a very good crowd and they say really nice  
things
about our events, so if you've never been, you'd most likely enjoy  
the

experience.

Full details and registration are at
http://www.jweekend.co.uk/dev/LWUGReg/ at the usual place .  
Register early
and don't forget to confirm (or cancel) your registration using  
the link

in the automated email.

We'd like to thank Google for generously continuing to host our  
events.


Regards - Cemal
http://www.jWeekend.co.uk jWeekend



--
View this message in context: 
http://www.nabble.com/London-Wicket-Event---4th-February-%40-Google-tp21428590p21663404.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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




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




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



Render other components

2009-01-27 Thread Philipp Daumke

Dear all,

I look for an example how to render Wicket-Components (in my case an 
AjaxDefaultDataTable) triggered by other Components (in my case 
AjaxLink). In my case the two components are defined in different 
Java-Classes. I looked for a while in the examples and in the wiki, but 
coudln't find anything.


I appreciate your help or just a few links to some examples!
All the best
Philipp

To make a silly example, I look for something like:

class1

AjaxLink link = new AjaxLink(link, new PropertyModel(obj, id))
   {
   public void onClick(AjaxRequestTarget target)
   {
   getComponent(myAjaxDefaultDataTable).render();
   }
   };
...

class2
...
   add(new 
AjaxFallbackDefaultDataTable(myAjaxDefaultDataTable, columns, 
relationProvider, 20)

   {
   {
   setOutputMarkupId(true);
   }
   });
--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: dau...@averbis.de

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


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



Re: Modal window position - always centred, even on long page

2009-01-27 Thread Steve Swinsburg

Thanks German,

Adding this to the HTML of my ModalWindow is working nicely.

I'm now in the process of working out some code that will put the  
modal window in the vertical centre of the actual viewport, even when  
scrolled, rather than the overall iframe height.

If anyone has done this, feel free to save me the hassle!


cheers,
Steve



On 23 Jan 2009, at 20:31, German Morales wrote:


Hi Steve,

I answer quickly with some ideas, perhaps it helps.

It seems that you need a different implementation of the center method
provided by ModalWindow.

You can see the original in modal.js, in the package
org.apache.wicket.extensions.ajax.markup.html.modal.res of the
wicket-extensions.
You should attempt centering the window to the current browser window,
instead of the viewport.

You could provide an own javascript with a content like:

  Wicket.Window.prototype.center = function() {
 // your own version
  };

Hope this helps,

German


2009/1/23 Steve Swinsburg s.swinsb...@lancaster.ac.uk


Hi all,

I have a fairly long page making use of Modal Windows, and any  
ModalWindow
that I place onto this page always renders in the exact centre of  
the page
(vertically). So if the button that opens the window is at the top,  
you need

to scroll down to get to the window. Likewise if the button is at the
bottom, you'll need to scroll up. This is a pain because sometimes  
the

screen just dims out but the window is off screen.

How can I control where the Modal Window is placed on the screen
vertically? Doesn't seem to be any options.

BTW this is inside an iframe which takes up most of the screen (but  
not
all). Ideally I'd like the mask to extend over the whole window,  
not just
the part that the iframe is in (which it currently does, but I can  
live with

that)


cheers,
Steve









smime.p7s
Description: S/MIME cryptographic signature


YUI menu and wicker border problem

2009-01-27 Thread Michal Hybler

Hi all!
I want to combine YUI menu( from yui examples) with wicket border system
to reach that menu will be displayed on each page.
I have 2 problems:
- menu lost its functionality (sub menu doesnt work) if i use it in hard
coded page its all right.
- in spite of I added menu in table it is outside the table and cell which
should contain it is empty.

There is my code:

layoutPage:

java:

public class PageBorder extends Border {
BoxBorder box;

/**
 * Constructor
 */
/*
 * public Page1() { add(new Menu(navomaticBorder));
 * 
 * }
 */
public PageBorder(String id) {
super(id);
initMenu();
}

private void initMenu() {
AbstractYuiMenuItem mi = null;

YuiMenu menu = new YuiMenu(menu);

menu.addMenuItem(new TestAction(M : L1));
menu.addMenuItem(new TestAction(M : L2));
mi = menu.addMenuItem(new TestAction(M : L3));
menu.addMenuItem(new TestAction(M : L4));
menu.addMenuItem(new TestAction(M : L5));

YuiMenu subMenu = mi.newSubMenu(m_subMenu1);
subMenu.addMenuItem(new TestAction(Label 1));
subMenu.addMenuItem(new TestAction(Label 2));
add(menu);

}

private static class TestAction implements IYuiMenuAction,
java.io.Serializable {
private final String id;

public TestAction(String id) {
this.id = id;
}

public IModel getName() {
return new Model(id);
}

public void onClick() {
System.out.println(Link:  + id);
}
}

}

html:

?xml version=1.0 encoding=UTF-8?
html xmlns=http://www.w3.org/1999/xhtml; 
head

/head
body class=yui-skin-sam


wicket:border
table
tr
td
div wicket:id=menuMenu Here/div
/td
tdwicket:body//td
/tr
/table
/wicket:border


/body
/html


page ancestor:


package cz.legend.mvcr.kup.lims.application;

import org.apache.wicket.Component;
import org.apache.wicket.MarkupContainer;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.border.Border;

public abstract class CommonPage extends WebPage {
private Border border;

public MarkupContainer add(final Component child) {
// Add children of the page to the page's border component
if (border == null) {
// Create border and add it to the page
border = new PageBorder(border);
super.add(border);
}
border.add(child);
return this;
}

}

test page:

java:

package cz.legend.mvcr.kup.lims.application;

import org.apache.wicket.markup.html.basic.Label;

public class Page1 extends CommonPage {

/**
 * Constructor
 */
/*
 * public Page1() { add(new Menu(navomaticBorder));
 * 
 * }
 */
public Page1() {
add(new Label(test, This is a Test));
}

}


html:

html xmlns:wicket=http://wicket.apache.org/;
head
titleWicket Examples - navomatic/title
link rel=stylesheet type=text/css href=style.css/
/head
body

div style = width:250px
TEST LABEL
Welcome to Page 1 of Navomatic.  Notice that the Page1 link is now
clickable
(so that you can return to Page1 if you want to) and the Page2 link
is
italicized text.  Go ahead and click the Page3 link.
/div

/body
/html


If i use label instead of menu (for test) everything is ok then I thinkn
problem is in Yui menu. Any ideas about that?

Thanx for your help (and sorry for my english :blush:)
Regards Michal Hybler
-- 
View this message in context: 
http://www.nabble.com/YUI-menu-and-wicker-border-problem-tp21683436p21683436.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: London Wicket Event - 4th February @ Google

2009-01-27 Thread jWeekend

Francisco,

Thanks, I hope you can find a good excuse to come and participate in one of
our events in the future, I'm sure you'd enjoy the experience. We have had
people come over, sometimes just for the evening, from several countries.

We are often able to publish slides on one or more of the 
http://www.jweekend.com/dev/ArticlesPage/ jWeekend Resources page , on our
London Wicket  http://code.google.com/p/londonwicket/ Google code project 
and/or  http://londonwicket.org/ here .

We have also started experimenting with making video recordings but our
efforts to date have not done justice to our speakers. We may try again this
time (that reminds me Marius ... ?!).

I will be going over the presentation material with Dean, Daan and Jan in
the next few days and should be able to confirm the above on this list then
or as soon we have uploaded the material.

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 

 

francisco treacy-2 wrote:
 
 hi cemal,
 
 i am actually very interested in wicket and scala real world apps.
 unfortunately i can't make it to london, but i would like to ask you
 if the presentation slides will be available for download after the
 event.
 or should i ask daan, jan, al, ... ?
 
 thanks
 
 francisco
 
 
 
 On Mon, Jan 26, 2009 at 11:40 AM, jWeekend jweekend_for...@cabouge.com
 wrote:

 We already have some 35 registered guests (29 confirmed) for our next
 London
 Wicket Event on the evening of February 4th, at Google (close to Victoria
 station). We have space for 15 more so if you are interested in coming
 http://jweekend.com/dev/LWUGReg/ register  soon and remember to confirm
 your
 place.

 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend


 jWeekend wrote:

 Our next London Wicket Event will be on the evening of Wednesday,
 February
 4th, at Google.
 This time we have presentations lined-up from three experienced
 Java/Wicket developers who have been experimenting with Scala and
 Wicket,
 just for fun, and, in some cases, on commercial development projects
 (yes,
 there are already Wicket applications built using Scala out there).
 Al's presentation is called Abstraction - you know what to expect!
 Al and I will also run a more concrete, general Wicket QA to wrap
 things
 up as usual.

 We'll be getting in some hot Pizza for around 18:15 and then:
 *  http://www.jWeekend.com Cemal Bayramoglu :  Welcome/Introduction
 *  http://www.stuq.nl Daan van Etten : Basic Introduction to Scala
 With Wicket
 * Dean Phersson-Chapman: Experiences Converting an Existing Wicket
 Application To Scala
 *  http://www.footprint.de Jan Kriesten : Real World Scala and
 Wicket
 *  http://herebebeasties.com/ Al Maw : ABSTRACTION!
 * Al Maw  Cemal Bayramoglu: General Wicket QA
 If you're not in a rush to get away join us for the customary visit to a
 local pub straight after the QA.

 We're lucky to attract a very good crowd and they say really nice things
 about our events, so if you've never been, you'd most likely enjoy the
 experience.

 Full details and registration are at
 http://www.jweekend.co.uk/dev/LWUGReg/ at the usual place . Register
 early
 and don't forget to confirm (or cancel) your registration using the link
 in the automated email.

 We'd like to thank Google for generously continuing to host our events.

 Regards - Cemal
  http://www.jWeekend.co.uk jWeekend


 --
 View this message in context:
 http://www.nabble.com/London-Wicket-Event---4th-February-%40-Google-tp21428590p21663404.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/London-Wicket-Event---4th-February-%40-Google-tp21428590p21683444.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Render other components

2009-01-27 Thread jWeekend

Philipp,

I'm not sure I have fully understood what you are after but it may be that
something as straight forward as making the component to be added (ADDT)
invisible - setVisible(false) - when first added to its parent (eg the page)
and making it visible in your AjaxLink (AL) onClick implementation.

Don't forget to setOutputMarkupPlaceholderTag(true) as well as
setOutputMarkupId(true) on your ADDT and to add the ADDT to the
AjaxRequestTarget - target.addComponent(myADDT) - in that onClick method.

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 


Philipp Daumke-2 wrote:
 
 Dear all,
 
 I look for an example how to render Wicket-Components (in my case an 
 AjaxDefaultDataTable) triggered by other Components (in my case 
 AjaxLink). In my case the two components are defined in different 
 Java-Classes. I looked for a while in the examples and in the wiki, but 
 coudln't find anything.
 
 I appreciate your help or just a few links to some examples!
 All the best
 Philipp
 
 To make a silly example, I look for something like:
 
 class1
 
 AjaxLink link = new AjaxLink(link, new PropertyModel(obj, id))
 {
 public void onClick(AjaxRequestTarget target)
 {
 getComponent(myAjaxDefaultDataTable).render();
 }
 };
 ...
 
 class2
 ...
 add(new 
 AjaxFallbackDefaultDataTable(myAjaxDefaultDataTable, columns, 
 relationProvider, 20)
 {
 {
 setOutputMarkupId(true);
 }
 });
 -- 
 
 Averbis GmbH
 c/o Klinikum der Albert-Ludwigs-Universität
 Stefan-Meier-Strasse 26
 D-79104 Freiburg
 
 Fon: +49 (0) 761 - 203 6707
 Fax: +49 (0) 761 - 203 6800
 E-Mail: dau...@averbis.de
 
 Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
 Sitz der Gesellschaft: Freiburg i. Br.
 AG Freiburg i. Br., HRB 701080
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Render-other-components-tp21683298p21683659.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Render other components

2009-01-27 Thread Philipp Daumke

Dear Cemal,

thanks for your fast help. You understood what I meant but I still have 
the problem, that I don't know how to get the instance myADDT. I tried

Page page = target.getPage();
AjaxFallbackDefaultDataTable myADDT= (AjaxFallbackDefaultDataTable) 
page.get(relTable);


but get myADDT=null. Probably because relTable is something like the 
2nd or 3rd ancestor on that page (see below)?


Thanks for your help again
Philipp

My Main HTML-Page Index.html:
...
span wicket:id=tabs class=tabpanel/span
...

Includes this subpage Index$TabPanel1.html
wicket:panel
table class=relTable cellspacing=0 wicket:id=relTable[table]/table
(wicket:panel



Philipp,

I'm not sure I have fully understood what you are after but it may be that
something as straight forward as making the component to be added (ADDT)
invisible - setVisible(false) - when first added to its parent (eg the page)
and making it visible in your AjaxLink (AL) onClick implementation.

Don't forget to setOutputMarkupPlaceholderTag(true) as well as
setOutputMarkupId(true) on your ADDT and to add the ADDT to the
AjaxRequestTarget - target.addComponent(myADDT) - in that onClick method.

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 



Philipp Daumke-2 wrote:
  

Dear all,

I look for an example how to render Wicket-Components (in my case an 
AjaxDefaultDataTable) triggered by other Components (in my case 
AjaxLink). In my case the two components are defined in different 
Java-Classes. I looked for a while in the examples and in the wiki, but 
coudln't find anything.


I appreciate your help or just a few links to some examples!
All the best
Philipp

To make a silly example, I look for something like:

class1

AjaxLink link = new AjaxLink(link, new PropertyModel(obj, id))
{
public void onClick(AjaxRequestTarget target)
{
getComponent(myAjaxDefaultDataTable).render();
}
};
...

class2
...
add(new 
AjaxFallbackDefaultDataTable(myAjaxDefaultDataTable, columns, 
relationProvider, 20)

{
{
setOutputMarkupId(true);
}
});
--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: dau...@averbis.de

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


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






  



--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: dau...@averbis.de

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


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



Unexpected RuntimeException: RestartResponseException in onBeforeRender of cached page

2009-01-27 Thread ckuehne

I have the following use case:
 
I go from Page A to Page B passing an instance of A as return page to B. In
B I click a link which brings me back to the (cached(?)) instance of A. In
the onBeforeRender-method of a child component of A I want to redirect if
some condition is 

protected void onBeforeRender() {
if(condition){
throw new 
RestartResponseException(RedirectPage.class);
}
super.onBeforeRender();
}

This fails with the following: 

WicketMessage: Error attaching this container for rendering:
[MarkupContainer [Component id = tabs]]

Root cause:

org.apache.wicket.RestartResponseException

Complete stack:

org.apache.wicket.WicketRuntimeException: Error attaching this container for
rendering: [MarkupContainer [Component id = tabs]]
 at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1601)
 at org.apache.wicket.Component.onBeforeRender(Component.java:3682)
 at
org.apache.wicket.extensions.markup.html.tabs.TabbedPanel.onBeforeRender(TabbedPanel.java:205)
 at org.apache.wicket.Component.internalBeforeRender(Component.java:1002

I use wicket 1.3.5



-- 
View this message in context: 
http://www.nabble.com/Unexpected-RuntimeException%3A-RestartResponseException-in-onBeforeRender-of-cached-page-tp21683689p21683689.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Unexpected RuntimeException: RestartResponseException in onBeforeRender of cached page

2009-01-27 Thread Piller Sébastien

iirc, onBeforeRender must always call super.onBeforeRender.

so put super.onBeforeRender on the first line

ckuehne a écrit :

I have the following use case:
 
I go from Page A to Page B passing an instance of A as return page to B. In

B I click a link which brings me back to the (cached(?)) instance of A. In
the onBeforeRender-method of a child component of A I want to redirect if
some condition is 


protected void onBeforeRender() {
if(condition){
throw new 
RestartResponseException(RedirectPage.class);
}
super.onBeforeRender();
}

This fails with the following: 


WicketMessage: Error attaching this container for rendering:
[MarkupContainer [Component id = tabs]]

Root cause:

org.apache.wicket.RestartResponseException

Complete stack:

org.apache.wicket.WicketRuntimeException: Error attaching this container for
rendering: [MarkupContainer [Component id = tabs]]
 at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1601)
 at org.apache.wicket.Component.onBeforeRender(Component.java:3682)
 at
org.apache.wicket.extensions.markup.html.tabs.TabbedPanel.onBeforeRender(TabbedPanel.java:205)
 at org.apache.wicket.Component.internalBeforeRender(Component.java:1002

I use wicket 1.3.5



  



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



Re: Render other components

2009-01-27 Thread Philipp Daumke

Hi all,

I finally my error and post the working solution. I need to use a colon 
: to find children.


AjaxLink link = new AjaxLink(link, new PropertyModel(obj, id))
{
public void onClick(AjaxRequestTarget target)
{
   Page page = target.getPage();
   AjaxFallbackDefaultDataTable myADDT= 
(AjaxFallbackDefaultDataTable) page.get(tabs:panel:relTable);

   target.addComponent(myADDT);
   }
}

For tabs, panel and relTable I put setOutputMarkupId(true);  
(don't know whether this was necessary).


Philipp

Dear Cemal,

thanks for your fast help. You understood what I meant but I still 
have the problem, that I don't know how to get the instance myADDT. I 
tried

Page page = target.getPage();
AjaxFallbackDefaultDataTable myADDT= (AjaxFallbackDefaultDataTable) 
page.get(relTable);


but get myADDT=null. Probably because relTable is something like 
the 2nd or 3rd ancestor on that page (see below)?


Thanks for your help again
Philipp

My Main HTML-Page Index.html:
...
span wicket:id=tabs class=tabpanel/span
...

Includes this subpage Index$TabPanel1.html
wicket:panel
table class=relTable cellspacing=0 
wicket:id=relTable[table]/table

(wicket:panel



Philipp,

I'm not sure I have fully understood what you are after but it may be 
that

something as straight forward as making the component to be added (ADDT)
invisible - setVisible(false) - when first added to its parent (eg 
the page)

and making it visible in your AjaxLink (AL) onClick implementation.

Don't forget to setOutputMarkupPlaceholderTag(true) as well as
setOutputMarkupId(true) on your ADDT and to add the ADDT to the
AjaxRequestTarget - target.addComponent(myADDT) - in that onClick 
method.


Regards - Cemal
http://www.jWeekend.co.uk jWeekend

Philipp Daumke-2 wrote:
 

Dear all,

I look for an example how to render Wicket-Components (in my case an 
AjaxDefaultDataTable) triggered by other Components (in my case 
AjaxLink). In my case the two components are defined in different 
Java-Classes. I looked for a while in the examples and in the wiki, 
but coudln't find anything.


I appreciate your help or just a few links to some examples!
All the best
Philipp

To make a silly example, I look for something like:

class1

AjaxLink link = new AjaxLink(link, new PropertyModel(obj, id))
{
public void onClick(AjaxRequestTarget target)
{
getComponent(myAjaxDefaultDataTable).render();
}
};
...

class2
...
add(new 
AjaxFallbackDefaultDataTable(myAjaxDefaultDataTable, columns, 
relationProvider, 20)

{
{
setOutputMarkupId(true);
}
});
--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: dau...@averbis.de

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


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






  






--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: dau...@averbis.de

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


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



Re: Unexpected RuntimeException: RestartResponseException in onBeforeRender of cached page

2009-01-27 Thread ckuehne



Pills wrote:
 
 iirc, onBeforeRender must always call super.onBeforeRender.
 
 so put super.onBeforeRender on the first line.
 
 

Thanks for the quick reply. Unfortunately the super.onBeforeRender call does
not solve the issue. 


-- 
View this message in context: 
http://www.nabble.com/Unexpected-RuntimeException%3A-RestartResponseException-in-onBeforeRender-of-cached-page-tp21683689p21685209.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Render other components

2009-01-27 Thread jWeekend

Philipp,

I expect your page's constructor creates and adds your custom panel. So,
either make the whole panel invisible, or, if the panel hosts other widgets
that need to be shown before your AjaxLink is clicked, you can provide an
API on your panel to make the ADDT invisble/visible. This would be better
than accessing the ADDT directly (encapsulation).

Is that what you meant? If not, create the simplest possible 
http://wicket.apache.org/quickstart.html QuickStart  (remember to delete the
target folder), zip it up and attach the zip file to your post so we can
take a look. 

Regards- Cemal
http://www.jWeekend.co.uk jWeekend 


Philipp Daumke-2 wrote:
 
 Dear Cemal,
 
 thanks for your fast help. You understood what I meant but I still have 
 the problem, that I don't know how to get the instance myADDT. I tried
 Page page = target.getPage();
 AjaxFallbackDefaultDataTable myADDT= (AjaxFallbackDefaultDataTable) 
 page.get(relTable);
 
 but get myADDT=null. Probably because relTable is something like the 
 2nd or 3rd ancestor on that page (see below)?
 
 Thanks for your help again
 Philipp
 
 My Main HTML-Page Index.html:
 ...
 
 ...
 
 Includes this subpage Index$TabPanel1.html
 wicket:panel
 table class=relTable cellspacing=0
 wicket:id=relTable[table]/table
 (wicket:panel
 
 
 Philipp,

 I'm not sure I have fully understood what you are after but it may be
 that
 something as straight forward as making the component to be added (ADDT)
 invisible - setVisible(false) - when first added to its parent (eg the
 page)
 and making it visible in your AjaxLink (AL) onClick implementation.

 Don't forget to setOutputMarkupPlaceholderTag(true) as well as
 setOutputMarkupId(true) on your ADDT and to add the ADDT to the
 AjaxRequestTarget - target.addComponent(myADDT) - in that onClick method.

 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend 


 Philipp Daumke-2 wrote:
   
 Dear all,

 I look for an example how to render Wicket-Components (in my case an 
 AjaxDefaultDataTable) triggered by other Components (in my case 
 AjaxLink). In my case the two components are defined in different 
 Java-Classes. I looked for a while in the examples and in the wiki, but 
 coudln't find anything.

 I appreciate your help or just a few links to some examples!
 All the best
 Philipp

 To make a silly example, I look for something like:

 class1
 
 AjaxLink link = new AjaxLink(link, new PropertyModel(obj, id))
 {
 public void onClick(AjaxRequestTarget target)
 {
 getComponent(myAjaxDefaultDataTable).render();
 }
 };
 ...

 class2
 ...
 add(new 
 AjaxFallbackDefaultDataTable(myAjaxDefaultDataTable, columns, 
 relationProvider, 20)
 {
 {
 setOutputMarkupId(true);
 }
 });
 -- 

 Averbis GmbH
 c/o Klinikum der Albert-Ludwigs-Universität
 Stefan-Meier-Strasse 26
 D-79104 Freiburg

 Fon: +49 (0) 761 - 203 6707
 Fax: +49 (0) 761 - 203 6800
 E-Mail: dau...@averbis.de

 Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
 Sitz der Gesellschaft: Freiburg i. Br.
 AG Freiburg i. Br., HRB 701080


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



 

   
 
 
 -- 
 
 Averbis GmbH
 c/o Klinikum der Albert-Ludwigs-Universität
 Stefan-Meier-Strasse 26
 D-79104 Freiburg
 
 Fon: +49 (0) 761 - 203 6707
 Fax: +49 (0) 761 - 203 6800
 E-Mail: dau...@averbis.de
 
 Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
 Sitz der Gesellschaft: Freiburg i. Br.
 AG Freiburg i. Br., HRB 701080
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Render-other-components-tp21683298p21685308.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: London Wicket Event - 4th February @ Google

2009-01-27 Thread francisco treacy
thank you for the links, cemal.  i'll definitely try to come next time
if i'm not too far away from london!

daan

 Not only real world apps, but also hello world apps...

sure, all is good. (i actually don't know why i put real world --
and with quotes... i guess we should include this one in
http://www.unnecessaryquotes.com/ =)

regards,

francisco


On Tue, Jan 27, 2009 at 12:09 PM, jWeekend jweekend_for...@cabouge.com wrote:

 Francisco,

 Thanks, I hope you can find a good excuse to come and participate in one of
 our events in the future, I'm sure you'd enjoy the experience. We have had
 people come over, sometimes just for the evening, from several countries.

 We are often able to publish slides on one or more of the
 http://www.jweekend.com/dev/ArticlesPage/ jWeekend Resources page , on our
 London Wicket  http://code.google.com/p/londonwicket/ Google code project
 and/or  http://londonwicket.org/ here .

 We have also started experimenting with making video recordings but our
 efforts to date have not done justice to our speakers. We may try again this
 time (that reminds me Marius ... ?!).

 I will be going over the presentation material with Dean, Daan and Jan in
 the next few days and should be able to confirm the above on this list then
 or as soon we have uploaded the material.

 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend



 francisco treacy-2 wrote:

 hi cemal,

 i am actually very interested in wicket and scala real world apps.
 unfortunately i can't make it to london, but i would like to ask you
 if the presentation slides will be available for download after the
 event.
 or should i ask daan, jan, al, ... ?

 thanks

 francisco



 On Mon, Jan 26, 2009 at 11:40 AM, jWeekend jweekend_for...@cabouge.com
 wrote:

 We already have some 35 registered guests (29 confirmed) for our next
 London
 Wicket Event on the evening of February 4th, at Google (close to Victoria
 station). We have space for 15 more so if you are interested in coming
 http://jweekend.com/dev/LWUGReg/ register  soon and remember to confirm
 your
 place.

 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend


 jWeekend wrote:

 Our next London Wicket Event will be on the evening of Wednesday,
 February
 4th, at Google.
 This time we have presentations lined-up from three experienced
 Java/Wicket developers who have been experimenting with Scala and
 Wicket,
 just for fun, and, in some cases, on commercial development projects
 (yes,
 there are already Wicket applications built using Scala out there).
 Al's presentation is called Abstraction - you know what to expect!
 Al and I will also run a more concrete, general Wicket QA to wrap
 things
 up as usual.

 We'll be getting in some hot Pizza for around 18:15 and then:
 *  http://www.jWeekend.com Cemal Bayramoglu :  Welcome/Introduction
 *  http://www.stuq.nl Daan van Etten : Basic Introduction to Scala
 With Wicket
 * Dean Phersson-Chapman: Experiences Converting an Existing Wicket
 Application To Scala
 *  http://www.footprint.de Jan Kriesten : Real World Scala and
 Wicket
 *  http://herebebeasties.com/ Al Maw : ABSTRACTION!
 * Al Maw  Cemal Bayramoglu: General Wicket QA
 If you're not in a rush to get away join us for the customary visit to a
 local pub straight after the QA.

 We're lucky to attract a very good crowd and they say really nice things
 about our events, so if you've never been, you'd most likely enjoy the
 experience.

 Full details and registration are at
 http://www.jweekend.co.uk/dev/LWUGReg/ at the usual place . Register
 early
 and don't forget to confirm (or cancel) your registration using the link
 in the automated email.

 We'd like to thank Google for generously continuing to host our events.

 Regards - Cemal
  http://www.jWeekend.co.uk jWeekend


 --
 View this message in context:
 http://www.nabble.com/London-Wicket-Event---4th-February-%40-Google-tp21428590p21663404.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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





 --
 View this message in context: 
 http://www.nabble.com/London-Wicket-Event---4th-February-%40-Google-tp21428590p21683444.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Render other components

2009-01-27 Thread Jonas
Hi,

I somehow doubt this is considered good practice to let one component
know where in the component tree another component is situated.
The code you propose breaks very easily e.g. if you introduce another
container around the ADDT. Why don't you just pass the ADDT instance into
the AjaxLink?

something like:

final AjaxFallbackDefaultDataTable myADDT = ...

AjaxLink link = new AjaxLink(link, new PropertyModel(obj, id))
{
   public void onClick(AjaxRequestTarget target)
   {
  target.addComponent(myADDT);
  }
}


...but I'm not sure if that's a better practice. At least this doesn't
break as easily if you change the position of the ADDT in the component
tree.
Maybe a core-dev could shed some light on this issue?

cheers,
Jonas


On Tue, Jan 27, 2009 at 2:21 PM, Philipp Daumke dau...@averbis.de wrote:
 Hi all,

 I finally my error and post the working solution. I need to use a colon :
 to find children.

 AjaxLink link = new AjaxLink(link, new PropertyModel(obj, id))
 {
public void onClick(AjaxRequestTarget target)
{
   Page page = target.getPage();
   AjaxFallbackDefaultDataTable myADDT=
 (AjaxFallbackDefaultDataTable) page.get(tabs:panel:relTable);
   target.addComponent(myADDT);
   }
 }

 For tabs, panel and relTable I put setOutputMarkupId(true);  (don't
 know whether this was necessary).

 Philipp

 Dear Cemal,

 thanks for your fast help. You understood what I meant but I still have
 the problem, that I don't know how to get the instance myADDT. I tried
 Page page = target.getPage();
 AjaxFallbackDefaultDataTable myADDT= (AjaxFallbackDefaultDataTable)
 page.get(relTable);

 but get myADDT=null. Probably because relTable is something like the
 2nd or 3rd ancestor on that page (see below)?

 Thanks for your help again
 Philipp

 My Main HTML-Page Index.html:
 ...
 span wicket:id=tabs class=tabpanel/span
 ...

 Includes this subpage Index$TabPanel1.html
 wicket:panel
 table class=relTable cellspacing=0
 wicket:id=relTable[table]/table
 (wicket:panel


 Philipp,

 I'm not sure I have fully understood what you are after but it may be
 that
 something as straight forward as making the component to be added (ADDT)
 invisible - setVisible(false) - when first added to its parent (eg the
 page)
 and making it visible in your AjaxLink (AL) onClick implementation.

 Don't forget to setOutputMarkupPlaceholderTag(true) as well as
 setOutputMarkupId(true) on your ADDT and to add the ADDT to the
 AjaxRequestTarget - target.addComponent(myADDT) - in that onClick method.

 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend

 Philipp Daumke-2 wrote:


 Dear all,

 I look for an example how to render Wicket-Components (in my case an
 AjaxDefaultDataTable) triggered by other Components (in my case AjaxLink).
 In my case the two components are defined in different Java-Classes. I
 looked for a while in the examples and in the wiki, but coudln't find
 anything.

 I appreciate your help or just a few links to some examples!
 All the best
 Philipp

 To make a silly example, I look for something like:

 class1
 
 AjaxLink link = new AjaxLink(link, new PropertyModel(obj, id))
{
public void onClick(AjaxRequestTarget target)
{
getComponent(myAjaxDefaultDataTable).render();
}
};
 ...

 class2
 ...
add(new
 AjaxFallbackDefaultDataTable(myAjaxDefaultDataTable, columns,
 relationProvider, 20)
{
{
setOutputMarkupId(true);
}
});
 --

 Averbis GmbH
 c/o Klinikum der Albert-Ludwigs-Universität
 Stefan-Meier-Strasse 26
 D-79104 Freiburg

 Fon: +49 (0) 761 - 203 6707
 Fax: +49 (0) 761 - 203 6800
 E-Mail: dau...@averbis.de

 Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
 Sitz der Gesellschaft: Freiburg i. Br.
 AG Freiburg i. Br., HRB 701080


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










 --

 Averbis GmbH
 c/o Klinikum der Albert-Ludwigs-Universität
 Stefan-Meier-Strasse 26
 D-79104 Freiburg

 Fon: +49 (0) 761 - 203 6707
 Fax: +49 (0) 761 - 203 6800
 E-Mail: dau...@averbis.de

 Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
 Sitz der Gesellschaft: Freiburg i. Br.
 AG Freiburg i. Br., HRB 701080


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



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



Getting data from applet

2009-01-27 Thread rmattler

I'm using an applet (http://www.jumploader.com) to upload files.  Normally I
would use a servlet to parse the data with apache commons fileupload.  With
Wicket I trying to parse the data in the onSubmit method of the Form with no
luck.

HttpServletRequest request = ((ServletWebRequest)
getRequest()).getHttpServletRequest();
boolean isMultipart = ServletFileUpload.isMultipartContent(request);

if (isMultipart) {

FileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);
List items = upload.parseRequest(request); 

Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();

if (item.isFormField()) {
System.out.println(item.getFieldName() +   + 
item.getString());

} else { // process a file
String fileName = item.getName();
}


List items = upload.parseRequest(request);  returns an empty list.


Am I doing something wrong in my code?  Is this the correct approach?  I
also saw the example of how to make a Wicket session available to a
non-wicket servlet.

http://wicket.sourceforge.net/apidocs/wicket/protocol/http/servlet/WicketSessionFilter.html

Is that the way to do it?  I'm using 1.3.5.

Thanks in advance.


-- 
View this message in context: 
http://www.nabble.com/Getting-data-from-applet-tp21686123p21686123.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Render other components

2009-01-27 Thread Philipp Daumke

Hi Jonas, hi Cemal,

I think both of you mean similar things. So I need to attributes in my 
custom panel, one for the referring instance (in my case an instance of 
Class Index) and one for the component that I want to render (in my case 
AjaxFallbackDefaultDataTable). So my new custom panel looks like the one 
below. Agree?


Thank you for your help
Philipp

public class TermIDLinkPanel extends Panel
{
   Index indexInstance;
   Component componentInstance;
  
   public TermIDLinkPanel(Index indexInstance, Component component, 
String id, final IModel model, final Item item)

   {
   super(id, model);
   this.indexInstance = indexInstance;
   this.componentInstance = component;
...
   AjaxLink link = new AjaxLink(link_termID, new 
PropertyModel(obj, id))

   {
   public void onClick(AjaxRequestTarget target)
   {
   target.addComponent(componentInstance);
   Page page = target.getPage();
   //API to change the result list that shall be newly rendered
   
TermIDLinkPanel.this.indexInstance.updateRelationResultList();

   target.addComponent(componentInstance);
   }
   };
   add(link);
   }
}

Philipp,

I expect your page's constructor creates and adds your custom panel. So,
either make the whole panel invisible, or, if the panel hosts other widgets
that need to be shown before your AjaxLink is clicked, you can provide an
API on your panel to make the ADDT invisble/visible. This would be better
than accessing the ADDT directly (encapsulation).

Is that what you meant? If not, create the simplest possible 
http://wicket.apache.org/quickstart.html QuickStart  (remember to delete the

target folder), zip it up and attach the zip file to your post so we can
take a look. 


Regards- Cemal
http://www.jWeekend.co.uk jWeekend 




Hi,

I somehow doubt this is considered good practice to let one component
know where in the component tree another component is situated.
The code you propose breaks very easily e.g. if you introduce another
container around the ADDT. Why don't you just pass the ADDT instance into
the AjaxLink?

something like:

final AjaxFallbackDefaultDataTable myADDT = ...

AjaxLink link = new AjaxLink(link, new PropertyModel(obj, id))
{
   public void onClick(AjaxRequestTarget target)
   {
  target.addComponent(myADDT);
  }
}


...but I'm not sure if that's a better practice. At least this doesn't
break as easily if you change the position of the ADDT in the component
tree.
Maybe a core-dev could shed some light on this issue?

cheers,
Jonas


On Tue, Jan 27, 2009 at 2:21 PM, Philipp Daumke dau...@averbis.de wrote:
  

Hi all,

I finally my error and post the working solution. I need to use a colon :
to find children.

AjaxLink link = new AjaxLink(link, new PropertyModel(obj, id))
{
   public void onClick(AjaxRequestTarget target)
   {
  Page page = target.getPage();
  AjaxFallbackDefaultDataTable myADDT=
(AjaxFallbackDefaultDataTable) page.get(tabs:panel:relTable);
  target.addComponent(myADDT);
  }
}

For tabs, panel and relTable I put setOutputMarkupId(true);  (don't
know whether this was necessary).

Philipp


Dear Cemal,

thanks for your fast help. You understood what I meant but I still have
the problem, that I don't know how to get the instance myADDT. I tried
Page page = target.getPage();
AjaxFallbackDefaultDataTable myADDT= (AjaxFallbackDefaultDataTable)
page.get(relTable);

but get myADDT=null. Probably because relTable is something like the
2nd or 3rd ancestor on that page (see below)?

Thanks for your help again
Philipp

My Main HTML-Page Index.html:
...
span wicket:id=tabs class=tabpanel/span
...

Includes this subpage Index$TabPanel1.html
wicket:panel
table class=relTable cellspacing=0
wicket:id=relTable[table]/table
(wicket:panel


  

Philipp,

I'm not sure I have fully understood what you are after but it may be
that
something as straight forward as making the component to be added (ADDT)
invisible - setVisible(false) - when first added to its parent (eg the
page)
and making it visible in your AjaxLink (AL) onClick implementation.

Don't forget to setOutputMarkupPlaceholderTag(true) as well as
setOutputMarkupId(true) on your ADDT and to add the ADDT to the
AjaxRequestTarget - target.addComponent(myADDT) - in that onClick method.

Regards - Cemal
http://www.jWeekend.co.uk jWeekend

Philipp Daumke-2 wrote:



Dear all,

I look for an example how to render Wicket-Components (in my case an
AjaxDefaultDataTable) triggered by other Components (in my case AjaxLink).
In my case the two components are defined in different Java-Classes. I
looked for a while in the examples and in the wiki, but coudln't find
anything.

I appreciate your help or just a few links to some examples!
All the best
Philipp

To make a silly example, I look for something like:

class1

AjaxLink link = new AjaxLink(link, new PropertyModel(obj, id))
   {

RE: Observation and page (map) eviction

2009-01-27 Thread Frank van Lankvelt
After working things through once more, I opted for a simple model where
I maintain a global registry of (jcr) event listeners using weak
references.  Events are queued to be processed later during a request
cycle.  So, in fact I managed to evade the page eviction problem; at the
cost of additional cpu time (pages that have been discarded by the
session store will still receive events, even though those will never be
processed).

The snags of (de)serialization are handled automatically if listeners
are re-registered when the object under observation is deserialized.
(i.e. implementing readObject())  This should work independent of
session store; any kind of caching scheme is supported this way.  It
should also work with replication.

I'm not sure if this is the solution that Igor suggested, but it sure
makes sense to me.

Thanks for the help!

Cheers, Frank


 -Original Message-
 From: Johan Compagner [mailto:jcompag...@gmail.com] 
 Sent: 25 January 2009 21:55
 To: users@wicket.apache.org
 Subject: Re: Observation and page (map) eviction
 
 Maybe if you want listeners then only the session listen to 
 those? And pages/components when they render pull the changes 
 out of the session?
 
 On 25/01/2009, Frank van Lankvelt f.vanlankv...@onehippo.com wrote:
  But how is a view to know if its model (object) has changed in the 
  pull model?  One way that I see this working is if views 
 extract all 
  state that they need to do the rendering into a separate 
 object.  This 
  object is then recalculated from the model that is used by 
 the view on 
  each request.  Is this what you're suggesting?
 
  Of course one should not go about (de)serializing listeners 
 carelessly.
  I was a bit simplistic in describing what I want there, sorry 'bout 
  that.  What I'm doing at the moment (with the listener 
 leak) is that 
  the listeners that actually get registered with the object 
 are stored 
  in the session.  When they're called (asynchronously), they store 
  events in a queue.  Then, when a request comes in, this queue is 
  emptied by the page that is being rendered; the events are 
 processed 
  by the in-page listeners.  This mechanism does depend on the use of 
  sticky sessions, as it has to be possible for an external 
 service to 
  invoke the (session) listeners.
 
  The problem is now how to manage the listeners in the 
 session.  They 
  only need to be present for the current pages in pagemaps, i.e. 
  those pages that are shown and that will generate a request 
 every now 
  and then using an ajax-timer.  Other pages in the pagemap will be 
  redrawn completely when they need to respond to a request, 
 so there is 
  no need for observation for them.
 
  Just realised that I can detect pagemap eviction by simply 
 enumerating 
  the pagemaps when the session is detached.
 
  It seems to me that for wicket to support comet/bayeux, there will 
  have to be a solution for the kind of problems I'm running 
 into here.  
  I don't think pushing the problem to the application 
 developer (as I 
  think you are suggesting) is acceptable in the long run.
 
  Cheers, Frank
 
 
  From: Johan Compagner [mailto:jcompag...@gmail.com]
  Sent: 24 January 2009 19:58
 
  I think having references to or from pages is a bad idea 
 in wicket. 
  We serialize pages so if pages would have listeners then 
 the are also 
  serialized. If others reference pages then after 
  serialization/deserialization they point to the wrong instance.
 
  Way better is pure pull support. Components know where 
 thet get its 
  data from and they pull it on render and/or on a visitor 
 that checks 
  all components if they are changed. (and if changes add 
 them to ajax 
  request target)
 
  On 24/01/2009, igor.vaynb...@gmail.com igor.vaynb...@gmail.com 
  wrote:
   Use weakreferences to hold onto pages instead.
  
   -igor
  
   On 1/24/09, Frank van Lankvelt 
 f.vanlankv...@onehippo.com wrote:
   I'm trying to get a page to observe a business object that
  can send
   events.  The changes don't warrant a full page refresh, so
  I want to
   update only those parts of the page that have changed as a
  result of
   the events.
  
   I've seen wicketstuff-push, where a similar kind of 
 observation is 
   present in the Application. From what I could see, the
  chat example
   has the drawback that there is no *unregistering* of
  listeners when
   pages are disposed of, so there is a memory leak.  (all
  pages will be
   kept in memory, being referenced directly by the service in the
   application)
  
   There doesn't seem to be any support for cleaning up
  pages, e.g. in
   the form of listeners that an application could 
 register with the 
   session store.  An alternative seems to be to implement my own 
   PageMap, but I'm reluctant to do that as there will be a lot of 
   copy/paste involved and the existing PageMap
  implementations rely on
   the fact that they're in the same package as Session.  
 A different 
   

Re: Redirect to a new window

2009-01-27 Thread Martin Makundi
You can use a href=# target=_blankxx or WIcket's popupsettings,
if you want it to be a real separate window.

Example of setPopupSettings:
http://www.wicket-library.com/wicket-examples/linkomatic/;jsessionid=F3CEC57A34EE838B0FC348E2AC909C5A?wicket:bookmarkablePage=sources:org.apache.wicket.examples.source.SourcesPageSourcesPage_class=org.apache.wicket.examples.linkomatic.Homesource=Home.java

**
Martin

2009/1/27 nitinkc nitin_chan...@yahoo.com:

 I have a requirement to redirect to a new window. Basically, I have a link in
 a column of a datagrid and I am redirecting to the URL using
 RedirectRequestTarget as follows:

 @Override
 protected void onClick(Object param) {
getRequestCycle()
.setRequestTarget(
new RedirectRequestTarget(
** dynamically created url using 
 param**));
}

 I would like to open this url in a new window. Since this is a datagrid and
 the request is intercepted and redirected to the dynamically created url, I
 am not sure if/how any JavaScript can be added. Any suggestions?
 --
 View this message in context: 
 http://www.nabble.com/Redirect-to-a-new-window-tp21687205p21687205.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



AjaxFallbackDefaultDataTable and AjaxLink

2009-01-27 Thread Mathias P.W Nilsson

Hi,

I have override the newRowItem for the AjaxFallbackDefaultDataTable to make
the entire row clickable. ( return new ClickableItem ). Can anyone help me
with some pointers in how to make the row open a model window for editing. 

// Mathias
-- 
View this message in context: 
http://www.nabble.com/AjaxFallbackDefaultDataTable-and-AjaxLink-tp21687636p21687636.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Getting data from applet

2009-01-27 Thread Igor Vaynberg
try form.setmultipart(true)

-igor

On Tue, Jan 27, 2009 at 6:15 AM, rmattler robertmatt...@gmail.com wrote:

 I'm using an applet (http://www.jumploader.com) to upload files.  Normally I
 would use a servlet to parse the data with apache commons fileupload.  With
 Wicket I trying to parse the data in the onSubmit method of the Form with no
 luck.

 HttpServletRequest request = ((ServletWebRequest)
 getRequest()).getHttpServletRequest();
 boolean isMultipart = ServletFileUpload.isMultipartContent(request);

if (isMultipart) {

FileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);
List items = upload.parseRequest(request);

Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();

if (item.isFormField()) {
System.out.println(item.getFieldName() +   + 
 item.getString());

} else { // process a file
String fileName = item.getName();
}


 List items = upload.parseRequest(request);  returns an empty list.


 Am I doing something wrong in my code?  Is this the correct approach?  I
 also saw the example of how to make a Wicket session available to a
 non-wicket servlet.

 http://wicket.sourceforge.net/apidocs/wicket/protocol/http/servlet/WicketSessionFilter.html

 Is that the way to do it?  I'm using 1.3.5.

 Thanks in advance.


 --
 View this message in context: 
 http://www.nabble.com/Getting-data-from-applet-tp21686123p21686123.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Getting data from applet

2009-01-27 Thread rmattler

List items = upload.parseRequest(request); 

items is still empty




try form.setmultipart(true)

-igor


-- 
View this message in context: 
http://www.nabble.com/Getting-data-from-applet-tp21686123p21688568.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Getting data from applet

2009-01-27 Thread Igor Vaynberg
the question is: how does the uploader send the upload? does it send
the data as part of the form submit or in the background independently
of the form data? since it can do things like pause/resume i am going
to assume the latter which is why you are not seeing that data as part
of the form submit. you still need that other servlet to receive the
data. if my assumptions are incorrect feel free to create a quickstart
so that we may investigate further.

-igor

On Tue, Jan 27, 2009 at 8:17 AM, rmattler robertmatt...@gmail.com wrote:

 List items = upload.parseRequest(request);

 items is still empty




 try form.setmultipart(true)

 -igor


 --
 View this message in context: 
 http://www.nabble.com/Getting-data-from-applet-tp21686123p21688568.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Getting data from applet

2009-01-27 Thread Ryan Gravener
Here is how I accept files from my flex applications:
http://pastie.org/372242 java

http://pastie.org/372243 html


applet web.xml mapping

2009-01-27 Thread rmattler

Sorry my day to ask questions.:-D

If my WicketFilter is setup as:

filter-mapping
filter-nameWicketFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping

My Applet works fine.

applet name=jumpLoaderApplet
code=jmaster.jumploader.app.JumpLoaderApplet.class
archive=applet/jumploader_z.jar
width=600
height=400 
mayscript

/applet


If I change it to:

filter-mapping
filter-nameWicketFilter/filter-name
url-pattern/app/*/url-pattern
/filter-mapping

I can't seem to figure a way to access the applet.

archive=applet/jumploader_z.jar
archive=app/applet/jumploader_z.jar
archive=/app/applet/jumploader_z.jar

don't work.

If I leave the WicketFilter as url-pattern/*/url-pattern  then I can't
call my servlet because it  is mapped as:

servlet-mapping
servlet-nameUploadServlet/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping


I'm I accessing the applet incorrectly?

Thanks in advance.

-- 
View this message in context: 
http://www.nabble.com/applet-web.xml-mapping-tp21689586p21689586.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Unexpected RuntimeException: RestartResponseException in onBeforeRender of cached page

2009-01-27 Thread Michael Sparer

which version are you using? for me it sounds like this problem, see the
(solved) jira issue: https://issues.apache.org/jira/browse/WICKET-1478

but I'm sure you don't mean that behaviour as you certainly searched the
list and the jira before posting, am I right? ;-)

regards
Michael


ckuehne wrote:
 
 I have the following use case:
  
 I go from Page A to Page B passing an instance of A as return page to B.
 In B I click a link which brings me back to the (cached(?)) instance of A.
 In the onBeforeRender-method of a child component of A I want to redirect
 if some condition is 
 
   protected void onBeforeRender() {
   if(condition){
   throw new 
 RestartResponseException(RedirectPage.class);
   }
   super.onBeforeRender();
   }
 
 This fails with the following: 
 
 WicketMessage: Error attaching this container for rendering:
 [MarkupContainer [Component id = tabs]]
 
 Root cause:
 
 org.apache.wicket.RestartResponseException
 
 Complete stack:
 
 org.apache.wicket.WicketRuntimeException: Error attaching this container
 for rendering: [MarkupContainer [Component id = tabs]]
  at
 org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1601)
  at org.apache.wicket.Component.onBeforeRender(Component.java:3682)
  at
 org.apache.wicket.extensions.markup.html.tabs.TabbedPanel.onBeforeRender(TabbedPanel.java:205)
  at
 org.apache.wicket.Component.internalBeforeRender(Component.java:1002
 
 I use wicket 1.3.5
 
 
 
 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Unexpected-RuntimeException%3A-RestartResponseException-in-onBeforeRender-of-cached-page-tp21683689p21690192.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Unexpected RuntimeException: RestartResponseException in onBeforeRender of cached page

2009-01-27 Thread ckuehne

Yes, I found this issue https://issues.apache.org/jira/browse/WICKET-1478.
I'm using wicket 1.3.5 which is supposed to solve it. However, my issue
remains.


Michael Sparer wrote:
 
 which version are you using? for me it sounds like this problem, see the
 (solved) jira issue: https://issues.apache.org/jira/browse/WICKET-1478
 
 but I'm sure you don't mean that behaviour as you certainly searched the
 list and the jira before posting, am I right? ;-)
 
 regards
 Michael
 
 
 ckuehne wrote:
 
 I have the following use case:
  
 I go from Page A to Page B passing an instance of A as return page to B.
 In B I click a link which brings me back to the (cached(?)) instance of
 A. In the onBeforeRender-method of a child component of A I want to
 redirect if some condition is 
 
  protected void onBeforeRender() {
  if(condition){
  throw new 
 RestartResponseException(RedirectPage.class);
  }
  super.onBeforeRender();
  }
 
 This fails with the following: 
 
 WicketMessage: Error attaching this container for rendering:
 [MarkupContainer [Component id = tabs]]
 
 Root cause:
 
 org.apache.wicket.RestartResponseException
 
 Complete stack:
 
 org.apache.wicket.WicketRuntimeException: Error attaching this container
 for rendering: [MarkupContainer [Component id = tabs]]
  at
 org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1601)
  at org.apache.wicket.Component.onBeforeRender(Component.java:3682)
  at
 org.apache.wicket.extensions.markup.html.tabs.TabbedPanel.onBeforeRender(TabbedPanel.java:205)
  at
 org.apache.wicket.Component.internalBeforeRender(Component.java:1002
 
 I use wicket 1.3.5
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Unexpected-RuntimeException%3A-RestartResponseException-in-onBeforeRender-of-cached-page-tp21683689p21690259.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Convert a null Model to a custom string rather than

2009-01-27 Thread nate roe
I'm using Wicket v1.3.4.

I would like to create a kind of TextField that converts a null model value
to a custom string rather than an empty string.  Unfortunately, the
converter is not run when the model object is null, and it looks like
Component.getModelObjectAsString(...) is hard-coded to return  when the
model is null.

Is there some way I can overcome this without modifying the Wicket source?

Thanks,
Nate Roe


Re: Convert a null Model to a custom string rather than

2009-01-27 Thread Jeremy Thomerson
This has come up quite a bit here on the user list.

See the first example on this page:
http://www.jeremythomerson.com/blog/2008/11/06/wicket-the-power-of-nested-models/


-- 
Jeremy Thomerson
http://www.wickettraining.com

On Tue, Jan 27, 2009 at 1:38 PM, nate roe phl...@gmail.com wrote:

 I'm using Wicket v1.3.4.

 I would like to create a kind of TextField that converts a null model value
 to a custom string rather than an empty string.  Unfortunately, the
 converter is not run when the model object is null, and it looks like
 Component.getModelObjectAsString(...) is hard-coded to return  when the
 model is null.

 Is there some way I can overcome this without modifying the Wicket source?

 Thanks,
 Nate Roe



Re: Convert a null Model to a custom string rather than

2009-01-27 Thread nate roe
Excellent, thanks for writing that one up!

On Tue, Jan 27, 2009 at 11:41 AM, Jeremy Thomerson 
jer...@wickettraining.com wrote:

 This has come up quite a bit here on the user list.

 See the first example on this page:

 http://www.jeremythomerson.com/blog/2008/11/06/wicket-the-power-of-nested-models/


 --
 Jeremy Thomerson
 http://www.wickettraining.com

 On Tue, Jan 27, 2009 at 1:38 PM, nate roe phl...@gmail.com wrote:

  I'm using Wicket v1.3.4.
 
  I would like to create a kind of TextField that converts a null model
 value
  to a custom string rather than an empty string.  Unfortunately, the
  converter is not run when the model object is null, and it looks like
  Component.getModelObjectAsString(...) is hard-coded to return  when the
  model is null.
 
  Is there some way I can overcome this without modifying the Wicket
 source?
 
  Thanks,
  Nate Roe
 



Re: Convert a null Model to a custom string rather than

2009-01-27 Thread nate roe
Actually, I don't think that this will work for me.

The behavior that I want is to display a special string when the model is
null.  However, I still want the model to be null.

My custom converter converts a special keyword to a null model.  I want also
to convert a new model to a special keyword for display.

On Tue, Jan 27, 2009 at 11:46 AM, nate roe phl...@gmail.com wrote:

 Excellent, thanks for writing that one up!


 On Tue, Jan 27, 2009 at 11:41 AM, Jeremy Thomerson 
 jer...@wickettraining.com wrote:

 This has come up quite a bit here on the user list.

 See the first example on this page:

 http://www.jeremythomerson.com/blog/2008/11/06/wicket-the-power-of-nested-models/


 --
 Jeremy Thomerson
 http://www.wickettraining.com

 On Tue, Jan 27, 2009 at 1:38 PM, nate roe phl...@gmail.com wrote:

  I'm using Wicket v1.3.4.
 
  I would like to create a kind of TextField that converts a null model
 value
  to a custom string rather than an empty string.  Unfortunately, the
  converter is not run when the model object is null, and it looks like
  Component.getModelObjectAsString(...) is hard-coded to return  when
 the
  model is null.
 
  Is there some way I can overcome this without modifying the Wicket
 source?
 
  Thanks,
  Nate Roe
 





WicketTester - Problem submitting a form

2009-01-27 Thread Stephan Koch
Hi all,

I ran into a problem with WicketTester. I am doing a very simple test of
the login form of my application:

code
.. setup stuff ...

tester.startPage(LoginPage.class);
tester.assertComponent(form:loginName, TextField.class);
FormTester loginFormTester = tester.newFormTester(form);
loginFormTester.setValue(loginName, testUser.getUsername());
loginFormTester.setValue(password, test);
tester.clickLink(form:loginSubmit);
tester.assertRenderedPage(DashboardPage.class);

/code

The form is a standard wicket form object with 1 Textfield, 1
PasswordTextField for username and password, 2 buttons that use
SubmitLinks, and a FeedbackPanel.

I get the following error when submitting the form. I have no idea where
that '/' comes from, but its obviously causing the problem.
I also tried to use formtester.submit(loginSubmit) with the same results.

Any suggestions?



BR,
Stephan

org.apache.wicket.WicketRuntimeException: Internal error parsing
wicket:interface = :0:form::IFormSubmitListener::/; wrong format for url
depth argument. Expected a number but was '/'
at
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:617)
at
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:554)
at
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:199)
at org.apache.wicket.Request.getRequestParameters(Request.java:171)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at
org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:484)
at
org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:472)
at
org.apache.wicket.util.tester.BaseWicketTester.executeListener(BaseWicketTester.java:248)
at
org.apache.wicket.util.tester.BaseWicketTester.submitForm(BaseWicketTester.java:791)
at
org.apache.wicket.util.tester.BaseWicketTester.clickLink(BaseWicketTester.java:741)
at
org.apache.wicket.util.tester.BaseWicketTester.clickLink(BaseWicketTester.java:617)
at
com.xxx.xxx.wicket.pages.AllPagesInstantiationTest.testAllPagesFromMainMenu(AllPagesInstantiationTest.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at
org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.lang.NumberFormatException: For input string: /
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:613)
... 30 more


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



How can FeedbackPanel show error message of AjaxEditablePanel ?

2009-01-27 Thread Philipp Daumke

Hi all,

I try to show the error message of an AjaxEditablePanel  in a  
FeedbackPanel, but it doesn't work. On the web I only find examples 
where FormComponents are validated. My AjaxEditablePanel is not part of 
a form? Any idea or example?


Thank you
Philipp
--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: dau...@averbis.de

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


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



Re: How can FeedbackPanel show error message of AjaxEditablePanel ?

2009-01-27 Thread Igor Vaynberg
call error(foo) on any component and add the feedbackpanel to the
ajax request target

-igor

On Tue, Jan 27, 2009 at 4:34 PM, Philipp Daumke dau...@averbis.de wrote:
 Hi all,

 I try to show the error message of an AjaxEditablePanel  in a
  FeedbackPanel, but it doesn't work. On the web I only find examples where
 FormComponents are validated. My AjaxEditablePanel is not part of a form?
 Any idea or example?

 Thank you
 Philipp
 --

 Averbis GmbH
 c/o Klinikum der Albert-Ludwigs-Universität
 Stefan-Meier-Strasse 26
 D-79104 Freiburg

 Fon: +49 (0) 761 - 203 6707
 Fax: +49 (0) 761 - 203 6800
 E-Mail: dau...@averbis.de

 Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
 Sitz der Gesellschaft: Freiburg i. Br.
 AG Freiburg i. Br., HRB 701080


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



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



How to bookmark an form with file upload input

2009-01-27 Thread Trevor Campbell
I have a wicket application that has a simple form with a file upload 
capability.  I would now like to allow to extend the application by 
allowing an application on a device to send me the form and the 
application to return some XML.


I have easily built a page to return the XML and if I invoke with a 
simple URL (GET) using parameters, but to get a fileupload I need (I 
think I need) a multipart mime form.


The input form would be a simple as:
html 
body
 form wicket:id=analyzeForm action=app/getxml method=post
 input wicket:id=fileUpload id=fileUpload type=file/
 input type=submit value=Analyze/
 /form
/body
/html

I mount the bookmarkable page, e.g . mountBookmarkablePage(/getxml, 
GetAnalysisXML.class);  but when I submit the form, wicket renders a new 
version of the page (i.e. the real wicket page), rather than processing 
the POST message.





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



Re: Convert a null Model to a custom string rather than

2009-01-27 Thread Anton Veretennikov
Not very nice but works (Jeremy Thomerson's variant with setObject changes):

public class DefaultWhenNullModelT implements IModelT {

  private static final long serialVersionUID = 1L;
  private final IModelT mNestedModel;
  private final T mDefaultValue;

  public DefaultWhenNullModel(IModelT nestedModel, T defaultValue) {
mNestedModel = nestedModel;
mDefaultValue = defaultValue;
  }

  public T getObject() {
T val = mNestedModel.getObject();
return val == null ? mDefaultValue : val;
  }

  public void setObject(T object) {
if (object!=null  object.equals(mDefaultValue)) {
  mNestedModel.setObject(null);
} else {
  mNestedModel.setObject(object);
}
  }

  public void detach() {
mNestedModel.detach();
  }
}


Usage:
form.add(new TextField(value,
new DefaultWhenNullModel(new
PropertyModel(getSomeModel(),value), Enter a value)

));




On Wed, Jan 28, 2009 at 5:16 AM, nate roe phl...@gmail.com wrote:
 Actually, I don't think that this will work for me.

 The behavior that I want is to display a special string when the model is
 null.  However, I still want the model to be null.

 My custom converter converts a special keyword to a null model.  I want also
 to convert a new model to a special keyword for display.

 On Tue, Jan 27, 2009 at 11:46 AM, nate roe phl...@gmail.com wrote:

 Excellent, thanks for writing that one up!


 On Tue, Jan 27, 2009 at 11:41 AM, Jeremy Thomerson 
 jer...@wickettraining.com wrote:

 This has come up quite a bit here on the user list.

 See the first example on this page:

 http://www.jeremythomerson.com/blog/2008/11/06/wicket-the-power-of-nested-models/


 --
 Jeremy Thomerson
 http://www.wickettraining.com

 On Tue, Jan 27, 2009 at 1:38 PM, nate roe phl...@gmail.com wrote:

  I'm using Wicket v1.3.4.
 
  I would like to create a kind of TextField that converts a null model
 value
  to a custom string rather than an empty string.  Unfortunately, the
  converter is not run when the model object is null, and it looks like
  Component.getModelObjectAsString(...) is hard-coded to return  when
 the
  model is null.
 
  Is there some way I can overcome this without modifying the Wicket
 source?
 
  Thanks,
  Nate Roe
 





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



Re: Frozen error form object

2009-01-27 Thread Igor Vaynberg
if the form is in invalid state and you want to reuse the same
instance of it you have to call Form#clearInput()

-igor

On Tue, Jan 27, 2009 at 8:06 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 I'm still with this problem... and created Test App for this.

 When required field is empty and error message is shown, pressing on
 other links does not change the form.

 Please, help me, I'm stuck here.

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


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



Re: Example for presenting pdf in modal window

2009-01-27 Thread Per Newgro

And how should i add the pdf?
Page.add(InlineFrame.add(???));

That is exactly hte problem i can't get over.

Thanks for helping me
Per

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



set mountPath for BookmarkablePageLink

2009-01-27 Thread Sean Brookes

I am working on some RESTful navigation and have run across an issue with ver
1.3.x.

I would like to specify multiple mountPath names to the same Page class eg:

mount(new IndexedParamUrlCodingStrategy(
internal,Class.forName(com.xyz.unittest.framework.layout.LandingPage)));
mount(new IndexedParamUrlCodingStrategy(
external,Class.forName(com.xyz.unittest.framework.layout.LandingPage)));
mount(new IndexedParamUrlCodingStrategy(
custom,Class.forName(com.xyz.unittest.framework.layout.LandingPage)));

So that in addition to the indexed set of parameters I can also use the
mountPath name to configure the page response.

So far so good but the problem is how to specify a particular mountPath when
creating the BookmarkablePageLink.  Is there there a straightforward way to
specify the mount path?

I have searched the forum and google and would have thought this would have
come up as an issue for someone else so maybe I am approaching this the
wrong way.

I realize I can do this with just the parameters passed to the page but we
have a diverse set of 'page views' and I would like to minimize the number
of page classes we have to 'mount'

I have also played around with using the ExternalLink and managing the URL
construction manually but it feels clunky.

Regards,
Sean

-- 
View this message in context: 
http://www.nabble.com/set-mountPath-for-BookmarkablePageLink-tp21700838p21700838.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: WicketTester - Problem submitting a form

2009-01-27 Thread Per Newgro

Hi Stephan Koch,

i can't help you on the exception. But all i can see is that you don't 
call submit.


FormTester loginFormTester = tester.newFormTester(form);
loginFormTester.setValue(loginName, testUser.getUsername());
loginFormTester.setValue(password, test);
loginFormTester.submit(); //  insert
tester.clickLink(form:loginSubmit);

But give it a try. I always have strange exceptions if i call methods 
invalidly.


Cheers
Per

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



Re: Frozen error form object

2009-01-27 Thread Anton Veretennikov
Thank you very much, Igor

This really works.
I think that it will be nice not to keep reference to a form by the way.
So I tried to make override of onBeforeRender() but...

Seems that getModelObject() every time returns just clicked object not
the one editing-continued.
Is there any method to know it? The problem will be solved clearly.

Tony



On Wed, Jan 28, 2009 at 1:27 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 if the form is in invalid state and you want to reuse the same
 instance of it you have to call Form#clearInput()

 -igor

 On Tue, Jan 27, 2009 at 8:06 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 I'm still with this problem... and created Test App for this.

 When required field is empty and error message is shown, pressing on
 other links does not change the form.

 Please, help me, I'm stuck here.

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


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



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



Re: Frozen error form object

2009-01-27 Thread Igor Vaynberg
you need to wire your events. listpanel can have an abstract onclicked();
editpanel can have a method called inputchanged() which calls form.clearinput()
your listpanel can then look like this:

add(new listpanel() { onclicked() { editpanel.inputchanged(); }}):

that way everything is still nicely encapsulated, but accessible.

-igor

On Tue, Jan 27, 2009 at 11:35 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 Thank you very much, Igor

 This really works.
 I think that it will be nice not to keep reference to a form by the way.
 So I tried to make override of onBeforeRender() but...

 Seems that getModelObject() every time returns just clicked object not
 the one editing-continued.
 Is there any method to know it? The problem will be solved clearly.

 Tony



 On Wed, Jan 28, 2009 at 1:27 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 if the form is in invalid state and you want to reuse the same
 instance of it you have to call Form#clearInput()

 -igor

 On Tue, Jan 27, 2009 at 8:06 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 I'm still with this problem... and created Test App for this.

 When required field is empty and error message is shown, pressing on
 other links does not change the form.

 Please, help me, I'm stuck here.

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


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



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



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