Re: [Wicket-user] How about a PrinterLink in Wicket Links

2007-02-27 Thread Ayodeji Aladejebi

thanks so much johannes...this is exactly why i threw this open in this
forum cuz i knew there was something more to printing web pages than the
javascript...this is noted. thanks

On 2/27/07, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:


You might also want to take a look at the @media CSS directive.
This enables you to give the page a different style depending on
whether you want to display it on the screen or print it, ie:

style
@media print {
  #hidewhenprinted  {display:none; height:0}
}
@media screen {
  #hidewhenprinted {display:block; height:auto}
}
/style

and farther down...

div id=hidewhenprinted
   div style=float:left
 input type=button value=Print
onclick=javascript:window.print()
   /div
   div style=float:right
  input type=button wicket:id=closeButton value=Close
   /div
/div

That way you can have a print button on the page, but the button itself
won't be printed.

- Johannes

Ayodeji Aladejebi wrote:
 hehe..very trivial i dint know what i was thinking..anyway thanks

 On 2/26/07, *Eelco Hillenius* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 Do you have such a link, or are you looking for suggestions on how
to
 create one? If the latter is the case, just render the page you want
 to print and have javascript: window.print() somewhere, e.g. as a
 header contribution.

 Eelco

 On 2/26/07, Ayodeji Aladejebi  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
  PrinterLink print = new PrinterLink(printoutlink,
 PageToPrint.class);
 
  any need for this
 
 
 
 
 
 
 
 
 
 
 

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

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


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

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





 


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

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

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



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

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


[Wicket-user] Using wicket:enclosure

2007-02-27 Thread Otan

I'm using the head in trunk. I'm getting the following error:

java.text.ParseException: Unkown tag name with Wicket namespace:
'enclosure'. Might be you haven't installed the appropriate resolver?


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


Re: [Wicket-user] Wicket 2.0 example for GridView is broken

2007-02-27 Thread Johan Compagner

changing the parent? or attach it to the parent again after removing?

johan


On 2/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


gridview doesnt yet work with 2.0 because we still havent decided on how
to do reparenting

-igor


On 2/13/07, Otan  [EMAIL PROTECTED] wrote:

 [ Wicket 2.0 ]
 I can't make my GridView to work as I expect it to behave. It's javadoc
 seems outdated yet. Can someone fix the Wicket-example for GridView so that
 I could have a reference about its usage? Thanks.


 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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


Re: [Wicket-user] AjaxFormValidatingBehavior and focus

2007-02-27 Thread Johan Compagner

this is currently implemented in the 1.3 stream.
The focus is being kept. But maybe we should improve it a bit more and also
keep the caret position (that could be handy if you really use onkey events)

johan


On 2/8/07, Robert ... [EMAIL PROTECTED] wrote:


Hi everyone,

I tried to use AjaxFormValidatingBehavior like this:
AjaxFormValidatingBehavior.addToAllFormComponents(form,
  onkeyup,

wicket.util.time.Duration.seconds(3));

It works. The feedback panel is updated and everything.
However while I'm typing the focus keeps dissapearing from the input
field. That's very annoying as you can imagine. Can I set Wicket to keep my
focus? If not, I would like to make this a feature request.

Robert


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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


Re: [Wicket-user] Query regarding formation of URL for a link

2007-02-27 Thread Johan Compagner

enable the URLCompressor if you don't want to have that in the url:

in 1.3:

   protected IRequestCycleProcessor newRequestCycleProcessor()
   {
   return new UrlCompressingWebRequestProcessor()
   {
   /**
* @see
wicket.protocol.http.WebRequestCycleProcessor#newRequestCodingStrategy()
*/
   protected IRequestCodingStrategy newRequestCodingStrategy()
   {
 return new UrlCompressingWebCodingStrategy();
   }
   };
   }

On 2/10/07, Swaroop Belur [EMAIL PROTECTED] wrote:


Hello All

This is w.r.t url generated for links. I was looking at the wicket
examples page  and did a view source for
a link. One link had this URL :
http://localhost:8080/wicket-examples/linkomatic;jsessionid=7hp5u436aji7?wicket:interface=:0:actionLink::ILinkListener

My doubt is regarding ILinkListener. I was wondering whether it is
absolutely necessary to have it in the URL.
My reasoning is this - since wicket can find out the type of component by
looking at component id which in this case
happens to be actionLink. So if wicket can  find out that it is a link
component , then it can automcatically
call the onClick() method of this link component.

Was the listener included because there is a possibility of more than one
listener being implemented by the
actionLink component and hence wicket needs to know which listener's
method shud get triggered. ?

Regards
swaroop belur






-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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


[Wicket-user] xhtml compliant TabbedPanel

2007-02-27 Thread Ivo van Dongen

Hi,

We ran into a little problem with the (Ajax)TabbedPanel. The markup is
defined as:

*wicket:panel*
*div class=**tab-row***
*ul*
*li wicket:id=**tabs***
*a href=**#** wicket:id=**linkspan
wicket:id=**title***[[tab title]]*/span**/a*
*/li*
*/ul*
*/div*
*span wicket:id=**panel** class=**tab-panel***[panel]*/span*
*/wicket:panel*



This leads us ito problems because a span tag is an inline element and
shouldn't contain any block level elements. Our designer is having
difficulties creating a consistent layout with it and we would like to be as
accesible as possible. Is there a reason why the panels are using a span?

Can I override the markup somehow (bij extending)? Perhaps this can be
changed to a div ?

Thanks in advance,
Ivo

--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] xhtml compliant TabbedPanel

2007-02-27 Thread Marc-Andre Houle

I think you can just extends AjaxTabbedPanel and provide your own markup if
you want.  It is what I have done with lot of wicket component...  Not done
it for now on AjaxTabPanel, but it can be done.

On 2/27/07, Ivo van Dongen [EMAIL PROTECTED] wrote:


Hi,

We ran into a little problem with the (Ajax)TabbedPanel. The markup is
defined as:

*wicket:panel*
*div class=
**tab-row***
*ul*
*li wicket:id=**
tabs***
*a href=**#** wicket:id=**
linkspan wicket:id=**title***[[tab title]]
*/span**/a*
*/li*
*/ul*
*
/div*
*span wicket:id=**panel** class=**tab-panel
***[panel]*/span*
*/wicket:panel*



This leads us ito problems because a span tag is an inline element and
shouldn't contain any block level elements. Our designer is having
difficulties creating a consistent layout with it and we would like to be as
accesible as possible. Is there a reason why the panels are using a span?

Can I override the markup somehow (bij extending)? Perhaps this can be
changed to a div ?

Thanks in advance,
Ivo

--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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


Re: [Wicket-user] Wicket classes shared by multiple mark ups

2007-02-27 Thread Marc-Andre Houle

Here is the wiki article about this :
http://cwiki.apache.org/WICKET/multiple-markups-per-page.html

On 2/27/07, Chris Colman [EMAIL PROTECTED] wrote:


I'm new to wicket. I'm just wondering if it's possible for multiple
markups to share common wicket Java classes?

My aim with this is to provide different appearances and layouts by
having
multiple sets of CSS and the markup but reusing the same Wicket classes
that provide the content. Is this possible?

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

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


Re: [Wicket-user] xhtml compliant TabbedPanel

2007-02-27 Thread Ivo van Dongen

Thanks, I'll Try that. I was just wondering if there was some special need
for that span or that it just as well could be a div. If so, perhaps it's
wise to do so to make it as easy as possible to remain standards compliant.

On 2/27/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:


I think you can just extends AjaxTabbedPanel and provide your own markup
if you want.  It is what I have done with lot of wicket component...  Not
done it for now on AjaxTabPanel, but it can be done.

On 2/27/07, Ivo van Dongen [EMAIL PROTECTED] wrote:

 Hi,

 We ran into a little problem with the (Ajax)TabbedPanel. The markup is
 defined as:

 *wicket:panel*
 *div class=

 **tab-row***
 *ul*
*li wicket:id=**

 tabs***
*a href=**#** wicket:id=**

 linkspan wicket:id=**title***[[tab title]]

 */span**/a*
*/li*
 */ul*
 *

 /div*
 *span wicket:id=**panel** class=**tab-panel

 ***[panel]*/span*
 */wicket:panel*



 This leads us ito problems because a span tag is an inline element and
 shouldn't contain any block level elements. Our designer is having
 difficulties creating a consistent layout with it and we would like to be as
 accesible as possible. Is there a reason why the panels are using a span?

 Can I override the markup somehow (bij extending)? Perhaps this can be
 changed to a div ?

 Thanks in advance,
 Ivo

 --
 Ivo van Dongen
 Func. Internet Integration
 W http://www.func.nl
 T +31 20 423
 F +31 20 4223500

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

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



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





--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax refresh of a RenderedDynamicImageRessource

2007-02-27 Thread Marc-Andre Houle

Some wise person said : Don't act like a fool if you don't want to be taken
for a fool.
I can add :Don't post to a mailing list at the end of a working day! :)
First, I was not adding the correct resource to my image, and secondly,
after a little search, I got the fact that Using directly
DynamicImageRessource was a better for my need.

Thanks a lot if you have checked, but finally, the problem was only me! :)

On 2/26/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:


I have to display a custom build Image generated by another API.  The way
I hae thought of it right now is by extending RenderedDynamicImageResource.
Here is the way I work with it :
Create a panel containing an Image with the blank ressource.  Then,
clicking on a link, I refresh the panel, which should also refresh the image
to reflect the change.  The problem is that whatever happen, the render of
the graph is not called.  I mean, I set Height and width correctly, but the
image does not rerender.  It is possible that RenderedDynamicImageRessource
is not Ajax ready and if so, what can I use?

Here is the panel :
public GraphToDiplay(String id) {
super(id);
_graphImageRessource = new GraphImageRessource();
Image graph = new NonCachingImage(graph, new
ProcessGraphImageRessource());
graph.setOutputMarkupId (true);
add(graph);
}
public void onAttach()
{
Graph graph = getGraph();
_graphImageRessource.setGraph (graph);
}
Here is the Ressource :
public ProcessGraphImageRessource()
{
super(3, 3);
}
public void setGraph(Graph graph)
{
_graph = graph;
setWidth(graph.getWidth ());
setHeight(graph.getHeight ());
invalidate();
System.out.println(Setting height{ + graph.getHeight () + } and
width{ + graph.getWidth () + });
}
protected boolean render (Graphics2D graphics2D)
{
System.out.println(Rendering);
if(_graph != null)
{
if(_graph.getWidth () == this.getWidth ()  _graph.getHeight
() == this.getHeight ())
{
System.out.println(Suppose to paint this graph now...);
_graph.paintVisibleContent (graphics2D);
return true;
}
else
{
this.setWidth (_graph.getWidth ());
this.setHeight(_graph.getHeight ());
return false;
}
}
else
{
return true;
}
}


Thanks in advance

Marc

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


Re: [Wicket-user] Using wicket:enclosure

2007-02-27 Thread Igor Vaynberg

read the javadoc of enclosure resolver

-igor


On 2/27/07, Otan [EMAIL PROTECTED] wrote:


I'm using the head in trunk. I'm getting the following error:

java.text.ParseException: Unkown tag name with Wicket namespace: 'enclosure'. 
Might be you haven't installed the appropriate resolver?


What should I do?

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


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


Re: [Wicket-user] Wicket 2.0 example for GridView is broken

2007-02-27 Thread Igor Vaynberg

changing the parent

an item can shift between rows as items are removed and added so it needs to
be attached to different items

-igor


On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:


changing the parent? or attach it to the parent again after removing?

johan


On 2/13/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:

 gridview doesnt yet work with 2.0 because we still havent decided on how
 to do reparenting

 -igor


 On 2/13/07, Otan  [EMAIL PROTECTED] wrote:
 
  [ Wicket 2.0 ]
  I can't make my GridView to work as I expect it to behave. It's
  javadoc seems outdated yet. Can someone fix the Wicket-example for GridView
  so that I could have a reference about its usage? Thanks.
 
 
  -
  Using Tomcat but need to do more? Need to support web services,
  security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
 
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



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


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


Re: [Wicket-user] xhtml compliant TabbedPanel

2007-02-27 Thread Igor Vaynberg

no special need. i thought i already changed it to a div a while back...but
i guess not. please create a jira issue.

-igor


On 2/27/07, Ivo van Dongen [EMAIL PROTECTED] wrote:


Thanks, I'll Try that. I was just wondering if there was some special need
for that span or that it just as well could be a div. If so, perhaps it's
wise to do so to make it as easy as possible to remain standards compliant.

On 2/27/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:

 I think you can just extends AjaxTabbedPanel and provide your own markup
 if you want.  It is what I have done with lot of wicket component...  Not
 done it for now on AjaxTabPanel, but it can be done.

  On 2/27/07, Ivo van Dongen [EMAIL PROTECTED] wrote:

  Hi,
 
  We ran into a little problem with the (Ajax)TabbedPanel. The markup is
  defined as:
 
  *wicket:panel*
  *div class=
 
  **tab-row***
  *ul*
*li wicket:id=**
 
  tabs***
*a href=**#** wicket:id=**
 
  linkspan wicket:id=**title**
  *[[tab title]]
 
  */span**/a*
*/li*
  */ul
  *
  *
 
  /div*
  *span wicket:id=**panel** class=**tab-panel
 
  ***[panel]*/span*
  */wicket:panel*
 
 
 
  This leads us ito problems because a span tag is an inline element and
  shouldn't contain any block level elements. Our designer is having
  difficulties creating a consistent layout with it and we would like to be as
  accesible as possible. Is there a reason why the panels are using a span?
 
  Can I override the markup somehow (bij extending)? Perhaps this can be
  changed to a div ?
 
  Thanks in advance,
  Ivo
 
  --
  Ivo van Dongen
  Func. Internet Integration
  W http://www.func.nl
  T +31 20 423
  F +31 20 4223500
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


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

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




--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500

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


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


Re: [Wicket-user] Wicket 2.0 example for GridView is broken

2007-02-27 Thread Johan Compagner

that would be a problem
Some how we have do a clone with a new parent:

component.clone(parent)

johan


On 2/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


changing the parent

an item can shift between rows as items are removed and added so it needs
to be attached to different items

-igor


On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:

 changing the parent? or attach it to the parent again after removing?

 johan


 On 2/13/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 
  gridview doesnt yet work with 2.0 because we still havent decided on
  how to do reparenting
 
  -igor
 
 
  On 2/13/07, Otan  [EMAIL PROTECTED] wrote:
  
   [ Wicket 2.0 ]
   I can't make my GridView to work as I expect it to behave. It's
   javadoc seems outdated yet. Can someone fix the Wicket-example for 
GridView
   so that I could have a reference about its usage? Thanks.
  
  
   -
   Using Tomcat but need to do more? Need to support web services,
   security?
   Get stuff done quickly with pre-integrated technology to make your
   job easier.
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
   Geronimo
  
   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  -
  Using Tomcat but need to do more? Need to support web services,
  security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
 
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


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

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



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


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


Re: [Wicket-user] NPE in find method of MarkupFragmentFinder class...

2007-02-27 Thread Igor Vaynberg

sounds pretty strange, show us your code

-igor


On 2/27/07, Swaroop Belur [EMAIL PROTECTED] wrote:


Hello all

In the find method there is this piece of code which compares  a tag's ID
to another component's id

Code snippet

[  ...
   markupStream.setCurrentIndex(component.markupIndex);
MarkupElement elem = markupStream.get();
if (elem instanceof ComponentTag)
{
ComponentTag tag = (ComponentTag)elem;
if (tag.getId().equals(component.getId()))
{
// Ok, found it
return markupStream;
}
}

.
]

Background:

I am designing a page which has a collapsable panel. I feel that I have
called
setOutputMarkupId in the relevant places for the panels to be refreshed
because
when panel refresh happens the second time i click (a plus icon to expand
)
The problem is that It does NOT happen the first time and i simply click
the second time and panel refreshes.

[ i am using ajaxrequesttarget.replace and ajaxrequesttarget.addcomponent]

Problem

The problem i am facing is that the every odd numbered ajax request gives
a NPE for tag.getId()

So while debugging thru this section, I observed that eclipse shows the
stringified
expression of  this tag (instance of ComponentTag) as /span ..??


My Modification

I just  added a null pointer check for tag.getID and then on it worked
properly for every odd numbered Ajax Request .

Any suggestions ?

-Swaroop










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


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


Re: [Wicket-user] Wicket 2.0 example for GridView is broken

2007-02-27 Thread Igor Vaynberg

why clone? why not have a reassign(parent) or some such method on the
component?

-igor


On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:


that would be a problem
Some how we have do a clone with a new parent:

component.clone(parent)

johan


On 2/27/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:

 changing the parent

 an item can shift between rows as items are removed and added so it
 needs to be attached to different items

 -igor


 On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:

   changing the parent? or attach it to the parent again after removing?
 
  johan
 
 
  On 2/13/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  
   gridview doesnt yet work with 2.0 because we still havent decided on
   how to do reparenting
  
   -igor
  
  
   On 2/13/07, Otan  [EMAIL PROTECTED] wrote:
   
[ Wicket 2.0 ]
I can't make my GridView to work as I expect it to behave. It's
javadoc seems outdated yet. Can someone fix the Wicket-example for 
GridView
so that I could have a reference about its usage? Thanks.
   
   

-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your
job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
   
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
   -
   Using Tomcat but need to do more? Need to support web services,
   security?
   Get stuff done quickly with pre-integrated technology to make your
   job easier.
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
   Geronimo
  
   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


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

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



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


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


Re: [Wicket-user] Wicket classes shared by multiple mark ups

2007-02-27 Thread Jonathan Locke


right there's that.  but it applies to all components, not just pages.
also, if you're doing skinning, you should use the component's style 
property (not variation) to determine which markup is associated 
with the component. 


Marc-Andre Houle wrote:
 
 Here is the wiki article about this :
 http://cwiki.apache.org/WICKET/multiple-markups-per-page.html
 
 On 2/27/07, Chris Colman [EMAIL PROTECTED] wrote:

 I'm new to wicket. I'm just wondering if it's possible for multiple
 markups to share common wicket Java classes?

 My aim with this is to provide different appearances and layouts by
 having
 multiple sets of CSS and the markup but reusing the same Wicket classes
 that provide the content. Is this possible?

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

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

-- 
View this message in context: 
http://www.nabble.com/Wicket-classes-shared-by-multiple-mark-ups-tf3298679.html#a9186107
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] xhtml compliant TabbedPanel

2007-02-27 Thread Ivo van Dongen

Done: WICKET-334 https://issues.apache.org/jira/browse/WICKET-334. Thanks!

On 2/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


no special need. i thought i already changed it to a div a while
back...but i guess not. please create a jira issue.

-igor


On 2/27/07, Ivo van Dongen [EMAIL PROTECTED] wrote:

 Thanks, I'll Try that. I was just wondering if there was some special
 need for that span or that it just as well could be a div. If so, perhaps
 it's wise to do so to make it as easy as possible to remain standards
 compliant.

 On 2/27/07, Marc-Andre Houle  [EMAIL PROTECTED] wrote:
 
  I think you can just extends AjaxTabbedPanel and provide your own
  markup if you want.  It is what I have done with lot of wicket component...
  Not done it for now on AjaxTabPanel, but it can be done.
 
   On 2/27/07, Ivo van Dongen [EMAIL PROTECTED] wrote:
 
   Hi,
  
   We ran into a little problem with the (Ajax)TabbedPanel. The markup
   is defined as:
  
   *wicket:panel*
   *div class=
  
  
   **tab-row***
   *ul*
*li wicket:id=**
  
  
   tabs***
*a href=**#** wicket:id=**
  
   linkspan wicket:id=**title**
  
   *[[tab title]]
  
   */span**/a*
*/li*
   */ul
  
   *
   *
  
   /div*
   *span wicket:id=**panel** class=
   **tab-panel
  
   ***[panel]*/span*
   */wicket:panel
   *
  
  
  
   This leads us ito problems because a span tag is an inline element
   and shouldn't contain any block level elements. Our designer is having
   difficulties creating a consistent layout with it and we would like to be 
as
   accesible as possible. Is there a reason why the panels are using a span?
  
   Can I override the markup somehow (bij extending)? Perhaps this can
   be changed to a div ?
  
   Thanks in advance,
   Ivo
  
   --
   Ivo van Dongen
   Func. Internet Integration
   W http://www.func.nl
   T +31 20 423
   F +31 20 4223500
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
   share your
   opinions on IT  business topics through brief surveys-and earn cash
  
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 --
 Ivo van Dongen
 Func. Internet Integration
 W http://www.func.nl
 T +31 20 423
 F +31 20 4223500


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

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



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





--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] MarkupWriter

2007-02-27 Thread Eelco Hillenius

 Maybe this simple addition should also be backported to 1.3

Sounds good to me.

Eelco

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


Re: [Wicket-user] Wicket classes shared by multiple mark ups

2007-02-27 Thread Eelco Hillenius
There's a ton of ways to do this. User specific panels/ using
Session.setStyle and vary the markup/ vary header contributions
(add(HeaderContributor.forCss(...))/ etc.

Eelco


On 2/26/07, Chris Colman [EMAIL PROTECTED] wrote:
 I'm new to wicket. I'm just wondering if it's possible for multiple
 markups to share common wicket Java classes?

 My aim with this is to provide different appearances and layouts by
 having
 multiple sets of CSS and the markup but reusing the same Wicket classes
 that provide the content. Is this possible?

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


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


Re: [Wicket-user] Wicket 2.0 example for GridView is broken

2007-02-27 Thread Johan Compagner

we can do that. But then we reintroduced add()

ok you say it from the other side but we have to open up something then
because reassign() has to call something on the parent (add)
i guess package scope will work for this

Then we have all the things we now can do in the constructor that don't work
anymore
like the markup id. the attributes of the tag. etc.

johan


On 2/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


why clone? why not have a reassign(parent) or some such method on the
component?

-igor


On 2/27/07, Johan Compagner  [EMAIL PROTECTED] wrote:

 that would be a problem
 Some how we have do a clone with a new parent:

 component.clone(parent)

 johan


 On 2/27/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 
  changing the parent
 
  an item can shift between rows as items are removed and added so it
  needs to be attached to different items
 
  -igor
 
 
  On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:
 
changing the parent? or attach it to the parent again after
   removing?
  
   johan
  
  
   On 2/13/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   
gridview doesnt yet work with 2.0 because we still havent decided
on how to do reparenting
   
-igor
   
   
On 2/13/07, Otan  [EMAIL PROTECTED] wrote:

 [ Wicket 2.0 ]
 I can't make my GridView to work as I expect it to behave. It's
 javadoc seems outdated yet. Can someone fix the Wicket-example for 
GridView
 so that I could have a reference about its usage? Thanks.


 
-
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make
 your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on
 Apache Geronimo

 
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


   
   

-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your
job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
   
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
   share your
   opinions on IT  business topics through brief surveys-and earn cash
  
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


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

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



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


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's 

Re: [Wicket-user] Wicket 2.0 example for GridView is broken

2007-02-27 Thread Igor Vaynberg

well yeah, it should only be used in rare circumstances. the javadoc should
describe what borks when this is used

-igor


On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:


we can do that. But then we reintroduced add()

ok you say it from the other side but we have to open up something then
because reassign() has to call something on the parent (add)
i guess package scope will work for this

Then we have all the things we now can do in the constructor that don't
work anymore
like the markup id. the attributes of the tag. etc.

johan


On 2/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 why clone? why not have a reassign(parent) or some such method on the
 component?

 -igor


 On 2/27/07, Johan Compagner  [EMAIL PROTECTED] wrote:
 
  that would be a problem
  Some how we have do a clone with a new parent:
 
  component.clone(parent)
 
  johan
 
 
  On 2/27/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  
   changing the parent
  
   an item can shift between rows as items are removed and added so it
   needs to be attached to different items
  
   -igor
  
  
   On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:
  
 changing the parent? or attach it to the parent again after
removing?
   
johan
   
   
On 2/13/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:

 gridview doesnt yet work with 2.0 because we still havent
 decided on how to do reparenting

 -igor


 On 2/13/07, Otan  [EMAIL PROTECTED] wrote:
 
  [ Wicket 2.0 ]
  I can't make my GridView to work as I expect it to behave.
  It's javadoc seems outdated yet. Can someone fix the Wicket-example 
for
  GridView so that I could have a reference about its usage? Thanks.
 
 
  
-
  Using Tomcat but need to do more? Need to support web
  services, security?
  Get stuff done quickly with pre-integrated technology to make
  your job easier.
  Download IBM WebSphere Application Server v.1.0.1 based on
  Apache Geronimo
 
  
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 
-
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make
 your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on
 Apache Geronimo

 
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


   
   

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

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


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

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

Re: [Wicket-user] Wicket 2.0 example for GridView is broken

2007-02-27 Thread Johan Compagner

what if the developer uses a gridview for components that are much deeper in
the hierarchy
and because we say the markup id is from now on stable. and it uses that one
in its constructor
Is it then when gridview reshuffles it still the case?

johan


On 2/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


well yeah, it should only be used in rare circumstances. the javadoc
should describe what borks when this is used

-igor


On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:

 we can do that. But then we reintroduced add()

 ok you say it from the other side but we have to open up something then
 because reassign() has to call something on the parent (add)
 i guess package scope will work for this

 Then we have all the things we now can do in the constructor that don't
 work anymore
 like the markup id. the attributes of the tag. etc.

 johan


 On 2/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 
  why clone? why not have a reassign(parent) or some such method on the
  component?
 
  -igor
 
 
  On 2/27/07, Johan Compagner  [EMAIL PROTECTED] wrote:
  
   that would be a problem
   Some how we have do a clone with a new parent:
  
   component.clone(parent)
  
   johan
  
  
   On 2/27/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   
changing the parent
   
an item can shift between rows as items are removed and added so
it needs to be attached to different items
   
-igor
   
   
On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:
   
  changing the parent? or attach it to the parent again after
 removing?

 johan


 On 2/13/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 
  gridview doesnt yet work with 2.0 because we still havent
  decided on how to do reparenting
 
  -igor
 
 
  On 2/13/07, Otan  [EMAIL PROTECTED] wrote:
  
   [ Wicket 2.0 ]
   I can't make my GridView to work as I expect it to behave.
   It's javadoc seems outdated yet. Can someone fix the 
Wicket-example for
   GridView so that I could have a reference about its usage? Thanks.
  
  
   
-
   Using Tomcat but need to do more? Need to support web
   services, security?
   Get stuff done quickly with pre-integrated technology to
   make your job easier.
   Download IBM WebSphere Application Server v.1.0.1 based on
   Apache Geronimo
  
   
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  
-
  Using Tomcat but need to do more? Need to support web
  services, security?
  Get stuff done quickly with pre-integrated technology to make
  your job easier.
  Download IBM WebSphere Application Server v.1.0.1 based on
  Apache Geronimo
 
  
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


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

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


   
   

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

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

Re: [Wicket-user] Wicket 2.0 example for GridView is broken

2007-02-27 Thread Igor Vaynberg

this is only a problem when an item reuse strategy is used

lets say you have a gridview with max 2 columns and you have 4 items
A B == row item 1
C D == row item 2

so now when you repaint the row items are regenerated, but we want to keep A
B C D components the same, so we have to reparent them to the new row items

-igor



On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:


what if the developer uses a gridview for components that are much deeper
in the hierarchy
and because we say the markup id is from now on stable. and it uses that
one in its constructor
Is it then when gridview reshuffles it still the case?

johan


On 2/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 well yeah, it should only be used in rare circumstances. the javadoc
 should describe what borks when this is used

 -igor


 On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:
 
  we can do that. But then we reintroduced add()
 
  ok you say it from the other side but we have to open up something
  then
  because reassign() has to call something on the parent (add)
  i guess package scope will work for this
 
  Then we have all the things we now can do in the constructor that
  don't work anymore
  like the markup id. the attributes of the tag. etc.
 
  johan
 
 
  On 2/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  
   why clone? why not have a reassign(parent) or some such method on
   the component?
  
   -igor
  
  
   On 2/27/07, Johan Compagner  [EMAIL PROTECTED] wrote:
   
that would be a problem
Some how we have do a clone with a new parent:
   
component.clone(parent)
   
johan
   
   
On 2/27/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:

 changing the parent

 an item can shift between rows as items are removed and added so
 it needs to be attached to different items

 -igor


 On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:

   changing the parent? or attach it to the parent again after
  removing?
 
  johan
 
 
  On 2/13/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  
   gridview doesnt yet work with 2.0 because we still havent
   decided on how to do reparenting
  
   -igor
  
  
   On 2/13/07, Otan  [EMAIL PROTECTED] wrote:
   
[ Wicket 2.0 ]
I can't make my GridView to work as I expect it to behave.
It's javadoc seems outdated yet. Can someone fix the 
Wicket-example for
GridView so that I could have a reference about its usage? 
Thanks.
   
   

-
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
   

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
   
-
   Using Tomcat but need to do more? Need to support web
   services, security?
   Get stuff done quickly with pre-integrated technology to
   make your job easier.
   Download IBM WebSphere Application Server v.1.0.1 based on
   Apache Geronimo
  
   
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  
-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance
  to share your
  opinions on IT  business topics through brief surveys-and
  earn cash
 
  
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


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

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

[Wicket-user] Field validation + FeedbackIndicator + Ajax

2007-02-27 Thread Manuel Alejandro de Brito Fontes
Hi, I'm using wicket to build a prototype and found interesting the content of this:http://wicketstuff.org/confluence/display/STUFFWIKI/DojoFeedbackIndicator  and http://wicketstuff.org/confluence/display/STUFFWIKI/DojoValidationAjaxHandlerMy problem was that the validation only works until I submit the form, the indicator only appears after the submit of the form and the message of the caption contains all the errors of the feedback.So I create a validation that not depends on dojo, indicate the error of the validation, show the alerticon on fail and persist after the submit of the form.If is useful to someone, here attach a quick-start.To use it add the behavior to any field, i.e.: Form field.add(new FormFieldValidator(ClientEvent.event));The code works on 2.0-SNAPSHOT (I don't use 1.x, so I don't known the API changes).PS: Thanks for so powerful and flexible framework and sorry for my bad english.

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


[Wicket-user] DropDownChoice confusion

2007-02-27 Thread Jason Roelofs

Why is nothing in Wicket obvious?

I want:

select ...
 option value=AND/option
 option value=|OR/option
/select

My model has a 'gated' field that is either '' or '|'

Why can't I have:

add(new DropDownChoice(gated, model, {AND, OR},  {, |});

or better yet:

add(new DropDownChoice(gated, model, { {, AND}, {|, OR}});

(assuming properly created arrays, of course)?

How is this supposed to work?

Thanks

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


Re: [Wicket-user] DropDownChoice confusion

2007-02-27 Thread Robert Novotny

The documentation might be a little scattered, however is a separate topic.
Nonetheless, the Wicket Library site features most of the Wicket components
and examples of their usage: e. g. DropDownChoice is demonstrated (along
with the IChoiceRenderer) on the
http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.compref.DropDownChoicePage




Jason Roelofs wrote:
 
 Which of course makes perfect sense...
 
 I'm sorry if I come across as crash, it's because I'm very annoyed. I
 thought Wicket was the coolest Java framework out there, but now that I've
 used it for 2 weeks on, I can't say that anymore. Every time I've moved on
 to the next part of my website, it takes me 2+ hours to figure out how,
 and
 I'm not talking about entire pages, I'm talking about components of pages.
 A
 select, an Ajax-ified form, etc. Why do I have to deal with
 IChoiceRenderers? Besides how the documentation doesn't tell me how to use
 the thing, nor do the examples explain how it works, just here ya go,
 copy
 this. It just doesn't make sense.
 
 Back to the matter at hand, does anyone have example code using
 wicket-extensions Select and SelectOptions? There is absolutely NO usage
 documentation on getting all that working together.
 
 Anyway, sorry about the rant, I'm just getting more disappointed with
 Wicket
 in general. It may be different than other Java frameworks, but I cannot
 say
 that it's any better. I like the idea, I like some of the implementation
 of
 it (how Ajaxing components work, best I've seen), but using the framework
 has been an exercise in frustration from day 2.
 
 So I'll head back to banging on the DropDownChoice, I'll get it
 eventually,
 though I'm open for suggestions.
 
 Jason
 
 On 2/27/07, Robert Novotny [EMAIL PROTECTED] wrote:


 The DropDownChoice allows you to specify in one of its constructors a
 custom
 implementation of IChoiceRenderer, which can be used to customize the
 item
 IDs and labels. You may try to have a look on the IChoiceRenderer and the
 ChoiceRenderer (which is its default implementation) JavaDoc.


 Jason Roelofs wrote:
 
  Why is nothing in Wicket obvious?
 
  I want:
 
  select ...
option value=AND/option
option value=|OR/option
  /select
 
  My model has a 'gated' field that is either '' or '|'
 
  Why can't I have:
 
  add(new DropDownChoice(gated, model, {AND, OR},  {, |});
 
  or better yet:
 
  add(new DropDownChoice(gated, model, { {, AND}, {|, OR}});
 
  (assuming properly created arrays, of course)?
 
  How is this supposed to work?
 
  Thanks
 
  Jason
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys-and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/DropDownChoice-confusion-tf3304232.html#a9191899
 Sent from the Wicket - User mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 
http://www.nabble.com/DropDownChoice-confusion-tf3304232.html#a9192544
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Re: [Wicket-user] DropDownChoice confusion

2007-02-27 Thread Jason Roelofs

Which of course makes perfect sense...

I'm sorry if I come across as crash, it's because I'm very annoyed. I
thought Wicket was the coolest Java framework out there, but now that I've
used it for 2 weeks on, I can't say that anymore. Every time I've moved on
to the next part of my website, it takes me 2+ hours to figure out how, and
I'm not talking about entire pages, I'm talking about components of pages. A
select, an Ajax-ified form, etc. Why do I have to deal with
IChoiceRenderers? Besides how the documentation doesn't tell me how to use
the thing, nor do the examples explain how it works, just here ya go, copy
this. It just doesn't make sense.

Back to the matter at hand, does anyone have example code using
wicket-extensions Select and SelectOptions? There is absolutely NO usage
documentation on getting all that working together.

Anyway, sorry about the rant, I'm just getting more disappointed with Wicket
in general. It may be different than other Java frameworks, but I cannot say
that it's any better. I like the idea, I like some of the implementation of
it (how Ajaxing components work, best I've seen), but using the framework
has been an exercise in frustration from day 2.

So I'll head back to banging on the DropDownChoice, I'll get it eventually,
though I'm open for suggestions.

Jason

On 2/27/07, Robert Novotny [EMAIL PROTECTED] wrote:



The DropDownChoice allows you to specify in one of its constructors a
custom
implementation of IChoiceRenderer, which can be used to customize the item
IDs and labels. You may try to have a look on the IChoiceRenderer and the
ChoiceRenderer (which is its default implementation) JavaDoc.


Jason Roelofs wrote:

 Why is nothing in Wicket obvious?

 I want:

 select ...
   option value=AND/option
   option value=|OR/option
 /select

 My model has a 'gated' field that is either '' or '|'

 Why can't I have:

 add(new DropDownChoice(gated, model, {AND, OR},  {, |});

 or better yet:

 add(new DropDownChoice(gated, model, { {, AND}, {|, OR}});

 (assuming properly created arrays, of course)?

 How is this supposed to work?

 Thanks

 Jason


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

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



--
View this message in context:
http://www.nabble.com/DropDownChoice-confusion-tf3304232.html#a9191899
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


[Wicket-user] WicketTester question

2007-02-27 Thread Filippo Diotalevi
Hi,
  I'm writing tests using WicketTester (with Wicket 1.2.5); a sample test is:

public void testPageShouldHaveRequiredComponents() {
WicketTester wt = new WicketTester();
wt.startPage(new 
SummaryPage(JobPostCreatorHelper.createJobPost()));

wt.assertLabel(company.name, 
JobPostCreatorHelper.COMPANY_NAME);
wt.assertLabel(company.description,
JobPostCreatorHelper.COMPANY_DESCRIPTION);
}

The test runs fine, but the logs are filled with exceptions like:

ERROR - RequestCycle   - The component(s) below failed to
render. A common problem is that you have added a component in code
but forgot to reference it in the markup (thus the component will
never be rendered).

1. [MarkupContainer [Component id = _body, page =
board.pages.SummaryPage, path = 0:_body.HtmlBodyContainer, isVisible
= true, isVersioned = true]]
2. [Component id = company.name, page =board.pages.SummaryPage, path =
0:company.name.Label, isVisible = true, isVersioned = true]

All the components are logged as 'not rendered', but all tests are
passed and the application works.
Is this the normal behaviour of tests?

-- 
Filippo Diotalevi
http://www.diotalevi.com
http://www.jugmilano.it

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


Re: [Wicket-user] DropDownChoice confusion

2007-02-27 Thread Eelco Hillenius
I'm sorry to hear you don't find the API as obvious. DropDownChoice
seems to be one of the larger offenders usually, though there haven't
been any good suggestions about how to improve this either. Speaking
of which... patches and concrete suggestions are more helpful than
rants as you can imagine. We're pretty open to suggestions in general.

add(new DropDownChoice(gated, model, { {, AND}, {|, OR}});

How would that work together with the model? Just set AND or OR as the
model value?

Eelco


On 2/27/07, Jason Roelofs [EMAIL PROTECTED] wrote:
 Which of course makes perfect sense...

 I'm sorry if I come across as crash, it's because I'm very annoyed. I
 thought Wicket was the coolest Java framework out there, but now that I've
 used it for 2 weeks on, I can't say that anymore. Every time I've moved on
 to the next part of my website, it takes me 2+ hours to figure out how, and
 I'm not talking about entire pages, I'm talking about components of pages. A
 select, an Ajax-ified form, etc. Why do I have to deal with
 IChoiceRenderers? Besides how the documentation doesn't tell me how to use
 the thing, nor do the examples explain how it works, just here ya go, copy
 this. It just doesn't make sense.

 Back to the matter at hand, does anyone have example code using
 wicket-extensions Select and SelectOptions? There is absolutely NO usage
 documentation on getting all that working together.

 Anyway, sorry about the rant, I'm just getting more disappointed with Wicket
 in general. It may be different than other Java frameworks, but I cannot say
 that it's any better. I like the idea, I like some of the implementation of
 it (how Ajaxing components work, best I've seen), but using the framework
 has been an exercise in frustration from day 2.

 So I'll head back to banging on the DropDownChoice, I'll get it eventually,
 though I'm open for suggestions.

 Jason


 On 2/27/07, Robert Novotny [EMAIL PROTECTED] wrote:
 
  The DropDownChoice allows you to specify in one of its constructors a
 custom
  implementation of IChoiceRenderer, which can be used to customize the item
  IDs and labels. You may try to have a look on the IChoiceRenderer and the
  ChoiceRenderer (which is its default implementation) JavaDoc.
 
 
  Jason Roelofs wrote:
  
   Why is nothing in Wicket obvious?
  
   I want:
  
   select ...
 option value=AND/option
 option value=|OR/option
   /select
  
   My model has a 'gated' field that is either '' or '|'
  
   Why can't I have:
  
   add(new DropDownChoice(gated, model, {AND, OR},  {, |});
  
   or better yet:
  
   add(new DropDownChoice(gated, model, { {, AND}, {|, OR}});
  
   (assuming properly created arrays, of course)?
  
   How is this supposed to work?
  
   Thanks
  
   Jason
  
  
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
   your
   opinions on IT  business topics through brief surveys-and earn cash
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
  --
  View this message in context:
 http://www.nabble.com/DropDownChoice-confusion-tf3304232.html#a9191899
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys-and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


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



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

Re: [Wicket-user] DropDownChoice confusion

2007-02-27 Thread Igor Vaynberg

On 2/27/07, Jason Roelofs [EMAIL PROTECTED] wrote:


Why can't I have:

add(new DropDownChoice(gated, model, {AND, OR},  {, |});

or better yet:

add(new DropDownChoice(gated, model, { {, AND}, {|, OR}});



you can

class mydropdownchoice extends dropdownchoice {
 public mydropdownchoice(id, model, final object[] choices) {
  super(id, model);
  arraylist choiceslist=new arraylist();
  for (int i=0;ichoices.length;i++) {
choiceslist.add(choices[i][0]);
  }
  setchoices(choiceslist);
  setrenderer(new ichoicerenderer() {
  Object getDisplayValue(Object object) {
return choices[getchoices().indexof(object)][1];
   }
   String getIdValue(T object, int index) { return object; }
   }
}

or something very close to that.

what you have to realize is that your usecase is not very representative of
whats out there.

one, you have only a few choices
two, your list of choices is hardcoded
three, you dont mind keeping those choices and their values in session

these three things are not true for most usecases ive come across

most usecases you have a list of objects, like Person, that you load from
the database. you dont know how many, and you dont want to keep the list in
session. dropdownchoice is optimized for that usage:

add(new dropdownchoice(people, model, new LoadableDetachableModel() {
load() { return db.loadpeople(); }, new ChoiceRenderer(personId,
fullName));

this also happens to be the most generic form. nothing stops you from
subclassing and optimizing the usage for your usecases

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


Re: [Wicket-user] DropDownChoice confusion

2007-02-27 Thread Eelco Hillenius
Your case would be:

class Option {
  String key;
  String value;
  public Option(String key, String value) {
this.key = key;
this.value = value;
  }
}
add(new DropDownChoice(gated, model,  Arrays.asList(new Option[]{
new Option(, AND), new Option(|, OR) }), new
ChoiceRenderer(value, key));

Of course, the model has to reference an existing option.

Looking from the example you gave, your problem lies in how to work
with models. And this is a common thing for people new to Wicket. It
seems the obvious thing to do for people is to keep working with
Strings rather than full objects (like Option is), and rather then
putting the model central, do things like
myDropDownChoice.getModelValue().

If you encountered more components you didn't think were obvious, please share.

Eelco

On 2/27/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 I'm sorry to hear you don't find the API as obvious. DropDownChoice
 seems to be one of the larger offenders usually, though there haven't
 been any good suggestions about how to improve this either. Speaking
 of which... patches and concrete suggestions are more helpful than
 rants as you can imagine. We're pretty open to suggestions in general.

 add(new DropDownChoice(gated, model, { {, AND}, {|, OR}});

 How would that work together with the model? Just set AND or OR as the
 model value?

 Eelco


 On 2/27/07, Jason Roelofs [EMAIL PROTECTED] wrote:
  Which of course makes perfect sense...
 
  I'm sorry if I come across as crash, it's because I'm very annoyed. I
  thought Wicket was the coolest Java framework out there, but now that I've
  used it for 2 weeks on, I can't say that anymore. Every time I've moved on
  to the next part of my website, it takes me 2+ hours to figure out how, and
  I'm not talking about entire pages, I'm talking about components of pages. A
  select, an Ajax-ified form, etc. Why do I have to deal with
  IChoiceRenderers? Besides how the documentation doesn't tell me how to use
  the thing, nor do the examples explain how it works, just here ya go, copy
  this. It just doesn't make sense.
 
  Back to the matter at hand, does anyone have example code using
  wicket-extensions Select and SelectOptions? There is absolutely NO usage
  documentation on getting all that working together.
 
  Anyway, sorry about the rant, I'm just getting more disappointed with Wicket
  in general. It may be different than other Java frameworks, but I cannot say
  that it's any better. I like the idea, I like some of the implementation of
  it (how Ajaxing components work, best I've seen), but using the framework
  has been an exercise in frustration from day 2.
 
  So I'll head back to banging on the DropDownChoice, I'll get it eventually,
  though I'm open for suggestions.
 
  Jason
 
 
  On 2/27/07, Robert Novotny [EMAIL PROTECTED] wrote:
  
   The DropDownChoice allows you to specify in one of its constructors a
  custom
   implementation of IChoiceRenderer, which can be used to customize the item
   IDs and labels. You may try to have a look on the IChoiceRenderer and the
   ChoiceRenderer (which is its default implementation) JavaDoc.
  
  
   Jason Roelofs wrote:
   
Why is nothing in Wicket obvious?
   
I want:
   
select ...
  option value=AND/option
  option value=|OR/option
/select
   
My model has a 'gated' field that is either '' or '|'
   
Why can't I have:
   
add(new DropDownChoice(gated, model, {AND, OR},  {, |});
   
or better yet:
   
add(new DropDownChoice(gated, model, { {, AND}, {|, OR}});
   
(assuming properly created arrays, of course)?
   
How is this supposed to work?
   
Thanks
   
Jason
   
   
  -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
   
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
  https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
   --
   View this message in context:
  http://www.nabble.com/DropDownChoice-confusion-tf3304232.html#a9191899
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
  -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
   opinions on IT  business topics through brief surveys-and earn cash
  
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  

Re: [Wicket-user] DropDownChoice confusion

2007-02-27 Thread Jason Roelofs

Now that actually makes sense. Yes, the dealing of models in Wicket has
thrown me a few times, and in the end is the main source of my frustration,
mainly because I've yet to find a page, a paper, something helping out
people like me who want to do the Rails way of development (for example).
Examples like this are exactly what that paper needs. The number one failing
of Wicket for me so far is that it pushes a new web development philosophy
but makes little to no effort to help people understand this new state of
mind, and I'm sure some, if not most of you here have been through this as
well.

Your example, Eelco, is amazingly verbose, but I can see how it works.
However, to Igor, what is wrong with a hard-coded list of values for a
select box? Why is my suggestion of doing it so wrong, or not fitting in the
Wicket philosophy?

Jason

On 2/27/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


Your case would be:

class Option {
  String key;
  String value;
  public Option(String key, String value) {
this.key = key;
this.value = value;
  }
}
add(new DropDownChoice(gated, model,  Arrays.asList(new Option[]{
new Option(, AND), new Option(|, OR) }), new
ChoiceRenderer(value, key));

Of course, the model has to reference an existing option.

Looking from the example you gave, your problem lies in how to work
with models. And this is a common thing for people new to Wicket. It
seems the obvious thing to do for people is to keep working with
Strings rather than full objects (like Option is), and rather then
putting the model central, do things like
myDropDownChoice.getModelValue().

If you encountered more components you didn't think were obvious, please
share.

Eelco

On 2/27/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 I'm sorry to hear you don't find the API as obvious. DropDownChoice
 seems to be one of the larger offenders usually, though there haven't
 been any good suggestions about how to improve this either. Speaking
 of which... patches and concrete suggestions are more helpful than
 rants as you can imagine. We're pretty open to suggestions in general.

 add(new DropDownChoice(gated, model, { {, AND}, {|, OR}});

 How would that work together with the model? Just set AND or OR as the
 model value?

 Eelco


 On 2/27/07, Jason Roelofs [EMAIL PROTECTED] wrote:
  Which of course makes perfect sense...
 
  I'm sorry if I come across as crash, it's because I'm very annoyed. I
  thought Wicket was the coolest Java framework out there, but now that
I've
  used it for 2 weeks on, I can't say that anymore. Every time I've
moved on
  to the next part of my website, it takes me 2+ hours to figure out
how, and
  I'm not talking about entire pages, I'm talking about components of
pages. A
  select, an Ajax-ified form, etc. Why do I have to deal with
  IChoiceRenderers? Besides how the documentation doesn't tell me how to
use
  the thing, nor do the examples explain how it works, just here ya go,
copy
  this. It just doesn't make sense.
 
  Back to the matter at hand, does anyone have example code using
  wicket-extensions Select and SelectOptions? There is absolutely NO
usage
  documentation on getting all that working together.
 
  Anyway, sorry about the rant, I'm just getting more disappointed with
Wicket
  in general. It may be different than other Java frameworks, but I
cannot say
  that it's any better. I like the idea, I like some of the
implementation of
  it (how Ajaxing components work, best I've seen), but using the
framework
  has been an exercise in frustration from day 2.
 
  So I'll head back to banging on the DropDownChoice, I'll get it
eventually,
  though I'm open for suggestions.
 
  Jason
 
 
  On 2/27/07, Robert Novotny [EMAIL PROTECTED] wrote:
  
   The DropDownChoice allows you to specify in one of its constructors
a
  custom
   implementation of IChoiceRenderer, which can be used to customize
the item
   IDs and labels. You may try to have a look on the IChoiceRenderer
and the
   ChoiceRenderer (which is its default implementation) JavaDoc.
  
  
   Jason Roelofs wrote:
   
Why is nothing in Wicket obvious?
   
I want:
   
select ...
  option value=AND/option
  option value=|OR/option
/select
   
My model has a 'gated' field that is either '' or '|'
   
Why can't I have:
   
add(new DropDownChoice(gated, model, {AND, OR},  {,
|});
   
or better yet:
   
add(new DropDownChoice(gated, model, { {, AND}, {|,
OR}});
   
(assuming properly created arrays, of course)?
   
How is this supposed to work?
   
Thanks
   
Jason
   
   
 
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share
your
opinions on IT  business topics through brief surveys-and earn
cash
   
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

Re: [Wicket-user] DropDownChoice confusion

2007-02-27 Thread Igor Vaynberg

On 2/27/07, Jason Roelofs [EMAIL PROTECTED] wrote:



Your example, Eelco, is amazingly verbose, but I can see how it works.
However, to Igor, what is wrong with a hard-coded list of values for a
select box? Why is my suggestion of doing it so wrong, or not fitting in the
Wicket philosophy?



did i say it was wrong? or doesnt fit with the philosophy?

i simply said it is not a very common usecase and we optimize core
components for what we think the most common usecases are

-igor



Jason


On 2/27/07, Eelco Hillenius [EMAIL PROTECTED] wrote:

 Your case would be:

 class Option {
   String key;
   String value;
   public Option(String key, String value) {
 this.key = key;
 this.value = value;
   }
 }
 add(new DropDownChoice(gated, model,   Arrays.asList(new Option[]{
 new Option(, AND), new Option(|, OR) }), new
 ChoiceRenderer(value, key));

 Of course, the model has to reference an existing option.

 Looking from the example you gave, your problem lies in how to work
 with models. And this is a common thing for people new to Wicket. It
 seems the obvious thing to do for people is to keep working with
 Strings rather than full objects (like Option is), and rather then
 putting the model central, do things like
 myDropDownChoice.getModelValue().

 If you encountered more components you didn't think were obvious, please
 share.

 Eelco

 On 2/27/07, Eelco Hillenius  [EMAIL PROTECTED] wrote:
  I'm sorry to hear you don't find the API as obvious. DropDownChoice
  seems to be one of the larger offenders usually, though there haven't
  been any good suggestions about how to improve this either. Speaking
  of which... patches and concrete suggestions are more helpful than
  rants as you can imagine. We're pretty open to suggestions in general.

 
  add(new DropDownChoice(gated, model, { {, AND}, {|, OR}});
 
  How would that work together with the model? Just set AND or OR as the

  model value?
 
  Eelco
 
 
  On 2/27/07, Jason Roelofs [EMAIL PROTECTED] wrote:
   Which of course makes perfect sense...
  
   I'm sorry if I come across as crash, it's because I'm very annoyed.
 I
   thought Wicket was the coolest Java framework out there, but now
 that I've
   used it for 2 weeks on, I can't say that anymore. Every time I've
 moved on
   to the next part of my website, it takes me 2+ hours to figure out
 how, and
   I'm not talking about entire pages, I'm talking about components of
 pages. A
   select, an Ajax-ified form, etc. Why do I have to deal with
   IChoiceRenderers? Besides how the documentation doesn't tell me how
 to use
   the thing, nor do the examples explain how it works, just here ya
 go, copy
   this. It just doesn't make sense.
  
   Back to the matter at hand, does anyone have example code using
   wicket-extensions Select and SelectOptions? There is absolutely NO
 usage
   documentation on getting all that working together.
  
   Anyway, sorry about the rant, I'm just getting more disappointed
 with Wicket
   in general. It may be different than other Java frameworks, but I
 cannot say
   that it's any better. I like the idea, I like some of the
 implementation of
   it (how Ajaxing components work, best I've seen), but using the
 framework
   has been an exercise in frustration from day 2.
  
   So I'll head back to banging on the DropDownChoice, I'll get it
 eventually,
   though I'm open for suggestions.
  
   Jason
  
  
   On 2/27/07, Robert Novotny [EMAIL PROTECTED] wrote:
   
The DropDownChoice allows you to specify in one of its
 constructors a
   custom
implementation of IChoiceRenderer, which can be used to customize
 the item
IDs and labels. You may try to have a look on the IChoiceRenderer
 and the
ChoiceRenderer (which is its default implementation) JavaDoc.
   
   
Jason Roelofs wrote:

 Why is nothing in Wicket obvious?

 I want:

 select ...
   option value=AND/option
   option value=|OR/option
 /select

 My model has a 'gated' field that is either '' or '|'

 Why can't I have:

 add(new DropDownChoice(gated, model, {AND, OR},  {,
 |});

 or better yet:

 add(new DropDownChoice(gated, model, { {, AND}, {|,
 OR}});

 (assuming properly created arrays, of course)?

 How is this supposed to work?

 Thanks

 Jason


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

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

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


   
--
View this message in context:
  
 

Re: [Wicket-user] DropDownChoice confusion

2007-02-27 Thread Eelco Hillenius
 Your example, Eelco, is amazingly verbose, but I can see how it works.

Hey, blame Java for that ok? Of course, if you only use strings you're
gonna be less verbose :) I tried to show that there is a relation
between the objects you work with through your model and how you would
use them in the dropdown component. Igor's example actually makes more
sense as he shows something that we're advocating all the time: write
custom components that fit your needs and code style. It's not that
hard, really, and the investment of writing such a component - like 10
minutes to get the one Igor made - saves you any further frustration
you might have with a particular component.

 want more docs want more docs

What else is new :) I've been working on Wicket In Action for over a
year now and I can tell you it's not a lot of fun to write
documentation. Not for me and I'm sure not for most coders. We try to
keep the examples as up-to-date and extensive as we can, and we have
multiple examples projects. That's the best we can/ want to at this
time, together with much appreciated contributions to the WIKI. I
recommend you buy Pro Wicket for 20 dollars or so.

Eelco

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


[Wicket-user] Absolute minimal Hello World sample not working

2007-02-27 Thread Chris Colman
I've tried to create an absolute minimal HelloWorld sample to run in
Tomcat. I plan to use wicket as an auxiliary rendering technology for an
existing webapp so to start off with I've attempted to add just the
barest minimum classes and HTML files from the HelloWorld example but
it's not working for some reason.

I've repackaged WicketExampleApplication.*, WicketExampleHeader.* and
WicketExamplePage.* to com.sas.av.ui.wicket.templates.

I've repackaged HelloWorld.* and HelloWorldApplication.* to
com.sas.av.ui.wicket.templates.original

I've updated all the internal package statements to reflect the new
packaging.

I've added to web.xml the Servlet and Servlet mapping elements required
to configure the new wicket HelloWorld app.

When I type http://dev.myhost/helloworld into my browser I get the
following error:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet
HelloWorldApplication threw exception

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)

org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAcc
essLogValve.java:495)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)

org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.j
ava:833)

org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.proce
ss(Http11AprProtocol.java:639)

org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
java.lang.Thread.run(Unknown Source)

root cause

wicket.WicketRuntimeException: Unable to create application of class
com.sas.av.ui.wicket.templates.original.HelloWorldApplication

wicket.protocol.http.ContextParamWebApplicationFactory.createApplication
(ContextParamWebApplicationFactory.java:68)
wicket.protocol.http.WicketServlet.init(WicketServlet.java:275)
javax.servlet.GenericServlet.init(GenericServlet.java:211)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)

org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAcc
essLogValve.java:495)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)

org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.j
ava:833)

org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.proce
ss(Http11AprProtocol.java:639)

org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
java.lang.Thread.run(Unknown Source)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.20 logs.

Any ideas?

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


Re: [Wicket-user] Absolute minimal Hello World sample not working

2007-02-27 Thread Eelco Hillenius
Ah, yeah. It's actually always a good idea to keep the libs in your
WEB-INF/libs dir, even if you reuse those in other web apps you might
have.

Eelco


On 2/27/07, Chris Colman [EMAIL PROTECTED] wrote:
 I found the problem: had to put the wicket jars in my web app's 'lib'
 directory and not in 'common/lib'.

 I think it's a class loader issue regarding deriving from a class that
 was loaded by a different class loader. I've experienced this problem
 before on another project (thank god! - otherwise it could have taken a
 lot longer to work out the cause).

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


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