Re: [Wicket-user] yui slider enquiry

2006-03-29 Thread Igor Vaynberg
if you would like you may start a wicket-stuff project to build up some of these components. that way the committers and others interested can also contribute.let me know if you would like to do that.-Igor
On 3/29/06, Joshua Lim <[EMAIL PROTECTED]> wrote:
thanks igor, that is very close to what I need, and the insight too into the backing list model... I think that would be useful, I do want another, which will only take 1 single value. perhaps a limit on the list ? 

basically I am trying to build up more widgets to make answering surveys interesting not so much shopping cart ... so I am looking at things like : 1/ sorting list - drag into order choice 1 to 10 - good to have a backing list
2/ maybe extending (1)  to have a choice editable - ala toolman - also backed by a list.3/ multi-targets/draggables - each target having 1 only 1 draggable - so dragging a draggable over a target replaces it instead of adding up ?? still thinking about this one, could be used for matching question. 
JoshuaOn 3/30/06, 
Igor Vaynberg <[EMAIL PROTECTED]> wrote:

On 3/29/06, Joshua Lim <[EMAIL PROTECTED]
> wrote:


and the other a editable div like "tiddywiki" http://tiddlywiki.com but also dragable...
take a look at AjaxEditableLabel, its probably not exactly what you want, but it will give you an idea of how it can be done.
there is a good impl of draggable lists here:http://tool-man.org/examples/sorting.html

ive been thinking of how drag and drop can work in wicket. my idea was to be able to have a DropTarget WebMarkupContainer whose model is a list, and a Draggable behavior to another component. so after a form submit whether ajax or regular, the DropTarget's model would be set to the list of all value model object's of all Draggables in it.
maybe this will help,
-Igor

 






Re: [Wicket-user] Wicket Include vs. RequestDispatcher.include

2006-03-29 Thread Nili Adoram

How about extending Include as follows:
public class LightInclude extends Include {

   public LightInclude(String id, String model, ServletRequest request, 
ServletResponse response) {

  this.request = request;
  this.response = response;
   }

   protected String importUrl(String url) {
   //create a buffer
   Writer writer = new BufferedWriter(new CharArratWriter());
   //create some mockup response
   ServletResponse mockupResponse = new ServletResponse() {
  //implement all interface methods by delegating to the 
original response except for this:

  public PrintWriter getWriter(){
 return new PrintWriter(writer);
  }
   };
  
   //call RequestDispatcher with the mockup response

   //this will write the response to our buffer
   request.getrequestDispatcher(url).include(request, mockupResponse);
  
   //return the content of the buffer

   return writer.toString();
   }
}

I guess some additional polish is required..
Nili

Eelco Hillenius wrote:

That's what I did in the first version(s) of Include. There were
issues with it, which I unfortunately forgot. I never use this
component myself, but if you have good ideas in the form of patches,
I'd be happy to look at them.

Eelco

On 3/29/06, Nili Adoram <[EMAIL PROTECTED]> wrote:
  

Hi,
Is there an option to use utilize wicket Include without opening a new
connection?
I would like to include the contents of a URL like
RequestDispatcher.include() does, directly into a wicket component.
10x
Nili


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

  



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] yui slider enquiry

2006-03-29 Thread Joshua Lim
thanks igor, that is very close to what I need, and the insight too into the backing list model... I think that would be useful, I do want another, which will only take 1 single value. perhaps a limit on the list ? 
basically I am trying to build up more widgets to make answering surveys interesting not so much shopping cart ... so I am looking at things like : 1/ sorting list - drag into order choice 1 to 10 - good to have a backing list
2/ maybe extending (1)  to have a choice editable - ala toolman - also backed by a list.3/ multi-targets/draggables - each target having 1 only 1 draggable - so dragging a draggable over a target replaces it instead of adding up ?? still thinking about this one, could be used for matching question. 
JoshuaOn 3/30/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
On 3/29/06, Joshua Lim <[EMAIL PROTECTED]
> wrote:

and the other a editable div like "tiddywiki" http://tiddlywiki.com but also dragable...
take a look at AjaxEditableLabel, its probably not exactly what you want, but it will give you an idea of how it can be done.
there is a good impl of draggable lists here:http://tool-man.org/examples/sorting.html
ive been thinking of how drag and drop can work in wicket. my idea was to be able to have a DropTarget WebMarkupContainer whose model is a list, and a Draggable behavior to another component. so after a form submit whether ajax or regular, the DropTarget's model would be set to the list of all value model object's of all Draggables in it.
maybe this will help,
-Igor

 




[Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-29 Thread jan_bar
Hi,

I tried FrameworkSettings.getVersion(), but it seems to read
wicket.properties of my application instead from wicketXX.jar. Does it work
for you?

Thanks, Jan





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] yui slider enquiry

2006-03-29 Thread Igor Vaynberg
On 3/29/06, Joshua Lim <[EMAIL PROTECTED]> wrote:
and the other a editable div like "tiddywiki" http://tiddlywiki.com but also dragable...
take a look at AjaxEditableLabel, its probably not exactly what you want, but it will give you an idea of how it can be done.
there is a good impl of draggable lists here:http://tool-man.org/examples/sorting.htmlive been thinking of how drag and drop can work in wicket. my idea was to be able to have a DropTarget WebMarkupContainer whose model is a list, and a Draggable behavior to another component. so after a form submit whether ajax or regular, the DropTarget's model would be set to the list of all value model object's of all Draggables in it.
maybe this will help,
-Igor

 


Re: [Wicket-user] yui slider enquiry

2006-03-29 Thread Joshua Lim
Hi Eelcoyea, I think the slider out of bound is defined by the div in the css. I intend to look into thatthis morning.. and also making it more configurable like being able to define how many intervals,the length etc that kind of thing ...
I like your idea of it being able to drop inside a form coupled to a textfield, although I would prefera hidden one and show the value via a label ... would be better... that's what I need for the next project
I think is maybe useful to have it independent (of the form) as well for things like color picker kind of stuff. no?I like the yui also, I need more of it though :) the other bits I need are the drag and drop stuff, if you've got ideas, 
one thing I need is for a drag and drop sortable list and the other a editable div like "tiddywiki" http://tiddlywiki.com but also dragable...just some thoughts...
JoshOn 3/30/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
Thanks Joshua. There is still a weird thing: it seems that the slidercan be dragged out of bounds.See http://papernapkin.org/pastebin/app/view/86
How do you plan on using the component? Do you plan on coupling it toa textfield and use that for form submission? I was planning (didn'tget to the implementation yet) to enable it to be just be dropped in aform and behave as a form component (updating its model value on form
submits). And of course I was planning to expose the YUI at leastpartly through the Wicket component.Hey, and now that you're on it... you might want to take a look atCalendar too. The component works, though I made no effort yet to
build a picker on top of it, but it doesn't cooperate in a formeither, and it is hardly configurable.EelcoOn 3/29/06, Joshua Lim <[EMAIL PROTECTED]> wrote:
> Thanks Eelco>> I have been poking around and manage to get the slider out in the examples,> however, it now slides out of the bar :P ... I hope to add more options> though...>
> I am new to oss and scm in general so not sure how to apply a patch and> don't want to break things. so I am attaching them in this email. hope it> can find its way to the right position>
> joshua>> On 3/29/06, Joshua Lim <[EMAIL PROTECTED]> wrote:> >> > ok I will take a look> >
> >> >> > On 3/29/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:> > > Ok, just checked in some improvements. Slider still doesn't work for
> > > me however. Joshua, if you are interested, please take a look at what> > > is in SVN now, and see if you can find what the problem is.> > >> > > Thanks and have fun,
> > >> > > Eelco> > >> > >> > > On 3/28/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:> > > > I didn't choose for that set implemention because I thought it would
> > > > be useful to have an insertAt option.> > > >> > > > Eelco> > > >> > > >> > > > On 3/28/06, Martijn Dashorst < 
[EMAIL PROTECTED]> wrote:> > > > > Use a LinkedHashSet to filter out double entries and keep order.> > > > >> > > > > Martijn> > > > >
> > > > >> > > > > On 3/29/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:> > > > > >> > > > > Erm, actually I'm not there yet. I'll check in more in half an hour.
> > > > >> > > > > Eelco> > > > >> > > > > On 3/28/06, Eelco Hillenius <[EMAIL PROTECTED]
 > wrote:> > > > > > That was because I used a set to filter double contributions. I> > > > > > changed this to list to guarantee order and added an additional> method
> > > > > > with an index argument to enable further tweaking if needed.> > > > > >> > > > > > Eelco> > > > > >> > > > > > On 3/28/06, Joshua Lim <
[EMAIL PROTECTED]> wrote:> > > > > > > It seems that the slider is loading the *.js in some random> order...> > > > > > > so 
YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO> not> > > > > found> > > > > > >> > > > > > > add(HeaderContributor.forJavaScript(AbstractYuiPanel.class
));> > > > > > >> > > > > > >  I am not sure but I will attempt to get this going since I need> this...> > > > > > >> > > > > > > 1/ is there a way to force the order in which which .js file is
> loaded> > > > > ... I> > > > > > > am> > > > > > > trying to load them manually ...  seems too does not gaurantee> the> > > > > order...
> > > > > > >> > > > > > >  add(HeaderContributor.forJavaScript(AbstractYuiPanel.class,> > > > > "YAHOO.js"));> > > > > > > add(
HeaderContributor.forJavaScript (AbstractYuiPanel.class,> "dom.js"));> > > > > > > > > > > > >> > > > >> > > > >
> > > > >> ---> > > > > This SF.Net email is sponsored by xPML, a groundbreaking scripting> language> > > > > that extends applications into web and mobile media. Attend the live
> webcast> > > > > and join the prime developer group breaking into this new coding> territory!> > > > >> 
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642> > > > > ___> > > > > Wicket-user mailing list> > > > > 
Wicket-user@lists.sourceforge.net> > > > >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >> > > > >> > > > >> 

Re: [Wicket-user] Extra markup while creating listview

2006-03-29 Thread Igor Vaynberg
most times you do want the listitem's markuplike .or -Igor
On 3/29/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrote:



  


That sort of worked (rendered "wicket:id="list" tags, but not
wicket:id="item" tags). However in case of the DOJO-based tree, since
tags for each node (along with a bunch of attribute) need to be
written, I needed the opposite.

HOWEVER, your suggestion gave me an idea for a variation and it works! 
    item.setRenderBodyOnly(true);
    item.add(new Label("item"));

Basically, ask the "item" object to not render its tag, which is
exactly what I wanted.

Thanks a bunch!

As for the tree, it is showing other kinds of problems, but they seem
like DOJO problems.

p.s. It seems like for ListItem (and I am guessing for LoopItem),
setRenderBodyOnly(true) should be the default, since otherwise
unexpected markup (repeated parent element) will show up.

-Ramnivas

Martijn Dashorst wrote:
Change the markup to:
  



  
and your listview:
  
populateItem(Item item) {
    item.add(new Label("item").setRenderBodyOnly(true));
}
  
Names may have been changed, due to negligence of my memory.
  
Martijn
  
  
  On 3/30/06, 
Ramnivas Laddad <[EMAIL PROTECTED]>
wrote:
  Hi,

I am continuing my attempt to create a DOJO-based tree (Thanks Igor for
the urlFor() tip).

Currently, I am facing a problem of extra markup emitted in a listview.
I think there is something wrong with my code, but can't quite figure

out what. I am using 1.2-beta2.

Here is a short program that illustrates the problem:

Markup:



item text





Home and list class:
public class ListViewHome extends WebPage {
public ListViewHome() {
List testList = new ArrayList();

testList.add("one");
testList.add("two");
testList.add("three");
add(new TestListView("list", testList));
}
}

class TestListView extends ListView {

public TestListView(String id, List list) {
super(id, list);
}

@Override
protected void populateItem(ListItem item) {
String itemString = (String)item.getModelObject();

Label listItemLabel = new Label("item", itemString);
item.add(listItemLabel);
}
}

HTML Output produced:





one


two


three




When used with DOJO-tree, the extra markup ("")

surrounding every node produces unwanted effects.

I will like to have the following output:




one

two
three




Please help.


Thanks.

-Ramnivas


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast

and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
  
  
-- 
Wicket 1.2 is coming! Write Ajax applications without touching
_javascript_!
-- 
http://wicketframework.org





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

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



Re: [Wicket-user] Extra markup while creating listview

2006-03-29 Thread Ramnivas Laddad




That sort of worked (rendered "wicket:id="list" tags, but not
wicket:id="item" tags). However in case of the DOJO-based tree, since
tags for each node (along with a bunch of attribute) need to be
written, I needed the opposite.

HOWEVER, your suggestion gave me an idea for a variation and it works! 
    item.setRenderBodyOnly(true);
    item.add(new Label("item"));

Basically, ask the "item" object to not render its tag, which is
exactly what I wanted.

Thanks a bunch!

As for the tree, it is showing other kinds of problems, but they seem
like DOJO problems.

p.s. It seems like for ListItem (and I am guessing for LoopItem),
setRenderBodyOnly(true) should be the default, since otherwise
unexpected markup (repeated parent element) will show up.

-Ramnivas

Martijn Dashorst wrote:
Change the markup to:
  



  
and your listview:
  
populateItem(Item item) {
    item.add(new Label("item").setRenderBodyOnly(true));
}
  
Names may have been changed, due to negligence of my memory.
  
Martijn
  
  
  On 3/30/06, 
Ramnivas Laddad <[EMAIL PROTECTED]>
wrote:
  Hi,

I am continuing my attempt to create a DOJO-based tree (Thanks Igor for
the urlFor() tip).

Currently, I am facing a problem of extra markup emitted in a listview.
I think there is something wrong with my code, but can't quite figure

out what. I am using 1.2-beta2.

Here is a short program that illustrates the problem:

Markup:



item text





Home and list class:
public class ListViewHome extends WebPage {
public ListViewHome() {
List testList = new ArrayList();

testList.add("one");
testList.add("two");
testList.add("three");
add(new TestListView("list", testList));
}
}

class TestListView extends ListView {

public TestListView(String id, List list) {
super(id, list);
}

@Override
protected void populateItem(ListItem item) {
String itemString = (String)item.getModelObject();

Label listItemLabel = new Label("item", itemString);
item.add(listItemLabel);
}
}

HTML Output produced:





one


two


three




When used with DOJO-tree, the extra markup ("")

surrounding every node produces unwanted effects.

I will like to have the following output:




one

two
three




Please help.


Thanks.

-Ramnivas


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast

and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
  
  
-- 
Wicket 1.2 is coming! Write Ajax applications without touching
_javascript_!
-- 
http://wicketframework.org





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Type Enhancers

2006-03-29 Thread Jonathan Locke
For anyone who was following my idea about "mixed types" which Igor posted to the user list recently, I've changed the name of it to "type enhancers" and written a micro-whitepaper on it which you can read 
here.  If anyone has any comments, I'd be interested in your feedback.  Thanks!Best,    Jonathan


Re: [Wicket-user] yui slider enquiry

2006-03-29 Thread Eelco Hillenius
Thanks Joshua. There is still a weird thing: it seems that the slider
can be dragged out of bounds.

See http://papernapkin.org/pastebin/app/view/86

How do you plan on using the component? Do you plan on coupling it to
a textfield and use that for form submission? I was planning (didn't
get to the implementation yet) to enable it to be just be dropped in a
form and behave as a form component (updating its model value on form
submits). And of course I was planning to expose the YUI at least
partly through the Wicket component.

Hey, and now that you're on it... you might want to take a look at
Calendar too. The component works, though I made no effort yet to
build a picker on top of it, but it doesn't cooperate in a form
either, and it is hardly configurable.

Eelco


On 3/29/06, Joshua Lim <[EMAIL PROTECTED]> wrote:
> Thanks Eelco
>
> I have been poking around and manage to get the slider out in the examples,
> however, it now slides out of the bar :P ... I hope to add more options
> though...
>
> I am new to oss and scm in general so not sure how to apply a patch and
> don't want to break things. so I am attaching them in this email. hope it
> can find its way to the right position
>
> joshua
>
>
>
>
>
> On 3/29/06, Joshua Lim <[EMAIL PROTECTED]> wrote:
> >
> > ok I will take a look
> >
> >
> >
> > On 3/29/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > Ok, just checked in some improvements. Slider still doesn't work for
> > > me however. Joshua, if you are interested, please take a look at what
> > > is in SVN now, and see if you can find what the problem is.
> > >
> > > Thanks and have fun,
> > >
> > > Eelco
> > >
> > >
> > > On 3/28/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > > I didn't choose for that set implemention because I thought it would
> > > > be useful to have an insertAt option.
> > > >
> > > > Eelco
> > > >
> > > >
> > > > On 3/28/06, Martijn Dashorst < [EMAIL PROTECTED]> wrote:
> > > > > Use a LinkedHashSet to filter out double entries and keep order.
> > > > >
> > > > > Martijn
> > > > >
> > > > >
> > > > > On 3/29/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > Erm, actually I'm not there yet. I'll check in more in half an hour.
> > > > >
> > > > > Eelco
> > > > >
> > > > > On 3/28/06, Eelco Hillenius <[EMAIL PROTECTED] > wrote:
> > > > > > That was because I used a set to filter double contributions. I
> > > > > > changed this to list to guarantee order and added an additional
> method
> > > > > > with an index argument to enable further tweaking if needed.
> > > > > >
> > > > > > Eelco
> > > > > >
> > > > > > On 3/28/06, Joshua Lim <[EMAIL PROTECTED]> wrote:
> > > > > > > It seems that the slider is loading the *.js in some random
> order...
> > > > > > > so YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO
> not
> > > > > found
> > > > > > >
> > > > > > > add(HeaderContributor.forJavaScript(AbstractYuiPanel.class));
> > > > > > >
> > > > > > >  I am not sure but I will attempt to get this going since I need
> this...
> > > > > > >
> > > > > > > 1/ is there a way to force the order in which which .js file is
> loaded
> > > > > ... I
> > > > > > > am
> > > > > > > trying to load them manually ...  seems too does not gaurantee
> the
> > > > > order...
> > > > > > >
> > > > > > >  add(HeaderContributor.forJavaScript(AbstractYuiPanel.class,
> > > > > "YAHOO.js"));
> > > > > > > add(HeaderContributor.forJavaScript (AbstractYuiPanel.class,
> "dom.js"));
> > > > > > > 
> > > > > >
> > > > >
> > > > >
> > > > >
> ---
> > > > > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > > > > that extends applications into web and mobile media. Attend the live
> webcast
> > > > > and join the prime developer group breaking into this new coding
> territory!
> > > > >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > > > > ___
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Wicket 1.2 is coming! Write Ajax applications without touching
> JavaScript!
> > > > > -- http://wicketframework.org
> > > >
> > >
> > >
> > > ---
> > > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > > that extends applications into web and mobile media. Attend the live
> webcast
> > > and join the prime developer group breaking into this new coding
> territory!
> > >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
>
>
>


--

Re: [Wicket-user] Extra markup while creating listview

2006-03-29 Thread Martijn Dashorst
Change the markup to:and your listview:populateItem(Item item) {
    item.add(new Label("item").setRenderBodyOnly(true));}Names may have been changed, due to negligence of my memory.MartijnOn 3/30/06, 
Ramnivas Laddad <[EMAIL PROTECTED]> wrote:
Hi,I am continuing my attempt to create a DOJO-based tree (Thanks Igor forthe urlFor() tip).Currently, I am facing a problem of extra markup emitted in a listview.I think there is something wrong with my code, but can't quite figure
out what. I am using 1.2-beta2.Here is a short program that illustrates the problem:Markup:item text
Home and list class:public class ListViewHome extends WebPage {public ListViewHome() {List testList = new ArrayList();
testList.add("one");testList.add("two");testList.add("three");add(new TestListView("list", testList));}}class TestListView extends ListView {
public TestListView(String id, List list) {super(id, list);}@Overrideprotected void populateItem(ListItem item) {String itemString = (String)item.getModelObject();
Label listItemLabel = new Label("item", itemString);item.add(listItemLabel);}}HTML Output produced:
onetwo
threeWhen used with DOJO-tree, the extra markup ("")
surrounding every node produces unwanted effects.I will like to have the following output:one
twothreePlease help.
Thanks.-Ramnivas---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 
http://wicketframework.org


[Wicket-user] Extra markup while creating listview

2006-03-29 Thread Ramnivas Laddad

Hi,

I am continuing my attempt to create a DOJO-based tree (Thanks Igor for 
the urlFor() tip).


Currently, I am facing a problem of extra markup emitted in a listview. 
I think there is something wrong with my code, but can't quite figure 
out what. I am using 1.2-beta2.


Here is a short program that illustrates the problem:

Markup:

   
   
   item text
   
   


Home and list class:
public class ListViewHome extends WebPage {
   public ListViewHome() {
   List testList = new ArrayList();
   testList.add("one");
   testList.add("two");
   testList.add("three");
   add(new TestListView("list", testList));
   }
}

class TestListView extends ListView {
   public TestListView(String id, List list) {
   super(id, list);
   }
  
   @Override

   protected void populateItem(ListItem item) {
   String itemString = (String)item.getModelObject();
   Label listItemLabel = new Label("item", itemString);
   item.add(listItemLabel);
   }
}

HTML Output produced:


   
   
one
   
   
two
   
   
three
   
   


When used with DOJO-tree, the extra markup ("") 
surrounding every node produces unwanted effects.


I will like to have the following output:


   
   
one
two
three
   
   


Please help.

Thanks.

-Ramnivas


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] TabbedPanel, InputForm and submit

2006-03-29 Thread Eelco Hillenius
A different approach is to use ajax enabled fields so that everytime
you leave an input field your changes are immediately applied to the
models. That way it doesn't matter at all which link you click
anywhere.

Eelco


On 3/29/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> well, this is pretty tricky stuff
>
> because you embed the form inside the tabbed panel it really shouldnt know
> anything about when the tab switches.
>
> one solution i might see is to embed the tabbed panel inside the form
> instead
> that way the links can submit the form and handle switching the tabs when
> appropriate (no errors).
>
> the tabbed panel has a factory method for the links it uses, so maybe you
> override that and create a formsubmitlink instead of the regular link.
>
> -Igor
>
>
>
> On 3/29/06, karthik Guru <[EMAIL PROTECTED]> wrote:
> > So you want to click on one tab ,  and that should actually result in
> > the form submit?
> > wicket extensions TabbedPanel uses Link and not SubmitLink.
> > So when you click on a tab , it does not submit your form and hence
> > you lose out on the data.
> >
> > ---
> >
> > Igor,
> >
> > I'm just thinking out loud ..so all this might be stupid.
> > Anyways , Is this correct -
> >
> > Get TabbedPanel to use SubmitLink instead of Link.
> > and SubmitLink.onSubmit() call getForm.process( )  --> this should
> > update his form
> > But since SubmitLink can be used only within a Form, the tabbed panel
> > has to be added within a Form? - That is something Stefan has to
> > ensure?
> >
> > ---
> >
> > Also, I guess in  ITab.getPanel( ) , you have to ensure that you
> > return the Panel that you submitted earlier using SubmitLink and not a
> > new one as it is done normally.
> >
> >
> >
> > On 3/29/06, Stefan Lindner <[EMAIL PROTECTED]> wrote:
> > > I use Wicket 1.2beta2 and I have the followin question:
> > > I have a TabbedPanel with several tabs (according to the example). Each
> Panel contains an InputForm. Weh I change from one pane to another by
> klicking at the tab label I receive no onSubmit event and the input is lost.
> is there a way to make the tab label act as a submit button for the form?
> Oder is there any other mechanism to do such things?
> > > Thanks in advance and thaky you for Wickt.
> > >
> > >
> >
> >
> > --
> > -- karthik --
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media. Attend the live
> webcast
> > and join the prime developer group breaking into this new coding
> territory!
> >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] onAttach() with ajax

2006-03-29 Thread Igor Vaynberg
yep, thats trunkOn 3/29/06, Arto Arffman <[EMAIL PROTECTED]> wrote:
hmm, i'm using svnroot/wicket/trunk/wicket, if that's what you mean
2006/3/29, Arto Arffman <[EMAIL PROTECTED]>:


OK, I'll check if it's my mistake or is there really a bug. 
 
(latest head, don't know what "off trunk" means) 
2006/3/29, Igor Vaynberg <[EMAIL PROTECTED]>: 


it should and i thought i recently fixed it, are you working off trunk? 
-Igor

On 3/28/06, Arto Arffman < [EMAIL PROTECTED] 
> wrote: 


Should onAttach() be called when ajax is used? (using latest head) 
 
If so I'll dig deeper...

 
/arto
 




Re: [Wicket-user] Caching content

2006-03-29 Thread Igor Vaynberg
you can cache those calculations in a modelhave a CachingModel that decorates another model and applies caching strategies.streaming html is fast in wicket, not sure if caching the actual html output will help you much.
-IgorOn 3/29/06, Alexander Lohse <[EMAIL PROTECTED]> wrote:
Hi John,thank you for sharing your thoughts. I am just in the same process/needs. I have a PHP-Application that grew into too much spagetthi-code over the years, and we have a strong need for a compiled, typed
language to preserve stability and be able to continue growing.This is a medium size site (av 2000 user/day, 3/pages per day).But we use heavy calculations and database interaction.Being able to cache in PHP is crucial. And this performance thingy is
my only worry about using wicket ...Can anyone share some performance experiences?Thank you,AlexAm 29.03.2006 um 11:38 schrieb John Lee:> I wish I had the time :-)  I'm in the process of moving my client's
> code from php->Java. Need to move to a typed language. Things were> getting way too messy with PHP. I discovered wicket and think it's> the right way to go. But I wanted to share my perspective from what
> I learned running a relatively high traffic website for a client...>> For very high concurrency sites (usually public facing websites as> opposed to intranet sites), memory (and CPU cycles used for object
> creation/gc) would seem to be the serious handicap for wicket.> Small/medium sized operators simply *cannot* afford to overlook> these in favor of the rich feature set & programming speed wicket
> has to offer. Also in order to capture the hosted market, one has> to design for VPS servers where CPU & memory are at a premium.>> I believe that wicket absolute needs these 2 things to make it to
> the mainstream public web:> 1) stateless objects - all users share a single object, thereby> drastically reducing memory consumption and tremendously boosting> scalability.> 2) html page & fragment caching
>> Thanks for listening.> John>> Eelco Hillenius wrote:>> Is that a proposal? :)>> My first thought on this is to use AOP and meta data (either>> annotations or Wicket meta data). If people are interested, they can
>> startup a project in wicket-stuff for this. We (the core developers)>> will try to help when needed/ possible.>> Ramnivas, are you reading with us? Would you agree AOP is suitable>> for this?
>> Eelco>> On 3/29/06, John Lee <[EMAIL PROTECTED]> wrote:>>> Hi>> I can tell you for public facing websites (vs enterprise),
>>> caching is a>>> key feature that system architects will insist upon. In order to>>> support>>> extremely high concurrency & throughput, one simply must be able to
>>> cache portions of HTML fragments.>> On my previous php based projects, I use caching to increase>>> throughput>>> from 30pps to 300pps. That's a factor of 10x. So we're talking
>>> about 1>>> machine replacing 10. From a business perspective, this is>>> absolutely>>> crucial.>> In my opinion, if wicket is going to make it to the mainstream
>>> public-facing web, it absolutely needs a comprehensive caching>>> framework. If possible, the caching framework should not only>>> eliminates>>> re-rendering of cached HTML fragments, but also eliminate the
>>> need to>>> instantiate objects until actually needed.>> John>> Juergen Donnerstag wrote:>>> On 1/2/06, Dariusz Wojtas <
[EMAIL PROTECTED]> wrote:> Hi,>> Is it possible to cache dynamically generated content with Wicket?
> When using JSP I may use OSCache tags (specify conditions,> timeout,> etc) or create a custom tag that uses any cache implementation> inside.
> Can this be done with Wicket?>> Can panel contents be cached? Other elements? How?> For example I generate table where each row contains quite
> complex data.> I'd like to be able to cache each row if needed. Every row might> contain a unique ID to make caching possible.>
 Not out of box yet, but I don't think it is difficult to implement based on the recently committed "transformers". Currently only a
 XSLT and a noop transformer is available but the idea would be the same. You just wouldn't transform the output generated by the component but
 store them in a cache and restore it when needed. The cache key could be anything from the component object, its id or path. All children would have to me marked rendered though in order to avoid an
 exception. Tranformers are available as Container and Behaviours. Q. Should the cache span the whole application because the panel you want to cache is used on multiple pages? Will the panel/list be the
 same for all users? Q: what would be the best cache key? Juergen> Darek
> --- This SF.net email is sponsored by: Splunk Inc. Do you grep
 through log files for problems?

Re: [Wicket-user] onAttach() with ajax

2006-03-29 Thread Arto Arffman
hmm, i'm using svnroot/wicket/trunk/wicket, if that's what you mean
2006/3/29, Arto Arffman <[EMAIL PROTECTED]>:


OK, I'll check if it's my mistake or is there really a bug. 
 
(latest head, don't know what "off trunk" means) 
2006/3/29, Igor Vaynberg <[EMAIL PROTECTED]>: 


it should and i thought i recently fixed it, are you working off trunk? 
-Igor

On 3/28/06, Arto Arffman < [EMAIL PROTECTED] 
> wrote: 


Should onAttach() be called when ajax is used? (using latest head) 
 
If so I'll dig deeper...

 
/arto
 


Re: [Wicket-user] Caching content

2006-03-29 Thread Alexander Lohse

Hi John,

thank you for sharing your thoughts. I am just in the same process/ 
needs. I have a PHP-Application that grew into too much spagetthi- 
code over the years, and we have a strong need for a compiled, typed  
language to preserve stability and be able to continue growing.
This is a medium size site (av 2000 user/day, 3/pages per day).  
But we use heavy calculations and database interaction.


Being able to cache in PHP is crucial. And this performance thingy is  
my only worry about using wicket ...

Can anyone share some performance experiences?

Thank you,

Alex

Am 29.03.2006 um 11:38 schrieb John Lee:

I wish I had the time :-)  I'm in the process of moving my client's  
code from php->Java. Need to move to a typed language. Things were  
getting way too messy with PHP. I discovered wicket and think it's  
the right way to go. But I wanted to share my perspective from what  
I learned running a relatively high traffic website for a client...


For very high concurrency sites (usually public facing websites as  
opposed to intranet sites), memory (and CPU cycles used for object  
creation/gc) would seem to be the serious handicap for wicket.  
Small/medium sized operators simply *cannot* afford to overlook  
these in favor of the rich feature set & programming speed wicket  
has to offer. Also in order to capture the hosted market, one has  
to design for VPS servers where CPU & memory are at a premium.


I believe that wicket absolute needs these 2 things to make it to  
the mainstream public web:
1) stateless objects - all users share a single object, thereby  
drastically reducing memory consumption and tremendously boosting  
scalability.

2) html page & fragment caching

Thanks for listening.
John

Eelco Hillenius wrote:

Is that a proposal? :)
My first thought on this is to use AOP and meta data (either
annotations or Wicket meta data). If people are interested, they can
startup a project in wicket-stuff for this. We (the core developers)
will try to help when needed/ possible.
Ramnivas, are you reading with us? Would you agree AOP is suitable  
for this?

Eelco
On 3/29/06, John Lee <[EMAIL PROTECTED]> wrote:

Hi

I can tell you for public facing websites (vs enterprise),  
caching is a
key feature that system architects will insist upon. In order to  
support

extremely high concurrency & throughput, one simply must be able to
cache portions of HTML fragments.

On my previous php based projects, I use caching to increase  
throughput
from 30pps to 300pps. That's a factor of 10x. So we're talking  
about 1
machine replacing 10. From a business perspective, this is  
absolutely

crucial.

In my opinion, if wicket is going to make it to the mainstream
public-facing web, it absolutely needs a comprehensive caching
framework. If possible, the caching framework should not only  
eliminates
re-rendering of cached HTML fragments, but also eliminate the  
need to

instantiate objects until actually needed.

John

Juergen Donnerstag wrote:


On 1/2/06, Dariusz Wojtas <[EMAIL PROTECTED]> wrote:



Hi,

Is it possible to cache dynamically generated content with Wicket?
When using JSP I may use OSCache tags (specify conditions,  
timeout,
etc) or create a custom tag that uses any cache implementation  
inside.

Can this be done with Wicket?

Can panel contents be cached? Other elements? How?
For example I generate table where each row contains quite  
complex data.

I'd like to be able to cache each row if needed. Every row might
contain a unique ID to make caching possible.




Not out of box yet, but I don't think it is difficult to implement
based on the recently committed "transformers". Currently only a  
XSLT

and a noop transformer is available but the idea would be the same.
You just wouldn't transform the output generated by the  
component but
store them in a cache and restore it when needed. The cache key  
could

be anything from the component object, its id or path. All children
would have to me marked rendered though in order to avoid an
exception.
Tranformers are available as Container and Behaviours.
Q. Should the cache span the whole application because the panel  
you

want to cache is used on multiple pages? Will the panel/list be the
same for all users?
Q: what would be the best cache key?

Juergen




Darek





---
This SF.net email is sponsored by: Splunk Inc. Do you grep  
through log files
for problems?  Stop!  Download the new AJAX search engine that  
makes
searching your log files as easy as surfing the  web.  DOWNLOAD  
SPLUNK!

http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by xPML, a groundbreaking  
scripting language
that extends applications into web and

Re: [Wicket-user] Links opening Borders in an AJAX-like

2006-03-29 Thread Igor Vaynberg
this will be very specific to each application, you can do this yourself easily enough. add an ajax link that replaces the content area with a panel, and updates the panel.this is kinda like the TabbedPanel/AjaxTabbedPanel works, take a look at that.
-IgorOn 3/29/06, Bruno Borges <[EMAIL PROTECTED]> wrote:
Is it possible to build a Border (i.e.: NavomaticBorder) that opens the pages in the contentBody div using Ajax?Some Ajax component will process the page, and put the content into the  replacing or changing the visibility (cache-mode). Is there any Wicket Component that does this ?
In the Navomatic example, I didn't want to update the entirely page.Regards,-- Bruno Borges
[EMAIL PROTECTED]Sun Certified Java Programmer for 
1.4Sun Certified Web Component Developer for 1.4




Re: [Wicket-user] onAttach() with ajax

2006-03-29 Thread Igor Vaynberg
yes, the page will cascade ondetach() down its hierarchy.-IgorOn 3/29/06, Arto Arffman <[EMAIL PROTECTED]
> wrote:Yes, that's the way it should be. First it sounded a bit unconsistent but there could be situations where 
page.onDetach() needs to be called. eg. if one of the rendered components uses page's model. On the other hand, they could use for example form's model through compound model. Is onDetach() called for every component?

 
/arto 
2006/3/30, Igor Vaynberg <[EMAIL PROTECTED]>:

yeah, page.onattach will not be called, only the components that are added to the target.page.ondetach gets called at the end of any request cycle, i dont think its a problem because unless the page has been attached it should be a noop, and its a good safety net. 
 
-Igor

On 3/29/06, Arto Arffman <[EMAIL PROTECTED]
> wrote: 


I think it's mistake. I was relying on Page's onAttach(). I suppose its only those components that get rendered, am I rigth?
 
Funny though, Page.onDetach() is called, but Page.onAttach() is not. 
2006/3/29, Arto Arffman <[EMAIL PROTECTED]>: 

hmm, i'm using svnroot/wicket/trunk/wicket, if that's what you mean
2006/3/29, Arto Arffman <[EMAIL PROTECTED]>: 




OK, I'll check if it's my mistake or is there really a bug. 
 
(latest head, don't know what "off trunk" means) 
2006/3/29, Igor Vaynberg <[EMAIL PROTECTED]>: 


it should and i thought i recently fixed it, are you working off trunk? 
-Igor

On 3/28/06, Arto Arffman < [EMAIL PROTECTED] 
> wrote: 


Should onAttach() be called when ajax is used? (using latest head) 
 
If so I'll dig deeper...

 
/arto
 
 
 




Re: [Wicket-user] onAttach() with ajax

2006-03-29 Thread Arto Arffman
Yes, that's the way it should be. First it sounded a bit unconsistent but there could be situations where page.onDetach() needs to be called. eg. if one of the rendered components uses page's model. On the other hand, they could use for example form's model through compound model. Is onDetach() called for every component?

 
/arto 
2006/3/30, Igor Vaynberg <[EMAIL PROTECTED]>:

yeah, page.onattach will not be called, only the components that are added to the target.page.ondetach gets called at the end of any request cycle, i dont think its a problem because unless the page has been attached it should be a noop, and its a good safety net. 
 
-Igor

On 3/29/06, Arto Arffman <[EMAIL PROTECTED]
> wrote: 


I think it's mistake. I was relying on Page's onAttach(). I suppose its only those components that get rendered, am I rigth?
 
Funny though, Page.onDetach() is called, but Page.onAttach() is not. 
2006/3/29, Arto Arffman <[EMAIL PROTECTED]>: 

hmm, i'm using svnroot/wicket/trunk/wicket, if that's what you mean
2006/3/29, Arto Arffman <[EMAIL PROTECTED]>: 




OK, I'll check if it's my mistake or is there really a bug. 
 
(latest head, don't know what "off trunk" means) 
2006/3/29, Igor Vaynberg <[EMAIL PROTECTED]>: 


it should and i thought i recently fixed it, are you working off trunk? 
-Igor

On 3/28/06, Arto Arffman < [EMAIL PROTECTED] 
> wrote: 


Should onAttach() be called when ajax is used? (using latest head) 
 
If so I'll dig deeper...

 
/arto
 
 
 


[Wicket-user] Getting Page After Intercept Page

2006-03-29 Thread Andrew Berman
Is there a way to get the page the intercept page is supposed to go to inside the intercept page?  The PageMap has no method which allows me to get the continuation url, but I need some way of getting the Page after the intercept page because I want something to show up only if the continuation page is a specific page.  Hopefully this email makes sense...
Thanks for any help,--Andrew


Re: [Wicket-user] onAttach() with ajax

2006-03-29 Thread Igor Vaynberg
yeah, page.onattach will not be called, only the components that are added to the target.page.ondetach gets called at the end of any request cycle, i dont think its a problem because unless the page has been attached it should be a noop, and its a good safety net.
-IgorOn 3/29/06, Arto Arffman <[EMAIL PROTECTED]> wrote:
I think it's mistake. I was relying on Page's onAttach(). I suppose its only those components that get rendered, am I rigth?
 
Funny though, Page.onDetach() is called, but Page.onAttach() is not. 
2006/3/29, Arto Arffman <[EMAIL PROTECTED]>:

hmm, i'm using svnroot/wicket/trunk/wicket, if that's what you mean
2006/3/29, Arto Arffman <[EMAIL PROTECTED]>: 




OK, I'll check if it's my mistake or is there really a bug. 
 
(latest head, don't know what "off trunk" means) 
2006/3/29, Igor Vaynberg <[EMAIL PROTECTED]>: 


it should and i thought i recently fixed it, are you working off trunk? 
-Igor

On 3/28/06, Arto Arffman < [EMAIL PROTECTED] 
> wrote: 


Should onAttach() be called when ajax is used? (using latest head) 
 
If so I'll dig deeper...

 
/arto
 
 




Re: [Wicket-user] Form submit from outside Wicket

2006-03-29 Thread Johan Compagner
i would submit to a bookmarkable page yes.That would be the easiest thing to do.johanOn 3/29/06, Sven Meier <
[EMAIL PROTECTED]> wrote:How would you handle a submit of a form that originates from outside of
Wicket?Let me explain:In many web applications some forms (e.g. 'search a product') arereplicated on other pages of the same application or even on other sitesof business partners or advertisers.
For our actionframework-brethren this poses no problem, because anaction (e.g. a Struts action) can usally be initated with a form post.But I don't have a clue how to do something similar in wicket. AFAIK a
form has to be rendered first, before being able to accept incoming dataon the next request.Does somebody have a suggestion for this, something like 'open a pagewith a bookmarkable link and immediately submit its contained form with
the transmitted parameters'?ThanksSven---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] onAttach() with ajax

2006-03-29 Thread Arto Arffman
I think it's mistake. I was relying on Page's onAttach(). I suppose its only those components that get rendered, am I rigth?
 
Funny though, Page.onDetach() is called, but Page.onAttach() is not. 
2006/3/29, Arto Arffman <[EMAIL PROTECTED]>:

hmm, i'm using svnroot/wicket/trunk/wicket, if that's what you mean
2006/3/29, Arto Arffman <[EMAIL PROTECTED]>: 



OK, I'll check if it's my mistake or is there really a bug. 
 
(latest head, don't know what "off trunk" means) 
2006/3/29, Igor Vaynberg <[EMAIL PROTECTED]>: 


it should and i thought i recently fixed it, are you working off trunk? 
-Igor

On 3/28/06, Arto Arffman < [EMAIL PROTECTED] 
> wrote: 


Should onAttach() be called when ajax is used? (using latest head) 
 
If so I'll dig deeper...

 
/arto
 
 


Re: [Wicket-user] onAttach() with ajax

2006-03-29 Thread Igor Vaynberg
head is for cvs, trunk is for svn :)-IgorOn 3/29/06, Arto Arffman <[EMAIL PROTECTED]> wrote:
OK, I'll check if it's my mistake or is there really a bug. 

 
(latest head, don't know what "off trunk" means) 
2006/3/29, Igor Vaynberg <[EMAIL PROTECTED]>:

it should and i thought i recently fixed it, are you working off trunk? 
-Igor

On 3/28/06, Arto Arffman < [EMAIL PROTECTED]
> wrote: 


Should onAttach() be called when ajax is used? (using latest head) 
 
If so I'll dig deeper...

 
/arto




[Wicket-user] Links opening Borders in an AJAX-like

2006-03-29 Thread Bruno Borges
Is it possible to build a Border (i.e.: NavomaticBorder) that opens the pages in the contentBody div using Ajax?Some Ajax component will process the page, and put the content into the  replacing or changing the visibility (cache-mode). Is there any Wicket Component that does this ?
In the Navomatic example, I didn't want to update the entirely page.Regards,-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 
1.4Sun Certified Web Component Developer for 1.4


[Wicket-user] Form submit from outside Wicket

2006-03-29 Thread Sven Meier
How would you handle a submit of a form that originates from outside of 
Wicket?


Let me explain:

In many web applications some forms (e.g. 'search a product') are 
replicated on other pages of the same application or even on other sites 
of business partners or advertisers.
For our actionframework-brethren this poses no problem, because an 
action (e.g. a Struts action) can usally be initated with a form post.
But I don't have a clue how to do something similar in wicket. AFAIK a 
form has to be rendered first, before being able to accept incoming data 
on the next request.


Does somebody have a suggestion for this, something like 'open a page 
with a bookmarkable link and immediately submit its contained form with 
the transmitted parameters'?


Thanks

Sven


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] onAttach() with ajax

2006-03-29 Thread Arto Arffman
OK, I'll check if it's my mistake or is there really a bug. 
 
(latest head, don't know what "off trunk" means) 
2006/3/29, Igor Vaynberg <[EMAIL PROTECTED]>:

it should and i thought i recently fixed it, are you working off trunk? 
-Igor

On 3/28/06, Arto Arffman < [EMAIL PROTECTED]
> wrote: 


Should onAttach() be called when ajax is used? (using latest head) 
 
If so I'll dig deeper...

 
/arto


Re: [Wicket-user] The web framework map

2006-03-29 Thread Eelco Hillenius
Very nice! Quite a bit of work that must have been :)

I skimmed through it quickly, and in general it seems like a useful
taxonomy. Do you have any specific areas where you would like to see
some user participation?

Eelco


On 29 Mar 2006 14:23:23 +0200, Iwan Vosloo <[EMAIL PROTECTED]> wrote:
>
> Hi Eelco.
>
> About a year ago we had an exchange about the survey I was busy with of
> 80 web framework (and related) projects.  (It forms part of my Masters
> dissertation.)
>
> I've put up a wiki with the results at: http://www.reahl.org/wfmwiki.
>
> It would be great if you could join in!
>
> I include some text from the introduction below.
>
> Regards
>  -- Iwan Vosloo
>
> -
>
> Introduction
> 
>
> There are many web frameworks available at the moment - new ones pop
> up very regularly. It takes quite a bit of effort to figure out what
> the essence of a new framework is.
>
> Biologists are faced with a similar problem when they discover a new
> exotic animal. But they have a valuable tool to their disposal. They
> have a taxonomy of different kinds of animals. When a new animal is
> discovered, it is classified according to this taxonomy. This act of
> classification already attaches a lot of known knowledge about the new
> animal - a big aid in getting to grips with "yet another animal".
>
> This wiki is an attempt at creating a similar tool for people who are
> interested in studying and comparing web frameworks.
>
> The task of keeping an up-to-date and useful map of the web framework
> world is a little daunting if you think about it: The world is a big
> place, and there are very many web frameworks in it. New web
> frameworks pop up regularly. Careful study of each of these takes a
> lot of time and effort. Each web framework designer seems to invent
> particular terminology that may or may not mean the same as the
> terminology used by others. And, of course, these things keep changing
> and growing.
>
> But it is precisely in such an environment that a map of sorts is
> useful. It gives structure: if you're working with a particular
> framework, it often helps to know where it fits with the rest of the
> world: to know its fundamental intention, strengths and
> weaknesses. When you want to create a new one, a map can show what is
> new and what is old-hat.
>
> This wiki was created with the hope that others may find it useful and
> that the interested parties can use it to collaborate and keep the web
> framework map growing and useful.
>
>
> Eelco Hillenius <[EMAIL PROTECTED]> writes:
>
> > That's a pretty good description. Here and there I could argue about
> > some details, but on the whole I think it is good.
> >
> > I am currently working on a mind map (with OSS tool FreeMind) on the
> > subject of Java webframeworks, and how Wicket fits in. If you're
> > interested, I am happy to send it to you when I am done (this weekend).
> >
> > Eelco
> >
> >
> > Iwan Vosloo wrote:
> >
> > >Hi there.
> > >
> > >I'm stretching mailing list ettiquette here - I'm currently
> > >researching a really long list of web development frameworks, of which
> > >Wicket is one.  Thus, I have limited time for each one.  I'd
> > >appreciate it hugely of someone on this list would read the following
> > >severely summarised "understanding" that I currently have of Wicket's
> > >basic model, and correct me where I'm wrong.
> > >
> > >Thanks -i
> > >
> > >Wicket is an attempt to split the development of a web application
> > >into separate pure HTML and pure Java programming language code.
> > >
> > >An application (including presentation related parts) is coded
> > >entirely in Java code using a library (modelled after Java Swing).
> > >
> > >A page can be composed from several UI components. The framework also
> > >includes a number of different logical types of events (things like:
> > >button clicked, list box value changed, page redirected). Listener
> > >classes for each of these events can then be written and instances of
> > >them can register with a UI component.  If the event (for which a
> > >Listener is registered) happens on the component (for which the
> > >Listener is registered), a callback method is called on the Listener
> > >object - usually invoking some user code.
> > >
> > >Each page also has an HTML file counterpart which is the template for
> > >rendering that page in HTML. Wicket templates are valid XML, which
> > >makes them editable in standard editors used by web page designers.
> > >Special tags in the wicket namespace are used to correlate elements in
> > >these HTML templates with UI components coded in Java.
> > >
> > >In Wicket, an HTTP request is mapped to a page in the application.
> > >Form input in a request is automatically read, converted to
> > >programming language types and input into each input's corresponding
> > >programming language component (these are persisted in session scope).
> > >From this possible in

Re: [Wicket-user] Html Resources Configuration in WebApplication subclasses

2006-03-29 Thread Bruno Borges
I got it. From the Wicket-Example. :)Thank youOn 3/29/06, Juergen Donnerstag <[EMAIL PROTECTED]
> wrote:not that I can think ofJuergenOn 3/29/06, Vincent Jenks <
[EMAIL PROTECTED]> wrote:> Is there a performance hit for customizing the location of the html files?> I thought I had read that somewhere in the wiki, once upon a time.
>>> On 3/29/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:> >>  please see wicket-example  customresourceloading
>> Juergen>> On 3/29/06, Bruno Borges <[EMAIL PROTECTED]> wrote:> > I don't like the way wicket put together Java classes with HTML resources
> > (in the same package structure).> >> > Even if I move the structure to another path, like WEB-INF/html, I must> > reproduce all the package tree, and then add a resource folder in my
> init()> > WebApplication subclass.> >> > I was wondering if is it possible to implement a feature where we can map> a> > hole package tree to a simple directory, and from there, respect the sub
> > packages. Please follow my toughs:> >> > This is how I'm doing right now:> >> > src/com/foo/view/pages/IndexPage.java> > src/com/foo/view/panels/BannerPanel.java
> > webapp/WEB-INF/html/com/foo/view/panels/BannerPanel.html> > webapp/WEB-INF/html/com/foo/view/pages/IndexPage.html> >> > And this is how I'd like to do without hacks and Java code:
> >> >  src/com/foo/view/pages/IndexPage.java> > src/com/foo/view/panels/BannerPanel.java> > webapp/WEB-INF/html/panels/BannerPanel.html> >  webapp/WEB-INF/html/pages/IndexPage.html
> >> > This means that the package "com.foo.view" is mapped to the resource> > directory "WEB-INF/html".> >> > This sounds a good idea, specially for huge projects that will need to
> > modularize their interfaces.> >> > src/com/foo/moduleA/view/[pages/panels]/[Classes]  -->> > webapp/WEB-INF/html/moduleA/[pages/panels]/[Htmls]> >> > This reduce the path size and our designers will love it. :)
> >> > This can maybe be implemented like this:> >> >> getResourceSettings().addResourceMappingPackage("com.foo.moduleA",> > "/WEB-INF/html/moduleA");
> >> >  And all resources beneath from html/moduleA will need to follow the rest> of> > the package structure.> >> > I like wicket, because it gives designers the possibility to don't worry
> > about java taglibs, <%= hell code %> and other things. Of course, I like> it> > because the rest of its features :o)> >> > But out-of-the-box, it's not easy to say: Designers, access the "source"
> > folder and edit only the html files and don't mess up with the> directories.> > They must have some independence :)> >> > Regards,> >> > --> > Bruno Borges
> > [EMAIL PROTECTED]> > Sun Certified Java Programmer for 1.4> > Sun Certified Web Component Developer for 1.4> >>>
> ---> This SF.Net email is sponsored by xPML, a groundbreaking scripting language> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net>  
https://lists.sourceforge.net/lists/listinfo/wicket-user>>---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Bruno Borges
[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 1.4


Re: [Wicket-user] Wicket Include vs. RequestDispatcher.include

2006-03-29 Thread Eelco Hillenius
That's what I did in the first version(s) of Include. There were
issues with it, which I unfortunately forgot. I never use this
component myself, but if you have good ideas in the form of patches,
I'd be happy to look at them.

Eelco

On 3/29/06, Nili Adoram <[EMAIL PROTECTED]> wrote:
> Hi,
> Is there an option to use utilize wicket Include without opening a new
> connection?
> I would like to include the contents of a URL like
> RequestDispatcher.include() does, directly into a wicket component.
> 10x
> Nili
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tags building the component tree

2006-03-29 Thread Juergen Donnerstag
and please add a junit test (not just describing the problem).
src/test contains plenty of junit test you might copy&paste (search
for WicketTestCase)

Juergen

On 3/29/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> it might be a bug because we handle  tags specially ( we dont require
> them to be closed) i believe, please file.
>
> -Igor
>
>
>
> On 3/29/06, Rüdiger Schulz <[EMAIL PROTECTED]> wrote:
> > Justin Lee wrote on 29.03.2006 at 18:44:
> >
> > thanks for your quick reply :)
> >
> > Actually, that is what I also thought is logical. Still I wonder why
> > this works, with the red asteriks and all:
> >
> > 
> >   
> > 
> >   
> > 
> >
> > and this here not, throwing the Exception mentioned:
> >
> > 
> >   
> > 
> >   
> > 
> >
> > with the exact same Java code to create the page.
> >
> >
> > > -BEGIN PGP SIGNED MESSAGE-
> > > Hash: RIPEMD160
> >
> > > Right.  then you'd add the feedback panel and textfield directly to your
> > > page/panel.  Otherwise, you'd have to add the textfield to your feedback
> > > panel since that's where you had it nested.
> >
> > > Rüdiger Schulz wrote:
> > >> Justin Lee wrote on 29.03.2006 at 18:12:
> > >>
> > >>> 
> > >>>
> > >>>
> > >>> 
> > >>
> > >> Sorry, this doesn't work either :(
> > >> Wouldn't that be a component tree like that:
> > >>
> > >> fooForm:barFeedback
> > >> fooForm:barText
> > >>
> > >> ?
> > >>
> > >> Still wondering why my example works with  but not with ...
> > >>
> > >>
> > >>> Rüdiger Schulz wrote:
> >  Hello list,
> > 
> >  I'm just starting to use Wicket 1.1, and stumbled upon an issue with
> >  the component tree.
> > 
> >  Say I have a Form fooForm and a TextField barText, which is wrapped
> in a
> >  FormComponentFeedbackBorder barFeedback. The tree therefore is like
> >  this:
> > 
> >  fooForm:barFeedback:barText
> > 
> >  I'd like to do HTML like this:
> > 
> >  
> >    
> >  
> >    
> >  
> > 
> >  If I run the page, I get a MarkupException: Unable to find component
> >  with id 'barText'.
> > 
> >  But if I replace the  tag with a  tag, this works fine, which
> >  seems rather strange to me. Does it really matter in what tags i put
> >  the wicket:id? And if so, why is there no error regarding the
> >  barFeedback in the first place? Is there a list of valid tags for
> >  building the component tree in the HTML?
> > 
> > 
> > >>
> > >>
> >
> >
> >
> >
> >
> > --
> > greetings from Berlin,
> >
> > Rüdiger Schulz
> >
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media. Attend the live
> webcast
> > and join the prime developer group breaking into this new coding
> territory!
> >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with AjaxLink and Borders with setTransparentResolver(true)?

2006-03-29 Thread Juergen Donnerstag
Ok, should be fixed in svn head now. Added junit tests.

Juergen

On 3/29/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> sorry, I was mislead. Your code is right. The issue is the Ajax stuff
> is not yet supported if the Ajax component is part of a bordered page.
> Please use markup inheritance instead.
>
> Juergen
>
> On 3/29/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> > Wicket shouldn't get into an infinite loop, that for sure. But there
> > is a bug in your code:
> >
> > myBorder = new PageLayout("pageLayout", "Ajax Test");
> > myBorder.setTransparentResolver(true);
> > add(myBorder);
> >
> > add(ajaxLabel = new Label("ajaxLabel", "AAA" ));
> >
> > ajaxLabel.setOutputMarkupId(true);
> >
> > add(new AjaxLink("ajaxLink") {
> >
> > You must add the components to the *border* and not the page
> > myBorder = new PageLayout("pageLayout", "Ajax Test");
> > myBorder.setTransparentResolver(true);
> > add(myBorder);
> >
> > myBorder.add(ajaxLabel = new Label("ajaxLabel", "AAA" ));
> >
> > ajaxLabel.setOutputMarkupId(true);
> >
> > myBorder.add(new AjaxLink("ajaxLink") {
> >
> > Juergen
> >
> > On 3/29/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> > > There is already a bug for this in sourceforge.
> > >
> > > Juergen
> > >
> > > On 3/29/06, Andre Matheus <[EMAIL PROTECTED]> wrote:
> > > > I am having trouble using Ajax links in pages with a border with
> > > > setTransparentResolver(true);
> > > >
> > > > The message in the Wicket Ajax Debugger is the following:
> > > >
> > > >  INFO:
> > > >   INFO: initiating ajax GET request with...
> > > >   INFO: url: 
> > > > /QuickStart/app?wicket:interface=:2:ajaxLink:-1:IUnversionedBehaviorListener&wicket:behaviorId=0
> > > >   INFO: successHandler:undefined
> > > >
> > > > The strange thing is that it not only does nothing, but worst, it
> > > > makes my CPU utilization goes to 100%.
> > > >
> > > > The onClick method finishes without exceptions, as I see the system
> > > > outputs as expected.
> > > >
> > > > Does anybody has an Idea of what can be the problem?
> > > >
> > > > Thank you very much.
> > > >
> > > > Code:
> > > > //-
> > > > public class AjaxTest extends WebPage {
> > > >  Label ajaxLabel;
> > > >  private PageLayout myBorder;
> > > >  // TODO Add any page properties or variables here
> > > >  public AjaxTest(){
> > > >  super();
> > > >
> > > >  myBorder = new PageLayout("pageLayout", "Ajax Test");
> > > >  myBorder.setTransparentResolver(true);
> > > >  add(myBorder);
> > > >
> > > >  add(ajaxLabel = new Label("ajaxLabel", "AAA" ));
> > > >
> > > >  ajaxLabel.setOutputMarkupId(true);
> > > >
> > > >  add(new AjaxLink("ajaxLink") {
> > > >  public void onClick(AjaxRequestTarget target) {
> > > >  System.out.println("AjaxLink.onClick - START");
> > > >  Label ajaxLabel2 = new Label("ajaxLabel", "BBB");
> > > >  ajaxLabel2.setOutputMarkupId(true);
> > > >  System.out.println("AjaxLink.onClick - MID");
> > > >  ajaxLabel.getParent().replace(ajaxLabel2);
> > > >  if(target!=null) target.addComponent(ajaxLabel2, 
> > > > "ajaxLabel");
> > > >  System.out.println("AjaxLink.onClick - END");
> > > >  }
> > > >  });
> > > >
> > > >  }
> > > >
> > > >  }
> > > >
> > > > //
> > > >
> > > > PS.: In the output I see the following before the CPU gets crazy:
> > > >
> > > > AjaxLink.onClick - START
> > > > AjaxLink.onClick - MID
> > > > AjaxLink.onClick - END
> > > >
> > > >
> > > > --
> > > > __
> > > > André Matheus
> > > >
> > > >
> > > > ---
> > > > This SF.Net email is sponsored by xPML, a groundbreaking scripting 
> > > > language
> > > > that extends applications into web and mobile media. Attend the live 
> > > > webcast
> > > > and join the prime developer group breaking into this new coding 
> > > > territory!
> > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> >
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
W

Re: [Wicket-user] Tags building the component tree

2006-03-29 Thread Igor Vaynberg
it might be a bug because we handle  tags specially ( we dont require them to be closed) i believe, please file.-IgorOn 3/29/06, Rüdiger Schulz
 <[EMAIL PROTECTED]> wrote:Justin Lee wrote on 
29.03.2006 at 18:44:thanks for your quick reply :)Actually, that is what I also thought is logical. Still I wonder whythis works, with the red asteriks and all:
and this here not, throwing the Exception mentioned:
with the exact same Java code to create the page.
> -BEGIN PGP SIGNED MESSAGE-> Hash: RIPEMD160> Right.  then you'd add the feedback panel and textfield directly to your> page/panel.  Otherwise, you'd have to add the textfield to your feedback
> panel since that's where you had it nested.> Rüdiger Schulz wrote:>> Justin Lee wrote on 29.03.2006 at 18:12:> >>>
>>>>>>  Sorry, this doesn't work either :(>> Wouldn't that be a component tree like that:
 fooForm:barFeedback>> fooForm:barText ? Still wondering why my example works with  but not with ...
>>> Rüdiger Schulz wrote: Hello list, I'm just starting to use Wicket 1.1, and stumbled upon an issue with the component tree.
 Say I have a Form fooForm and a TextField barText, which is wrapped in a FormComponentFeedbackBorder barFeedback. The tree therefore is like this:
 fooForm:barFeedback:barText I'd like to do HTML like this: 
        
 If I run the page, I get a MarkupException: Unable to find component with id 'barText'. But if I replace the  tag with a  tag, this works fine, which
 seems rather strange to me. Does it really matter in what tags i put the wicket:id? And if so, why is there no error regarding the barFeedback in the first place? Is there a list of valid tags for
 building the component tree in the HTML?--greetings from Berlin,Rüdiger Schulz---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] help

2006-03-29 Thread Igor Vaynberg
heh, you are not really giving us much to go on. show us what you have so far.-IgorOn 3/29/06, ketan gote <
[EMAIL PROTECTED]> wrote:hi

i want to fetch the data from database which i have done
and want to display it in respective textfield which i am not able to do.
wating for replay

regards
ketan




Re: [Wicket-user] Wicket versus Echo

2006-03-29 Thread Eelco Hillenius
Ok, well in that case the same arguments hold except for the ajax thingy.

Eelco

On 3/29/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> i think he was talking about Echo not Echo 2 :)
>
> -Igor
>
>
>
> On 3/29/06, Eelco Hillenius <[EMAIL PROTECTED] > wrote:
> >
> > I was browsing some of the framework comparisons on the web and realized
> > that though Wicket is in key ways most similar to Echo.  Yet, very little
> > has been written to contrast these two.  The one difference that I can
> > ascertain is that Wicket exposes the underlying html whereas Echo
> completely
> > hides the html from the developer.  What are some of the implications of
> > this difference that would make Wicket better than Echo?
> >  (I dislike html, so that's a point for Echo, but maybe access to the html
> is sometimes
> > necessary – which would be a point for Wicket).
>
> First of all, I don't think we are better; we took different
> approaches which may or may not suit you.
>
> The most striking differences are that Echo 2 is fully based on ajax -
> which choose to implement ajax additional/ optional - that it works
> with it's own layout management - while we believe HTML is suited for
> that, and another abstraction let's you loose flexiblity and makes
> things less transparent -, and doesn't support the back button and
> bookmarkable urls. These latter two things seem to be a deliberate
> choice, and if you see how much work this is to get it right for
> Wicket, I can image why they made that choice.
>
> The best way to learn about these differences is to just build e.g. a
> simple CRUD application with both frameworks.
>
> Eelco
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket versus Echo

2006-03-29 Thread Igor Vaynberg
i think he was talking about Echo not Echo 2 :)-IgorOn 3/29/06, Eelco Hillenius <[EMAIL PROTECTED]
> wrote:> I was browsing some of the framework comparisons on the web and realized
> that though Wicket is in key ways most similar to Echo.  Yet, very little> has been written to contrast these two.  The one difference that I can> ascertain is that Wicket exposes the underlying html whereas Echo completely
> hides the html from the developer.  What are some of the implications of> this difference that would make Wicket better than Echo?>  (I dislike html, so that's a point for Echo, but maybe access to the html is sometimes
> necessary – which would be a point for Wicket).First of all, I don't think we are better; we took differentapproaches which may or may not suit you.The most striking differences are that Echo 2 is fully based on ajax -
which choose to implement ajax additional/ optional - that it workswith it's own layout management - while we believe HTML is suited forthat, and another abstraction let's you loose flexiblity and makesthings less transparent -, and doesn't support the back button and
bookmarkable urls. These latter two things seem to be a deliberatechoice, and if you see how much work this is to get it right forWicket, I can image why they made that choice.The best way to learn about these differences is to just build 
e.g. asimple CRUD application with both frameworks.Eelco---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] onAttach() with ajax

2006-03-29 Thread Igor Vaynberg
it should and i thought i recently fixed it, are you working off trunk?-IgorOn 3/28/06, Arto Arffman <
[EMAIL PROTECTED]> wrote:Should onAttach() be called when ajax is used? (using latest head)

 
If so I'll dig deeper...
 
/arto




[Wicket-user] help

2006-03-29 Thread ketan gote
hi

i want to fetch the data from database which i have done
and want to display it in respective textfield which i am not able to do.
wating for replay

regards
ketan


Re: [Wicket-user] javascript validation

2006-03-29 Thread Eelco Hillenius
And please read the notes of that project. If you are serious about
using it, we might resurrect it and help you maintain it. Otherwise,
it's just there to serve as an example of how javascript validation
might be implemented. And if you have alternatives, we would be
interested to learn about it of course.

Eelco


On 3/29/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> http://wicket-stuff.sourceforge.net/wicket-contrib-fvalidate/
>
>
> On 3/29/06, Theo vN <[EMAIL PROTECTED]> wrote:
> > Hi
> >
> > I'm new to Wicket and so far so good.
> >
> > I'm used to Tapestry's javascript validation but I seem not to be able
> > to find any documentation/examples/facts on whether Wicket supports
> > client side javascript validation or not. I am NOT talking about
> > anything AJAX.
> >
> > Can somebody please enlighten me.
> >
> > --
> > Cheers
> > Theo
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media. Attend the live
> webcast
> > and join the prime developer group breaking into this new coding
> territory!
> >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
> --
> Wicket 1.2 is coming! Write Ajax applications without touching JavaScript!
> -- http://wicketframework.org


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] EJB3 Stateful SB - session issues/questions

2006-03-29 Thread Igor Vaynberg
you can inject the proxy into any componentlook at wicket-spring projectyou can create a IFieldValueFactory that injects a proxy for your stateful bean.-Igor
On 3/29/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:
I'm sitting here, pondering, and getting fatter.  I'm building a storefront app w/ a simple shopping cart for which I'm thinking of using a Stateful session bean (EJB 3.0).It looks like, no matter how I look at it, I'll have to keep the SFSB stub in-session throughout its use in the application...and I'm not sure of a real elegant way of doing that.  So, I was just hoping someone here could provide some insight.
In Wicket, I've already got a class called UserSession which I use to pass around an User so I can test whether or not a page is accessible by certain user groups.  I decided, to keep it simple, that I'd add a getter & setter for my ShoppingCart stub in the same class so it could be passed around in-session w/ the User, since each shopper will have an User automatically created for them before checking out and paying.
The problem w/ all this SFSB business is; it violates my design because I have to make my web tier talk directly to my session bean in order to keep track of its state.  For everything else I've been using a handful of proxy classes where I could place calls to my session beans and other business logic.
It looks a little like this:Wicket->ProxyClass->SessionBean->DatabaseSo, now I'll have to keep track of the ShoppingCart stub class in Wicket, pass the ShoppingCart and the users' chosen form values into the Proxy, perform business logic, and then return a ShoppingCart which I'll have to place *back* into the 
UserSession.setCart() method to continue to keep track of the state of the users' carts.This is kinda nasty, is there an easier (or just more elegant) way to do this?Thanks all!




Re: [Wicket-user] Wicket versus Echo

2006-03-29 Thread Eelco Hillenius
> I was browsing some of the framework comparisons on the web and realized
> that though Wicket is in key ways most similar to Echo.  Yet, very little
> has been written to contrast these two.  The one difference that I can
> ascertain is that Wicket exposes the underlying html whereas Echo completely
> hides the html from the developer.  What are some of the implications of
> this difference that would make Wicket better than Echo?
>  (I dislike html, so that's a point for Echo, but maybe access to the html is 
> sometimes
> necessary – which would be a point for Wicket).

First of all, I don't think we are better; we took different
approaches which may or may not suit you.

The most striking differences are that Echo 2 is fully based on ajax -
which choose to implement ajax additional/ optional - that it works
with it's own layout management - while we believe HTML is suited for
that, and another abstraction let's you loose flexiblity and makes
things less transparent -, and doesn't support the back button and
bookmarkable urls. These latter two things seem to be a deliberate
choice, and if you see how much work this is to get it right for
Wicket, I can image why they made that choice.

The best way to learn about these differences is to just build e.g. a
simple CRUD application with both frameworks.

Eelco


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Html Resources Configuration in WebApplication subclasses

2006-03-29 Thread Juergen Donnerstag
not that I can think of

Juergen

On 3/29/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:
> Is there a performance hit for customizing the location of the html files?
> I thought I had read that somewhere in the wiki, once upon a time.
>
>
> On 3/29/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> >
>  please see wicket-example  customresourceloading
>
> Juergen
>
> On 3/29/06, Bruno Borges <[EMAIL PROTECTED]> wrote:
> > I don't like the way wicket put together Java classes with HTML resources
> > (in the same package structure).
> >
> > Even if I move the structure to another path, like WEB-INF/html, I must
> > reproduce all the package tree, and then add a resource folder in my
> init()
> > WebApplication subclass.
> >
> > I was wondering if is it possible to implement a feature where we can map
> a
> > hole package tree to a simple directory, and from there, respect the sub
> > packages. Please follow my toughs:
> >
> > This is how I'm doing right now:
> >
> > src/com/foo/view/pages/IndexPage.java
> > src/com/foo/view/panels/BannerPanel.java
> > webapp/WEB-INF/html/com/foo/view/panels/BannerPanel.html
> > webapp/WEB-INF/html/com/foo/view/pages/IndexPage.html
> >
> > And this is how I'd like to do without hacks and Java code:
> >
> >  src/com/foo/view/pages/IndexPage.java
> > src/com/foo/view/panels/BannerPanel.java
> > webapp/WEB-INF/html/panels/BannerPanel.html
> >  webapp/WEB-INF/html/pages/IndexPage.html
> >
> > This means that the package "com.foo.view" is mapped to the resource
> > directory "WEB-INF/html".
> >
> > This sounds a good idea, specially for huge projects that will need to
> > modularize their interfaces.
> >
> > src/com/foo/moduleA/view/[pages/panels]/[Classes]  -->
> > webapp/WEB-INF/html/moduleA/[pages/panels]/[Htmls]
> >
> > This reduce the path size and our designers will love it. :)
> >
> > This can maybe be implemented like this:
> >
> >
> getResourceSettings().addResourceMappingPackage("com.foo.moduleA",
> > "/WEB-INF/html/moduleA");
> >
> >  And all resources beneath from html/moduleA will need to follow the rest
> of
> > the package structure.
> >
> > I like wicket, because it gives designers the possibility to don't worry
> > about java taglibs, <%= hell code %> and other things. Of course, I like
> it
> > because the rest of its features :o)
> >
> > But out-of-the-box, it's not easy to say: Designers, access the "source"
> > folder and edit only the html files and don't mess up with the
> directories.
> > They must have some independence :)
> >
> > Regards,
> >
> > --
> > Bruno Borges
> > [EMAIL PROTECTED]
> > Sun Certified Java Programmer for 1.4
> > Sun Certified Web Component Developer for 1.4
> >
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] TabbedPanel, InputForm and submit

2006-03-29 Thread Igor Vaynberg
well, this is pretty tricky stuffbecause you embed the form inside the tabbed panel it really shouldnt know anything about when the tab switches.one solution i might see is to embed the tabbed panel inside the form instead
that way the links can submit the form and handle switching the tabs when appropriate (no errors).the tabbed panel has a factory method for the links it uses, so maybe you override that and create a formsubmitlink instead of the regular link.
-IgorOn 3/29/06, karthik Guru <[EMAIL PROTECTED]> wrote:
So you want to click on one tab ,  and that should actually result inthe form submit?wicket extensions TabbedPanel uses Link and not SubmitLink.So when you click on a tab , it does not submit your form and hence
you lose out on the data.---Igor,I'm just thinking out loud ..so all this might be stupid.Anyways , Is this correct -Get TabbedPanel to use SubmitLink instead of Link.
and SubmitLink.onSubmit() call getForm.process( )  --> this shouldupdate his formBut since SubmitLink can be used only within a Form, the tabbed panelhas to be added within a Form? - That is something Stefan has to
ensure?---Also, I guess in  ITab.getPanel( ) , you have to ensure that youreturn the Panel that you submitted earlier using SubmitLink and not anew one as it is done normally.
On 3/29/06, Stefan Lindner <[EMAIL PROTECTED]> wrote:> I use Wicket 1.2beta2 and I have the followin question:> I have a TabbedPanel with several tabs (according to the example). Each Panel contains an InputForm. Weh I change from one pane to another by klicking at the tab label I receive no onSubmit event and the input is lost. is there a way to make the tab label act as a submit button for the form? Oder is there any other mechanism to do such things?
> Thanks in advance and thaky you for Wickt.>>-- -- karthik -This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] EJB3 Stateful SB - session issues/questions

2006-03-29 Thread Vincent Jenks
I'm sitting here, pondering, and getting fatter.  I'm building a storefront app w/ a simple shopping cart for which I'm thinking of using a Stateful session bean (EJB 3.0).It looks like, no matter how I look at it, I'll have to keep the SFSB stub in-session throughout its use in the application...and I'm not sure of a real elegant way of doing that.  So, I was just hoping someone here could provide some insight.
In Wicket, I've already got a class called UserSession which I use to pass around an User so I can test whether or not a page is accessible by certain user groups.  I decided, to keep it simple, that I'd add a getter & setter for my ShoppingCart stub in the same class so it could be passed around in-session w/ the User, since each shopper will have an User automatically created for them before checking out and paying.
The problem w/ all this SFSB business is; it violates my design because I have to make my web tier talk directly to my session bean in order to keep track of its state.  For everything else I've been using a handful of proxy classes where I could place calls to my session beans and other business logic.
It looks a little like this:Wicket->ProxyClass->SessionBean->DatabaseSo, now I'll have to keep track of the ShoppingCart stub class in Wicket, pass the ShoppingCart and the users' chosen form values into the Proxy, perform business logic, and then return a ShoppingCart which I'll have to place *back* into the 
UserSession.setCart() method to continue to keep track of the state of the users' carts.This is kinda nasty, is there an easier (or just more elegant) way to do this?Thanks all!


Re: [Wicket-user] Html Resources Configuration in WebApplication subclasses

2006-03-29 Thread Vincent Jenks
Is there a performance hit for customizing the location of the html files?  I thought I had read that somewhere in the wiki, once upon a time.On 3/29/06, Juergen Donnerstag
 <[EMAIL PROTECTED]> wrote:
please see wicket-example  customresourceloadingJuergenOn 3/29/06, Bruno Borges <[EMAIL PROTECTED]> wrote:> I don't like the way wicket put together Java classes with HTML resources
> (in the same package structure).>> Even if I move the structure to another path, like WEB-INF/html, I must> reproduce all the package tree, and then add a resource folder in my init()> WebApplication subclass.
>> I was wondering if is it possible to implement a feature where we can map a> hole package tree to a simple directory, and from there, respect the sub> packages. Please follow my toughs:>
> This is how I'm doing right now:>> src/com/foo/view/pages/IndexPage.java> src/com/foo/view/panels/BannerPanel.java> webapp/WEB-INF/html/com/foo/view/panels/BannerPanel.html> webapp/WEB-INF/html/com/foo/view/pages/IndexPage.html
>> And this is how I'd like to do without hacks and Java code:>>  src/com/foo/view/pages/IndexPage.java> src/com/foo/view/panels/BannerPanel.java> webapp/WEB-INF/html/panels/BannerPanel.html
>  webapp/WEB-INF/html/pages/IndexPage.html>> This means that the package "com.foo.view" is mapped to the resource> directory "WEB-INF/html".>> This sounds a good idea, specially for huge projects that will need to
> modularize their interfaces.>> src/com/foo/moduleA/view/[pages/panels]/[Classes]  -->> webapp/WEB-INF/html/moduleA/[pages/panels]/[Htmls]>> This reduce the path size and our designers will love it. :)
>> This can maybe be implemented like this:>> getResourceSettings().addResourceMappingPackage("com.foo.moduleA",> "/WEB-INF/html/moduleA");>>  And all resources beneath from html/moduleA will need to follow the rest of
> the package structure.>> I like wicket, because it gives designers the possibility to don't worry> about java taglibs, <%= hell code %> and other things. Of course, I like it> because the rest of its features :o)
>> But out-of-the-box, it's not easy to say: Designers, access the "source"> folder and edit only the html files and don't mess up with the directories.> They must have some independence :)
>> Regards,>> --> Bruno Borges> [EMAIL PROTECTED]> Sun Certified Java Programmer for 1.4> Sun Certified Web Component Developer for 
1.4>---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Html Resources Configuration in WebApplication subclasses

2006-03-29 Thread Juergen Donnerstag
please see wicket-example  customresourceloading

Juergen

On 3/29/06, Bruno Borges <[EMAIL PROTECTED]> wrote:
> I don't like the way wicket put together Java classes with HTML resources
> (in the same package structure).
>
> Even if I move the structure to another path, like WEB-INF/html, I must
> reproduce all the package tree, and then add a resource folder in my init()
> WebApplication subclass.
>
> I was wondering if is it possible to implement a feature where we can map a
> hole package tree to a simple directory, and from there, respect the sub
> packages. Please follow my toughs:
>
> This is how I'm doing right now:
>
> src/com/foo/view/pages/IndexPage.java
> src/com/foo/view/panels/BannerPanel.java
> webapp/WEB-INF/html/com/foo/view/panels/BannerPanel.html
> webapp/WEB-INF/html/com/foo/view/pages/IndexPage.html
>
> And this is how I'd like to do without hacks and Java code:
>
>  src/com/foo/view/pages/IndexPage.java
> src/com/foo/view/panels/BannerPanel.java
> webapp/WEB-INF/html/panels/BannerPanel.html
>  webapp/WEB-INF/html/pages/IndexPage.html
>
> This means that the package "com.foo.view" is mapped to the resource
> directory "WEB-INF/html".
>
> This sounds a good idea, specially for huge projects that will need to
> modularize their interfaces.
>
> src/com/foo/moduleA/view/[pages/panels]/[Classes]  -->
> webapp/WEB-INF/html/moduleA/[pages/panels]/[Htmls]
>
> This reduce the path size and our designers will love it. :)
>
> This can maybe be implemented like this:
>
> getResourceSettings().addResourceMappingPackage("com.foo.moduleA",
> "/WEB-INF/html/moduleA");
>
>  And all resources beneath from html/moduleA will need to follow the rest of
> the package structure.
>
> I like wicket, because it gives designers the possibility to don't worry
> about java taglibs, <%= hell code %> and other things. Of course, I like it
> because the rest of its features :o)
>
> But out-of-the-box, it's not easy to say: Designers, access the "source"
> folder and edit only the html files and don't mess up with the directories.
> They must have some independence :)
>
> Regards,
>
> --
> Bruno Borges
> [EMAIL PROTECTED]
> Sun Certified Java Programmer for 1.4
> Sun Certified Web Component Developer for 1.4
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Html Resources Configuration in WebApplication subclasses

2006-03-29 Thread Bruno Borges
I don't like the way wicket put together Java classes with HTML resources (in the same package structure).Even if I move the structure to another path, like WEB-INF/html, I must reproduce all the package tree, and then add a resource folder in my init() WebApplication subclass.
I was wondering if is it possible to implement a feature where we can map a hole package tree to a simple directory, and from there, respect the sub packages. Please follow my toughs:This is how I'm doing right now:
src/com/foo/view/pages/IndexPage.javasrc/com/foo/view/panels/BannerPanel.javawebapp/WEB-INF/html/com/foo/view/panels/BannerPanel.html
webapp/WEB-INF/html/com/foo/view/pages/IndexPage.htmlAnd this is how I'd like to do without hacks and Java code:
src/com/foo/view/pages/IndexPage.javasrc/com/foo/view/panels/BannerPanel.java
webapp/WEB-INF/html/panels/BannerPanel.html

webapp/WEB-INF/html/pages/IndexPage.htmlThis means that the package "com.foo.view" is mapped to the resource directory "WEB-INF/html".This sounds a good idea, specially for huge projects that will need to modularize their interfaces.
src/com/foo/moduleA/view/[pages/panels]/[Classes]  --> 
webapp/WEB-INF/html/moduleA/[pages/panels]/[Htmls]This reduce the path size and our designers will love it. :)This can maybe be implemented like this:
getResourceSettings().addResourceMappingPackage("com.foo.moduleA", "/WEB-INF/html/moduleA");
And all resources beneath from html/moduleA will need to follow the rest of the package structure.
I like wicket, because it gives designers the possibility to don't worry about java taglibs, <%= hell code %> and other things. Of course, I like it because the rest of its features :o)
But out-of-the-box, it's not easy to say: Designers, access the "source" folder and edit only the html files and don't mess up with the directories. They must have some independence :)Regards,
-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4
Sun Certified Web Component Developer for 1.4


[Wicket-user] Re: page property file key when using NumberValidator

2006-03-29 Thread karthik Guru
ok,

NumberValidator.range=blah blah

worked.

On 3/29/06, karthik Guru <[EMAIL PROTECTED]> wrote:
> How s' d i be specifying the key in properties file when using 
> NumberValidator?
> For others just specifying the validator class name key works.
>
> thanks,
> karthik
>


--
 -- karthik --


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tags building the component tree

2006-03-29 Thread Rüdiger Schulz
Justin Lee wrote on 29.03.2006 at 18:44:

thanks for your quick reply :)

Actually, that is what I also thought is logical. Still I wonder why
this works, with the red asteriks and all:


  

  


and this here not, throwing the Exception mentioned:


  

  


with the exact same Java code to create the page.


> -BEGIN PGP SIGNED MESSAGE-
> Hash: RIPEMD160

> Right.  then you'd add the feedback panel and textfield directly to your
> page/panel.  Otherwise, you'd have to add the textfield to your feedback
> panel since that's where you had it nested.

> Rüdiger Schulz wrote:
>> Justin Lee wrote on 29.03.2006 at 18:12:
>> 
>>> 
>>>
>>>
>>> 
>> 
>> Sorry, this doesn't work either :(
>> Wouldn't that be a component tree like that:
>> 
>> fooForm:barFeedback
>> fooForm:barText
>> 
>> ?
>> 
>> Still wondering why my example works with  but not with ...
>> 
>> 
>>> Rüdiger Schulz wrote:
 Hello list,

 I'm just starting to use Wicket 1.1, and stumbled upon an issue with
 the component tree.

 Say I have a Form fooForm and a TextField barText, which is wrapped in a
 FormComponentFeedbackBorder barFeedback. The tree therefore is like
 this:

 fooForm:barFeedback:barText

 I'd like to do HTML like this:

 
   
 
   
 

 If I run the page, I get a MarkupException: Unable to find component
 with id 'barText'.

 But if I replace the  tag with a  tag, this works fine, which
 seems rather strange to me. Does it really matter in what tags i put
 the wicket:id? And if so, why is there no error regarding the
 barFeedback in the first place? Is there a list of valid tags for
 building the component tree in the HTML?


>> 
>> 





-- 
greetings from Berlin,

Rüdiger Schulz



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] validators get reset?

2006-03-29 Thread Igor Vaynberg
are these textfields inside a listview?-IgorOn 3/29/06, Roan O'Sullivan <[EMAIL PROTECTED]
> wrote:
Hi.I am dynamically 
building a form, and I dynamically add validators for TextField inputs 
(RequiredValidator, TypeValidator, etc.) in a DropDownChoice's 
IOnChangeListener method. When I step through the code, that seems to work 
correctly: validators are added to the TextField input. 
 
But when I submit the form and inspect the 
"validators" field of TextField input while stepping through the code, I find 
that it is set back to "null" again. 
 
Can anyone offer me any clues as to what is 
happening? Why are the validators that I add to the TextField component not 
sticking? Is it b/c I'm adding the validators to the component *after* I add the 
component to the parent component (I have no idea why that would make a 
difference but it crossed my mind)? 
 
Any help would be appreciated. Thanks, 
Roan
 
 



Re: [Wicket-user] page property file key when using NumberValidator

2006-03-29 Thread Igor Vaynberg
the javadoc on static factory methods describes the keys-IgorOn 3/29/06, karthik Guru <[EMAIL PROTECTED]
> wrote:How s' d i be specifying the key in properties file when using NumberValidator?
For others just specifying the validator class name key works.thanks,karthik---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tags building the component tree

2006-03-29 Thread Justin Lee
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Right.  then you'd add the feedback panel and textfield directly to your
page/panel.  Otherwise, you'd have to add the textfield to your feedback
panel since that's where you had it nested.

Rüdiger Schulz wrote:
> Justin Lee wrote on 29.03.2006 at 18:12:
> 
>> 
>>
>>
>> 
> 
> Sorry, this doesn't work either :(
> Wouldn't that be a component tree like that:
> 
> fooForm:barFeedback
> fooForm:barText
> 
> ?
> 
> Still wondering why my example works with  but not with ...
> 
> 
>> Rüdiger Schulz wrote:
>>> Hello list,
>>>
>>> I'm just starting to use Wicket 1.1, and stumbled upon an issue with
>>> the component tree.
>>>
>>> Say I have a Form fooForm and a TextField barText, which is wrapped in a
>>> FormComponentFeedbackBorder barFeedback. The tree therefore is like
>>> this:
>>>
>>> fooForm:barFeedback:barText
>>>
>>> I'd like to do HTML like this:
>>>
>>> 
>>>   
>>> 
>>>   
>>> 
>>>
>>> If I run the page, I get a MarkupException: Unable to find component
>>> with id 'barText'.
>>>
>>> But if I replace the  tag with a  tag, this works fine, which
>>> seems rather strange to me. Does it really matter in what tags i put
>>> the wicket:id? And if so, why is there no error regarding the
>>> barFeedback in the first place? Is there a list of valid tags for
>>> building the component tree in the HTML?
>>>
>>>
> 
> 

- --
Justin Lee
http://www.antwerkz.com
AIM : evan chooly
Phone: 720.299.0101
Skype : evan chooly
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (Cygwin)

iD8DBQFEKrmIJnQfEGuJ90MRA4oYAKCBFYKJ6f6FMRTbDw30BzURV+3SwgCgjMAj
5COkfvPXYxJUmXIcLuJAK3A=
=EE2d
-END PGP SIGNATURE-


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] yui slider enquiry

2006-03-29 Thread Joshua Lim
Thanks EelcoI have been poking around and manage to get the slider out in the examples, however, it now slides out of the bar :P ... I hope to add more options though...I am new to oss and scm in general so not sure how to apply a patch and don't want to break things. so I am attaching them in this email. hope it can find its way to the right position
joshuaOn 3/29/06, Joshua Lim <[EMAIL PROTECTED]> wrote:
ok I will take a look On 3/29/06, Eelco Hillenius
 <[EMAIL PROTECTED]> wrote:

Ok, just checked in some improvements. Slider still doesn't work forme however. Joshua, if you are interested, please take a look at whatis in SVN now, and see if you can find what the problem is.Thanks and have fun,
EelcoOn 3/28/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:> I didn't choose for that set implemention because I thought it would

> be useful to have an insertAt option.>> Eelco>>> On 3/28/06, Martijn Dashorst <
[EMAIL PROTECTED]> wrote:> > Use a LinkedHashSet to filter out double entries and keep order.
> >> > Martijn> >> >> > On 3/29/06, Eelco Hillenius < 
[EMAIL PROTECTED]> wrote:> > >> > Erm, actually I'm not there yet. I'll check in more in half an hour.
> >> > Eelco> >> > On 3/28/06, Eelco Hillenius <[EMAIL PROTECTED]
> wrote:> > > That was because I used a set to filter double contributions. I
> > > changed this to list to guarantee order and added an additional method> > > with an index argument to enable further tweaking if needed.> > >> > > Eelco> > >
> > > On 3/28/06, Joshua Lim <[EMAIL PROTECTED]> wrote:> > > > It seems that the slider is loading the *.js in some random order...
> > > > so 
YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO not> > found> > > >> > > > add(HeaderContributor.forJavaScript(AbstractYuiPanel.class));> > > >> > > >  I am not sure but I will attempt to get this going since I need this...
> > > >> > > > 1/ is there a way to force the order in which which .js file is loaded> > ... I> > > > am> > > > trying to load them manually ...  seems too does not gaurantee the
> > order...> > > >> > > >  add(HeaderContributor.forJavaScript(AbstractYuiPanel.class,> > "YAHOO.js"));> > > > add(HeaderContributor.forJavaScript

(AbstractYuiPanel.class, "dom.js"));> > > > > > >> >> >> > ---> > This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> > that extends applications into web and mobile media. Attend the live webcast> > and join the prime developer group breaking into this new coding territory!> > 

http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642> > ___> > Wicket-user mailing list> > 

Wicket-user@lists.sourceforge.net> >  https://lists.sourceforge.net/lists/listinfo/wicket-user
> >> >> >
> >> > --> > Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!> > -- 
http://wicketframework.org>---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



Index: 
F:/development/svn/wicket-extensions/src/java/wicket/extensions/markup/html/yui/slider/Slider.java
===
--- 
F:/development/svn/wicket-extensions/src/java/wicket/extensions/markup/html/yui/slider/Slider.java
  (revision 5159)
+++ 
F:/development/svn/wicket-extensions/src/java/wicket/extensions/markup/html/yui/slider/Slider.java
  (working copy)
@@ -32,6 +32,7 @@
 import wicket.markup.html.WebMarkupContainer;
 import wicket.markup.html.WebPage;
 import wicket.markup.html.basic.Label;
+import wicket.markup.html.image.Image;
 import wicket.markup.html.internal.HtmlHeaderContainer;
 import wicket.model.AbstractReadOnlyModel;
 import wicket.model.IModel;
@@ -121,6 +122,10 @@
imageElement.add(new AttributeModifier("id", true,
new PropertyModel(this, "imageElementId")));
backgroundElement.add(imageElement);
+   
+   /* add the thumb img resoruce */
+   imageElement.add(new Image("thumb", 
PackageResource.get(Slider.class, "img/horizSlider.png")));
+   
}
 
/**
Index: 
F:/development/svn/wicket-extensions/src/java/wicket/extensions/markup/html/yui/slider/Slider.html
===
--- 
F:/development/svn/wicket-extensions/src/java/wicket/extensions/markup/html/yui/slider/Slider.html
  (revision 5159)
+++ 
F:/development/svn/wicket-extensions/src/java/wicket/extensions/m

[Wicket-user] Wicket versus Echo

2006-03-29 Thread Frank Silbermann








I was browsing some of the framework
comparisons on the web and realized that though Wicket is in key ways most
similar to Echo.  Yet, very little
has been written to contrast these two. 
The one difference that I can ascertain is that Wicket exposes the
underlying html whereas Echo completely hides the html from the developer.  What are
some of the implications of this difference that would make Wicket better than
Echo?  (I dislike html, so that’s
a point for Echo, but maybe access to the html is sometimes necessary –
which would be a point for Wicket).

 

What other differences are there?








Re: [Wicket-user] Tags building the component tree

2006-03-29 Thread Rüdiger Schulz
Justin Lee wrote on 29.03.2006 at 18:12:

> 
>
>
> 

Sorry, this doesn't work either :(
Wouldn't that be a component tree like that:

fooForm:barFeedback
fooForm:barText

?

Still wondering why my example works with  but not with ...


> Rüdiger Schulz wrote:
>> Hello list,
>> 
>> I'm just starting to use Wicket 1.1, and stumbled upon an issue with
>> the component tree.
>> 
>> Say I have a Form fooForm and a TextField barText, which is wrapped in a
>> FormComponentFeedbackBorder barFeedback. The tree therefore is like
>> this:
>> 
>> fooForm:barFeedback:barText
>> 
>> I'd like to do HTML like this:
>> 
>> 
>>   
>> 
>>   
>> 
>> 
>> If I run the page, I get a MarkupException: Unable to find component
>> with id 'barText'.
>> 
>> But if I replace the  tag with a  tag, this works fine, which
>> seems rather strange to me. Does it really matter in what tags i put
>> the wicket:id? And if so, why is there no error regarding the
>> barFeedback in the first place? Is there a list of valid tags for
>> building the component tree in the HTML?
>> 
>> 


-- 
greetings from Berlin,

Rüdiger Schulz



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Fwd: Re: [Wicket-user] problem with session invalidation and back button

2006-03-29 Thread Jaime De La Jara
Hi, I finally fixed it, the problem was that I set a response page after invalidating  the session, I commented the line and also redefined the PageExpiredErrorPage  and it worked!.Thanks.Jaime.Jaime De La Jara <[EMAIL PROTECTED]> wrote:  Date: Tue, 28 Mar 2006 14:01:39 -0800 (PST)From: Jaime De La Jara <[EMAIL PROTECTED]>Subject: Re: [Wicket-user] problem with session invalidation and back buttonTo: wicket-user@lists.sourceforge.net  But, in the original case it does not show the page expired page, but shows an   exception. I think that I missing something here. I commented the   session.invalidate code and in this case when I resubmit the form, since the form   exists, the authentication code is executed and the login page displayed. Then  how can
  one
 invalidate the session and not have trouble with the browser's back  button?.Jaime.no because this is an Page expired session. Nothing gets created because if you press a submit button on a page.Then that page must be there. Must be targetable. So youget an page expired page. What you could do is set youre default expired page: void setPageExpiredErrorPage(final Class pageExpiredErrorPage);On 3/28/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote: > > Not exactly, when I'm in the login page I press the back > button and return to the home page (that seems ok since  > it was the last page), then in the home page I use a  > submit button but since the session was invalidated, > wicket can not find info about the form being submitted.  > All the problem reduces to this : How can I intercept the > requests so I can check the session status (I
 reimplemented  > the isInstantiationAuthorized(Class componentClass) of  > the IAuthorizationStrategy interface to check for > authentication info but it does not work in this case). > > Thanks. > > Jaime.Johan Compagner <[EMAIL PROTECTED]> wrote:  Let me get it straight first.You where on youre homepagethen you click on somethingwhere you invalidate the page and redirect to a login page.Then on that login page you go back to   youre homepageand you expect the homepage to be there?  You invalidated the session and all its pages. So you can't go back.If you want this behaviour then just don't invalidate the session. But clear you login info.johan  On 3/27/06, 
 Jaime De
 La Jara <[EMAIL PROTECTED]> wrote:  Hi,  I have included a close session link in the home page of my application  (in one of the constructors), and in the onClick method of the link I  invalidate the session and throw a RestartResponseException to the  login page, but after I close the session using the link and press the  back button in the login page I got the home page as it should be, but  when I press a submit buttom in the home page, I get a WicketRuntimeException, since the form component is not existant in the page. What can I be doing wrong?.Thanks in advance.Jaime.New   Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

Re: [Wicket-user] Problem with AjaxLink and Borders with setTransparentResolver(true)?

2006-03-29 Thread Juergen Donnerstag
sorry, I was mislead. Your code is right. The issue is the Ajax stuff
is not yet supported if the Ajax component is part of a bordered page.
Please use markup inheritance instead.

Juergen

On 3/29/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> Wicket shouldn't get into an infinite loop, that for sure. But there
> is a bug in your code:
>
> myBorder = new PageLayout("pageLayout", "Ajax Test");
> myBorder.setTransparentResolver(true);
> add(myBorder);
>
> add(ajaxLabel = new Label("ajaxLabel", "AAA" ));
>
> ajaxLabel.setOutputMarkupId(true);
>
> add(new AjaxLink("ajaxLink") {
>
> You must add the components to the *border* and not the page
> myBorder = new PageLayout("pageLayout", "Ajax Test");
> myBorder.setTransparentResolver(true);
> add(myBorder);
>
> myBorder.add(ajaxLabel = new Label("ajaxLabel", "AAA" ));
>
> ajaxLabel.setOutputMarkupId(true);
>
> myBorder.add(new AjaxLink("ajaxLink") {
>
> Juergen
>
> On 3/29/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> > There is already a bug for this in sourceforge.
> >
> > Juergen
> >
> > On 3/29/06, Andre Matheus <[EMAIL PROTECTED]> wrote:
> > > I am having trouble using Ajax links in pages with a border with
> > > setTransparentResolver(true);
> > >
> > > The message in the Wicket Ajax Debugger is the following:
> > >
> > >  INFO:
> > >   INFO: initiating ajax GET request with...
> > >   INFO: url: 
> > > /QuickStart/app?wicket:interface=:2:ajaxLink:-1:IUnversionedBehaviorListener&wicket:behaviorId=0
> > >   INFO: successHandler:undefined
> > >
> > > The strange thing is that it not only does nothing, but worst, it
> > > makes my CPU utilization goes to 100%.
> > >
> > > The onClick method finishes without exceptions, as I see the system
> > > outputs as expected.
> > >
> > > Does anybody has an Idea of what can be the problem?
> > >
> > > Thank you very much.
> > >
> > > Code:
> > > //-
> > > public class AjaxTest extends WebPage {
> > >  Label ajaxLabel;
> > >  private PageLayout myBorder;
> > >  // TODO Add any page properties or variables here
> > >  public AjaxTest(){
> > >  super();
> > >
> > >  myBorder = new PageLayout("pageLayout", "Ajax Test");
> > >  myBorder.setTransparentResolver(true);
> > >  add(myBorder);
> > >
> > >  add(ajaxLabel = new Label("ajaxLabel", "AAA" ));
> > >
> > >  ajaxLabel.setOutputMarkupId(true);
> > >
> > >  add(new AjaxLink("ajaxLink") {
> > >  public void onClick(AjaxRequestTarget target) {
> > >  System.out.println("AjaxLink.onClick - START");
> > >  Label ajaxLabel2 = new Label("ajaxLabel", "BBB");
> > >  ajaxLabel2.setOutputMarkupId(true);
> > >  System.out.println("AjaxLink.onClick - MID");
> > >  ajaxLabel.getParent().replace(ajaxLabel2);
> > >  if(target!=null) target.addComponent(ajaxLabel2, 
> > > "ajaxLabel");
> > >  System.out.println("AjaxLink.onClick - END");
> > >  }
> > >  });
> > >
> > >  }
> > >
> > >  }
> > >
> > > //
> > >
> > > PS.: In the output I see the following before the CPU gets crazy:
> > >
> > > AjaxLink.onClick - START
> > > AjaxLink.onClick - MID
> > > AjaxLink.onClick - END
> > >
> > >
> > > --
> > > __
> > > André Matheus
> > >
> > >
> > > ---
> > > This SF.Net email is sponsored by xPML, a groundbreaking scripting 
> > > language
> > > that extends applications into web and mobile media. Attend the live 
> > > webcast
> > > and join the prime developer group breaking into this new coding 
> > > territory!
> > > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tags building the component tree

2006-03-29 Thread Justin Lee
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160


   
   


Rüdiger Schulz wrote:
> Hello list,
> 
> I'm just starting to use Wicket 1.1, and stumbled upon an issue with
> the component tree.
> 
> Say I have a Form fooForm and a TextField barText, which is wrapped in a
> FormComponentFeedbackBorder barFeedback. The tree therefore is like
> this:
> 
> fooForm:barFeedback:barText
> 
> I'd like to do HTML like this:
> 
> 
>   
> 
>   
> 
> 
> If I run the page, I get a MarkupException: Unable to find component
> with id 'barText'.
> 
> But if I replace the  tag with a  tag, this works fine, which
> seems rather strange to me. Does it really matter in what tags i put
> the wicket:id? And if so, why is there no error regarding the
> barFeedback in the first place? Is there a list of valid tags for
> building the component tree in the HTML?
> 
> 

- --
Justin Lee
http://www.antwerkz.com
AIM : evan chooly
Phone: 720.299.0101
Skype : evan chooly
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (Cygwin)

iD8DBQFEKrH7JnQfEGuJ90MRA8bSAKCXBfBBjjgvpPJrlcRr8az/dVdnVwCdFmF0
NZ4PS8EE5tH9o8ajAGTtly0=
=oQE4
-END PGP SIGNATURE-


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Tags building the component tree

2006-03-29 Thread Rüdiger Schulz
Hello list,

I'm just starting to use Wicket 1.1, and stumbled upon an issue with
the component tree.

Say I have a Form fooForm and a TextField barText, which is wrapped in a
FormComponentFeedbackBorder barFeedback. The tree therefore is like
this:

fooForm:barFeedback:barText

I'd like to do HTML like this:


  

  


If I run the page, I get a MarkupException: Unable to find component
with id 'barText'.

But if I replace the  tag with a  tag, this works fine, which
seems rather strange to me. Does it really matter in what tags i put
the wicket:id? And if so, why is there no error regarding the
barFeedback in the first place? Is there a list of valid tags for
building the component tree in the HTML?


-- 
greetings from Berlin,

Rüdiger Schulz



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Caching content

2006-03-29 Thread Johan Compagner
about 1:You can share objects if you want between sessions..Thats also a no brainer. The problem comes when you have to think about synchronization issuesAnd then the big questions  arives.. What does cost more performance?
And maybe for a search engine (where the pages are very very simple because you only have one page..)you could work stateless..  The problem is that then for the form submit (the search) we don't want to have
a statefull page. Now you can do that with a submit to a bookmarkable page..But this should be handles somehow by wicket a bit better (Stateless forms)johanOn 3/29/06, 
Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
On 3/29/06, John Lee <[EMAIL PROTECTED]> wrote:> I wish I had the time :-)  I'm in the process of moving my client's code> from php->Java. Need to move to a typed language. Things were getting
> way too messy with PHP. I discovered wicket and think it's the right way> to go. But I wanted to share my perspective from what I learned running> a relatively high traffic website for a client...
>> For very high concurrency sites (usually public facing websites as> opposed to intranet sites), memory (and CPU cycles used for object> creation/gc) would seem to be the serious handicap for wicket.
> Small/medium sized operators simply *cannot* afford to overlook these in> favor of the rich feature set & programming speed wicket has to offer.> Also in order to capture the hosted market, one has to design for VPS
> servers where CPU & memory are at a premium.>> I believe that wicket absolute needs these 2 things to make it to the> mainstream public web:> 1) stateless objects - all users share a single object, thereby
> drastically reducing memory consumption and tremendously boosting> scalability.I think we've done a lot of work in that space for 1.2. Though a)Wicket will never be suitable for Google, Amazon or eBay (and it is
not our intend), b) I actually think that Wicket is doing better withrespect to memory management than many other framework which do notprovide the kind session manangement Wicket does. I think some usersposted already comparisons. The reason being that session management
with Wicket is much more structured rather than ad hoc and c) thewhole topic seems to me over emphasized for most (inter and intranet)web application and d) large internet providers like T-Online(Germany) have started removing there (html network) caches (not the
application caches) as they have become less and less useful. Themajority of pages (incl. many fragments) are dynamic, which isespecially true in the internet.> 2) html page & fragment caching
very easy to accomplish. A no-brainer with Wicket.Juergen---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] onAttach() with ajax

2006-03-29 Thread Arto Arffman
Should onAttach() be called when ajax is used? (using latest head)
 
If so I'll dig deeper...
 
/arto


Re: [Wicket-user] Problem with AjaxLink and Borders with setTransparentResolver(true)?

2006-03-29 Thread Juergen Donnerstag
Wicket shouldn't get into an infinite loop, that for sure. But there
is a bug in your code:

myBorder = new PageLayout("pageLayout", "Ajax Test");
myBorder.setTransparentResolver(true);
add(myBorder);

add(ajaxLabel = new Label("ajaxLabel", "AAA" ));

ajaxLabel.setOutputMarkupId(true);

add(new AjaxLink("ajaxLink") {

You must add the components to the *border* and not the page
myBorder = new PageLayout("pageLayout", "Ajax Test");
myBorder.setTransparentResolver(true);
add(myBorder);

myBorder.add(ajaxLabel = new Label("ajaxLabel", "AAA" ));

ajaxLabel.setOutputMarkupId(true);

myBorder.add(new AjaxLink("ajaxLink") {

Juergen

On 3/29/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> There is already a bug for this in sourceforge.
>
> Juergen
>
> On 3/29/06, Andre Matheus <[EMAIL PROTECTED]> wrote:
> > I am having trouble using Ajax links in pages with a border with
> > setTransparentResolver(true);
> >
> > The message in the Wicket Ajax Debugger is the following:
> >
> >  INFO:
> >   INFO: initiating ajax GET request with...
> >   INFO: url: 
> > /QuickStart/app?wicket:interface=:2:ajaxLink:-1:IUnversionedBehaviorListener&wicket:behaviorId=0
> >   INFO: successHandler:undefined
> >
> > The strange thing is that it not only does nothing, but worst, it
> > makes my CPU utilization goes to 100%.
> >
> > The onClick method finishes without exceptions, as I see the system
> > outputs as expected.
> >
> > Does anybody has an Idea of what can be the problem?
> >
> > Thank you very much.
> >
> > Code:
> > //-
> > public class AjaxTest extends WebPage {
> >  Label ajaxLabel;
> >  private PageLayout myBorder;
> >  // TODO Add any page properties or variables here
> >  public AjaxTest(){
> >  super();
> >
> >  myBorder = new PageLayout("pageLayout", "Ajax Test");
> >  myBorder.setTransparentResolver(true);
> >  add(myBorder);
> >
> >  add(ajaxLabel = new Label("ajaxLabel", "AAA" ));
> >
> >  ajaxLabel.setOutputMarkupId(true);
> >
> >  add(new AjaxLink("ajaxLink") {
> >  public void onClick(AjaxRequestTarget target) {
> >  System.out.println("AjaxLink.onClick - START");
> >  Label ajaxLabel2 = new Label("ajaxLabel", "BBB");
> >  ajaxLabel2.setOutputMarkupId(true);
> >  System.out.println("AjaxLink.onClick - MID");
> >  ajaxLabel.getParent().replace(ajaxLabel2);
> >  if(target!=null) target.addComponent(ajaxLabel2, 
> > "ajaxLabel");
> >  System.out.println("AjaxLink.onClick - END");
> >  }
> >  });
> >
> >  }
> >
> >  }
> >
> > //
> >
> > PS.: In the output I see the following before the CPU gets crazy:
> >
> > AjaxLink.onClick - START
> > AjaxLink.onClick - MID
> > AjaxLink.onClick - END
> >
> >
> > --
> > __
> > André Matheus
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> > that extends applications into web and mobile media. Attend the live webcast
> > and join the prime developer group breaking into this new coding territory!
> > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] servlet mapping

2006-03-29 Thread Juergen Donnerstag
That realy looks like a orion bug

Juergen

On 3/29/06, Theo vN <[EMAIL PROTECTED]> wrote:
> Hi
>
> In the web.xml of the wicket-examples the servlet mapping is shown as..
>
> 
> LinkomaticApplication
> /linkomatic/*
> 
>
> The above does work in Tomcat but not in Orion (orionserver.com).
> What works in Orion is..
>
> 
> LinkomaticApplication
> /linkomatic*
> 
>
> --
> Cheers
> Theo
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] TabbedPanel, InputForm and submit

2006-03-29 Thread karthik Guru
So you want to click on one tab ,  and that should actually result in
the form submit?
wicket extensions TabbedPanel uses Link and not SubmitLink.
So when you click on a tab , it does not submit your form and hence
you lose out on the data.

---

Igor,

I'm just thinking out loud ..so all this might be stupid.
Anyways , Is this correct -

Get TabbedPanel to use SubmitLink instead of Link.
and SubmitLink.onSubmit() call getForm.process( )  --> this should
update his form
But since SubmitLink can be used only within a Form, the tabbed panel
has to be added within a Form? - That is something Stefan has to
ensure?

---

Also, I guess in  ITab.getPanel( ) , you have to ensure that you
return the Panel that you submitted earlier using SubmitLink and not a
new one as it is done normally.



On 3/29/06, Stefan Lindner <[EMAIL PROTECTED]> wrote:
> I use Wicket 1.2beta2 and I have the followin question:
> I have a TabbedPanel with several tabs (according to the example). Each Panel 
> contains an InputForm. Weh I change from one pane to another by klicking at 
> the tab label I receive no onSubmit event and the input is lost. is there a 
> way to make the tab label act as a submit button for the form? Oder is there 
> any other mechanism to do such things?
> Thanks in advance and thaky you for Wickt.
>
>


--
 -- karthik --


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Location of image files

2006-03-29 Thread Timo Stamm

Frank Silbermann schrieb:

But my "src" attribute to be modified _is_ in my HTML, as you can see
(value shown is "REPLACE_THIS.png").  The problem is that the existing
"src" attribute's value was not replaced.  What do I need to do
differently?


Use this constructor:

new AttributeModifier("src", true, new Model(pictureFile));
 


It's documented:

public AttributeModifier(java.lang.String attribute,
 boolean addAttributeIfNotPresent,
 IModel replaceModel)

Parameters:

  attribute - The attribute name to replace the value for
  addAttributeIfNotPresent - Whether to add the attribute if it is not
 present
  replaceModel - The model to replace the value with


Timo


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] validators get reset?

2006-03-29 Thread Roan O'Sullivan
Hi.I am dynamically 
building a form, and I dynamically add validators for TextField inputs 
(RequiredValidator, TypeValidator, etc.) in a DropDownChoice's 
IOnChangeListener method. When I step through the code, that seems to work 
correctly: validators are added to the TextField input. 
 
But when I submit the form and inspect the 
"validators" field of TextField input while stepping through the code, I find 
that it is set back to "null" again. 
 
Can anyone offer me any clues as to what is 
happening? Why are the validators that I add to the TextField component not 
sticking? Is it b/c I'm adding the validators to the component *after* I add the 
component to the parent component (I have no idea why that would make a 
difference but it crossed my mind)? 
 
Any help would be appreciated. Thanks, 
Roan
 
 

[Wicket-user] page property file key when using NumberValidator

2006-03-29 Thread karthik Guru
How s' d i be specifying the key in properties file when using NumberValidator?
For others just specifying the validator class name key works.

thanks,
karthik


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] javascript validation

2006-03-29 Thread Martijn Dashorst
http://wicket-stuff.sourceforge.net/wicket-contrib-fvalidate/On 3/29/06, Theo vN
 <[EMAIL PROTECTED]> wrote:HiI'm new to Wicket and so far so good.
I'm used to Tapestry's _javascript_ validation but I seem not to be ableto find any documentation/examples/facts on whether Wicket supportsclient side _javascript_ validation or not. I am NOT talking about
anything AJAX.Can somebody please enlighten me.--CheersTheo---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
-- http://wicketframework.org


[Wicket-user] Wicket Include vs. RequestDispatcher.include

2006-03-29 Thread Nili Adoram

Hi,
Is there an option to use utilize wicket Include without opening a new 
connection?
I would like to include the contents of a URL like 
RequestDispatcher.include() does, directly into a wicket component.

10x
Nili


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] javascript validation

2006-03-29 Thread Theo vN
Hi

I'm new to Wicket and so far so good.

I'm used to Tapestry's javascript validation but I seem not to be able
to find any documentation/examples/facts on whether Wicket supports
client side javascript validation or not. I am NOT talking about
anything AJAX.

Can somebody please enlighten me.

--
Cheers
Theo


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] servlet mapping

2006-03-29 Thread Theo vN
Hi

In the web.xml of the wicket-examples the servlet mapping is shown as..


LinkomaticApplication
/linkomatic/*


The above does work in Tomcat but not in Orion (orionserver.com).
What works in Orion is..


LinkomaticApplication
/linkomatic*


--
Cheers
Theo


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with AjaxLink and Borders with setTransparentResolver(true)?

2006-03-29 Thread Juergen Donnerstag
There is already a bug for this in sourceforge.

Juergen

On 3/29/06, Andre Matheus <[EMAIL PROTECTED]> wrote:
> I am having trouble using Ajax links in pages with a border with
> setTransparentResolver(true);
>
> The message in the Wicket Ajax Debugger is the following:
>
>  INFO:
>   INFO: initiating ajax GET request with...
>   INFO: url: 
> /QuickStart/app?wicket:interface=:2:ajaxLink:-1:IUnversionedBehaviorListener&wicket:behaviorId=0
>   INFO: successHandler:undefined
>
> The strange thing is that it not only does nothing, but worst, it
> makes my CPU utilization goes to 100%.
>
> The onClick method finishes without exceptions, as I see the system
> outputs as expected.
>
> Does anybody has an Idea of what can be the problem?
>
> Thank you very much.
>
> Code:
> //-
> public class AjaxTest extends WebPage {
>  Label ajaxLabel;
>  private PageLayout myBorder;
>  // TODO Add any page properties or variables here
>  public AjaxTest(){
>  super();
>
>  myBorder = new PageLayout("pageLayout", "Ajax Test");
>  myBorder.setTransparentResolver(true);
>  add(myBorder);
>
>  add(ajaxLabel = new Label("ajaxLabel", "AAA" ));
>
>  ajaxLabel.setOutputMarkupId(true);
>
>  add(new AjaxLink("ajaxLink") {
>  public void onClick(AjaxRequestTarget target) {
>  System.out.println("AjaxLink.onClick - START");
>  Label ajaxLabel2 = new Label("ajaxLabel", "BBB");
>  ajaxLabel2.setOutputMarkupId(true);
>  System.out.println("AjaxLink.onClick - MID");
>  ajaxLabel.getParent().replace(ajaxLabel2);
>  if(target!=null) target.addComponent(ajaxLabel2, 
> "ajaxLabel");
>  System.out.println("AjaxLink.onClick - END");
>  }
>  });
>
>  }
>
>  }
>
> //
>
> PS.: In the output I see the following before the CPU gets crazy:
>
> AjaxLink.onClick - START
> AjaxLink.onClick - MID
> AjaxLink.onClick - END
>
>
> --
> __
> André Matheus
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Caching content

2006-03-29 Thread Juergen Donnerstag
On 3/29/06, John Lee <[EMAIL PROTECTED]> wrote:
> I wish I had the time :-)  I'm in the process of moving my client's code
> from php->Java. Need to move to a typed language. Things were getting
> way too messy with PHP. I discovered wicket and think it's the right way
> to go. But I wanted to share my perspective from what I learned running
> a relatively high traffic website for a client...
>
> For very high concurrency sites (usually public facing websites as
> opposed to intranet sites), memory (and CPU cycles used for object
> creation/gc) would seem to be the serious handicap for wicket.
> Small/medium sized operators simply *cannot* afford to overlook these in
> favor of the rich feature set & programming speed wicket has to offer.
> Also in order to capture the hosted market, one has to design for VPS
> servers where CPU & memory are at a premium.
>
> I believe that wicket absolute needs these 2 things to make it to the
> mainstream public web:
> 1) stateless objects - all users share a single object, thereby
> drastically reducing memory consumption and tremendously boosting
> scalability.

I think we've done a lot of work in that space for 1.2. Though a)
Wicket will never be suitable for Google, Amazon or eBay (and it is
not our intend), b) I actually think that Wicket is doing better with
respect to memory management than many other framework which do not
provide the kind session manangement Wicket does. I think some users
posted already comparisons. The reason being that session management
with Wicket is much more structured rather than ad hoc and c) the
whole topic seems to me over emphasized for most (inter and intranet)
web application and d) large internet providers like T-Online
(Germany) have started removing there (html network) caches (not the
application caches) as they have become less and less useful. The
majority of pages (incl. many fragments) are dynamic, which is
especially true in the internet.

> 2) html page & fragment caching

very easy to accomplish. A no-brainer with Wicket.

Juergen


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] The web framework map

2006-03-29 Thread Iwan Vosloo

Hi Eelco.

About a year ago we had an exchange about the survey I was busy with of
80 web framework (and related) projects.  (It forms part of my Masters
dissertation.) 

I've put up a wiki with the results at: http://www.reahl.org/wfmwiki.

It would be great if you could join in!

I include some text from the introduction below.  

Regards
 -- Iwan Vosloo

-

Introduction


There are many web frameworks available at the moment - new ones pop
up very regularly. It takes quite a bit of effort to figure out what
the essence of a new framework is.

Biologists are faced with a similar problem when they discover a new
exotic animal. But they have a valuable tool to their disposal. They
have a taxonomy of different kinds of animals. When a new animal is
discovered, it is classified according to this taxonomy. This act of
classification already attaches a lot of known knowledge about the new
animal - a big aid in getting to grips with "yet another animal".

This wiki is an attempt at creating a similar tool for people who are
interested in studying and comparing web frameworks.

The task of keeping an up-to-date and useful map of the web framework
world is a little daunting if you think about it: The world is a big
place, and there are very many web frameworks in it. New web
frameworks pop up regularly. Careful study of each of these takes a
lot of time and effort. Each web framework designer seems to invent
particular terminology that may or may not mean the same as the
terminology used by others. And, of course, these things keep changing
and growing.

But it is precisely in such an environment that a map of sorts is
useful. It gives structure: if you're working with a particular
framework, it often helps to know where it fits with the rest of the
world: to know its fundamental intention, strengths and
weaknesses. When you want to create a new one, a map can show what is
new and what is old-hat.

This wiki was created with the hope that others may find it useful and
that the interested parties can use it to collaborate and keep the web
framework map growing and useful.


Eelco Hillenius <[EMAIL PROTECTED]> writes:

> That's a pretty good description. Here and there I could argue about
> some details, but on the whole I think it is good.
> 
> I am currently working on a mind map (with OSS tool FreeMind) on the
> subject of Java webframeworks, and how Wicket fits in. If you're
> interested, I am happy to send it to you when I am done (this weekend).
> 
> Eelco
> 
> 
> Iwan Vosloo wrote:
> 
> >Hi there.
> >
> >I'm stretching mailing list ettiquette here - I'm currently
> >researching a really long list of web development frameworks, of which
> >Wicket is one.  Thus, I have limited time for each one.  I'd
> >appreciate it hugely of someone on this list would read the following
> >severely summarised "understanding" that I currently have of Wicket's
> >basic model, and correct me where I'm wrong.
> >
> >Thanks -i
> >
> >Wicket is an attempt to split the development of a web application
> >into separate pure HTML and pure Java programming language code.
> >
> >An application (including presentation related parts) is coded
> >entirely in Java code using a library (modelled after Java Swing).
> >
> >A page can be composed from several UI components. The framework also
> >includes a number of different logical types of events (things like:
> >button clicked, list box value changed, page redirected). Listener
> >classes for each of these events can then be written and instances of
> >them can register with a UI component.  If the event (for which a
> >Listener is registered) happens on the component (for which the
> >Listener is registered), a callback method is called on the Listener
> >object - usually invoking some user code.
> >
> >Each page also has an HTML file counterpart which is the template for
> >rendering that page in HTML. Wicket templates are valid XML, which
> >makes them editable in standard editors used by web page designers.
> >Special tags in the wicket namespace are used to correlate elements in
> >these HTML templates with UI components coded in Java.
> >
> >In Wicket, an HTTP request is mapped to a page in the application.
> >Form input in a request is automatically read, converted to
> >programming language types and input into each input's corresponding
> >programming language component (these are persisted in session scope).
> >From this possible input, these components generate events and
> >accordingly call callback functions on any relevant registered event
> >Listeners. The code invokes in this way can redirect the browser to
> >another URL, or set a variable indicating which page should be
> >rendered in result of the request. If set, this page is rendered ---
> >its template is used to render HTML which is sent back to the browser.
> >
> >
> >---
> >This SF.Net email 

Re: [Wicket-user] yui slider enquiry

2006-03-29 Thread Joshua Lim
ok I will take a look On 3/29/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
Ok, just checked in some improvements. Slider still doesn't work forme however. Joshua, if you are interested, please take a look at whatis in SVN now, and see if you can find what the problem is.Thanks and have fun,
EelcoOn 3/28/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:> I didn't choose for that set implemention because I thought it would
> be useful to have an insertAt option.>> Eelco>>> On 3/28/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:> > Use a LinkedHashSet to filter out double entries and keep order.
> >> > Martijn> >> >> > On 3/29/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:> > >> > Erm, actually I'm not there yet. I'll check in more in half an hour.
> >> > Eelco> >> > On 3/28/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:> > > That was because I used a set to filter double contributions. I
> > > changed this to list to guarantee order and added an additional method> > > with an index argument to enable further tweaking if needed.> > >> > > Eelco> > >
> > > On 3/28/06, Joshua Lim <[EMAIL PROTECTED]> wrote:> > > > It seems that the slider is loading the *.js in some random order...> > > > so 
YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO not> > found> > > >> > > > add(HeaderContributor.forJavaScript(AbstractYuiPanel.class));> > > >> > > >  I am not sure but I will attempt to get this going since I need this...
> > > >> > > > 1/ is there a way to force the order in which which .js file is loaded> > ... I> > > > am> > > > trying to load them manually ...  seems too does not gaurantee the
> > order...> > > >> > > >  add(HeaderContributor.forJavaScript(AbstractYuiPanel.class,> > "YAHOO.js"));> > > > add(HeaderContributor.forJavaScript
(AbstractYuiPanel.class, "dom.js"));> > > > > > >> >> >> > ---> > This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> > that extends applications into web and mobile media. Attend the live webcast> > and join the prime developer group breaking into this new coding territory!> > 
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642> > ___> > Wicket-user mailing list> > 
Wicket-user@lists.sourceforge.net> >  https://lists.sourceforge.net/lists/listinfo/wicket-user> >> >> >
> >> > --> > Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!> > -- http://wicketframework.org>---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] yui slider enquiry

2006-03-29 Thread Eelco Hillenius
Ok, just checked in some improvements. Slider still doesn't work for
me however. Joshua, if you are interested, please take a look at what
is in SVN now, and see if you can find what the problem is.

Thanks and have fun,

Eelco


On 3/28/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> I didn't choose for that set implemention because I thought it would
> be useful to have an insertAt option.
>
> Eelco
>
>
> On 3/28/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> > Use a LinkedHashSet to filter out double entries and keep order.
> >
> > Martijn
> >
> >
> > On 3/29/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> > >
> > Erm, actually I'm not there yet. I'll check in more in half an hour.
> >
> > Eelco
> >
> > On 3/28/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > That was because I used a set to filter double contributions. I
> > > changed this to list to guarantee order and added an additional method
> > > with an index argument to enable further tweaking if needed.
> > >
> > > Eelco
> > >
> > > On 3/28/06, Joshua Lim <[EMAIL PROTECTED]> wrote:
> > > > It seems that the slider is loading the *.js in some random order...
> > > > so YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO not
> > found
> > > >
> > > > add(HeaderContributor.forJavaScript(AbstractYuiPanel.class));
> > > >
> > > >  I am not sure but I will attempt to get this going since I need this...
> > > >
> > > > 1/ is there a way to force the order in which which .js file is loaded
> > ... I
> > > > am
> > > > trying to load them manually ...  seems too does not gaurantee the
> > order...
> > > >
> > > >  add(HeaderContributor.forJavaScript(AbstractYuiPanel.class,
> > "YAHOO.js"));
> > > > add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, "dom.js"));
> > > > 
> > >
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> > that extends applications into web and mobile media. Attend the live webcast
> > and join the prime developer group breaking into this new coding territory!
> > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> >  https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
> >
> > --
> > Wicket 1.2 is coming! Write Ajax applications without touching JavaScript!
> > -- http://wicketframework.org
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Problem with AjaxLink and Borders with setTransparentResolver(true)?

2006-03-29 Thread Andre Matheus
I am having trouble using Ajax links in pages with a border with
setTransparentResolver(true);

The message in the Wicket Ajax Debugger is the following:

 INFO:
  INFO: initiating ajax GET request with...
  INFO: url: 
/QuickStart/app?wicket:interface=:2:ajaxLink:-1:IUnversionedBehaviorListener&wicket:behaviorId=0
  INFO: successHandler:undefined

The strange thing is that it not only does nothing, but worst, it
makes my CPU utilization goes to 100%.

The onClick method finishes without exceptions, as I see the system
outputs as expected.

Does anybody has an Idea of what can be the problem?

Thank you very much.

Code:
//-
public class AjaxTest extends WebPage {
 Label ajaxLabel;
 private PageLayout myBorder;
 // TODO Add any page properties or variables here
 public AjaxTest(){
 super();

 myBorder = new PageLayout("pageLayout", "Ajax Test");
 myBorder.setTransparentResolver(true);
 add(myBorder);

 add(ajaxLabel = new Label("ajaxLabel", "AAA" ));

 ajaxLabel.setOutputMarkupId(true);

 add(new AjaxLink("ajaxLink") {
 public void onClick(AjaxRequestTarget target) {
 System.out.println("AjaxLink.onClick - START");
 Label ajaxLabel2 = new Label("ajaxLabel", "BBB");
 ajaxLabel2.setOutputMarkupId(true);
 System.out.println("AjaxLink.onClick - MID");
 ajaxLabel.getParent().replace(ajaxLabel2);
 if(target!=null) target.addComponent(ajaxLabel2, "ajaxLabel");
 System.out.println("AjaxLink.onClick - END");
 }
 });

 }

 }

//

PS.: In the output I see the following before the CPU gets crazy:

AjaxLink.onClick - START
AjaxLink.onClick - MID
AjaxLink.onClick - END


--
__
André Matheus


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Caching content

2006-03-29 Thread John Lee
I wish I had the time :-)  I'm in the process of moving my client's code 
from php->Java. Need to move to a typed language. Things were getting 
way too messy with PHP. I discovered wicket and think it's the right way 
to go. But I wanted to share my perspective from what I learned running 
a relatively high traffic website for a client...


For very high concurrency sites (usually public facing websites as 
opposed to intranet sites), memory (and CPU cycles used for object 
creation/gc) would seem to be the serious handicap for wicket. 
Small/medium sized operators simply *cannot* afford to overlook these in 
favor of the rich feature set & programming speed wicket has to offer. 
Also in order to capture the hosted market, one has to design for VPS 
servers where CPU & memory are at a premium.


I believe that wicket absolute needs these 2 things to make it to the 
mainstream public web:
1) stateless objects - all users share a single object, thereby 
drastically reducing memory consumption and tremendously boosting 
scalability.

2) html page & fragment caching

Thanks for listening.
John

Eelco Hillenius wrote:

Is that a proposal? :)

My first thought on this is to use AOP and meta data (either
annotations or Wicket meta data). If people are interested, they can
startup a project in wicket-stuff for this. We (the core developers)
will try to help when needed/ possible.

Ramnivas, are you reading with us? Would you agree AOP is suitable for this?

Eelco


On 3/29/06, John Lee <[EMAIL PROTECTED]> wrote:


Hi

I can tell you for public facing websites (vs enterprise), caching is a
key feature that system architects will insist upon. In order to support
extremely high concurrency & throughput, one simply must be able to
cache portions of HTML fragments.

On my previous php based projects, I use caching to increase throughput
from 30pps to 300pps. That's a factor of 10x. So we're talking about 1
machine replacing 10. From a business perspective, this is absolutely
crucial.

In my opinion, if wicket is going to make it to the mainstream
public-facing web, it absolutely needs a comprehensive caching
framework. If possible, the caching framework should not only eliminates
re-rendering of cached HTML fragments, but also eliminate the need to
instantiate objects until actually needed.

John

Juergen Donnerstag wrote:


On 1/2/06, Dariusz Wojtas <[EMAIL PROTECTED]> wrote:



Hi,

Is it possible to cache dynamically generated content with Wicket?
When using JSP I may use OSCache tags (specify conditions, timeout,
etc) or create a custom tag that uses any cache implementation inside.
Can this be done with Wicket?

Can panel contents be cached? Other elements? How?
For example I generate table where each row contains quite complex data.
I'd like to be able to cache each row if needed. Every row might
contain a unique ID to make caching possible.




Not out of box yet, but I don't think it is difficult to implement
based on the recently committed "transformers". Currently only a XSLT
and a noop transformer is available but the idea would be the same.
You just wouldn't transform the output generated by the component but
store them in a cache and restore it when needed. The cache key could
be anything from the component object, its id or path. All children
would have to me marked rendered though in order to avoid an
exception.
Tranformers are available as Container and Behaviours.
Q. Should the cache span the whole application because the panel you
want to cache is used on multiple pages? Will the panel/list be the
same for all users?
Q: what would be the best cache key?

Juergen




Darek





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid

[Wicket-user] TabbedPanel, InputForm and submit

2006-03-29 Thread Stefan Lindner
I use Wicket 1.2beta2 and I have the followin question:
I have a TabbedPanel with several tabs (according to the example). Each Panel 
contains an InputForm. Weh I change from one pane to another by klicking at the 
tab label I receive no onSubmit event and the input is lost. is there a way to 
make the tab label act as a submit button for the form? Oder is there any other 
mechanism to do such things?
Thanks in advance and thaky you for Wickt.
<>

Re: [Wicket-user] Caching content

2006-03-29 Thread Eelco Hillenius
Is that a proposal? :)

My first thought on this is to use AOP and meta data (either
annotations or Wicket meta data). If people are interested, they can
startup a project in wicket-stuff for this. We (the core developers)
will try to help when needed/ possible.

Ramnivas, are you reading with us? Would you agree AOP is suitable for this?

Eelco


On 3/29/06, John Lee <[EMAIL PROTECTED]> wrote:
> Hi
>
> I can tell you for public facing websites (vs enterprise), caching is a
> key feature that system architects will insist upon. In order to support
> extremely high concurrency & throughput, one simply must be able to
> cache portions of HTML fragments.
>
> On my previous php based projects, I use caching to increase throughput
> from 30pps to 300pps. That's a factor of 10x. So we're talking about 1
> machine replacing 10. From a business perspective, this is absolutely
> crucial.
>
> In my opinion, if wicket is going to make it to the mainstream
> public-facing web, it absolutely needs a comprehensive caching
> framework. If possible, the caching framework should not only eliminates
> re-rendering of cached HTML fragments, but also eliminate the need to
> instantiate objects until actually needed.
>
> John
>
> Juergen Donnerstag wrote:
> > On 1/2/06, Dariusz Wojtas <[EMAIL PROTECTED]> wrote:
> >
> >>Hi,
> >>
> >>Is it possible to cache dynamically generated content with Wicket?
> >>When using JSP I may use OSCache tags (specify conditions, timeout,
> >>etc) or create a custom tag that uses any cache implementation inside.
> >>Can this be done with Wicket?
> >>
> >>Can panel contents be cached? Other elements? How?
> >>For example I generate table where each row contains quite complex data.
> >>I'd like to be able to cache each row if needed. Every row might
> >>contain a unique ID to make caching possible.
> >>
> >
> >
> > Not out of box yet, but I don't think it is difficult to implement
> > based on the recently committed "transformers". Currently only a XSLT
> > and a noop transformer is available but the idea would be the same.
> > You just wouldn't transform the output generated by the component but
> > store them in a cache and restore it when needed. The cache key could
> > be anything from the component object, its id or path. All children
> > would have to me marked rendered though in order to avoid an
> > exception.
> > Tranformers are available as Container and Behaviours.
> > Q. Should the cache span the whole application because the panel you
> > want to cache is used on multiple pages? Will the panel/list be the
> > same for all users?
> > Q: what would be the best cache key?
> >
> > Juergen
> >
> >
> >>Darek
> >>
> >
> >
> >
> > ---
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> > for problems?  Stop!  Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> > http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Caching content

2006-03-29 Thread John Lee

Hi

I can tell you for public facing websites (vs enterprise), caching is a 
key feature that system architects will insist upon. In order to support 
extremely high concurrency & throughput, one simply must be able to 
cache portions of HTML fragments.


On my previous php based projects, I use caching to increase throughput 
from 30pps to 300pps. That's a factor of 10x. So we're talking about 1 
machine replacing 10. From a business perspective, this is absolutely 
crucial.


In my opinion, if wicket is going to make it to the mainstream 
public-facing web, it absolutely needs a comprehensive caching 
framework. If possible, the caching framework should not only eliminates 
re-rendering of cached HTML fragments, but also eliminate the need to 
instantiate objects until actually needed.


John

Juergen Donnerstag wrote:

On 1/2/06, Dariusz Wojtas <[EMAIL PROTECTED]> wrote:


Hi,

Is it possible to cache dynamically generated content with Wicket?
When using JSP I may use OSCache tags (specify conditions, timeout,
etc) or create a custom tag that uses any cache implementation inside.
Can this be done with Wicket?

Can panel contents be cached? Other elements? How?
For example I generate table where each row contains quite complex data.
I'd like to be able to cache each row if needed. Every row might
contain a unique ID to make caching possible.




Not out of box yet, but I don't think it is difficult to implement
based on the recently committed "transformers". Currently only a XSLT
and a noop transformer is available but the idea would be the same.
You just wouldn't transform the output generated by the component but
store them in a cache and restore it when needed. The cache key could
be anything from the component object, its id or path. All children
would have to me marked rendered though in order to avoid an
exception.
Tranformers are available as Container and Behaviours.
Q. Should the cache span the whole application because the panel you
want to cache is used on multiple pages? Will the panel/list be the
same for all users?
Q: what would be the best cache key?

Juergen



Darek





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] yui slider enquiry

2006-03-29 Thread Eelco Hillenius
I didn't choose for that set implemention because I thought it would
be useful to have an insertAt option.

Eelco


On 3/28/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> Use a LinkedHashSet to filter out double entries and keep order.
>
> Martijn
>
>
> On 3/29/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> >
> Erm, actually I'm not there yet. I'll check in more in half an hour.
>
> Eelco
>
> On 3/28/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > That was because I used a set to filter double contributions. I
> > changed this to list to guarantee order and added an additional method
> > with an index argument to enable further tweaking if needed.
> >
> > Eelco
> >
> > On 3/28/06, Joshua Lim <[EMAIL PROTECTED]> wrote:
> > > It seems that the slider is loading the *.js in some random order...
> > > so YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO not
> found
> > >
> > > add(HeaderContributor.forJavaScript(AbstractYuiPanel.class));
> > >
> > >  I am not sure but I will attempt to get this going since I need this...
> > >
> > > 1/ is there a way to force the order in which which .js file is loaded
> ... I
> > > am
> > > trying to load them manually ...  seems too does not gaurantee the
> order...
> > >
> > >  add(HeaderContributor.forJavaScript(AbstractYuiPanel.class,
> "YAHOO.js"));
> > > add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, "dom.js"));
> > > 
> >
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
>
> --
> Wicket 1.2 is coming! Write Ajax applications without touching JavaScript!
> -- http://wicketframework.org


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user