Re: RadioGroup selections after validation failure problem

2012-04-03 Thread Matt Stevenson

Hi Andrea,

That solved the problem - I should have noticed it was missing the model 
myself!


Thanks so much for the help.
Matt


-Original Message- 
From: Andrea Del Bene

Sent: Monday, April 02, 2012 6:36 PM
To: users@wicket.apache.org
Subject: Re: RadioGroup selections after validation failure problem

HI,

try giving a model to your RadioGroup:

final RadioGroupPresentation group = new
RadioGroupPresentation(presentationSingleSelectGroup, new
ModelPresentation());



Hi All,

My company has just started evaluating Wicket on an app that allows users 
to select and merge multiple PowerPoint presentations.


We’ve hit a bit of a problem though, basically at the moment we have one 
long form containing a number of section panels.


The section panels are either ‘multi select’ (a Panel containing a 
CheckGroup that contains Check objects representing the PowerPoint 
presentations in that section) or ‘single select’ (a Panel containing a 
RadioGroup that contains Radio objects).


The problem happens when a validation failure occurs. Basically the 
checkboxes that the user selected prior to the validation failure are 
remembered and repopulated when the user is bounced back to the page but 
the radio buttons that the user selected aren’t remembered.


Any help would be gratefully received, I’ve snipped out what I think are 
the relevant bits of code below...


Thanks
Matt


FORM CODE:
__

public class PresentationSelectionForm extends 
FormPresentationSelectionFormModel  implements Serializable

{
 private static final long serialVersionUID = 5962930827736414107L;

 final DownloadLinkPanel dlPanel = 
DownloadLinkPanel.getEmptyLink(downloadLinkPanel);
 final HiddenFieldString  messageIndicator = new 
HiddenFieldString(messageIndicator, new ModelString(0));


 private ListPresentationSelector  selectors = new 
ArrayListPresentationSelector();


 @SpringBean
 private AssetBankService assetBankService;



 public PresentationSelectionForm(String name, ListSection 
sections, final PageParameters parameters)

 {
 super(name, new 
CompoundPropertyModelPresentationSelectionFormModel(new 
PresentationSelectionFormModel()));


 add(new FeedbackPanel(feedback));
 add(dlPanel);
 add(messageIndicator);

 HiddenFieldString  mandatorySections = new 
HiddenFieldString(requiredSections, new 
ModelString(getIdListFromMandatorySections(sections)));

 add(mandatorySections);

 ListViewSection  sectionList = new 
ListViewSection(sections, sections)

 {
 private static final long serialVersionUID = 
7480938703389583883L;


 protected void populateItem(ListItemSection  sectionItem)
 {
 sectionItem.add(new Label(sectionTitle, 
sectionItem.getModelObject().getTitle()));
 PresentationMultiSelectPanel multi = new 
PresentationMultiSelectPanel(presentationMultiSelectPanel, sectionItem);
 PresentationSingleSelectPanel single = new 
PresentationSingleSelectPanel(presentationSingleSelectPanel, 
sectionItem);

 selectors.add(multi);
 selectors.add(single);
 sectionItem.add(multi);
 sectionItem.add(single);
 }
 };

 sectionList.setReuseItems(true);
 add(sectionList);
 }



 @Override
 public void onSubmit()
 {
 //create the list of asset bank ids to merge from the panel 
input...

 ListLong  assetBankAssetIds = new ArrayListLong();

 for (PresentationSelector selector : selectors)
 {

assetBankAssetIds.addAll(selector.getSelectedAssetBankAssetIds());
 }

 if (assetBankAssetIds.size() == 0)
 {
 error(Unable to complete merge, no presentations were 
selected. Please select from the list then try again);

 }
 else if (!allMandatorySectionsAreCompleted())
 {
 error(Unable to complete merge, not all mandatory sections 
were completed. Please complete all mandatory sections and try again);

 }
 else
 {
 try
 {
 File mergedPresentations = 
assetBankService.getMergedPresentations(assetBankAssetIds);


addOrReplace(DownloadLinkPanel.getLinkToResourceFile(downloadLinkPanel, 
mergedPresentations, Download your file: 
+mergedPresentations.getName()));

 }
 catch (IOException e)
 {
 throw new RuntimeException(Error merging presentations, 
e);

 }
 }

 addOrReplace(new HiddenFieldString(messageIndicator, new 
ModelString(1)));

 }
}



SINGLE SELECT PANEL CODE:




public class PresentationSingleSelectPanel extends Panel implements 
PresentationSelector, Serializable

{
 private static final long serialVersionUID = 7062146893868378278L;

 private Section 

Re: mapping / mounting of PIE.htc for IE

2012-04-03 Thread Bert
I have to switch to absolute URLs for this. Thanks for reading

Bert

On Mon, Apr 2, 2012 at 15:33, Bert taser...@gmail.com wrote:
 Hi list,

 in a current project I need to support IE 9. For this, the designer
 have decided to use pie.htc (http://css3pie.com/) which adds CSS3
 support via IE behaviours.

 This pie.htc file is referenced from css. Unfortunately, IE is not
 looking for the file relative to the css, but relative to the html
 file is is used in.
 This makes it rather hard to mount the pie.htc file in a wicket application.

 My idea was to write an IRequestMapper implementation that decides if
 a request is for the pie.htc and if so returns an IRequestHandler to
 serve that file.

 Is that a possible way to go? Can I 'reuse' a ResourceRequestHandler
 for the actual delivery?

 Thanks in advance for any hints

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: mapping / mounting of PIE.htc for IE

2012-04-03 Thread Guillaume Smet
Hi Bert,

On Tue, Apr 3, 2012 at 11:25 AM, Bert taser...@gmail.com wrote:
 I have to switch to absolute URLs for this. Thanks for reading

It's not exactly the best solution in the world but, considering that
PIE.htc is a hack, we use a pretty hackish solution: we declare all
the styles on which we want to enable the PIE.htc filter directly in
the page surrounded by a test on the IE version.

This way, we can easily get the relative PIE.htc URL from Wicket.

-- 
Guillaume

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Page.onPageAttached() never gets called in 1.5?

2012-04-03 Thread booloo
Hi,
We use the method onPageAttached () for  volidation, and if an error occurs
then we redirect to any appropriate page
From the page constructor setResponsePage does not work. If you use the
if (! validateLogin ()) {
 throw new RestartResponseAtInterceptPageException
(LoginPage.class);
 }
as a result:
 Last cause: Same attribute found twice: key (line 21, column 70)
But there was not this error before. And on different pages we override
onPageAttached and add some new validations.
public void onPageAttached() {
super.onPageAttached();
validate

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Page-onPageAttached-never-gets-called-in-1-5-tp3338320p4528292.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket with ServletContainerInitializer

2012-04-03 Thread Christoph Leiter

Hi,

I'm trying to use ServletContainerInitializer to start my wicket 
application. There's already work done to support this in WICKET-4350. 
It's not working for me, however. The filter is registered in jetty but 
I get a 404 response for every request.


What I've done so far (starting from a quickstart):
1) Add dependency: 
org.eclipse.jetty.orbit:org.objectweb.asm:3.1.0.v200803061910

2) Delete web.xml
3) Create file 
META-INF/services/javax.servlet.ServletContainerInitializer with the 
content com.mycompany.Initializer

4) Add AnnotationConfiguration to the jetty configuration:
bb.setConfigurations(new Configuration[] { new AnnotationConfiguration() });
5) Add Initializer:

| public class Initializer implements ServletContainerInitializer {
|@Override
| public void onStartup(SetClass? c, ServletContext 
servletContext) throws ServletException {

| WicketApplication app = new WicketApplication();
| app.setConfigurationType(RuntimeConfigurationType.DEVELOPMENT);
| WicketFilter wicketFilter = new WicketFilter(app);
| wicketFilter.setFilterPath();
| Dynamic filter = servletContext.addFilter(wicket, wicketFilter);
| 
filter.addMappingForUrlPatterns(EnumSet.allOf(DispatcherType.class), 
true, /*);

| }
| }

That's the relevant part of the jetty debug log for the filter registration:

| DEBUG - Container  - Container 
org.eclipse.jetty.servlet.ServletHandler@78334ba0 + wicket as filter
| DEBUG - Container  - Container 
org.eclipse.jetty.servlet.ServletHandler@78334ba0 + [/*]/[]==31=wicket 
as filterMapping

| DEBUG - ServletHandler - filterNameMap={wicket=wicket}
| DEBUG - ServletHandler - pathFilters=[[/*]/[]==31=wicket]
| DEBUG - ServletHandler - servletFilterMap={}
| DEBUG - ServletHandler - servletPathMap=null
| DEBUG - ServletHandler - servletNameMap={}
| DEBUG - AbstractLifeCycle  - starting wicket
| DEBUG - WebAppClassLoader  - loaded class 
org.apache.wicket.Initializer from sun.misc.Launcher$AppClassLoader@7981c4eb
| INFO  - Application- [wicket] init: Wicket core 
library initializer


The log for a request to /:

| DEBUG - Server - REQUEST / on 
BlockingHttpConnection@3c7352d1,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-5,l=18,c=0},r=1
| DEBUG - ContextHandler - scope null||/ @ 
o.e.j.w.WebAppContext{/,null},src/main/webapp
| DEBUG - ContextHandler - context=||/ @ 
o.e.j.w.WebAppContext{/,null},src/main/webapp
| DEBUG - session- 
sessionManager=org.eclipse.jetty.server.session.HashSessionManager@efc0830

| DEBUG - session- session=null
| DEBUG - ServletHandler - servlet ||/ - null
| DEBUG - ServletHandler - chain=null
| DEBUG - ServletHandler - Not Found /
| DEBUG - Server - RESPONSE /  404

Environment is Wicket 1.5.5, jetty 8.1.2. I tried with Tomcat 7 as well 
but no luck either.


Any help is appreciated


Christoph

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



IE9 Memory leak when updating component with Ajax (Wicket 1.5.5)

2012-04-03 Thread Heikki Uotinen
Hi,

it seems that IE9 leaks memory heavily when updating components with Ajax in 
IE9 document mode.

There is no leak after setting document to IE8 mode

meta http-equiv=X-UA-Compatible content=IE=8/

Any ideas to resolve this without forcing IE8 mode ?

There have been past issues, but found no current issue related to this, quick 
start code is very simple,
Opera, Firefox, Chrome work fine.


public HomePage(final PageParameters parameters)
{
 Label testDiv = new Label(testDiv, new 
PropertyModel(this, data));
 testDiv.setOutputMarkupId(true);
 add(testDiv);

 AjaxSelfUpdatingTimerBehavior timer = new 
AjaxSelfUpdatingTimerBehavior(Duration.milliseconds(200));
 testDiv.add(timer);
}

public String getData()
{
 Date now = new Date();
 return now.toString();
}

html
head
!-- No leak if this is set
meta http-equiv=X-UA-Compatible content=IE=8/
--
/head
body
div wicket:id=testDiv/div
/body
/html

-Heikki


Re: Error while deploying to Tomcat 7

2012-04-03 Thread Dan Retzlaff
Is com.myapp.wicket.IVoteCollection included in multiple JARs? Maybe one in
server/lib and one in WEB-INF/lib? Because those will use different class
loaders, Java thinks they're different classes even though they have the
same name.

On Tue, Apr 3, 2012 at 1:02 AM, SudeepShakya shakyasud...@live.com wrote:

 I was working with tomcat and the code was working fine and I have also
 tested by running in tomcat 7 and Again when I closed the application ,
 tomcat displayed this error.

 org.apache.catalina.core.StandardContext filterStart
 SEVERE: Exception starting filter WicketApplication
 java.lang.ClassCastException: com.myapp.wicket.VoteCollectionJDBC cannot be
 cast to com.myapp.wicket.IVoteCollection
at com.myapp.wicket.Application.init(Application.java:45)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
at

 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at

 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at

 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:75)
at

 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49)
at
 org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:701)
at

 org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273)
at

 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)
at

 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
at

 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:98)
at

 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4584)
at
 org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262)
at
 org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257)
at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at

 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at

 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Error-while-deploying-to-Tomcat-7-tp4527968p4527968.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Wicket Application on GoDaddy

2012-04-03 Thread Satrix
Hello,

I'm trying to deploy my application on GoDaddy and it works but... let's say
that I've domain that is available under www.domain.com
WAR file name is: warfilename

When the installation is done my application is available under
www.domain.com/warfilename/home
And the question is how to deploy it there to run at www.domain.com/home

When I run my application on my local machine it starts at
www.localhost:8080/home so it looks like the configuration is ok.

My web.xml configuration is:

filter  
filter-namewicket.website/filter-name  
   
filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class  
init-param  
param-nameapplicationFactoryClassName/param-name
   
param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value
/init-param
init-param
param-nameconfiguration/param-name
param-valuedeployment/param-value
/init-param
init-param  
param-nameapplicationClassName/param-name
param-valuesec.website.WicketApplication/param-value
/init-param
/filter  

filter-mapping
filter-namewicket.website/filter-name
url-pattern/*/url-pattern
/filter-mapping

So do you have any idea how can I solve this problem or maybe it a problem
on their side ?

Regards, Satrix



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Application-on-GoDaddy-tp4529071p4529071.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket Fragments and Wicket Extends

2012-04-03 Thread Ciaran Liedeman
Hello,

I've been trying to use fragments in a page but can't seem to get it to work.
It fails with an error saying No markup found for fragment id...

I used the example as if from the 1.5 javadocs
http://wicket.apache.org/apidocs/1.5/org/apache/wicket/markup/html/panel/Fragment.html

the only difference being my page extends a base page. If I remove the 
wicket:extend in the html
and the extends BasePage in the java the fragment markup is found.

I mananged to get it to work with extending the BasePage by placing the 
fragment code in the BasePage.html
File but this means all my fragments will have to be placed in that file.

Am I missing something simple? Where should fragment html code be placed for 
pages that use
wicket:extend?

Ciaran

Paltrack Pty (Ltd) Reg No 2000/002936/07
Directors: A.J. Mouton (Managing) |  J.G.F. du Plessis | J. vW. Rossouw 
(Chairman)


This email and any accompanying attachments may contain confidential and 
proprietary information. This information is private
and protected by law and, accordingly, if you are not the intended recipient, 
you are requested to delete this entire
communication immediately and are notified that any disclosure, copying or 
distribution of or taking any action based on this
information is prohibited.

Emails cannot be guaranteed to be secure or free of errors or viruses. The 
sender does not accept any liability or
responsibility for any interception, corruption, destruction, loss, late 
arrival or incompleteness of or tampering or
interference with any of the information contained in this email or for its 
incorrect delivery or non-delivery for whatsoever
reason or for its effect on any electronic device of the recipient.

If verification of this email or any attachment is required, please request a 
hard copy version.
__
Queries to: helpd...@paltrack.co.za

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Application on GoDaddy

2012-04-03 Thread Satrix
I changed the name of WAR file to ROOT.war but no luck now it's
www.domain.com/ROOT/home :/
From what I know there is tomcat 5 running

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Application-on-GoDaddy-tp4529071p4529402.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Application on GoDaddy

2012-04-03 Thread Igor Vaynberg
weird. that always worked for me on tomcat. i suggest you read their
docs about root contexts.

-igor

On Tue, Apr 3, 2012 at 9:31 AM, Satrix satrix...@gmail.com wrote:
 I changed the name of WAR file to ROOT.war but no luck now it's
 www.domain.com/ROOT/home :/
 From what I know there is tomcat 5 running

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-Application-on-GoDaddy-tp4529071p4529402.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Fragments and Wicket Extends

2012-04-03 Thread Martin Grigorov
Hi,

See 
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/markup/html/panel/Fragment.java#L70
wicket:fragment should be inside the HTML element to which is
assigned 'markupProvider' component.

Show us your code if you need more help.

On Tue, Apr 3, 2012 at 6:08 PM, Ciaran Liedeman cia...@paltrack.co.za wrote:
 Hello,

 I've been trying to use fragments in a page but can't seem to get it to work.
 It fails with an error saying No markup found for fragment id...

 I used the example as if from the 1.5 javadocs
 http://wicket.apache.org/apidocs/1.5/org/apache/wicket/markup/html/panel/Fragment.html

 the only difference being my page extends a base page. If I remove the 
 wicket:extend in the html
 and the extends BasePage in the java the fragment markup is found.

 I mananged to get it to work with extending the BasePage by placing the 
 fragment code in the BasePage.html
 File but this means all my fragments will have to be placed in that file.

 Am I missing something simple? Where should fragment html code be placed for 
 pages that use
 wicket:extend?

 Ciaran

 Paltrack Pty (Ltd) Reg No 2000/002936/07
 Directors: A.J. Mouton (Managing) |  J.G.F. du Plessis | J. vW. Rossouw 
 (Chairman)


 This email and any accompanying attachments may contain confidential and 
 proprietary information. This information is private
 and protected by law and, accordingly, if you are not the intended recipient, 
 you are requested to delete this entire
 communication immediately and are notified that any disclosure, copying or 
 distribution of or taking any action based on this
 information is prohibited.

 Emails cannot be guaranteed to be secure or free of errors or viruses. The 
 sender does not accept any liability or
 responsibility for any interception, corruption, destruction, loss, late 
 arrival or incompleteness of or tampering or
 interference with any of the information contained in this email or for its 
 incorrect delivery or non-delivery for whatsoever
 reason or for its effect on any electronic device of the recipient.

 If verification of this email or any attachment is required, please request a 
 hard copy version.
 __
 Queries to: helpd...@paltrack.co.za

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Application on GoDaddy

2012-04-03 Thread Pointbreak
You probably have another webapp already mounted as root context (in
your webapps/ROOT). You obviously can't have two webapps under the
root... 

On Tue, Apr 3, 2012, at 09:31, Satrix wrote:
 I changed the name of WAR file to ROOT.war but no luck now it's
 www.domain.com/ROOT/home :/
 From what I know there is tomcat 5 running
 
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-Application-on-GoDaddy-tp4529071p4529402.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Application on GoDaddy

2012-04-03 Thread anantasthana
You will have to set up a redirect through Apache(Not apache tomcat) or IIS
webserver 
You can set a virtual redirect which redirects all requests to
mydomain.com/myApp 
to mydomain.com:8080/webappName/

I can not remember the exact configuration but I am sure you will be able to
find them.
If not i can look at my configuration.

here are some URL's to get you started
http://stackoverflow.com/questions/603765/how-do-i-redirect-from-apache-to-tomcat
http://tomcat.apache.org/tomcat-4.1-doc/proxy-howto.html
http://tomcat.apache.org/connectors-doc/generic_howto/quick.html

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Application-on-GoDaddy-tp4529071p4529802.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Quickstart application doesn't show up with 1.5.3

2012-04-03 Thread Dominik Sandjaja
Hi,

I also just experienced this same problem. A plain quickstart project
with 1.4.19 shows the expected page when accessing
localhost:8080/myproject. Trying the same with the 1.5.5 quickstart
results in the Not found message, mentioned in the first message of
this thread. Same error with the snapshots of 1.5 and 6.0.

I started the containers with mvn jetty:run in all cases.

Is there a way to get the quickstart working again with 1.5 and up?

Thanks
Dominik

Am Freitag, den 09.12.2011, 12:10 +0100 schrieb Martin Grigorov:
 Hi Gabor,
 
 It looks like there is a difference in the configured context path.
 I'm not sure how you start it - with mvn jetty:run or with Start.java.
 I'd recommend you to use Start.java. It gives you much faster
 development cycle.
 
 On Fri, Dec 9, 2011 at 2:15 AM, Kincses, Gabor gkinc...@paypal.com wrote:
  No luck with 1.5-SNAPSHOT, either, but 1.4.9. works fine.  This is the 
  error I'm getting:
 
  http://localhost:8080/myproject, with 1.5.3 the basic Wicket it works! page 
  shows up when hitting http://localhost:8080.  This doesn't happen with 
  1.4.9.
 
  HTTP ERROR 404
  Problem accessing /myproject. Reason:
 
 Not Found
 
  
  Powered by Jetty://
 
  I have tried various combinations of mvn versions (2.2.1 vs. 3.0.3) and 
  OSes (Linux 2.6, MacOS Snow Leopard).
 
  Please help,
  Gabor
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Quickstart application doesn't show up with 1.5.3

2012-04-03 Thread Martin Grigorov
Hi,

Here is what I did:
1) go to http://wicket.apache.org/start/quickstart.html
2) copy
mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
-DarchetypeArtifactId=wicket-archetype-quickstart
-DarchetypeVersion=1.5.5 -DgroupId=com.mycompany
-DartifactId=myproject
-DarchetypeRepository=https://repository.apache.org/
-DinteractiveMode=false
3) paste/run it in some folder
4) cd myproject
5) mvn jetty:run ( I use Maven 3.0.3)

All is fine here.

On Tue, Apr 3, 2012 at 9:24 PM, Dominik Sandjaja domi...@dadadom.de wrote:
 Hi,

 I also just experienced this same problem. A plain quickstart project
 with 1.4.19 shows the expected page when accessing
 localhost:8080/myproject. Trying the same with the 1.5.5 quickstart
 results in the Not found message, mentioned in the first message of
 this thread. Same error with the snapshots of 1.5 and 6.0.

 I started the containers with mvn jetty:run in all cases.

 Is there a way to get the quickstart working again with 1.5 and up?

 Thanks
 Dominik

 Am Freitag, den 09.12.2011, 12:10 +0100 schrieb Martin Grigorov:
 Hi Gabor,

 It looks like there is a difference in the configured context path.
 I'm not sure how you start it - with mvn jetty:run or with Start.java.
 I'd recommend you to use Start.java. It gives you much faster
 development cycle.

 On Fri, Dec 9, 2011 at 2:15 AM, Kincses, Gabor gkinc...@paypal.com wrote:
  No luck with 1.5-SNAPSHOT, either, but 1.4.9. works fine.  This is the 
  error I'm getting:
 
  http://localhost:8080/myproject, with 1.5.3 the basic Wicket it works! 
  page shows up when hitting http://localhost:8080.  This doesn't happen 
  with 1.4.9.
 
  HTTP ERROR 404
  Problem accessing /myproject. Reason:
 
     Not Found
 
  
  Powered by Jetty://
 
  I have tried various combinations of mvn versions (2.2.1 vs. 3.0.3) and 
  OSes (Linux 2.6, MacOS Snow Leopard).
 
  Please help,
  Gabor
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 






 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Quickstart application doesn't show up with 1.5.3

2012-04-03 Thread Jörgen Persson
I did the steps that Martin described and

1) http://localhost:8080/myproject  = page not found
2) http://localhost:8080  = OK

/Jörgen

2012/4/3 Martin Grigorov mgrigo...@apache.org

 Hi,

 Here is what I did:
 1) go to http://wicket.apache.org/start/quickstart.html
 2) copy
 mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
 -DarchetypeArtifactId=wicket-archetype-quickstart
 -DarchetypeVersion=1.5.5 -DgroupId=com.mycompany
 -DartifactId=myproject
 -DarchetypeRepository=https://repository.apache.org/
 -DinteractiveMode=false
 3) paste/run it in some folder
 4) cd myproject
 5) mvn jetty:run ( I use Maven 3.0.3)

 All is fine here.

 On Tue, Apr 3, 2012 at 9:24 PM, Dominik Sandjaja domi...@dadadom.de
 wrote:
  Hi,
 
  I also just experienced this same problem. A plain quickstart project
  with 1.4.19 shows the expected page when accessing
  localhost:8080/myproject. Trying the same with the 1.5.5 quickstart
  results in the Not found message, mentioned in the first message of
  this thread. Same error with the snapshots of 1.5 and 6.0.
 
  I started the containers with mvn jetty:run in all cases.
 
  Is there a way to get the quickstart working again with 1.5 and up?
 
  Thanks
  Dominik
 
  Am Freitag, den 09.12.2011, 12:10 +0100 schrieb Martin Grigorov:
  Hi Gabor,
 
  It looks like there is a difference in the configured context path.
  I'm not sure how you start it - with mvn jetty:run or with Start.java.
  I'd recommend you to use Start.java. It gives you much faster
  development cycle.
 
  On Fri, Dec 9, 2011 at 2:15 AM, Kincses, Gabor gkinc...@paypal.com
 wrote:
   No luck with 1.5-SNAPSHOT, either, but 1.4.9. works fine.  This is
 the error I'm getting:
  
   http://localhost:8080/myproject, with 1.5.3 the basic Wicket it
 works! page shows up when hitting http://localhost:8080.  This doesn't
 happen with 1.4.9.
  
   HTTP ERROR 404
   Problem accessing /myproject. Reason:
  
  Not Found
  
   
   Powered by Jetty://
  
   I have tried various combinations of mvn versions (2.2.1 vs. 3.0.3)
 and OSes (Linux 2.6, MacOS Snow Leopard).
  
   Please help,
   Gabor
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Quickstart application doesn't show up with 1.5.3

2012-04-03 Thread Dominik Sandjaja
Hi,

I did exactly the same (see my shell output below) but afterwards
accessing http://localhost:8080/myproject results in the mentioned HTTP
ERROR 404 with Not Found.

If anyone needs more information about versions of software, I am happy
to provide that :-)

Thanks
Dominik

[ds@illuminati][21:44:51]
(...wicklung/workspace)$ mvn archetype:generate
-DarchetypeGroupId=org.apache.wicket
-DarchetypeArtifactId=wicket-archetype-quickstart
-DarchetypeVersion=1.5.5 -DgroupId=com.mycompany -DartifactId=myproject
-DarchetypeRepository=https://repository.apache.org/
-DinteractiveMode=false
/usr/lib/jvm/java
[INFO] Scanning for projects...
[INFO] 
[INFO]

[INFO] Building Maven Stub Project (No POM) 1
[INFO]

[INFO] 
[INFO]  maven-archetype-plugin:2.2:generate (default-cli) @
standalone-pom 
[INFO] 
[INFO]  maven-archetype-plugin:2.2:generate (default-cli) @
standalone-pom 
[INFO] 
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @
standalone-pom ---
[INFO] Generating project in Batch mode
[INFO] Archetype defined by properties
[INFO]

[INFO] Using following parameters for creating project from Archetype:
wicket-archetype-quickstart:1.5.5
[INFO]

[INFO] Parameter: groupId, Value: com.mycompany
[INFO] Parameter: artifactId, Value: myproject
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: com.mycompany
[INFO] Parameter: packageInPathFormat, Value: com/mycompany
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: com.mycompany
[INFO] Parameter: groupId, Value: com.mycompany
[INFO] Parameter: artifactId, Value: myproject
[INFO] project created from Archetype in
dir: /home/ds/Entwicklung/workspace/myproject
[INFO]

[INFO] BUILD SUCCESS
[INFO]

[INFO] Total time: 2.866s
[INFO] Finished at: Tue Apr 03 21:45:12 CEST 2012
[INFO] Final Memory: 8M/81M
[INFO]


[ds@illuminati][21:45:12]
(...wicklung/workspace)$ mvn -version
/usr/lib/jvm/java
Apache Maven 3.0.3 (rNON-CANONICAL_2011-10-11_11-57_mockbuild;
2011-10-11 13:57:02+0200)
Maven home: /usr/share/maven
Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: linux, version: 3.3.0-8.fc16.i686, arch: i386, family:
unix
[ds@illuminati][21:45:30]
(...wicklung/workspace)$ cd myproject
[ds@illuminati][21:45:34]
(...orkspace/myproject)$ mvn jetty:run
/usr/lib/jvm/java
[INFO] Scanning for projects...
[INFO] 
[INFO]

[INFO] Building quickstart 1.0-SNAPSHOT
[INFO]

[INFO] 
[INFO]  jetty-maven-plugin:7.5.0.v20110901:run (default-cli) @
myproject 
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
myproject ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
myproject ---
[WARNING] File encoding has not been set, using platform encoding UTF-8,
i.e. build is platform dependent!
[INFO] Compiling 2 source files
to /home/ds/Entwicklung/workspace/myproject/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources
(default-testResources) @ myproject ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile)
@ myproject ---
[WARNING] File encoding has not been set, using platform encoding UTF-8,
i.e. build is platform dependent!
[INFO] Compiling 2 source files
to /home/ds/Entwicklung/workspace/myproject/target/test-classes
[INFO] 
[INFO]  jetty-maven-plugin:7.5.0.v20110901:run (default-cli) @
myproject 
[INFO] 
[INFO] --- jetty-maven-plugin:7.5.0.v20110901:run (default-cli) @
myproject ---
[INFO] Configuring Jetty for project: quickstart
[INFO]
webAppSourceDirectory /home/ds/Entwicklung/workspace/myproject/src/main/webapp 
does not exist. Defaulting to 
/home/ds/Entwicklung/workspace/myproject/src/main/webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = 

Re: Quickstart application doesn't show up with 1.5.3

2012-04-03 Thread Dominik Sandjaja
Am Dienstag, den 03.04.2012, 21:47 +0200 schrieb Jörgen Persson:
 I did the steps that Martin described and
 
 1) http://localhost:8080/myproject  = page not found
 2) http://localhost:8080  = OK

Same here.

 
 /Jörgen
 
 2012/4/3 Martin Grigorov mgrigo...@apache.org
 
  Hi,
 
  Here is what I did:
  1) go to http://wicket.apache.org/start/quickstart.html
  2) copy
  mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
  -DarchetypeArtifactId=wicket-archetype-quickstart
  -DarchetypeVersion=1.5.5 -DgroupId=com.mycompany
  -DartifactId=myproject
  -DarchetypeRepository=https://repository.apache.org/
  -DinteractiveMode=false
  3) paste/run it in some folder
  4) cd myproject
  5) mvn jetty:run ( I use Maven 3.0.3)
 
  All is fine here.
 
  On Tue, Apr 3, 2012 at 9:24 PM, Dominik Sandjaja domi...@dadadom.de
  wrote:
   Hi,
  
   I also just experienced this same problem. A plain quickstart project
   with 1.4.19 shows the expected page when accessing
   localhost:8080/myproject. Trying the same with the 1.5.5 quickstart
   results in the Not found message, mentioned in the first message of
   this thread. Same error with the snapshots of 1.5 and 6.0.
  
   I started the containers with mvn jetty:run in all cases.
  
   Is there a way to get the quickstart working again with 1.5 and up?
  
   Thanks
   Dominik
  
   Am Freitag, den 09.12.2011, 12:10 +0100 schrieb Martin Grigorov:
   Hi Gabor,
  
   It looks like there is a difference in the configured context path.
   I'm not sure how you start it - with mvn jetty:run or with Start.java.
   I'd recommend you to use Start.java. It gives you much faster
   development cycle.
  
   On Fri, Dec 9, 2011 at 2:15 AM, Kincses, Gabor gkinc...@paypal.com
  wrote:
No luck with 1.5-SNAPSHOT, either, but 1.4.9. works fine.  This is
  the error I'm getting:
   
http://localhost:8080/myproject, with 1.5.3 the basic Wicket it
  works! page shows up when hitting http://localhost:8080.  This doesn't
  happen with 1.4.9.
   
HTTP ERROR 404
Problem accessing /myproject. Reason:
   
   Not Found
   

Powered by Jetty://
   
I have tried various combinations of mvn versions (2.2.1 vs. 3.0.3)
  and OSes (Linux 2.6, MacOS Snow Leopard).
   
Please help,
Gabor
   
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
  
  
  
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Quickstart application doesn't show up with 1.5.3

2012-04-03 Thread Martin Grigorov
Hi Dominic,

You want to reach it at http://localhost:8080/myproject instead of
http://localhost:8080 ?
If so consult with jetty-maven-plugin configuration. You need to set
the contextPath parameter.

On Tue, Apr 3, 2012 at 9:53 PM, Dominik Sandjaja domi...@dadadom.de wrote:
 Am Dienstag, den 03.04.2012, 21:47 +0200 schrieb Jörgen Persson:
 I did the steps that Martin described and

 1) http://localhost:8080/myproject  = page not found
 2) http://localhost:8080  = OK

 Same here.


 /Jörgen

 2012/4/3 Martin Grigorov mgrigo...@apache.org

  Hi,
 
  Here is what I did:
  1) go to http://wicket.apache.org/start/quickstart.html
  2) copy
  mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
  -DarchetypeArtifactId=wicket-archetype-quickstart
  -DarchetypeVersion=1.5.5 -DgroupId=com.mycompany
  -DartifactId=myproject
  -DarchetypeRepository=https://repository.apache.org/
  -DinteractiveMode=false
  3) paste/run it in some folder
  4) cd myproject
  5) mvn jetty:run ( I use Maven 3.0.3)
 
  All is fine here.
 
  On Tue, Apr 3, 2012 at 9:24 PM, Dominik Sandjaja domi...@dadadom.de
  wrote:
   Hi,
  
   I also just experienced this same problem. A plain quickstart project
   with 1.4.19 shows the expected page when accessing
   localhost:8080/myproject. Trying the same with the 1.5.5 quickstart
   results in the Not found message, mentioned in the first message of
   this thread. Same error with the snapshots of 1.5 and 6.0.
  
   I started the containers with mvn jetty:run in all cases.
  
   Is there a way to get the quickstart working again with 1.5 and up?
  
   Thanks
   Dominik
  
   Am Freitag, den 09.12.2011, 12:10 +0100 schrieb Martin Grigorov:
   Hi Gabor,
  
   It looks like there is a difference in the configured context path.
   I'm not sure how you start it - with mvn jetty:run or with Start.java.
   I'd recommend you to use Start.java. It gives you much faster
   development cycle.
  
   On Fri, Dec 9, 2011 at 2:15 AM, Kincses, Gabor gkinc...@paypal.com
  wrote:
No luck with 1.5-SNAPSHOT, either, but 1.4.9. works fine.  This is
  the error I'm getting:
   
http://localhost:8080/myproject, with 1.5.3 the basic Wicket it
  works! page shows up when hitting http://localhost:8080.  This doesn't
  happen with 1.4.9.
   
HTTP ERROR 404
Problem accessing /myproject. Reason:
   
   Not Found
   

Powered by Jetty://
   
I have tried various combinations of mvn versions (2.2.1 vs. 3.0.3)
  and OSes (Linux 2.6, MacOS Snow Leopard).
   
Please help,
Gabor
   
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
  
  
  
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Quickstart application doesn't show up with 1.5.3

2012-04-03 Thread Dominik Sandjaja
Hi,

OK, I just realised my mistake: The quickstart page still mentions that
the application is reachable via localhost:8080/myproject, but it
actually is already at the root level (/).

I thought that the page I see is just the it works message (like the
apache httpd or tomcat pages), not the actual start page of the project.

So, mea culpa, I misread the information provided.

Thanks for the hint!

Dominik

Am Dienstag, den 03.04.2012, 21:56 +0200 schrieb Martin Grigorov:
 Hi Dominic,
 
 You want to reach it at http://localhost:8080/myproject instead of
 http://localhost:8080 ?
 If so consult with jetty-maven-plugin configuration. You need to set
 the contextPath parameter.
 
 On Tue, Apr 3, 2012 at 9:53 PM, Dominik Sandjaja domi...@dadadom.de wrote:
  Am Dienstag, den 03.04.2012, 21:47 +0200 schrieb Jörgen Persson:
  I did the steps that Martin described and
 
  1) http://localhost:8080/myproject  = page not found
  2) http://localhost:8080  = OK
 
  Same here.
 
 
  /Jörgen
 
  2012/4/3 Martin Grigorov mgrigo...@apache.org
 
   Hi,
  
   Here is what I did:
   1) go to http://wicket.apache.org/start/quickstart.html
   2) copy
   mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
   -DarchetypeArtifactId=wicket-archetype-quickstart
   -DarchetypeVersion=1.5.5 -DgroupId=com.mycompany
   -DartifactId=myproject
   -DarchetypeRepository=https://repository.apache.org/
   -DinteractiveMode=false
   3) paste/run it in some folder
   4) cd myproject
   5) mvn jetty:run ( I use Maven 3.0.3)
  
   All is fine here.
  
   On Tue, Apr 3, 2012 at 9:24 PM, Dominik Sandjaja domi...@dadadom.de
   wrote:
Hi,
   
I also just experienced this same problem. A plain quickstart project
with 1.4.19 shows the expected page when accessing
localhost:8080/myproject. Trying the same with the 1.5.5 quickstart
results in the Not found message, mentioned in the first message of
this thread. Same error with the snapshots of 1.5 and 6.0.
   
I started the containers with mvn jetty:run in all cases.
   
Is there a way to get the quickstart working again with 1.5 and up?
   
Thanks
Dominik
   
Am Freitag, den 09.12.2011, 12:10 +0100 schrieb Martin Grigorov:
Hi Gabor,
   
It looks like there is a difference in the configured context path.
I'm not sure how you start it - with mvn jetty:run or with Start.java.
I'd recommend you to use Start.java. It gives you much faster
development cycle.
   
On Fri, Dec 9, 2011 at 2:15 AM, Kincses, Gabor gkinc...@paypal.com
   wrote:
 No luck with 1.5-SNAPSHOT, either, but 1.4.9. works fine.  This is
   the error I'm getting:

 http://localhost:8080/myproject, with 1.5.3 the basic Wicket it
   works! page shows up when hitting http://localhost:8080.  This doesn't
   happen with 1.4.9.

 HTTP ERROR 404
 Problem accessing /myproject. Reason:

Not Found

 
 Powered by Jetty://

 I have tried various combinations of mvn versions (2.2.1 vs. 3.0.3)
   and OSes (Linux 2.6, MacOS Snow Leopard).

 Please help,
 Gabor

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org

   
   
   
   
   
   
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
  
  
  
   --
   Martin Grigorov
   jWeekend
   Training, Consulting, Development
   http://jWeekend.com
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to make a div containing ajax link clickable

2012-04-03 Thread Richard W. Adams
add(new AjaxEventBehavior(onclick)

RAM /abr./: Rarely Adequate Memory. 



From:   jason jason.novo...@gmail.com
To: users@wicket.apache.org
Date:   04/03/2012 03:02 PM
Subject:how to make a div containing ajax link clickable



Hi,

What is the best way to make a div clickable? I'd like to use an AjaxLink
such that whenever a user clicks within the outerdiv I can handle it 
within
the onClick method of AjaxLink

div class=box
   img.../
div class=subbox
 some text
/div
/div

Thanks, Jason

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-make-a-div-containing-ajax-link-clickable-tp4530016p4530016.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




**

This email and any attachments may contain information that is confidential 
and/or privileged for the sole use of the intended recipient.  Any use, review, 
disclosure, copying, distribution or reliance by others, and any forwarding of 
this email or its contents, without the express permission of the sender is 
strictly prohibited by law.  If you are not the intended recipient, please 
contact the sender immediately, delete the e-mail and destroy all copies.
**


Re: Quickstart application doesn't show up with 1.5.3

2012-04-03 Thread Martin Grigorov
The documentation is fixed!

On Tue, Apr 3, 2012 at 10:04 PM, Dominik Sandjaja domi...@dadadom.de wrote:
 Hi,

 OK, I just realised my mistake: The quickstart page still mentions that
 the application is reachable via localhost:8080/myproject, but it
 actually is already at the root level (/).

 I thought that the page I see is just the it works message (like the
 apache httpd or tomcat pages), not the actual start page of the project.

 So, mea culpa, I misread the information provided.

 Thanks for the hint!

 Dominik

 Am Dienstag, den 03.04.2012, 21:56 +0200 schrieb Martin Grigorov:
 Hi Dominic,

 You want to reach it at http://localhost:8080/myproject instead of
 http://localhost:8080 ?
 If so consult with jetty-maven-plugin configuration. You need to set
 the contextPath parameter.

 On Tue, Apr 3, 2012 at 9:53 PM, Dominik Sandjaja domi...@dadadom.de wrote:
  Am Dienstag, den 03.04.2012, 21:47 +0200 schrieb Jörgen Persson:
  I did the steps that Martin described and
 
  1) http://localhost:8080/myproject  = page not found
  2) http://localhost:8080  = OK
 
  Same here.
 
 
  /Jörgen
 
  2012/4/3 Martin Grigorov mgrigo...@apache.org
 
   Hi,
  
   Here is what I did:
   1) go to http://wicket.apache.org/start/quickstart.html
   2) copy
   mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
   -DarchetypeArtifactId=wicket-archetype-quickstart
   -DarchetypeVersion=1.5.5 -DgroupId=com.mycompany
   -DartifactId=myproject
   -DarchetypeRepository=https://repository.apache.org/
   -DinteractiveMode=false
   3) paste/run it in some folder
   4) cd myproject
   5) mvn jetty:run ( I use Maven 3.0.3)
  
   All is fine here.
  
   On Tue, Apr 3, 2012 at 9:24 PM, Dominik Sandjaja domi...@dadadom.de
   wrote:
Hi,
   
I also just experienced this same problem. A plain quickstart 
project
with 1.4.19 shows the expected page when accessing
localhost:8080/myproject. Trying the same with the 1.5.5 quickstart
results in the Not found message, mentioned in the first message of
this thread. Same error with the snapshots of 1.5 and 6.0.
   
I started the containers with mvn jetty:run in all cases.
   
Is there a way to get the quickstart working again with 1.5 and up?
   
Thanks
Dominik
   
Am Freitag, den 09.12.2011, 12:10 +0100 schrieb Martin Grigorov:
Hi Gabor,
   
It looks like there is a difference in the configured context path.
I'm not sure how you start it - with mvn jetty:run or with 
Start.java.
I'd recommend you to use Start.java. It gives you much faster
development cycle.
   
On Fri, Dec 9, 2011 at 2:15 AM, Kincses, Gabor gkinc...@paypal.com
   wrote:
 No luck with 1.5-SNAPSHOT, either, but 1.4.9. works fine.  This is
   the error I'm getting:

 http://localhost:8080/myproject, with 1.5.3 the basic Wicket it
   works! page shows up when hitting http://localhost:8080.  This doesn't
   happen with 1.4.9.

 HTTP ERROR 404
 Problem accessing /myproject. Reason:

    Not Found

 
 Powered by Jetty://

 I have tried various combinations of mvn versions (2.2.1 vs. 3.0.3)
   and OSes (Linux 2.6, MacOS Snow Leopard).

 Please help,
 Gabor

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org

   
   
   
   
   
   
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
  
  
  
   --
   Martin Grigorov
   jWeekend
   Training, Consulting, Development
   http://jWeekend.com
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 






 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



wicketstuff.org - down

2012-04-03 Thread Jeffrey Schneller
Wicketstuff.org appears to be down.  Any ideas on when it will be back up?




Re: wicketstuff.org - down

2012-04-03 Thread Martin Grigorov
http://wicketstuff.github.com/

On Tue, Apr 3, 2012 at 11:14 PM, Jeffrey Schneller
jeffrey.schnel...@envisa.com wrote:
 Wicketstuff.org appears to be down.  Any ideas on when it will be back up?





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: wicketstuff.org - down

2012-04-03 Thread Brown, Berlin [GCG-PFS]
Could someone add a redirect to the wicketstuff github site.  And I assuming 
that github doesn’t host java web applications, so the java web apps are 
somewhere else?

-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org] 
Sent: Tuesday, April 03, 2012 5:16 PM
To: users@wicket.apache.org
Subject: Re: wicketstuff.org - down

http://wicketstuff.github.com/

On Tue, Apr 3, 2012 at 11:14 PM, Jeffrey Schneller 
jeffrey.schnel...@envisa.com wrote:
 Wicketstuff.org appears to be down.  Any ideas on when it will be back up?





--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




Re: wicketstuff.org - down

2012-04-03 Thread Martin Grigorov
If the site is down then how the redirect would work ? :-)
Read the content of the page. There is a link to the examples

On Tue, Apr 3, 2012 at 11:23 PM, Brown, Berlin [GCG-PFS]
berlin.br...@primerica.com wrote:
 Could someone add a redirect to the wicketstuff github site.  And I assuming 
 that github doesn’t host java web applications, so the java web apps are 
 somewhere else?

 -Original Message-
 From: Martin Grigorov [mailto:mgrigo...@apache.org]
 Sent: Tuesday, April 03, 2012 5:16 PM
 To: users@wicket.apache.org
 Subject: Re: wicketstuff.org - down

 http://wicketstuff.github.com/

 On Tue, Apr 3, 2012 at 11:14 PM, Jeffrey Schneller 
 jeffrey.schnel...@envisa.com wrote:
 Wicketstuff.org appears to be down.  Any ideas on when it will be back up?





 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicketstuff.org - down

2012-04-03 Thread Igor Vaynberg
redirect on the registrar...

-igor

On Tue, Apr 3, 2012 at 2:26 PM, Martin Grigorov mgrigo...@apache.org wrote:
 If the site is down then how the redirect would work ? :-)
 Read the content of the page. There is a link to the examples

 On Tue, Apr 3, 2012 at 11:23 PM, Brown, Berlin [GCG-PFS]
 berlin.br...@primerica.com wrote:
 Could someone add a redirect to the wicketstuff github site.  And I assuming 
 that github doesn’t host java web applications, so the java web apps are 
 somewhere else?

 -Original Message-
 From: Martin Grigorov [mailto:mgrigo...@apache.org]
 Sent: Tuesday, April 03, 2012 5:16 PM
 To: users@wicket.apache.org
 Subject: Re: wicketstuff.org - down

 http://wicketstuff.github.com/

 On Tue, Apr 3, 2012 at 11:14 PM, Jeffrey Schneller 
 jeffrey.schnel...@envisa.com wrote:
 Wicketstuff.org appears to be down.  Any ideas on when it will be back up?





 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to make a div containing ajax link clickable

2012-04-03 Thread jason
This is weird... If I do something like this taken from
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/ajax/AjaxEventBehavior.html

WebMarkupContainer div=new WebMarkupContainer(div);
 div.setOutputMarkupId(true);
 div.add(new AjaxEventBehavior(onclick) {
 protected void onEvent(AjaxRequestTarget target) {
 System.out.println(ajax here!);
 }
 }

div wicket:id=divClick me/div

it works fine. However, if I do something like this:

div class=calendar-box wicket:id=calendarBox
div class=calendar-date-label/div
div class=calendar-day-label/div
/div

calendarBox.add(new AjaxEventBehavior(onclick) {
@Override
protected void onEvent(AjaxRequestTarget target) {  
 
System.out.println(ajax here!);
}
});
calendarBox.add(new Label(monthYear, monthYear.format(date)));
calendarBox.add(new Label(day, dayFormat.format(date)));

Then I get 

java.lang.ClassNotFoundException: undefined
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-make-a-div-containing-ajax-link-clickable-tp4530016p4530444.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to make a div containing ajax link clickable

2012-04-03 Thread jason
Sorry that last HTML snippet should be:

div class=calendar-box wicket:id=calendarBox
div class=calendar-date-label/div
div class=calendar-day-label/div
/div

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-make-a-div-containing-ajax-link-clickable-tp4530016p4530447.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to make a div containing ajax link clickable

2012-04-03 Thread jason
Sorry that last HTML snippet should be:









--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-make-a-div-containing-ajax-link-clickable-tp4530016p4530456.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to make a div containing ajax link clickable

2012-04-03 Thread jason
Argh Nabble keeps stripping my HTML.. but it should be

div class=calendar-box
div class=calendar-date-label span wicket:id=monthYear /span /div
div class=calendar-day-label span wicket:id=day /span /div
/div

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-make-a-div-containing-ajax-link-clickable-tp4530016p4530505.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Debugging error

2012-04-03 Thread SudeepShakya
What may be the cause for this error :

WicketMessage: Attempted to set property value on a null object. Property
expression: date1 Value: Tue Apr 17 00:00:00 NPT 2012

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Debugging-error-tp4530892p4530892.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Debugging error

2012-04-03 Thread Martin Grigorov
Hi,

It means that you use something like: new PropertyModel(object,
date), and 'object' is null, so you cannot set its 'date' property.

On Wed, Apr 4, 2012 at 6:03 AM, SudeepShakya shakyasud...@live.com wrote:
 What may be the cause for this error :

 WicketMessage: Attempted to set property value on a null object. Property
 expression: date1 Value: Tue Apr 17 00:00:00 NPT 2012

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Debugging-error-tp4530892p4530892.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to make a div containing ajax link clickable

2012-04-03 Thread Martin Grigorov
On Wed, Apr 4, 2012 at 12:55 AM, jason jason.novo...@gmail.com wrote:
 This is weird... If I do something like this taken from
 http://wicket.apache.org/apidocs/1.4/org/apache/wicket/ajax/AjaxEventBehavior.html

 WebMarkupContainer div=new WebMarkupContainer(div);
         div.setOutputMarkupId(true);
         div.add(new AjaxEventBehavior(onclick) {
             protected void onEvent(AjaxRequestTarget target) {
                 System.out.println(ajax here!);
             }
         }

 div wicket:id=divClick me/div

 it works fine. However, if I do something like this:

 div class=calendar-box wicket:id=calendarBox
                    div class=calendar-date-label/div
                    div class=calendar-day-label/div
                /div

 calendarBox.add(new AjaxEventBehavior(onclick) {
                @Override
                protected void onEvent(AjaxRequestTarget target) {
                    System.out.println(ajax here!);
                }
            });
            calendarBox.add(new Label(monthYear, monthYear.format(date)));
            calendarBox.add(new Label(day, dayFormat.format(date)));

 Then I get

 java.lang.ClassNotFoundException: undefined
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

Paste the whole stacktrace.


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/how-to-make-a-div-containing-ajax-link-clickable-tp4530016p4530444.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Debugging error

2012-04-03 Thread SudeepShakya
I used CompoundPropertyModel in form.
Sir I am creating a form which takes inputs from the user and compares the
values to the database and displays the required data from database. For
this, I have created a class(containing only getters and setters) , a class
for form, and a class for displaying the required data. So i am confused how
to implement it.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Debugging-error-tp4530892p4530973.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Debugging error

2012-04-03 Thread Martin Grigorov
Show some code

On Wed, Apr 4, 2012 at 7:19 AM, SudeepShakya shakyasud...@live.com wrote:
 I used CompoundPropertyModel in form.
 Sir I am creating a form which takes inputs from the user and compares the
 values to the database and displays the required data from database. For
 this, I have created a class(containing only getters and setters) , a class
 for form, and a class for displaying the required data. So i am confused how
 to implement it.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Debugging-error-tp4530892p4530973.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Application on GoDaddy

2012-04-03 Thread Satrix
Yes. I know that I can redirect all requests but the question is how to
deploy Java Web App on their hosting because there is something like
Parallels Panel and you have to upload your WAR file and the files are
generated (cant edit them by hand).

That's why my application is available under www.domain.com/warfilename/home
My context.xml file in the application has path= so it should start on
default path

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Application-on-GoDaddy-tp4529071p4531015.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org