Re: Using Include and placing pages under WEB-INF

2007-09-09 Thread Jason Mihalick

Ah, that's true, wicket takes care of resolving the URL and including the
content.  

I see your point.  My concern was for containers that don't explode the WAR
when deployed, but I think yours should work for that too, and it avoids the
subclass.

Thanks!



Jason Mihalick wrote:
 
 Thanks, yes, my solution was close to this, but I opted instead to
 subclass the Include class.  I think the solution that you propose below
 may cause wicket to create an absolute URL to the HTML files under the
 WEB-INF dir which will be inaccessible by the browser. /quote
 
 No. The URL is never sent to the browser. In fact, logically your code is
 exactly the same as mine.
 

-- 
View this message in context: 
http://www.nabble.com/Using-Include-and-placing-pages-under-WEB-INF-tf4403861.html#a12576277
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: First Day Disgust!

2007-09-09 Thread Eelco Hillenius
  and Java web applications (what is a war, what is a web.xml file).

 Wicket, being component based, has great appeal for people with
 non-web GUI experience only.

You're right about that. I included a link to a primer on Java web
applications in the Wiki
(http://cwiki.apache.org/confluence/display/WICKET/Index#Index-FrameworkDocumentation).
If you think we should include that link in other places, please
share.

Cheers,

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-09 Thread chickabee

Hi Wicketers, 

No doubt you guys are a vibrant community. It was nice listening to all the
rant and raves and jitters and it is even more exciting to see some positive 
action on this small but important issue.

I am for Wicket, so I criticized it to make it even more widely adaptable,
because wicket is a well thought out web framework.

I looked into Maven and did all the Quick-Start exercise, I have the
application up and running using Maven. Quick Start has following obvious
flaws:

1. It is based on Maven. (I am not apache community with 25 projects running
in parallel, I just want to make a small app using wicket. Maven is
overkill).
2. It favors Jetty. ( Why even say Jetty, pom.xml has jetty dependencies
defined. )
3. It depends on log4j. (Newer JDK have all the logging features needed. )
4. Advises the user to follow test driven development. (I want to be a bad
developer, is that okay?).

All above default integrations and suggestions are unnecessary and undermine
Wicket and make it less appealing to Non-Wicketers and possible adopters of
this great phenomenon. This is not the responsibility of the Wicket
community to tell people what they should use or should not use. It is the
decision of wicket end user if they want to integrate wicket with a
double-cheese-burger :-) then let them do it on their own, but certainly
Quick Start rather be as rudimentary as possible, take it as a marketing
trick to entice the people to use wicket and make them fall in love with
wicket at first sight.

Thank you all for listening.

===


Craig Tataryn wrote:
 
 FYI Chickabee, if you are using Netbeans and use the Wicket plugin it is
 bundled with some helpful sample apps.
 
 Craig.
 
 On 9/8/07, chickabee [EMAIL PROTECTED] wrote:


 Thanks for the great idea.

 It believe it will be good to put a few of the  examples application in
 their own folders and war files so that they can be studied independently
 without the clutter of 20 projects.

 Another thing I notice is that maven is  the default build tool used for
 wicket, I guess it will be good to provide the ant build.xml, just in
 case
 someone does not want full maven features.

 ---


 David Bernard-2 wrote:
 
  Welcome,
 
  If you want to start a blank project, try:
 
  $ mvn archetype:create -DarchetypeGroupId=org.apache.wicket
 -DarchetypeArtifactId=wicket-archetype-quickstart
 -DarchetypeVersion=1.3.0-beta3
 -DgroupId=com.mycompany
 -DartifactId=myproject
  $ cd myproject
  $ more pom.xml
 
  then in this project try (copy/paste) the samples from the website.
 
  /david
 
  chickabee wrote:
  Hi Wicketers,
 
  I tried wicket today and the example application was up and running on
  tomcat in no time, so that was the good part, after that if I like to
  create
  a sample application on my own then I found no easy way to start.
 
  Examples are good to browse through and tell about wicket
 capabilities,
  however,  not so good from learning point of view, All of the examples
  are
  glued together in one big jar file and it is just not quick enough to
  create
  a bare-bone application quickly and easily,
 
  I tried Quicket as mentioned in the readme file, however, Quickets is
  nothing but waste of time, because it is glued with Hibernate and
 Spring
  and
  both should not be there to start with.
 
  Not a good experience trying wicket so far, I guess it's the time to
 try
  out
  some more simpler app frameworks,
 
  -Thumbs Down to Wicket!
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/First-Day-Disgust%21-tf4405663.html#a12569195
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/First-Day-Disgust%21-tf4405663.html#a12576738
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Page Redirection (Login)

2007-09-09 Thread Karl M. Davis




Hello all,

Maybe it's just late but I'm pretty confused by how the following code
snippets are supposed to work and the differences between them:

  redirectToInterceptPage(new Login(getPage()));
  throw new RestartResponseAtInterceptPageException(new
Login(getPage()));
  setResponsePage(previousPage);
  continueToOriginalDestination();

What I'm trying to do is create a Login link on every page that will
return the user back to their current page on a successful login. I've
tried various combinations of all of the above snippets, but can't seem
to get it to work correctly. My last best guess was this:

onClick() method of Link in LoginPanel:
  public void onClick()
  {
   redirectToInterceptPage(new Login(getPage()));
  }

onSubmit() method of SignInForm on LoginPage:
  protected final void onSubmit()
  {
   super.onSubmit();
 ...
   if ( ... /* login was successful */)
   {
if (previousPage != null)
 setResponsePage(previousPage);
if (!continueToOriginalDestination())
 setResponsePage(getApplication().getHomePage());
   }
   else
   {
error("Unable to login.");
   }
  }

This leaves the user on the LoginPage when they successfully login.
I'm stumped: can anyone offer some advice or point me to where the
intricacies of all of those code snippets is explained?

Thanks!
Karl




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



NS_ERROR_NOT_AVAILABLE in FF 2.0.0.6

2007-09-09 Thread Artur W.

Hi!

I have a modal window. In this window there is a form and recount
button.
When user enters incorrect data and hit recount I want to refresh the form
and feedback panel inside it.

I added ValidatingBehavior to the recount button like this:

AjaxFormValidatingBehavior behavior = new 
AjaxFormValidatingBehavior(form,
onclick) {
protected void onError(AjaxRequestTarget target) {
target.addComponent(form);
}
};
recount.add(behavior);

It works in IE 7 but in FF 2.0.0.6 I've got an error:

INFO: Initiating Ajax POST request on
?wicket:interface=modal-dialog-pagemap:7:shortageForm:recount::IBehaviorListener:2:wicket:ignoreIfNotActive=truerandom=0.22862486812671723
INFO: Invoking pre-call handler(s)...
ERROR: Exception evaluating AJAX status: [Exception... Component returned
failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE)
[nsIXMLHttpRequest.status]  nsresult: 0x80040111 (NS_ERROR_NOT_AVAILABLE) 
location: JS frame ::
http://localhost:8080/manage/resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js
:: anonymous :: line 755  data: no]
ERROR: Received Ajax response with code: unavailable
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...

I use Wicket 1.3-beta3.

Thanks,
Artur


-- 
View this message in context: 
http://www.nabble.com/NS_ERROR_NOT_AVAILABLE-in-FF-2.0.0.6-tf4408389.html#a12576739
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: NS_ERROR_NOT_AVAILABLE in FF 2.0.0.6

2007-09-09 Thread Artur W.

When I removed AjaxFormValidatingBehavior and add onError directly to the
button it works ok both in ie and ff:

IndicatingAjaxButton recount = new 
IndicatingAjaxButton(recount, form) {
protected void onSubmit(AjaxRequestTarget target, Form 
form) {
[...]
}
protected void onError(AjaxRequestTarget target, Form 
form) {
target.addComponent(form);
}
};

Artur

-- 
View this message in context: 
http://www.nabble.com/NS_ERROR_NOT_AVAILABLE-in-FF-2.0.0.6-tf4408389.html#a12576933
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Component parent null after replace

2007-09-09 Thread Anthony Schexnaildre
I am trying to create a link that will replace one panel with another  
on the page. This seems as though it should be an easy task but after  
many attempts and searching the net for examples I have yet to get it  
working so the replacement can happen more than one without the  
component becoming orphaned. On the second replace attempt i get the  
following exception. Anyone have the solution?


Thank you,

Anthony


java.lang.IllegalStateException: This method can only be called on a  
component that has already been added to its parent.

 at org.apache.wicket.Component.replaceWith(Component.java:2266)
 at com.pinwise.pinbase.web.components.links.SecurePanelLink 
$4.onClick(SecurePanelLink.java:142)
 at org.apache.wicket.markup.html.link.Link.onLinkClicked 
(Link.java:222)

 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.wicket.RequestListenerInterface.invoke 
(RequestListenerInterface.java:186)



=

=

public UserPanel(String id) {
super(id);


UserFormPanel userFormPanel = new 
UserFormPanel(userFormPanel);
add( userFormPanel );

ListIColumn columns = new ArrayListIColumn();
final Model m = new Model(userFormPanel);
columns.add(new PropertyColumn(new Model(Actions), id)
{
			public void populateItem(Item cellItem, String componentId, final  
IModel model)

{
EditActionPanel panel = new 
EditActionPanel(componentId, model);
panel.add( SecurePanelLink.createSecurePanelLink( edit, m,  
UserFormPanel.class, model ) );

  cellItem.add( panel );
}
});

columns.add(new PropertyColumn(new Model(Username),  
username, username));
columns.add(new PropertyColumn(new Model(First Name),  
firstName, firstName));
columns.add(new PropertyColumn(new Model(Last Name),  
lastName, lastName));


add(new DefaultDataTable(table, columns, new  
SortableUserDataProvider(), 10));

}



SecurePanelLink

public class SecurePanelLink extends Link implements ISecureComponent {

/**
 *
 */
private static final long serialVersionUID = 1L;

protected IPanelLink panelLink;

/**
 * @param id
 * @param c
 */
public SecurePanelLink(String id, final Class c)
{
super(id);
// Ensure that c is a subclass of Panel
if (!Panel.class.isAssignableFrom(c))
{
			throw new IllegalArgumentException(Class  + c +  is not a  
subclass of Panel);

}

this.panelLink = createIPanelLink( id, c );
setSecurityCheck(new LinkSecurityCheck(this, c));
}

public SecurePanelLink(String id, final Class c, Model existingPanel)
{
super(id);
// Ensure that c is a subclass of Panel
if (!Panel.class.isAssignableFrom(c))
{
			throw new IllegalArgumentException(Class  + c +  is not a  
subclass of Panel);

}

this.panelLink = createIPanelLink( id, c );
setSecurityCheck(new LinkSecurityCheck(this, c));
}

private IPanelLink createIPanelLink( String id, final Class c ) {
return new IPanelLink()
{
private static final long serialVersionUID = 1L;

public Panel getPanel( String id )
{
// Create panel using panel factory
return getPanelFactory().newPanel(id, c );
}

public Panel getPanel( String id, IModel model)
{
// Create panel using panel factory
return getPanelFactory().newPanel(id, c, model);
}

public Panel getPanel( Panel panel, IModel model)
{
// Create panel using panel factory
return 
getPanelFactory().newPanel(panel.getId(), c, model);
}

public Class getPanelIdentity()
{
return c;
}
};
}

/**
 *
 */
	public static SecurePanelLink createSecurePanelLink( String id,  
Class clazz ) {

return new SecurePanelLink( id, clazz ) {
/**
 *
  

AW: Locating CSS under WEB-INF, please help

2007-09-09 Thread Stefan Lindner
Why don't you just put the following code into the head-part of your BasePage?

head
link rel=stylesheet type=text/css href=yourpath/your.css 
/
/head

Wicket does not touch thie header if it's the head in your BasePage. If you 
place some panels at your page and the panels should use their own css files 
you can make wicket add the panel's head to the main head section with

head
wicket:head
link rel=stylesheet type=text/css 
href=yourpath/yourpanel.css/
script language=JavaScript type=text/javascript 
src=yourpath/yourscript.js/script
/wicket:head

/head

 

-Ursprüngliche Nachricht-
Von: Jason Mihalick [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 9. September 2007 06:37
An: users@wicket.apache.org
Betreff: Locating CSS under WEB-INF, please help


I've been searching the forums and wiki on this half the night and I just can't 
figure out what I'm doing wrong here, so please bear with me if there
is an obvious answer to this.   

Wicket is not finding my css or js resources when the application is deployed.

I followed the wiki instructions for Wicket 1.3 on how to Control where HTML 
files are loaded from
(http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html#ControlwhereHTMLfilesareloadedfrom-InWicket1.3).
 
I have the following structure under WEB-INF:

WEB-INF/
+--- content/
   +--- css/
   +--- help/
   +--- img/
   +--- js/
   BasePage.html
   Page1.html
   Page2.html
   etc.
web.xml

In the init() method of my application class, I have added this code as per the 
wiki:

IResourceSettings resourceSettings = this.getResourceSettings();
resourceSettings.addResourceFolder( WEB-INF/content );  
resourceSettings.setResourceStreamLocator( new PathStripperLocator() );

My implementation of the PathStripperLocator class matches that found on the 
wiki.

When I view the source of Page1.html (which inherits from my BasePage) in my 
browser after wicket has served it, I see that Wicket is rewriting the location 
of the css resources as follows:

link href=../css/styles.css rel=stylesheet type=text/css/

I expected the href value to instead be css/styles.css (without the ../).

What do I need to do here in order to make this work?

Your help is greatly appreciated!

--
Jason


--
View this message in context: 
http://www.nabble.com/Locating-CSS-under-WEB-INF%2C-please-help-tf4408084.html#a12575952
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Invitation to Cocoon GetTogether 2007

2007-09-09 Thread Eelco Hillenius
On 9/8/07, Grzegorz Kossakowski [EMAIL PROTECTED] wrote:
 Hello Wicket devs and users!

 On behalf of Cocoon GetTogether organizers I would invite you to Cocoon GT 
 2007 that will take place
 in Rome, Italy this year!

 First two days are reserved for community meet up called Hackathon. Hackathon 
 is informal event
 which essential function is to have fun while developers are hacking their 
 favourite projects.

 All in all, GT is a great venue for you to spend few days out in a nice 
 location and hack around
 your Wicket stuff or help us hack Wicket into Cocoon as we already plan to do 
 so! :-)
 It is also a great chance for some cross-pollination and ideas sharing. We 
 are going to have really
 much fun, food, beers in a one big room.
 With fancy Wi-Fi connected table and a glass of italian wine?
 Then come Rome and join us!

 More details on http://www.cocoongt.org/

 --
 Grzegorz Kossakowski

Hey Grzegorz, thanks for inviting! If it wasn't on the other side of
the world, it would have been nice. I hope some Wicket people can make
it.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



About the QuickStart (was Re: First Day Disgust!)

2007-09-09 Thread Gwyn Evans
On Sunday, September 9, 2007, 8:55:35 AM, chickabee [EMAIL PROTECTED] wrote:

 I looked into Maven and did all the Quick-Start exercise, I have the
 application up and running using Maven. Quick Start has following obvious
 flaws:

 1. It is based on Maven. (I am not apache community with 25 projects running
 in parallel, I just want to make a small app using wicket. Maven is
 overkill).

  Really? I assume you're suggesting Ant as an alternative - Why don't
  you try documenting the steps you'd need to download the various
  jars and requirements and see which is simpler.

  No cheating by saying 'download a complete meta jar', as we don't
  want the extra work and legal issues involved in trying to
  redistribute third-party apps. You can/should avoid having the user
  re-download any jars that they might have used in other projects
  built with the same tool though.

  Remember your goal is to be simpler than 1) Install Maven, 2)
  Create project via mvn archetype ..., 3) Build  run project via
  mvn jetty:run.

 2. It favors Jetty. ( Why even say Jetty, pom.xml has jetty dependencies
 defined. )

  It includes a support class under src/test/java to help with
  debugging the web-app via an embedded Jetty instance, true. There's
  nothing that favours Jetty apart from that dedicated support class
  in the QuickStart, though.

 3. It depends on log4j. (Newer JDK have all the logging features needed. )

  The specific dependency in use in Wicket generally is actually the
  SLF4J framework, which allows/requires the end-user to choose the
  actual logging implementation.  For the QuickStart we used log4j, as
  most developers would be familiar with it but it's trivial to change
  - you do have to choose something, though.

 4. Advises the user to follow test driven development. (I want to be a bad
 developer, is that okay?).

  No comment...

 All above default integrations and suggestions are unnecessary and undermine
 Wicket and make it less appealing to Non-Wicketers and possible adopters of
 this great phenomenon.

  Without them, you don't get a running application with a 3 steps,
  one of which being to install Maven, which is the critical bit to
  convince people that yes, it /is/ that simple to get started!

/Gwyn


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CompressedResourceReference: can't get resource-url of static html in package

2007-09-09 Thread Eelco Hillenius
 YOU GUESS WHAT?!!
 I JUST RENAMED THE FILE TO dialogTable.htm AND NOW IT IS WORKING!!
 it is the fact of not being able to serve html-files!
 is there a way to change this behaviour or is it an absolute necessary
 security feature?

Yes, this *was* a security feature.The feature can be configured using
IResourceSettings#setPackageResourceGuard. Older versions of Wicket
blocked .html by default, but later we decided that was too much. Now
it only blocks .properties, .class and .java by default. So, like Kent
said, upgrade to a newer Wicket version and your problem is gone. Or
set a custom guard.

Btw, you can learn a lot from following the trace. Part of the error trace:

wicket.markup.html.PackageResource$PackageResourceBlockedException: package
resource wicket/extensions/markup/html/form/wysiwyg/res/dialogTable.html may
not be accessed
   at wicket.markup.html.PackageResource.init(PackageResource.java:489)
   at
wicket.markup.html.CompressedPackageResource.init(CompressedPackageResource.java:51)
...

if you look in the source of PackageResource, around line 489, you can see:

IPackageResourceGuard guard = 
Application.get().getResourceSettings()
.getPackageResourceGuard();
if (!guard.accept(scope, path))
{
throw new PackageResourceBlockedException(package 
resource  +
absolutePath +
 may not be accessed);
}


Don't be afraid of the code, it might save you time and annoyances :-)

If you are using Maven + Eclipse, you can put this in the build
section of your pom:

plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
configuration
downloadSourcestrue/downloadSources
/configuration
/plugin

so that mvn eclipse:eclipse will try to download any source jars
(Wicket is typically distributed with them) and make them available to
your projects. Maven plugins for other IDEs might have similar
facilities.

Regards,

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: DatePicker style in old Wicket 2.0

2007-09-09 Thread Stefan Lindner
I hope my css is loaded after the DatePicker css. When I override some styles 
of other wicket components (e.G. TabPanel) the changes take effect. Only the 
DatePicker is not affected. The DatePicker component seems to use it's default 
css because I did not specify any DatePicker css in my page header.
How can I control the order of css loading?

Regard
Stefan

-Ursprüngliche Nachricht-
Von: Martijn Dashorst [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 9. September 2007 11:59
An: users@wicket.apache.org
Betreff: Re: DatePicker style in old Wicket 2.0

Is your stylesheet loaded after the datepicker sheet?

Martijn

On 9/9/07, Stefan Lindner [EMAIL PROTECTED] wrote:
 Der wicket wizzards,

 how can I modify the look (e.g. the font-size) of the DatePicker popup 
 js-component? I try to override the css class (.calendar) in my own 
 css but this has no effect.

 Html-code like

 head
 link rel=stylesheet type=text/css
 href=MyOwnCalendarStyle.css/
 /head

 MyOwnCalendarStyle.css like

 .calendar {
 font-size:20px;
 }
 .calendar table {
 font-size:20px;
 }


 Can anybody help me?

 Regards, Stefan

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is 
released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: DatePicker style in old Wicket 2.0

2007-09-09 Thread Stefan Lindner
Problem is solved with a workaround. Thank you all. 

-Ursprüngliche Nachricht-
Von: Stefan Lindner [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 9. September 2007 12:26
An: users@wicket.apache.org
Betreff: RE: DatePicker style in old Wicket 2.0

I hope my css is loaded after the DatePicker css. When I override some styles 
of other wicket components (e.G. TabPanel) the changes take effect. Only the 
DatePicker is not affected. The DatePicker component seems to use it's default 
css because I did not specify any DatePicker css in my page header.
How can I control the order of css loading?

Regard
Stefan

-Ursprüngliche Nachricht-
Von: Martijn Dashorst [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 9. September 2007 11:59
An: users@wicket.apache.org
Betreff: Re: DatePicker style in old Wicket 2.0

Is your stylesheet loaded after the datepicker sheet?

Martijn

On 9/9/07, Stefan Lindner [EMAIL PROTECTED] wrote:
 Der wicket wizzards,

 how can I modify the look (e.g. the font-size) of the DatePicker popup 
 js-component? I try to override the css class (.calendar) in my own 
 css but this has no effect.

 Html-code like

 head
 link rel=stylesheet type=text/css
 href=MyOwnCalendarStyle.css/
 /head

 MyOwnCalendarStyle.css like

 .calendar {
 font-size:20px;
 }
 .calendar table {
 font-size:20px;
 }


 Can anybody help me?

 Regards, Stefan

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is 
released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: AW: Locating CSS under WEB-INF, please help

2007-09-09 Thread Stefan Lindner
You don't need the

 IResourceSettings resourceSettings = this.getResourceSettings();
 resourceSettings.addResourceFolder( WEB-INF/content );  
 resourceSettings.setResourceStreamLocator( new 

In your application. The path to your resource is the relative to the root of 
your war file. In your example:
If your style.css is at to level just write
head
wicket:head
link rel=stylesheet type=text/css href=style.css/
/wicket:head
/head

If your style.css is at
 WEB-INF/
 +--- content/
+--- css/
head
wicket:head
link rel=stylesheet type=text/css 
href=WEB-INF/content/css/style.css/
/wicket:head
/head

This works perfectly for me.


 WEB-INF/
 +--- content/
+--- css/
+--- help/
+--- img/
+--- js/
BasePage.html
Page1.html
Page2.html
etc.
 web.xml

-Ursprüngliche Nachricht-
Von: Jason Mihalick [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 9. September 2007 13:59
An: users@wicket.apache.org
Betreff: Re: AW: Locating CSS under WEB-INF, please help


Hi Stefan.  Thanks for the reply.  What you suggest is exactly what I have in 
my BasePage.html, which renders my css and js resources just fine when I point 
a browser directly at BasePage.html.  Is that what you meant by 
yourpath/your.css?

Here is my raw markup from BasePage.html:

head
meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
!--  Stylesheets --
link href=css/styles.cssrel=stylesheet 
type=text/css
/

titlePage Title/title
/head

For some reason, the Wicket runtime is changing the above href from 
css/styles.css to ../css/styles.css

Any other ideas?

Thanks,
Jason


Stefan Lindner wrote:
 
 Why don't you just put the following code into the head-part of your 
 BasePage?
 
   head
   link rel=stylesheet type=text/css href=yourpath/your.css 
 /
   /head
 
 Wicket does not touch thie header if it's the head in your BasePage. 
 If you place some panels at your page and the panels should use their 
 own css files you can make wicket add the panel's head to the main 
 head section with
 
   head
   wicket:head
   link rel=stylesheet type=text/css 
 href=yourpath/yourpanel.css/
   script language=JavaScript type=text/javascript
 src=yourpath/yourscript.js/script
   /wicket:head
 
   /head
 
  
 
 -Ursprüngliche Nachricht-
 Von: Jason Mihalick [mailto:[EMAIL PROTECTED]
 Gesendet: Sonntag, 9. September 2007 06:37
 An: users@wicket.apache.org
 Betreff: Locating CSS under WEB-INF, please help
 
 
 I've been searching the forums and wiki on this half the night and I 
 just can't figure out what I'm doing wrong here, so please bear with 
 me if there
 is an obvious answer to this.   
 
 Wicket is not finding my css or js resources when the application is 
 deployed.
 
 I followed the wiki instructions for Wicket 1.3 on how to Control 
 where HTML files are loaded from
 (http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html#ControlwhereHTMLfilesareloadedfrom-InWicket1.3).
  
 I have the following structure under WEB-INF:
 
 WEB-INF/
 +--- content/
+--- css/
+--- help/
+--- img/
+--- js/
BasePage.html
Page1.html
Page2.html
etc.
 web.xml
 
 In the init() method of my application class, I have added this code 
 as per the wiki:
 
 IResourceSettings resourceSettings = this.getResourceSettings();
 resourceSettings.addResourceFolder( WEB-INF/content );  
 resourceSettings.setResourceStreamLocator( new 
 PathStripperLocator() );
 
 My implementation of the PathStripperLocator class matches that found 
 on the wiki.
 
 When I view the source of Page1.html (which inherits from my BasePage) 
 in my browser after wicket has served it, I see that Wicket is 
 rewriting the location of the css resources as follows:
 
   link href=../css/styles.css rel=stylesheet type=text/css/
 
 I expected the href value to instead be css/styles.css (without the 
 ../).
 
 What do I need to do here in order to make this work?
 
 Your help is greatly appreciated!
 
 --
 Jason
 
 
 --
 View this message in context:
 http://www.nabble.com/Locating-CSS-under-WEB-INF%2C-please-help-tf4408
 084.html#a12575952 Sent from the Wicket - User mailing list archive at 
 Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
View this message in context: 
http://www.nabble.com/Locating-CSS-under-WEB-INF%2C-please-help-tf4408084.html#a12578151
Sent from the 

RE: Re: Re: Re: First Day Disgust!

2007-09-09 Thread David Leangen

 All the opinions above are my own; not the wicket community,
 not the developers of wicket.  I really, really wish that
 users of open source software would show more respect to
 the developers who put so much time and effort into the
 products that those users use, however.


I second this.

Again, I'd like to express my thanks to all the Wicket devs for such a great
framework, and all the great help and patience they consistently show on
this list.


Cheers to you all!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Page Redirection (Login)

2007-09-09 Thread Maurice Marrink
What you are describing only makes sense if the loginpanel is located
on the loginpage.

Typically the redirectToInterceptPage works by storing the current
page in the session before going to the new page, the stored page is
retrieved and set as the new destination when
continueToOriginalDestination is called.

Well at least that is how the exception works :)

Maurice

On 9/9/07, Karl M. Davis [EMAIL PROTECTED] wrote:

  Hello all,

  Maybe it's just late but I'm pretty confused by how the following code
 snippets are supposed to work and the differences between them:


 redirectToInterceptPage(new Login(getPage()));
 throw new RestartResponseAtInterceptPageException(new
 Login(getPage()));
 setResponsePage(previousPage);
 continueToOriginalDestination(); What I'm trying to do is
 create a Login link on every page that will return the user back to their
 current page on a successful login.  I've tried various combinations of all
 of the above snippets, but can't seem to get it to work correctly.  My last
 best guess was this:

  onClick() method of Link in LoginPanel:
  public void onClick()
  {
  redirectToInterceptPage(new Login(getPage()));
  }

  onSubmit() method of SignInForm on LoginPage:
  protected final void onSubmit()
  {
  super.onSubmit();
  ...
  if ( ... /* login was successful */)
  {
  if (previousPage != null)
  setResponsePage(previousPage);
  if (!continueToOriginalDestination())

 setResponsePage(getApplication().getHomePage());
  }
  else
  {
  error(Unable to login.);
  }
  }

  This leaves the user on the LoginPage when they successfully login.  I'm
 stumped: can anyone offer some advice or point me to where the intricacies
 of all of those code snippets is explained?

  Thanks!
  Karl

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: AW: Locating CSS under WEB-INF, please help

2007-09-09 Thread Jason Mihalick

If I remove this code:

IResourceSettings resourceSettings = this.getResourceSettings();
resourceSettings.addResourceFolder( WEB-INF/content );  
resourceSettings.setResourceStreamLocator( new 

then Wicket cannot find my pages (i.e., BasePage.html, Page1.html,
Page2.html), which are located under the content dir.  I.e., my pages are
located at:

WEB-INF/content/BasePage.html
WEB-INF/content/Page1.html
WEB-INF/content/Page2.html

Exception that I get:
WicketMessage: Markup of type 'html' for component
'com.x.ui.web.page.HomePage' not found. Enable debug messages for
org.apache.wicket.util.resource to get a list of all filenames tried:


I tried your suggestion below:
link rel=stylesheet type=text/css
href=WEB-INF/content/css/style.css/

and I still have the same problem.  The css resources are not resolved, and
Wicket is altering the link tag to this:

link rel=stylesheet type=text/css
href=../WEB-INF/content/css/styles.css/

Can you think of anything else that I should look at?

Thanks for the continued help.

--
Jason


Stefan Lindner wrote:
 
 You don't need the
 
 IResourceSettings resourceSettings = this.getResourceSettings();
 resourceSettings.addResourceFolder( WEB-INF/content );  
 resourceSettings.setResourceStreamLocator( new 
 
 In your application. The path to your resource is the relative to the root
 of your war file. In your example:
 If your style.css is at to level just write
   head
   wicket:head
   link rel=stylesheet type=text/css href=style.css/
   /wicket:head
   /head
 
 If your style.css is at
 WEB-INF/
 +--- content/
+--- css/
   head
   wicket:head
   link rel=stylesheet type=text/css
 href=WEB-INF/content/css/style.css/
   /wicket:head
   /head
 
 This works perfectly for me.
 
 
 WEB-INF/
 +--- content/
+--- css/
+--- help/
+--- img/
+--- js/
BasePage.html
Page1.html
Page2.html
etc.
 web.xml
 
 -Ursprüngliche Nachricht-
 Von: Jason Mihalick [mailto:[EMAIL PROTECTED] 
 Gesendet: Sonntag, 9. September 2007 13:59
 An: users@wicket.apache.org
 Betreff: Re: AW: Locating CSS under WEB-INF, please help
 
 
 Hi Stefan.  Thanks for the reply.  What you suggest is exactly what I have
 in my BasePage.html, which renders my css and js resources just fine when
 I point a browser directly at BasePage.html.  Is that what you meant by
 yourpath/your.css?
 
 Here is my raw markup from BasePage.html:
 
 head
   meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
   !--  Stylesheets --
   link href=css/styles.cssrel=stylesheet
 type=text/css
 /
 
 titlePage Title/title
 /head
 
 For some reason, the Wicket runtime is changing the above href from
 css/styles.css to ../css/styles.css
 
 Any other ideas?
 
 Thanks,
 Jason
 
 
 Stefan Lindner wrote:
 
 Why don't you just put the following code into the head-part of your 
 BasePage?
 
  head
  link rel=stylesheet type=text/css href=yourpath/your.css 
 /
  /head
 
 Wicket does not touch thie header if it's the head in your BasePage. 
 If you place some panels at your page and the panels should use their 
 own css files you can make wicket add the panel's head to the main 
 head section with
 
  head
  wicket:head
  link rel=stylesheet type=text/css 
 href=yourpath/yourpanel.css/
  script language=JavaScript type=text/javascript
 src=yourpath/yourscript.js/script
  /wicket:head
 
  /head
 
  
 
 -Ursprüngliche Nachricht-
 Von: Jason Mihalick [mailto:[EMAIL PROTECTED]
 Gesendet: Sonntag, 9. September 2007 06:37
 An: users@wicket.apache.org
 Betreff: Locating CSS under WEB-INF, please help
 
 
 I've been searching the forums and wiki on this half the night and I 
 just can't figure out what I'm doing wrong here, so please bear with 
 me if there
 is an obvious answer to this.   
 
 Wicket is not finding my css or js resources when the application is 
 deployed.
 
 I followed the wiki instructions for Wicket 1.3 on how to Control 
 where HTML files are loaded from
 (http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html#ControlwhereHTMLfilesareloadedfrom-InWicket1.3).
  
 I have the following structure under WEB-INF:
 
 WEB-INF/
 +--- content/
+--- css/
+--- help/
+--- img/
+--- js/
BasePage.html
Page1.html
Page2.html
etc.
 web.xml
 
 In the init() method of my application class, I have added this code 
 as per the wiki:
 
 IResourceSettings resourceSettings = this.getResourceSettings();
 resourceSettings.addResourceFolder( WEB-INF/content );  
 resourceSettings.setResourceStreamLocator( new 
 PathStripperLocator() );
 
 My implementation of the PathStripperLocator class matches that found 
 on the wiki.
 
 When 

Re: AW: Locating CSS under WEB-INF, please help

2007-09-09 Thread Korbinian Bachl

put your html files beside your java files:

e.g:

org/dummy/here
- MyPage.java
- MyPage.html

 I tried your suggestion below:
link rel=stylesheet type=text/css
 href=WEB-INF/content/css/style.css/

WEB-INF is NOT for public content! - usually you should put your css 
files either aside your htmland java files and supply an Resource or you 
put it on the root of your webapp and can access it from there (usually 
under Web Pages or any name you configured)


Regards


Jason Mihalick schrieb:

If I remove this code:

IResourceSettings resourceSettings = this.getResourceSettings();
resourceSettings.addResourceFolder( WEB-INF/content );  
resourceSettings.setResourceStreamLocator( new 


then Wicket cannot find my pages (i.e., BasePage.html, Page1.html,
Page2.html), which are located under the content dir.  I.e., my pages are
located at:

WEB-INF/content/BasePage.html
WEB-INF/content/Page1.html
WEB-INF/content/Page2.html

Exception that I get:
WicketMessage: Markup of type 'html' for component
'com.x.ui.web.page.HomePage' not found. Enable debug messages for
org.apache.wicket.util.resource to get a list of all filenames tried:


I tried your suggestion below:
link rel=stylesheet type=text/css
href=WEB-INF/content/css/style.css/

and I still have the same problem.  The css resources are not resolved, and
Wicket is altering the link tag to this:

link rel=stylesheet type=text/css
href=../WEB-INF/content/css/styles.css/

Can you think of anything else that I should look at?

Thanks for the continued help.

--
Jason


Stefan Lindner wrote:

You don't need the


IResourceSettings resourceSettings = this.getResourceSettings();
resourceSettings.addResourceFolder( WEB-INF/content );  
resourceSettings.setResourceStreamLocator( new 

In your application. The path to your resource is the relative to the root
of your war file. In your example:
If your style.css is at to level just write
head
wicket:head
link rel=stylesheet type=text/css href=style.css/
/wicket:head
/head

If your style.css is at

WEB-INF/
+--- content/
   +--- css/

head
wicket:head
link rel=stylesheet type=text/css
href=WEB-INF/content/css/style.css/
/wicket:head
/head

This works perfectly for me.



WEB-INF/
+--- content/
   +--- css/
   +--- help/
   +--- img/
   +--- js/
   BasePage.html
   Page1.html
   Page2.html
   etc.
web.xml

-Ursprüngliche Nachricht-
Von: Jason Mihalick [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 9. September 2007 13:59

An: users@wicket.apache.org
Betreff: Re: AW: Locating CSS under WEB-INF, please help


Hi Stefan.  Thanks for the reply.  What you suggest is exactly what I have
in my BasePage.html, which renders my css and js resources just fine when
I point a browser directly at BasePage.html.  Is that what you meant by
yourpath/your.css?

Here is my raw markup from BasePage.html:

head
meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
!--  Stylesheets --
link href=css/styles.cssrel=stylesheet
type=text/css
/

titlePage Title/title
/head

For some reason, the Wicket runtime is changing the above href from
css/styles.css to ../css/styles.css

Any other ideas?

Thanks,
Jason


Stefan Lindner wrote:
Why don't you just put the following code into the head-part of your 
BasePage?


head
link rel=stylesheet type=text/css href=yourpath/your.css 
/
/head

Wicket does not touch thie header if it's the head in your BasePage. 
If you place some panels at your page and the panels should use their 
own css files you can make wicket add the panel's head to the main 
head section with


head
wicket:head
link rel=stylesheet type=text/css 
href=yourpath/yourpanel.css/
script language=JavaScript type=text/javascript
src=yourpath/yourscript.js/script
/wicket:head

/head

 


-Ursprüngliche Nachricht-
Von: Jason Mihalick [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 9. September 2007 06:37
An: users@wicket.apache.org
Betreff: Locating CSS under WEB-INF, please help


I've been searching the forums and wiki on this half the night and I 
just can't figure out what I'm doing wrong here, so please bear with 
me if there
is an obvious answer to this.   

Wicket is not finding my css or js resources when the application is 
deployed.


I followed the wiki instructions for Wicket 1.3 on how to Control 
where HTML files are loaded from
(http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html#ControlwhereHTMLfilesareloadedfrom-InWicket1.3). 
I have the following structure under WEB-INF:


WEB-INF/
+--- content/
   +--- css/
   +--- help/
   +--- img/
   +--- js/
   BasePage.html
   Page1.html
  

Using @SpringBean - NoSuchMethodError

2007-09-09 Thread jweekend

1.3betae3

With no @SpringBean annotation, I can get to the HomePage.
When I put it back in (to inject the DAO, see below), and the
ComponentInjector gets called to do it job, I get:
 
--- Error ---
WicketMessage: Can't instantiate page using constructor public
com.sjw.HomePage(org.apache.wicket.PageParameters) and argument

Root cause:

java.lang.NoSuchMethodError:
org.apache.wicket.util.lang.Classes.isPrimitive(Ljava/lang/Class;)Z
at
org.apache.wicket.proxy.LazyInitProxyFactory.createProxy(LazyInitProxyFactory.java:122)
at
org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getFieldValue(AnnotProxyFieldValueFactory.java:98)
...

with the following simple set up: 

--- web.xml ---
?xml version=1.0 encoding=ISO-8859-1?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
display-namesjw1/display-name   
listener
listener-class
org.springframework.web.context.ContextLoaderListener
/listener-class
/listener
context-param
param-namecontextConfigLocation/param-name
param-valueclasspath:conf/applicationContext.xml/param-value
/context-param
servlet
servlet-namews/servlet-name
servlet-class
org.apache.wicket.protocol.http.WicketServlet
/servlet-class
init-param
param-nameapplicationFactoryClassName/param-name
param-value   
org.apache.wicket.spring.SpringWebApplicationFactory
/param-value
/init-param
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-namews/servlet-name
url-pattern/sjw1/*/url-pattern
/servlet-mapping  
/web-app

--- conf/applicationContext.xml ---
?xml version=1.0 encoding=UTF-8?
!DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN
http://www.springframework.org/dtd/spring-beans.dtd;
beans
bean id=wicketApplication class=com.sjw.WicketApplication/bean
!-- setup entity manager factory --
bean id=entityManagerFactory 
class=org.springframework.orm.jpa.LocalEntityManagerFactoryBean
/bean
bean id=e1Dao class=com.sjw.dao.E1Dao
property name=entityManagerFactory
ref local=entityManagerFactory /
/property
/bean 
/beans

 WicketApplication.java ---
public class WicketApplication extends WebApplication {
public Class getHomePage() {return HomePage.class;}
public ApplicationContext context() {return
WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext());
}
protected void init() {addComponentInstantiationListener(new
SpringComponentInjector(this, context()));  }
}

--- HomePage.java (partial) ---
public class HomePage extends WebPage { 
@SpringBean private E1Dao e1Dao;
public HomePage(final PageParameters parameters) {
...
-- 
View this message in context: 
http://www.nabble.com/Using-%40SpringBean---NoSuchMethodError-tf4409685.html#a12579776
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-09 Thread Igor Vaynberg
On 9/9/07, chickabee [EMAIL PROTECTED] wrote:



 1. It is based on Maven. (I am not apache community with 25 projects
 running
 in parallel, I just want to make a small app using wicket. Maven is
 overkill).


so write a quick ant script. the generated project itself has no
dependencies on maven

2. It favors Jetty. ( Why even say Jetty, pom.xml has jetty dependencies
 defined. )


notice they are scoped test, so not required at deploy time. the great
thing about jetty is this: you can quickly get your app running using mvn
jetty:jetty command if you want. but even better, when developing you dont
need to package your app into a war and deploy it - which are big time
wasting steps when you have to do them every ten minutes. instead simply
launch the included Start class and your app is up and running in seconds
and includes hotswap.

3. It depends on log4j. (Newer JDK have all the logging features needed. )


we prefer log4j because it is more flexible then jdklogging, but this is a
religious issue. all you have to do is remove the log4j jar and its slf4j
equivalent and dropin the slf4j jdk log impl jar.

4. Advises the user to follow test driven development. (I want to be a bad
 developer, is that okay?).


huh?


 All above default integrations and suggestions are unnecessary and
 undermine
 Wicket and make it less appealing to Non-Wicketers and possible adopters
 of
 this great phenomenon.


you know, you are the first who seem to think that, ever.  most new users
find themselves at home with the project and dependencies quickstart
generates.

-igor


This is not the responsibility of the Wicket
 community to tell people what they should use or should not use. It is the
 decision of wicket end user if they want to integrate wicket with a
 double-cheese-burger :-) then let them do it on their own, but certainly
 Quick Start rather be as rudimentary as possible, take it as a marketing
 trick to entice the people to use wicket and make them fall in love with
 wicket at first sight.

 Thank you all for listening.

 ===


 Craig Tataryn wrote:
 
  FYI Chickabee, if you are using Netbeans and use the Wicket plugin it is
  bundled with some helpful sample apps.
 
  Craig.
 
  On 9/8/07, chickabee [EMAIL PROTECTED] wrote:
 
 
  Thanks for the great idea.
 
  It believe it will be good to put a few of the  examples application in
  their own folders and war files so that they can be studied
 independently
  without the clutter of 20 projects.
 
  Another thing I notice is that maven is  the default build tool used
 for
  wicket, I guess it will be good to provide the ant build.xml, just in
  case
  someone does not want full maven features.
 
  ---
 
 
  David Bernard-2 wrote:
  
   Welcome,
  
   If you want to start a blank project, try:
  
   $ mvn archetype:create -DarchetypeGroupId=org.apache.wicket
  -DarchetypeArtifactId=wicket-archetype-quickstart
  -DarchetypeVersion=1.3.0-beta3
  -DgroupId=com.mycompany
  -DartifactId=myproject
   $ cd myproject
   $ more pom.xml
  
   then in this project try (copy/paste) the samples from the website.
  
   /david
  
   chickabee wrote:
   Hi Wicketers,
  
   I tried wicket today and the example application was up and running
 on
   tomcat in no time, so that was the good part, after that if I like
 to
   create
   a sample application on my own then I found no easy way to start.
  
   Examples are good to browse through and tell about wicket
  capabilities,
   however,  not so good from learning point of view, All of the
 examples
   are
   glued together in one big jar file and it is just not quick enough
 to
   create
   a bare-bone application quickly and easily,
  
   I tried Quicket as mentioned in the readme file, however, Quickets
 is
   nothing but waste of time, because it is glued with Hibernate and
  Spring
   and
   both should not be there to start with.
  
   Not a good experience trying wicket so far, I guess it's the time to
  try
   out
   some more simpler app frameworks,
  
   -Thumbs Down to Wicket!
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context:
  http://www.nabble.com/First-Day-Disgust%21-tf4405663.html#a12569195
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/First-Day-Disgust%21-tf4405663.html#a12576738
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL 

Re: Using @SpringBean - NoSuchMethodError

2007-09-09 Thread Martijn Dashorst
Did you try moving *all* wicket dependencies to SNAPSHOT?

You are now mixing snapshot with 1.3.0-beta3

Martijn

On 9/9/07, jweekend [EMAIL PROTECTED] wrote:

 Here's the pom.xml.
 Rergards - Cemal
 http://jWeekend.co.uk jWeekend.co.uk

 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;

 modelVersion4.0.0/modelVersion
 groupIdcom.mycompany/groupId
 artifactIdmyproject/artifactId
 packagingwar/packaging
 version1.0-SNAPSHOT/version
 !-- TODO project name  --
 namequickstart/name
 description/description

 !-- TODO
 organization
 namecompany name/name
 urlcompany url/url
 /organization
 --

 licenses
 license
 nameThe Apache Software License, Version 2.0/name
 
 urlhttp://www.apache.org/licenses/LICENSE-2.0.txt/url
 distributionrepo/distribution
 /license
 /licenses

 dependencies
 !--  WICKET DEPENDENCIES --
 dependency
 groupIdorg.apache.wicket/groupId
 artifactIdwicket/artifactId
 version${wicket.version}/version
 /dependency
 dependency
 groupIdorg.apache.wicket/groupId
 artifactIdwicket-extensions/artifactId
 version${wicket.version}/version
 /dependency
 dependency
 groupIdorg.apache.wicket/groupId
 artifactIdwicket-spring/artifactId
 version1.3.0-SNAPSHOT/version
 typejar/type
 scopecompile/scope
 exclusions
 exclusion
 groupIdcglib/groupId
 artifactIdcglib-nodep/artifactId
 /exclusion
 exclusion
 groupIdorg.springframework/groupId
 artifactIdspring/artifactId
 /exclusion
 /exclusions
 /dependency
 dependency
 groupIdorg.apache.wicket/groupId
 artifactIdwicket-spring-annot/artifactId
 version1.3.0-SNAPSHOT/version
 typejar/type
 scopecompile/scope
 /dependency


 !-- LOGGING DEPENDENCIES - LOG4J --
 dependency
 groupIdorg.slf4j/groupId
 artifactIdslf4j-log4j12/artifactId
 version1.0.1/version
 /dependency
 dependency
 groupIdlog4j/groupId
 artifactIdlog4j/artifactId
 version1.2.14/version
 /dependency
 !--  JETTY DEPENDENCIES FOR TESTING  --
 dependency
 groupIdorg.mortbay.jetty/groupId
 artifactIdjetty/artifactId
 version${jetty.version}/version
 scopeprovided/scope
 /dependency
 dependency
 groupIdorg.mortbay.jetty/groupId
 artifactIdjetty-util/artifactId
 version${jetty.version}/version
 scopeprovided/scope
 /dependency
 dependency
 groupIdorg.mortbay.jetty/groupId
 artifactIdjetty-management/artifactId
 version${jetty.version}/version
 scopeprovided/scope
 /dependency
 !-- SPRING --
 dependency
 groupIdorg.springframework/groupId
 artifactIdspring/artifactId
 version2.0.1/version
 /dependency
 !-- JPA: HIBERNATE --
 dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate-annotations/artifactId
 version3.2.1.ga/version
 /dependency
 dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate-entitymanager/artifactId
 version3.2.1.ga/version
 /dependency
 

Re: Component parent null after replace

2007-09-09 Thread Igor Vaynberg
heh, seems a lot of people run into it. the short is that you have to do
this:

lets say you have a ref to the panel: private Panel panel;

what you do is this:
panel.replaceWith(new Panel());

and then later again
panel.replaceWith(new Panel());

^ the second time will fail beause you have removed panel from hierarchy
already - you replaced it with another panel.

the proper way to do it is to keep the reference up to date, so
Panel temp=new Panel();
panel.replaceWith(temp);
panel=temp;

that way when it happens the second time it will properly act on the new
panel that is inside the hierarchy now.

-igor




On 9/9/07, Anthony Schexnaildre [EMAIL PROTECTED] wrote:

 I am trying to create a link that will replace one panel with another
 on the page. This seems as though it should be an easy task but after
 many attempts and searching the net for examples I have yet to get it
 working so the replacement can happen more than one without the
 component becoming orphaned. On the second replace attempt i get the
 following exception. Anyone have the solution?

 Thank you,

 Anthony


 java.lang.IllegalStateException: This method can only be called on a
 component that has already been added to its parent.
   at org.apache.wicket.Component.replaceWith(Component.java:2266)
   at com.pinwise.pinbase.web.components.links.SecurePanelLink
 $4.onClick(SecurePanelLink.java:142)
   at org.apache.wicket.markup.html.link.Link.onLinkClicked
 (Link.java:222)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.wicket.RequestListenerInterface.invoke
 (RequestListenerInterface.java:186)


 =

 =

 public UserPanel(String id) {
 super(id);


 UserFormPanel userFormPanel = new
 UserFormPanel(userFormPanel);
 add( userFormPanel );

 ListIColumn columns = new ArrayListIColumn();
 final Model m = new Model(userFormPanel);
  columns.add(new PropertyColumn(new Model(Actions), id)
  {
 public void populateItem(Item cellItem, String
 componentId, final
 IModel model)
  {
 EditActionPanel panel = new
 EditActionPanel(componentId, model);
 panel.add(
 SecurePanelLink.createSecurePanelLink( edit, m,
 UserFormPanel.class, model ) );
cellItem.add( panel );
  }
  });

  columns.add(new PropertyColumn(new Model(Username),
 username, username));
  columns.add(new PropertyColumn(new Model(First Name),
 firstName, firstName));
  columns.add(new PropertyColumn(new Model(Last Name),
 lastName, lastName));

  add(new DefaultDataTable(table, columns, new
 SortableUserDataProvider(), 10));
 }


 
 SecurePanelLink
 
 public class SecurePanelLink extends Link implements ISecureComponent {

 /**
  *
  */
 private static final long serialVersionUID = 1L;

 protected IPanelLink panelLink;

 /**
  * @param id
  * @param c
  */
 public SecurePanelLink(String id, final Class c)
 {
 super(id);
 // Ensure that c is a subclass of Panel
 if (!Panel.class.isAssignableFrom(c))
 {
 throw new IllegalArgumentException(Class  + c +
  is not a
 subclass of Panel);
 }

 this.panelLink = createIPanelLink( id, c );
 setSecurityCheck(new LinkSecurityCheck(this, c));
 }

 public SecurePanelLink(String id, final Class c, Model
 existingPanel)
 {
 super(id);
 // Ensure that c is a subclass of Panel
 if (!Panel.class.isAssignableFrom(c))
 {
 throw new IllegalArgumentException(Class  + c +
  is not a
 subclass of Panel);
 }

 this.panelLink = createIPanelLink( id, c );
 setSecurityCheck(new LinkSecurityCheck(this, c));
 }

 private IPanelLink createIPanelLink( String id, final Class c ) {
 return new IPanelLink()
 {
 private static final long serialVersionUID = 1L;

 public Panel getPanel( String id )
 {
 // Create panel using panel factory
 return getPanelFactory().newPanel(id, c );
 }

 public Panel getPanel( String id, IModel model)
 {
 // Create panel using panel factory
 return getPanelFactory().newPanel(id, c,
 model);
  

[Wicket] Vs [HTTP 404 - File not found]

2007-09-09 Thread chickabee

Hi Guys, 

What is the preferred strategy for  customization of error page under HTTP
404 - File not found  situations, any helpful pointer will be appreciated.

At present i have used error directive in web.xml and I wonder how should i
go about it, if i want to handle this from within wicket.

Thanks


-- 
View this message in context: 
http://www.nabble.com/-Wicket--Vs---HTTP-404---File-not-found--tf4409883.html#a12580317
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Locating CSS under WEB-INF, please help

2007-09-09 Thread Igor Vaynberg
oi. the basic problem is that WEB-INF is inaccessible via direct urls. this
is because it houses stuff like classes and you dont want the user to have
access to those.

so there is a way to make it work, but it will involve wicket or another
servlet streaming those static resources, which is a lot of overhead.

my suggestion is to move all the css/js/foo out of WEB-INF

-igor


On 9/8/07, Jason Mihalick [EMAIL PROTECTED] wrote:


 I've been searching the forums and wiki on this half the night and I just
 can't figure out what I'm doing wrong here, so please bear with me if
 there
 is an obvious answer to this.

 Wicket is not finding my css or js resources when the application is
 deployed.

 I followed the wiki instructions for Wicket 1.3 on how to Control where
 HTML files are loaded from
 (
 http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html#ControlwhereHTMLfilesareloadedfrom-InWicket1.3
 ).
 I have the following structure under WEB-INF:

 WEB-INF/
 +--- content/
+--- css/
+--- help/
+--- img/
+--- js/
BasePage.html
Page1.html
Page2.html
etc.
 web.xml

 In the init() method of my application class, I have added this code as
 per
 the wiki:

 IResourceSettings resourceSettings = this.getResourceSettings();
 resourceSettings.addResourceFolder( WEB-INF/content );
 resourceSettings.setResourceStreamLocator( new PathStripperLocator()
 );

 My implementation of the PathStripperLocator class matches that found on
 the
 wiki.

 When I view the source of Page1.html (which inherits from my BasePage) in
 my
 browser after wicket has served it, I see that Wicket is rewriting the
 location of the css resources as follows:

 link href=../css/styles.css rel=stylesheet type=text/css/

 I expected the href value to instead be css/styles.css (without the
 ../).

 What do I need to do here in order to make this work?

 Your help is greatly appreciated!

 --
 Jason


 --
 View this message in context:
 http://www.nabble.com/Locating-CSS-under-WEB-INF%2C-please-help-tf4408084.html#a12575952
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




modal window rendering not quite smooth

2007-09-09 Thread Gumnaam

has any one noticed that the modal window when opens up ,
shows the contents of the parent page, before showing it's actual content.
The time for which it shows parent page's content depends on how much
time it takes to fetch it's content via ajax.
Is it possible to show a busy indicator in the modal window, while it 
fetches

the contents, rather than showing parent pages content ?

thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to force a delete (from disk) of the session from the session store?

2007-09-09 Thread Chris Lintz

Interesting.  I was using session.invalidateNow() which did not remove it
from disk.  But session.invalidate() worked like a charm.  Should
session.invalidateNow() also remove the session from disk immediately?

thanks for your help


Eelco Hillenius wrote:
 
 Chris Lintz wrote:
 
  Hi,
  When a user logouts of the site, i want to kill the session and have it
 be
  removed from disk immediately.  I have extended WebSession properly,
 but
  no methods on the WebSession class seem to do the trick for me.
 
  Is there a way to to trigger the removal of the session cleanly from
 disk
  via the SessionStore or some other approach?
 

 I think this is done automatically when you call session.invalidate().
 
 Yep, that should do the trick.
 
 Eelco
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-force-a-delete-%28from-disk%29-of-the-session-from-the-session-store--tf4404925.html#a12580502
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-09 Thread Jonathan Locke


oh yeah, netbeans to the rescue!

btw, tim and i have been good friends since the 4th grade.


Ayodeji Aladejebi wrote:
 
 hey chickabee,
 
 am concerned for people like you and what you are missing so i have
 decided
 to help you so you wont find yourself in some
 my help only works if you use Netbeans6 though, its free for download
 already
 
 I have checked out and built wicket support for netbeans from
 http://blogs.sun.com/geertjan/entry/when_boudreau_met_wicket
 
 if you have NB6 installed already,
 
 install these two NB modules, create a WebApplication Project in NB and
 you
 will have a ready sample application that runs fine and contains all the
 artifacts you need to build without errors
 
 Download and install this module into NB6
 http://www.dabarobjects.com/downloads/org-netbeans-modules-web-wicket.nbm
 Download and install this module in Netbeans6
 http://www.dabarobjects.com/downloads/org-netbeans-modules-wicket-library.nbm
 
 start netbeans, create a new Web Application Project, Select Wicket 1.2
 and
 then BOOM! everything is ready to go
 and you should be in the wicket business. it does not get simpler
 
 my 2 cent
 
 On 9/9/07, Florian Sperber [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Jonathan Locke schrieb:
 
  do my homework for me now or i will continue mock your miserable web
  framework!

 the funny thing is, that you already did the homework for all of us :-)

 I really like wicket, the concepts behind it, the wiki (which already
 covers much ground), the examples (my often life savers) and the
 community which is great.

 In my opinion it is not the job of the developers to provide EVERYTHING
 anyone could possibly need, it's the job of the user to invest time to
 solve the problems. And as this list has already proven, if politely
 asked most problems are solved in minutes.


 Kind regards,
 Florian Sperber

 P.S. The purpose of this mail is mainly to show that some people still
 DO LIKE your work ;-)
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (Darwin)

 iD8DBQFG48OQTJfKjmvEjHwRArXKAJ93nrKA3d5vlPAIAicb1IcLVpZVsgCdGOo2
 xA4EG/vSoqNpCI8F5jrB1Ro=
 =oB9U
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/First-Day-Disgust%21-tf4405663.html#a12580507
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WebMarkupContainer without template markup

2007-09-09 Thread Scott Swank
We're choosing an item from a list and then using ajax to populate a
view of the item, together with a listview of purchasable details.
For any given item there may or may not be images.  Either managing
the relevant components in a page-level collection or using a visitor
to find them works.  The key to the solution is:

1. they are all in a panel
2. that panel must be an ajax target
3. the logic to determine whether they are visible must be in the
onbeforereneder method of that panel

Thanks all.

- Scott

On 9/8/07, Ryan Holmes [EMAIL PROTECTED] wrote:

 On Sep 7, 2007, at 8:52 PM, Carlos Pita wrote:

  You can also make the components to hide implement some listener (or
  just marker) interface X and then do a visitChildren traversal from
  page.onBeforeRender as follows:
 
  visitChildren(X.class, new IVisitor() {
public Object component(Component component) {
  comp.setVisible(your visibility logic here);
}
  });
 
  This is less centralized that keeping a list at the top level, if you
  care about this.
 
  Regards,
  Carlos
 
 

 Damn. I just now recommended the same thing. Sorry, didn't notice
 your post.

 This approach definitely seems cleaner than managing a list of
 component references -- I wonder if it works for Scott...

 -Ryan

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Scott Swank
reformed mathematician

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Component parent null after replace

2007-09-09 Thread Maurice Marrink
Allow me to hijack this topic because my eye sees the magic word
ISecureComponent :D

Glad to come across another user of Wasp and Swarm. Any comments /
questions about them?

Maurice

On 9/9/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 heh, seems a lot of people run into it. the short is that you have to do
 this:

 lets say you have a ref to the panel: private Panel panel;

 what you do is this:
 panel.replaceWith(new Panel());

 and then later again
 panel.replaceWith(new Panel());

 ^ the second time will fail beause you have removed panel from hierarchy
 already - you replaced it with another panel.

 the proper way to do it is to keep the reference up to date, so
 Panel temp=new Panel();
 panel.replaceWith(temp);
 panel=temp;

 that way when it happens the second time it will properly act on the new
 panel that is inside the hierarchy now.

 -igor




 On 9/9/07, Anthony Schexnaildre [EMAIL PROTECTED] wrote:
 
  I am trying to create a link that will replace one panel with another
  on the page. This seems as though it should be an easy task but after
  many attempts and searching the net for examples I have yet to get it
  working so the replacement can happen more than one without the
  component becoming orphaned. On the second replace attempt i get the
  following exception. Anyone have the solution?
 
  Thank you,
 
  Anthony
 
 
  java.lang.IllegalStateException: This method can only be called on a
  component that has already been added to its parent.
at org.apache.wicket.Component.replaceWith(Component.java:2266)
at com.pinwise.pinbase.web.components.links.SecurePanelLink
  $4.onClick(SecurePanelLink.java:142)
at org.apache.wicket.markup.html.link.Link.onLinkClicked
  (Link.java:222)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.wicket.RequestListenerInterface.invoke
  (RequestListenerInterface.java:186)
 
 
  =
 
  =
 
  public UserPanel(String id) {
  super(id);
 
 
  UserFormPanel userFormPanel = new
  UserFormPanel(userFormPanel);
  add( userFormPanel );
 
  ListIColumn columns = new ArrayListIColumn();
  final Model m = new Model(userFormPanel);
   columns.add(new PropertyColumn(new Model(Actions), id)
   {
  public void populateItem(Item cellItem, String
  componentId, final
  IModel model)
   {
  EditActionPanel panel = new
  EditActionPanel(componentId, model);
  panel.add(
  SecurePanelLink.createSecurePanelLink( edit, m,
  UserFormPanel.class, model ) );
 cellItem.add( panel );
   }
   });
 
   columns.add(new PropertyColumn(new Model(Username),
  username, username));
   columns.add(new PropertyColumn(new Model(First Name),
  firstName, firstName));
   columns.add(new PropertyColumn(new Model(Last Name),
  lastName, lastName));
 
   add(new DefaultDataTable(table, columns, new
  SortableUserDataProvider(), 10));
  }
 
 
  
  SecurePanelLink
  
  public class SecurePanelLink extends Link implements ISecureComponent {
 
  /**
   *
   */
  private static final long serialVersionUID = 1L;
 
  protected IPanelLink panelLink;
 
  /**
   * @param id
   * @param c
   */
  public SecurePanelLink(String id, final Class c)
  {
  super(id);
  // Ensure that c is a subclass of Panel
  if (!Panel.class.isAssignableFrom(c))
  {
  throw new IllegalArgumentException(Class  + c +
   is not a
  subclass of Panel);
  }
 
  this.panelLink = createIPanelLink( id, c );
  setSecurityCheck(new LinkSecurityCheck(this, c));
  }
 
  public SecurePanelLink(String id, final Class c, Model
  existingPanel)
  {
  super(id);
  // Ensure that c is a subclass of Panel
  if (!Panel.class.isAssignableFrom(c))
  {
  throw new IllegalArgumentException(Class  + c +
   is not a
  subclass of Panel);
  }
 
  this.panelLink = createIPanelLink( id, c );
  setSecurityCheck(new LinkSecurityCheck(this, c));
  }
 
  private IPanelLink createIPanelLink( String id, final Class c ) {
  return new IPanelLink()
  {
  private static final long serialVersionUID = 1L;
 
  public Panel getPanel( String id )
  {
  // Create panel using 

Re: Disable the SecondLevelPageCache?

2007-09-09 Thread Sean Sullivan
On 9/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote:

 [...] Also thanks to Matej who recently
 added a very, very optimized page store variant, *and* contributed an
 efficient page store that can be used in a cluster.

Which page store class are you referring to?

org.apache.wicket.protocol.http.pagestore.DiskPageStore or something else?


Sean

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using @SpringBean - NoSuchMethodError

2007-09-09 Thread jweekend

Martijn,
Good spot, thanks. The exclusions (copied from the phonebook pom.xml)
probably didn't help, in this case, to keep things clearer. 
If the eclipse targets are deleted (properly cleaned) _and_ the library
versions are consistent in the pom before the build/run it all works fine.
FYI, I retested with 1.3beta2, 1.3beta3 and SNAPSHOT - all good.
Regards - Cemal
http://jWeekend.co.uk jWeekend.co.uk 


Martijn Dashorst wrote:
 
 Did you try moving *all* wicket dependencies to SNAPSHOT?
 
 You are now mixing snapshot with 1.3.0-beta3
 
 Martijn
 
 On 9/9/07, jweekend [EMAIL PROTECTED] wrote:

 Here's the pom.xml.
 Rergards - Cemal
 http://jWeekend.co.uk jWeekend.co.uk

 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;

 modelVersion4.0.0/modelVersion
 groupIdcom.mycompany/groupId
 artifactIdmyproject/artifactId
 packagingwar/packaging
 version1.0-SNAPSHOT/version
 !-- TODO project name  --
 namequickstart/name
 description/description

 !-- TODO
 organization
 namecompany name/name
 urlcompany url/url
 /organization
 --

 licenses
 license
 nameThe Apache Software License, Version
 2.0/name

 urlhttp://www.apache.org/licenses/LICENSE-2.0.txt/url
 distributionrepo/distribution
 /license
 /licenses

 dependencies
 !--  WICKET DEPENDENCIES --
 dependency
 groupIdorg.apache.wicket/groupId
 artifactIdwicket/artifactId
 version${wicket.version}/version
 /dependency
 dependency
 groupIdorg.apache.wicket/groupId
 artifactIdwicket-extensions/artifactId
 version${wicket.version}/version
 /dependency
 dependency
 groupIdorg.apache.wicket/groupId
 artifactIdwicket-spring/artifactId
 version1.3.0-SNAPSHOT/version
 typejar/type
 scopecompile/scope
 exclusions
 exclusion
 groupIdcglib/groupId

 artifactIdcglib-nodep/artifactId
 /exclusion
 exclusion

 groupIdorg.springframework/groupId
 artifactIdspring/artifactId
 /exclusion
 /exclusions
 /dependency
 dependency
 groupIdorg.apache.wicket/groupId
 artifactIdwicket-spring-annot/artifactId
 version1.3.0-SNAPSHOT/version
 typejar/type
 scopecompile/scope
 /dependency


 !-- LOGGING DEPENDENCIES - LOG4J --
 dependency
 groupIdorg.slf4j/groupId
 artifactIdslf4j-log4j12/artifactId
 version1.0.1/version
 /dependency
 dependency
 groupIdlog4j/groupId
 artifactIdlog4j/artifactId
 version1.2.14/version
 /dependency
 !--  JETTY DEPENDENCIES FOR TESTING  --
 dependency
 groupIdorg.mortbay.jetty/groupId
 artifactIdjetty/artifactId
 version${jetty.version}/version
 scopeprovided/scope
 /dependency
 dependency
 groupIdorg.mortbay.jetty/groupId
 artifactIdjetty-util/artifactId
 version${jetty.version}/version
 scopeprovided/scope
 /dependency
 dependency
 groupIdorg.mortbay.jetty/groupId
 artifactIdjetty-management/artifactId
 version${jetty.version}/version
 scopeprovided/scope
 /dependency
 !-- SPRING --
 dependency
 groupIdorg.springframework/groupId
 artifactIdspring/artifactId
 version2.0.1/version
 /dependency
 !-- JPA: HIBERNATE --
 

quechup.com spam

2007-09-09 Thread Carlos Pita
Hola / Hi,

queria pedir disculpas y advertir a todo aquel que haya recibido una
invitacion mia para quechup.com. Yo me registre por una invitacion que
a mi vez recibi de un contacto de confianza, sin prestar demasiada
atencion al procedimiento y sin saber muy bien de que se trataba. En
determinado paso, la registracion brinda la posibilidad de averiguar
que contactos de gmail se encuentran ya registrados en el sitio, y es
claro que luego usan de mala fe los contactos importados para spamear
(http://groups.google.es/group/Gmail-Users/browse_thread/thread/656ae3699f1c06d1).
Hecho el descargo, proceda cada uno a su criterio respecto de la
invitacion.


I would like to apologize to and warn everyone that has recently
received an invitation from mine to join quechup.com. I registered
myself because of an invitation that I got from a trusted contact,
without paying a lot of attention to the registration procedure and
without a solid understanding of what quechup.com was about. At some
step in the registration, they offer you the chance to find out which
of your gmail contacts are already quechup members, and it's pretty
obvious that afterwards they act in bad faith using this information
to spam you contacts with new invitations
(http://groups.google.es/group/Gmail-Users/browse_thread/thread/656ae3699f1c06d1).
That said, act according to your own will regarding the invitation, of
course.

Saludos / Regards,
Carlos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Google Crawl

2007-09-09 Thread Sam Hough

I doubt Google will like the query string part of that URL. Have you looked
at the other URL schemes? I think the answer is that you do need to make
your pages bookmarkable so Google has something to put in its index. It may
only be seeing the bit before the query string so all your pages look the
same to it.

Anything that it is possible to map from a normal URL to page state should
be bookmarkable so nothing intrinsic to a tabbed panel should stop you.

The naming schemes you use for your URLs is worth putting a lot of thought
into as once they are in Google it may take a very long time to shift...
Never mind users bookmarks. Keep them as elegant and concise as possible so
you don't need to change the plan you adopt now.


Sam Lewis-2 wrote:
 
 Hi all,
 
 I have created a website using wicket http://www.javamix.co.uk but the
 google crawler doesn't make it past the first page. Has anyone got any
 experience getting the google bot to crawl an entire wicket site?
 Google Webmaster tools reports a 404 error on the page:
 http://www.javamix.co.uk/app/?wicket:interface=:0:1:::
 Do I need to make all my links bookmarkable? I am not sure if this is even
 possible as I use a TabbedPanel and PageableListView.
 
 Any help is much appreciated
 
 Thanks for reading
 
 Sam Lewis
 
 

-- 
View this message in context: 
http://www.nabble.com/Google-Crawl-tf4410293.html#a12582066
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Google Crawl

2007-09-09 Thread Eelco Hillenius
On 9/9/07, Sam Hough [EMAIL PROTECTED] wrote:

 I doubt Google will like the query string part of that URL. Have you looked
 at the other URL schemes? I think the answer is that you do need to make
 your pages bookmarkable so Google has something to put in its index. It may
 only be seeing the bit before the query string so all your pages look the
 same to it.

 Anything that it is possible to map from a normal URL to page state should
 be bookmarkable so nothing intrinsic to a tabbed panel should stop you.

 The naming schemes you use for your URLs is worth putting a lot of thought
 into as once they are in Google it may take a very long time to shift...
 Never mind users bookmarks. Keep them as elegant and concise as possible so
 you don't need to change the plan you adopt now.

Sam is right. I think this is something we should communicate more
loudly maybe. The thing is, most of the people who work on Wicket work
on apps where a user logs in and then accesses the rest of the
application. Bookmark-ability is only for convenience then. However,
if you are designing a public facing site, you should really be aware
of bookmarkability, and either shield parts of your site for crawlers
or make sure everything is bookmarkable. Unfortunately, this has an
effect on your programming model. Like you said, tabbed panel and
pageablelist are components that are not bookmarkable by default, so
you'd have to code such functionality in alternative ways. You're
basically back to a page based approach.

Regards,

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Disable the SecondLevelPageCache?

2007-09-09 Thread Eelco Hillenius
On 9/9/07, Sean Sullivan [EMAIL PROTECTED] wrote:
 On 9/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  [...] Also thanks to Matej who recently
  added a very, very optimized page store variant, *and* contributed an
  efficient page store that can be used in a cluster.

 Which page store class are you referring to?

 org.apache.wicket.protocol.http.pagestore.DiskPageStore or something else?

I am referring to
org.apache.wicket.cluster.pagestore.ClusteredDiskPageStore, which is
in 
http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-jetty-cluster-pagestore
and that needs 
http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-jetty-cluster

Like you can see from the name, it is very specifically written for
Jetty, at least right now. We'll probably be working on this in the
next few weeks, and we might move it to e.g. a google code project
when we split it up in more projects.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Google Crawl

2007-09-09 Thread Martijn Dashorst
/me makes mental note for chapters 6 and 8 in the book


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/


Re: Google Crawl

2007-09-09 Thread Sam Lewis
Thanks for your responses.

I should of thought about this issue before I developed the site with wicket
;-) i just wanted to try something new.

I will investigate the other url schemes but i think everything should be
bookmarkable. It should be easy to refactor my tabs into pages and I suppose
I can refactor the the PageableListView to a ListView and use a page number
parameter like the good old days.

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

 On 9/9/07, Sam Hough [EMAIL PROTECTED] wrote:
 
  I doubt Google will like the query string part of that URL. Have you
 looked
  at the other URL schemes? I think the answer is that you do need to make

  your pages bookmarkable so Google has something to put in its index. It
 may
  only be seeing the bit before the query string so all your pages look
 the
  same to it.
 
  Anything that it is possible to map from a normal URL to page state
 should
  be bookmarkable so nothing intrinsic to a tabbed panel should stop you.
 
  The naming schemes you use for your URLs is worth putting a lot of
 thought
  into as once they are in Google it may take a very long time to shift...

  Never mind users bookmarks. Keep them as elegant and concise as possible
 so
  you don't need to change the plan you adopt now.

 Sam is right. I think this is something we should communicate more
 loudly maybe. The thing is, most of the people who work on Wicket work
 on apps where a user logs in and then accesses the rest of the
 application. Bookmark-ability is only for convenience then. However,
 if you are designing a public facing site, you should really be aware
 of bookmarkability, and either shield parts of your site for crawlers
 or make sure everything is bookmarkable. Unfortunately, this has an
 effect on your programming model. Like you said, tabbed panel and
 pageablelist are components that are not bookmarkable by default, so
 you'd have to code such functionality in alternative ways. You're
 basically back to a page based approach.

 Regards,

 Eelco

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Wicket-Stuff ??? CdApp??

2007-09-09 Thread Doug Leeper

Are these dead?  if not, where can I find them?  I could not find a valid
link that references these items?
-- 
View this message in context: 
http://www.nabble.com/Wicket-Stuff-CdApp---tf4410764.html#a12582883
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Disable the SecondLevelPageCache?

2007-09-09 Thread Matej Knopp
Even the regular DiskPageStore is optimized for use in clustered
environment, as it reuses serialized page instances when the session
is being replicated.

-Matej

On 9/9/07, Sean Sullivan [EMAIL PROTECTED] wrote:
 On 9/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  [...] Also thanks to Matej who recently
  added a very, very optimized page store variant, *and* contributed an
  efficient page store that can be used in a cluster.

 Which page store class are you referring to?

 org.apache.wicket.protocol.http.pagestore.DiskPageStore or something else?


 Sean

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket-Stuff ??? CdApp??

2007-09-09 Thread Eelco Hillenius
 Are these dead?  if not, where can I find them?  I could not find a valid
 link that references these items?

CdApp is no longer maintained, as various some were disagreeing with
the hibernate support classes it used and I got tired of having to
defend that. You should look at databinder[1] and examples for it
instead.

Eelco

[1] http://databinder.net

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket-Stuff ??? CdApp??

2007-09-09 Thread Martijn Dashorst
Did you try google?

http://www.google.com/search?q=wicket-stuff


The cd app seems to be no longer supported, but you may checkout the
sources here (wicket 1.2):

http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/WICKET_1_2/wicket-contrib-examples

Martijn

On 9/9/07, Doug Leeper [EMAIL PROTECTED] wrote:

 Are these dead?  if not, where can I find them?  I could not find a valid
 link that references these items?
 --
 View this message in context: 
 http://www.nabble.com/Wicket-Stuff-CdApp---tf4410764.html#a12582883
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-09 Thread Johan Maasing
A maven archetype is really helpful and the quickstart guide is good
but for me personally I would rather see the documentation
restructured a bit. The thing I miss is a small text explaining what
the different JAR-files actually contain. Something like this (pardon
my english, it is not my native language):

Introduction
-
To build a wicket web application you need to understand the
WAR-format and what the web.xml is. Introduction on Java web
applications A must read for anyone developing web applications with
Java. We presume you know this before you start working with Wicket.

Quick start

The following JAR-files are the minimum needed in WEB-INF/lib to
developa a wicket application:
* wicket-1.3.0-beta3.jar
* slf4j-api-1.4.2.jar
* slf4j-jdk14-1.4.2.jar

Maven
-
If you use maven (http://maven.apache.org/) which the wicket project
uses there is an arcehtype that can get you up to speed quickly. See
http://wicket.apache.org/quickstart.html

That's it, now go kick the tires!

More features of wicket
--
* wicket-auth-roles-1.3.0-beta3.jar -
http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html
* wicket-datetime-1.3.0-beta3.jar - ???
* wicket-extensions-1.3.0-beta3.jar - More components...
* wicket-ioc-1.3.0-beta3.jar - ???
* wicket-guice-1.3.0-beta3.jar - Integration with the Guice IoC container
* wicket-jmx-1.3.0-beta3.jar - ???
* wicket-objectsizeof-agent-1.3.0-beta3.jar - ???
* wicket-spring-1.3.0-beta3.jar - http://cwiki.apache.org/WICKET/spring.html
* wicket-spring-annot-1.3.0-beta3.jar - ???
* wicket-velocity-1.3.0-beta3.jar - ???



On 9/8/07, Gwyn Evans [EMAIL PROTECTED] wrote:
 On Saturday, September 8, 2007, 2:00:32 PM, Johan [EMAIL PROTECTED] wrote:

  Sure, there is nothing special about Ant and wicket is very easy to
  set up and the dependencies needed are kind of explained somewhere.
  But I keep seing requests for information from newbies (such as
  myself) answered with maven command lines or look at the source.

 Well, that's part of the reason that we've created the Maven Archetype
 for QuickStart and documented it at http://wicket.apache.org/quickstart.html.

 While we've got nothing against anyone creating a Wicket and Ant
 page on the Wiki, if users aren't able to either install Maven to use
 the Archetype or take the downloads we supply and use them in Ant
 without it all done for them, then to my mind, there's a significant
 danger that the level of OO coding required to use Wicket might be
 problematic for them...

 /Gwyn


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket-Stuff ??? CdApp??

2007-09-09 Thread Doug Leeper

Thanks Martijn...that was what I was looking for.  The wicket-stuff link to
the svn repository is broken.

Based on the previous threads, I expected that this was not supported
anymore.  I am glad that it is still accessible b/c this is another example
of how to use wicket...especially from a complete application standpoint and
not just a one-off example of some feature/component.
-- 
View this message in context: 
http://www.nabble.com/Wicket-Stuff-CdApp---tf4410764.html#a12583248
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-09 Thread Martijn Dashorst
I hate to say it, but I'll do it anyway:

It is a wiki so if you think something is
missing/incomplete/incorrect/needs restructuring... log on and make it
better! Not only will you benefit from the change, but the rest of the
community will have a better life too!

As for the component descriptions, we are trying to coerse maven into
generating a website similar to the one we had for 1.2, but now for
1.3.

in the future it will become available here (nothing there to see at
this moment):

http://wicket.apache.org/wicket13

and the url structure would be something like:

http://wicket.apache.org/wicket13/index.html - overview
http://wicket.apache.org/wicket13/wicket - wicket core
http://wicket.apache.org/wicket13/wicket/dependencies.html
http://wicket.apache.org/wicket13/wicket/index.html
http://wicket.apache.org/wicket13/wicket/source-repository.html
http://wicket.apache.org/wicket13/wicket/apidocs
http://wicket.apache.org/wicket13/wicket-extensions
http://wicket.apache.org/wicket13/wicket-extensions/index.html
http://wicket.apache.org/wicket13/wicket-extensions/dependencies.html
http://wicket.apache.org/wicket13/wicket-extensions/source-repository.html
http://wicket.apache.org/wicket13/wicket-extensions/apidocs
http://wicket.apache.org/wicket13/wicket-datetime
http://wicket.apache.org/wicket13/wicket-datetime/index.html
etc.

Martijn

On 9/9/07, Johan Maasing [EMAIL PROTECTED] wrote:
 A maven archetype is really helpful and the quickstart guide is good
 but for me personally I would rather see the documentation
 restructured a bit. The thing I miss is a small text explaining what
 the different JAR-files actually contain. Something like this (pardon
 my english, it is not my native language):

 Introduction
 -
 To build a wicket web application you need to understand the
 WAR-format and what the web.xml is. Introduction on Java web
 applications A must read for anyone developing web applications with
 Java. We presume you know this before you start working with Wicket.

 Quick start
 
 The following JAR-files are the minimum needed in WEB-INF/lib to
 developa a wicket application:
 * wicket-1.3.0-beta3.jar
 * slf4j-api-1.4.2.jar
 * slf4j-jdk14-1.4.2.jar

 Maven
 -
 If you use maven (http://maven.apache.org/) which the wicket project
 uses there is an arcehtype that can get you up to speed quickly. See
 http://wicket.apache.org/quickstart.html

 That's it, now go kick the tires!

 More features of wicket
 --
 * wicket-auth-roles-1.3.0-beta3.jar -
 http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html
 * wicket-datetime-1.3.0-beta3.jar - ???
 * wicket-extensions-1.3.0-beta3.jar - More components...
 * wicket-ioc-1.3.0-beta3.jar - ???
 * wicket-guice-1.3.0-beta3.jar - Integration with the Guice IoC container
 * wicket-jmx-1.3.0-beta3.jar - ???
 * wicket-objectsizeof-agent-1.3.0-beta3.jar - ???
 * wicket-spring-1.3.0-beta3.jar - http://cwiki.apache.org/WICKET/spring.html
 * wicket-spring-annot-1.3.0-beta3.jar - ???
 * wicket-velocity-1.3.0-beta3.jar - ???



 On 9/8/07, Gwyn Evans [EMAIL PROTECTED] wrote:
  On Saturday, September 8, 2007, 2:00:32 PM, Johan [EMAIL PROTECTED] wrote:
 
   Sure, there is nothing special about Ant and wicket is very easy to
   set up and the dependencies needed are kind of explained somewhere.
   But I keep seing requests for information from newbies (such as
   myself) answered with maven command lines or look at the source.
 
  Well, that's part of the reason that we've created the Maven Archetype
  for QuickStart and documented it at 
  http://wicket.apache.org/quickstart.html.
 
  While we've got nothing against anyone creating a Wicket and Ant
  page on the Wiki, if users aren't able to either install Maven to use
  the Archetype or take the downloads we supply and use them in Ant
  without it all done for them, then to my mind, there's a significant
  danger that the level of OO coding required to use Wicket might be
  problematic for them...
 
  /Gwyn
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: wicket extension examples site down?

2007-09-09 Thread Ed _


But the extension examples - e.g. the modal window examples are not hosted 
there. 



I did try to extrapolate from an earlier email referring to example for
1.3 - but did not find the extention examples on either of those pages.



-Ed


 Date: Mon, 10 Sep 2007 00:32:52 +0200
 From: [EMAIL PROTECTED]
 To: users@wicket.apache.org
 Subject: Re: wicket extension examples site down?
 
 hi ed,
 
 as an alternative, you can find the examples for wicket at the following
 locations:
 
 http://wicketstuff.org/wicket12/   - Wicket 1.2.x
 http://wicketstuff.org/wicket13/   - Wicket 1.3.0
 
 
   gerolf
 
 
 On 9/10/07, Ed _ [EMAIL PROTECTED] wrote:
 
 
  Hi,
 
  Trying to access the wicket extension examples - looks like the site is
  down.
 
 
  http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.modal.ModalWindowPage
 
 
  Is this part of the move to apache? It may be in transition - Just wanted
  to bring to notice of the group just in case this got left out. It was up
  earlier in the day.
 
 
  Ed
 
  _
  Kick back and relax with hot games and cool activities at the Messenger
  Café.
  http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline

_
More photos; more messages; more whatever – Get MORE with Windows Live™ 
Hotmail®. NOW with 5GB storage.
http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_5G_0907

Re: wicket extension examples site down?

2007-09-09 Thread Gerolf Seitz
hm,

i can see the modal window examples for both versions:

Wicket 1.3.0-SNAPSHOT: http://wicketstuff.org/wicket13/ajax/modal-window
Wicket 1.2.x: 
http://wicketstuff.org/wicket12/ajax/?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.modal.ModalWindowPage

  gerolf

On 9/10/07, Ed _ [EMAIL PROTECTED] wrote:


 But the extension examples - e.g. the modal window examples are not hosted 
 there.



 I did try to extrapolate from an earlier email referring to example for
 1.3 - but did not find the extention examples on either of those pages.



 -Ed


  Date: Mon, 10 Sep 2007 00:32:52 +0200
  From: [EMAIL PROTECTED]
  To: users@wicket.apache.org
  Subject: Re: wicket extension examples site down?
 
  hi ed,
 
  as an alternative, you can find the examples for wicket at the following
  locations:
 
  http://wicketstuff.org/wicket12/   - Wicket 1.2.x
  http://wicketstuff.org/wicket13/   - Wicket 1.3.0
 
 
gerolf
 
 
  On 9/10/07, Ed _ [EMAIL PROTECTED] wrote:
  
  
   Hi,
  
   Trying to access the wicket extension examples - looks like the site is
   down.
  
  
   http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.modal.ModalWindowPage
  
  
   Is this part of the move to apache? It may be in transition - Just wanted
   to bring to notice of the group just in case this got left out. It was up
   earlier in the day.
  
  
   Ed
  
   _
   Kick back and relax with hot games and cool activities at the Messenger
   Café.
   http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline

 _
 More photos; more messages; more whatever – Get MORE with Windows Live™ 
 Hotmail(r). NOW with 5GB storage.
 http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_5G_0907

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Image from DB example

2007-09-09 Thread Jonathan Locke


perhaps blobimageresource or something like it.


Doug Leeper wrote:
 
 I am looking for an example that obtains an image from the db and displays
 it.  Can anyone point me in the right direction?  I couldn't find the
 cdApp in wicket-contrib-examples
 
 I know that I need to use a Resource or some derivative of one, but I want
 to make sure that the Image is not stored in session.  I am converting an
 existing JSP/Pageflow project to Wicket and have used a specific servlet
 to stream the image but not sure how to do in Wicket.
 
 
 Thanks in advance,
 - Doug
 

-- 
View this message in context: 
http://www.nabble.com/Image-from-DB-example-tf4410796.html#a12584341
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-09 Thread Evan Chooly
I know i'm a little late on this thread, but as the author of qwicket, i
take particular issue with saying because it's glued with hibernate and
spring that it's no good.  The express purpose of qwicket is to create a
template for spring/hibernate/wicket based applications.  So if it's no good
because it uses those, the problem is with you.  Blaming a tool built
explicitly to leverage those libraries is, to be as blunt as you, stupid.
Learn to pick better tools or hire out your work.

On 9/8/07, chickabee [EMAIL PROTECTED] wrote:


 Hi Wicketers,

 I tried wicket today and the example application was up and running on
 tomcat in no time, so that was the good part, after that if I like to
 create
 a sample application on my own then I found no easy way to start.

 Examples are good to browse through and tell about wicket capabilities,
 however,  not so good from learning point of view, All of the examples are
 glued together in one big jar file and it is just not quick enough to
 create
 a bare-bone application quickly and easily,

 I tried Quicket as mentioned in the readme file, however, Quickets is
 nothing but waste of time, because it is glued with Hibernate and Spring
 and
 both should not be there to start with.

 Not a good experience trying wicket so far, I guess it's the time to try
 out
 some more simpler app frameworks,

 -Thumbs Down to Wicket!

 --
 View this message in context:
 http://www.nabble.com/First-Day-Disgust%21-tf4405663.html#a12568938
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Image from DB example

2007-09-09 Thread Eelco Hillenius
On 9/9/07, Doug Leeper [EMAIL PROTECTED] wrote:

 I am looking for an example that obtains an image from the db and displays
 it.  Can anyone point me in the right direction?  I couldn't find the cdApp
 in wicket-contrib-examples

 I know that I need to use a Resource or some derivative of one, but I want
 to make sure that the Image is not stored in session.  I am converting an
 existing JSP/Pageflow project to Wicket and have used a specific servlet to
 stream the image but not sure how to do in Wicket.

That cdapp example shows you how you can do that. Didn't change much
between 1.2 and 1.3 I think.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-09 Thread Jon Laidler

Totally agree.

I like to understand what is going on so I created a 'sandbox' type project
in Netbeans, manually referenced the wicket libraries, created the
application and webpage class with related HTML, and the Web.xml. I was up
and running in under an hour. The application runs on Tomcat with iBatis and
mySQL - nothing fancy no Jetty, Hibernate.

My process of learning the framework is again simple. Add pages to the
'sandbox ' application and add components to the page that I want to
learn/play with. Before I knew it I had working examples of most of the
Wicket components with Java code I had written and understood. 

I like Wicket. I have the greatest respect for the developers who devote
their time to giving us a worthwhile framework, and to the Wicket community
who are always willing to help. 

My advice is to build an application manually, the information is on the
Wiki and in many blogs (just Google it). Read the book 'Pro-Wicket' and sign
up to the Manning MEAPs version of 'Wicket In Action'






Ryan Holmes wrote:
 
 Funny, one of the things I remember being really impressed with when  
 I set up my first Wicket (1.2) app was how incredibly easy it was:
 
 1.) Add wicket jars
 2.) Write hello world home page
 3.) Write WebApplication subclass and specify home page
 4.) Map servlet in web.xml
 5.) Hit run button in Eclipse w/WTP (or whatever your tools of  
 choice are)
 
 I figured all that out from this obscure page on the wiki: http:// 
 cwiki.apache.org/WICKET/newuserguide.html#Newuserguide- 
 MyFirstApplication
 
 Of course, most people would never guess that a page entitled My  
 First Application in the New User Guide might hold the information a  
 new user would need when writing their first Wicket application, so  
 perhaps Wicket is only intended for really, really smart people.
 
 -Ryan
 
 On Sep 8, 2007, at 6:06 AM, chickabee wrote:
 

 Thanks for providing me the primer on web applications and Ant and  
 for not
 trying to understand what point I am trying to make here.

 Yes, we are not dealing with nuclear science here and Yes again  
 wicket is
 just another web application, Did someone disagree with that. I  
 hope not.

 Once you are out in the market to try the new webapps then it  
 always makes
 sense to have people be able to get up and running on the basics w/ 
 o efforts
 and not to have to deal with tricks necessary to get basic app to  
 work.

 A common expectation is a simple standalone app without
 Maven/Spring/Hibernate etc unnecessary stuff. Run 'ant' on the  
 command line
 and here u have the war file, now,  make a few changes to  
 experiment and
 then run 'ant' again to have modified war. Simple.

 Obviously the current example is for the comfort of wicket creators  
 and not
 for the comfort of prospective users and that is the problem here.

 Any one with basic common sense will get this up and running after  
 a day's
 tinkering around,  but that can be avoided by adding simple things  
 here in
 the examples, that is the point I am trying to sell here only if  
 there are
 buyers out there with open mind.


 

 Al Maw wrote:

 chickabee wrote:
 Thanks for the great idea.

 Note that this is displayed fairly prominently on the web site at
 http://wicket.apache.org under QuickStart.

 It believe it will be good to put a few of the  examples  
 application in
 their own folders and war files so that they can be studied  
 independently
 without the clutter of 20 projects.

 We used to have this, however, grouping all the examples into one
 project has several big advantages:

   - Getting all the examples running in your IDE is much easier.
   - We don't have ten extra projects to manage the build files for.
   - We can easily link to all the examples from a single page.

 Another thing I notice is that maven is  the default build tool  
 used for
 wicket, I guess it will be good to provide the ant build.xml,  
 just in
 case
 someone does not want full maven features.

 I think we need to write a page on this on the web site that we  
 can send
 people to. ;-)

 An Ant build for Wicket isn't special. If you don't know how to  
 use Ant,
 it's not our job to show you. There are no magic custom Ant tasks we
 provide, or JSP pre-compilation steps, or anything like that. All you
 need is to compile your app with the necessary dependencies, just  
 like
 any other Java app. You'll also need your web.xml, etc. just like any
 other Java web app. Nothing special here.

 Regards,

 Al

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -- 
 View this message in context: http://www.nabble.com/First-Day- 
 Disgust%21-tf4405663.html#a12569457
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL 

Re: {wicket 1.3 beta 3} Howto add keywords No cache etc?

2007-09-09 Thread Nino Saturnino Martinez Vazquez Wael
This has been rejected as invalid for fixing... But should'nt at least 
something have been added to the component. Currently Image are not 
valid for ajax calls, and you wont see the problem until you catch it in 
your browser.. Either we write something in the javadocs or??? Could be 
nice to tell if the component did not work with ajax, somehow.


regards Nino

Matej Knopp wrote:

Well, i guess with component path encoded in url, the milliseconds could do ;)

-Matej

On 9/7/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
  

Yes, but all those images will have a different url, or are they the
same? The milliseconds parameter is only used to distinguish between
requests, not within one.

Martijn

On 9/7/07, Matej Knopp [EMAIL PROTECTED] wrote:


Really? What's so odd about it? Say you have a page with 100 images.
How long do you think such page renders? It shouldn't take long than
say 5 ms on a decent machine.

-Matej

On 9/7/07, Johan Compagner [EMAIL PROTECTED] wrote:
  

2 tags generating the same milisecond for the same client/session?
that looks very very very odd to me.

johan


On 9/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
wrote:


Actually  we discussed that.

I suggested it but as Matej wrote:
don't think so. you can have two tags generated in same millisecond.. As
for nano might be better, lesser chance for tags being generated in the
same nanosec. But whats wrong with autoindex?

Martijn Dashorst wrote:
  

Why not use System.currentTimeMillis()? Or if you are really concerned
use nanotime.

Martijn

On 9/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]


wrote:
  

so no, talking to Matej on ##wicket, the fix was this:

Resolutions are these two :
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put(src, tag.getString(src) + rand= +
Math.random());
}

or event better since random could give duplicate results:
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put(src, tag.getString(src) + autoIndex= +
getPage().getAutoIndex());
}
Although im not sure if its safe to use autoIndex?I've put up a feature
request for it to be implemented.

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


-Nino


Nino Saturnino Martinez Vazquez Wael wrote:

  

this is whats generated:




http://localhost:8080/thirdparty-webapp/thirdParty/?wicket:interface=:4:form:phoneA:phoneThumb:image::IResourceListener
::
  

regards Nino

Martijn Dashorst wrote:



The most failsafe solution to the update image using Ajax request to
my mind is to add a random number to the url for the image (I thought
we already did that?).

Martijn

On 9/7/07, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:


  

Hi

How do I add keywords no-cache and etc, for a panel? Reason are that
the
panel carries a image and that gets cached so when my ajax call
comes in
and updates the model then the old image are shown..

regards Nino





-
  

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: {wicket 1.3 beta 3} Howto add keywords No cache etc?

2007-09-09 Thread Igor Vaynberg
as far as i know Image works just fine with ajax. if you want an image that
is not cached use NonCachingImage.

-igor


On 9/9/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
wrote:

 This has been rejected as invalid for fixing... But should'nt at least
 something have been added to the component. Currently Image are not
 valid for ajax calls, and you wont see the problem until you catch it in
 your browser.. Either we write something in the javadocs or??? Could be
 nice to tell if the component did not work with ajax, somehow.

 regards Nino

 Matej Knopp wrote:
  Well, i guess with component path encoded in url, the milliseconds could
 do ;)
 
  -Matej
 
  On 9/7/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 
  Yes, but all those images will have a different url, or are they the
  same? The milliseconds parameter is only used to distinguish between
  requests, not within one.
 
  Martijn
 
  On 9/7/07, Matej Knopp [EMAIL PROTECTED] wrote:
 
  Really? What's so odd about it? Say you have a page with 100 images.
  How long do you think such page renders? It shouldn't take long than
  say 5 ms on a decent machine.
 
  -Matej
 
  On 9/7/07, Johan Compagner [EMAIL PROTECTED] wrote:
 
  2 tags generating the same milisecond for the same client/session?
  that looks very very very odd to me.
 
  johan
 
 
  On 9/7/07, Nino Saturnino Martinez Vazquez Wael 
 [EMAIL PROTECTED]
  wrote:
 
  Actually  we discussed that.
 
  I suggested it but as Matej wrote:
  don't think so. you can have two tags generated in same
 millisecond.. As
  for nano might be better, lesser chance for tags being generated in
 the
  same nanosec. But whats wrong with autoindex?
 
  Martijn Dashorst wrote:
 
  Why not use System.currentTimeMillis()? Or if you are really
 concerned
  use nanotime.
 
  Martijn
 
  On 9/7/07, Nino Saturnino Martinez Vazquez Wael 
 [EMAIL PROTECTED]
 
  wrote:
 
  so no, talking to Matej on ##wicket, the fix was this:
 
  Resolutions are these two :
  protected void onComponentTag(ComponentTag tag) {
  super.onComponentTag(tag);
  tag.put(src, tag.getString(src) + rand= +
  Math.random());
  }
 
  or event better since random could give duplicate results:
  protected void onComponentTag(ComponentTag tag) {
  super.onComponentTag(tag);
  tag.put(src, tag.getString(src) + autoIndex= +
  getPage().getAutoIndex());
  }
  Although im not sure if its safe to use autoIndex?I've put up a
 feature
  request for it to be implemented.
 
  https://issues.apache.org/jira/browse/WICKET-939
 
 
  -Nino
 
 
  Nino Saturnino Martinez Vazquez Wael wrote:
 
 
  this is whats generated:
 
 
 
 
 http://localhost:8080/thirdparty-webapp/thirdParty/?wicket:interface=:4:form:phoneA:phoneThumb:image::IResourceListener
  ::
 
  regards Nino
 
  Martijn Dashorst wrote:
 
 
  The most failsafe solution to the update image using Ajax
 request to
  my mind is to add a random number to the url for the image (I
 thought
  we already did that?).
 
  Martijn
 
  On 9/7/07, Nino Saturnino Martinez Vazquez Wael
  [EMAIL PROTECTED] wrote:
 
 
 
  Hi
 
  How do I add keywords no-cache and etc, for a panel? Reason are
 that
  the
  panel carries a image and that gets cached so when my ajax call
  comes in
  and updates the model then the old image are shown..
 
  regards Nino
 
 
 
 
 
 -
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  --
  Buy Wicket in Action: http://manning.com/dashorst
  Apache Wicket 1.3.0-beta3 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




how to add menucontainer in wicket?

2007-09-09 Thread bhupat parmar
Hi

i have to add an menu container  in  wicket frame work what id should i use?


 td  div id=menucontainer
div id=bobcontent1-title class=handcursor1span
class=spanDifference/span/div
div id=bobcontent1 class=switchgroup1
table width=100% border=0 cellspacing=0
cellpadding=0
  tr
td class=tdcolor1table width=80% border=0 align=center
cellpadding=0 cellspacing=5
  tr
td width=45% rowspan=2img
src=images/img6.gif width=106 height=106/td
td width=55%img
src=images/ratebar.gif width=158 height=18/td
  /tr
  tr
td align=right valign=topdiv
class=most
strongyour rating: 10.0/strong
/div
  div class=numbersa href=#img
src=images/next.gif width=22 height=14 border=0/a
  /div
  a href=#strongbr
  Thriftstorejunkie/strong/abr
  Age 16 - spokane,WAbr
  a href=#Details /a/td
  /tr
/table/td


thanks


Re: How to handle these nested table tags

2007-09-09 Thread Ryan Holmes
hmmm... the hierarchies seem to match. The only weird things I see  
are that your img tags are unclosed (Wicket may require valid xml  
templates -- I'm not sure because I always use xhtml) and your call  
to add the topForm component uses an explicit this reference. I  
can't remember if this with a method call does nothing or if it can  
actually interfere with dynamic binding. Either way, you don't want  
to do it. Just call add(topForm).


If neither of those suggestions work (and I kind of doubt they will),  
think about whether your page's superclass might be causing the  
problem. For instance, a weird markup inheritance scenario could  
conceivably cause this.


-Ryan

On Sep 9, 2007, at 9:58 PM, Kevin Liu wrote:

I have a html page that displays welcome ,XXX ,or something like  
that, the XXX is the current user name, and I use Label to  
display it. But there is an exception when it runs.


  Unable to find component with id 'userName' in [MarkupContainer  
[Component id = _relative_path_prefix_14, page =  
com.cmip.web.pages.TopFrame, path =  
3:topForm:_relative_path_prefix_13:_relative_path_prefix_14.WebMarkupC 
ontainer, isVisible = true, isVersioned = true]]. This means that  
you declared wicket:id=userName in your markup, but that you either  
did not add the component to your page at all, or that the  
hierarchy does not match.



  The code:
  public TopFrame(){
  super();
  String name = ((CMIPSession)this.getSession()).getUser 
().getUserName();

  Label userName = new Label(userName,new Model(name));
  Form topForm = new Form(topForm);
  topForm.add(userName);
  this.add(topForm);


  html:

  body style=padding: 0px 0px 0px 0px;margin: 0px 0px 0px 0px;
  form wicket:id=topForm
  table width=100% border=0 cellspacing=0 cellpadding=0
  tr
td width=485img src=images/logo_top.gif width=485  
height=85/td

td background=images/bg_top.gifnbsp;/td
td width=260 align=right background=images/bg_top.gif
table width=242 height=80 border=0 cellpadding=5  
cellspacing=0

tr valign=top
td colspan=2 align=right class=whiteText°æ±¾ºÅ£ºV1.0/td
/tr
tr align=center
td height=37a href=Main.html  
target=mainframeimg src=images/button_desktop.gif width=112  
height=27 border=0 alt=·µ»ØÖ÷Ò³  
onClick=javascript:self.location='Top.html'/a/td
  tda href=../public/Logout.html  
target=mainframeimg src=images/button_logout.gif width=112  
height=27 border=0/a/td

/tr
  /table
/td
  /tr
/table

table width=100% border=0 cellpadding=0 cellspacing=0
  tr
td width=485 height=1img src=images/spacer.gif  
width=1 height=1/td

  /tr
  tr bgcolor=#38E089
td height=4img src=images/spacer.gif width=4  
height=4/td

  /tr
  tr
td height=1img src=images/spacer.gif width=1  
height=1/td

  /tr
  tr background=images/bg_3D_bar.gif
td height=28 background=images/bg_3D_bar.giftable  
width=100% border=0 cellspacing=0 cellpadding=0

tr
  td width=140 align=center class=whiteTextspan  
id=serverTime /span/td
  td width=2img src=images/pic_shr.gif width=2  
height=23/td
  tdtable width=316 border=0 cellspacing=0  
cellpadding=1

  tr
td width=28nbsp;/td
td width=284 align=center class=welcomeBox
¡¡  Welcome label wicket:id=userName/label
/td
  /tr
/table/td
/tr
  /table/td
  /tr
/table
 script language=javascript
   updateTime();
/script
/form
/body


-Kevin Liu

-
Pinpoint customers who are looking for what you sell.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]