RE: Wicket/Spring Boilerplate

2012-03-02 Thread Michael Laccetti
  #2 I'm not too sure about - doesn't calling getClientInfo() cause a 
  redirect to
 a temporary page to collect that information?
 
 No, this info will be extracted from the User-Agent header. The extended
 info like browser dimensions are extracted with the special page.

So, I call WebClientInfo.getUserAgent(), not 
WebClientInfo.getProperties.getNavigatorAppName()?


RE: Wicket/Spring Boilerplate

2012-03-01 Thread Michael Laccetti
#1 is a wonderful suggestion - was that added in 1.5?

#2 I'm not too sure about - doesn't calling getClientInfo() cause a redirect to 
a temporary page to collect that information?

#3 I originally tried it that way, but for some reason, no matter what I did, I 
couldn't get the filter to recognize the path I set for it.  Oddly enough, when 
I switched to the servlet 3 annotation, it worked.  I'd love to back this one 
out, as it forces a servlet 3 container.

Mike

-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org] 
Sent: March-01-12 2:51 AM
To: users@wicket.apache.org
Subject: Re: Wicket/Spring Boilerplate

Hi,

Thanks for sharing it!

Here are some ideas:

https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/HomePage.java#L25
Better override #renderHead(IHeaderResponse response) and use 
'response.renderXYZ()'

https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/HomePage.java#L20
You can use Session#getClientInfo() to see what is the client and if it IE then 
contribute this special .js file

https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/app/WicketFilter.java#L9
I think you can drop this class and configure the original WicketFilter in 
https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/app/WebAppInitializer.java

On Thu, Mar 1, 2012 at 2:07 AM, Michael Laccetti mich...@limone.me wrote:
 Just a quick note to folks that may be interested that I've created a Maven 
 archetype that ties together Wicket 1.5 and Spring 3.1, along with Hibernate 
 4.1/JPA 2 and logback.  It is purely annotation driven, and has no XML 
 configuration files.  Currently, users must clone the git repository [1] to 
 use the archetype, but it should be hosted on Sonatype's OSS Nexus shortly.

 Questions and comments appreciated.  :)

 Michael

 1 - https://github.com/limone/wicket-spring-boilerplate



--
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/Spring Boilerplate

2012-03-01 Thread Michael Laccetti
 Michael, I have an app on  wicket 1.4.x, spring 2.5.x and *non-JPA* hibernate
 3.5.x. Without taking wicket or other API changes into account, can you
 suggest whether or even how this archetype could be helpful in migrating to
 1.5/3.1/4.1 and perhaps JPA later on? I wouldn't want to migrate to JPA right
 now.
 
 Many thanks for the archetype in any case!
 
 Manos

There's not much to getting JPA to work vs. Hibernate - the boilerplate is set 
to use Hibernate specifically for JPA.  The only changes required would be 
performed in the SpringConfiguration class - you'd remove the 
LocalContainerEntityManagerFactoryBean (say that fast).  Instead, you'd use a 
LocalSessionFactoryBean that spits out the Hibernate SessionFactory object.  
You could then remove the JpaVendorAdapter method and change the 
TransactionManager method to return a HibernateTransactionManager.  Everything 
else should stay entirely the same.

Michael

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



Wicket/Spring Boilerplate

2012-02-29 Thread Michael Laccetti
Just a quick note to folks that may be interested that I've created a Maven 
archetype that ties together Wicket 1.5 and Spring 3.1, along with Hibernate 
4.1/JPA 2 and logback.  It is purely annotation driven, and has no XML 
configuration files.  Currently, users must clone the git repository [1] to use 
the archetype, but it should be hosted on Sonatype's OSS Nexus shortly.

Questions and comments appreciated.  :)

Michael

1 - https://github.com/limone/wicket-spring-boilerplate


Strange Serialization Error

2011-01-30 Thread Michael Laccetti
Pastebin link to the stack: http://pastebin.com/NGzaaVTg

I've done as much searching online to see if anybody else had this error, but 
I've come up empty.  I was originally using 1.4.14 but have switched to see if 
1.4.15 fixed it (nope).  Anybody have any ideas?

Michael

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



RE: Strange Serialization Error

2011-01-30 Thread Michael Laccetti
Yup - very true; I hadn't noticed that.  All sorts of casts in the .equals that 
didn't validate that the inbound object was even of the same type.  Fixed that 
and magically it went away.  Thanks!

-Original Message-
From: Pedro Santos [mailto:pedros...@gmail.com] 
Sent: January-30-11 8:28 PM
To: users@wicket.apache.org
Subject: Re: Strange Serialization Error

The error is in PivotConfiguration equals method implementation. It is possible 
trying to convert the object being tested to an PivotConfiguration to test its 
properties, but you can't assume that only PivotConfiguration objects will to 
be tested on this method.

On Sun, Jan 30, 2011 at 6:42 PM, Michael Laccetti mich...@limone.me wrote:

 Pastebin link to the stack: http://pastebin.com/NGzaaVTg

 I've done as much searching online to see if anybody else had this 
 error, but I've come up empty.  I was originally using 1.4.14 but have 
 switched to see if 1.4.15 fixed it (nope).  Anybody have any ideas?

 Michael

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




--
Pedro Henrique Oliveira dos Santos

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



Wicket Stuff - YUI Change

2009-03-03 Thread Michael Laccetti
Modified addMenuItem(String, Link) to addMenuItem(String, AbstractLink) in 
org.wicketstuff.yui.markup.html.menu2.YuiMenu so that an ExternalLink can be 
passed in.  Committed as r4586 - let me know if there are any problems with 
this.

Michael

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



RE: Wicket 1.3.5 behind a front-end proxy

2008-11-19 Thread Michael Laccetti
To get Apache 2.2 to proxy around Wicket, I have the following defined:

IfDefine PROXY
ProxyPass   /
http://localhost:8080/cware/
ProxyPassReverse/
http://localhost:8080/cware/
ProxyPassReverseCookieDomainlocalhost   .laccetti.com
ProxyPassReverseCookiePath  /cware  /
/IfDefine

Nothing special required in the web.xml, Tomcat doesn't know that it is
being proxied, etc.

HTH,

Mike

 -Original Message-
 From: Anton Veretennikov [mailto:[EMAIL PROTECTED]
 Sent: November-19-08 6:34 AM
 To: users@wicket.apache.org
 Subject: Wicket 1.3.5 behind a front-end proxy
 
 Hi,
 
 http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
 shows this configuration:
 
 VirtualHost ordering.company.com
   ProxyPass / http://appserver.company.com:8080/ordering/
   ProxyPassReverse / http://appserver.company.com:8080/ordering/
   # Apache 2.2+ only
   ProxyPassReverseCookiePath /ordering /
 /VirtualHost
 
 as impossible until getApplicationSettings().setContextPath(/);
 But it says in 1.3 it must work because it uses relative paths.
 My experience shows that contextPath is still added in URL in links
 and I don't know why.
 
 Was anyone successfull in deploing Wicket 1.3.5 when Tomcat is used by
 Apache through mod_proxy?
 If yes, please, send me example of configuration. What I need to do in
 web.xml?
 
 Thank you,
 Tony.
 
 -
 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: Wizard Form problems in IE

2008-06-10 Thread Michael Laccetti

The issue seems to be related to having a wizard (with the inherent form) and
the nesting another form within it.  In Firefox, the nested form is ignored;
in IE the nested form is the form that is submitted when the next button
is clicked, instead of the wizard form itself.


Eelco Hillenius wrote:
 
 No ideas, sorry. Wizard seems to be working fine for us. I'm afraid
 you'll have to dig deeper.
 
 Eelco


-
--
Michael Laccetti (416)558-9718
S2G Limited   http://www.s2g.ca/
-- 
View this message in context: 
http://www.nabble.com/Wizard-Form-problems-in-IE-tp17681740p17765553.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: Wizard Form problems in IE

2008-06-10 Thread Michael Laccetti

No, 1.3.3.  The issue is that I had two submit buttons, so that the search
form submit button was triggering the wizard form, since the nested form
isn't an actual form.  I modified to to use an IndicatingAjaxButton tagged
to an anchor, and my problem went away.


Martijn Dashorst wrote:
 
 If you are working on wicket 1.2, nested forms are not supported by
 Wicket. This is only 1.3 or newer.
 
 Martijn


-
--
Michael Laccetti (416)558-9718
S2G Limited   http://www.s2g.ca/
-- 
View this message in context: 
http://www.nabble.com/Wizard-Form-problems-in-IE-tp17681740p17768107.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]



FileUploadField, CSS, and empty form values

2008-06-09 Thread Michael Laccetti

I'm trying to attach some CSS to the browse button in a FileUploadField. 
Rather, since this is actually impossible, I'm hiding the actual field, and
creating a pretty looking fake similar to what this page does:
http://www.quirksmode.org/dom/inputfile.html.  The issue is that when I
submit the form, even though the field seems to be populated in the browser,
the value doesn't make it to the form itself.  Is there some magic required
to get the field value to actually populate in the form?

-
--
Michael Laccetti (416)558-9718
S2G Limited   http://www.s2g.ca/
-- 
View this message in context: 
http://www.nabble.com/FileUploadField%2C-CSS%2C-and-empty-form-values-tp17735661p17735661.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: FileUploadField, CSS, and empty form values

2008-06-09 Thread Michael Laccetti

Yeah, I have been doing so, and do not see the field contents going through. 
I found an alternative, though, because I stupidly forgot that file upload +
AJAX = no worky.  Instead, I've embedded an iframe, and got the form
submission going on through there, and that seems to be doing the trick. 
Though my CSS issues are still there, but that has nothing to do with Wicket
itself.


Nino.Martinez wrote:
 
 I'd suggest to use firebug to check if it actually works. There is no 
 magic in this at least..:)
 


-
--
Michael Laccetti (416)558-9718
S2G Limited   http://www.s2g.ca/
-- 
View this message in context: 
http://www.nabble.com/FileUploadField%2C-CSS%2C-and-empty-form-values-tp17735661p17737993.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: FileUploadField, CSS, and empty form values

2008-06-09 Thread Michael Laccetti

Took me a while to figure out how to get the nice looking stuff to properly
hide the old-and-ugly implementation.  Once I got it worked out (woo
Firebug), things moved along.  I just need to finalize the AJAX callback
between the iframe and the parent page.

Here's a sample of the nice looking file upload field:
http://www.nihilist.ca/images/file_upload_css.jpg


Nino.Martinez wrote:
 Ahh, yeah I remember something about that...
 
 Great to hear that you got it working. Whats the CSS issue(I've been 
 thinking of doing a nice fileupload myself)?


-
--
Michael Laccetti (416)558-9718
S2G Limited   http://www.s2g.ca/
-- 
View this message in context: 
http://www.nabble.com/FileUploadField%2C-CSS%2C-and-empty-form-values-tp17735661p17739810.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]



Wizard Form problems in IE

2008-06-05 Thread Michael Laccetti

I've implemented a Wizard that uses dynamic steps to process things based on
user input.  Everything works under Firefox, but when I started testing in
IE I've noticed that the next/back button do not seem to do anything. The
form is posted, but the same step is rendered.  I turned on debug logging,
to see if anything was amiss, but cannot find any mention of a problem.  I
added breakpoints in the code to the next button's on click method, but it
doesn't seem to get triggered.  Any ideas?

Mike

-
--
Michael Laccetti (416)558-9718
S2G Limited   http://www.s2g.ca/
-- 
View this message in context: 
http://www.nabble.com/Wizard-Form-problems-in-IE-tp17681740p17681740.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]



Dynamic Wizards

2008-04-20 Thread Michael Laccetti
Quick question about the dynamic wizard:  is passing in the model via
constructor the only way to share a model between model steps?

Mike


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



Re: ReCaptcha Panel

2008-04-14 Thread Michael Laccetti

Perhaps this would do well as an addition to wicketstuff contribs?


Dan Kaplan-3 wrote:
 
 Here is the code for the recaptcha panel.  I don't feel like creating a
 project for this but others have expressed interest in it. 
 
 Panel: http://pastebin.org/29726
 
 SRC: http://pastebin.org/29725
 
  
 
 NOTE: this library has a dependency lib.  You can download it here:
 http://code.google.com/p/recaptcha/downloads/list
 
  
 
 Obviously, you just need the lib for java.
 
  
 
  
 
  
 
 
 


-
--
Michael Laccetti (416)558-9718
S2G Limited   http://www.s2g.ca/
-- 
View this message in context: 
http://www.nabble.com/ReCaptcha-Panel-tp16685718p16687650.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]



Integrating Wicket and Jersey

2008-04-09 Thread Michael Laccetti

Is there any way to integrate Wicket and Jersey (REST framework) in the same
webapp without requiring each to have a unique mapping (Wicket filter set to
/web/* and Jersey filter set somewhere else)?  I looked into the web.xml to
see if there was a way to put exclusions in a filter mapping, but no go.

Mike

-
--
Michael Laccetti (416)558-9718
S2G Limited   http://www.s2g.ca/
-- 
View this message in context: 
http://www.nabble.com/Integrating-Wicket-and-Jersey-tp16595984p16595984.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: Integrating Wicket and Jersey

2008-04-09 Thread Michael Laccetti

Ah, that's good news.  Appreciate the info.

Mike

igor.vaynberg wrote:
 
 you can make both to /*
 
 wicket is a filter, so if it thinks it cant handle the url it will let
 it fall through at which point jersey will have a try
 
 -igor
 


-
--
Michael Laccetti (416)558-9718
S2G Limited   http://www.s2g.ca/
-- 
View this message in context: 
http://www.nabble.com/Integrating-Wicket-and-Jersey-tp16595984p16597161.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 and Existing Strut application

2008-04-08 Thread Michael Laccetti

Page by page would be messier than section by section, especially if one page
references another and you have to jump from the Struts app to the Wicket
app.

Mike


xdirewolfx wrote:
 
 Hi,
 
 I'm thinking of migrating the current strut web app to wicket. However,
 the application is pretty large in size. Is there any pointer to migrate
 page by page or section by section? (2 web app existing at the same time
 and behaving as a single web app)
 
 Thank you in advance
 


-
--
Michael Laccetti (416)558-9718
S2G Limited   http://www.s2g.ca/
-- 
View this message in context: 
http://www.nabble.com/Wicket-and-Existing-Strut-application-tp16547984p16560784.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]



CSS not working

2008-04-08 Thread Michael Laccetti

For some reason the CSS links that I have embedded in my HTML are not
working.  The HTML validates perfectly, the CSS URL is available as I can
browse to it, and yet the CSS is not being rendered by the browser, nor does
Firebug even show it as being requested.  For something so simple, I'm
consistently stumped.  I've checked everything, and cannot see what is
wrong.  The HTML/CSS (rendered) is here:
http://papernapkin.org/pastebin/view/376/ .  A screenshot of Firebug is
available here:
http://papernapkin.org/pastebin/resource/images/imageEntryId/379 .  Please
note the weird stylesheet link; why does it include display:none?  

As an aside, I embedded the CSS straight into the page, and it works.  Given
that I have the same problem with the CSS not rendering in both IE and
Firefox, I lean towards wicket somehow interrupting the regular flow of
things, but I cannot figure out what/how.

Mike

-
--
Michael Laccetti (416)558-9718
S2G Limited   http://www.s2g.ca/
-- 
View this message in context: 
http://www.nabble.com/CSS-not-working-tp16560405p16560405.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: CSS not working

2008-04-08 Thread Michael Laccetti
{\rtf1\ansi\ansicpg1252\fromtext \deff0{\fonttbl

{\f0\fswiss Arial;}

{\f1\fmodern Courier New;}

{\f2\fnil\fcharset2 Symbol;}

{\f3\fmodern\fcharset0 Courier New;}}

{\colortbl\red0\green0\blue0;\red0\green0\blue255;}

\uc1\pard\plain\deftab360 \f0\fs20 Yeah, I have.  The link is generated properly, but Firebug doesn't even show any attempt to actually get the CSS.\par

\par

Mike\par

\par

\par

-Original Message-\par

From: [EMAIL PROTECTED] on behalf of James Carman\par

Sent: Tue 4/8/2008 11:27 AM\par

To: [EMAIL PROTECTED]

Subject: Re: CSS not working\par

 \par

Have you tried using wicket:link around your link tag for your CSS?\par

\par

On Tue, Apr 8, 2008 at 11:22 AM, Michael Laccetti [EMAIL PROTECTED] wrote:\par

\par

  For some reason the CSS links that I have embedded in my HTML are not\par

  working.  The HTML validates perfectly, the CSS URL is available as I can\par

  browse to it, and yet the CSS is not being rendered by the browser, nor does\par

  Firebug even show it as being requested.  For something so simple, I'm\par

  consistently stumped.  I've checked everything, and cannot see what is\par

  wrong.  The HTML/CSS (rendered) is here:\par

  http://papernapkin.org/pastebin/view/376/ .  A screenshot of Firebug is\par

  available here:\par

  http://papernapkin.org/pastebin/resource/images/imageEntryId/379 .  Please\par

  note the weird stylesheet link; why does it include display:none?\par

\par

  As an aside, I embedded the CSS straight into the page, and it works.  Given\par

  that I have the same problem with the CSS not rendering in both IE and\par

  Firefox, I lean towards wicket somehow interrupting the regular flow of\par

  things, but I cannot figure out what/how.\par

\par

  Mike\par

\par

  -\par

  --\par

  Michael Laccetti (416)558-9718\par

  S2G Limited   http://www.s2g.ca/\par

  --\par

  View this message in context: http://www.nabble.com/CSS-not-working-tp16560405p16560405.html\par

  Sent from the Wicket - User mailing list archive at Nabble.com.\par

\par

\par

  -\par

  To unsubscribe, e-mail: [EMAIL PROTECTED]

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

\par

\par

\par

-\par

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

\par

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

Re: CSS not working

2008-04-08 Thread Michael Laccetti

Would you believe it but it was AdblockPlus blocking access to the CSS?  Ugh. 
I blew the last eight hours on this.

Thanks for the help.  :)


jwcarman wrote:
 
 Have you tried using wicket:link around your link tag for your CSS?
 


-
--
Michael Laccetti (416)558-9718
S2G Limited   http://www.s2g.ca/
-- 
View this message in context: 
http://www.nabble.com/CSS-not-working-tp16560405p16568950.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-contrib] TinyMCE Hackery

2007-11-28 Thread Michael Laccetti
Okay, I will switch from -rc1 to SNAPSHOT.  Regarding servlet 2.4, I mistakenly 
thought that it was the version that Wicket was using.  Apparently not; I will 
switch back to 2.3.

Mike

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Bille
Sent: November 28, 2007 3:10 AM
To: users@wicket.apache.org
Subject: Re: [wicket-contrib] TinyMCE Hackery

Some comments to your push:

- You should use wicket-1.3.0-SNAPSHOT instead of wicket-1.3.0-rc1. It's
only when you make releases of tinymce, that you fix yourself on specific
versions
- Why have you updated servlet version to 2.4?

Frank

On Nov 28, 2007 8:21 AM, Michael Laccetti  [EMAIL PROTECTED] wrote:

 Okay, I've committed my changes; they are r3303 if I remember correctly.
  I
 pushed it to a Maven repository that I run until I can figure out how to
 get
 them to the wicketstuff repo (if I can, that is).  (I used the same repo
 to
 host the jazzy plugin dependency.)

 Mike

 -Original Message-
 From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
 Sent: November 28, 2007 1:04 AM
 To: users@wicket.apache.org
 Subject: Re: [wicket-contrib] TinyMCE Hackery

 i dont think committing changes, as long as they are basic fixes, right
 away
 should be a problem, that is why it is in a public repo...

 -igor


 On Nov 27, 2007 9:09 PM, Michael Laccetti [EMAIL PROTECTED] wrote:
  I've done some work on the TinyMCE project to get it to compile, since
  it currently does not do so straight out of subversion.  Two
  questions: is it okay for me to commit the changes, and would it be
  possible to push this to the wicketstuff Maven repo?  (If it is not, I
  have a publically accessible repo that I can push it to, for others to
  use.)
 
  Mike
 
 
  -
  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-contrib] TinyMCE Hackery

2007-11-28 Thread Michael Laccetti

Okay, I have made the modifications, committed, and pushed a new snapshot to
the Maven repo.


Frank Bille-2 wrote:
 
 On Nov 28, 2007 4:26 PM, Michael Laccetti [EMAIL PROTECTED] wrote:
 
 Okay, I will switch from -rc1 to SNAPSHOT.  Regarding servlet 2.4, I
 mistakenly thought that it was the version that Wicket was using.
  Apparently not; I will switch back to 2.3.

 
 Thanks :-)
 Frank
 
 


-
--
Michael Laccetti (416)558-9718
S2G Limited  http://www.s2g.ca/
-- 
View this message in context: 
http://www.nabble.com/-wicket-contrib--TinyMCE-Hackery-tf4886399.html#a13995712
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-contrib] TinyMCE Hackery

2007-11-28 Thread Michael Laccetti
Either way the CodeOgre one isn't going to go away, as it is where the Jazzy 
plugin will be fed from.

---
Michael Laccetti (416)558-9718
S2G Limited http://www.s2g.ca/
---


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Bille
Sent: November 28, 2007 3:57 PM
To: users@wicket.apache.org
Subject: Re: [wicket-contrib] TinyMCE Hackery

On Nov 28, 2007 5:24 PM, Michael Laccetti [EMAIL PROTECTED] wrote:

 Okay, I have made the modifications, committed, and pushed a new 
 snapshot to the Maven repo.



When bamboo comes up again I can ensure that the tinymce project is
configured. Then it should post snapshots to the wicketstuff repo[1]

Frank

[1]: http://wicketstuff.org/maven


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



[wicket-contrib] TinyMCE Hackery

2007-11-27 Thread Michael Laccetti
I've done some work on the TinyMCE project to get it to compile, since it
currently does not do so straight out of subversion.  Two questions: is it
okay for me to commit the changes, and would it be possible to push this to
the wicketstuff Maven repo?  (If it is not, I have a publically accessible
repo that I can push it to, for others to use.)

Mike


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



RE: [wicket-contrib] TinyMCE Hackery

2007-11-27 Thread Michael Laccetti
Okay, I've committed my changes; they are r3303 if I remember correctly.  I
pushed it to a Maven repository that I run until I can figure out how to get
them to the wicketstuff repo (if I can, that is).  (I used the same repo to
host the jazzy plugin dependency.)

Mike

-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED] 
Sent: November 28, 2007 1:04 AM
To: users@wicket.apache.org
Subject: Re: [wicket-contrib] TinyMCE Hackery

i dont think committing changes, as long as they are basic fixes, right away
should be a problem, that is why it is in a public repo...

-igor


On Nov 27, 2007 9:09 PM, Michael Laccetti [EMAIL PROTECTED] wrote:
 I've done some work on the TinyMCE project to get it to compile, since 
 it currently does not do so straight out of subversion.  Two 
 questions: is it okay for me to commit the changes, and would it be 
 possible to push this to the wicketstuff Maven repo?  (If it is not, I 
 have a publically accessible repo that I can push it to, for others to 
 use.)

 Mike


 -
 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: RepeatingView and AJAX

2007-11-22 Thread Michael Laccetti


Timo Rantalaiho wrote:
 
 Make sure that there are no validation errors. Also you 
 could search this list on Nabble looking for repeaters in 
 forms or something such, because I think that there's
 something tricky to it. It might have to do with the fact
 that repeater items are typically recreated on every render.
 I'm not sure about RepeatingView but at least with 
 ListView you had to call setReuseListItems(true) or 
 something like that.
 
 Best wishes,
 Timo
 

While I realize that re-adding to the repeating view is not helping
anything, I'd like to find out why the model is not being updated with the
values when the AJAX event occurs.  If that is resolved, then I should be
able to find out how to propagate the values after a repaint.

-
--
Michael Laccetti (416)558-9718
S2G Limited  http://www.s2g.ca/
-- 
View this message in context: 
http://www.nabble.com/RepeatingView-and-AJAX-tf4851583.html#a13903857
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RepeatingView and AJAX

2007-11-21 Thread Michael Laccetti

This is a reasonably complex issue, so I'll apologize up front if I fail at 
explaining what seems to be wrong, and what I actually want to work.  I have 
created a simple Wicket app to demonstrate what I talk about that is available 
here: http://www.laccetti.com/rdm/wicket-ajax-problem.zip

I have a form that starts off with two fields: a dropdown that allows a user to select a 
number of accounts, and a dropdown that allows a user to choose if they have comments or 
not.  I have a custom AJAX behaviour that is a mixture of 
AjaxFormComponentUpdatingBehavior and AjaxFormSubmitBehavior so that a component update 
will cause all the fields to be posted to the server, so that their state can be retained 
across a refresh.  I am doing this because the entire form gets repainted.  I realize 
that I can just refresh certain components, but unfortunately the big app 
that is experiencing this problem is a table, which changes how things work (to retain 
XHTML compatibility).

When one of the two dropdowns is changed, the onchange event is fired in the behaviour.  When the 
number of accounts field changes, a RepeatingView is populated with the same number of 
text fields as was specified in the dropdown.  When the has comments drop down changes, 
a text area is displayed or hidden as required.  When the accounts dropdown changes, and the entire 
form is repainted, the text in the comments text area will be persisted across the refresh, due to 
the custom behaviour.  My problem comes in to saving the state of the account text fields.  I 
realize that right now I am clearing them all, and then rebuilding them, which is not helping.  
However, if I debug the AJAX behaviour, I noticed that the model field that corresponds to them is 
not being populated, whereas the comments one is.

So, the questions seem to be: why is the model not being populated (even though 
I can see via Firebug that they are being submitted), and how can I save the 
state of the repeating view across repaints?

Mike

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



Re: wicket-contrib Access

2007-11-16 Thread Michael Laccetti

Eelco Hillenius wrote:

If you give us your sourceforge id, we can give you commit rights.
You'll have to team up with whoever else is maintaining that package
though; don't just go in and break the whole thing ;-)

Eelco


My SF ID is nihilisticz.  I promise to play nice.  :)

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



wicket-contrib Access

2007-11-15 Thread Michael Laccetti

I've been working with the TinyMCE package, and would like to update it (both 
in Subversion and the Maven repo) to bring it in line with wicket 1.3 (rc1).  
It seems to have languished without any love for a few months.  Is this 
possible/feasible?

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



Re: Matt Raible's ApacheCon presentation

2007-11-15 Thread Michael Laccetti

John Krasnay wrote:

To me this is the biggest con. I've worked with a number of Java devs
who have trouble grokking anonymous inner classes, which you must know
cold to be effective with Wicket.


Quite a con indeed.  Wicket is not a framework that most people new to Java/OO can easily 
jump into and start churning out apps with.  This ties together with the concept of 
models, and figuring out which is the right for the situation.  There is no easy answer, 
it is more of an instinctive feel that you get over time.

It is inherently worse for people that were Struts devs.  It took me a while to 
unlearn my view of the world.

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



Re: Example source code?

2007-10-10 Thread Michael Laccetti

Yes, we had a nice argument about that on IRC yesterday.  :)

Igor Vaynberg wrote:

my suggestion is to learn how to use svn :)

-igor

On 10/9/07, Neil B. Cohen [EMAIL PROTECTED] wrote:
  Is there a link where I can download sample wicket source code? Like for
  the Wicket Phone book example? I don't use svn - are there instructions
  somewhere that can tell me how to download the code?
 
  thanks,
 
  nbc
 
  -
  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: new class reloading solution JavaRebel

2007-10-10 Thread Michael Laccetti

Somebody posted the link in IRC - apparently it doesn't play nicely with Wicket.

Mike

Igor Vaynberg wrote:

martijn, would you like to put the request in for us?

-igor


On 10/10/07, ekabanov [EMAIL PROTECTED] wrote:
 
 
  Matthijs Wensveen-2 wrote:
  
   Looks promising. A lot of people here complain about having to restart
   jetty or tomcat every time they modify their classes. Too bad it's
   commercial :(
  
 
  We will give free licenses to open source developers:
  http://www.zeroturnaround.com/blog/javarebel-for-open-source-development/
 
  E. Kabanov
  --
  View this message in context: 
http://www.nabble.com/new-class-reloading-solution-JavaRebel-tf4594974.html#a13137400

  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]



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



Re: AjaxFormChoiceComponentUpdatingBehavior doesn´t get event

2007-10-09 Thread Michael Laccetti

I suspect you need to do AjaxFormChoiceComponentUpdatingBehavior(onchange) { 
... } or something similar.

Mike

SantiagoA wrote:


I added an AjaxFormChoiceComponentUpdatingBehavior to my radioGroup.
I thought it would handle the event, when a RadioButton is clicked.
But when i click on a RadioButton the onUpdate-method is never reached.

my Code:

final RadioGroup radioGroup = new RadioGroup(group, new
PropertyModel(this, selectedCode));
radioGroup.add(new AjaxFormChoiceComponentUpdatingBehavior(){
private static final long serialVersionUID = -5356375735369681460L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
selectedCode = (Code)getModelObject();
target.addComponent(targetComponent);
}
});

Is my expectation wrong?
Am i using the wrong ajax behavior?

I tried also with AjaxFormComponentUpdatingBehavior and AjaxEventBehavior
but it didn´t work either.
I´m using wicket1.3.0beta3 and ajax-updates are working on input-components.



--
View this message in context: 
http://www.nabble.com/AjaxFormChoiceComponentUpdatingBehavior-doesn%C2%B4t-get-event-tf4594788.html#a13117508

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]



AJAX and Form Fields

2007-10-05 Thread Michael Laccetti

Is there a way to retain contents of a form when the fields are repainted by 
AJAX (to hide/unhide new fields, etc/.)?

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



FormComponentPanel and Validators

2007-10-04 Thread Michael Laccetti
I've created a FormComponentPanel that wraps three text fields, to mimic 
a phone number.  I created a custom validator, which I have added to the 
panel.  When I submit the form, the validator does not seem to be fired. 
 If I attach the validator to another form component, it fires without 
a problem, which leads me to believe that the FormComponentPanel has 
problems with it.  Is there some trick, or is this a bug?


Mike

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



Re: FormComponentPanel and Validators

2007-10-04 Thread Michael Laccetti

I take it back.  It is the validator itself that isn't functioning as expected. 
 In my panel, I did not override convertInput(), as expected.  The JavaDoc 
suggests that I call setConvertedInput() from within convertInput(), except 
that setConvertedInput() does not exist.  Has this been replaced with 
setModelValue(), and just not reflected in the JavaDoc?

Mike

Michael Laccetti wrote:

I've created a FormComponentPanel that wraps three text fields, to mimic
a phone number.  I created a custom validator, which I have added to the
panel.  When I submit the form, the validator does not seem to be fired.
  If I attach the validator to another form component, it fires without
a problem, which leads me to believe that the FormComponentPanel has
problems with it.  Is there some trick, or is this a bug?

Mike

-
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: FormComponentPanel and Validators

2007-10-04 Thread Michael Laccetti

I am using 1.3.0-beta2 - I popped open FormComponent in Eclipse and it doesn't 
seem to exist.  Do I have a versioning issue?

Igor Vaynberg wrote:

setconvertedinput() is still there. it is public final void on the
formcomponent.

-igor


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



Re: FormComponentPanel and Validators

2007-10-04 Thread Michael Laccetti

Yeah, trunk JavaDoc, 1.3b2 code.  I'll seek to keep the two sync'd in future.  
Thx.

Igor Vaynberg wrote:

what javadoc are you looking at? The one online is based on trunk

-igor


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



Re: More on Wicket/Hibernate...

2007-10-04 Thread Michael Laccetti

If you are using Spring, you may be interested in a Servlet Filter that 
supports opening/closing sessions on a per-request basis: 
http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/orm/jpa/support/OpenEntityManagerInViewFilter.html

Mike

Neil B. Cohen wrote:

I suspect I'm biting off more than I can chew conveniently but maybe
someone can push me in the right direction...

I'm attempting to build a fairly simple web application with Wicket, and
I'd like to use Hibernate to manage the database access (although other
frameworks like Cayenne have been suggested and I'll look at them too...)

I think I've figured out the basic application structure, and how to map
my data to an html page. But I don't think I understand the
relationships between web sessions, hibernate sessions, DAO objects etc.
I need to open a mysql db, read a set of objects from a table, and
display them in a (paged) table on the screen. I've looked at several
examples but they are using in-memory databases, or Spring along with
Hibernate and I can't get a handle on what needs to be done to whom and
by whom

Anyone have a really simple MySQL example like that? Or an online
tutorial that I could follow?

Much obliged,

nbc

-
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: More on Wicket/Hibernate...

2007-10-04 Thread Michael Laccetti

I'm not sure if Spring is something that really requires much learning - More 
than anything it is a good way of tying together a bunch of disparate 
frameworks for use together.

Neil B. Cohen wrote:

Michael Laccetti wrote:
  If you are using Spring, you may be interested in a Servlet Filter
  that supports opening/closing sessions on a per-request basis:
  
http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/orm/jpa/support/OpenEntityManagerInViewFilter.html

 
 
  Mike

Thanks  - at the moment, I'm not using Spring - I was trying to figure
out if I need to use it - that would mean yet another framework to learn
at the same time as Wicket and Hibernate

nbc


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