Re: [Wicket-user] Issue about working with designer

2006-12-07 Thread Carfield Yim
In fact I've using this, but look like if I use Border for this case,
then I need to wrap that border wherever I going to add a panel. Is
that what you mean?

Of course I can do that, may be better than extending Panel, but I
wish there is something more elegant

On 12/7/06, Erik van Oosten [EMAIL PROTECTED] wrote:
 Hi Carfield,

 Did you already look whether Border fits your need?

 Regards,
   Erik.


 Carfield Yim schreef:
  One issue I encounter now is the designer have problem of locating
  HTML template that he like to edit so everytime he need to ask me
  where is the template is.
 
  As most the the component I use is Panel, so I've thought of extending
  Panel to a custom BasePanel and just add one label at the top to show
  the classname for development mode. However, if I doing that I have to
  modify every templates to have that label. Which don't sound like a
  good approach. By the way I would like to wrap the panel with outlines
  so the designer can see region of that panel taken.
 
  Just wonder if wicket already support this kind of debug mode? Or will
  anyone have any better suggestion?
 

 --
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.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] ListChoice changes appearance from dropdown to listbox

2006-12-07 Thread TH Lim

For 1st example, the size attribute is  size=8 . 


Johan Compagner wrote:
 
 hmm we don't seem to set the default max rows in every constructor
 strange thing is that in the first example you give we also don't do it.
 So
 max rows is still 0
 
 Can you check what is exactly generated (what the size attribute is)
 
 johan
 
 
 On 12/6/06, TH Lim [EMAIL PROTECTED] wrote:


 I came to the same conclusion as Nino. What I have observed was this,

 1. For,

 ListChoice selection = new ListChoice(disciplineSelection, new Model(),
 disciplines)

 , a list box is created in the web page.

 2. For,

 ListChoice selection = new ListChoice(disciplineSelection, disciplines)

 , a dropdown box is created in the web page.

 3. For,

 ListChoice selection = new ListChoice(disciplineSelection,
 disciplines);selection.setMaxRow(8);

 ,  a list box is created in the web page.

 I find it strange because I used ListChoice instead of DropDownChoice but
 yet it shows a dropdown box instead of a list box for case no. 2. Is it a
 bug or am I missing something? Btw, there are 2 items in my discipline
 list.
 Thanks



 Johan Compagner wrote:
 
  A ListChoice should always be a List instead of a DropDown (for a drop
  down
  we have the DropDownChoice)
 
  I don't know why you see a difference it shouldn't look at all to the
  model
  that holds the selection.
  It only looks at the choices:
 
  tag.put(size, Math.min(maxRows, getChoices().size()));
 
  so i guess if maxRows of size() == 1 then it becomes a dropdown?
 
  johan
 
 
  On 5/9/06, Nino Wael [EMAIL PROTECTED] wrote:
 
   Hi
 
 
 
  Im not sure if this is the intended functionality, but I belive I've
  discovered an oddity or featureJ.
 
 
 
  When I use the constructor which also takes a model
  (ListChoice(dropdown_job, new Model(),myList, new myRenderer)) my
  listchoice is no longer displayed as a dropdown but as a listbox.
 
 
 
  If I instead of using the constructor with the model property call the
  set
  model method (listChoice_job.setModel(new Model())) then it remains
  displayed as a dropdown
 
 
 
  Code snipplet:
 
  // this gives a listbox
 
  listChoice_job = new
  ListChoice(dropdown_job,new Model(),jobcenter.toArray().getList(),
 new
  DataItemRenderer())
 
 
 
  //this gives a dropdown
 
  listChoice_job = new
  ListChoice(dropdown_job, jobcenter.toArray().getList(), new
  DataItemRenderer())
 
 
 listChoice_job.setModel(new
  Model());
 
  Code snipplet end
 
 
 
 
 
  It's that latter I want displayed.
 
 
 
 
 
  -regards Nino
 
 
 

 --
 View this message in context:
 http://www.nabble.com/ListChoice-changes-appearance-from-dropdown-to-listbox-tf1583106.html#a7714179
 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/ListChoice-changes-appearance-from-dropdown-to-listbox-tf1583106.html#a7736244
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] ListChoice changes appearance from dropdown to listbox

2006-12-07 Thread Johan Compagner

thats the default yes. Strange that it is set somehow i don't see that in
that constructor

/**
* @see wicket.markup.html.form.AbstractChoice#AbstractChoice(String,
IModel,IModel)
*/
   public ListChoice(String id, IModel model, IModel choices)
   {
   super(id, model, choices);
   }

can you check why that works for you on what place the maxRows is set?

i will change all the constructors so that they do set the default max rows.


On 12/7/06, TH Lim [EMAIL PROTECTED] wrote:



For 1st example, the size attribute is  size=8 .


Johan Compagner wrote:

 hmm we don't seem to set the default max rows in every constructor
 strange thing is that in the first example you give we also don't do it.
 So
 max rows is still 0

 Can you check what is exactly generated (what the size attribute is)

 johan


 On 12/6/06, TH Lim [EMAIL PROTECTED] wrote:


 I came to the same conclusion as Nino. What I have observed was this,

 1. For,

 ListChoice selection = new ListChoice(disciplineSelection, new
Model(),
 disciplines)

 , a list box is created in the web page.

 2. For,

 ListChoice selection = new ListChoice(disciplineSelection,
disciplines)

 , a dropdown box is created in the web page.

 3. For,

 ListChoice selection = new ListChoice(disciplineSelection,
 disciplines);selection.setMaxRow(8);

 ,  a list box is created in the web page.

 I find it strange because I used ListChoice instead of DropDownChoice
but
 yet it shows a dropdown box instead of a list box for case no. 2. Is it
a
 bug or am I missing something? Btw, there are 2 items in my discipline
 list.
 Thanks



 Johan Compagner wrote:
 
  A ListChoice should always be a List instead of a DropDown (for a
drop
  down
  we have the DropDownChoice)
 
  I don't know why you see a difference it shouldn't look at all to the
  model
  that holds the selection.
  It only looks at the choices:
 
  tag.put(size, Math.min(maxRows, getChoices().size()));
 
  so i guess if maxRows of size() == 1 then it becomes a dropdown?
 
  johan
 
 
  On 5/9/06, Nino Wael [EMAIL PROTECTED] wrote:
 
   Hi
 
 
 
  Im not sure if this is the intended functionality, but I belive I've
  discovered an oddity or featureJ.
 
 
 
  When I use the constructor which also takes a model
  (ListChoice(dropdown_job, new Model(),myList, new myRenderer)) my
  listchoice is no longer displayed as a dropdown but as a listbox.
 
 
 
  If I instead of using the constructor with the model property call
the
  set
  model method (listChoice_job.setModel(new Model())) then it remains
  displayed as a dropdown
 
 
 
  Code snipplet:
 
  // this gives a listbox
 
  listChoice_job = new
  ListChoice(dropdown_job,new Model(),jobcenter.toArray().getList(),
 new
  DataItemRenderer())
 
 
 
  //this gives a dropdown
 
  listChoice_job = new
  ListChoice(dropdown_job, jobcenter.toArray().getList(), new
  DataItemRenderer())
 
 
 listChoice_job.setModel(new
  Model());
 
  Code snipplet end
 
 
 
 
 
  It's that latter I want displayed.
 
 
 
 
 
  -regards Nino
 
 
 

 --
 View this message in context:

http://www.nabble.com/ListChoice-changes-appearance-from-dropdown-to-listbox-tf1583106.html#a7714179
 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/ListChoice-changes-appearance-from-dropdown-to-listbox-tf1583106.html#a7736244
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

Re: [Wicket-user] ListChoice changes appearance from dropdown to listbox

2006-12-07 Thread Johan Compagner

ahh found the constructor that did set the max rows.
I will sync it completely.

johan


On 12/7/06, Johan Compagner [EMAIL PROTECTED] wrote:


thats the default yes. Strange that it is set somehow i don't see that in
that constructor

/**
 * @see wicket.markup.html.form.AbstractChoice#AbstractChoice(String,
IModel,IModel)
 */
public ListChoice(String id, IModel model, IModel choices)
{
super(id, model, choices);
}

can you check why that works for you on what place the maxRows is set?

i will change all the constructors so that they do set the default max
rows.


On 12/7/06, TH Lim [EMAIL PROTECTED] wrote:


 For 1st example, the size attribute is  size=8 .


 Johan Compagner wrote:
 
  hmm we don't seem to set the default max rows in every constructor
  strange thing is that in the first example you give we also don't do
 it.
  So
  max rows is still 0
 
  Can you check what is exactly generated (what the size attribute is)
 
  johan
 
 
  On 12/6/06, TH Lim  [EMAIL PROTECTED] wrote:
 
 
  I came to the same conclusion as Nino. What I have observed was this,
 
  1. For,
 
  ListChoice selection = new ListChoice(disciplineSelection, new
 Model(),
  disciplines)
 
  , a list box is created in the web page.
 
  2. For,
 
  ListChoice selection = new ListChoice(disciplineSelection,
 disciplines)
 
  , a dropdown box is created in the web page.
 
  3. For,
 
  ListChoice selection = new ListChoice(disciplineSelection,
  disciplines);selection.setMaxRow(8);
 
  ,  a list box is created in the web page.
 
  I find it strange because I used ListChoice instead of DropDownChoice
 but
  yet it shows a dropdown box instead of a list box for case no. 2. Is
 it a
  bug or am I missing something? Btw, there are 2 items in my
 discipline
  list.
  Thanks
 
 
 
  Johan Compagner wrote:
  
   A ListChoice should always be a List instead of a DropDown (for a
 drop
   down
   we have the DropDownChoice)
  
   I don't know why you see a difference it shouldn't look at all to
 the
   model
   that holds the selection.
   It only looks at the choices:
  
   tag.put(size, Math.min(maxRows, getChoices().size()));
  
   so i guess if maxRows of size() == 1 then it becomes a dropdown?
  
   johan
  
  
   On 5/9/06, Nino Wael [EMAIL PROTECTED] wrote:
  
Hi
  
  
  
   Im not sure if this is the intended functionality, but I belive
 I've
   discovered an oddity or featureJ.
  
  
  
   When I use the constructor which also takes a model
   (ListChoice(dropdown_job, new Model(),myList, new myRenderer))
 my
   listchoice is no longer displayed as a dropdown but as a listbox.
  
  
  
   If I instead of using the constructor with the model property call
 the
   set
   model method (listChoice_job.setModel(new Model())) then it
 remains
   displayed as a dropdown
  
  
  
   Code snipplet:
  
   // this gives a listbox
  
   listChoice_job = new
   ListChoice(dropdown_job,new Model(),jobcenter.toArray
 ().getList(),
  new
   DataItemRenderer())
  
  
  
   //this gives a dropdown
  
   listChoice_job = new
   ListChoice(dropdown_job, jobcenter.toArray().getList(), new
   DataItemRenderer())
  
  
  listChoice_job.setModel(new
   Model());
  
   Code snipplet end
  
  
  
  
  
   It's that latter I want displayed.
  
  
  
  
  
   -regards Nino
  
  
  
 
  --
  View this message in context:
 
 
http://www.nabble.com/ListChoice-changes-appearance-from-dropdown-to-listbox-tf1583106.html#a7714179
  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/ListChoice-changes-appearance-from-dropdown-to-listbox-tf1583106.html#a7736244
 Sent from the Wicket - User mailing list archive at Nabble.com.



 -
 Take Surveys. Earn 

Re: [Wicket-user] SortableDataProvider, size() iterator(int first, int count), Correct execution order?

2006-12-07 Thread Manuel Barzi
Well, I just do two queries the first time... retrieving total count
on size() call (just once), and then retrieve iteration on
iterator(...) call (every navigation event)... so, in steady-state is
only one call...

On 12/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 well in the example i gave you there should only be one query to the
 database

 -igor



 On 12/5/06, Manuel Barzi  [EMAIL PROTECTED] wrote:
 
  Yes, I have already followed your sample, doing two queries to database...
  ;)
 
  On 12/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   no its not possible there is logic that ties the return call of size()
 to a
   few things that need to happen before the call to iterator()
  
   all it takes is your own subclass that i have shown you, i dont think
 its a
   big deal.
  
   -igor
  
  
  
  
  
   On 12/5/06, Manuel Barzi  [EMAIL PROTECTED] wrote:
   
My question is, nevertheless, would it be a significant implementation
change to swap calls order from to current to iterator(...) first and
size() later? then adding support for both cases in a
SortableDataProvider (Case 1: Big databases - 2 Calls, Case 2: Small
databases - 1 Call)...
   
From my point of view, if supporting both cases, just by swapping
those method calls (if so easy is it...), then it would be great, no
worries to look for another impl... all-in-one...
   
Just wondering... ;)
   
Thank you for all your answers...
   
   
  
 -
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


[Wicket-user] Help:Dynamic Form Elements

2006-12-07 Thread Ayodeji Aladejebi

In an application where one needs to make users create dynamic elements.
For example, in our back end model we have a ListSchools and then a user
may have 2 schools, another user may have 5 schools and another may have 1
school

We intend to create a control such that when you click it, it will use ajax
to auto insert a new textfield for another entry.

Now how do I do this. And somehow i think in wicket ajax, a component that
must be ajaxed must have been created prior to page rendering. So should I
create a pool of textfield objects and then use the Ajax control to unhide
them one by one or what other technique can be used to solve this kind of
problem

Thanks
-
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] Application must implement Serializable?

2006-12-07 Thread ChuckDeal

I still have to test it some more.  But as I was playing with it, when the
Application object was NOT serialized, it would fail the first time I hit
one of my data pages; but if I hit the same page again, it worked fine.

I also had a problem when using the ModalWindow to load a Page where it was
trying to serialize StringResponse, but I believe there are already posts on
the mailing list for that, so I will try and find those posts first before
going to far.

Chuck


Johan Compagner wrote:
 
 that is something wrong in your code
 Or maybe a bug in wicket somewhere but more people should see that then
 Application object should never be serialized. At what point do you have
 to
 serialize it?
 
 I think you hold on to it somewhere in your code.
 
 johan
 
 
 On 12/7/06, ChuckDeal [EMAIL PROTECTED] wrote:


 in 1.3, should Application implement Serializable?

 I am in the process of switching to the 1.3-incubating-SNAPSHOT builds
 and
 I
 needed to implement Serializable on my APplication object.  I checked the
 Wiki (Migrating from 1.2 to 1.3) and this wasn't mentioned.

 Is this required for 1.3 or have I got something wrong with my code?
 Everything was peachy with the latest 1.2-SNAPSHOT.

 Chuck
 --
 View this message in context:
 http://www.nabble.com/Application-must-implement-Serializable--tf2771344.html#a7730054
 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/Application-must-implement-Serializable--tf2771344.html#a7738634
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


[Wicket-user] wicket ajax problem: cannot find resources (wicket-ajax.js ect.)

2006-12-07 Thread [EMAIL PROTECTED]
Hello,

The past few days I've been working with wicket, trying to get to know 
it more.  But, i've stumbled upon a problem when I tried to use an 
AjaxLink. The page containing the AjaxLink renders, but the javascript 
files (wicket-ajax.js ect.) cannot be found. Coping the URL to wicket-
ajax.js in the browser results in a statuscode 404. The link is:
 
/wicket-testapp1/welcome/resources/wicket.ajax.
AbstractDefaultAjaxBehavior/wicket-ajax.js

wicket-testapp1 is indeed the name of my project. 
/welcome is my servlet

Can anyone tell me where i went wrong and how to fix this?

I've got the following code:
---

package wicket.schooltime.ajax;

import wicket.markup.html.WebPage;
import wicket.PageParameters;
import wicket.markup.html.basic.Label;
import wicket.model.PropertyModel;
import wicket.ajax.markup.html.AjaxLink;
import wicket.ajax.*;

public class Ajax extends WebPage {

private int counter1 = 0;

public Ajax(PageParameters parameters)
{   
final Label c1 = new Label(counter1, new PropertyModel(this, 
counter1));
add(c1);

add(new AjaxLink(optellen)
{
public void onClick(AjaxRequestTarget target)
{
System.out.println(AjAX thAtS thE StUff!!);
counter1++;
target.addComponent(c1);
}
}); 
}

public int getCounter1()
{
return counter1;
}
}
---
And in the Ajax.html file:
---
?xml version=1.0 encoding=UTF-8?
html xmlns=http://www.w3.org/1999/xhtml; 
head
titleAJAX/title
/head
body
a href=# wicket:id=optellen[optellen]/a
span wicket:id=counter1label1 goes here/span
/body
/html

---

Thanks in advance,

Niels Hardeman




-
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] SortableDataProvider, size() iterator(int first, int count), Correct execution order?

2006-12-07 Thread Igor Vaynberg

i guess if you are certain the size never changes this works ok

-igor


On 12/7/06, Manuel Barzi [EMAIL PROTECTED] wrote:


Well, I just do two queries the first time... retrieving total count
on size() call (just once), and then retrieve iteration on
iterator(...) call (every navigation event)... so, in steady-state is
only one call...

On 12/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 well in the example i gave you there should only be one query to the
 database

 -igor



 On 12/5/06, Manuel Barzi  [EMAIL PROTECTED] wrote:
 
  Yes, I have already followed your sample, doing two queries to
database...
  ;)
 
  On 12/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   no its not possible there is logic that ties the return call of
size()
 to a
   few things that need to happen before the call to iterator()
  
   all it takes is your own subclass that i have shown you, i dont
think
 its a
   big deal.
  
   -igor
  
  
  
  
  
   On 12/5/06, Manuel Barzi  [EMAIL PROTECTED] wrote:
   
My question is, nevertheless, would it be a significant
implementation
change to swap calls order from to current to iterator(...) first
and
size() later? then adding support for both cases in a
SortableDataProvider (Case 1: Big databases - 2 Calls, Case 2:
Small
databases - 1 Call)...
   
From my point of view, if supporting both cases, just by swapping
those method calls (if so easy is it...), then it would be great,
no
worries to look for another impl... all-in-one...
   
Just wondering... ;)
   
Thank you for all your answers...
   
   
  

-
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 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] Application must implement Serializable?

2006-12-07 Thread Igor Vaynberg

afaik the patch was reversed. string response should never be serialized, if
it is you have a bug somewhere in your code.

-igor


On 12/7/06, ChuckDeal [EMAIL PROTECTED] wrote:



I looked at the other post that references StringResponse and serializable
and it was specifically for 2.0.  But it looks like you put a fix in that
codebase for it.  Did not patch get applied to the 1.3 branch?


ChuckDeal wrote:

 I still have to test it some more.  But as I was playing with it, when
the
 Application object was NOT serialized, it would fail the first time I
hit
 one of my data pages; but if I hit the same page again, it worked fine.

 I also had a problem when using the ModalWindow to load a Page where it
 was trying to serialize StringResponse, but I believe there are already
 posts on the mailing list for that, so I will try and find those posts
 first before going to far.

 Chuck


 Johan Compagner wrote:

 that is something wrong in your code
 Or maybe a bug in wicket somewhere but more people should see that then
 Application object should never be serialized. At what point do you
have
 to
 serialize it?

 I think you hold on to it somewhere in your code.

 johan


 On 12/7/06, ChuckDeal [EMAIL PROTECTED] wrote:


 in 1.3, should Application implement Serializable?

 I am in the process of switching to the 1.3-incubating-SNAPSHOT builds
 and
 I
 needed to implement Serializable on my APplication object.  I checked
 the
 Wiki (Migrating from 1.2 to 1.3) and this wasn't mentioned.

 Is this required for 1.3 or have I got something wrong with my code?
 Everything was peachy with the latest 1.2-SNAPSHOT.

 Chuck
 --
 View this message in context:

http://www.nabble.com/Application-must-implement-Serializable--tf2771344.html#a7730054
 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/Application-must-implement-Serializable--tf2771344.html#a7742172
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] Help:Dynamic Form Elements

2006-12-07 Thread Igor Vaynberg

you have a markup container called parent in that container you have a
repeater such as listview/repeatingview/etc

when your page loads the repeater is empty so nothing is shown

once the ajax link is clicked you add the components to the repeater and
then repaint the parent markup container via ajax

-igor


On 12/7/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:


In an application where one needs to make users create dynamic elements.
For example, in our back end model we have a ListSchools and then a user
may have 2 schools, another user may have 5 schools and another may have 1
school

We intend to create a control such that when you click it, it will use
ajax to auto insert a new textfield for another entry.

Now how do I do this. And somehow i think in wicket ajax, a component that
must be ajaxed must have been created prior to page rendering. So should I
create a pool of textfield objects and then use the Ajax control to unhide
them one by one or what other technique can be used to solve this kind of
problem

Thanks


-
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] FormElement cookies not set when called using AJAX

2006-12-07 Thread Igor Vaynberg

this might be a bug, file an issue and someone will have a looksee

-igor


On 12/7/06, Erik van Oosten [EMAIL PROTECTED] wrote:


Hello,

I have a DropDownChoice with wantOnSelectionChangedNotifications
returning true and persistent set to true.
Unfortunately the cookie is not set when the submit is done through
Ajax. Is this on purpose? Is there a known workaround?

Regards,
 Erik.


--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.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] Application must implement Serializable?

2006-12-07 Thread ChuckDeal

I am not directly doing anything with StringResponse, it is just the class
that was reported. 

But even before that, I am still having trouble with the framework
attempting to put the Application object into the session.  I do use
DataBinder (1.1-SNAPSHOT) and extend both AuthDataApplication as well as
AuthDataSession.  I also use the cookieSignIn code provided by DataBinder.

If I remove my cookie, and therefore get presented with the Login screen, I
can log in and go to the Main page and navigate to the page in question with
no attempt to serialize the Application.

If I keep the cookie and restart the app, I get auto-logged in directly to
the Main page, and when I click on the link to go to the same page, the
exception is thrown.

12:56:23,518 ERROR RequestCycle:852 - there was an error updating the
session [EMAIL PROTECTED]
wicket.WicketRuntimeException: Internal error cloning object. Make sure all
dependent objects implement Serializable. Class:
com.csc.aims.framework.AIMSSession
at
wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:69)
at
wicket.protocol.http.SecondLevelCacheSessionStore.setAttribute(SecondLevelCacheSessionStore.java:218)
at
wicket.protocol.http.AbstractHttpSessionStore.bind(AbstractHttpSessionStore.java:176)
at wicket.Session.setAttribute(Session.java:1024)
at wicket.Session.update(Session.java:1050)
at wicket.protocol.http.WebSession.update(WebSession.java:126)
at wicket.RequestCycle.detach(RequestCycle.java:848)
at wicket.RequestCycle.steps(RequestCycle.java:1118)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:243)
at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.NotSerializableException:
com.csc.aims.framework.AIMSApplication
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at
wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:63)
... 25 more

Wicket presents me with a page that I can click a link to go back to the
HomePage.  If I immediately click on the same link that produced the error,
I don't receive an error this time and the page loads fine.  This appears to
be some kind of lazy initialization error, but I'm not sure where to begin
looking.  I put a breakpoint on the onClick for the link I was using, but
the 

Re: [Wicket-user] Application must implement Serializable?

2006-12-07 Thread Igor Vaynberg

make sure your session class is not an inner non-static class of the
applicaiton because then they are tied. you might also want to try the
databinder mailing list

-igor


On 12/7/06, ChuckDeal [EMAIL PROTECTED] wrote:



I am not directly doing anything with StringResponse, it is just the class
that was reported.

But even before that, I am still having trouble with the framework
attempting to put the Application object into the session.  I do use
DataBinder (1.1-SNAPSHOT) and extend both AuthDataApplication as well as
AuthDataSession.  I also use the cookieSignIn code provided by DataBinder.

If I remove my cookie, and therefore get presented with the Login screen,
I
can log in and go to the Main page and navigate to the page in question
with
no attempt to serialize the Application.

If I keep the cookie and restart the app, I get auto-logged in directly to
the Main page, and when I click on the link to go to the same page, the
exception is thrown.

12:56:23,518 ERROR RequestCycle:852 - there was an error updating the
session [EMAIL PROTECTED]
wicket.WicketRuntimeException: Internal error cloning object. Make sure
all
dependent objects implement Serializable. Class:
com.csc.aims.framework.AIMSSession
at
wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java
:69)
at
wicket.protocol.http.SecondLevelCacheSessionStore.setAttribute(
SecondLevelCacheSessionStore.java:218)
at
wicket.protocol.http.AbstractHttpSessionStore.bind(
AbstractHttpSessionStore.java:176)
at wicket.Session.setAttribute(Session.java:1024)
at wicket.Session.update(Session.java:1050)
at wicket.protocol.http.WebSession.update(WebSession.java:126)
at wicket.RequestCycle.detach(RequestCycle.java:848)
at wicket.RequestCycle.steps(RequestCycle.java:1118)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:243)
at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java
:122)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
at
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(
FastCommonAccessLogValve.java:495)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.NotSerializableException:
com.csc.aims.framework.AIMSApplication
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java
:1081)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java
:1375)
at java.io.ObjectOutputStream.writeSerialData(
ObjectOutputStream.java:1347)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java
:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java
:1079)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java
:1375)
at java.io.ObjectOutputStream.writeSerialData(
ObjectOutputStream.java:1347)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java
:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java
:1079)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java
:1375)
at java.io.ObjectOutputStream.writeSerialData(
ObjectOutputStream.java:1347)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java
:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java
:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java
:302)
at
wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java
:63)
... 25 more

Wicket presents me with a page that I can click a link to go back to the
HomePage.  If I immediately click on the same link that 

Re: [Wicket-user] DataView and Ajax

2006-12-07 Thread carbonbasednerd

I put the data view into a markupcontainerso the html looks like this:

table wicket:id=container
tbody
tr wicket:id=campaignDV
tdinput wicket:id=name/td
/tr
/tbody
tfoot
tr
td wicket:id=navigator/td
/tr
/tfoot
/table

I get an Unknown runtime error.  I dug around and found that this might be
because of IE and some troubles with tr tags?  didn't find a solution to
this though.


try putting the dataview into a markupcontainer

-igor


On 12/6/06, carbonbasednerd [EMAIL PROTECTED] wrote:


 Hi, I searched the forums and found one question about AjaxPagingNavigator
 not working with DataView - but there was no response to it.

 Is the DataView unable to work with AjaxPagingNavigator or do I need to do
 something else to get it to work?

-- 
View this message in context: 
http://www.nabble.com/DataView-and-Ajax-tf2771602.html#a7745724
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] DataView and Ajax

2006-12-07 Thread Igor Vaynberg

yes, ie doesnt let you use outerhtml on table elements, simply replace the
table wicket:id=container with div wicket:id=containertable...

-igor


On 12/7/06, carbonbasednerd [EMAIL PROTECTED] wrote:



I put the data view into a markupcontainerso the html looks like this:

table wicket:id=container
tbody
tr wicket:id=campaignDV
tdinput wicket:id=name/td
/tr
/tbody
tfoot
tr
td wicket:id=navigator/td
/tr
/tfoot
/table

I get an Unknown runtime error.  I dug around and found that this might be
because of IE and some troubles with tr tags?  didn't find a solution to
this though.


try putting the dataview into a markupcontainer

-igor


On 12/6/06, carbonbasednerd [EMAIL PROTECTED] wrote:


 Hi, I searched the forums and found one question about
AjaxPagingNavigator
 not working with DataView - but there was no response to it.

 Is the DataView unable to work with AjaxPagingNavigator or do I need to
do
 something else to get it to work?

--
View this message in context:
http://www.nabble.com/DataView-and-Ajax-tf2771602.html#a7745724
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] DataView and Ajax

2006-12-07 Thread carbonbasednerd

tried that and I still get the same error message.


igor.vaynberg wrote:
 
 yes, ie doesnt let you use outerhtml on table elements, simply replace the
 table wicket:id=container with div wicket:id=containertable...
 
 -igor
 
 
 On 12/7/06, carbonbasednerd [EMAIL PROTECTED] wrote:


 I put the data view into a markupcontainerso the html looks like this:

 table wicket:id=container
 tbody
 tr wicket:id=campaignDV
 tdinput wicket:id=name/td
 /tr
 /tbody
 tfoot
 tr
 td wicket:id=navigator/td
 /tr
 /tfoot
 /table

 I get an Unknown runtime error.  I dug around and found that this might
 be
 because of IE and some troubles with tr tags?  didn't find a solution
 to
 this though.
 

-- 
View this message in context: 
http://www.nabble.com/DataView-and-Ajax-tf2771602.html#a7746194
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] DataView and Ajax

2006-12-07 Thread Igor Vaynberg

well in that case just do

new AjaxPagingNavigator() { onajaxevent(target) { target.add(dataviewparent);
}}

-igor


On 12/7/06, carbonbasednerd [EMAIL PROTECTED] wrote:



tried that and I still get the same error message.


igor.vaynberg wrote:

 yes, ie doesnt let you use outerhtml on table elements, simply replace
the
 table wicket:id=container with div wicket:id=containertable...

 -igor


 On 12/7/06, carbonbasednerd [EMAIL PROTECTED] wrote:


 I put the data view into a markupcontainerso the html looks like this:

 table wicket:id=container
 tbody
 tr wicket:id=campaignDV
 tdinput wicket:id=name/td
 /tr
 /tbody
 tfoot
 tr
 td wicket:id=navigator/td
 /tr
 /tfoot
 /table

 I get an Unknown runtime error.  I dug around and found that this might
 be
 because of IE and some troubles with tr tags?  didn't find a solution
 to
 this though.


--
View this message in context:
http://www.nabble.com/DataView-and-Ajax-tf2771602.html#a7746194
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] DataView and Ajax

2006-12-07 Thread Martijn Dashorst
I think ie does permit replacing a table element, but not tr td
th tbody tfoot thead col colgroup

So you have to add the markup container (don't forget to
setOutputMarkupId(true) on it) to the ajax request target instead of
the dataview.

Martijn

On 12/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 yes, ie doesnt let you use outerhtml on table elements, simply replace the
 table wicket:id=container with div
 wicket:id=containertable...

 -igor



  On 12/7/06, carbonbasednerd [EMAIL PROTECTED] wrote:
 
  I put the data view into a markupcontainerso the html looks like this:
 
  table wicket:id=container
  tbody
  tr wicket:id=campaignDV
  tdinput wicket:id=name/td
  /tr
  /tbody
  tfoot
  tr
  td
 wicket:id=navigator/td
  /tr
  /tfoot
  /table
 
  I get an Unknown runtime error.  I dug around and found that this might be
  because of IE and some troubles with tr tags?  didn't find a solution to
  this though.
 
 
  try putting the dataview into a markupcontainer
 
  -igor
 
 
  On 12/6/06, carbonbasednerd  [EMAIL PROTECTED] wrote:
  
  
   Hi, I searched the forums and found one question about
 AjaxPagingNavigator
   not working with DataView - but there was no response to it.
  
   Is the DataView unable to work with AjaxPagingNavigator or do I need to
 do
   something else to get it to work?
 
  --
  View this message in context:
 http://www.nabble.com/DataView-and-Ajax-tf2771602.html#a7745724
  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





-- 
a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a
for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a
at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in
the World!/a

-
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] DataView and Ajax

2006-12-07 Thread Igor Vaynberg

well the thing is that the paging navigator tries to do this automagically
in onajaxevent() maybe that should just be made abstract

-igor


On 12/7/06, Martijn Dashorst [EMAIL PROTECTED] wrote:


I think ie does permit replacing a table element, but not tr td
th tbody tfoot thead col colgroup

So you have to add the markup container (don't forget to
setOutputMarkupId(true) on it) to the ajax request target instead of
the dataview.

Martijn

On 12/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 yes, ie doesnt let you use outerhtml on table elements, simply replace
the
 table wicket:id=container with div
 wicket:id=containertable...

 -igor



  On 12/7/06, carbonbasednerd [EMAIL PROTECTED] wrote:
 
  I put the data view into a markupcontainerso the html looks like this:
 
  table wicket:id=container
  tbody
  tr wicket:id=campaignDV
  tdinput wicket:id=name/td
  /tr
  /tbody
  tfoot
  tr
  td
 wicket:id=navigator/td
  /tr
  /tfoot
  /table
 
  I get an Unknown runtime error.  I dug around and found that this
might be
  because of IE and some troubles with tr tags?  didn't find a
solution to
  this though.
 
 
  try putting the dataview into a markupcontainer
 
  -igor
 
 
  On 12/6/06, carbonbasednerd  [EMAIL PROTECTED] wrote:
  
  
   Hi, I searched the forums and found one question about
 AjaxPagingNavigator
   not working with DataView - but there was no response to it.
  
   Is the DataView unable to work with AjaxPagingNavigator or do I need
to
 do
   something else to get it to work?
 
  --
  View this message in context:
 http://www.nabble.com/DataView-and-Ajax-tf2771602.html#a7745724
  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





--
a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a
for a href=http://www.thebeststuffintheworld.com/stuff/wicket
Wicket/a
at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in
the World!/a

-
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] Drag and drop

2006-12-07 Thread Martijn Dashorst
I think Dojo has that available. see wicket-contrib-dojo on wicket-stuff.

Martijn

On 12/8/06, Francis Amanfo [EMAIL PROTECTED] wrote:
 Hi Guys,

 Anyone has a drag and drop wicket component to share? I need that stuff but
 want to first ask if anyone has that before I start getting my hands dirty
 :-).

 --
 Beware of bugs in the above code;
 I have only proved it correct, not tried it.
 -Donald Knuth
 I don't make predictions. I never have,
 and I never will.
 -Tony Blair
 -
 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





-- 
a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a
for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a
at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in
the World!/a

-
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] FormElement cookies not set when called using AJAX

2006-12-07 Thread Erik van Oosten
Ok, thanks Igor. Done that.

 Erik.


Igor Vaynberg wrote:
 this might be a bug, file an issue and someone will have a looksee

 -igor


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