Re: Prototyping mode: Automatic markup generation

2008-11-29 Thread Johan Compagner
What kind of markup? Div? input

Or do you mean we should generate a special span tag with the text
this component 'path' doesnt have markup

Problem is that we know that only at the very end of the full page render

On 28/11/2008, Casper Bang [EMAIL PROTECTED] wrote:
 While I understand the Wicket authors do not want a magic framework, I
 wonder if anyone else than me ever wished for a development mode or
 option on the error page when protyping and receiving the very typical
 org.apache.wicket.WicketRuntimeException: The component(s) below failed
 to render. A common problem is that you have added a component in code
 but forgot to reference it in the markup.

 Would it not be possible for Wicket to simply ignore the markup aspect
 if so instructed, and generate the required markup on-the-fly from the
 Java tree? Perhaps it's because I am new, but I sure run into that
 wicket message a lot. Anyway, just a though.

 /Casper

 -
 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]



my new site :)

2008-11-29 Thread Nino Saturnino Martinez Vazquez Wael

Hi guys

I've been puzzling with a new site of mine. It's a community site, still 
a bit in development. It evolves around events, it has a nice overview 
map of events, but also more traditional search for events. The idea are 
that the users enter their public events like user groups etc, so all 
events are to be made public available. And it's easy to search for 
events as well (something that I believe the sites are missing).


I am aware that theres css issues with IE ( 
http://browsershots.org/http://wheresmyevent.com/home ). But please any 
feedback are welcome..



--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: ImageButton picture.x and picture.y

2008-11-29 Thread Nino Saturnino Martinez Vazquez Wael

Hi Tim

inline reply

Tim Squires wrote:

Thanks Nino,

The model is just a quick hack to show where the imageresource is 
coming from, i.e. it's dynamic.

ahh...


The ClientSideImageMap and the older ImageMap don't give an x and y of 
the click and I don't fancy creating a map/ for every pixel in the 
image.

I surely understand...


The ImageButton does return where the user clicked on the image as 
part of the form submit.  I was hoping that the x and y could be 
mapped to a model somehow.

It should be possible I think..


How I managed to get the coords is like this

   FormObject form = new FormObject(form) {
   @Override
   protected void onSubmit() {
   info(x =  + getRequest().getParameter(picture.x));
   info(y =  + getRequest().getParameter(picture.y));
   }
   };

It would be nice to attach these values to a property, can you see a 
way of doing that?

It reminds me of something. IF you combine this technique:

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-openlayers/src/main/java/org/wicketstuff/openlayers/event/EventListenerBehavior.java

im thinking of this method :  protected abstract void 
onEvent(AjaxRequestTarget target);


So combine above with how an ordinary link or button works you should be 
able to pass on parameters either as a model or as nice parameter eg : 
protected abstract void onClick(Double x, Double y);


If you have questions just ask..


Tim

Nino Saturnino Martinez Vazquez Wael wrote:
maybe james patch can help you : 
http://www.nabble.com/Client-Side-Image-Map...-td20516107.html#a20516107 
?


Otherwise it should be  ImageMap already there..
Nino Saturnino Martinez Vazquez Wael wrote:

Hi Tim

You should get a grasp on models. But isnt it an imagearea (cant 
remember the exact name) or something you want? Image button is just 
a button which has a image...


Tim Squires wrote:

Hi,

I'm trying to retrieve the x and y coords from a user click on an 
ImageButton.  Can anyone tell me how to get these parameters in an 
onSubmit method?


Currently I'm doing

   final IModelPicture picture = new 
AbstractReadOnlyModelPicture() {


   @Override
   public Picture getObject() {
   return pictureService.findRandom();
   }
   };

   FormObject form = new FormObject(form) {
   @Override
   protected void onSubmit() {
 // picture.x and picture.y 
parameters, where are they?

   }
   };

   form.add(new ImageButton(picture, new 
ImageResource(defaults

   .getPicturesLocation(), picture)));

   add(form);

but cannot find any way of retrieving the page parameters in the 
onSubmit() - getPageParameters() returns null.


I'm using 1.4-rc1.

Thanks for any help,
Tim

-
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]



--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Problem with Crypted URL

2008-11-29 Thread shumbola

Following fix works for me until there will be new release:

In MyApplication:

protected IRequestCycleProcessor newRequestCycleProcessor() {
return new WebRequestCycleProcessor() {
protected IRequestCodingStrategy newRequestCodingStrategy() {
return new MyCryptedUrlWebRequestCodingStrategy(new
WebRequestCodingStrategy());
}
};
}

In MyCryptedUrlWebRequestCodingStrategy:

protected String onError(final Exception ex, String url)
{
//log.error(Invalid URL:  + url, ex);

return onError(ex);
}

protected String onError(final Exception ex)
{
throw new PageExpiredException(Invalid URL);
}



francisco treacy-2 wrote:
 
 yup, i suppose this happens when sessions expire. we've been having an
 increasing number of visitors and logs are really hard to read when
 you try to find an (important) exception.
 
 so i guess i'm still up for the fix :)
 
 francisco
 
 On Fri, Nov 28, 2008 at 6:35 PM, Marcus Mattila
 [EMAIL PROTECTED] wrote:
 We are also getting this when sessions expire. No big deal but would
 still like a fix. Will it be fixed in the 1.3.x branch also? Pls make
 it :)

 br,
 Marcus


 On Mon, Nov 24, 2008 at 7:30 PM, francisco treacy
 [EMAIL PROTECTED] wrote:
 johan, i'm not sure i understand correctly.

 you mean that it should have been in 1.4-rc1 but it is not?  so i
 could expect this to be fixed in 1.4-rc2 or 1.4 final?

 francisco

 On Mon, Nov 24, 2008 at 5:22 PM, Johan Compagner [EMAIL PROTECTED]
 wrote:
 hmm weird, wasnt merged yet with 4.1
 thought i did that with the big merge.

 On Mon, Nov 24, 2008 at 10:57 AM, francisco treacy 
 [EMAIL PROTECTED] wrote:

 i updated to rc1 i'm still getting stacktraces in logs with
 CryptedUrlWebRequestCodingStrategy


 ERROR 2008-11-23 13:52:17,964 [http-8080-Processor25] Invalid URL:
 ?x=5M5HhZnN1b1LpMPMBO5Pmr*YBxchBZCmSdUDJCdEYzUOOBDF1Zr0DA
 org.apache.wicket.WicketRuntimeException: Unable to decrypt the text
 '??G?K???^D?O???^G^W!^E??I?^C$'Dc5^N8^P^L'
 at
 org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:145)
at
 org.apache.wicket.util.crypt.AbstractCrypt.decryptUrlSafe(AbstractCrypt.java:67)
at
 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decodeURL(CryptedUrlWebRequestCodingStrategy.java:256)
 at
 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:99)
 at
 org.apache.wicket.Request.getRequestParameters(Request.java:172)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
at
 org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
 org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111)
at
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)
 Caused by: javax.crypto.BadPaddingException: Given final block not
 properly padded
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at 

Insights on templating and dynamic components

2008-11-29 Thread Jan Kriesten

Hi,

I just wrote up a bit on my quest to support dynamic wicket components from
template generated markup code. You'll find it here, including (Scala) code:

http://www.footprint.de/fcc/2008/11/some-wicket-scala/

It should be usable from Java as well, though!

Have fun!

Best regards, --- Jan.



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



Re: Wicket Session grows too big real fast

2008-11-29 Thread Flavius



Martijn Dashorst wrote:
 
 With Wicket 1.3 only one page should be stored in session. You should
 check if you don't keep references between pages - that would result
 in 1+N pages (with N being the number of pages you reference in your
 page).
 
 Other than that: using LDM's and DataView/DataProvider instead of
 ListView will help considerably.
 
 Martijn
 

May I ask what LDM is?  Is that Lightweight Data Model?

-- 
View this message in context: 
http://www.nabble.com/Wicket-Session-grows-too-big-real-fast-tp20697077p20754276.html
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: Wicket Session grows too big real fast

2008-11-29 Thread Jeremy Thomerson
LoadableDetachableModel


Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-Original Message-
From: Flavius [EMAIL PROTECTED]
Sent: Saturday, November 29, 2008 9:40 PM
To: users@wicket.apache.org
Subject: Re: Wicket Session grows too big real fast




Martijn Dashorst wrote:
 
 With Wicket 1.3 only one page should be stored in session. You should
 check if you don't keep references between pages - that would result
 in 1+N pages (with N being the number of pages you reference in your
 page).
 
 Other than that: using LDM's and DataView/DataProvider instead of
 ListView will help considerably.
 
 Martijn
 

May I ask what LDM is?  Is that Lightweight Data Model?

-- 
View this message in context: 
http://www.nabble.com/Wicket-Session-grows-too-big-real-fast-tp20697077p20754276.html
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: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-29 Thread Jeremy Thomerson
PS - Good suggestion - this was included.  Take a look at:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core

-- 
Jeremy Thomerson
http://www.wickettraining.com

On Tue, Nov 25, 2008 at 4:32 PM, Ryan McKinley [EMAIL PROTECTED] wrote:

 I don't know if this has already been discussed, but another part of the
 cleanup that would be nice is to group the main project and the example
 project into a folder with a common parent pom.

 For example, I find the layout of:

 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/inmethod-grid/

 much easier to use/maintain then the apparent standard of
 /wicketstuff-project  /wicketstuff-project-example

 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/

 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push-examples/

 one key thing about this change is that mvn eclipse:eclipse makes the
 example project depend on the core project

 perhaps this could be added to the 'organize' task?

 ryan



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




WicketStuff owners - please review

2008-11-29 Thread Jeremy Thomerson
Hello everyone.  I have completed the bulk of the work planned on the
WicketStuff reorg discussed earlier this week.  A status report is located
at [1] below.

If you own a WicketStuff project, PLEASE review [2] below - there are still
quite a few things I need community input on to complete.  A brief summary
of input needed:

   - There are quite a few projects in trunk that are working with Wicket
   1.3 and have had work in trunk since the 1.3 branch was created.  Since
   trunk is technically for 1.4 development, I would suggest moving these to
   the Wicket 1.3 branch.
   - There are a couple of projects in trunk that are already on 1.4, but I
   have not heard from the project owner as to whether they want their project
   moved into wicketstuff-core.
   - Wicket-SECURITY - I have no idea what to do with this one since Maurice
   is no longer with us.  Would anyone like to take ownership of it (and commit
   to keep the work up-to-date on it)?

[1] - *http://tinyurl.com/647hjz*
[2] - *http://tinyurl.com/64tdor*

Quick summary of work done:
- 21 projects migrated (including examples projects)
- 32 removed from trunk
- 73 svn commits :)
- quite a few open questions - see above

Thank you!

-- 
Jeremy Thomerson
http://www.wickettraining.com