Re: [Wicket-user] Strategy to avoid new instances of pages and panels

2007-01-25 Thread Johan Compagner

yes thats already fixed for a few days now!
whiner!

johan


On 1/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


ajax requests shouldnt create versions anyways! did you fix that in 2.0yet?

-igor


On 1/24/07, Johan Compagner  [EMAIL PROTECTED] wrote:

 Ahh so you are using pages with state. (you use ajax)
 You just don't want to version them? Because for navigation you only use
 bookmarkable pages

 Just have one base page that does serVersioned(false)
 then all your pages are unversioned.

 johan


 On 1/24/07, dukejansen  [EMAIL PROTECTED] wrote:
 
 
  Sorry, guess I misunderstood. Still trying to wrap my head around
  these
  concepts.
 
  We have an app that is all bookmarkable pages so far, but we may
  encounter
  cases without them further down the road.
 
  But even for our bookmarkable pages, they may have lots of activity on
  them
  which is ajax actions which update the model behind the scenes. The
  way
  wicket wires components to their models is still very beneficial, as
  is the
  markup inheritance and java-centric development model, etc.
 
  As an example, we currently have a search results page which must
  always
  include all search criteria in the URL. So right now we have multiple
  panels
  with various search criteria. When the user updates the form elements
  and
  clicks search, we let wicket update all the backing models for us,
  then we
  assemble a new URL based on the updated models, and redirect to the
  new URL.
 
  This is instead of what might be a more familiar web model where the
  form
  data is simply submitted TO the new URL -- instead, we are submitting
  to
  wicket, letting wicket do all the updates to our backing state, and
  then we
  just construct a new URL to represent the new criteria and redirect to
  it.
 
  I won't deny that this is a bit wacky, but it was the only way I could
  find
  to ensure that my search criteria are included in the URL, but we
  still get
  wicket's free behavior of updating all model data. The trick is that
  we are
  abandoning the updated model data and redirecting to a new page...
 
  Not sure how well I've explained this. If there was a way to get
  wicket to
  simply use bookmarkable URLs when it does the form submission, I'd be
  happy
  to fall back on wicket.
 
  Also, FYI, we are using a lot of the Wicket ajax behavior for updating
  state
  which does NOT need to be in the URL.
 
  -Jason
 
 
  Johan Compagner wrote:
  
   But i was talking about the settings maxpageversions.
   thats not the same thing as how many there can be in the pagemap
   That depends on the page map that is used (in 1.3 or 2.0)
   AccessStackPageMap uses by default 5 because that is
  EvictionStrategy:
  
   private IPageMapEvictionStrategy pageMapEvictionStrategy = new
   LeastRecentlyAccessedEvictionStrategy(5);
  
   The PageMap of the secondlevelcache only has one active in the
  session.
  
   But you are making an app where all the urls are again bookmarkable
  and
   you
   don't use forms anywhere?
   or if you use for (with wicket 1.2) you handle the post in the
  constructor
   of the page itself?
   Thats not really where wicket is made for, your throw away pretty
  much 90%
   of what makes wicket.
  
   johan
  
  
  
   On 1/24/07, dukejansen [EMAIL PROTECTED] wrote:
  
  
   I think the current method name makes sense, but what is unclear is
 
   whether
   the CURRENT page is taking up one of the positions. I would think
  setting
   the max to 1 would ensure that the pagemap contains the current
  page and
   no
   others. If in fact the current page doesn't need room in the page
  map,
   then
   I guess 0 would make more sense. I think adding detail to the
  javadoc
   should
   be sufficient to clear up this ambiguity.
  
  
   Johan Compagner wrote:
   
set the max to 0 then the change list of the version manager will
   really
not
ntain anything
   
this is the test: (after the new one is added to the list)
   
// If stack is overfull, remove oldest entry
if (getVersions()  maxVersions)
{
expireOldestVersion();
}
   
What is logical? max versions is that also counting the current
  one?
What is the best English for this??
should we better express it like: setMaxPageUndoBuffer() ??
   
johan
   
   
On 1/24/07, dukejansen  [EMAIL PROTECTED] wrote:
   
   
   
Eelco Hillenius wrote:

 Well, every user (session) will use memory, correct. But only
  to a
 certain limit. Wicket 1.2 holds a couple of page/ versions in
  a
 session, and Wicket 2.0 by default only holds the current one.
  So
   the
 creation of a fresh instance (e.g. a bookmarkable page) will
  replace
 another one. Hence, how much memory you'll need is a simple
  function
 of the number of concurrent sessions times the size of your
  session
 and page(s) in it.

   
How can I instruct Wicket not to maintain the 

Re: [Wicket-user] Palette add selected option

2007-01-25 Thread Giltal

Hi

Can you please post your Palette and Recorder classes ...

Thanks



Nino Wael wrote:
 
 I think I have something somewhere...
 
 As I remember you need to update the recorder component...
 
 Below is only meant as a sniplet(notice the recreate model, which now are
 called from the palette onchange function)..
 
 
 
 package com.sas.jobindsats.ui.palette.component;
 
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
 
 import wicket.Component;
 import wicket.markup.html.form.HiddenField;
 import wicket.markup.html.form.IChoiceRenderer;
 import wicket.model.AbstractModel;
 import wicket.util.string.Strings;
 
 import com.sas.jobindsats.ui.palette.Palette;
 
 /**
  * Component to keep track of selections on the html side. Also used for
  * encoding and decoding those selections between html and java.
  * 
  * @author Igor Vaynberg ( ivaynberg )
  */
 public class Recorder extends HiddenField {
   private static final long serialVersionUID = 1L;
 
   private static final String[] EMPTY_IDS = new String[0];
 
   private final String seperator = #;
 
   /** conviniently maintained array of selected ids */
   private String[] ids;
 
   /** parent palette object */
   private Palette palette;
 
   /**
* @return parent Palette object
*/
   public Palette getPalette() {
   return palette;
   }
 
   /**
* @param id
*component id
* @param palette
*parent palette object
*/
   public Recorder(String id, Palette palette) {
   super(id);
   this.palette = palette;
 
   // BELOW ENSURES THAT IDS ARE NOT NULL
   reCreateModel();
   AbstractModel model = new AbstractModel() {
 
   public Object getObject(Component component) {
   StringBuffer modelStringBuffer = new 
 StringBuffer();
 
   for (int i = 0; ids.length  i; i++) {
   modelStringBuffer.append(ids[i]);
   if (i + 1  ids.length) {
   
 modelStringBuffer.append(seperator);
   }
   }
 
   // set model and update ids array
 
   String modelString = 
 modelStringBuffer.toString();
 
   return modelString;
 
   }
 
   public void setObject(Component component, Object 
 object) {
   updateIds((String) object);
   };
   };
   setModel(model);
   }
 
   protected void onValid() {
   super.onValid();
   updateIds();
   }
 
   /**
* @return iterator over selected choices
*/
   public Iterator getSelectedChoices() {
   IChoiceRenderer renderer = getPalette().getChoiceRenderer();
 
   if (ids.length == 0) {
   return Collections.EMPTY_LIST.iterator();
   }
 
   List selected = new ArrayList(ids.length);
   for (int i = 0; i  ids.length; i++) {
   Iterator it = getPalette().getChoices().iterator();
   while (it.hasNext()) {
   final Object choice = it.next();
   if (renderer.getIdValue(choice, 
 0).equals(ids[i])) {
   selected.add(choice);
   break;
   }
   }
   }
   return selected.iterator();
   }
 
   /**
* @return iterator over unselected choices
*/
   public Iterator getUnselectedChoices() {
   IChoiceRenderer renderer = getPalette().getChoiceRenderer();
   Collection choices = getPalette().getChoices();
 
   if (choices.size() - ids.length == 0) {
   return Collections.EMPTY_LIST.iterator();
   }
 
   List unselected = new ArrayList(Math
   .max(1, choices.size() - ids.length));
   Iterator it = choices.iterator();
   while (it.hasNext()) {
   final Object choice = it.next();
   final String choiceId = renderer.getIdValue(choice, 0);
   boolean selected = false;
   for (int i = 0; i  ids.length; i++) {
   if (ids[i].equals(choiceId)) {
   selected = true;
   break;
   }
   }

Re: [Wicket-user] Palette add selected option

2007-01-25 Thread Nino Wael
Heres the pastebin:

Palette:
http://pastebin.ca/327900

Recorder:
http://pastebin.ca/327901

-regards Nino
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Giltal
Sent: 25. januar 2007 11:18
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Palette add selected option


Hi

Can you please post your Palette and Recorder classes ...

Thanks



Nino Wael wrote:
 
 I think I have something somewhere...
 
 As I remember you need to update the recorder component...
 
 Below is only meant as a sniplet(notice the recreate model, which now are
 called from the palette onchange function)..
 
 
 
 package com.sas.jobindsats.ui.palette.component;
 
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
 
 import wicket.Component;
 import wicket.markup.html.form.HiddenField;
 import wicket.markup.html.form.IChoiceRenderer;
 import wicket.model.AbstractModel;
 import wicket.util.string.Strings;
 
 import com.sas.jobindsats.ui.palette.Palette;
 
 /**
  * Component to keep track of selections on the html side. Also used for
  * encoding and decoding those selections between html and java.
  * 
  * @author Igor Vaynberg ( ivaynberg )
  */
 public class Recorder extends HiddenField {
   private static final long serialVersionUID = 1L;
 
   private static final String[] EMPTY_IDS = new String[0];
 
   private final String seperator = #;
 
   /** conviniently maintained array of selected ids */
   private String[] ids;
 
   /** parent palette object */
   private Palette palette;
 
   /**
* @return parent Palette object
*/
   public Palette getPalette() {
   return palette;
   }
 
   /**
* @param id
*component id
* @param palette
*parent palette object
*/
   public Recorder(String id, Palette palette) {
   super(id);
   this.palette = palette;
 
   // BELOW ENSURES THAT IDS ARE NOT NULL
   reCreateModel();
   AbstractModel model = new AbstractModel() {
 
   public Object getObject(Component component) {
   StringBuffer modelStringBuffer = new 
 StringBuffer();
 
   for (int i = 0; ids.length  i; i++) {
   modelStringBuffer.append(ids[i]);
   if (i + 1  ids.length) {
   
 modelStringBuffer.append(seperator);
   }
   }
 
   // set model and update ids array
 
   String modelString = 
 modelStringBuffer.toString();
 
   return modelString;
 
   }
 
   public void setObject(Component component, Object 
 object) {
   updateIds((String) object);
   };
   };
   setModel(model);
   }
 
   protected void onValid() {
   super.onValid();
   updateIds();
   }
 
   /**
* @return iterator over selected choices
*/
   public Iterator getSelectedChoices() {
   IChoiceRenderer renderer = getPalette().getChoiceRenderer();
 
   if (ids.length == 0) {
   return Collections.EMPTY_LIST.iterator();
   }
 
   List selected = new ArrayList(ids.length);
   for (int i = 0; i  ids.length; i++) {
   Iterator it = getPalette().getChoices().iterator();
   while (it.hasNext()) {
   final Object choice = it.next();
   if (renderer.getIdValue(choice, 
 0).equals(ids[i])) {
   selected.add(choice);
   break;
   }
   }
   }
   return selected.iterator();
   }
 
   /**
* @return iterator over unselected choices
*/
   public Iterator getUnselectedChoices() {
   IChoiceRenderer renderer = getPalette().getChoiceRenderer();
   Collection choices = getPalette().getChoices();
 
   if (choices.size() - ids.length == 0) {
   return Collections.EMPTY_LIST.iterator();
   }
 
   List unselected = new ArrayList(Math
   .max(1, choices.size() - ids.length));
   Iterator it = choices.iterator();
   while (it.hasNext()) {
   final Object choice = it.next();
   final String choiceId = renderer.getIdValue(choice, 0);
 

[Wicket-user] Redirecting a page after a given time interval

2007-01-25 Thread tbt

Hi!

I'd like to know how to redirect a page automatically using wicket after a
given time interval. Currently i'm using the following java class to do this

Timer timer = new Timer();
timer.schedule(new TimerTask()
{
public void run()
{
 setResponsePage(new LogOutConfirmationPage());
}
}
, 1 * 60 * 1000);

This is supposed to redirect the page after 1 minute but Wicket is throwing
the following runtime exception There is no application attatched to the
current thread


Is there any way to do this using the wicket framework?


-- 
View this message in context: 
http://www.nabble.com/Redirecting-a-page-after-a-given-time-interval-tf3097478.html#a856
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Redirecting a page after a given time interval

2007-01-25 Thread Dipu
try this 
throw new RestartResponseAtInterceptPageException(YourPage.class);

Regards
Dipu
- Original Message - 
From: tbt [EMAIL PROTECTED]
To: wicket-user@lists.sourceforge.net
Sent: Thursday, January 25, 2007 11:11 AM
Subject: [Wicket-user] Redirecting a page after a given time interval


 
 Hi!
 
 I'd like to know how to redirect a page automatically using wicket after a
 given time interval. Currently i'm using the following java class to do this
 
 Timer timer = new Timer();
 timer.schedule(new TimerTask()
 {
 public void run()
 {
  setResponsePage(new LogOutConfirmationPage());
 }
 }
 , 1 * 60 * 1000);
 
 This is supposed to redirect the page after 1 minute but Wicket is throwing
 the following runtime exception There is no application attatched to the
 current thread
 
 
 Is there any way to do this using the wicket framework?
 
 
 -- 
 View this message in context: 
 http://www.nabble.com/Redirecting-a-page-after-a-given-time-interval-tf3097478.html#a856
 Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Redirecting a page after a given time interval

2007-01-25 Thread Matej Knopp
This won't work. Because you can call setResponsePage only during 
processing a request. When your code calls setResponsePage() there is no 
request, so it doesn't make sense to set response page.

I think what you want is AbstractAjaxTimerBehavior.

-Matej

tbt wrote:
 Hi!
 
 I'd like to know how to redirect a page automatically using wicket after a
 given time interval. Currently i'm using the following java class to do this
 
 Timer timer = new Timer();
   timer.schedule(new TimerTask()
   {
   public void run()
   {
setResponsePage(new LogOutConfirmationPage());
   }
   }
   , 1 * 60 * 1000);
 
 This is supposed to redirect the page after 1 minute but Wicket is throwing
 the following runtime exception There is no application attatched to the
 current thread
 
 
 Is there any way to do this using the wicket framework?
 
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dreamweaver

2007-01-25 Thread nilo.de.roock

Hi Otan,

... The good thing about wicket is that it's so easy to insert
wicket components into the markup by putting only the wicket:id and some
few wicket tags into the wicket markups that make it so Dreamweaver-friendly
and page authors-friendly. ... 

Exactly, it's -that- simple! And I have a use case so developing an
extension won't be difficult.

Anybody working on generating most of the wicket code from the html as far
as you know?

Kind regards,
nilo



Otan wrote:
 
 Just like what I said, I can't find any usecase to make a Dreamweaver
 extensions for Wicket.
 
 Who from your team do you expect will use Dreamweaver? The page authors,
 right? Page authors who are working with the markup concerns only the
 wicket:id attribute and some wicket tags. Databinder or something? Wicket
 is
 not JSF or JSP. The good thing about wicket is that it's so easy to insert
 wicket components into the markup by putting only the wicket:id and some
 few wicket tags into the wicket markups that make it so
 Dreamweaver-friendly
 and page authors-friendly.
 
 Just my 2 centavos.
 
 On 24/01/07, nilo.de.roock [EMAIL PROTECTED] wrote:


 I was just checking if someone has been doing some DW work. It seems no
 one
 has.

 Just thinking out loud whether I should develop something myself ...

 ( ... )

 I agree that a Dreamweaver extension for Wicket may seem useless or
 overkill
 if you are a Java developer. Developers prefer vi over DW, I suppose. But
 then ( Java ) developers usually don't excel in designing websites ( have
 a
 look at http://www.csszengarden.com/ to see what designers can do without
 even touching html, let alone if you give them the freedom to change html
 as
 well ). The explanation is probably that designers are better in
 communicating with end-users than developers are.

 I strongly propose seperating design ( including coding html and css )
 and
 technical work from architectural design to coding Java.  But I am
 getting
 off-topic, to the point: a Dreanweaver extension for Wicket.

 I am thinking of... ( in order of increasing complexity )

 #1 The tool should communicate clearly which components the Wicket
 framework
 has to offer, what they do and how they should be used.

 #2 The tool should take care of coding wicket:id attributes everywhere,
 either real-time or as a sort of pre-compile before handing over to the
 Java
 team.

 #3 The tool should validate code and naming style.

 #4 There should be an option to temporarily replace data components with
 dummy data.

 #5 A utility to wicket-ize existing sites. It should be possible to
 automatically generate the .html part of an existing ( data driven )
 website.

 I am always open to other ideas...

 I am currently studying Wicket / Databinder as a follow-up of a selection
 project. The product of my study will be a small site including a set of
 (
 customized ) how to's for developing wicket pages. I'll try to develop a
 Dreamweaver extension as well covering #1, #2 and if time permits #3 and
 /
 or #4. I have to dive into DW but if I remember well there is similar
 stuff
 for PHP templating so it shouldn't be too hard.

 I'll let you know when I have to something which I can show.
 - nilo de roock



 Otan wrote:
 
  Yeah, Wicket made it possible for us to use dreamweaver again for
  componentized webpages. Based from my experience, I can't find any
 usecase
  to make a Dreamweaver extensions for Wicket.
 
  On 24/01/07, nilo.de.roock [EMAIL PROTECTED] wrote:
 
 
  Wicket makes coding fun again! I don't have a Mac but I do have
  Dreamweaver
  8. It has been a while since I have been using Dreamweaver so I almost
  forgot what a superb program it still is. - ( I hope it is not against
  Wicket ethics to discuss commercial tool$. )
 
  I would like to ask if anyone else is on this list is using
 Dreamweaver
  to
  develop and communicate gui designs to users?
 
  If so, has anyone customized and / or extended Dreamweaver to develop
 and
  validate Wicket html?
 
  --
  View this message in context:
 
 http://www.nabble.com/-Wicket-user--Dreamweaver-tf3070690.html#a8535117
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
 share
  your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys - and earn 

Re: [Wicket-user] [OT] wicket expertise offered / Denmark

2007-01-25 Thread Nino Wael
Ok, hmm we actually have a cms that links to our wicket application, to get a 
full understanding of the application you must view it via the cms, but then it 
might be unclear when something is wicket and when its not.

Wicket application are presented inside the beautiful red circle:

http://img180.imageshack.us/my.php?image=frontpage2qt.jpg


How should I put it on the wiki? Im planning on both writing a user story and 
dumping somescreenshots.

Regards Nino


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
Sent: 23. januar 2007 17:39
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] [OT] wicket expertise offered / Denmark

Good luck. And a user story or some other reference on the application
you built with Wicket would be a very welcome addition to the WIKI!

Eelco


On 1/22/07, Nino Wael [EMAIL PROTECTED] wrote:




 Hi,



 I was wondering if any off you guys would be interested in some wicket
 expertise, located somewhere near Copenhagen-Frederikssund in Denmark. Our
 current wicket project are almost running out, and the next project im off
 to do aren't wicket in fact im not even sure it's java basedL So just
 thought I'll give the user list's peeps a chance of getting a wicket guyJ



 Regards Nino


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Palette add selected option

2007-01-25 Thread Giltal

Hi 

Did you change anything in the HTML files also ?
If so, please send them too

Thanks



Nino Wael wrote:
 
 Heres the pastebin:
 
 Palette:
 http://pastebin.ca/327900
 
 Recorder:
 http://pastebin.ca/327901
 
 -regards Nino
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Giltal
 Sent: 25. januar 2007 11:18
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Palette add selected option
 
 
 Hi
 
 Can you please post your Palette and Recorder classes ...
 
 Thanks
 
 
 
 Nino Wael wrote:
 
 I think I have something somewhere...
 
 As I remember you need to update the recorder component...
 
 Below is only meant as a sniplet(notice the recreate model, which now are
 called from the palette onchange function)..
 
 
 
 package com.sas.jobindsats.ui.palette.component;
 
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
 
 import wicket.Component;
 import wicket.markup.html.form.HiddenField;
 import wicket.markup.html.form.IChoiceRenderer;
 import wicket.model.AbstractModel;
 import wicket.util.string.Strings;
 
 import com.sas.jobindsats.ui.palette.Palette;
 
 /**
  * Component to keep track of selections on the html side. Also used for
  * encoding and decoding those selections between html and java.
  * 
  * @author Igor Vaynberg ( ivaynberg )
  */
 public class Recorder extends HiddenField {
  private static final long serialVersionUID = 1L;
 
  private static final String[] EMPTY_IDS = new String[0];
 
  private final String seperator = #;
 
  /** conviniently maintained array of selected ids */
  private String[] ids;
 
  /** parent palette object */
  private Palette palette;
 
  /**
   * @return parent Palette object
   */
  public Palette getPalette() {
  return palette;
  }
 
  /**
   * @param id
   *component id
   * @param palette
   *parent palette object
   */
  public Recorder(String id, Palette palette) {
  super(id);
  this.palette = palette;
 
  // BELOW ENSURES THAT IDS ARE NOT NULL
  reCreateModel();
  AbstractModel model = new AbstractModel() {
 
  public Object getObject(Component component) {
  StringBuffer modelStringBuffer = new 
 StringBuffer();
 
  for (int i = 0; ids.length  i; i++) {
  modelStringBuffer.append(ids[i]);
  if (i + 1  ids.length) {
  
 modelStringBuffer.append(seperator);
  }
  }
 
  // set model and update ids array
 
  String modelString = 
 modelStringBuffer.toString();
 
  return modelString;
 
  }
 
  public void setObject(Component component, Object 
 object) {
  updateIds((String) object);
  };
  };
  setModel(model);
  }
 
  protected void onValid() {
  super.onValid();
  updateIds();
  }
 
  /**
   * @return iterator over selected choices
   */
  public Iterator getSelectedChoices() {
  IChoiceRenderer renderer = getPalette().getChoiceRenderer();
 
  if (ids.length == 0) {
  return Collections.EMPTY_LIST.iterator();
  }
 
  List selected = new ArrayList(ids.length);
  for (int i = 0; i  ids.length; i++) {
  Iterator it = getPalette().getChoices().iterator();
  while (it.hasNext()) {
  final Object choice = it.next();
  if (renderer.getIdValue(choice, 
 0).equals(ids[i])) {
  selected.add(choice);
  break;
  }
  }
  }
  return selected.iterator();
  }
 
  /**
   * @return iterator over unselected choices
   */
  public Iterator getUnselectedChoices() {
  IChoiceRenderer renderer = getPalette().getChoiceRenderer();
  Collection choices = getPalette().getChoices();
 
  if (choices.size() - ids.length == 0) {
  return Collections.EMPTY_LIST.iterator();
  }
 
  List unselected = new ArrayList(Math
  .max(1, choices.size() - ids.length));
  Iterator it = choices.iterator();
  while (it.hasNext()) {
  final Object choice = it.next();
  final String 

[Wicket-user] SubmitLink to open a pop-up

2007-01-25 Thread Marc-Andre Houle

I though I had found the correct solution when I have seen a pop-up button
in the linkomatic example (
http://www.wicket-library.com/wicket-examples/linkomatic).

But, it was nearly only a button with a BookmarkablePageLink.  Right now, I
want a SubmitLink to open up a pop-up after some processing a text field.
Can it be done?  I checked and SubmitLink is a child of
wicket.markup.html.form.Buttonfile:///D:/API/wicket/wicket%201.2.4/wicket/markup/html/form/Button.htmlwhich
does not have a method to set popup setting.

Is there a quick way of doing this?

Thanks

Marc
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dreamweaver

2007-01-25 Thread Frank Silbermann
Anybody working on generating most of the wicket code from the html as
far as you know?

The wicket-oriented Java code contains the presentation logic.  A big
advantage of Wicket is keeping presentation logic _out_ of the HTML.
(HTML is not object oriented, so presentation logic embedded in the HTML
-- whether in the form of tag-nestings or scripts -- is difficult to
reuse.)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
nilo.de.roock
Sent: Thursday, January 25, 2007 6:30 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Dreamweaver


Hi Otan,

... The good thing about wicket is that it's so easy to insert wicket
components into the markup by putting only the wicket:id and some few
wicket tags into the wicket markups that make it so Dreamweaver-friendly
and page authors-friendly. ... 

Exactly, it's -that- simple! And I have a use case so developing an
extension won't be difficult.

Anybody working on generating most of the wicket code from the html as
far as you know?

Kind regards,
nilo



Otan wrote:
 
 Just like what I said, I can't find any usecase to make a Dreamweaver

 extensions for Wicket.
 
 Who from your team do you expect will use Dreamweaver? The page 
 authors, right? Page authors who are working with the markup concerns 
 only the wicket:id attribute and some wicket tags. Databinder or 
 something? Wicket is not JSF or JSP. The good thing about wicket is 
 that it's so easy to insert wicket components into the markup by 
 putting only the wicket:id and some few wicket tags into the wicket 
 markups that make it so Dreamweaver-friendly and page 
 authors-friendly.
 
 Just my 2 centavos.
 
 On 24/01/07, nilo.de.roock [EMAIL PROTECTED] wrote:


 I was just checking if someone has been doing some DW work. It seems 
 no one has.

 Just thinking out loud whether I should develop something myself ...

 ( ... )

 I agree that a Dreamweaver extension for Wicket may seem useless or 
 overkill if you are a Java developer. Developers prefer vi over DW, I

 suppose. But then ( Java ) developers usually don't excel in 
 designing websites ( have a look at http://www.csszengarden.com/ to 
 see what designers can do without even touching html, let alone if 
 you give them the freedom to change html as well ). The explanation 
 is probably that designers are better in communicating with end-users

 than developers are.

 I strongly propose seperating design ( including coding html and css 
 ) and technical work from architectural design to coding Java.  But I

 am getting off-topic, to the point: a Dreanweaver extension for 
 Wicket.

 I am thinking of... ( in order of increasing complexity )

 #1 The tool should communicate clearly which components the Wicket 
 framework has to offer, what they do and how they should be used.

 #2 The tool should take care of coding wicket:id attributes 
 everywhere, either real-time or as a sort of pre-compile before 
 handing over to the Java team.

 #3 The tool should validate code and naming style.

 #4 There should be an option to temporarily replace data components 
 with dummy data.

 #5 A utility to wicket-ize existing sites. It should be possible to

 automatically generate the .html part of an existing ( data driven ) 
 website.

 I am always open to other ideas...

 I am currently studying Wicket / Databinder as a follow-up of a 
 selection project. The product of my study will be a small site 
 including a set of ( customized ) how to's for developing wicket 
 pages. I'll try to develop a Dreamweaver extension as well covering 
 #1, #2 and if time permits #3 and / or #4. I have to dive into DW but

 if I remember well there is similar stuff for PHP templating so it 
 shouldn't be too hard.

 I'll let you know when I have to something which I can show.
 - nilo de roock



 Otan wrote:
 
  Yeah, Wicket made it possible for us to use dreamweaver again for 
  componentized webpages. Based from my experience, I can't find any
 usecase
  to make a Dreamweaver extensions for Wicket.
 
  On 24/01/07, nilo.de.roock [EMAIL PROTECTED] wrote:
 
 
  Wicket makes coding fun again! I don't have a Mac but I do have 
  Dreamweaver 8. It has been a while since I have been using 
  Dreamweaver so I almost forgot what a superb program it still is. 
  - ( I hope it is not against Wicket ethics to discuss commercial 
  tool$. )
 
  I would like to ask if anyone else is on this list is using
 Dreamweaver
  to
  develop and communicate gui designs to users?
 
  If so, has anyone customized and / or extended Dreamweaver to 
  develop
 and
  validate Wicket html?
 
  --
  View this message in context:
 
 http://www.nabble.com/-Wicket-user--Dreamweaver-tf3070690.html#a85351
 17
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
 
  Take Surveys. Earn Cash. Influence the Future of IT Join 
  SourceForge.net's Techsay panel and 

Re: [Wicket-user] Problem with cached HeaderContributor after upgrade from 1.2.3 to 1.2.4

2007-01-25 Thread Sean Sullivan

See:

http://www.mail-archive.com/wicket-dev@incubator.apache.org/msg01808.html

http://issues.apache.org/jira/browse/WICKET-188?page=all


On 1/25/07, Ryan [EMAIL PROTECTED] wrote:


I have been using a custom HeadearContributor to add css dynamically
to each page. This setup was working great in 1.2.3 but after I
upgraded to 1.2.4 I am seeing problems where sometimes the css is not
added to the page. After some debuging I have verified the
HeaderContributor is being added as a behavior to the page however the
css is not added to the rendered html.

Further digging revealed AbstractBehavior.cleanup() is never called so
my HeaderContributor is left in the thread local cache in
AbstractHeaderContributor. On http requests that go to another jetty
thread the css is added and everything works as expected. On
subsequent requests to that thread the css is not added. Is this a
bug?

A little more information about my setup may be helpful:

The following code is in MyPage.java:

public MyPage() {
add(new AbsolutePathCssContributor(/something.css));
add(HeaderContributor.forCss(../something.css));
}

I put both my custom contributor (AbsolutePathCssContributor) and the
built in contributor. Both are either added or not added depending on
the state of the thread that serves the request.

Am I doing something wrong or is there a problem in 1.2.4?

Thanks!

Ryan

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Problem with cached HeaderContributor after upgrade from 1.2.3 to 1.2.4

2007-01-25 Thread Ryan
I have been using a custom HeadearContributor to add css dynamically
to each page. This setup was working great in 1.2.3 but after I
upgraded to 1.2.4 I am seeing problems where sometimes the css is not
added to the page. After some debuging I have verified the
HeaderContributor is being added as a behavior to the page however the
css is not added to the rendered html.

Further digging revealed AbstractBehavior.cleanup() is never called so
my HeaderContributor is left in the thread local cache in
AbstractHeaderContributor. On http requests that go to another jetty
thread the css is added and everything works as expected. On
subsequent requests to that thread the css is not added. Is this a
bug?

A little more information about my setup may be helpful:

The following code is in MyPage.java:

public MyPage() {
add(new AbsolutePathCssContributor(/something.css));
add(HeaderContributor.forCss(../something.css));
}

I put both my custom contributor (AbsolutePathCssContributor) and the
built in contributor. Both are either added or not added depending on
the state of the thread that serves the request.

Am I doing something wrong or is there a problem in 1.2.4?

Thanks!

Ryan

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Redirecting a page after a given time interval

2007-01-25 Thread Eelco Hillenius
How about RedirectPage, using the waitBeforeRedirectInSeconds argument?

Eelco


On 1/25/07, Matej Knopp [EMAIL PROTECTED] wrote:
 This won't work. Because you can call setResponsePage only during
 processing a request. When your code calls setResponsePage() there is no
 request, so it doesn't make sense to set response page.

 I think what you want is AbstractAjaxTimerBehavior.

 -Matej

 tbt wrote:
  Hi!
 
  I'd like to know how to redirect a page automatically using wicket after a
  given time interval. Currently i'm using the following java class to do this
 
  Timer timer = new Timer();
timer.schedule(new TimerTask()
{
public void run()
{
 setResponsePage(new 
  LogOutConfirmationPage());
}
}
, 1 * 60 * 1000);
 
  This is supposed to redirect the page after 1 minute but Wicket is throwing
  the following runtime exception There is no application attatched to the
  current thread
 
 
  Is there any way to do this using the wicket framework?
 
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [wicket-user] change content of modalwindow

2007-01-25 Thread Matej Knopp
 From the source code it looks to me that you are calling window.show() 
from a handler invoked (indirectly) from a modal window.

You probably just want to replace the panel inside modal window, so 
setOutputMarkupId(true) on the panel and add only the panel to the ajax 
response.

-Matej

Paul Maarschalkerweerd wrote:
 the basepage:
 http://webical.svn.sourceforge.net/viewvc/webical/trunk/src/main/java/org/webical/web/components/CalendarDayViewPanel.java?view=markup
  
 http://webical.svn.sourceforge.net/viewvc/webical/trunk/src/main/java/org/webical/web/components/CalendarDayViewPanel.java?view=markup
 
 and the panels:
 http://webical.svn.sourceforge.net/viewvc/webical/trunk/src/main/java/org/webical/web/components/EditAllOrOneEventDecisionPanel.java?view=markup
  
 http://webical.svn.sourceforge.net/viewvc/webical/trunk/src/main/java/org/webical/web/components/EditAllOrOneEventDecisionPanel.java?view=markup
 http://webical.svn.sourceforge.net/viewvc/webical/trunk/src/main/java/org/webical/web/components/EventAddEditPanel.java?view=markup
  
 http://webical.svn.sourceforge.net/viewvc/webical/trunk/src/main/java/org/webical/web/components/EventAddEditPanel.java?view=markup
 
 Here are the snipplets:
 
 This is the panel where the user clicks on an event, the details are 
 shown in the modalwindow
 
 if(!event.isAllDay()  event.getDtStart() != null  event.getDtEnd () 
 != null){
 YUICalendarEvent yuiCalendarEvent = new 
 YUICalendarEvent(DAY_VIEW_YUI_EVENT_OBJECT){

 private static final long serialVersionUID = 1L;
 
 @Override
 public void onEventClicked(AjaxRequestTarget target) {
 eventSelectionListener.eventSelected(event, 
 false, EventSelectionListener.DEFAULT_ALL_EVENTS, 
 gregorianCalendar,target, modalWindow);
 }
 };
 
 
 this is the eventSelected method from the basepage
 
 public void eventSelected(Event event, boolean edit, int editAmount, 
 GregorianCalendar calendar, AjaxRequestTarget target, ModalWindow 
 modalWindow) {


 modalWindow.setContent(new 
 EditAllOrOneEventDecisionPanel(modalWindow.getContentId(), event, 
 getEventSelectionListener(),
 getPanelChangeLister(), calendar, 
 modalWindow));
 modalWindow.show(target);
 

 
 }
 
 this is the part from the Panel where the content should be changed :
 
 ...
 AjaxLink editOnlyThisEventLink = new 
 AjaxLink(EVENT_EDIT_ONLY_THIS_INSTANCE_MARKUP_ID){
 
 private static final long serialVersionUID = 1L;
 
 @Override
 public void onClick(AjaxRequestTarget target) {
 eventSelectionListener.eventSelected(event, true, 
 EventSelectionListener.EDIT_ONE_EVENT, calendar, target, modalWindow);


 }
 };
 ...
 
 and back on the basepage an event is selected an shown in a edit panel :
 
 public void eventSelected(Event event, boolean edit, int editAmount, 
 GregorianCalendar calendar, AjaxRequestTarget target, ModalWindow 
 modalWindow) {
 ...
 modalWindow.setContent(new EventAddEditPanel( 
 modalWindow.getContentId(),
 
 getAddEditFormListener(get(modalWindow.getContentId())),event,
 
 ((WebicalSession)BasePage.this.getSession()).getUser(), false, new 
 GregorianCalendar(), getEventSelectionListener()));
 modalWindow.show(target);
 ...
 }
 
 
 
 Hope this is useful!
 
 Paul
 
 
 
 
 
 On 1/24/07, *Igor Vaynberg * [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 how about some code, sounds like you are maybe opening another modal
 window with one already open?
 
 -igor
 
 On 1/24/07, * Paul Maarschalkerweerd*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 Hi,
 
 I want to change the content of a modalwindow, to do this I use
 the method setContent. But the strange thing is that a new
 window appears in front of the old one. I don't understand why
 is that.
 
 I create a modalwindow on a page, set the content with the
 setContent method and open it with an ajaxlink. I pass the
 modalWindow to the new panel via the contructor. The new panel
 has also an ajaxlink where I set the new content. When I click
 that link a new modalWindow appears in de the screen in front of
 the first.
 
 Maybe this isn't the right way to do it.
 
 Can somebody help me with this problem?
 
 Thnx
 
 Paul
 
 
 
 
  
 
 
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
 

Re: [Wicket-user] DatePicker and ModalWindow

2007-01-25 Thread Scott Swank

Does anyone know (without digging, I can dig myself if necessary) which of
the css files in

 /wicket/extensions/markup/html/datapicker/style

I need work make the z-index changes in?  I'm working back  forth between
the js  the css trying to figure out how this all fits together.

Thank you,
Scott

On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote:


Now you're just going to make me lazier.  :)  Thanks.

On 1/24/07, Prashant Khanal [EMAIL PROTECTED]  wrote:

 Well use this  in ur css file:
 .calendar, .calendar table{
 z-index: 10[ or suitable value];
 }
 This will make your datepicker appear in front of the
 modal window.

 --- Scott Swank [EMAIL PROTECTED] wrote:

  Note to self: must learn css better.  Thanks.
 
  On 1/23/07, Igor Vaynberg [EMAIL PROTECTED]
  wrote:
  
   you have to use css to set a higher zvalue for the
  datepicker popup
  
   -igor
  
  
   On 1/23/07, Scott Swank  [EMAIL PROTECTED]
  wrote:
  
I put a DatePicker in a form that is in a
  ModalWindow.  The DatePicker
rendered below the ModalWindow (z height) and
  was not active because only
the modal window was active.  Is this anything
  like a known issue?  I search
the history of this list and the wiki without
  success.
   
Thanks,
Scott
   
--
Scott Swank
reformed mathematician
   
   
 

 -
Take Surveys. Earn Cash. Influence the Future of
  IT
Join SourceForge.net's Techsay panel and you'll
  get the chance to share
your
opinions on IT  business topics through brief
  surveys - and earn cash
   
   
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

   
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   
  
  
 

 -
   Take Surveys. Earn Cash. Influence the Future of
  IT
   Join SourceForge.net's Techsay panel and you'll
  get the chance to share
   your
   opinions on IT  business topics through brief
  surveys - and earn cash
  
 

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
  --
  Scott Swank
  reformed mathematician
  

 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get
  the chance to share your
  opinions on IT  business topics through brief
  surveys - and earn cash
 

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 




 


 No need to miss a message. Get email on-the-go
 with Yahoo! Mail for Mobile. Get started.
 http://mobile.yahoo.com/mail

 -

 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Scott Swank
reformed mathematician





--
Scott Swank
reformed mathematician
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SubmitLink to open a pop-up

2007-01-25 Thread Igor Vaynberg

create the url to the popup using requestcycle.urlfor and then output
javascript that will open the popup using window.open

-igor


On 1/25/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:


I though I had found the correct solution when I have seen a pop-up button
in the linkomatic example 
(http://www.wicket-library.com/wicket-examples/linkomatic
).

But, it was nearly only a button with a BookmarkablePageLink.  Right now,
I want a SubmitLink to open up a pop-up after some processing a text field.
Can it be done?  I checked and SubmitLink is a child of
wicket.markup.html.form.Button which does not have a method to set popup
setting.

Is there a quick way of doing this?

Thanks

Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DatePicker and ModalWindow

2007-01-25 Thread Matej Knopp
Just put this into your markup

  wicket:head
  style type=text/css
  div.calendar {
  z-index: 3 !important;
  }
 /style
/wicket:head

-Matej

Scott Swank wrote:
 Does anyone know (without digging, I can dig myself if necessary) which 
 of the css files in
 
   /wicket/extensions/markup/html/datapicker/style
 
 I need work make the z-index changes in?  I'm working back  forth 
 between the js  the css trying to figure out how this all fits together.
 
 Thank you,
 Scott
 
 On 1/24/07, *Scott Swank* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 Now you're just going to make me lazier.  :)  Thanks.
 
 
 On 1/24/07, *Prashant Khanal*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote:
 
 Well use this  in ur css file:
 .calendar, .calendar table{
 z-index: 10[ or suitable value];
 }
 This will make your datepicker appear in front of the
 modal window.
 
 --- Scott Swank  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
   Note to self: must learn css better.  Thanks.
 
   On 1/23/07, Igor Vaynberg [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   wrote:
   
you have to use css to set a higher zvalue for the
   datepicker popup
   
-igor
   
   
On 1/23/07, Scott Swank  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   wrote:
   
 I put a DatePicker in a form that is in a
   ModalWindow.  The DatePicker
 rendered below the ModalWindow (z height) and
   was not active because only
 the modal window was active.  Is this anything
   like a known issue?  I search
 the history of this list and the wiki without
   success.

 Thanks,
 Scott

 --
 Scott Swank
 reformed mathematician


 
 
 -
 Take Surveys. Earn Cash. Influence the Future of
   IT
 Join SourceForge.net's Techsay panel and you'll
   get the chance to share
 your
 opinions on IT  business topics through brief
   surveys - and earn cash


 
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net

 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user



   
   
 
 
 -
Take Surveys. Earn Cash. Influence the Future of
   IT
Join SourceForge.net's Techsay panel and you'll
   get the chance to share
your
opinions on IT  business topics through brief
   surveys - and earn cash
   
 
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   
 
 
   --
   Scott Swank
   reformed mathematician
   
 
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get
   the chance to share your
   opinions on IT  business topics through brief
   surveys - and earn cash
 
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user

Re: [Wicket-user] SubmitLink to open a pop-up

2007-01-25 Thread Marc-Andre Houle

It make sense, but I need the textField value before calling the javascript
since there will be a page paramters to add.

I'm not sure I understand how I'm going to make that so it can be done
correctly...

Marc

On 1/25/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


create the url to the popup using requestcycle.urlfor and then output
javascript that will open the popup using window.open

-igor


On 1/25/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:

 I though I had found the correct solution when I have seen a pop-up
 button in the linkomatic example ( 
http://www.wicket-library.com/wicket-examples/linkomatic
 ).

 But, it was nearly only a button with a BookmarkablePageLink.  Right
 now, I want a SubmitLink to open up a pop-up after some processing a text
 field.  Can it be done?  I checked and SubmitLink is a child of
 wicket.markup.html.form.Button which does not have a method to set popup
 setting.

 Is there a quick way of doing this?

 Thanks

 Marc


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SubmitLink to open a pop-up

2007-01-25 Thread Igor Vaynberg

class popperupper extends abstractbehavior implements iheadercontributor {
 // some logic to only output the script once
}

button { onsubmit() { TextField tf=; String value=tf.getModelObject();
add(new popperupper()); }}

-igor



On 1/25/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:


It make sense, but I need the textField value before calling the
javascript since there will be a page paramters to add.

I'm not sure I understand how I'm going to make that so it can be done
correctly...

Marc

On 1/25/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 create the url to the popup using requestcycle.urlfor and then output
 javascript that will open the popup using window.open

 -igor


 On 1/25/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:

  I though I had found the correct solution when I have seen a pop-up
  button in the linkomatic example ( 
http://www.wicket-library.com/wicket-examples/linkomatic
  ).
 
  But, it was nearly only a button with a BookmarkablePageLink.  Right
  now, I want a SubmitLink to open up a pop-up after some processing a text
  field.  Can it be done?  I checked and SubmitLink is a child of
  wicket.markup.html.form.Button which does not have a method to set
  popup setting.
 
  Is there a quick way of doing this?
 
  Thanks
 
  Marc
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys - and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DatePicker and ModalWindow

2007-01-25 Thread Scott Swank

Thanks.  I just finished wiring it into theme.css -- this is much nicer.

On 1/25/07, Matej Knopp [EMAIL PROTECTED] wrote:


Just put this into your markup

  wicket:head
  style type=text/css
  div.calendar {
  z-index: 3 !important;
  }
 /style
/wicket:head

-Matej

Scott Swank wrote:
 Does anyone know (without digging, I can dig myself if necessary) which
 of the css files in

   /wicket/extensions/markup/html/datapicker/style

 I need work make the z-index changes in?  I'm working back  forth
 between the js  the css trying to figure out how this all fits
together.

 Thank you,
 Scott

 On 1/24/07, *Scott Swank* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 Now you're just going to make me lazier.  :)  Thanks.


 On 1/24/07, *Prashant Khanal*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote:

 Well use this  in ur css file:
 .calendar, .calendar table{
 z-index: 10[ or suitable value];
 }
 This will make your datepicker appear in front of the
 modal window.

 --- Scott Swank  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

   Note to self: must learn css better.  Thanks.
 
   On 1/23/07, Igor Vaynberg [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   wrote:
   
you have to use css to set a higher zvalue for the
   datepicker popup
   
-igor
   
   
On 1/23/07, Scott Swank  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   wrote:
   
 I put a DatePicker in a form that is in a
   ModalWindow.  The DatePicker
 rendered below the ModalWindow (z height) and
   was not active because only
 the modal window was active.  Is this anything
   like a known issue?  I search
 the history of this list and the wiki without
   success.

 Thanks,
 Scott

 --
 Scott Swank
 reformed mathematician


 

-
 Take Surveys. Earn Cash. Influence the Future of
   IT
 Join SourceForge.net's Techsay panel and you'll
   get the chance to share
 your
 opinions on IT  business topics through brief
   surveys - and earn cash


 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net

 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user



   
   
 

-
Take Surveys. Earn Cash. Influence the Future of
   IT
Join SourceForge.net's Techsay panel and you'll
   get the chance to share
your
opinions on IT  business topics through brief
   surveys - and earn cash
   
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   
 
 
   --
   Scott Swank
   reformed mathematician
   

-
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get
   the chance to share your
   opinions on IT  business topics through brief
   surveys - and earn cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 

Re: [Wicket-user] SubmitLink to open a pop-up

2007-01-25 Thread Marc-Andre Houle

This seem's good but not exactly what I wanted.  Too complicated and it make
a refresh of the page (I used some ajax and then, it does not reload
exactly the same.)  I continued searching and find that I could do this
and since it work fine, why not :
popupSettings.setTarget (href +  + 'amp;searchfield=' + document. +
searchForm.getId () + . + textField.getId () + .value);

I don't know if it will be broke sometime (probably) but at least, it work
for now.

Thanks.

Marc

On 1/25/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


class popperupper extends abstractbehavior implements iheadercontributor {
  // some logic to only output the script once
}

button { onsubmit() { TextField tf=; String value=tf.getModelObject();
add(new popperupper()); }}

-igor



On 1/25/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:

 It make sense, but I need the textField value before calling the
 javascript since there will be a page paramters to add.

 I'm not sure I understand how I'm going to make that so it can be done
 correctly...

 Marc

 On 1/25/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 
  create the url to the popup using requestcycle.urlfor and then output
  javascript that will open the popup using window.open
 
  -igor
 
 
  On 1/25/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:
 
   I though I had found the correct solution when I have seen a pop-up
   button in the linkomatic example ( 
http://www.wicket-library.com/wicket-examples/linkomatic
   ).
  
   But, it was nearly only a button with a BookmarkablePageLink.  Right
   now, I want a SubmitLink to open up a pop-up after some processing a text
   field.  Can it be done?  I checked and SubmitLink is a child of
   wicket.markup.html.form.Button which does not have a method to set
   popup setting.
  
   Is there a quick way of doing this?
  
   Thanks
  
   Marc
  
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
   share your
   opinions on IT  business topics through brief surveys - and earn
   cash
  
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys - and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Redirecting a page after a given time interval

2007-01-25 Thread Matej Knopp
Sure, you can do that but that way you can't affect the redirect on 
server side.

-Matej

Eelco Hillenius wrote:
 How about RedirectPage, using the waitBeforeRedirectInSeconds argument?
 
 Eelco
 
 
 On 1/25/07, Matej Knopp [EMAIL PROTECTED] wrote:
 This won't work. Because you can call setResponsePage only during
 processing a request. When your code calls setResponsePage() there is no
 request, so it doesn't make sense to set response page.

 I think what you want is AbstractAjaxTimerBehavior.

 -Matej

 tbt wrote:
 Hi!

 I'd like to know how to redirect a page automatically using wicket after a
 given time interval. Currently i'm using the following java class to do this

 Timer timer = new Timer();
   timer.schedule(new TimerTask()
   {
   public void run()
   {
setResponsePage(new 
 LogOutConfirmationPage());
   }
   }
   , 1 * 60 * 1000);

 This is supposed to redirect the page after 1 minute but Wicket is throwing
 the following runtime exception There is no application attatched to the
 current thread


 Is there any way to do this using the wicket framework?



 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DatePicker and ModalWindow

2007-01-25 Thread Igor Vaynberg

dont need to do it in that file, just drop the provided css into your page

-igor


On 1/25/07, Scott Swank [EMAIL PROTECTED] wrote:


Does anyone know (without digging, I can dig myself if necessary) which of
the css files in

  /wicket/extensions/markup/html/datapicker/style

I need work make the z-index changes in?  I'm working back  forth between
the js  the css trying to figure out how this all fits together.

Thank you,
Scott

On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote:

 Now you're just going to make me lazier.  :)  Thanks.

 On 1/24/07, Prashant Khanal  [EMAIL PROTECTED]  wrote:
 
  Well use this  in ur css file:
  .calendar, .calendar table{
  z-index: 10[ or suitable value];
  }
  This will make your datepicker appear in front of the
  modal window.
 
  --- Scott Swank  [EMAIL PROTECTED] wrote:
 
   Note to self: must learn css better.  Thanks.
  
   On 1/23/07, Igor Vaynberg [EMAIL PROTECTED]
   wrote:
   
you have to use css to set a higher zvalue for the
   datepicker popup
   
-igor
   
   
On 1/23/07, Scott Swank  [EMAIL PROTECTED] 
   wrote:
   
 I put a DatePicker in a form that is in a
   ModalWindow.  The DatePicker
 rendered below the ModalWindow (z height) and
   was not active because only
 the modal window was active.  Is this anything
   like a known issue?  I search
 the history of this list and the wiki without
   success.

 Thanks,
 Scott

 --
 Scott Swank
 reformed mathematician


  
 
  -
 Take Surveys. Earn Cash. Influence the Future of
   IT
 Join SourceForge.net's Techsay panel and you'll
   get the chance to share
 your
 opinions on IT  business topics through brief
   surveys - and earn cash


  
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

  
  https://lists.sourceforge.net/lists/listinfo/wicket-user



   
   
  
 
  -
Take Surveys. Earn Cash. Influence the Future of
   IT
Join SourceForge.net's Techsay panel and you'll
   get the chance to share
your
opinions on IT  business topics through brief
   surveys - and earn cash
   
  
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
  
  https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   
  
  
   --
   Scott Swank
   reformed mathematician
   
 
  -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get
   the chance to share your
   opinions on IT  business topics through brief
   surveys - and earn cash
  
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
  ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
  https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 
 
  

 
  No need to miss a message. Get email on-the-go
  with Yahoo! Mail for Mobile. Get started.
  http://mobile.yahoo.com/mail
 
  -
 
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys - and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



 --
 Scott Swank
 reformed mathematician




--
Scott Swank
reformed mathematician
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash

Re: [Wicket-user] SubmitLink to open a pop-up

2007-01-25 Thread Igor Vaynberg

i was under the impression that you wanted to open the new page _after_ the
form has been submitted. whatever, if it works for you then good!

-igor


On 1/25/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:


This seem's good but not exactly what I wanted.  Too complicated and it
make a refresh of the page (I used some ajax and then, it does not reload
exactly the same.)  I continued searching and find that I could do this
and since it work fine, why not :
popupSettings.setTarget (href +  + 'amp;searchfield=' + document. +
searchForm.getId () + . + textField.getId () + .value);

I don't know if it will be broke sometime (probably) but at least, it work
for now.

Thanks.

Marc

On 1/25/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 class popperupper extends abstractbehavior implements iheadercontributor
 {
   // some logic to only output the script once
 }

 button { onsubmit() { TextField tf=; String value=tf.getModelObject();
 add(new popperupper()); }}

 -igor



 On 1/25/07, Marc-Andre Houle  [EMAIL PROTECTED] wrote:
 
  It make sense, but I need the textField value before calling the
  javascript since there will be a page paramters to add.
 
  I'm not sure I understand how I'm going to make that so it can be done
  correctly...
 
  Marc
 
  On 1/25/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  
   create the url to the popup using requestcycle.urlfor and then
   output javascript that will open the popup using window.open
  
   -igor
  
  
   On 1/25/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:
  
I though I had found the correct solution when I have seen a
pop-up button in the linkomatic example ( 
http://www.wicket-library.com/wicket-examples/linkomatic
).
   
But, it was nearly only a button with a BookmarkablePageLink.
Right now, I want a SubmitLink to open up a pop-up after some 
processing a
text field.  Can it be done?  I checked and SubmitLink is a child of
wicket.markup.html.form.Button which does not have a method to set
popup setting.
   
Is there a quick way of doing this?
   
Thanks
   
Marc
   
   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT  business topics through brief surveys - and earn
cash
   

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   
  
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
   share your
   opinions on IT  business topics through brief surveys - and earn
   cash
  
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys - and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get 

Re: [Wicket-user] Problem with cached HeaderContributor after upgrade from 1.2.3 to 1.2.4

2007-01-25 Thread Ryan
Thanks that is exactly what I was looking for. I built my own jar out
of the branch and the problem is resolved. I look forward to 1.2.5.

Ryan

On 1/25/07, Sean Sullivan [EMAIL PROTECTED] wrote:

 See:


 http://www.mail-archive.com/wicket-dev@incubator.apache.org/msg01808.html

 http://issues.apache.org/jira/browse/WICKET-188?page=all



 On 1/25/07, Ryan [EMAIL PROTECTED] wrote:
  I have been using a custom HeadearContributor to add css dynamically
  to each page. This setup was working great in 1.2.3 but after I
  upgraded to 1.2.4 I am seeing problems where sometimes the css is not
  added to the page. After some debuging I have verified the
  HeaderContributor is being added as a behavior to the page however the
  css is not added to the rendered html.
 
  Further digging revealed AbstractBehavior.cleanup() is never called so
  my HeaderContributor is left in the thread local cache in
  AbstractHeaderContributor. On http requests that go to another jetty
  thread the css is added and everything works as expected. On
  subsequent requests to that thread the css is not added. Is this a
  bug?
 
  A little more information about my setup may be helpful:
 
  The following code is in MyPage.java:
 
  public MyPage() {
  add(new AbsolutePathCssContributor(/something.css));
  add(HeaderContributor.forCss(../something.css));
  }
 
  I put both my custom contributor (AbsolutePathCssContributor) and the
  built in contributor. Both are either added or not added depending on
  the state of the thread that serves the request.
 
  Am I doing something wrong or is there a problem in 1.2.4?
 
  Thanks!
 
  Ryan
 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DatePicker and ModalWindow

2007-01-25 Thread Scott Swank

This seems to be a bit nastier than that -- unless I'm missing something
simple.  This goes at the top of the page:

 wicket:head
style type=text/css
div.calendar {
z-index: 3 !important;
}
   /style
/wicket:head

However the js in the DatePicker generates its own css that overrides the
css the above.  However, the following approach allows the css to override
the js' style.

DatePicker dp=new DatePicker(checkOutPicker, checkOut,ds);
dp.add(HeaderContributor.forCss(../../css/cyllenius_cal.css));
add( dp );

Cheers,
Scott
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wicket-bench and the html editor

2007-01-25 Thread Loren Rosen

I've got a wicket-bench question which I'll ask here since the wicket-bench
mailing
list seems moribund.

If you don't set a default html editor, what should happen in the html tab
of a wicket-bench
editor window? What I get is what appears to be a bastardized java editor
which behaves
inappropriately for html (for example, source - toggle comment makes java
syntax comments).

Now the installation instructions say to set an explicit default html editor
in the eclipse preferences.
However I found at least one place in the wicket-bench code that directly
assumes that the java editor is
used for editing html files. I assume that's a bug.
-- 
View this message in context: 
http://www.nabble.com/wicket-bench-and-the-html-editor-tf3120326.html#a8644993
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket-bench and the html editor

2007-01-25 Thread Igor Vaynberg

On 1/25/07, Loren Rosen [EMAIL PROTECTED] wrote:



Now the installation instructions say to set an explicit default html
editor
in the eclipse preferences.
However I found at least one place in the wicket-bench code that directly
assumes that the java editor is
used for editing html files. I assume that's a bug.



weird, but yes sounds like a bug. can you create a patch? do you want to
work on the plugin? neither i nor joni have had time lately :(

-igor


--

View this message in context:
http://www.nabble.com/wicket-bench-and-the-html-editor-tf3120326.html#a8644993
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket-bench and the html editor

2007-01-25 Thread Loren Rosen

Yes, I can create a patch. It's a one-line change (well, two lines if you
count changing
the class imports).

(The code in question assumes the editor is a CompilationUnitEditor when in
fact
it suffices to assume an AbstractTextEditor. My guess is it was copied from
some
Eclipse documentation example and then modified.)

I'd be happy to work on the plug-in. I need to refresh my plug-in writing
skills anyway.


igor.vaynberg wrote:
 
 On 1/25/07, Loren Rosen [EMAIL PROTECTED] wrote:


 Now the installation instructions say to set an explicit default html
 editor
 in the eclipse preferences.
 However I found at least one place in the wicket-bench code that directly
 assumes that the java editor is
 used for editing html files. I assume that's a bug.
 
 
 weird, but yes sounds like a bug. can you create a patch? do you want to
 work on the plugin? neither i nor joni have had time lately :(
 
 -igor
 
 
 --
 View this message in context:
 http://www.nabble.com/wicket-bench-and-the-html-editor-tf3120326.html#a8644993
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/wicket-bench-and-the-html-editor-tf3120326.html#a8645151
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user