wicket 1.4

2009-03-02 Thread SrinivasaRaju Ch

Hi,

When will wicket 1.4 GA Release..

Regards,
Srinivasa Raju CH.


Get your world in your inbox!

Mail, widgets, documents, spreadsheets, organizer and much more with your 
Sifymail WIYI id!
Log on to http://www.sify.com

** DISCLAIMER **
Information contained and transmitted by this E-MAIL is proprietary to 
Sify Limited and is intended for use only by the individual or entity to 
which it is addressed, and may contain information that is privileged, 
confidential or exempt from disclosure under applicable law. If this is a 
forwarded message, the content of this E-MAIL may not have been sent with 
the authority of the Company. If you are not the intended recipient, an 
agent of the intended recipient or a  person responsible for delivering the 
information to the named recipient,  you are notified that any use, 
distribution, transmission, printing, copying or dissemination of this 
information in any way or in any manner is strictly prohibited. If you have 
received this communication in error, please delete this mail  notify us 
immediately at ad...@sifycorp.com


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



Re: [vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModelList? extends Foo to IModelListFoo

2009-03-02 Thread Daan van Etten

[X] Yes, change the DropDownChoice constructor to take the
   choices list as IModelListT or ListT without the
   wildcard


Regards,

Daan

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



Re: [AjaxTabbedPanel] Switching between form and result tab

2009-03-02 Thread valery . chhoa
Thanks for the advice Igor.

I passed the actual values to the second tab (via the submit method of the 
form) just to see if it's working.
So I guess that in the onSubmit method of the form, it's better to pass a 
model than an object

public class GererMesLignesUnitForm extends Form {
...
protected void onSubmit() {
 
Object newObject = createNewObjectFromRequest();
/* Previous call
 * GererMesLignesUnitPage pageResultat = new 
GererMesLignesUnitPage(1, newObject);
 */

GererMesLignesUnitPage pageResultat = new 
GererMesLignesUnitPage(1, newModelFromNewObject);
setResponsePage(pageResultat);
}
}

But that doesn't resolve my problem. How can I keep the input in the form 
of the first tab in this case :

- User fill the form on the first tab
- User submit the form on the first tab
- application do the search using the form input and show the result on 
the second tab with
- User want to the same search with more criteria so he switch back on the 
first tab
- User have to fill back all his criteria ...   === How can I keep them ?

- Should I pass the model of the form and the model of the result in the 
onSubmit() method ?
- If not, do I use correctly the PanelCachingTab in my previous example ?







De :
Igor Vaynberg igor.vaynb...@gmail.com
A:
users@wicket.apache.org
Date:
27/02/2009 18:08
Objet :
Re: [AjaxTabbedPanel] Switching between form and result tab



p.add(new Label(statut, demande.getStatut()));

^ you should use models instead of passing it actual values, that way
your data doesnt get out of sync.
see the models page on the wiki

-igor

2009/2/27  valery.ch...@steria.com:
 I've already try that. It didn't work.
 But maybe I'm doing something wrong ...

 Here's the page code :


 private DemandeUnitaire demande;
 private GererMesLignesUnitForm myForm;
 private AjaxTabbedPanel tabPanel;
 private Panel currentPanel;

 public GererMesLignesUnitPage(int selectedTab, Object infosToShow) {

 if (selectedTab == 1)
demande = (DemandeUnitaire) infosToShow;

 myForm = new GererMesLignesUnitForm(recherche, new 
CompoundPropertyModel
 (new DemandeUnitaire()));
 List tabs = new ArrayList();

 tabs.add(new PanelCachingTab(
new AbstractTab(new Model(first tab)) {
private static final long serialVersionUID = 1L;
public Panel getPanel(String panelId) {

Panel p = new TabPanel1(panelId);

FeedbackPanel feedback = new FeedbackPanel(msgs
 );
p.add(feedback);


p.add(myForm);

return p;
}
}
 ) {
@Override
public Panel getPanel(final String panelId) {
return super.getPanel(panelId);
}
 });

 tabs.add(new PanelCachingTab(
new AbstractTab(new Model(second tab)) {
private static final long serialVersionUID = 1L;
public Panel getPanel(String panelId) {

Panel p = new TabPanel2(panelId);
p.add(new Label(statut, demande.getStatut()));
  p.add(new Label(numMachine, demande
 .getNumMachine()));

HeaderContributor alert = new HeaderContributor(
new IHeaderContributor() {
public void
 renderHead(IHeaderResponse response) {
  response.renderOnLoadJavascript(onloadEvent(););
}
}
);

p.add(HeaderContributor.forJavaScript( LIB_JS ));
p.add(HeaderContributor.forJavaScript(
 SHOW_HIDE_COLUMN_JS ));
p.add(alert);
return p;
}
}
 ) {
@Override
public Panel getPanel(final String panelId) {
return super.getPanel(panelId);
}
 });






 De :
 Igor Vaynberg igor.vaynb...@gmail.com
 A:
 users@wicket.apache.org
 Date:
 27/02/2009 17:27
 Objet :
 Re: [AjaxTabbedPanel] Switching between form and result tab



 use panelcachingtab instead of abstracttab

 -igor

 2009/2/27  valery.ch...@steria.com:
 Hi,

 Anyone have an idea on the matter below ?

 Cheers,

 Val



 De :
 valery.ch...@steria.com
 A:
 users@wicket.apache.org
 Date:
 26/02/2009 14:11
 Objet :
 [AjaxTabbedPanel] Switching between form and result tab



 Hi,

 I have an AjacTabbedPanel with two tabs.
 The first tab is a form which, when submitted, show the result on the
 second tabs.
 So far, everything's fine.

 I want to keep the input from the form after the submit so that the 
user
 can come back to the first tab and have a look at what the crierias was
 and maybe to modify them to make another request.
 But I need to be able switch back to the second tab and keep records of
 the result 

ChannelTarget 2 AjaxRequestTarget

2009-03-02 Thread Martin Bednář
Hi all,
I need following functionality: after receiving ChannelTarget (using cometd
server) I need open ModalDialog window on client and show some information.
For this purpose I created adapter with following methods. But in standard
wicket distribution is addJavascript declared as finall (so I have self
compiled distribution of wicked without this declaration). Is there another
way how I can do it correctly ? Or it's possible to declare this method
non-finall in wicket, or create something simillar
to ChannelTargetToAjaxRequestTargetAdapter in wicket itself ?


public class ChannelTargetToAjaxRequestTargetAdapter extends
AjaxRequestTarget {

private final IChannelTarget channelTarget;

/**
 * @param target
 */
public ChannelTargetToAjaxRequestTargetAdapter(final Page page, final
IChannelTarget target) {
super(page);
this.channelTarget = target;
}

/** {...@inheritdoc} */
@Override
public void addComponent(final Component component) {
channelTarget.addComponent(component);
}

@Override
public void addJavascript(final String javascript) {
channelTarget.appendJavascript(javascript);
}


... all others methods are implemented to
throw UnsupportedOperationException

Thank you
Martin


Re: [vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModelList? extends Foo to IModelListFoo

2009-03-02 Thread Marat Radchenko
[X] No, keep DropDownChoice as it is in Wicket 1.4-rc2

2009/3/2 Timo Rantalaiho timo.rantala...@ri.fi:
 Background:

  https://issues.apache.org/jira/browse/WICKET-1512

  https://issues.apache.org/jira/browse/WICKET-2126

  http://www.nabble.com/LDM-with-Generics-for-DropDownChoice-td22155211.html


 This works:
 = clips 
     public static void main(String[] args) {
         Foo foo = new Foo();
         foo.bar().add(new String(quux));
     }

     @SuppressWarnings(unchecked)
     public ListString bar() {
       List? extends String list = new 
 ArrayListString(Arrays.asList(foo, bar));
       return (ListString) list;
     }
 = /clips ===


 This doesn't work:
 = claps 
     public static void main(String[] args) {
         Foo foo = new Foo();
         foo.bar().add(new String(quux));
     }

     public List? extends String bar() {
       List? extends String list = new 
 ArrayListString(Arrays.asList(foo, bar));
       return list;
     }
 = /claps ===



 [ ] Yes, change the DropDownChoice constructor to take the
    choices list as IModelListT or ListT without the
    wildcard

 [ ] No, keep DropDownChoice as it is in Wicket 1.4-rc2



 Best wishes,
 Timo

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

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




Re: [vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModelList? extends Foo to IModelListFoo

2009-03-02 Thread Maarten Bosteels
[X] Yes, change the DropDownChoice constructor to take the
  choices list as IModelListT or ListT without the
  wildcard

Maarten

On Mon, Mar 2, 2009 at 9:30 AM, Daan van Etten d...@stuq.nl wrote:

 [X] Yes, change the DropDownChoice constructor to take the
   choices list as IModelListT or ListT without the
   wildcard


 Regards,

 Daan


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




Re: Wicket and downloading huge pdf files

2009-03-02 Thread Emanuele Gesuato
Only want to know if an url similar to:

http://www.myweb.com/.../depliant.pdf

with a pdf file (or similar) as suffix is possible to create in wicket.


On Fri, 2009-02-27 at 10:13 +0100, Emanuele Gesuato wrote:
 Hi there,
 
 We have several huge pdf files with many pages (an hundred or so) and we
 would like to do a lazy loading of the pdf file when the user click to
 download it. Right now, when the user click for some pdf we return to
 the browser a resource stream with mime type application/pdf in which
 we load the file as a byte array output stream.
 
 But in this way the file is returned entirely to the user. In some web
 site they use an url with the the pdf file embedded to it (example:
 http://.../file.pdf); in this way the pdf client (adobe reader or
 similar) could lazy load the pages of the document.
 
 But is it a correct approach ? Is it possibile to implement something
 similar using a custom UrlCodingStrategy ?
 
 Thanks,
 Emanuele Gesuato 
 
 
 
 -
 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: [vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModelList? extends Foo to IModelListFoo

2009-03-02 Thread Johan Compagner
If we loose the wildcard is it then still possible to do everything?

We have it to be able to use a Manager List when we declare it as a
People
When you have that you have to copy it over i guess by a helper method.

I just want to know for sure that i dont miss something that if we remove it
that then something is not possible anymore


On Mon, Mar 2, 2009 at 05:26, Timo Rantalaiho timo.rantala...@ri.fi wrote:

 Background:

  https://issues.apache.org/jira/browse/WICKET-1512

  https://issues.apache.org/jira/browse/WICKET-2126


 http://www.nabble.com/LDM-with-Generics-for-DropDownChoice-td22155211.html


 This works:
 = clips 
 public static void main(String[] args) {
 Foo foo = new Foo();
 foo.bar().add(new String(quux));
 }

 @SuppressWarnings(unchecked)
 public ListString bar() {
   List? extends String list = new
 ArrayListString(Arrays.asList(foo, bar));
   return (ListString) list;
 }
 = /clips ===


 This doesn't work:
 = claps 
 public static void main(String[] args) {
 Foo foo = new Foo();
 foo.bar().add(new String(quux));
 }

 public List? extends String bar() {
   List? extends String list = new
 ArrayListString(Arrays.asList(foo, bar));
   return list;
 }
 = /claps ===



 [ ] Yes, change the DropDownChoice constructor to take the
choices list as IModelListT or ListT without the
wildcard

 [ ] No, keep DropDownChoice as it is in Wicket 1.4-rc2



 Best wishes,
 Timo

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

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




Re: wicket 1.4

2009-03-02 Thread Martijn Dashorst
when it's done.

Martijn

On Mon, Mar 2, 2009 at 9:09 AM, SrinivasaRaju Ch
srinivas.r...@sifycorp.com wrote:
 Hi,

 When will wicket 1.4 GA Release..

 Regards,
 Srinivasa Raju CH.


 Get your world in your inbox!

 Mail, widgets, documents, spreadsheets, organizer and much more with your
 Sifymail WIYI id!
 Log on to http://www.sify.com

 ** DISCLAIMER **
 Information contained and transmitted by this E-MAIL is proprietary to Sify
 Limited and is intended for use only by the individual or entity to which it
 is addressed, and may contain information that is privileged, confidential
 or exempt from disclosure under applicable law. If this is a forwarded
 message, the content of this E-MAIL may not have been sent with the
 authority of the Company. If you are not the intended recipient, an agent of
 the intended recipient or a  person responsible for delivering the
 information to the named recipient,  you are notified that any use,
 distribution, transmission, printing, copying or dissemination of this
 information in any way or in any manner is strictly prohibited. If you have
 received this communication in error, please delete this mail  notify us
 immediately at ad...@sifycorp.com

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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



1.4 RC2 multiple forms within a border

2009-03-02 Thread Ron Meyers

I'm having a page contained in a border. Both the border and the  pages
contain forms (adjacent not nested forms). This worked perfectly with 1.4
RC1, now with RC2 aparantly a submit in one form causes the models of both
forms to be updated with the values of the submitted form.

Does anybody else experience this behavior?
-- 
View this message in context: 
http://www.nabble.com/1.4-RC2---multiple-forms-within-a-border-tp22285838p22285838.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: 1.4 RC2 multiple forms within a border

2009-03-02 Thread Anton Veretennikov
16 hours ago: 
http://www.nabble.com/Multiple-Forms-in-A-Border-tp22252817p22273577.html

On Mon, Mar 2, 2009 at 5:44 PM, Ron Meyers
christ...@armstrongconsulting.net wrote:

 I'm having a page contained in a border. Both the border and the  pages
 contain forms (adjacent not nested forms). This worked perfectly with 1.4
 RC1, now with RC2 aparantly a submit in one form causes the models of both
 forms to be updated with the values of the submitted form.

 Does anybody else experience this behavior?
 --
 View this message in context: 
 http://www.nabble.com/1.4-RC2---multiple-forms-within-a-border-tp22285838p22285838.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



Why is BookmarkablePageLink generified?

2009-03-02 Thread Erik van Oosten

Hello,

I was wondering why BookmarkablePageLink has been generified. A 
bookmarkable link has no use for a model as far as I can see.


Shall I create an issue to change the declaration of 
BookmarkablePageLink from:

   public class BookmarkablePageLinkT extends LinkT
to
   public class BookmarkablePageLink extends LinkVoid
?

Regards,
   Erik.

--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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



Re: Why is BookmarkablePageLink generified?

2009-03-02 Thread Willis Blackburn

BookmarkablePageLink isn't final.  A subclass could use the model.

W

On Mar 2, 2009, at 7:36 AM, Erik van Oosten wrote:


Hello,

I was wondering why BookmarkablePageLink has been generified. A  
bookmarkable link has no use for a model as far as I can see.


Shall I create an issue to change the declaration of  
BookmarkablePageLink from:

  public class BookmarkablePageLinkT extends LinkT
to
  public class BookmarkablePageLink extends LinkVoid
?

Regards,
  Erik.

--
Erik van Oosten
http://day-to-day-stuff.blogspot.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: Why is BookmarkablePageLink generified?

2009-03-02 Thread Stefan Lindner
Yes Willis, that's what we do. So we prefer to have a generic 
BuukmarkablePageLink.

-Ursprüngliche Nachricht-
Von: Willis Blackburn [mailto:wbo...@panix.com] 
Gesendet: Montag, 2. März 2009 13:43
An: users@wicket.apache.org
Betreff: Re: Why is BookmarkablePageLink generified?

BookmarkablePageLink isn't final.  A subclass could use the model.

W

On Mar 2, 2009, at 7:36 AM, Erik van Oosten wrote:

 Hello,

 I was wondering why BookmarkablePageLink has been generified. A  
 bookmarkable link has no use for a model as far as I can see.

 Shall I create an issue to change the declaration of  
 BookmarkablePageLink from:
   public class BookmarkablePageLinkT extends LinkT
 to
   public class BookmarkablePageLink extends LinkVoid
 ?

 Regards,
   Erik.

 -- 
 Erik van Oosten
 http://day-to-day-stuff.blogspot.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



Wicket - Session Management

2009-03-02 Thread subbu_tce

Hi,

I have two wicket applications running in two different JVMs.

If clicking on a link in the first wicket application that runs in the first
JVM, is redirected to the second wicket application that runs in second JVM,
What support does Wicket provide to manage the page map in the session for
the first wicket application other than manually invalidating the objects in
the session when redirected to the second wicket application?

Moreover, I understand the state of all wicket components are maintained in
the session. But does wicket provide any programmatic extension points to
have the partially/fully managed on the client side?

And also please help me point to good materials/articles on session
management and custom session management in wicket.

Thanks,
Subbu.
-- 
View this message in context: 
http://www.nabble.com/Wicket---Session-Management-tp22288083p22288083.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 - Session Management

2009-03-02 Thread subbu_tce

There is a small typo in the second question. Second question is reworded as
below:

Does wicket provide any programmatic extension points to have the state of
components managed on the client side?

Thanks,
Subbu.


subbu_tce wrote:
 
 Hi,
 
 I have two wicket applications running in two different JVMs.
 
 If clicking on a link in the first wicket application that runs in the
 first JVM, is redirected to the second wicket application that runs in
 second JVM, What support does Wicket provide to manage the page map in the
 session for the first wicket application other than manually invalidating
 the objects in the session when redirected to the second wicket
 application?
 
 Moreover, I understand the state of all wicket components are maintained
 in the session. But does wicket provide any programmatic extension points
 to have the partially/fully managed on the client side?
 
 And also please help me point to good materials/articles on session
 management and custom session management in wicket.
 
 Thanks,
 Subbu.
 

-- 
View this message in context: 
http://www.nabble.com/Wicket---Session-Management-tp22288083p22288126.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: Switching between markup files for borders

2009-03-02 Thread Jeremy Thomerson
I would think you would be better off attaching this to a JIRA.

On Mon, Mar 2, 2009 at 3:00 AM, Anton Veretennikov 
anton.veretenni...@gmail.com wrote:

 Quickstart is attached.
 Tested with last 1.4-SNAPSHOT.

 On Sun, Mar 1, 2009 at 12:29 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
  Hmm. Strange things I see with image paths in my borders with variants.
  My page is mounted like:
 
  mountBookmarkablePage(/getFrame, OrderPaymentPage.class);
 
  So, when I reach my theme with:
 
  .../getFrame?theme=white
  - everything is alright.
 
  But asking it with:
 
  .../getFrame/theme/white
  - and my border images are touching server with
  .../getFrame/theme/images/bar/white/t.gif address.
  So, as there is no images there, 404 Not Found is returned for them.
  They must be .../images/bar/white/t.gif
 
  Quickstart?
 
 
  On Thu, Feb 26, 2009 at 2:52 PM, Anton Veretennikov
  anton.veretenni...@gmail.com wrote:
  Igor, I did it already :)
  Jeremy suggests another approach - with no variations.
 
  On Thu, Feb 26, 2009 at 2:48 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
  return new roundedcornerborder(...) { string getvariation() { return
  black; }};
 
  -igor
 
  On Wed, Feb 25, 2009 at 11:45 PM, Jeremy Thomerson
  jer...@wickettraining.com wrote:
  Bummer - knew it couldn't be as easy as it looked.  :)  I don't
 suppose it's
  something you could do like this, then?
 
  Border.html
  td class=foo
 
  main_white.css
  TD.foo { background-image: (/url/whiteimages/bar.jpg); }
 
  main_black.css
  TD.foo { background-image: (/url/blackimages/bar.jpg); }
 
  As to performance, not sure I understood the question, but selecting
 the
  themed borders rather than normal borders doesn't slow anything
 down.  Is
  that what you meant?
 
 
  On Thu, Feb 26, 2009 at 1:15 AM, Anton Veretennikov 
  anton.veretenni...@gmail.com wrote:
 
  It will be better of course, Jeremy.
 
  My borders have differences not only in css but in images in table
  cells. Images are taken from other folders depending on theme name.
  Yes, I know, rounded corners can be made with pure css. But my war
  with browsers is endless.
 
  I thought about some variable that could be replaces with exact name
  of theme in html part. But onComponentTagBody is final in Border
  class. And I'm far from Wicket guru.
 
  Another question is performance. When borders are many on a page
 their
  customazation is time consuming. Am I right?
 
 
 
  On Thu, Feb 26, 2009 at 1:54 PM, Jeremy Thomerson
  jer...@wickettraining.com wrote:
   Obviously I have nothing other than the name of your file to base
 this
   thought on, but I'll throw it out there anyway
  
   If the only difference between the two is color, just use localized
 /
  themed
   css files and use a single HTML file.  This will save you a ton of
 code
   duplication over having MyBorder_white, MyPanel_white, etc.
  
   Maybe you already are, but I couldn't bare to see what appears to
 be pain
   and suffering without at least trying to help.  :)
  
   On Wed, Feb 25, 2009 at 10:13 AM, Anton Veretennikov 
   anton.veretenni...@gmail.com wrote:
  
   Hi!
  
   I have a problem with theme support for borders.
   I want to exchange real markup of border depending on theme name,
 for
   example:
  
   RoundedCornerBorder_black.html
   RoundedCornerBorder_white.html
  
   How to do this in Wicket?
  
  
 -
   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
  
 
  -
  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
 
 
  -
  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




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


Re: [AjaxTabbedPanel] Switching between form and result tab

2009-03-02 Thread Igor Vaynberg
in your onsubmit you are calling setresponsepage, so you are going to
a different page, not tab?

-igor

On Mon, Mar 2, 2009 at 12:41 AM,  valery.ch...@steria.com wrote:
 Thanks for the advice Igor.

 I passed the actual values to the second tab (via the submit method of the
 form) just to see if it's working.
 So I guess that in the onSubmit method of the form, it's better to pass a
 model than an object

 public class GererMesLignesUnitForm extends Form {
 ...
        protected void onSubmit() {

                Object newObject = createNewObjectFromRequest();
                /* Previous call
                 * GererMesLignesUnitPage pageResultat = new
 GererMesLignesUnitPage(1, newObject);
                 */

                GererMesLignesUnitPage pageResultat = new
 GererMesLignesUnitPage(1, newModelFromNewObject);
                setResponsePage(pageResultat);
        }
 }

 But that doesn't resolve my problem. How can I keep the input in the form
 of the first tab in this case :

 - User fill the form on the first tab
 - User submit the form on the first tab
 - application do the search using the form input and show the result on
 the second tab with
 - User want to the same search with more criteria so he switch back on the
 first tab
 - User have to fill back all his criteria ...   === How can I keep them ?

 - Should I pass the model of the form and the model of the result in the
 onSubmit() method ?
 - If not, do I use correctly the PanelCachingTab in my previous example ?







 De :
 Igor Vaynberg igor.vaynb...@gmail.com
 A:
 users@wicket.apache.org
 Date:
 27/02/2009 18:08
 Objet :
 Re: [AjaxTabbedPanel] Switching between form and result tab



 p.add(new Label(statut, demande.getStatut()));

 ^ you should use models instead of passing it actual values, that way
 your data doesnt get out of sync.
 see the models page on the wiki

 -igor

 2009/2/27  valery.ch...@steria.com:
 I've already try that. It didn't work.
 But maybe I'm doing something wrong ...

 Here's the page code :


 private DemandeUnitaire demande;
 private GererMesLignesUnitForm myForm;
 private AjaxTabbedPanel tabPanel;
 private Panel currentPanel;

 public GererMesLignesUnitPage(int selectedTab, Object infosToShow) {

 if (selectedTab == 1)
        demande = (DemandeUnitaire) infosToShow;

 myForm = new GererMesLignesUnitForm(recherche, new
 CompoundPropertyModel
 (new DemandeUnitaire()));
 List tabs = new ArrayList();

 tabs.add(new PanelCachingTab(
        new AbstractTab(new Model(first tab)) {
                private static final long serialVersionUID = 1L;
                public Panel getPanel(String panelId) {

                        Panel p = new TabPanel1(panelId);

                        FeedbackPanel feedback = new FeedbackPanel(msgs
 );
                        p.add(feedback);


                        p.add(myForm);

                        return p;
                }
        }
 ) {
       �...@override
        public Panel getPanel(final String panelId) {
                return super.getPanel(panelId);
        }
 });

 tabs.add(new PanelCachingTab(
        new AbstractTab(new Model(second tab)) {
                private static final long serialVersionUID = 1L;
                public Panel getPanel(String panelId) {

                        Panel p = new TabPanel2(panelId);
                        p.add(new Label(statut, demande.getStatut()));
                      p.add(new Label(numMachine, demande
 .getNumMachine()));

                        HeaderContributor alert = new HeaderContributor(
                                new IHeaderContributor() {
                                        public void
 renderHead(IHeaderResponse response) {
  response.renderOnLoadJavascript(onloadEvent(););
                                        }
                                }
                        );

                        p.add(HeaderContributor.forJavaScript( LIB_JS ));
                        p.add(HeaderContributor.forJavaScript(
 SHOW_HIDE_COLUMN_JS ));
                        p.add(alert);
                        return p;
                }
        }
 ) {
       �...@override
        public Panel getPanel(final String panelId) {
                return super.getPanel(panelId);
        }
 });






 De :
 Igor Vaynberg igor.vaynb...@gmail.com
 A:
 users@wicket.apache.org
 Date:
 27/02/2009 17:27
 Objet :
 Re: [AjaxTabbedPanel] Switching between form and result tab



 use panelcachingtab instead of abstracttab

 -igor

 2009/2/27  valery.ch...@steria.com:
 Hi,

 Anyone have an idea on the matter below ?

 Cheers,

 Val



 De :
 valery.ch...@steria.com
 A:
 users@wicket.apache.org
 Date:
 26/02/2009 14:11
 Objet :
 [AjaxTabbedPanel] Switching between form and result tab



 Hi,

 I have an AjacTabbedPanel with two tabs.
 The first tab is a form which, when submitted, show the result on the
 second tabs.
 So far, everything's fine.

 I want to keep the input from the form after the submit so that the
 user
 can 

Thank you!

2009-03-02 Thread shetc

I just want to take a moment to thank you all. With your support, my
colleagues and I were able
to complete our first enterprise-wide Wicket-based application. I work for
the Spherion Corporation,
which provides staffing services. Our Wicket application is a web site where
a newly hired employee
completes all the forms required for starting a job (upwards of 15 per
user). This replaces a
paper-based manual system. We expect a large cost savings as recruiters can
focus on placing
candidates rather than pushing paper. The application went through a very
successful pilot phase,
and is now in general use for the whole company.

Once again, many thanks -- we couldn't have done it without your help!

Steve
-- 
View this message in context: 
http://www.nabble.com/Thank-you%21-tp22290605p22290605.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: Switching between markup files for borders

2009-03-02 Thread Anton Veretennikov
Done.
I'm not sure although that I'm not doing something wrong.
https://issues.apache.org/jira/browse/WICKET-2136

On Mon, Mar 2, 2009 at 9:54 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 I would think you would be better off attaching this to a JIRA.

 On Mon, Mar 2, 2009 at 3:00 AM, Anton Veretennikov 
 anton.veretenni...@gmail.com wrote:

 Quickstart is attached.
 Tested with last 1.4-SNAPSHOT.

 On Sun, Mar 1, 2009 at 12:29 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
  Hmm. Strange things I see with image paths in my borders with variants.
  My page is mounted like:
 
  mountBookmarkablePage(/getFrame, OrderPaymentPage.class);
 
  So, when I reach my theme with:
 
  .../getFrame?theme=white
  - everything is alright.
 
  But asking it with:
 
  .../getFrame/theme/white
  - and my border images are touching server with
  .../getFrame/theme/images/bar/white/t.gif address.
  So, as there is no images there, 404 Not Found is returned for them.
  They must be .../images/bar/white/t.gif
 
  Quickstart?
 
 
  On Thu, Feb 26, 2009 at 2:52 PM, Anton Veretennikov
  anton.veretenni...@gmail.com wrote:
  Igor, I did it already :)
  Jeremy suggests another approach - with no variations.
 
  On Thu, Feb 26, 2009 at 2:48 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
  return new roundedcornerborder(...) { string getvariation() { return
  black; }};
 
  -igor
 
  On Wed, Feb 25, 2009 at 11:45 PM, Jeremy Thomerson
  jer...@wickettraining.com wrote:
  Bummer - knew it couldn't be as easy as it looked.  :)  I don't
 suppose it's
  something you could do like this, then?
 
  Border.html
  td class=foo
 
  main_white.css
  TD.foo { background-image: (/url/whiteimages/bar.jpg); }
 
  main_black.css
  TD.foo { background-image: (/url/blackimages/bar.jpg); }
 
  As to performance, not sure I understood the question, but selecting
 the
  themed borders rather than normal borders doesn't slow anything
 down.  Is
  that what you meant?
 
 
  On Thu, Feb 26, 2009 at 1:15 AM, Anton Veretennikov 
  anton.veretenni...@gmail.com wrote:
 
  It will be better of course, Jeremy.
 
  My borders have differences not only in css but in images in table
  cells. Images are taken from other folders depending on theme name.
  Yes, I know, rounded corners can be made with pure css. But my war
  with browsers is endless.
 
  I thought about some variable that could be replaces with exact name
  of theme in html part. But onComponentTagBody is final in Border
  class. And I'm far from Wicket guru.
 
  Another question is performance. When borders are many on a page
 their
  customazation is time consuming. Am I right?
 
 
 
  On Thu, Feb 26, 2009 at 1:54 PM, Jeremy Thomerson
  jer...@wickettraining.com wrote:
   Obviously I have nothing other than the name of your file to base
 this
   thought on, but I'll throw it out there anyway
  
   If the only difference between the two is color, just use localized
 /
  themed
   css files and use a single HTML file.  This will save you a ton of
 code
   duplication over having MyBorder_white, MyPanel_white, etc.
  
   Maybe you already are, but I couldn't bare to see what appears to
 be pain
   and suffering without at least trying to help.  :)
  
   On Wed, Feb 25, 2009 at 10:13 AM, Anton Veretennikov 
   anton.veretenni...@gmail.com wrote:
  
   Hi!
  
   I have a problem with theme support for borders.
   I want to exchange real markup of border depending on theme name,
 for
   example:
  
   RoundedCornerBorder_black.html
   RoundedCornerBorder_white.html
  
   How to do this in Wicket?
  
  
 -
   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
  
 
  -
  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
 
 
  -
  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




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


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



Re: [AjaxTabbedPanel] Switching between form and result tab

2009-03-02 Thread valery . chhoa
True. 
Actually, I call the same page (but a new instance) but  focus on the 
second tab.
I didn't find another way to switch tab on the onSubmit function.

I'm not really familliar with wicket so since you are asking the question, 
I guess there's a better way to do what I want ...




De :
Igor Vaynberg igor.vaynb...@gmail.com
A:
users@wicket.apache.org
Date:
02/03/2009 16:45
Objet :
Re: [AjaxTabbedPanel] Switching between form and result tab



in your onsubmit you are calling setresponsepage, so you are going to
a different page, not tab?

-igor

On Mon, Mar 2, 2009 at 12:41 AM,  valery.ch...@steria.com wrote:
 Thanks for the advice Igor.

 I passed the actual values to the second tab (via the submit method of 
the
 form) just to see if it's working.
 So I guess that in the onSubmit method of the form, it's better to pass 
a
 model than an object

 public class GererMesLignesUnitForm extends Form {
 ...
protected void onSubmit() {

Object newObject = createNewObjectFromRequest();
/* Previous call
 * GererMesLignesUnitPage pageResultat = new
 GererMesLignesUnitPage(1, newObject);
 */

GererMesLignesUnitPage pageResultat = new
 GererMesLignesUnitPage(1, newModelFromNewObject);
setResponsePage(pageResultat);
}
 }

 But that doesn't resolve my problem. How can I keep the input in the 
form
 of the first tab in this case :

 - User fill the form on the first tab
 - User submit the form on the first tab
 - application do the search using the form input and show the result on
 the second tab with
 - User want to the same search with more criteria so he switch back on 
the
 first tab
 - User have to fill back all his criteria ...   === How can I keep them 
?

 - Should I pass the model of the form and the model of the result in the
 onSubmit() method ?
 - If not, do I use correctly the PanelCachingTab in my previous example 
?






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










Ce message est à l'attention exclusive des destinataires désignés. Il peut 
contenir des informations confidentielles. Si vous n'êtes pas destinataire 
du message, merci d'en avertir immédiatement l'expéditeur et de détruire 
ce message. Le contenu de ce message ne pourrait engager la responsabilité 
de Steria que s'il a été émis par une personne dûment habilitée agissant 
dans le strict cadre de ses fonctions et à des fins non étrangères à ses 
attributions. Bien que les meilleurs efforts soient faits pour maintenir 
cette transmission exempte de tout virus, l'expéditeur ne donne aucune 
garantie à cet égard et sa responsabilité ne saurait être engagée pour 
tout dommage résultant d'un virus transmis.


This message is intended exclusively for the designated addressee. It may 
contain confidential material. If you are not the correct addressee, 
please notify the sender immediately and destroy the message. The content 
of this message will engage the responsibility of Steria only if it has 
been sent by an authorized person acting in the strict scope of his 
functions and for purposes that are related to his competence. Although 
reasonable efforts have been made to keep this transmission free from 
viruses, the sender will not be liable for damages caused by a transmitted 
virus.




Re: [AjaxTabbedPanel] Switching between form and result tab

2009-03-02 Thread Igor Vaynberg
tabbedpanle.setselectedtab(int)

-igor

On Mon, Mar 2, 2009 at 7:58 AM,  valery.ch...@steria.com wrote:
 True.
 Actually, I call the same page (but a new instance) but  focus on the
 second tab.
 I didn't find another way to switch tab on the onSubmit function.

 I'm not really familliar with wicket so since you are asking the question,
 I guess there's a better way to do what I want ...




 De :
 Igor Vaynberg igor.vaynb...@gmail.com
 A:
 users@wicket.apache.org
 Date:
 02/03/2009 16:45
 Objet :
 Re: [AjaxTabbedPanel] Switching between form and result tab



 in your onsubmit you are calling setresponsepage, so you are going to
 a different page, not tab?

 -igor

 On Mon, Mar 2, 2009 at 12:41 AM,  valery.ch...@steria.com wrote:
 Thanks for the advice Igor.

 I passed the actual values to the second tab (via the submit method of
 the
 form) just to see if it's working.
 So I guess that in the onSubmit method of the form, it's better to pass
 a
 model than an object

 public class GererMesLignesUnitForm extends Form {
 ...
        protected void onSubmit() {

                Object newObject = createNewObjectFromRequest();
                /* Previous call
                 * GererMesLignesUnitPage pageResultat = new
 GererMesLignesUnitPage(1, newObject);
                 */

                GererMesLignesUnitPage pageResultat = new
 GererMesLignesUnitPage(1, newModelFromNewObject);
                setResponsePage(pageResultat);
        }
 }

 But that doesn't resolve my problem. How can I keep the input in the
 form
 of the first tab in this case :

 - User fill the form on the first tab
 - User submit the form on the first tab
 - application do the search using the form input and show the result on
 the second tab with
 - User want to the same search with more criteria so he switch back on
 the
 first tab
 - User have to fill back all his criteria ...   === How can I keep them
 ?

 - Should I pass the model of the form and the model of the result in the
 onSubmit() method ?
 - If not, do I use correctly the PanelCachingTab in my previous example
 ?






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










 Ce message est à l'attention exclusive des destinataires désignés. Il peut
 contenir des informations confidentielles. Si vous n'êtes pas destinataire
 du message, merci d'en avertir immédiatement l'expéditeur et de détruire
 ce message. Le contenu de ce message ne pourrait engager la responsabilité
 de Steria que s'il a été émis par une personne dûment habilitée agissant
 dans le strict cadre de ses fonctions et à des fins non étrangères à ses
 attributions. Bien que les meilleurs efforts soient faits pour maintenir
 cette transmission exempte de tout virus, l'expéditeur ne donne aucune
 garantie à cet égard et sa responsabilité ne saurait être engagée pour
 tout dommage résultant d'un virus transmis.


 This message is intended exclusively for the designated addressee. It may
 contain confidential material. If you are not the correct addressee,
 please notify the sender immediately and destroy the message. The content
 of this message will engage the responsibility of Steria only if it has
 been sent by an authorized person acting in the strict scope of his
 functions and for purposes that are related to his competence. Although
 reasonable efforts have been made to keep this transmission free from
 viruses, the sender will not be liable for damages caused by a transmitted
 virus.




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



RE: Wicket Link with proxy server: wrong hostname

2009-03-02 Thread harri.temonen
Hi all,

My problem with wrong hostnames is solved now.
We found two options to solve this.

Option 1) 
Apache proxy httpd.conf change, use app-server name instead of ip address:

   ProxyPass   /pls  http://xxx.xxx.xxx.xxx:/pls
   ProxyPassReverse/pls  http://xxx.xxx.xxx.xxx:/pls
=
   ProxyPass   /pls  http://app-servername:/pls
   ProxyPassReverse/pls  http://app-servername:/pls

Option 2)
In Oracle HTTP Server (iAS) httpd.conf, set 
UseCanonicalName Off

Thank for your help!

Best Regards 
Harri

-Original Message-
From: ext Marcelo Morales [mailto:marcelomorales.n...@gmail.com] 
Sent: 27 February, 2009 22:17
To: users@wicket.apache.org
Subject: Re: Wicket Link with proxy server: wrong hostname

Hi

I am not a fan of reverse proxying. I would not vote for it if runs.

If your servlet container supports it, you may try the AJP protocol.
It works on tomcat at least. AJP is better than just using a 
http reverse proxy because: a) you get the right client IP 
address then asking the servlet API, b) isSecure() and 
getScheme() will work as expected, and c) the container 
becomes aware of the changed context root.

On Fri, Feb 27, 2009 at 6:14 AM,  harri.temo...@nokia.com wrote:
 Hi all,

 I have problem when Wicket 1.3.5 application is installed 
behind proxy server.

 Application it showing Index page in url 
 https://www.mycompany.com/pls/myapp/
 When clicking link (pointing into same Index page), browser is going 
 to url http://server:/pls/myapp/

 Any ideas about to solve this? Details listed below.

 Best Regards
 Harri

 ==Index.html=
 html xmlns:wicket=http://wicket.apache.org/;
 body
   a wicket:id = linkIndexIndex/a /body /html 
 ==Index.java=
 public class Index extends WebPage {
public Index() {
Link linkToAnchor = new Link(linkIndex) {
public void onClick() {
setResponsePage(Index.class);
}
};
add(linkToAnchor);
}
 }
 ==MyApplication.java=
 public class MyApplication extends WebApplication {

@Override
public Class getHomePage() {
return Index.class;
}
 }
 ==web.xml
 ?xml version = '1.0' encoding = 'windows-1252'? web-app 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 
xmlns=http://java.sun.com/xml/ns/j2ee;
descriptionEmpty web.xml file for Web Application/description
filter
filter-nameWicketApplication/filter-name

filter-classorg.apache.wicket.protocol.http.WicketFilter/fil
ter-class
init-param
param-nameapplicationClassName/param-name
param-valuecom.mycompany.app.MyApplication/param-value
/init-param
/filter
filter-mapping
filter-nameWicketApplication/filter-name
url-pattern/*/url-pattern
/filter-mapping
session-config
session-timeout35/session-timeout
/session-config
mime-mapping
extensionhtml/extension
mime-typetext/html/mime-type
/mime-mapping
mime-mapping
extensiontxt/extension
mime-typetext/plain/mime-type
/mime-mapping
 /web-app
 ===
 My infra stack is:

 Alteon SSL Aaccelerator url:
 https://www.mycompany.com/pls/myapp/

 Apache Proxy url:
 http://webserver:80/pls/myapp/
 Httpd.conf:
 ProxyPass   /pls  http://server:/pls/myapp/
 ProxyPassReverse/pls  http://server:/pls/myapp/

 Oracle Application Server url:
 http://server:/pls/myapp/







--
Marcelo Morales

-
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: [AjaxTabbedPanel] Switching between form and result tab

2009-03-02 Thread valery . chhoa
Ok. I already use this one to switch on the second tab when I call the 
same page with the second page id.
But I don't have any instance of the tabPanel in the Form.
Should I put the tabPanel as a parameter when I create the form in the 
Page.java ?



Valéry Chhoa




De :
Igor Vaynberg igor.vaynb...@gmail.com
A:
users@wicket.apache.org
Date:
02/03/2009 17:01
Objet :
Re: [AjaxTabbedPanel] Switching between form and result tab



tabbedpanle.setselectedtab(int)

-igor

On Mon, Mar 2, 2009 at 7:58 AM,  valery.ch...@steria.com wrote:
 True.
 Actually, I call the same page (but a new instance) but  focus on the
 second tab.
 I didn't find another way to switch tab on the onSubmit function.

 I'm not really familliar with wicket so since you are asking the 
question,
 I guess there's a better way to do what I want ...




 De :
 Igor Vaynberg igor.vaynb...@gmail.com
 A:
 users@wicket.apache.org
 Date:
 02/03/2009 16:45
 Objet :
 Re: [AjaxTabbedPanel] Switching between form and result tab



 in your onsubmit you are calling setresponsepage, so you are going to
 a different page, not tab?

 -igor

 On Mon, Mar 2, 2009 at 12:41 AM,  valery.ch...@steria.com wrote:
 Thanks for the advice Igor.

 I passed the actual values to the second tab (via the submit method of
 the
 form) just to see if it's working.
 So I guess that in the onSubmit method of the form, it's better to pass
 a
 model than an object

 public class GererMesLignesUnitForm extends Form {
 ...
protected void onSubmit() {

Object newObject = createNewObjectFromRequest();
/* Previous call
 * GererMesLignesUnitPage pageResultat = new
 GererMesLignesUnitPage(1, newObject);
 */

GererMesLignesUnitPage pageResultat = new
 GererMesLignesUnitPage(1, newModelFromNewObject);
setResponsePage(pageResultat);
}
 }

 But that doesn't resolve my problem. How can I keep the input in the
 form
 of the first tab in this case :

 - User fill the form on the first tab
 - User submit the form on the first tab
 - application do the search using the form input and show the result on
 the second tab with
 - User want to the same search with more criteria so he switch back on
 the
 first tab
 - User have to fill back all his criteria ...   === How can I keep 
them
 ?

 - Should I pass the model of the form and the model of the result in 
the
 onSubmit() method ?
 - If not, do I use correctly the PanelCachingTab in my previous example
 ?






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










 Ce message est à l'attention exclusive des destinataires désignés. Il 
peut
 contenir des informations confidentielles. Si vous n'êtes pas 
destinataire
 du message, merci d'en avertir immédiatement l'expéditeur et de détruire
 ce message. Le contenu de ce message ne pourrait engager la 
responsabilité
 de Steria que s'il a été émis par une personne dûment habilitée agissant
 dans le strict cadre de ses fonctions et à des fins non étrangères à ses
 attributions. Bien que les meilleurs efforts soient faits pour maintenir
 cette transmission exempte de tout virus, l'expéditeur ne donne aucune
 garantie à cet égard et sa responsabilité ne saurait être engagée pour
 tout dommage résultant d'un virus transmis.


 This message is intended exclusively for the designated addressee. It 
may
 contain confidential material. If you are not the correct addressee,
 please notify the sender immediately and destroy the message. The 
content
 of this message will engage the responsibility of Steria only if it has
 been sent by an authorized person acting in the strict scope of his
 functions and for purposes that are related to his competence. Although
 reasonable efforts have been made to keep this transmission free from
 viruses, the sender will not be liable for damages caused by a 
transmitted
 virus.




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










Ce message est à l'attention exclusive des destinataires désignés. Il peut 
contenir des informations confidentielles. Si vous n'êtes pas destinataire 
du message, merci d'en avertir immédiatement l'expéditeur et de détruire 
ce message. Le contenu de ce message ne pourrait engager la responsabilité 
de Steria que s'il a été émis par une personne dûment habilitée agissant 
dans le strict cadre de ses fonctions et à des fins non étrangères à ses 
attributions. Bien que les meilleurs efforts soient faits pour maintenir 
cette transmission exempte de tout virus, l'expéditeur ne donne aucune 
garantie à cet égard et sa responsabilité ne saurait être engagée pour 
tout dommage résultant d'un virus transmis.


This message is intended 

Another borders scenario

2009-03-02 Thread Anton Veretennikov
Hello!

I'm again with borders. May be I'm not using them right...
Is everything okey with this mix of border and child:


Block.html:
wicket:panel
  div wicket:id=border
wicket:child /
  /div
/wicket:panel

Block.java (extends Panel)
   add(new RoundedCornersPanelGrey(border));


ChildBlock.html:
wicket:extend
  a wicket:id=linklink/a
/wicket:extend

ChildBlock.java (extends Block)
   add(new Link(link)

It doesn't work with border in Block (can't find component).
It works only without border or with border in ChildBlock around a.

-- Tony.

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



Browser opens a dialog box for text/html Resource

2009-03-02 Thread Arie Fishler
Hi,

I am integrating some reports using the JasperReports integration classes
found in the Wicket stuff.

Basically I have a class that extends  DynamicWebResource

It is linked using a ResourceLink that triggers its output.

Content type is returned as text/html.

Why is the browser asking me before opening it? I want it to automatically
open in a new window just as it dows when I approve the dialog box.

On another level, as I specified the output is triggered using a
ResourceLink on the page. How do I trigger the output when I want to put a
form and a submit link on the page. This means I want to create the Resource
on submit and trigger its output based on the form selections not as a
direct link on the pgae.

Thanks,
Arie

On Mon, Mar 2, 2009 at 5:48 PM, shetc sh...@bellsouth.net wrote:


 I just want to take a moment to thank you all. With your support, my
 colleagues and I were able
 to complete our first enterprise-wide Wicket-based application. I work for
 the Spherion Corporation,
 which provides staffing services. Our Wicket application is a web site
 where
 a newly hired employee
 completes all the forms required for starting a job (upwards of 15 per
 user). This replaces a
 paper-based manual system. We expect a large cost savings as recruiters can
 focus on placing
 candidates rather than pushing paper. The application went through a very
 successful pilot phase,
 and is now in general use for the whole company.

 Once again, many thanks -- we couldn't have done it without your help!

 Steve
 --
 View this message in context:
 http://www.nabble.com/Thank-you%21-tp22290605p22290605.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




Browser opens a dialog box for text/html Resource

2009-03-02 Thread Arie Fishler
  Hi,

 I am integrating some reports using the JasperReports integration classes
 found in the Wicket stuff.

 Basically I have a class that extends  DynamicWebResource

 It is linked using a ResourceLink that triggers its output.

 Content type is returned as text/html.

 Why is the browser asking me before opening it? I want it to automatically
 open in a new window just as it dows when I approve the dialog box.

 On another level, as I specified the output is triggered using a
 ResourceLink on the page. How do I trigger the output when I want to put a
 form and a submit link on the page. This means I want to create the Resource
 on submit and trigger its output based on the form selections not as a
 direct link on the pgae.

 Thanks,
 Arie



Re: LocaleDropDown does not switch locale anymore when deployed on server

2009-03-02 Thread Roman Zechner
Solved - at least I found a work around. It was a server issue. We were 
missing de_DE locale files on the system. 
But I still had to explicitly set the system variable LC_ALL to 
de_DE.ISO-8859-1, before restarting tomcat.


Shouldn't the JVM come with full I18N support already? Well, it works, 
but if anyone has an explanation for this behaviour, I'd be happy.


Cheers, Roman


Roman Zechner wrote:

Hi,

we are using the LocaleDropDown component mentioned in Wicket in Action.
While it works on the local machine, it does not when deployed on our 
server.
We need to switch between German and English. German works on my local 
machine,

on the server it doesn't.

Any ideas?

Roman



-
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



VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-02 Thread Brill Pappin

Ok, as suggested, here is the thread, and the first vote.

+1
for making the generic definition the same for all list type components.

FYI -  you can also vote in the issue I just created at (which might  
actually be a better place to vote):

https://issues.apache.org/jira/browse/WICKET-2137

- Brill




On 28-Feb-09, at 5:18 PM, Jeremy Thomerson wrote:

Perhaps start a vote thread, with the subject something like: VOTE:  
Remove

? extends from constructor of DropDownChoice.

I'd be +1 non-binding


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


On Sat, Feb 28, 2009 at 3:33 PM, Brill Pappin br...@pappin.ca wrote:


I'm of the don't widen it camp anyway :)

So how do I go about gathering support for having the  
DropDownChoice work

with the models the way everything else does?

- Brill


On 28-Feb-09, at 1:42 AM, Igor Vaynberg wrote:

yes, the choice was intentional. personally i do not care if it is  
T

all the way, some users complained so we widened it on the choices
model, we cannot widen it on the main model.

-igor

On Fri, Feb 27, 2009 at 8:51 PM, Brill Pappin br...@pappin.ca  
wrote:



I see... but this would i think because Bar is a Foo:

class Bar exends Foo {}
List? extends Foo list = ...
list.add(new Bar());

Anyway, what your saying is that the generics choice was  
intentional?


- Brill



On 27-Feb-09, at 3:19 PM, Igor Vaynberg wrote:

list? extends string stings=...

strings.add(asd); == wont compile

-igor

On Fri, Feb 27, 2009 at 11:13 AM, Adriano dos Santos Fernandes
adrian...@gmail.com wrote:



What do you mean with read only here?


Adriano


Igor Vaynberg escreveu:



? extends Foo collections are read only, it would be too
inconvenient to make the model collection read only :)

-igor

On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:


This is what I was commenting on last week on the list (or  
earlier

this
week).  One expects List? extends Foo while the other expects
ListFoo.
I'm not fully convinced yet that the ? extends is the better
option.
Either way, I think they should be the same.

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

On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca
wrote:




Roughly what I'm doing is:

class TypeA{}

class TypeAModel extends LoadableDetachableModel  
ListTypeA {

   public ListTypeA load(){
   ... do the load ...
   return ...
   }
}

TypeAModel model = new TypeAModel();
DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id,  
model

);

which gets complained about... in this case the generic def is
DropDownChoiceList? extends T

I think the problem is that the generic def of the class  
should

actually
be
DropDownChoiceListT because you are already identifying  
the type

when
you create a new instance.

Now... my generics are a bit hazy at this level, because I can
understand
why it was done that way... does anyone with more generics
experience
know
what it should be? Is this a bug that needs filing?

- Brill



On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote:

On 26.02.2009, at 22:52, Brill Pappin wrote:


For some reason the DropDownChoice component doesn't have  
the same



generics as ListView and it will not accept a model that  
listview

will,
despite its saying that it will accept an IModel.

Is anyone else having that sort of trouble with  
DropDownChoice?


- Brill



Can you give us more information on what exactly is not  
working for

you?

DropDownChoice indeed does accept a model, see for instance  
the

example
in
the class description at





http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html

This works for me.

Kaspar

--

!-- HTML: --
select wicket:id=site
  optionsite 1/option
  optionsite 2/option
/select
ul
li wicket:id=site2wicket:container
wicket:id=sitename//li
/ul

// Code
List SITES = Arrays.asList(new String[] {
  The Server Side, Java Lobby, Java.Net
});
form.add(new DropDownChoice(site, SITES));
form.add(new ListView(site2, SITES)
{
@Override
protected void populateItem(ListItem item)
{
  item.add(new Label(sitename, item.getModel()));
}
});



-
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





? extends

-
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: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-02 Thread Igor Vaynberg
have you seen this thread? looks like someone beat you to it.

[vote] In Wicket 1.4 and onwards, remove widening from the list of
choices model in DropDownChoice, changing it from IModelList?
extends Foo to IModelListFoo

-igor

On Mon, Mar 2, 2009 at 12:11 PM, Brill Pappin br...@pappin.ca wrote:
 Ok, as suggested, here is the thread, and the first vote.

 +1
 for making the generic definition the same for all list type components.

 FYI -  you can also vote in the issue I just created at (which might
 actually be a better place to vote):
 https://issues.apache.org/jira/browse/WICKET-2137

 - Brill




 On 28-Feb-09, at 5:18 PM, Jeremy Thomerson wrote:

 Perhaps start a vote thread, with the subject something like: VOTE:
 Remove
 ? extends from constructor of DropDownChoice.

 I'd be +1 non-binding


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


 On Sat, Feb 28, 2009 at 3:33 PM, Brill Pappin br...@pappin.ca wrote:

 I'm of the don't widen it camp anyway :)

 So how do I go about gathering support for having the DropDownChoice work
 with the models the way everything else does?

 - Brill


 On 28-Feb-09, at 1:42 AM, Igor Vaynberg wrote:

 yes, the choice was intentional. personally i do not care if it is T

 all the way, some users complained so we widened it on the choices
 model, we cannot widen it on the main model.

 -igor

 On Fri, Feb 27, 2009 at 8:51 PM, Brill Pappin br...@pappin.ca wrote:

 I see... but this would i think because Bar is a Foo:

 class Bar exends Foo {}
 List? extends Foo list = ...
 list.add(new Bar());

 Anyway, what your saying is that the generics choice was intentional?

 - Brill



 On 27-Feb-09, at 3:19 PM, Igor Vaynberg wrote:

 list? extends string stings=...

 strings.add(asd); == wont compile

 -igor

 On Fri, Feb 27, 2009 at 11:13 AM, Adriano dos Santos Fernandes
 adrian...@gmail.com wrote:


 What do you mean with read only here?


 Adriano


 Igor Vaynberg escreveu:


 ? extends Foo collections are read only, it would be too
 inconvenient to make the model collection read only :)

 -igor

 On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:


 This is what I was commenting on last week on the list (or earlier
 this
 week).  One expects List? extends Foo while the other expects
 ListFoo.
 I'm not fully convinced yet that the ? extends is the better
 option.
 Either way, I think they should be the same.

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

 On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca
 wrote:



 Roughly what I'm doing is:

 class TypeA{}

 class TypeAModel extends LoadableDetachableModel ListTypeA {
   public ListTypeA load(){
           ... do the load ...
           return ...
   }
 }

 TypeAModel model = new TypeAModel();
 DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id, model
 );

 which gets complained about... in this case the generic def is
 DropDownChoiceList? extends T

 I think the problem is that the generic def of the class should
 actually
 be
 DropDownChoiceListT because you are already identifying the
 type
 when
 you create a new instance.

 Now... my generics are a bit hazy at this level, because I can
 understand
 why it was done that way... does anyone with more generics
 experience
 know
 what it should be? Is this a bug that needs filing?

 - Brill



 On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote:

 On 26.02.2009, at 22:52, Brill Pappin wrote:


 For some reason the DropDownChoice component doesn't have the
 same


 generics as ListView and it will not accept a model that
 listview
 will,
 despite its saying that it will accept an IModel.

 Is anyone else having that sort of trouble with DropDownChoice?

 - Brill



 Can you give us more information on what exactly is not working
 for
 you?

 DropDownChoice indeed does accept a model, see for instance the
 example
 in
 the class description at






 http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html

 This works for me.

 Kaspar

 --

 !-- HTML: --
 select wicket:id=site
          optionsite 1/option
          optionsite 2/option
 /select
 ul
 li wicket:id=site2wicket:container
 wicket:id=sitename//li
 /ul

 // Code
 List SITES = Arrays.asList(new String[] {
  The Server Side, Java Lobby, Java.Net
 });
 form.add(new DropDownChoice(site, SITES));
 form.add(new ListView(site2, SITES)
 {
 @Override
 protected void populateItem(ListItem item)
 {
  item.add(new Label(sitename, item.getModel()));
 }
 });




 -
 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




 ? extends


 -
 

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-02 Thread James Carman
I vote -0.99 on this (non-binding of course).  I'd vote +1 to making
ListView accept List? extends T rather than making DDC less
flexible.

On Mon, Mar 2, 2009 at 3:11 PM, Brill Pappin br...@pappin.ca wrote:
 Ok, as suggested, here is the thread, and the first vote.

 +1
 for making the generic definition the same for all list type components.

 FYI -  you can also vote in the issue I just created at (which might
 actually be a better place to vote):
 https://issues.apache.org/jira/browse/WICKET-2137

 - Brill




 On 28-Feb-09, at 5:18 PM, Jeremy Thomerson wrote:

 Perhaps start a vote thread, with the subject something like: VOTE:
 Remove
 ? extends from constructor of DropDownChoice.

 I'd be +1 non-binding


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


 On Sat, Feb 28, 2009 at 3:33 PM, Brill Pappin br...@pappin.ca wrote:

 I'm of the don't widen it camp anyway :)

 So how do I go about gathering support for having the DropDownChoice work
 with the models the way everything else does?

 - Brill


 On 28-Feb-09, at 1:42 AM, Igor Vaynberg wrote:

 yes, the choice was intentional. personally i do not care if it is T

 all the way, some users complained so we widened it on the choices
 model, we cannot widen it on the main model.

 -igor

 On Fri, Feb 27, 2009 at 8:51 PM, Brill Pappin br...@pappin.ca wrote:

 I see... but this would i think because Bar is a Foo:

 class Bar exends Foo {}
 List? extends Foo list = ...
 list.add(new Bar());

 Anyway, what your saying is that the generics choice was intentional?

 - Brill



 On 27-Feb-09, at 3:19 PM, Igor Vaynberg wrote:

 list? extends string stings=...

 strings.add(asd); == wont compile

 -igor

 On Fri, Feb 27, 2009 at 11:13 AM, Adriano dos Santos Fernandes
 adrian...@gmail.com wrote:


 What do you mean with read only here?


 Adriano


 Igor Vaynberg escreveu:


 ? extends Foo collections are read only, it would be too
 inconvenient to make the model collection read only :)

 -igor

 On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:


 This is what I was commenting on last week on the list (or earlier
 this
 week).  One expects List? extends Foo while the other expects
 ListFoo.
 I'm not fully convinced yet that the ? extends is the better
 option.
 Either way, I think they should be the same.

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

 On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca
 wrote:



 Roughly what I'm doing is:

 class TypeA{}

 class TypeAModel extends LoadableDetachableModel ListTypeA {
   public ListTypeA load(){
           ... do the load ...
           return ...
   }
 }

 TypeAModel model = new TypeAModel();
 DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id, model
 );

 which gets complained about... in this case the generic def is
 DropDownChoiceList? extends T

 I think the problem is that the generic def of the class should
 actually
 be
 DropDownChoiceListT because you are already identifying the
 type
 when
 you create a new instance.

 Now... my generics are a bit hazy at this level, because I can
 understand
 why it was done that way... does anyone with more generics
 experience
 know
 what it should be? Is this a bug that needs filing?

 - Brill



 On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote:

 On 26.02.2009, at 22:52, Brill Pappin wrote:


 For some reason the DropDownChoice component doesn't have the
 same


 generics as ListView and it will not accept a model that
 listview
 will,
 despite its saying that it will accept an IModel.

 Is anyone else having that sort of trouble with DropDownChoice?

 - Brill



 Can you give us more information on what exactly is not working
 for
 you?

 DropDownChoice indeed does accept a model, see for instance the
 example
 in
 the class description at






 http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html

 This works for me.

 Kaspar

 --

 !-- HTML: --
 select wicket:id=site
          optionsite 1/option
          optionsite 2/option
 /select
 ul
 li wicket:id=site2wicket:container
 wicket:id=sitename//li
 /ul

 // Code
 List SITES = Arrays.asList(new String[] {
  The Server Side, Java Lobby, Java.Net
 });
 form.add(new DropDownChoice(site, SITES));
 form.add(new ListView(site2, SITES)
 {
 @Override
 protected void populateItem(ListItem item)
 {
  item.add(new Label(sitename, item.getModel()));
 }
 });




 -
 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




 ? extends


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

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-02 Thread Igor Vaynberg
see WICKET-2126

-igor

On Mon, Mar 2, 2009 at 12:19 PM, James Carman
jcar...@carmanconsulting.com wrote:
 I vote -0.99 on this (non-binding of course).  I'd vote +1 to making
 ListView accept List? extends T rather than making DDC less
 flexible.

 On Mon, Mar 2, 2009 at 3:11 PM, Brill Pappin br...@pappin.ca wrote:
 Ok, as suggested, here is the thread, and the first vote.

 +1
 for making the generic definition the same for all list type components.

 FYI -  you can also vote in the issue I just created at (which might
 actually be a better place to vote):
 https://issues.apache.org/jira/browse/WICKET-2137

 - Brill




 On 28-Feb-09, at 5:18 PM, Jeremy Thomerson wrote:

 Perhaps start a vote thread, with the subject something like: VOTE:
 Remove
 ? extends from constructor of DropDownChoice.

 I'd be +1 non-binding


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


 On Sat, Feb 28, 2009 at 3:33 PM, Brill Pappin br...@pappin.ca wrote:

 I'm of the don't widen it camp anyway :)

 So how do I go about gathering support for having the DropDownChoice work
 with the models the way everything else does?

 - Brill


 On 28-Feb-09, at 1:42 AM, Igor Vaynberg wrote:

 yes, the choice was intentional. personally i do not care if it is T

 all the way, some users complained so we widened it on the choices
 model, we cannot widen it on the main model.

 -igor

 On Fri, Feb 27, 2009 at 8:51 PM, Brill Pappin br...@pappin.ca wrote:

 I see... but this would i think because Bar is a Foo:

 class Bar exends Foo {}
 List? extends Foo list = ...
 list.add(new Bar());

 Anyway, what your saying is that the generics choice was intentional?

 - Brill



 On 27-Feb-09, at 3:19 PM, Igor Vaynberg wrote:

 list? extends string stings=...

 strings.add(asd); == wont compile

 -igor

 On Fri, Feb 27, 2009 at 11:13 AM, Adriano dos Santos Fernandes
 adrian...@gmail.com wrote:


 What do you mean with read only here?


 Adriano


 Igor Vaynberg escreveu:


 ? extends Foo collections are read only, it would be too
 inconvenient to make the model collection read only :)

 -igor

 On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:


 This is what I was commenting on last week on the list (or earlier
 this
 week).  One expects List? extends Foo while the other expects
 ListFoo.
 I'm not fully convinced yet that the ? extends is the better
 option.
 Either way, I think they should be the same.

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

 On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca
 wrote:



 Roughly what I'm doing is:

 class TypeA{}

 class TypeAModel extends LoadableDetachableModel ListTypeA {
   public ListTypeA load(){
           ... do the load ...
           return ...
   }
 }

 TypeAModel model = new TypeAModel();
 DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id, model
 );

 which gets complained about... in this case the generic def is
 DropDownChoiceList? extends T

 I think the problem is that the generic def of the class should
 actually
 be
 DropDownChoiceListT because you are already identifying the
 type
 when
 you create a new instance.

 Now... my generics are a bit hazy at this level, because I can
 understand
 why it was done that way... does anyone with more generics
 experience
 know
 what it should be? Is this a bug that needs filing?

 - Brill



 On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote:

 On 26.02.2009, at 22:52, Brill Pappin wrote:


 For some reason the DropDownChoice component doesn't have the
 same


 generics as ListView and it will not accept a model that
 listview
 will,
 despite its saying that it will accept an IModel.

 Is anyone else having that sort of trouble with DropDownChoice?

 - Brill



 Can you give us more information on what exactly is not working
 for
 you?

 DropDownChoice indeed does accept a model, see for instance the
 example
 in
 the class description at






 http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html

 This works for me.

 Kaspar

 --

 !-- HTML: --
 select wicket:id=site
          optionsite 1/option
          optionsite 2/option
 /select
 ul
 li wicket:id=site2wicket:container
 wicket:id=sitename//li
 /ul

 // Code
 List SITES = Arrays.asList(new String[] {
  The Server Side, Java Lobby, Java.Net
 });
 form.add(new DropDownChoice(site, SITES));
 form.add(new ListView(site2, SITES)
 {
 @Override
 protected void populateItem(ListItem item)
 {
  item.add(new Label(sitename, item.getModel()));
 }
 });




 -
 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




 ? extends


 

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-02 Thread James Carman
Aren't both the choices model in DDC and the actual model of
ListView supposed to be considered read-only (as far as the component
is concerned)?  The DDC and ListView don't need to be able to alter
those models anyway, right?  Perhaps my experience is just too
limited, but I don't think I've ever tried to do either one of your
usecases (I always consider them read-only).


On Mon, Mar 2, 2009 at 3:24 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 see WICKET-2126

 -igor

 On Mon, Mar 2, 2009 at 12:19 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 I vote -0.99 on this (non-binding of course).  I'd vote +1 to making
 ListView accept List? extends T rather than making DDC less
 flexible.

 On Mon, Mar 2, 2009 at 3:11 PM, Brill Pappin br...@pappin.ca wrote:
 Ok, as suggested, here is the thread, and the first vote.

 +1
 for making the generic definition the same for all list type components.

 FYI -  you can also vote in the issue I just created at (which might
 actually be a better place to vote):
 https://issues.apache.org/jira/browse/WICKET-2137

 - Brill




 On 28-Feb-09, at 5:18 PM, Jeremy Thomerson wrote:

 Perhaps start a vote thread, with the subject something like: VOTE:
 Remove
 ? extends from constructor of DropDownChoice.

 I'd be +1 non-binding


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


 On Sat, Feb 28, 2009 at 3:33 PM, Brill Pappin br...@pappin.ca wrote:

 I'm of the don't widen it camp anyway :)

 So how do I go about gathering support for having the DropDownChoice work
 with the models the way everything else does?

 - Brill


 On 28-Feb-09, at 1:42 AM, Igor Vaynberg wrote:

 yes, the choice was intentional. personally i do not care if it is T

 all the way, some users complained so we widened it on the choices
 model, we cannot widen it on the main model.

 -igor

 On Fri, Feb 27, 2009 at 8:51 PM, Brill Pappin br...@pappin.ca wrote:

 I see... but this would i think because Bar is a Foo:

 class Bar exends Foo {}
 List? extends Foo list = ...
 list.add(new Bar());

 Anyway, what your saying is that the generics choice was intentional?

 - Brill



 On 27-Feb-09, at 3:19 PM, Igor Vaynberg wrote:

 list? extends string stings=...

 strings.add(asd); == wont compile

 -igor

 On Fri, Feb 27, 2009 at 11:13 AM, Adriano dos Santos Fernandes
 adrian...@gmail.com wrote:


 What do you mean with read only here?


 Adriano


 Igor Vaynberg escreveu:


 ? extends Foo collections are read only, it would be too
 inconvenient to make the model collection read only :)

 -igor

 On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:


 This is what I was commenting on last week on the list (or earlier
 this
 week).  One expects List? extends Foo while the other expects
 ListFoo.
 I'm not fully convinced yet that the ? extends is the better
 option.
 Either way, I think they should be the same.

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

 On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca
 wrote:



 Roughly what I'm doing is:

 class TypeA{}

 class TypeAModel extends LoadableDetachableModel ListTypeA {
   public ListTypeA load(){
           ... do the load ...
           return ...
   }
 }

 TypeAModel model = new TypeAModel();
 DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id, model
 );

 which gets complained about... in this case the generic def is
 DropDownChoiceList? extends T

 I think the problem is that the generic def of the class should
 actually
 be
 DropDownChoiceListT because you are already identifying the
 type
 when
 you create a new instance.

 Now... my generics are a bit hazy at this level, because I can
 understand
 why it was done that way... does anyone with more generics
 experience
 know
 what it should be? Is this a bug that needs filing?

 - Brill



 On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote:

 On 26.02.2009, at 22:52, Brill Pappin wrote:


 For some reason the DropDownChoice component doesn't have the
 same


 generics as ListView and it will not accept a model that
 listview
 will,
 despite its saying that it will accept an IModel.

 Is anyone else having that sort of trouble with DropDownChoice?

 - Brill



 Can you give us more information on what exactly is not working
 for
 you?

 DropDownChoice indeed does accept a model, see for instance the
 example
 in
 the class description at






 http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html

 This works for me.

 Kaspar

 --

 !-- HTML: --
 select wicket:id=site
          optionsite 1/option
          optionsite 2/option
 /select
 ul
 li wicket:id=site2wicket:container
 wicket:id=sitename//li
 /ul

 // Code
 List SITES = Arrays.asList(new String[] {
  The Server Side, Java Lobby, Java.Net
 });
 form.add(new DropDownChoice(site, SITES));
 form.add(new ListView(site2, SITES)
 {
 @Override
 protected void populateItem(ListItem item)
 {
  item.add(new Label(sitename, item.getModel()));
 }
 });




 

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-02 Thread Igor Vaynberg
depends on your coding style.

-igor

On Mon, Mar 2, 2009 at 12:44 PM, James Carman
jcar...@carmanconsulting.com wrote:
 Aren't both the choices model in DDC and the actual model of
 ListView supposed to be considered read-only (as far as the component
 is concerned)?  The DDC and ListView don't need to be able to alter
 those models anyway, right?  Perhaps my experience is just too
 limited, but I don't think I've ever tried to do either one of your
 usecases (I always consider them read-only).


 On Mon, Mar 2, 2009 at 3:24 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 see WICKET-2126

 -igor

 On Mon, Mar 2, 2009 at 12:19 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 I vote -0.99 on this (non-binding of course).  I'd vote +1 to making
 ListView accept List? extends T rather than making DDC less
 flexible.

 On Mon, Mar 2, 2009 at 3:11 PM, Brill Pappin br...@pappin.ca wrote:
 Ok, as suggested, here is the thread, and the first vote.

 +1
 for making the generic definition the same for all list type components.

 FYI -  you can also vote in the issue I just created at (which might
 actually be a better place to vote):
 https://issues.apache.org/jira/browse/WICKET-2137

 - Brill




 On 28-Feb-09, at 5:18 PM, Jeremy Thomerson wrote:

 Perhaps start a vote thread, with the subject something like: VOTE:
 Remove
 ? extends from constructor of DropDownChoice.

 I'd be +1 non-binding


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


 On Sat, Feb 28, 2009 at 3:33 PM, Brill Pappin br...@pappin.ca wrote:

 I'm of the don't widen it camp anyway :)

 So how do I go about gathering support for having the DropDownChoice work
 with the models the way everything else does?

 - Brill


 On 28-Feb-09, at 1:42 AM, Igor Vaynberg wrote:

 yes, the choice was intentional. personally i do not care if it is T

 all the way, some users complained so we widened it on the choices
 model, we cannot widen it on the main model.

 -igor

 On Fri, Feb 27, 2009 at 8:51 PM, Brill Pappin br...@pappin.ca wrote:

 I see... but this would i think because Bar is a Foo:

 class Bar exends Foo {}
 List? extends Foo list = ...
 list.add(new Bar());

 Anyway, what your saying is that the generics choice was intentional?

 - Brill



 On 27-Feb-09, at 3:19 PM, Igor Vaynberg wrote:

 list? extends string stings=...

 strings.add(asd); == wont compile

 -igor

 On Fri, Feb 27, 2009 at 11:13 AM, Adriano dos Santos Fernandes
 adrian...@gmail.com wrote:


 What do you mean with read only here?


 Adriano


 Igor Vaynberg escreveu:


 ? extends Foo collections are read only, it would be too
 inconvenient to make the model collection read only :)

 -igor

 On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:


 This is what I was commenting on last week on the list (or earlier
 this
 week).  One expects List? extends Foo while the other expects
 ListFoo.
 I'm not fully convinced yet that the ? extends is the better
 option.
 Either way, I think they should be the same.

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

 On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca
 wrote:



 Roughly what I'm doing is:

 class TypeA{}

 class TypeAModel extends LoadableDetachableModel ListTypeA {
   public ListTypeA load(){
           ... do the load ...
           return ...
   }
 }

 TypeAModel model = new TypeAModel();
 DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id, model
 );

 which gets complained about... in this case the generic def is
 DropDownChoiceList? extends T

 I think the problem is that the generic def of the class should
 actually
 be
 DropDownChoiceListT because you are already identifying the
 type
 when
 you create a new instance.

 Now... my generics are a bit hazy at this level, because I can
 understand
 why it was done that way... does anyone with more generics
 experience
 know
 what it should be? Is this a bug that needs filing?

 - Brill



 On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote:

 On 26.02.2009, at 22:52, Brill Pappin wrote:


 For some reason the DropDownChoice component doesn't have the
 same


 generics as ListView and it will not accept a model that
 listview
 will,
 despite its saying that it will accept an IModel.

 Is anyone else having that sort of trouble with DropDownChoice?

 - Brill



 Can you give us more information on what exactly is not working
 for
 you?

 DropDownChoice indeed does accept a model, see for instance the
 example
 in
 the class description at






 http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html

 This works for me.

 Kaspar

 --

 !-- HTML: --
 select wicket:id=site
          optionsite 1/option
          optionsite 2/option
 /select
 ul
 li wicket:id=site2wicket:container
 wicket:id=sitename//li
 /ul

 // Code
 List SITES = Arrays.asList(new String[] {
  The Server Side, Java Lobby, Java.Net
 });
 form.add(new DropDownChoice(site, SITES));
 form.add(new ListView(site2, SITES)
 {
 

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-02 Thread James Carman
Can you remember ever having to do either one of those?  I guess I
could see someone trying to do such a thing during the processing of
an AJAX request to perhaps make more stuff show up in the
DDC/ListView.  But, for that case, wouldn't it be easier to just
modify the underlying list (I assume they'd use a list because
anything else, such as an LDM, would tend to be read-only)?

On Mon, Mar 2, 2009 at 3:47 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 depends on your coding style.

 -igor

 On Mon, Mar 2, 2009 at 12:44 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 Aren't both the choices model in DDC and the actual model of
 ListView supposed to be considered read-only (as far as the component
 is concerned)?  The DDC and ListView don't need to be able to alter
 those models anyway, right?  Perhaps my experience is just too
 limited, but I don't think I've ever tried to do either one of your
 usecases (I always consider them read-only).


 On Mon, Mar 2, 2009 at 3:24 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 see WICKET-2126

 -igor

 On Mon, Mar 2, 2009 at 12:19 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 I vote -0.99 on this (non-binding of course).  I'd vote +1 to making
 ListView accept List? extends T rather than making DDC less
 flexible.

 On Mon, Mar 2, 2009 at 3:11 PM, Brill Pappin br...@pappin.ca wrote:
 Ok, as suggested, here is the thread, and the first vote.

 +1
 for making the generic definition the same for all list type components.

 FYI -  you can also vote in the issue I just created at (which might
 actually be a better place to vote):
 https://issues.apache.org/jira/browse/WICKET-2137

 - Brill




 On 28-Feb-09, at 5:18 PM, Jeremy Thomerson wrote:

 Perhaps start a vote thread, with the subject something like: VOTE:
 Remove
 ? extends from constructor of DropDownChoice.

 I'd be +1 non-binding


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


 On Sat, Feb 28, 2009 at 3:33 PM, Brill Pappin br...@pappin.ca wrote:

 I'm of the don't widen it camp anyway :)

 So how do I go about gathering support for having the DropDownChoice 
 work
 with the models the way everything else does?

 - Brill


 On 28-Feb-09, at 1:42 AM, Igor Vaynberg wrote:

 yes, the choice was intentional. personally i do not care if it is T

 all the way, some users complained so we widened it on the choices
 model, we cannot widen it on the main model.

 -igor

 On Fri, Feb 27, 2009 at 8:51 PM, Brill Pappin br...@pappin.ca wrote:

 I see... but this would i think because Bar is a Foo:

 class Bar exends Foo {}
 List? extends Foo list = ...
 list.add(new Bar());

 Anyway, what your saying is that the generics choice was intentional?

 - Brill



 On 27-Feb-09, at 3:19 PM, Igor Vaynberg wrote:

 list? extends string stings=...

 strings.add(asd); == wont compile

 -igor

 On Fri, Feb 27, 2009 at 11:13 AM, Adriano dos Santos Fernandes
 adrian...@gmail.com wrote:


 What do you mean with read only here?


 Adriano


 Igor Vaynberg escreveu:


 ? extends Foo collections are read only, it would be too
 inconvenient to make the model collection read only :)

 -igor

 On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:


 This is what I was commenting on last week on the list (or earlier
 this
 week).  One expects List? extends Foo while the other expects
 ListFoo.
 I'm not fully convinced yet that the ? extends is the better
 option.
 Either way, I think they should be the same.

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

 On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca
 wrote:



 Roughly what I'm doing is:

 class TypeA{}

 class TypeAModel extends LoadableDetachableModel ListTypeA {
   public ListTypeA load(){
           ... do the load ...
           return ...
   }
 }

 TypeAModel model = new TypeAModel();
 DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id, 
 model
 );

 which gets complained about... in this case the generic def is
 DropDownChoiceList? extends T

 I think the problem is that the generic def of the class should
 actually
 be
 DropDownChoiceListT because you are already identifying the
 type
 when
 you create a new instance.

 Now... my generics are a bit hazy at this level, because I can
 understand
 why it was done that way... does anyone with more generics
 experience
 know
 what it should be? Is this a bug that needs filing?

 - Brill



 On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote:

 On 26.02.2009, at 22:52, Brill Pappin wrote:


 For some reason the DropDownChoice component doesn't have the
 same


 generics as ListView and it will not accept a model that
 listview
 will,
 despite its saying that it will accept an IModel.

 Is anyone else having that sort of trouble with DropDownChoice?

 - Brill



 Can you give us more information on what exactly is not working
 for
 you?

 DropDownChoice indeed does accept a model, see for instance the
 example
 in
 the class description at






 

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-02 Thread Igor Vaynberg
i also dont remember using a compound property model...can we remove that?

-igor

On Mon, Mar 2, 2009 at 12:57 PM, James Carman
jcar...@carmanconsulting.com wrote:
 Can you remember ever having to do either one of those?  I guess I
 could see someone trying to do such a thing during the processing of
 an AJAX request to perhaps make more stuff show up in the
 DDC/ListView.  But, for that case, wouldn't it be easier to just
 modify the underlying list (I assume they'd use a list because
 anything else, such as an LDM, would tend to be read-only)?

 On Mon, Mar 2, 2009 at 3:47 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 depends on your coding style.

 -igor

 On Mon, Mar 2, 2009 at 12:44 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 Aren't both the choices model in DDC and the actual model of
 ListView supposed to be considered read-only (as far as the component
 is concerned)?  The DDC and ListView don't need to be able to alter
 those models anyway, right?  Perhaps my experience is just too
 limited, but I don't think I've ever tried to do either one of your
 usecases (I always consider them read-only).


 On Mon, Mar 2, 2009 at 3:24 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 see WICKET-2126

 -igor

 On Mon, Mar 2, 2009 at 12:19 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 I vote -0.99 on this (non-binding of course).  I'd vote +1 to making
 ListView accept List? extends T rather than making DDC less
 flexible.

 On Mon, Mar 2, 2009 at 3:11 PM, Brill Pappin br...@pappin.ca wrote:
 Ok, as suggested, here is the thread, and the first vote.

 +1
 for making the generic definition the same for all list type components.

 FYI -  you can also vote in the issue I just created at (which might
 actually be a better place to vote):
 https://issues.apache.org/jira/browse/WICKET-2137

 - Brill




 On 28-Feb-09, at 5:18 PM, Jeremy Thomerson wrote:

 Perhaps start a vote thread, with the subject something like: VOTE:
 Remove
 ? extends from constructor of DropDownChoice.

 I'd be +1 non-binding


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


 On Sat, Feb 28, 2009 at 3:33 PM, Brill Pappin br...@pappin.ca wrote:

 I'm of the don't widen it camp anyway :)

 So how do I go about gathering support for having the DropDownChoice 
 work
 with the models the way everything else does?

 - Brill


 On 28-Feb-09, at 1:42 AM, Igor Vaynberg wrote:

 yes, the choice was intentional. personally i do not care if it is T

 all the way, some users complained so we widened it on the choices
 model, we cannot widen it on the main model.

 -igor

 On Fri, Feb 27, 2009 at 8:51 PM, Brill Pappin br...@pappin.ca wrote:

 I see... but this would i think because Bar is a Foo:

 class Bar exends Foo {}
 List? extends Foo list = ...
 list.add(new Bar());

 Anyway, what your saying is that the generics choice was intentional?

 - Brill



 On 27-Feb-09, at 3:19 PM, Igor Vaynberg wrote:

 list? extends string stings=...

 strings.add(asd); == wont compile

 -igor

 On Fri, Feb 27, 2009 at 11:13 AM, Adriano dos Santos Fernandes
 adrian...@gmail.com wrote:


 What do you mean with read only here?


 Adriano


 Igor Vaynberg escreveu:


 ? extends Foo collections are read only, it would be too
 inconvenient to make the model collection read only :)

 -igor

 On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:


 This is what I was commenting on last week on the list (or 
 earlier
 this
 week).  One expects List? extends Foo while the other expects
 ListFoo.
 I'm not fully convinced yet that the ? extends is the better
 option.
 Either way, I think they should be the same.

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

 On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca
 wrote:



 Roughly what I'm doing is:

 class TypeA{}

 class TypeAModel extends LoadableDetachableModel ListTypeA {
   public ListTypeA load(){
           ... do the load ...
           return ...
   }
 }

 TypeAModel model = new TypeAModel();
 DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id, 
 model
 );

 which gets complained about... in this case the generic def is
 DropDownChoiceList? extends T

 I think the problem is that the generic def of the class should
 actually
 be
 DropDownChoiceListT because you are already identifying the
 type
 when
 you create a new instance.

 Now... my generics are a bit hazy at this level, because I can
 understand
 why it was done that way... does anyone with more generics
 experience
 know
 what it should be? Is this a bug that needs filing?

 - Brill



 On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote:

 On 26.02.2009, at 22:52, Brill Pappin wrote:


 For some reason the DropDownChoice component doesn't have the
 same


 generics as ListView and it will not accept a model that
 listview
 will,
 despite its saying that it will accept an IModel.

 Is anyone else having that sort of trouble with 
 DropDownChoice?

 - Brill



 Can you give us more 

Help with SecondLevelCache and Serialization

2009-03-02 Thread Victor Igumnov
I have been running on the HttpSessionStore for a good year now.  
HttpSessions are clustered and have been working fine for all this  
time. As of recently I have switched to SecondLevelCache and  
DiskPageStore to avoid HttpSession bloat and still have fail over.


I have run into an odd issue with serialization which throws a  
stackoverflow exception. Here is the cause:


Passing an LDM model as-is to a page, it will stackoverflow on the  
receiving page, if that page is refreshed twice or a form has been  
submitted.


Here is an example...

setResponsePage(new EditBlogPage(new LoadableDetachableModelBlog() {
private static final long serialVersionUID = 1L;
@Override
protected Blog load() {
// just an example
return new Blog();
}

}));

However, if I subclass the LDM and pass it like so, it will work just  
fine.


public class FakeLDM extends LoadableDetachableModelBlog {
private static final long serialVersionUID = 1L;

@Override
protected Blog load() {
return new Blog();
}
}

setResponsePage(new EditBlogPage(new FakeLDM()));

One last thing, If I construct the LDM inside the receiving page. It  
will work fine as well.


This seems to only happen with the SecondLevelCache, any ideas?

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



Re: Help with SecondLevelCache and Serialization

2009-03-02 Thread Igor Vaynberg
when you construct it using the first example you showed (anonymous
class) the ldm is carrying a reference to the page on which it is
constructed. so your editblogpage is indirectly holding onto the
instance of the previous page, perhaps that is what is causing the
problem. please file a jira issue.

-igor


On Mon, Mar 2, 2009 at 1:30 PM, Victor Igumnov vict...@fabulously40.com wrote:
 I have been running on the HttpSessionStore for a good year now.
 HttpSessions are clustered and have been working fine for all this time. As
 of recently I have switched to SecondLevelCache and DiskPageStore to avoid
 HttpSession bloat and still have fail over.

 I have run into an odd issue with serialization which throws a stackoverflow
 exception. Here is the cause:

 Passing an LDM model as-is to a page, it will stackoverflow on the receiving
 page, if that page is refreshed twice or a form has been submitted.

 Here is an example...

 setResponsePage(new EditBlogPage(new LoadableDetachableModelBlog() {
        private static final long serialVersionUID = 1L;
       �...@override
        protected Blog load() {
                // just an example
                return new Blog();
        }

 }));

 However, if I subclass the LDM and pass it like so, it will work just fine.

 public class FakeLDM extends LoadableDetachableModelBlog {
        private static final long serialVersionUID = 1L;

       �...@override
        protected Blog load() {
                return new Blog();
        }
 }

 setResponsePage(new EditBlogPage(new FakeLDM()));

 One last thing, If I construct the LDM inside the receiving page. It will
 work fine as well.

 This seems to only happen with the SecondLevelCache, any ideas?

 -
 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: Help with SecondLevelCache and Serialization

2009-03-02 Thread Victor Igumnov

Igor,

Thanks for the confirmation, this is exactly what I thought. I will  
submit a bug report now.


This seems exactly like that other issue that someone had with JBoss  
clustered sessions.


On Mar 2, 2009, at 1:35 PM, Igor Vaynberg wrote:


when you construct it using the first example you showed (anonymous
class) the ldm is carrying a reference to the page on which it is
constructed. so your editblogpage is indirectly holding onto the
instance of the previous page, perhaps that is what is causing the
problem. please file a jira issue.

-igor


On Mon, Mar 2, 2009 at 1:30 PM, Victor Igumnov vict...@fabulously40.com 
 wrote:

I have been running on the HttpSessionStore for a good year now.
HttpSessions are clustered and have been working fine for all this  
time. As
of recently I have switched to SecondLevelCache and DiskPageStore  
to avoid

HttpSession bloat and still have fail over.

I have run into an odd issue with serialization which throws a  
stackoverflow

exception. Here is the cause:

Passing an LDM model as-is to a page, it will stackoverflow on the  
receiving

page, if that page is refreshed twice or a form has been submitted.

Here is an example...

setResponsePage(new EditBlogPage(new  
LoadableDetachableModelBlog() {

   private static final long serialVersionUID = 1L;
   @Override
   protected Blog load() {
   // just an example
   return new Blog();
   }

}));

However, if I subclass the LDM and pass it like so, it will work  
just fine.


public class FakeLDM extends LoadableDetachableModelBlog {
   private static final long serialVersionUID = 1L;

   @Override
   protected Blog load() {
   return new Blog();
   }
}

setResponsePage(new EditBlogPage(new FakeLDM()));

One last thing, If I construct the LDM inside the receiving page.  
It will

work fine as well.

This seems to only happen with the SecondLevelCache, any ideas?

-
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



Migration from servlet to filter always serves WebApplication.getHomePage() when I click on links

2009-03-02 Thread mallet

Hello,

I am using 1.3 and a servlet for Wicket in my web.xml, which I've pasted
below.  I am trying to change to using a Filter instead, which I also pasted
below, but I get a weird behavior -- my WebApp.getHomePage() is served every
time I click on a link.  The links work fine when I use the servlet, and I
followed the migration guide (
http://cwiki.apache.org/WICKET/migrate-13.html#Migrate-1.3-FilterinsteadofaServlet
), so I am not sure why I am getting this behavior.  Any ideas?

--- 
!-- This works --
servlet
  servlet-nameMyWebApp/servlet-name
 
servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
init-param
  param-nameapplicationClassName/param-name
  param-valuemy.WebApp/param-value
/init-param
  load-on-startup1/load-on-startup
/servlet

servlet-mapping
  servlet-nameMyWebApp/servlet-name
  url-pattern/app/*/url-pattern
/servlet-mapping

---
!-- This does not work --
filter
  filter-nameMyWebApp/filter-name
  filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
  param-nameapplicationClassName/param-name
  param-valuemy.WebApp/param-value
/init-param
/filter

filter-mapping
  filter-nameMyWebApp/filter-name
  url-pattern/app/*/url-pattern
/filter-mapping
-- 
View this message in context: 
http://www.nabble.com/Migration-from-servlet-to-filter-always-serves-WebApplication.getHomePage%28%29-when-I-click-on-links-tp22298026p22298026.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: Migration from servlet to filter always serves WebApplication.getHomePage() when I click on links

2009-03-02 Thread Igor Vaynberg
try with /* mapping and see if it works

you are not running this on websphere are you?

-igor

On Mon, Mar 2, 2009 at 2:12 PM, mallet ryanlahue...@gmail.com wrote:

 Hello,

 I am using 1.3 and a servlet for Wicket in my web.xml, which I've pasted
 below.  I am trying to change to using a Filter instead, which I also pasted
 below, but I get a weird behavior -- my WebApp.getHomePage() is served every
 time I click on a link.  The links work fine when I use the servlet, and I
 followed the migration guide (
 http://cwiki.apache.org/WICKET/migrate-13.html#Migrate-1.3-FilterinsteadofaServlet
 ), so I am not sure why I am getting this behavior.  Any ideas?

 ---
 !-- This works --
 servlet
  servlet-nameMyWebApp/servlet-name

 servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
    init-param
      param-nameapplicationClassName/param-name
      param-valuemy.WebApp/param-value
    /init-param
  load-on-startup1/load-on-startup
 /servlet

 servlet-mapping
  servlet-nameMyWebApp/servlet-name
  url-pattern/app/*/url-pattern
 /servlet-mapping

 ---
 !-- This does not work --
 filter
  filter-nameMyWebApp/filter-name
  filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
    init-param
      param-nameapplicationClassName/param-name
      param-valuemy.WebApp/param-value
    /init-param
 /filter

 filter-mapping
  filter-nameMyWebApp/filter-name
  url-pattern/app/*/url-pattern
 /filter-mapping
 --
 View this message in context: 
 http://www.nabble.com/Migration-from-servlet-to-filter-always-serves-WebApplication.getHomePage%28%29-when-I-click-on-links-tp22298026p22298026.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



multiple feedback panels in same page

2009-03-02 Thread novotny

Hi,

I have two feedback panels in the same page and want to direct my info
message to only one of them. Any ideas on how to do this? Right now when I
do info(hello) hello shows up in both panels.

Thanks, Jason
-- 
View this message in context: 
http://www.nabble.com/multiple-feedback-panels-in-same-page-tp22298693p22298693.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: multiple feedback panels in same page

2009-03-02 Thread Jeremy Thomerson
there's a filter interface that you can use with the feedback panel that
allows you to filter just the messages you want in that panel.  i.e., you
could have a FBP by every form component and only show the messages
generated by that component.

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

On Mon, Mar 2, 2009 at 4:54 PM, novotny novo...@gridsphere.org wrote:


 Hi,

 I have two feedback panels in the same page and want to direct my info
 message to only one of them. Any ideas on how to do this? Right now when I
 do info(hello) hello shows up in both panels.

 Thanks, Jason
 --
 View this message in context:
 http://www.nabble.com/multiple-feedback-panels-in-same-page-tp22298693p22298693.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: multiple feedback panels in same page

2009-03-02 Thread novotny

Do you have some simple example where only a feedback message created from
the class that page that instantiates the feedbackpanel can display a
message... or maybe any example will do since I couldn't see any from
googling... :-)

Thanks again, Jason


novotny wrote:
 
 Hi,
 
 I have two feedback panels in the same page and want to direct my info
 message to only one of them. Any ideas on how to do this? Right now when I
 do info(hello) hello shows up in both panels.
 
 Thanks, Jason
 

-- 
View this message in context: 
http://www.nabble.com/multiple-feedback-panels-in-same-page-tp22298693p22298900.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: multiple feedback panels in same page

2009-03-02 Thread Jeremy Thomerson
Best thing for you to do would be browse the source of the
already-implemented-in-core implementations:

IFeedbackMessageFilter

All Known Implementing Classes:
ComponentFeedbackMessageFilter, ContainerFeedbackMessageFilter,
ErrorLevelFeedbackMessageFilter

On Mon, Mar 2, 2009 at 5:04 PM, novotny novo...@gridsphere.org wrote:


 Do you have some simple example where only a feedback message created from
 the class that page that instantiates the feedbackpanel can display a
 message... or maybe any example will do since I couldn't see any from
 googling... :-)

 Thanks again, Jason


 novotny wrote:
 
  Hi,
 
  I have two feedback panels in the same page and want to direct my info
  message to only one of them. Any ideas on how to do this? Right now when
 I
  do info(hello) hello shows up in both panels.
 
  Thanks, Jason
 

 --
 View this message in context:
 http://www.nabble.com/multiple-feedback-panels-in-same-page-tp22298693p22298900.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


Re: Migration from servlet to filter always serves WebApplication.getHomePage() when I click on links

2009-03-02 Thread mallet

Thanks for the quick response Igor.  I'm running OC4J... I changed the
mapping as you suggested but am now getting a 403/Directory browsing not
allowed.  Once I find a way to coerce oc4j into allowing directory browsing
I will post an update -- having some trouble getting my orion-web.xml
changes to take, but this is not a wicket issue.


igor.vaynberg wrote:
 
 try with /* mapping and see if it works
 
 you are not running this on websphere are you?
 
 -igor
 
 On Mon, Mar 2, 2009 at 2:12 PM, mallet ryanlahue...@gmail.com wrote:

 Hello,

 I am using 1.3 and a servlet for Wicket in my web.xml, which I've pasted
 below.  I am trying to change to using a Filter instead, which I also
 pasted
 below, but I get a weird behavior -- my WebApp.getHomePage() is served
 every
 time I click on a link.  The links work fine when I use the servlet, and
 I
 followed the migration guide (
 http://cwiki.apache.org/WICKET/migrate-13.html#Migrate-1.3-FilterinsteadofaServlet
 ), so I am not sure why I am getting this behavior.  Any ideas?

 ---
 !-- This works --
 servlet
  servlet-nameMyWebApp/servlet-name

 servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
    init-param
      param-nameapplicationClassName/param-name
      param-valuemy.WebApp/param-value
    /init-param
  load-on-startup1/load-on-startup
 /servlet

 servlet-mapping
  servlet-nameMyWebApp/servlet-name
  url-pattern/app/*/url-pattern
 /servlet-mapping

 ---
 !-- This does not work --
 filter
  filter-nameMyWebApp/filter-name
  filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
    init-param
      param-nameapplicationClassName/param-name
      param-valuemy.WebApp/param-value
    /init-param
 /filter

 filter-mapping
  filter-nameMyWebApp/filter-name
  url-pattern/app/*/url-pattern
 /filter-mapping
 --
 View this message in context:
 http://www.nabble.com/Migration-from-servlet-to-filter-always-serves-WebApplication.getHomePage%28%29-when-I-click-on-links-tp22298026p22298026.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/Migration-from-servlet-to-filter-always-serves-WebApplication.getHomePage%28%29-when-I-click-on-links-tp22298026p22299235.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: multiple feedback panels in same page

2009-03-02 Thread novotny


Great-- for those googling, this works:

final FormString form = new FormString(form);

ComponentFeedbackMessageFilter filter = new
ComponentFeedbackMessageFilter(form);

FeedbackPanel feedback = new FeedbackPanel(feedback, filter);
feedback.setEscapeModelStrings(false);
add(feedback);

  and then elsewhere in the code I can do:

 form.info(hello world);

Thanks!

Jeremy Thomerson-5 wrote:
 
 there's a filter interface that you can use with the feedback panel that
 allows you to filter just the messages you want in that panel.  i.e., you
 could have a FBP by every form component and only show the messages
 generated by that component.
 
 -- 
 Jeremy Thomerson
 http://www.wickettraining.com
 
 On Mon, Mar 2, 2009 at 4:54 PM, novotny novo...@gridsphere.org wrote:
 

 Hi,

 I have two feedback panels in the same page and want to direct my info
 message to only one of them. Any ideas on how to do this? Right now when
 I
 do info(hello) hello shows up in both panels.

 Thanks, Jason
 --
 View this message in context:
 http://www.nabble.com/multiple-feedback-panels-in-same-page-tp22298693p22298693.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/multiple-feedback-panels-in-same-page-tp22298693p22299635.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



Markup inheritance and composition mix

2009-03-02 Thread Dragut Razvan

Hi everyone,

I am new to wicket and I am encountering a problem when I am trying to mix
some panel inheritance and composition. I don't know whether I'm doing
something wrong or it is not supposed to work like that but hope you can
help with some advice. So here's my hierarchy :

Panel - A - B . This is an inheritance relationship where panel B extends
panel A which extends Panel.
Panel - C .

If I add panel B and panel C to a page everything works fine.

If I am trying to add panel C to panel B ( bPanelInstance.add(C) ) and add
panel B to the page then I am getting into problems (even if C is an
EmptyPanel instance) :

If I have 


[C content]


I get an exception saying that the end tag for panel b is missing, though
the end tag is there. Here's a sample of my exception where the name login
equates to b from my exmaple.

WicketMessage: close tag not found for tag: . Component: [MarkupContainer
[Component id = login]]

Root cause:

org.apache.wicket.markup.MarkupException: close tag not found for tag: .
Component: [MarkupContainer [Component id = login]]
at
org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:123)
at org.apache.wicket.Component.renderComponent(Component.java:2596)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521)
at org.apache.wicket.Component.render(Component.java:2421)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1537)
at org.apache.wicket.Page.onRender(Page.java:1522)
at org.apache.wicket.Component.render(Component.java:2421)
at org.apache.wicket.Page.renderPage(Page.java:926)

Adding a panel to another one works fine unless is one of my extended
panels, therefore I guess it's something that I am missing when I am
extending the panels. The way I am extending the panels is standard and only
I only override that required constructor and nothing else.

To summarize :
I have some markup inheritance with panels which works fine. I get the above
error when I am trying to add a panel using Panel's add method to my
extended panels. The html markup it's correct and it's not missing any tags.
Markup inheritance is done in the simplest way by only providing the panel
id constructor.

Do you have any idea why this happens ? If you think it should not happen,
you have tried it, you do not get into this and cannot reproduce the error,
can you provide a simple working example of this scenario ?

I am using Wicket 1.4-rc2.

Thanks very much,

Kind Regards,

Razvan
-- 
View this message in context: 
http://www.nabble.com/Markup-inheritance-and-composition-mix-tp22300927p22300927.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: Markup inheritance and composition mix

2009-03-02 Thread Dragut Razvan

there where seems that text is missing is 2 spans ... one contains the other
one. B contains C


Dragut Razvan wrote:
 
 Hi everyone,
 
 I am new to wicket and I am encountering a problem when I am trying to mix
 some panel inheritance and composition. I don't know whether I'm doing
 something wrong or it is not supposed to work like that but hope you can
 help with some advice. So here's my hierarchy :
 
 Panel - A - B . This is an inheritance relationship where panel B
 extends panel A which extends Panel.
 Panel - C .
 
 If I add panel B and panel C to a page everything works fine.
 
 If I am trying to add panel C to panel B ( bPanelInstance.add(C) ) and add
 panel B to the page then I am getting into problems (even if C is an
 EmptyPanel instance) :
 
 If I have 
 
 
 [C content]
 
 
 I get an exception saying that the end tag for panel b is missing,
 though the end tag is there. Here's a sample of my exception where the
 name login equates to b from my exmaple.
 
 WicketMessage: close tag not found for tag: . Component: [MarkupContainer
 [Component id = login]]
 
 Root cause:
 
 org.apache.wicket.markup.MarkupException: close tag not found for tag: .
 Component: [MarkupContainer [Component id = login]]
 at
 org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:123)
 at org.apache.wicket.Component.renderComponent(Component.java:2596)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521)
 at org.apache.wicket.Component.render(Component.java:2421)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399)
 at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1537)
 at org.apache.wicket.Page.onRender(Page.java:1522)
 at org.apache.wicket.Component.render(Component.java:2421)
 at org.apache.wicket.Page.renderPage(Page.java:926)
 
 Adding a panel to another one works fine unless is one of my extended
 panels, therefore I guess it's something that I am missing when I am
 extending the panels. The way I am extending the panels is standard and
 only I only override that required constructor and nothing else.
 
 To summarize :
 I have some markup inheritance with panels which works fine. I get the
 above error when I am trying to add a panel using Panel's add method to my
 extended panels. The html markup it's correct and it's not missing any
 tags. Markup inheritance is done in the simplest way by only providing the
 panel id constructor.
 
 Do you have any idea why this happens ? If you think it should not happen,
 you have tried it, you do not get into this and cannot reproduce the
 error, can you provide a simple working example of this scenario ?
 
 I am using Wicket 1.4-rc2.
 
 Thanks very much,
 
 Kind Regards,
 
 Razvan
 

-- 
View this message in context: 
http://www.nabble.com/Markup-inheritance-and-composition-mix-tp22300927p22300977.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: Markup inheritance and composition mix

2009-03-02 Thread Dragut Razvan

sorry for posting for the third time but need to make sure everything is
visible :


[C content]




Dragut Razvan wrote:
 
 there where seems that text is missing is 2 spans ... one contains the
 other one. B contains C
 
 
 Dragut Razvan wrote:
 
 Hi everyone,
 
 I am new to wicket and I am encountering a problem when I am trying to
 mix some panel inheritance and composition. I don't know whether I'm
 doing something wrong or it is not supposed to work like that but hope
 you can help with some advice. So here's my hierarchy :
 
 Panel - A - B . This is an inheritance relationship where panel B
 extends panel A which extends Panel.
 Panel - C .
 
 If I add panel B and panel C to a page everything works fine.
 
 If I am trying to add panel C to panel B ( bPanelInstance.add(C) ) and
 add panel B to the page then I am getting into problems (even if C is an
 EmptyPanel instance) :
 
 If I have 
 
 
 [C content]
 
 
 I get an exception saying that the end tag for panel b is missing,
 though the end tag is there. Here's a sample of my exception where the
 name login equates to b from my exmaple.
 
 WicketMessage: close tag not found for tag: . Component: [MarkupContainer
 [Component id = login]]
 
 Root cause:
 
 org.apache.wicket.markup.MarkupException: close tag not found for tag: .
 Component: [MarkupContainer [Component id = login]]
 at
 org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:123)
 at org.apache.wicket.Component.renderComponent(Component.java:2596)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521)
 at org.apache.wicket.Component.render(Component.java:2421)
 at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399)
 at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1537)
 at org.apache.wicket.Page.onRender(Page.java:1522)
 at org.apache.wicket.Component.render(Component.java:2421)
 at org.apache.wicket.Page.renderPage(Page.java:926)
 
 Adding a panel to another one works fine unless is one of my extended
 panels, therefore I guess it's something that I am missing when I am
 extending the panels. The way I am extending the panels is standard and
 only I only override that required constructor and nothing else.
 
 To summarize :
 I have some markup inheritance with panels which works fine. I get the
 above error when I am trying to add a panel using Panel's add method to
 my extended panels. The html markup it's correct and it's not missing any
 tags. Markup inheritance is done in the simplest way by only providing
 the panel id constructor.
 
 Do you have any idea why this happens ? If you think it should not
 happen, you have tried it, you do not get into this and cannot reproduce
 the error, can you provide a simple working example of this scenario ?
 
 I am using Wicket 1.4-rc2.
 
 Thanks very much,
 
 Kind Regards,
 
 Razvan
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Markup-inheritance-and-composition-mix-tp22300927p22301004.html
Sent from the Wicket - User mailing list archive at Nabble.com.


[off topic] was: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-02 Thread Jan Kriesten

 i also dont remember using a compound property model...can we remove that?

hehe - i haven't used that either.

+ 1 on removing cpm! ;-)

Best reagards, --- Jan.


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



Question re: style and variation

2009-03-02 Thread Ned Collyer

Hi,

I have browsed/read the previous threads regarding this topic and read the
wiki on styling and localisation - but its inconclusive as to how this
should be tackled.

I have my app running on multiple domains.

Each domain - when you hit it, sets a style into the session - so they
appear to be different apps.

So I can have something like

MyPanel_client1_en_AU.html

most of the time this will resolve to

MyPanel.html

Now, if I want to have a component implemented inside MyPanel, with its own
variant, then I was hoping to do this:

MyComponent_myVariant.html

However - the lookup I get is
MyComponent_myVariant_client1_en_AU.html
...
MyComponent_myVariant_client1.html
MyComponent.html

It treats myVariant_client1 as a single style value.

Now - the wiki says that this is expected (see
http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html)
- it also says that the possibilities are exponential ;)

How would I achieve variants working in conjunction with style?

Seems the touchpoints would be writing my own ResourceNameIterator, and
writing my own ResourceStreamLocator.

Surely there is a cleaner simpler way - It feels dirty having to add this
functionality, and the existence of ResourceNameIterator and
ResourceStreamLocator indicates that it has already been thought about a
fair amount.
-- 
View this message in context: 
http://www.nabble.com/Question-re%3A-style-and-variation-tp22302526p22302526.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: Question re: style and variation

2009-03-02 Thread Igor Vaynberg
the problem is, if you have MyPanel_foo.html, is foo the style, the
variation, or the locale?

perhaps we can identify the parts differently...needs some thinking.

-igor

On Mon, Mar 2, 2009 at 8:57 PM, Ned Collyer ned.coll...@gmail.com wrote:

 Hi,

 I have browsed/read the previous threads regarding this topic and read the
 wiki on styling and localisation - but its inconclusive as to how this
 should be tackled.

 I have my app running on multiple domains.

 Each domain - when you hit it, sets a style into the session - so they
 appear to be different apps.

 So I can have something like

 MyPanel_client1_en_AU.html

 most of the time this will resolve to

 MyPanel.html

 Now, if I want to have a component implemented inside MyPanel, with its own
 variant, then I was hoping to do this:

 MyComponent_myVariant.html

 However - the lookup I get is
 MyComponent_myVariant_client1_en_AU.html
 ...
 MyComponent_myVariant_client1.html
 MyComponent.html

 It treats myVariant_client1 as a single style value.

 Now - the wiki says that this is expected (see
 http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html)
 - it also says that the possibilities are exponential ;)

 How would I achieve variants working in conjunction with style?

 Seems the touchpoints would be writing my own ResourceNameIterator, and
 writing my own ResourceStreamLocator.

 Surely there is a cleaner simpler way - It feels dirty having to add this
 functionality, and the existence of ResourceNameIterator and
 ResourceStreamLocator indicates that it has already been thought about a
 fair amount.
 --
 View this message in context: 
 http://www.nabble.com/Question-re%3A-style-and-variation-tp22302526p22302526.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: Another borders scenario

2009-03-02 Thread Anton Veretennikov
The only way I found is to hold reference to added border inside to be
extended class and to do

getBorder().add(new Link(link));

in child constructor.

May be there exists better approach?

On Mon, Mar 2, 2009 at 11:41 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 Hello!

 I'm again with borders. May be I'm not using them right...
 Is everything okey with this mix of border and child:

 
 Block.html:
    wicket:panel
      div wicket:id=border
        wicket:child /
      /div
    /wicket:panel
 
 Block.java (extends Panel)
   add(new RoundedCornersPanelGrey(border));

 
 ChildBlock.html:
    wicket:extend
      a wicket:id=linklink/a
    /wicket:extend
 
 ChildBlock.java (extends Block)
   add(new Link(link)

 It doesn't work with border in Block (can't find component).
 It works only without border or with border in ChildBlock around a.

 -- Tony.


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



Repeater that disposses content after rendering?

2009-03-02 Thread Bert
Hi,

perhaps this does not make sense, but is there a Component that
discards all child components after the rendering, before
the serialization?

Would this make sense for components that render a large amount
of child's (tables with many cells) where all of them could be
reconstructed from a LDM in the repeater? Would this save space
in the page store / session?

Thanks in advance.

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



Re: Question re: style and variation

2009-03-02 Thread Ned Collyer

Yep :).

I at least 1 thought on this matter.

Currently, I have a webapp module - which will have my components in it,
and my components variants.

I have pushed all i18n into properties files - which is working thus far.

I allow the clients to customise their HTML from another folder - ie,
someplace on the filesystem outside of the war.

The lookup for html files for me .. should be

custom dir - myPanel_myVariant_myStyle.html
webapp.war - myPanel_myVariant_myStyle.html
custom dir - myPanel_myVariant.html 
webapp.war - myPanel_myVariant.html
custom dir - myPanel_myStyle.html 
webapp.war - myPanel_myStyle.html
custom dir - myPanel.html 
webapp.war - myPanel.html

I have a similar thing in place for properties files - and the result is
actually a merge of the properties between filesystem and classpath.

So many ways to skin a cat.  If only we could skin this cat with locale,
style AND variant - each optional.

More static count of delimiters? Folder structure? Different delimiters? 
Different data in filename? Contents of file?

The balancing act is keeping it simple - which its currently nailed, but not
quite as useful as it could be!!!


igor.vaynberg wrote:
 
 the problem is, if you have MyPanel_foo.html, is foo the style, the
 variation, or the locale?
 
 perhaps we can identify the parts differently...needs some thinking.
 
 -igor
 

-- 
View this message in context: 
http://www.nabble.com/Question-re%3A-style-and-variation-tp22302526p22303708.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