How to implement session validation?

2009-10-08 Thread Haulyn R. Jason
Hi,
I read some articles to find how to use session validation to protect my
application. When the Admin Login, some pages are protected by session with
attribute admin_id, and when the common user login, some other pages are
protected by cookie with attribute user_id. I do not want to add code to
all pages and panels I created to validate session and cookie. Then I find a
way: use IAuthorizationStrategy. But I just want to validate admin by
session, and validate common user by cookie.

I am not sure is there a good way to implement this. I read some articles,
something mentions about WebApplication Inheritance, but I can not
understand this.

Who can help me about this problem, or give me some urls as reference.

Thanks!

-- 
Many thanks!

Haulyn Microproduction

You can access me via the following ways:
Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason


wicketstuff-push question

2009-10-08 Thread Daniel Dominik Holúbek
hello everybody,
has anyone here any experience with wicketstuff-push?
i am trying to use it in my app, but it behaves somewhat strangely.
when i call cometdService.publish(event) method from form's onSubmit method,
it works like a charm.
but when i call it from another method - for example ListView's
onModelChanged, then nothing happens.

the reason i need to call it that way is, that i am using xmpp protocol for
a chat application. in form's onSubmit method, i send the message via xmpp's
sendMessage method. When received, the message is processed in a jabber
listener. that is the place for publishing cometd event. if i publish it in
onSubmit, clients often refresh themselves before the message actually
arrives, and that's a problem.

thank you for any help with this. :)

-- 
-danoh-


Re: artwork mootip conflict

2009-10-08 Thread nino martinez wael
Hi Vinnet

Interesting, could you provide a quickstart project that shows this
behaviour.. It's a lot easier for me to help.. Otherwise I might not have
the time to do so.

regards Nino

2009/10/7 vineet semwal vineetsemwal1...@gmail.com

 I can't say what exactly is causing problem but when i am using liquid
 canvas with mootip(minis) in a page,
 the liquid canvas fails to render ..


 --
 regards,
 Vineet Semwal



Re: artwork mootip conflict

2009-10-08 Thread Stefan Jozsa
Had similar issue when used artwork and jgrowl in the same time.
Workaround: I removed Javascript (reference) inclusion in
JGrowlFeedbackPanel, that is:

@Override
public void renderHead(final IHeaderResponse response) {
/*
response.renderJavascriptReference(new 
JavascriptResourceReference(JGrowlFeedbackPanel.class, 
jquery-1.3.2.js)); 
*/
// ...
}

Stefan

--- On Thu, 10/8/09, nino martinez wael nino.martinez.w...@gmail.com wrote:

 From: nino martinez wael nino.martinez.w...@gmail.com
 Subject: Re: artwork mootip conflict
 To: users@wicket.apache.org
 Date: Thursday, October 8, 2009, 9:53 AM
 Hi Vinnet
 
 Interesting, could you provide a quickstart project that
 shows this
 behaviour.. It's a lot easier for me to help.. Otherwise I
 might not have
 the time to do so.
 
 regards Nino
 
 2009/10/7 vineet semwal vineetsemwal1...@gmail.com
 
  I can't say what exactly is causing problem but when i
 am using liquid
  canvas with mootip(minis) in a page,
  the liquid canvas fails to render ..
 
 
  --
  regards,
  Vineet Semwal
 
 


  

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



Unexpected RuntimeException in Google Chrome and some Firefox versions

2009-10-08 Thread Magnus Haraldsen Amundsen
Hi,

 

 http://kurs.sublima.computas.com:8180/wicketdemo/ 
http://kurs.sublima.computas.com:8180/wicketdemo/ works fine in Firefox 3.5.3 
and Internet Explorer 8, but not in Chrome 3, and some other Firefox versions. 
There I get the following exception, see http://pastebin.com/m356db366

 

What could be the reason for this?

 

Med vennlig hilsen 

Magnus Haraldsen Amundsen
Senior Kunnskapsingeniør
Mobil: 920 95 243
Epost:  mailto:m...@computas.com m...@computas.com   
Web:  http://www.computas.com/ www.computas.com

|  COMPUTAS SETTER KUNNSKAP I SYSTEM  |

Computas AS  Lysaker Torg 45, Postboks 482, 1327 Lysaker | Telefon: 67 83 10 00 
| Faks: 67 83 10 01

 



Re: WARN [org.apache.wicket.protocol.http.WebResponse] - redirect to ?wicket:interface=:5:::: failed: null

2009-10-08 Thread Eyal Golan
Jeremy,
That's the problem. I didn't have an exception. It's a warning in a catch
clause in WebResponse.
I copied the stack trace when I stopped in a break point in that location.

I will do what you suggest and look the 'close' method.

Thanks

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Wed, Oct 7, 2009 at 4:43 PM, Jeremy Thomerson
jer...@wickettraining.comwrote:

 Well, it's hard to say.  When you include a stack trace for an error, it's
 helpful if you can get the full stack trace (with the exception and caused
 by) because I can't tell which line actually put you into the catch.

 But it seems like something is closing your response before you get to this
 redirect method.  I'd put a breakpoint on the close method of the http
 response to see if it's being closed before you get to this one.

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



 On Wed, Oct 7, 2009 at 2:05 AM, Eyal Golan egola...@gmail.com wrote:

  BTW,
  the 'null' is the message of the exception.
  Looking at the exception in the break-point: the exception is:
  org.mortbay.jetty.EofException
 
  thanks.
 
 
  Eyal Golan
  egola...@gmail.com
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 
 
  On Wed, Oct 7, 2009 at 1:18 AM, Jeremy Thomerson
  jer...@wickettraining.comwrote:
 
   null - should mean NullPointerException do you get the stacktrace
 to
   see
   where it's coming from?  Paste into reply
  
   --
   Jeremy Thomerson
   http://www.wickettraining.com
  
  
  
   On Tue, Oct 6, 2009 at 12:41 PM, Eyal Golan egola...@gmail.com
 wrote:
  
Hi,
I did some refactoring in an old Wicket code amd I get the warning
   message
in the subject:
2009-10-06 19:37:34,484 WARN
   [org.apache.wicket.protocol.http.WebResponse]
-
redirect to ?wicket:interface=:5 failed: null
   
I tried to debug, did some breakpointing etc. but could not
 understand
   why
do I get this.
Can someone give me a hint on where to start looking and to
 understand
what's going on?
   
Thanks,
   
Eyal
   
Eyal Golan
egola...@gmail.com
   
Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74
   
P  Save a tree. Please don't print this e-mail unless it's really
   necessary
   
  
 



Re: artwork mootip conflict

2009-10-08 Thread nino martinez wael
I've created a wiki here
http://wicketstuff.org/confluence/display/STUFFWIKI/WicketStuff+Artwork so
we can accumulate information like this.

2009/10/8 Stefan Jozsa stefan_...@yahoo.com

 Had similar issue when used artwork and jgrowl in the same time.
 Workaround: I removed Javascript (reference) inclusion in
 JGrowlFeedbackPanel, that is:

 @Override
 public void renderHead(final IHeaderResponse response) {
 /*
 response.renderJavascriptReference(new
 JavascriptResourceReference(JGrowlFeedbackPanel.class,
 jquery-1.3.2.js));
 */
 // ...
 }

 Stefan

 --- On Thu, 10/8/09, nino martinez wael nino.martinez.w...@gmail.com
 wrote:

  From: nino martinez wael nino.martinez.w...@gmail.com
  Subject: Re: artwork mootip conflict
  To: users@wicket.apache.org
  Date: Thursday, October 8, 2009, 9:53 AM
  Hi Vinnet
 
  Interesting, could you provide a quickstart project that
  shows this
  behaviour.. It's a lot easier for me to help.. Otherwise I
  might not have
  the time to do so.
 
  regards Nino
 
  2009/10/7 vineet semwal vineetsemwal1...@gmail.com
 
   I can't say what exactly is causing problem but when i
  am using liquid
   canvas with mootip(minis) in a page,
   the liquid canvas fails to render ..
  
  
   --
   regards,
   Vineet Semwal
  
 




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




Re: Feedback messages, input and label

2009-10-08 Thread Swanthe Lindgren
Well, if you combine putting inputPwd=Password in your property file and 
putting


label for=pwdwicket:message key=inputPwdthis text here will be 
replaced by your propertyfile value/wicket:message/label


in you markup, I thing you'll get what you'r looking for.

//Swanthe

Tomás Rossi wrote:
Ok, that's a little nicer, but still... It'd be better if the label 
could be deduced from the markup itself. Yet, no big deal.


Thanks

Matej Knopp escribió:

try putting inputPwd = Password in your property file.

-Matej

On Wed, Oct 7, 2009 at 5:33 PM, Tomás Rossi tro...@mecon.gov.ar wrote:
 

Hi,

lets say you have this in you html form:
--
...
label for=pwdPassword/label
input type=password id=pwd wicket:id=inputPwd/
...
--

Then, a properties file for your app with this:
--
...
Required=Field ${label} is required!
...
--

When the required-error-message prints, it does like this:

* Field inputPwd is required!

Now I wish I could change it to say Field Password is required! 
without
modifying wicket:id attribute nor adding specific required message 
for the

component.
Is this possible?

Kind regards,
Tom;

-
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






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



RE: Unexpected RuntimeException in Google Chrome and some Firefox versions

2009-10-08 Thread Magnus Haraldsen Amundsen
Found the error. Someone had forgot to add a default language properties file 
;)


-Original Message-
From: Magnus Haraldsen Amundsen [mailto:magnus.haraldsen.amund...@computas.com] 
Sent: 8. oktober 2009 10:07
To: users@wicket.apache.org
Subject: Unexpected RuntimeException in Google Chrome and some Firefox versions

Hi,

 

 http://kurs.sublima.computas.com:8180/wicketdemo/ 
http://kurs.sublima.computas.com:8180/wicketdemo/ works fine in Firefox 3.5.3 
and Internet Explorer 8, but not in Chrome 3, and some other Firefox versions. 
There I get the following exception, see http://pastebin.com/m356db366

 

What could be the reason for this?

 

Med vennlig hilsen 

Magnus Haraldsen Amundsen
Senior Kunnskapsingeniør
Mobil: 920 95 243
Epost:  mailto:m...@computas.com m...@computas.com   
Web:  http://www.computas.com/ www.computas.com

|  COMPUTAS SETTER KUNNSKAP I SYSTEM  |

Computas AS  Lysaker Torg 45, Postboks 482, 1327 Lysaker | Telefon: 67 83 10 00 
| Faks: 67 83 10 01

 

 

__ Information from ESET NOD32 Antivirus, version of virus signature 
database 4488 (20091007) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
 

__ Information from ESET NOD32 Antivirus, version of virus signature 
database 4488 (20091007) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 

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



Re: Scala, dependency injection and wicket

2009-10-08 Thread Haim Ashkenazi

Hi jan,

On Oct 8, 2009, at 6:47 AM, Jan Kriesten wrote:



Hi Haim,

Yes, I remember seeing that. How would you add it to wicket? by  
adding
ServiceInjector trait to the Application class or using the wicket- 
guice way
(addComponentInstantiationListener(new  
GuiceComponentInjector(this));)?


the Injector is just a trait, so anywhere it's needed, I just add it  
to the
corresponding class - whether it's a Wicket component or not doesn't  
matter. So

you have

class MyWebPage extends WebPage with Injector {
 @Inject val domainRepo: DomainRepo = domainRepo
}

class DomainRepo extends Repo with Injector {
 @Inject val customerRepo: CustomerRep = customerRepo
}

This is a general approach, so no need to add a intantiation listener.
This is an interesting approach. From what I remember from guice, you  
can use it to overcome the problem of having to start all your object  
by injection (classes that initiated by new can not use the injector  
anymore). But does it preserve the ability to know at startup if all  
your injections are resolved?


BTW, to test it I need to supply a custom Module since I can not  
invoke the class without injection. am I right?




One more question though, In the example you're only using  
constructor

injection. Any reason not to use field injection?


Actually, I use field injection most of the time, see above.

Best regards, --- Jan.

One more question about injections in wicket. How can I handle the  
session object. Do I have to use the getSession method, or can I  
inject the session object as well?


Thanks for your help
--
Haim

PGP.sig
Description: This is a digitally signed message part


Re: How to implement session validation?

2009-10-08 Thread Adrian Merrall
Haulyn,

The wicket in action book has all the explanations and code you need for
this.

Dealing with cookies is an implementation detail that wicket and the servlet
container take care of for you.  From your perspective, all you need to
worry about is whether the session is authenticated or not, and whether a
particular page or component requires either signed in, or admin only
access.  You could look at the javadoc for authorisedwebapplication but I
can't recommend the book highly enough.  Martijn and Eelco seem to have
anticipated all the common questions people would ask.

There are also a couple of wicketstuff projects that provide security
frameworks for wicket.

HTH

Adrian

On Thu, Oct 8, 2009 at 7:19 PM, Haulyn R. Jason saharab...@gmail.comwrote:

 Hi,
 I read some articles to find how to use session validation to protect my
 application.


Re: I want to volunteer for web app devt

2009-10-08 Thread Steve Olara
Hello Wicketers,
 
I have just completed my MSc and during the study been learning how to dedvelop 
enterprise application using Wicket, Spring and Hibernate. I want to futher my 
skill in web application development.
 
I am currently based in Birmingham UK and would want to volunteer and work with 
any expirence web application developer, willing to teach me.
 
Please get in touch.
 
Regards,
 
Stephen

Send instant messages to your online friends http://uk.messenger.yahoo.com 

Re: I want to volunteer for web app devt

2009-10-08 Thread jWeekend

Stephen,

Are you one of Alan's OCaml disciples?
Drop me a line [1] and we can have a chat.

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket Training and Development 
http://jWeekend.com

[1] http://jweekend.com/dev/ContactUs


Steve Olara wrote:
 
 Hello Wicketers,
  
 I have just completed my MSc and during the study been learning how to
 dedvelop enterprise application using Wicket, Spring and Hibernate. I want
 to futher my skill in web application development.
  
 I am currently based in Birmingham UK and would want to volunteer and work
 with any expirence web application developer, willing to teach me.
  
 Please get in touch.
  
 Regards,
  
 Stephen
 
 Send instant messages to your online friends http://uk.messenger.yahoo.com
 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-I-want-to-volunteer-for-web-app-devt-tp25801154p25801280.html
Sent from the Wicket - User 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: Showing Modal window within a wizard step

2009-10-08 Thread Pedro Santos
Hi Jeffrey, the wiki example refers to an chooserPanel, that is not the
case of your editorPanel. Simple use the same model on step 1 on your
Modal window.

On Wed, Oct 7, 2009 at 5:19 PM, Jeffrey Schneller 
jeffrey.schnel...@envisa.com wrote:

 I am trying to show a modal window within a wizard step showing the same
 data the wizard step shows but as input text fields for editing.  I have
 found some references to showing a wizard in a modal window and showing
 a wizard within a wizard but not what I am looking to do.



 I have the wizard steps appearing with the data and I have a modal popup
 being launched from the step via an AjaxLink.  I can't figure out how to
 get the data from the wizard step and make it appear in the modal as
 well [so the user can edit the information].



 I have a MyWizard object which in the constructor sets the default model
 to a CompoundPropertyModel of a LoadableDetachableModel of my data
 object.  I then call a method in the constructor to set all the data of
 the model that I can from the database [which works].



 The first step of the wizard shows any data that has been set in the
 model.



 How do I get my Modal window to show the same data from the model used
 to display data  in step 1?



 I then will need to take the values entered in the modal and push them
 back into the wizard model.  I am assuming this can be done via an entry
 in the wiki [1].



 Thanks.



 [1]
 http://cwiki.apache.org/WICKET/pass-form-input-from-modal-window-back-to
 -the-caller-page.htmlhttp://cwiki.apache.org/WICKET/pass-form-input-from-modal-window-back-to%0A-the-caller-page.html














-- 
Pedro Henrique Oliveira dos Santos


Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-08 Thread danisevsky
Hello, I was trying generate Wicket - Spring - JPA project and I get
following error:

C:\projects\testmvn archetype:generate -B -DarchetypeCatalog=
http://legup.googl
ecode.com/svn/repo/archetype-catalog.xml-DarchetypeArtifactId=wicket-spring-jpa
-archetype -DarchetypeGroupId=com.jweekend -DarchetypeVersion=0.8.0
-DgroupId=co
m.mycompany -DartifactId=mycompany -Dversion=1.0-SNAPSHOT
-Dpackage=com.mycompan
y
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:generate] (aggregator-style)
[INFO]

[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class =
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Batch mode
[WARNING] Error reading archetype catalog
http://legup.googlecode.com/svn/repo/a
rchetype-catalog.xml
org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate
resource
in repository
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
ata(LightweightHttpWagon.java:100)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at
org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.ge
tArchetypeCatalog(RemoteCatalogArchetypeDataSource.java:74)
at
org.apache.maven.archetype.DefaultArchetype.getRemoteCatalog(DefaultA
rchetype.java:203)
at
org.apache.maven.archetype.ui.DefaultArchetypeSelector.getArchetypesB
yCatalog(DefaultArchetypeSelector.java:249)
at
org.apache.maven.archetype.ui.DefaultArchetypeSelector.selectArchetyp
e(DefaultArchetypeSelector.java:74)
at
org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execu
te(CreateProjectFromArchetypeMojo.java:180)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:453)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:513)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:483)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:331)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:228)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.io.FileNotFoundException:
http://legup.googlecode.com/svn/repo/a
rchetype-catalog.xml/archetype-catalog.xml
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:1288)
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
ata(LightweightHttpWagon.java:83)
... 24 more
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] : java.lang.NullPointerException
null
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Oct 08 13:30:48 CEST 2009
[INFO] Final Memory: 8M/14M
[INFO]

C:\projects\test

2009/10/6 richardwilko richardjohnwilkin...@gmail.com


 Hi,

 Yes, you will need to bind every dao (and eveything you want to inject).

 

wicketstuff-progressbar and Wicket 1.4.1 problem

2009-10-08 Thread zabian

Hi there,

I'm working on progress bar in my app, i'm trying to use 
wicketstuff-progressbar project and get:


java.lang.NoSuchMethodError: 
org.wicketstuff.progressbar.ProgressBar.add(Lorg/apache/wicket/behavior/IBehavior;)Lorg/apache/wicket/Component;

at org.wicketstuff.progressbar.ProgressBar.init(ProgressBar.java:101)

Did anybody meet such problem?
I use it with the latest - Wicket 1.4.1 and most probably this is the 
reason.

Any walkaround?

Regards,
Wojtek



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



Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-08 Thread richardwilko

hi,

The error is saying that maven cannot find the archetype catalog file,
please make sure you can access this file in a web browser [1], and ensure
that you do not have any line breaks in your maven command (not sure if it
is just how the command appears on nabble but it looks like there is a line
break in the middle of the url)


[1] - http://legup.googlecode.com/svn/repo/archetype-catalog.xml


Hope this helps

Regards - Richard Wilkinson
Developer,
jWeekend: OO  Java Technologies - Development and Training
http://jWeekend.com



danisevsky danisevsky wrote:
 
 Hello, I was trying generate Wicket - Spring - JPA project and I get
 following error:
 
 C:\projects\testmvn archetype:generate -B -DarchetypeCatalog=
 http://legup.googl
 ecode.com/svn/repo/archetype-catalog.xml-DarchetypeArtifactId=wicket-spring-jpa
 -archetype -DarchetypeGroupId=com.jweekend -DarchetypeVersion=0.8.0
 -DgroupId=co
 m.mycompany -DartifactId=mycompany -Dversion=1.0-SNAPSHOT
 -Dpackage=com.mycompan
 y
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'archetype'.
 [INFO]
 
 [INFO] Building Maven Default Project
 [INFO]task-segment: [archetype:generate] (aggregator-style)
 [INFO]
 
 [INFO] Preparing archetype:generate
 [INFO] No goals needed for project - skipping
 [INFO] Setting property: classpath.resource.loader.class =
 'org.codehaus.plexus
 .velocity.ContextClassLoaderResourceLoader'.
 [INFO] Setting property: velocimacro.messages.on = 'false'.
 [INFO] Setting property: resource.loader = 'classpath'.
 [INFO] Setting property: resource.manager.logwhenfound = 'false'.
 [INFO] [archetype:generate]
 [INFO] Generating project in Batch mode
 [WARNING] Error reading archetype catalog
 http://legup.googlecode.com/svn/repo/a
 rchetype-catalog.xml
 org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate
 resource
 in repository
 at
 org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
 ata(LightweightHttpWagon.java:100)
 at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
 at
 org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.ge
 tArchetypeCatalog(RemoteCatalogArchetypeDataSource.java:74)
 at
 org.apache.maven.archetype.DefaultArchetype.getRemoteCatalog(DefaultA
 rchetype.java:203)
 at
 org.apache.maven.archetype.ui.DefaultArchetypeSelector.getArchetypesB
 yCatalog(DefaultArchetypeSelector.java:249)
 at
 org.apache.maven.archetype.ui.DefaultArchetypeSelector.selectArchetyp
 e(DefaultArchetypeSelector.java:74)
 at
 org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execu
 te(CreateProjectFromArchetypeMojo.java:180)
 at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
 nManager.java:453)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
 ultLifecycleExecutor.java:559)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
 Goal(DefaultLifecycleExecutor.java:513)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
 ltLifecycleExecutor.java:483)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
 dleFailures(DefaultLifecycleExecutor.java:331)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
 ts(DefaultLifecycleExecutor.java:228)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
 fecycleExecutor.java:142)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: java.io.FileNotFoundException:
 http://legup.googlecode.com/svn/repo/a
 rchetype-catalog.xml/archetype-catalog.xml
 at
 sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
 nection.java:1288)
 at
 org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
 ata(LightweightHttpWagon.java:83)
 ... 24 more
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-08 Thread danisevsky
I can access this file in web browser and it seems that there is no break
line. I will try it later in linux.

thank you


2009/10/8 richardwilko richardjohnwilkin...@gmail.com


 hi,

 The error is saying that maven cannot find the archetype catalog file,
 please make sure you can access this file in a web browser [1], and ensure
 that you do not have any line breaks in your maven command (not sure if it
 is just how the command appears on nabble but it looks like there is a line
 break in the middle of the url)


 [1] - http://legup.googlecode.com/svn/repo/archetype-catalog.xml


 Hope this helps

 Regards - Richard Wilkinson
 Developer,
 jWeekend: OO  Java Technologies - Development and Training
 http://jWeekend.com



 danisevsky danisevsky wrote:
 
  Hello, I was trying generate Wicket - Spring - JPA project and I get
  following error:
 
  C:\projects\testmvn archetype:generate -B -DarchetypeCatalog=
  http://legup.googl
 
 ecode.com/svn/repo/archetype-catalog.xml-DarchetypeArtifactId=wicket-spring-jpa
  -archetype -DarchetypeGroupId=com.jweekend -DarchetypeVersion=0.8.0
  -DgroupId=co
  m.mycompany -DartifactId=mycompany -Dversion=1.0-SNAPSHOT
  -Dpackage=com.mycompan
  y
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'archetype'.
  [INFO]
  
  [INFO] Building Maven Default Project
  [INFO]task-segment: [archetype:generate] (aggregator-style)
  [INFO]
  
  [INFO] Preparing archetype:generate
  [INFO] No goals needed for project - skipping
  [INFO] Setting property: classpath.resource.loader.class =
  'org.codehaus.plexus
  .velocity.ContextClassLoaderResourceLoader'.
  [INFO] Setting property: velocimacro.messages.on = 'false'.
  [INFO] Setting property: resource.loader = 'classpath'.
  [INFO] Setting property: resource.manager.logwhenfound = 'false'.
  [INFO] [archetype:generate]
  [INFO] Generating project in Batch mode
  [WARNING] Error reading archetype catalog
  http://legup.googlecode.com/svn/repo/a
  rchetype-catalog.xml
  org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate
  resource
  in repository
  at
  org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
  ata(LightweightHttpWagon.java:100)
  at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
  at
  org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.ge
  tArchetypeCatalog(RemoteCatalogArchetypeDataSource.java:74)
  at
  org.apache.maven.archetype.DefaultArchetype.getRemoteCatalog(DefaultA
  rchetype.java:203)
  at
  org.apache.maven.archetype.ui.DefaultArchetypeSelector.getArchetypesB
  yCatalog(DefaultArchetypeSelector.java:249)
  at
  org.apache.maven.archetype.ui.DefaultArchetypeSelector.selectArchetyp
  e(DefaultArchetypeSelector.java:74)
  at
  org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execu
  te(CreateProjectFromArchetypeMojo.java:180)
  at
  org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
  nManager.java:453)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
  ultLifecycleExecutor.java:559)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
  Goal(DefaultLifecycleExecutor.java:513)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
  ltLifecycleExecutor.java:483)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
  dleFailures(DefaultLifecycleExecutor.java:331)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
  ts(DefaultLifecycleExecutor.java:228)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
  fecycleExecutor.java:142)
  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
  org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at
  org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 
  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  Caused by: java.io.FileNotFoundException:
  http://legup.googlecode.com/svn/repo/a
  rchetype-catalog.xml/archetype-catalog.xml
  at
  

Re: wicketstuff-progressbar and Wicket 1.4.1 problem

2009-10-08 Thread Pedro Santos
This project is using wicket 1.3
If there are no problem, wicket stuff devs can update the project
dependencies. It is just update pom + refactoring or need to create an
branch in svn?

2009/10/8 zabian zabia...@gmail.com

 Hi there,

 I'm working on progress bar in my app, i'm trying to use
 wicketstuff-progressbar project and get:

 java.lang.NoSuchMethodError:
 org.wicketstuff.progressbar.ProgressBar.add(Lorg/apache/wicket/behavior/IBehavior;)Lorg/apache/wicket/Component;
 at org.wicketstuff.progressbar.ProgressBar.init(ProgressBar.java:101)

 Did anybody meet such problem?
 I use it with the latest - Wicket 1.4.1 and most probably this is the
 reason.
 Any walkaround?

 Regards,
 Wojtek



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




-- 
Pedro Henrique Oliveira dos Santos


Re: artwork mootip conflict

2009-10-08 Thread vineet semwal
Stefan,
thank you,
your fix works but if the required js files are not added the plugin will
not work as good
as it should  :(

Nino,
thank you for creating the wiki ;)
i am attaching the example project for the issue which shows a page where
stefan's fix is used
and other page where it's not used .

-- 
regards,
Vineet Semwal

On Thu, Oct 8, 2009 at 1:59 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 I've created a wiki here
 http://wicketstuff.org/confluence/display/STUFFWIKI/WicketStuff+Artwork so
 we can accumulate information like this.

 2009/10/8 Stefan Jozsa stefan_...@yahoo.com

  Had similar issue when used artwork and jgrowl in the same time.
  Workaround: I removed Javascript (reference) inclusion in
  JGrowlFeedbackPanel, that is:
 
  @Override
  public void renderHead(final IHeaderResponse response) {
  /*
  response.renderJavascriptReference(new
  JavascriptResourceReference(JGrowlFeedbackPanel.class,
  jquery-1.3.2.js));
  */
  // ...
  }
 
  Stefan
 
  --- On Thu, 10/8/09, nino martinez wael nino.martinez.w...@gmail.com
  wrote:
 
   From: nino martinez wael nino.martinez.w...@gmail.com
   Subject: Re: artwork mootip conflict
   To: users@wicket.apache.org
   Date: Thursday, October 8, 2009, 9:53 AM
   Hi Vinnet
  
   Interesting, could you provide a quickstart project that
   shows this
   behaviour.. It's a lot easier for me to help.. Otherwise I
   might not have
   the time to do so.
  
   regards Nino
  
   2009/10/7 vineet semwal vineetsemwal1...@gmail.com
  
I can't say what exactly is causing problem but when i
   am using liquid
canvas with mootip(minis) in a page,
the liquid canvas fails to render ..
   
   
--
regards,
Vineet Semwal
   
  
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



quickie.jar
Description: application/java-archive

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

RE: Showing Modal window within a wizard step

2009-10-08 Thread Jeffrey Schneller
Ok.  How do I use the same model?  The model I have on step 1 if I pass
it into the modal window I get no data in the model.  This was my
original thought on how to do it but something isn't right.

And yes I know the wiki example refers to a chooserPanel and in my
case it is an editorPanel.  I didn't expect the wiki to be the exact
code that I needed but a starting example.



-Original Message-
From: Pedro Santos [mailto:pedros...@gmail.com] 
Sent: Thursday, October 08, 2009 7:03 AM
To: users@wicket.apache.org
Subject: Re: Showing Modal window within a wizard step

Hi Jeffrey, the wiki example refers to an chooserPanel, that is not
the
case of your editorPanel. Simple use the same model on step 1 on your
Modal window.

On Wed, Oct 7, 2009 at 5:19 PM, Jeffrey Schneller 
jeffrey.schnel...@envisa.com wrote:

 I am trying to show a modal window within a wizard step showing the
same
 data the wizard step shows but as input text fields for editing.  I
have
 found some references to showing a wizard in a modal window and
showing
 a wizard within a wizard but not what I am looking to do.



 I have the wizard steps appearing with the data and I have a modal
popup
 being launched from the step via an AjaxLink.  I can't figure out how
to
 get the data from the wizard step and make it appear in the modal as
 well [so the user can edit the information].



 I have a MyWizard object which in the constructor sets the default
model
 to a CompoundPropertyModel of a LoadableDetachableModel of my data
 object.  I then call a method in the constructor to set all the data
of
 the model that I can from the database [which works].



 The first step of the wizard shows any data that has been set in the
 model.



 How do I get my Modal window to show the same data from the model used
 to display data  in step 1?



 I then will need to take the values entered in the modal and push them
 back into the wizard model.  I am assuming this can be done via an
entry
 in the wiki [1].



 Thanks.



 [1]

http://cwiki.apache.org/WICKET/pass-form-input-from-modal-window-back-to

-the-caller-page.htmlhttp://cwiki.apache.org/WICKET/pass-form-input-fro
m-modal-window-back-to%0A-the-caller-page.html














-- 
Pedro Henrique Oliveira dos Santos

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



Re: artwork mootip conflict

2009-10-08 Thread Stefan Jozsa
Yes, you right, if jquery.js not added then
no artwork, no jwicket, no jgrowl.
But, at that time I knew that artwork/jwicket
included jquery.js, so the JS was available
even if I removed inclusion from jgrowl.

Anyway, I don't know the way such kind of isue(s)
can be avoided transparenly 
(that is, NOT like my brutal workaround).

Stefan

--- On Thu, 10/8/09, vineet semwal vineetsemwal1...@gmail.com wrote:

 From: vineet semwal vineetsemwal1...@gmail.com
 Subject: Re: artwork mootip conflict
 To: users@wicket.apache.org
 Date: Thursday, October 8, 2009, 5:20 PM
 Stefan,
 thank you,
 your fix works but if the required js files are not added
 the plugin will not work as good 
 as it should  :(
  
 Nino,
 thank you for creating the wiki ;)
 
 i am attaching the example project for the issue which
 shows a page where stefan's fix is used
 and other page where it's not used .
 
 -- 
 regards,
 Vineet Semwal
 
 On Thu, Oct 8, 2009 at 1:59 PM,
 nino martinez wael nino.martinez.w...@gmail.com
 wrote:
 
 I've created a wiki here
 
 http://wicketstuff.org/confluence/display/STUFFWIKI/WicketStuff+Artwork
 so
 
 we can accumulate information like this.
 
 
 
 2009/10/8 Stefan Jozsa stefan_...@yahoo.com
 
 
 
  Had similar issue when used artwork and jgrowl in the
 same time.
 
  Workaround: I removed Javascript (reference) inclusion
 in
 
  JGrowlFeedbackPanel, that is:
 
 
 
  @Override
 
  public void renderHead(final IHeaderResponse response)
 {
 
  /*
 
  response.renderJavascriptReference(new
 
 
 JavascriptResourceReference(JGrowlFeedbackPanel.class,
 
  jquery-1.3.2.js));
 
  */
 
  // ...
 
  }
 
 
 
  Stefan
 
 
 
  --- On Thu, 10/8/09, nino martinez wael nino.martinez.w...@gmail.com
 
  wrote:
 
 
 
   From: nino martinez wael nino.martinez.w...@gmail.com
 
   Subject: Re: artwork mootip conflict
 
   To: users@wicket.apache.org
 
   Date: Thursday, October 8, 2009, 9:53 AM
 
   Hi Vinnet
 
  
 
   Interesting, could you provide a quickstart
 project that
 
   shows this
 
   behaviour.. It's a lot easier for me to
 help.. Otherwise I
 
   might not have
 
   the time to do so.
 
  
 
   regards Nino
 
  
 
   2009/10/7 vineet semwal vineetsemwal1...@gmail.com
 
  
 
I can't say what exactly is causing
 problem but when i
 
   am using liquid
 
canvas with mootip(minis) in a page,
 
the liquid canvas fails to render ..
 
   
 
   
 
--
 
regards,
 
Vineet Semwal
 
   
 
  
 
 
 
 
 
 
 
 
 
 
 -
 
  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: Showing Modal window within a wizard step

2009-10-08 Thread Michael O'Cleirigh

Hi Jeffrey,

Due to the way pages are serialized models don't work right is shared 
between pages.


There are two kinds of modal windows and one of them is a page that is 
rendered on your page through an IFRAME.


If the model data is not appearing its because you are using the page type.

You will have to wire up the panel on the modal window to use a model 
that knows how to get the same object that is being used in the wizard step.


I've used a spring session scoped bean for this type of synchronization 
before. i.e.  You create an IModel that loads and stores the object from 
the spring bean which will make the data the same in both the wizard 
step and the modal window.


Regards,

Mike


Passing a model between a page to modal window is the same as passing a 
model between pages

Ok.  How do I use the same model?  The model I have on step 1 if I pass
it into the modal window I get no data in the model.  This was my
original thought on how to do it but something isn't right.

And yes I know the wiki example refers to a chooserPanel and in my
case it is an editorPanel.  I didn't expect the wiki to be the exact
code that I needed but a starting example.



-Original Message-
From: Pedro Santos [mailto:pedros...@gmail.com] 
Sent: Thursday, October 08, 2009 7:03 AM

To: users@wicket.apache.org
Subject: Re: Showing Modal window within a wizard step

Hi Jeffrey, the wiki example refers to an chooserPanel, that is not
the
case of your editorPanel. Simple use the same model on step 1 on your
Modal window.

On Wed, Oct 7, 2009 at 5:19 PM, Jeffrey Schneller 
jeffrey.schnel...@envisa.com wrote:

  

I am trying to show a modal window within a wizard step showing the


same
  

data the wizard step shows but as input text fields for editing.  I


have
  

found some references to showing a wizard in a modal window and


showing
  

a wizard within a wizard but not what I am looking to do.



I have the wizard steps appearing with the data and I have a modal


popup
  

being launched from the step via an AjaxLink.  I can't figure out how


to
  

get the data from the wizard step and make it appear in the modal as
well [so the user can edit the information].



I have a MyWizard object which in the constructor sets the default


model
  

to a CompoundPropertyModel of a LoadableDetachableModel of my data
object.  I then call a method in the constructor to set all the data


of
  

the model that I can from the database [which works].



The first step of the wizard shows any data that has been set in the
model.



How do I get my Modal window to show the same data from the model used
to display data  in step 1?



I then will need to take the values entered in the modal and push them
back into the wizard model.  I am assuming this can be done via an


entry
  

in the wiki [1].



Thanks.



[1]



http://cwiki.apache.org/WICKET/pass-form-input-from-modal-window-back-to
  
-the-caller-page.htmlhttp://cwiki.apache.org/WICKET/pass-form-input-fro

m-modal-window-back-to%0A-the-caller-page.html
  















  




Re: artwork mootip conflict

2009-10-08 Thread vineet semwal
In the case of mootip ,mootools.v1.11.js  is causing conflict ..
 but your fix works ;)

-- 
regards,
Vineet Semwal

On Thu, Oct 8, 2009 at 8:13 PM, Stefan Jozsa stefan_...@yahoo.com wrote:

 Yes, you right, if jquery.js not added then
 no artwork, no jwicket, no jgrowl.
 But, at that time I knew that artwork/jwicket
 included jquery.js, so the JS was available
 even if I removed inclusion from jgrowl.

 Anyway, I don't know the way such kind of isue(s)
 can be avoided transparenly
 (that is, NOT like my brutal workaround).

 Stefan

 --- On Thu, 10/8/09, vineet semwal vineetsemwal1...@gmail.com wrote:

  From: vineet semwal vineetsemwal1...@gmail.com
  Subject: Re: artwork mootip conflict
  To: users@wicket.apache.org
  Date: Thursday, October 8, 2009, 5:20 PM
  Stefan,
  thank you,
  your fix works but if the required js files are not added
  the plugin will not work as good
  as it should  :(
 
  Nino,
  thank you for creating the wiki ;)
 
  i am attaching the example project for the issue which
  shows a page where stefan's fix is used
  and other page where it's not used .
 
  --
  regards,
  Vineet Semwal
 
  On Thu, Oct 8, 2009 at 1:59 PM,
  nino martinez wael nino.martinez.w...@gmail.com
  wrote:
 
  I've created a wiki here
 
  http://wicketstuff.org/confluence/display/STUFFWIKI/WicketStuff+Artwork
  so
 
  we can accumulate information like this.
 
 
 
  2009/10/8 Stefan Jozsa stefan_...@yahoo.com
 
 
 
   Had similar issue when used artwork and jgrowl in the
  same time.
 
   Workaround: I removed Javascript (reference) inclusion
  in
 
   JGrowlFeedbackPanel, that is:
 
  
 
   @Override
 
   public void renderHead(final IHeaderResponse response)
  {
 
   /*
 
   response.renderJavascriptReference(new
 
  
  JavascriptResourceReference(JGrowlFeedbackPanel.class,
 
   jquery-1.3.2.js));
 
   */
 
   // ...
 
   }
 
  
 
   Stefan
 
  
 
   --- On Thu, 10/8/09, nino martinez wael nino.martinez.w...@gmail.com
 
   wrote:
 
  
 
From: nino martinez wael nino.martinez.w...@gmail.com
 
Subject: Re: artwork mootip conflict
 
To: users@wicket.apache.org
 
Date: Thursday, October 8, 2009, 9:53 AM
 
Hi Vinnet
 
   
 
Interesting, could you provide a quickstart
  project that
 
shows this
 
behaviour.. It's a lot easier for me to
  help.. Otherwise I
 
might not have
 
the time to do so.
 
   
 
regards Nino
 
   
 
2009/10/7 vineet semwal vineetsemwal1...@gmail.com
 
   
 
 I can't say what exactly is causing
  problem but when i
 
am using liquid
 
 canvas with mootip(minis) in a page,
 
 the liquid canvas fails to render ..
 

 

 
 --
 
 regards,
 
 Vineet Semwal
 

 
   
 
  
 
  
 
  
 
  
 
  
  -
 
   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




RestartResponseAtInterceptPageException causing odd problem with IE

2009-10-08 Thread Wayne Pope
Hi,

something we've run across with users using IE - basically if they try
and access a page they do not have RENDER permission a
UnauthorizedActionException gets thrown.
This in turn (when I set through wicket 1.4-rc6) throws a
RestartResponseAtInterceptPageException with a AccessDeniedPage that
we set in the application. Not this works no problem is all browser
except IE.

In IE we get a HTTP 400 bad request. If we refresh the browser the
page displays correctly. I have no idea why this is happening. Has
anyone seen this or can give me some pointers on how to fix this?

many thanks
Wayne

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



RE: Showing Modal window within a wizard step

2009-10-08 Thread Jeffrey Schneller
I am using the modal window with a panel which sits inside a wizard.
Here is my code because I am out of ideas and need a solution.  The
dropdown with the onchange is working and is updating the first name
with the value from the selected object in the dropdown.  The Popup is
not getting the same data from the model.  I keep getting first name
being null even after the first name is shown correctly after choosing
in the dropdown.

I am using Guice.  I am not using Spring and have no plans to use
Spring. rant I like the Wicket framework but am becoming increasingly
annoyed and losing faith in it.  Easy things to develop are taking way
too long and require more and more crap thrown at it to get it to work.
I have built multiple large sites with jsp/servlets/javascript/ajax that
are 1000x more complex than what I am trying to do with less headaches.
/rant

That being said here is the code that I have.  Hopefully someone can
help me.

STEP1 - extends WizardStep

public Step1(String name, String summary, IModel model) {
 super(new Model(name), new Model(summary), model);
 
   final Label fname = new Label(name.firstName);
   fname.setOutputMarkupId(true);
 
   add(fname);
 add(new Label(name.middleName).setOutputMarkupId(true));
 add(new Label(name.lastName).setOutputMarkupId(true));
 add(new Label(adminName).setOutputMarkupId(true));
 
// Dropdown to choose a person if the account has more
than one person tied to it
List people =
dao.findById(MySession.get().getAccountId()).getPeople();
DropDownChoice peopleSelect = new
DropDownChoice(people, people, new PeopleChoiceRenderer(lastName,
id));
peopleSelect.setRequired(true);
peopleSelect.setNullValid(false);

peopleSelect.add(new
AjaxFormComponentUpdatingBehavior(onchange) {
protected void onUpdate(AjaxRequestTarget
target) {
RequestForm rf = (RequestForm) getDefaultModelObject();

if (rf.getPeople() != null) {   
 
rf.getName().setFirstName(rf.getPeople().getFirstName());
target.addComponent(fname);

}
}
}); 
add(peopleSelect);

final ModalWindow editPopup = new ModalWindow(modal);
add(editPopup);

final ModifyPeoplePanel editPopupPanel = new
ModifyPeoplePanel(editPopup.getContentId(), model); 
editPopup.setContent(editPopupPanel);
editPopup.setTitle(Modify People Info);
editPopup.setCookieName(peopleModify);

 AjaxLink modifyLink = new AjaxLink(modify) {

 @Override
public void onClick(AjaxRequestTarget target) {
editPopup.show(target);
}

 };
 add(modifyLink);
  }

MODIFYPEOPLEPANEL- class that extends panel

public ModifyPeoplePanel(String id, IModel model) {
super(id, model);
Form form = new ModifyPeopleForm(modifyPeople, model);
add(form);
}
public class ModifyPeopleForm extends Form {

public ModifyPeopleForm(String id, IModel model) {
super(id, model);

  add(new RequiredTextFieldString(name.firstName));
add(new RequiredTextFieldString(name.middleName));
add(new RequiredTextFieldString(name.lastName));
add(new RequiredTextFieldString(adminName));
}
}


-Original Message-
From: Michael O'Cleirigh [mailto:michael.ocleir...@rivulet.ca] 
Sent: Thursday, October 08, 2009 11:00 AM
To: users@wicket.apache.org
Subject: Re: Showing Modal window within a wizard step

Hi Jeffrey,

Due to the way pages are serialized models don't work right is shared 
between pages.

There are two kinds of modal windows and one of them is a page that is 
rendered on your page through an IFRAME.

If the model data is not appearing its because you are using the page
type.

You will have to wire up the panel on the modal window to use a model 
that knows how to get the same object that is being used in the wizard
step.

I've used a spring session scoped bean for this type of synchronization 
before. i.e.  You create an IModel that loads and stores the object from

the spring bean which will make the data the same in both the wizard 
step and the modal window.

Regards,

Mike


Passing a model between a page to modal window is the same as passing a 
model between pages
 Ok.  How do I use the same model?  The model I have on step 1 if I
pass
 it into the modal window I get no data in the model.  This was my
 original thought on how to do it but something isn't 

scroll position

2009-10-08 Thread Douglas Ferguson
I have a DataView that I add to the ajax target on a timer, so that  
data can be refreshed as loaded by a background process.

If the user is view the data and scrolls down, the scroll bar is reset  
to the top when the timer refreshes the view.

The only solution I can come up with is to set scroll top using  
javascript.

I am curious if there is a way to retrieve the current y position from  
javascript during an ajax request.

I.E.

1) When the event is triggered
 getScrollPosition and save it to the page
 refresh the view.

View
2) onLoad - scrollTo - last saved position


I've seen some people use cookies but I don't think this is a robust  
as storing on the page object.



Douglas

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



Re: Showing Modal window within a wizard step

2009-10-08 Thread Pedro Santos
I had an similar problem time ago. In my case a solve adding an submit
bottom on bottom of the panel, that closes the modal window too. You have to
chose a way to mantain your html form components on modal window in sync to
they model on server. You can add on AjaxFormComponentUpdatingBehavior on
onchange events too.
Why? Because the panel object on browser will to be simple remove when you
close the modal window. At that moment, you just lost you they input data
without have sent it to server.

I have built multiple large sites with jsp/servlets/javascript/ajax that
are 1000x more complex than what I am trying to do with less headaches.

so why you are using wicket?

On Thu, Oct 8, 2009 at 12:30 PM, Jeffrey Schneller 
jeffrey.schnel...@envisa.com wrote:

 I am using the modal window with a panel which sits inside a wizard.
 Here is my code because I am out of ideas and need a solution.  The
 dropdown with the onchange is working and is updating the first name
 with the value from the selected object in the dropdown.  The Popup is
 not getting the same data from the model.  I keep getting first name
 being null even after the first name is shown correctly after choosing
 in the dropdown.

 I am using Guice.  I am not using Spring and have no plans to use
 Spring. rant I like the Wicket framework but am becoming increasingly
 annoyed and losing faith in it.  Easy things to develop are taking way
 too long and require more and more crap thrown at it to get it to work.
 I have built multiple large sites with jsp/servlets/javascript/ajax that
 are 1000x more complex than what I am trying to do with less headaches.
 /rant

 That being said here is the code that I have.  Hopefully someone can
 help me.

 STEP1 - extends WizardStep

public Step1(String name, String summary, IModel model) {
 super(new Model(name), new Model(summary), model);

   final Label fname = new Label(name.firstName);
   fname.setOutputMarkupId(true);

   add(fname);
 add(new Label(name.middleName).setOutputMarkupId(true));
 add(new Label(name.lastName).setOutputMarkupId(true));
 add(new Label(adminName).setOutputMarkupId(true));

// Dropdown to choose a person if the account has more
 than one person tied to it
List people =
 dao.findById(MySession.get().getAccountId()).getPeople();
DropDownChoice peopleSelect = new
 DropDownChoice(people, people, new PeopleChoiceRenderer(lastName,
 id));
peopleSelect.setRequired(true);
peopleSelect.setNullValid(false);

peopleSelect.add(new
 AjaxFormComponentUpdatingBehavior(onchange) {
protected void onUpdate(AjaxRequestTarget
 target) {
RequestForm rf = (RequestForm) getDefaultModelObject();

if (rf.getPeople() != null) {

 rf.getName().setFirstName(rf.getPeople().getFirstName());
target.addComponent(fname);

}
}
});
add(peopleSelect);

final ModalWindow editPopup = new ModalWindow(modal);
add(editPopup);

final ModifyPeoplePanel editPopupPanel = new
 ModifyPeoplePanel(editPopup.getContentId(), model);
editPopup.setContent(editPopupPanel);
editPopup.setTitle(Modify People Info);
editPopup.setCookieName(peopleModify);

 AjaxLink modifyLink = new AjaxLink(modify) {

 @Override
public void onClick(AjaxRequestTarget target) {
editPopup.show(target);
}

 };
 add(modifyLink);
  }

 MODIFYPEOPLEPANEL- class that extends panel

public ModifyPeoplePanel(String id, IModel model) {
super(id, model);
Form form = new ModifyPeopleForm(modifyPeople, model);
add(form);
}
public class ModifyPeopleForm extends Form {

public ModifyPeopleForm(String id, IModel model) {
super(id, model);

  add(new RequiredTextFieldString(name.firstName));
add(new RequiredTextFieldString(name.middleName));
add(new RequiredTextFieldString(name.lastName));
add(new RequiredTextFieldString(adminName));
 }
}


 -Original Message-
 From: Michael O'Cleirigh [mailto:michael.ocleir...@rivulet.ca]
 Sent: Thursday, October 08, 2009 11:00 AM
 To: users@wicket.apache.org
 Subject: Re: Showing Modal window within a wizard step

 Hi Jeffrey,

 Due to the way pages are serialized models don't work right is shared
 between pages.

 There are two kinds of modal windows and one of them is a page that is
 rendered on your page through an IFRAME.

 If the model data is not appearing its because you are using the page
 type.

 You will have to wire up the panel on 

Re: Showing Modal window within a wizard step

2009-10-08 Thread Pedro Santos
Ops, the modal window object on browser is created on 'document.body' level.
Maybe you want to create an form to your ModifyPeoplePanel form components.

On Thu, Oct 8, 2009 at 1:38 PM, Pedro Santos pedros...@gmail.com wrote:

 I had an similar problem time ago. In my case a solve adding an submit
 bottom on bottom of the panel, that closes the modal window too. You have to
 chose a way to mantain your html form components on modal window in sync to
 they model on server. You can add on AjaxFormComponentUpdatingBehavior on
 onchange events too.
 Why? Because the panel object on browser will to be simple remove when you
 close the modal window. At that moment, you just lost you they input data
 without have sent it to server.

 I have built multiple large sites with jsp/servlets/javascript/ajax that
 are 1000x more complex than what I am trying to do with less headaches.

 so why you are using wicket?


 On Thu, Oct 8, 2009 at 12:30 PM, Jeffrey Schneller 
 jeffrey.schnel...@envisa.com wrote:

 I am using the modal window with a panel which sits inside a wizard.
 Here is my code because I am out of ideas and need a solution.  The
 dropdown with the onchange is working and is updating the first name
 with the value from the selected object in the dropdown.  The Popup is
 not getting the same data from the model.  I keep getting first name
 being null even after the first name is shown correctly after choosing
 in the dropdown.

 I am using Guice.  I am not using Spring and have no plans to use
 Spring. rant I like the Wicket framework but am becoming increasingly
 annoyed and losing faith in it.  Easy things to develop are taking way
 too long and require more and more crap thrown at it to get it to work.
 I have built multiple large sites with jsp/servlets/javascript/ajax that
 are 1000x more complex than what I am trying to do with less headaches.
 /rant

 That being said here is the code that I have.  Hopefully someone can
 help me.

 STEP1 - extends WizardStep

public Step1(String name, String summary, IModel model) {
 super(new Model(name), new Model(summary), model);

   final Label fname = new Label(name.firstName);
   fname.setOutputMarkupId(true);

   add(fname);
 add(new Label(name.middleName).setOutputMarkupId(true));
 add(new Label(name.lastName).setOutputMarkupId(true));
 add(new Label(adminName).setOutputMarkupId(true));

// Dropdown to choose a person if the account has more
 than one person tied to it
List people =
 dao.findById(MySession.get().getAccountId()).getPeople();
DropDownChoice peopleSelect = new
 DropDownChoice(people, people, new PeopleChoiceRenderer(lastName,
 id));
peopleSelect.setRequired(true);
peopleSelect.setNullValid(false);

peopleSelect.add(new
 AjaxFormComponentUpdatingBehavior(onchange) {
protected void onUpdate(AjaxRequestTarget
 target) {
RequestForm rf = (RequestForm) getDefaultModelObject();

if (rf.getPeople() != null) {

 rf.getName().setFirstName(rf.getPeople().getFirstName());
target.addComponent(fname);

}
}
});
add(peopleSelect);

final ModalWindow editPopup = new ModalWindow(modal);
add(editPopup);

final ModifyPeoplePanel editPopupPanel = new
 ModifyPeoplePanel(editPopup.getContentId(), model);
editPopup.setContent(editPopupPanel);
editPopup.setTitle(Modify People Info);
editPopup.setCookieName(peopleModify);

 AjaxLink modifyLink = new AjaxLink(modify) {

 @Override
public void onClick(AjaxRequestTarget target) {
editPopup.show(target);
}

 };
 add(modifyLink);
  }

 MODIFYPEOPLEPANEL- class that extends panel

public ModifyPeoplePanel(String id, IModel model) {
super(id, model);
Form form = new ModifyPeopleForm(modifyPeople, model);
add(form);
}
public class ModifyPeopleForm extends Form {

public ModifyPeopleForm(String id, IModel model) {
super(id, model);

  add(new RequiredTextFieldString(name.firstName));
add(new RequiredTextFieldString(name.middleName));
add(new RequiredTextFieldString(name.lastName));
add(new RequiredTextFieldString(adminName));
 }
}


 -Original Message-
 From: Michael O'Cleirigh [mailto:michael.ocleir...@rivulet.ca]
 Sent: Thursday, October 08, 2009 11:00 AM
 To: users@wicket.apache.org
 Subject: Re: Showing Modal window within a wizard step

 Hi Jeffrey,

 Due to the way pages are serialized models don't work right is shared
 between 

ListView for only one element. Something wrong.

2009-10-08 Thread Nicolas Melendez
Hi, i want to use a ListView to use the onpopulate method so when the panel
refresh i can see the new data.But the listView has always one element and i
think it was made for lots of elements.
Something is wrong in the way i am thinking.
Any suggestion?

NM


RE: Showing Modal window within a wizard step

2009-10-08 Thread Jeffrey Schneller
We are using wicket to have clean html void of jsp tags.  Because they
cause maintenance problems as the sites evolve over time.  Wicket was
suggested as a possible solution for this.  Which it is but the lack of
decent documentation/examples of real world issues is getting to be an
issue.

-Original Message-
From: Pedro Santos [mailto:pedros...@gmail.com] 
Sent: Thursday, October 08, 2009 12:38 PM
To: users@wicket.apache.org
Subject: Re: Showing Modal window within a wizard step

I have built multiple large sites with jsp/servlets/javascript/ajax that
are 1000x more complex than what I am trying to do with less headaches.

so why you are using wicket?


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



Re: Exceptions and Ajax Events

2009-10-08 Thread Nicolas Melendez
Any clues or suggestions on this issue.Thinks.
NM



On Thu, Oct 1, 2009 at 11:22 PM, Esteban Masoero
emaso...@getsense.com.arwrote:

 Hi:

 We found out we need something else. Is there a way we can access to the
 component asociated to the listener that was processing the event? (of
 course it only applies to ajax events), becase from onRuntimeException we
 ony have the Page.

 Thanks,

 Esteban

 Jeremy Thomerson escribió:

  something like this in your application should work:

 @Override
 public RequestCycle newRequestCycle(Request request, Response response) {
return new WebRequestCycle(this, (WebRequest)request,
 (WebResponse)response) {
@Override
public Page onRuntimeException(Page page, RuntimeException e) {
if (RequestCycle.get().getRequestTarget() instanceof
 AjaxRequestTarget) {
// do something with ajax request targets
}
return super.onRuntimeException(page, e);
}
};
 }


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



 On Thu, Oct 1, 2009 at 1:59 PM, Nicolas Melendez
 nmelen...@getsense.com.arwrote:



 Hi there,Our team was discussing about if there is a place where all
 exceptions, that come from an ajax behaviour, can be catched.
 We want to do this because we strongly belive that exceptions should be
 catched in one place, but now we have to catch  the exception in every
 ajax method( onSubmit, onChance, etc) in the application.
 Is there one place in wicket where we can do that?

 Thank in advance.
 Our team.







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




Re: ListView for only one element. Something wrong.

2009-10-08 Thread Sven Meier

Hi Nicolas,

you can just use a WebMarkupContainer and recreate its children on each 
request in #onBeforeRender().


But the question is: why do you need to refresh your components at all? 
It seems you don't use models correctly.

Show us some code.

Sven

Nicolas Melendez wrote:

Hi, i want to use a ListView to use the onpopulate method so when the panel
refresh i can see the new data.But the listView has always one element and i
think it was made for lots of elements.
Something is wrong in the way i am thinking.
Any suggestion?

NM

  



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



Re: [Migrating to Wicket 1.4.1] Problem submitting FormTester

2009-10-08 Thread yomarbi

Any ideas?. We have the same problem trying to migrate to Wicket 1.4.2!


yomarbi wrote:
 
 Hi, I've been having problems migrating Wicket 1.4-RC4 to 1.4.1. Some of
 our
 wicket-tests are failing and producing errors due to a form submission
 issue.
 
 For example:
 
 .java:
 public class Prueba extends PageTemplate {
 public Prueba() {
 add(new FormVoid(form).add(new Button(submit, null) {
 @Override
 public void onSubmit() {
 System.out.println(submit listener);
 }
 }));
 }
 }
 
 .html:
 wicket:extend
 form wicket:id=form
 input type=submit wicket:id=submit /
 /form
 /wicket:extend
 
 test:
 @Test
 public void render(){
 tester.startPage(Prueba.class);
 tester.assertRenderedPage(Prueba.class);
 FormTester formTester = tester.newFormTester(form);
 formTester.submit(submit);
 tester.assertRenderedPage(Prueba.class); // This line produces
 AssertionFailedError: expected:Prueba but was:Home
 
 stacktrace:
 
  junit.framework.AssertionFailedError: expected:Prueba but was:Home
 at
 org.apache.wicket.util.tester.WicketTester.assertResult(WicketTester.java:580)
 at
 org.apache.wicket.util.tester.WicketTester.assertRenderedPage(WicketTester.java:528)
 at ar.edu.itba.it.dev.sga.PruebaTest.render(PruebaTest.java:16)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:616)
 at
 org.springframework.test.context.junit4.SpringTestMethod.invoke(SpringTestMethod.java:160)
 at
 org.springframework.test.context.junit4.SpringMethodRoadie.runTestMethod(SpringMethodRoadie.java:233)
 at
 org.springframework.test.context.junit4.SpringMethodRoadie$RunBeforesThenTestThenAfters.run(SpringMethodRoadie.java:333)
 at
 org.springframework.test.context.junit4.SpringMethodRoadie.runWithRepetitions(SpringMethodRoadie.java:217)
 at
 org.springframework.test.context.junit4.SpringMethodRoadie.runTest(SpringMethodRoadie.java:197)
 at
 org.springframework.test.context.junit4.SpringMethodRoadie.run(SpringMethodRoadie.java:143)
 at
 org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:160)
 at
 org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
 at
 org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
 at
 org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
 at
 org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
 at
 org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
 at
 org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:97)
 at
 org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
 at
 org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
 at
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
 at
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
 at
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
 at
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
 
 
 Debugging the formTester.submit I could see that when triying to resolve
 the
 target because the page parameter path is empty the
 WebRequestCycleProcessor
 decides to resolve to the home page (line 173). I have no problem when
 submiting forms using AJAX components.
 
 Thanks, Martin.
 
 

-- 
View this message in context: 
http://www.nabble.com/-Migrating-to-Wicket-1.4.1--Problem-submitting-FormTester-tp25563071p25803470.html
Sent from the Wicket - User 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: ListView for only one element. Something wrong.

2009-10-08 Thread Nicolas Melendez
Hi:
Sven, thanks for replying!

I've added some code below.

--
class MyPage:
private List businessObjectList;
private MyPanel myPanel;
list is populated somehow

myPanel = new MyPanel(businessObjectList);
this.add(myPanel);
...
on some behavior
- target.addComponent(myPanel);
-
class MyPanel(businessObjectList):
this.add(SomeComponent(first element of businessObjectList));
this.add(new ListView(businessObjectList wihout first element){ ... });
--

I'm aware that as the panel receives a modelObject and not a model, then
when it's refreshed it will show the  previous list. So, I was thinking
about myPanel receiving a PropertyModel(this, businessObjectList), but the
thing is: how can it retrieve the first business object (which needs to be
shown differently) in a dynamic way so when the panel is refreshed, it
will take it from the new list (I could use another repeater that will loop
only once, but I was hoping there's a nicer way).

Thanks again,

NM

On Thu, Oct 8, 2009 at 7:50 PM, Sven Meier s...@meiers.net wrote:

 Hi Nicolas,

 you can just use a WebMarkupContainer and recreate its children on each
 request in #onBeforeRender().

 But the question is: why do you need to refresh your components at all? It
 seems you don't use models correctly.
 Show us some code.

 Sven


 Nicolas Melendez wrote:

 Hi, i want to use a ListView to use the onpopulate method so when the
 panel
 refresh i can see the new data.But the listView has always one element and
 i
 think it was made for lots of elements.
 Something is wrong in the way i am thinking.
 Any suggestion?

 NM





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




self-recursive panel

2009-10-08 Thread Ceki Gulcu

Hello,

I just succeeded to create a self-recursive panel displaying a
tree-like structure with less than 40 lines of java code and 10 lines
of HTML. I am including the code here in case someone is interested.


==
public class Node implements Serializable {

  String name;
  ListNode childrenList = new ArrayListNode();

  Node(String name) {
this.name = name;
  }

  public void add(Node child) {
childrenList.add(child);
  }

  public String getName() {
return name;
  }

  public ListNode getChildrenList() {
return childrenList;
  }

  static Node getSampleNode() {
Node nodeA = new Node(A);
Node nodeA0 = new Node(A0);
Node nodeA00 = new Node(A00);
Node nodeA01 = new Node(A01);
Node nodeA1 = new Node(A1);

nodeA.add(nodeA0);
nodeA.add(nodeA1);

nodeA0.add(nodeA00);
nodeA0.add(nodeA01);
return nodeA;
  }
}

=== Tree.java and Tree.html 
public class Tree extends WebPage {

  public Tree() {
Node node = Node.getSampleNode();
NodePanel nodePanel = new NodePanel(, node, node);
add(nodePanel);
  }
}

html xmlns=http://www.w3.org/1999/xhtml;
  head
titleTree/title
link rel=stylesheet href=style.css /
  /head
body
  div wicket:id=node/div
/body
/html



= NodePanel.hava and html ==
public class NodePanel extends Panel {

  public NodePanel(final String indent, String id, Node node) {
super(id);

add(new Label(name, indent+node.getName()));

if (node.getChildrenList().size() == 0) {
  final WebMarkupContainer parent = new WebMarkupContainer(children);
  add(parent);
  parent.add(new EmptyPanel(node));
} else {
  add(new ListView(children, node.getChildrenList()) {
@Override
protected void populateItem(ListItem item) {
  Node childNode = (Node) item.getModelObject();
  item.add(new NodePanel(indent+, node, childNode));
}
  });
}
  }
}

html xmlns:wicket

  wicket:panel
p wicket:id=namename/p

div wicket:id=children
  div wicket:id=node
  /div
/div
  /wicket:panel

/html


HTH,

--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch

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



what is the proper way to handle success message within a feedback panel

2009-10-08 Thread Joe Hudson
Hello,

It seems that the only levels of feedback message are:

-DEBUG

-ERROR

-FATAL

-INFO

-UNDEFINED

-WARNING

I'm just wondering what the best practice is for success messages are.  Thanks.

Regards,

Joe


Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-08 Thread jWeekend

Danisevsky,

This has been used by loads of people and on all sorts of OSs and versions.
I also just successfully tried it on XP, Vista  Ubuntu in case you had come
across something that has been missed. 

Paste what you copy from Leg Up into a text editor to see what's causing
that exception on your box and let us know what you find to help others that
may hit a similar issue with copy 'n' paste or whatever else it turns out to
be specific to your environment (possibly a proxy issue - ie you haven't
told Maven about your proxy, but your browser is set up properly to use it).

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket Training and Development
http://jWeekend.com




danisevsky danisevsky wrote:
 
 I can access this file in web browser and it seems that there is no break
 line. I will try it later in linux.
 
 thank you
 
 
 2009/10/8 richardwilko richardjohnwilkin...@gmail.com
 

 hi,

 The error is saying that maven cannot find the archetype catalog file,
 please make sure you can access this file in a web browser [1], and
 ensure
 that you do not have any line breaks in your maven command (not sure if
 it
 is just how the command appears on nabble but it looks like there is a
 line
 break in the middle of the url)


 [1] - http://legup.googlecode.com/svn/repo/archetype-catalog.xml


 Hope this helps

 Regards - Richard Wilkinson
 Developer,
 jWeekend: OO  Java Technologies - Development and Training
 http://jWeekend.com



 danisevsky danisevsky wrote:
 
  Hello, I was trying generate Wicket - Spring - JPA project and I get
  following error:
 
  C:\projects\testmvn archetype:generate -B -DarchetypeCatalog=
  http://legup.googl
 
 ecode.com/svn/repo/archetype-catalog.xml-DarchetypeArtifactId=wicket-spring-jpa
  -archetype -DarchetypeGroupId=com.jweekend -DarchetypeVersion=0.8.0
  -DgroupId=co
  m.mycompany -DartifactId=mycompany -Dversion=1.0-SNAPSHOT
  -Dpackage=com.mycompan
  y
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'archetype'.
  [INFO]
 
 
  [INFO] Building Maven Default Project
  [INFO]task-segment: [archetype:generate] (aggregator-style)
  [INFO]
 
 
  [INFO] Preparing archetype:generate
  [INFO] No goals needed for project - skipping
  [INFO] Setting property: classpath.resource.loader.class =
  'org.codehaus.plexus
  .velocity.ContextClassLoaderResourceLoader'.
  [INFO] Setting property: velocimacro.messages.on = 'false'.
  [INFO] Setting property: resource.loader = 'classpath'.
  [INFO] Setting property: resource.manager.logwhenfound = 'false'.
  [INFO] [archetype:generate]
  [INFO] Generating project in Batch mode
  [WARNING] Error reading archetype catalog
  http://legup.googlecode.com/svn/repo/a
  rchetype-catalog.xml
  org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate
  resource
  in repository
  at
  org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
  ata(LightweightHttpWagon.java:100)
  at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
  at
  org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.ge
  tArchetypeCatalog(RemoteCatalogArchetypeDataSource.java:74)
  at
  org.apache.maven.archetype.DefaultArchetype.getRemoteCatalog(DefaultA
  rchetype.java:203)
  at
  org.apache.maven.archetype.ui.DefaultArchetypeSelector.getArchetypesB
  yCatalog(DefaultArchetypeSelector.java:249)
  at
  org.apache.maven.archetype.ui.DefaultArchetypeSelector.selectArchetyp
  e(DefaultArchetypeSelector.java:74)
  at
  org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execu
  te(CreateProjectFromArchetypeMojo.java:180)
  at
  org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
  nManager.java:453)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
  ultLifecycleExecutor.java:559)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
  Goal(DefaultLifecycleExecutor.java:513)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
  ltLifecycleExecutor.java:483)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
  dleFailures(DefaultLifecycleExecutor.java:331)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
  ts(DefaultLifecycleExecutor.java:228)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
  fecycleExecutor.java:142)
  at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  

Re: what is the proper way to handle success message within a feedback panel

2009-10-08 Thread Jeremy Thomerson
Info?

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



On Thu, Oct 8, 2009 at 2:42 PM, Joe Hudson joe.hud...@clear2pay.com wrote:

 Hello,

 It seems that the only levels of feedback message are:

 -DEBUG

 -ERROR

 -FATAL

 -INFO

 -UNDEFINED

 -WARNING

 I'm just wondering what the best practice is for success messages are.
  Thanks.

 Regards,

 Joe



Re: Showing Modal window within a wizard step

2009-10-08 Thread Pedro Santos
I disagree, at the moment a got this trouble, few minutes was necessary to I
understand what was happening...
any way: https://issues.apache.org/jira/browse/WICKET-2515

On Thu, Oct 8, 2009 at 2:32 PM, Jeffrey Schneller 
jeffrey.schnel...@envisa.com wrote:

 We are using wicket to have clean html void of jsp tags.  Because they
 cause maintenance problems as the sites evolve over time.  Wicket was
 suggested as a possible solution for this.  Which it is but the lack of
 decent documentation/examples of real world issues is getting to be an
 issue.

 -Original Message-
 From: Pedro Santos [mailto:pedros...@gmail.com]
 Sent: Thursday, October 08, 2009 12:38 PM
 To: users@wicket.apache.org
 Subject: Re: Showing Modal window within a wizard step

 I have built multiple large sites with jsp/servlets/javascript/ajax that
 are 1000x more complex than what I am trying to do with less headaches.

 so why you are using wicket?


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




-- 
Pedro Henrique Oliveira dos Santos


Re: self-recursive panel

2009-10-08 Thread Eelco Hillenius
Yeah, that's like Wicket's nested example in wicket-examples.

Eelco

On Thu, Oct 8, 2009 at 12:27 PM, Ceki Gulcu c...@qos.ch wrote:
 Hello,

 I just succeeded to create a self-recursive panel displaying a
 tree-like structure with less than 40 lines of java code and 10 lines
 of HTML. I am including the code here in case someone is interested.


 ==
 public class Node implements Serializable {

  String name;
  ListNode childrenList = new ArrayListNode();

  Node(String name) {
    this.name = name;
  }

  public void add(Node child) {
    childrenList.add(child);
  }

  public String getName() {
    return name;
  }

  public ListNode getChildrenList() {
    return childrenList;
  }

  static Node getSampleNode() {
    Node nodeA = new Node(A);
    Node nodeA0 = new Node(A0);
    Node nodeA00 = new Node(A00);
    Node nodeA01 = new Node(A01);
    Node nodeA1 = new Node(A1);

    nodeA.add(nodeA0);
    nodeA.add(nodeA1);

    nodeA0.add(nodeA00);
    nodeA0.add(nodeA01);
    return nodeA;
  }
 }

 === Tree.java and Tree.html 
 public class Tree extends WebPage {

  public Tree() {
    Node node = Node.getSampleNode();
    NodePanel nodePanel = new NodePanel(, node, node);
    add(nodePanel);
  }
 }

 html xmlns=http://www.w3.org/1999/xhtml;
  head
    titleTree/title
    link rel=stylesheet href=style.css /
  /head
 body
  div wicket:id=node/div
 /body
 /html
 


 = NodePanel.hava and html ==
 public class NodePanel extends Panel {

  public NodePanel(final String indent, String id, Node node) {
    super(id);

    add(new Label(name, indent+node.getName()));

    if (node.getChildrenList().size() == 0) {
      final WebMarkupContainer parent = new WebMarkupContainer(children);
      add(parent);
      parent.add(new EmptyPanel(node));
    } else {
      add(new ListView(children, node.getChildrenList()) {
       �...@override
        protected void populateItem(ListItem item) {
          Node childNode = (Node) item.getModelObject();
          item.add(new NodePanel(indent+, node, childNode));
        }
      });
    }
  }
 }

 html xmlns:wicket

  wicket:panel
    p wicket:id=namename/p

    div wicket:id=children
      div wicket:id=node
      /div
    /div
  /wicket:panel

 /html
 

 HTH,

 --
 Ceki Gülcü
 Logback: The reliable, generic, fast and flexible logging framework for
 Java.
 http://logback.qos.ch

 -
 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: self-recursive panel

2009-10-08 Thread Ceki Gulcu


I was not aware of the nested example in wicket-examples.

Unfortunately, http://www.wicket-library.com/wicket-examples/nested/ barfs when 
I try to access it.


Eelco Hillenius wrote:

Yeah, that's like Wicket's nested example in wicket-examples.

Eelco

On Thu, Oct 8, 2009 at 12:27 PM, Ceki Gulcu c...@qos.ch wrote:

Hello,

I just succeeded to create a self-recursive panel displaying a
tree-like structure with less than 40 lines of java code and 10 lines
of HTML. I am including the code here in case someone is interested.


==
public class Node implements Serializable {

 String name;
 ListNode childrenList = new ArrayListNode();

 Node(String name) {
   this.name = name;
 }

 public void add(Node child) {
   childrenList.add(child);
 }

 public String getName() {
   return name;
 }

 public ListNode getChildrenList() {
   return childrenList;
 }

 static Node getSampleNode() {
   Node nodeA = new Node(A);
   Node nodeA0 = new Node(A0);
   Node nodeA00 = new Node(A00);
   Node nodeA01 = new Node(A01);
   Node nodeA1 = new Node(A1);

   nodeA.add(nodeA0);
   nodeA.add(nodeA1);

   nodeA0.add(nodeA00);
   nodeA0.add(nodeA01);
   return nodeA;
 }
}

=== Tree.java and Tree.html 
public class Tree extends WebPage {

 public Tree() {
   Node node = Node.getSampleNode();
   NodePanel nodePanel = new NodePanel(, node, node);
   add(nodePanel);
 }
}

html xmlns=http://www.w3.org/1999/xhtml;
 head
   titleTree/title
   link rel=stylesheet href=style.css /
 /head
body
 div wicket:id=node/div
/body
/html



= NodePanel.hava and html ==
public class NodePanel extends Panel {

 public NodePanel(final String indent, String id, Node node) {
   super(id);

   add(new Label(name, indent+node.getName()));

   if (node.getChildrenList().size() == 0) {
 final WebMarkupContainer parent = new WebMarkupContainer(children);
 add(parent);
 parent.add(new EmptyPanel(node));
   } else {
 add(new ListView(children, node.getChildrenList()) {
   @Override
   protected void populateItem(ListItem item) {
 Node childNode = (Node) item.getModelObject();
 item.add(new NodePanel(indent+, node, childNode));
   }
 });
   }
 }
}

html xmlns:wicket

 wicket:panel
   p wicket:id=namename/p

   div wicket:id=children
 div wicket:id=node
 /div
   /div
 /wicket:panel

/html


HTH,

--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for
Java.
http://logback.qos.ch

-
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




--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch

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



RE: Showing Modal window within a wizard step

2009-10-08 Thread Jeffrey Schneller
I am completely lost.  I have no idea what this means.  How can the
resolution to my problem be a JIRA issue that was created earlier today?
To find out how to do something who would think to look in the issue
tracking system which contains bugs and enhancement requests.

Anyhow, I resolved my loading of the modal with data by ditching the
LoadableDetachableModel for the time being and using a
CompoundPropertyModel.  I know it is not correct but it works for now.

Now I am attempting to get the data back into the form that the modal is
called from.  You would think this is easy.  But again I am stuck.

Wizard
   WizardStep   == data show is read only with a modify link
which brings
  the modal up.
 Modal == shows the data as editable.  Allows user to press
submit 
   button which closes window and updates the data
in the WizardStep


Please, any help with a simple real example will be appreciated.
Pointing someone to a past post which may touch on the topic in the
context of another question is not help.  I am sure someone knows how to
solve my issue.

Thanks.  

PS:  I need to stick with Wicket because I am at the point of no return
on this project.


-Original Message-
From: Pedro Santos [mailto:pedros...@gmail.com] 
Sent: Thursday, October 08, 2009 4:01 PM
To: users@wicket.apache.org
Subject: Re: Showing Modal window within a wizard step

I disagree, at the moment a got this trouble, few minutes was necessary
to I
understand what was happening...
any way: https://issues.apache.org/jira/browse/WICKET-2515

On Thu, Oct 8, 2009 at 2:32 PM, Jeffrey Schneller 
jeffrey.schnel...@envisa.com wrote:

 We are using wicket to have clean html void of jsp tags.  Because they
 cause maintenance problems as the sites evolve over time.  Wicket was
 suggested as a possible solution for this.  Which it is but the lack
of
 decent documentation/examples of real world issues is getting to be an
 issue.

 -Original Message-
 From: Pedro Santos [mailto:pedros...@gmail.com]
 Sent: Thursday, October 08, 2009 12:38 PM
 To: users@wicket.apache.org
 Subject: Re: Showing Modal window within a wizard step

 I have built multiple large sites with jsp/servlets/javascript/ajax
that
 are 1000x more complex than what I am trying to do with less
headaches.

 so why you are using wicket?


 -
 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



Re: wicketstuff-push question

2009-10-08 Thread Rodolfo Hansen
Can you prepare an example?

There are a few things I have to iron out in that code...

I recently published a couple of changes to

On Thu, Oct 8, 2009 at 2:39 AM, Daniel Dominik Holúbek dankodo...@gmail.com
 wrote:

 hello everybody,
 has anyone here any experience with wicketstuff-push?
 i am trying to use it in my app, but it behaves somewhat strangely.
 when i call cometdService.publish(event) method from form's onSubmit
 method,
 it works like a charm.
 but when i call it from another method - for example ListView's
 onModelChanged, then nothing happens.

 the reason i need to call it that way is, that i am using xmpp protocol for
 a chat application. in form's onSubmit method, i send the message via
 xmpp's
 sendMessage method. When received, the message is processed in a jabber
 listener. that is the place for publishing cometd event. if i publish it in
 onSubmit, clients often refresh themselves before the message actually
 arrives, and that's a problem.

 thank you for any help with this. :)

 --
 -danoh-




-- 
Rodolfo Hansen
CTO, KindleIT Software Development
Email: rhan...@kindleit.net
Office: 1 (809) 732-5200
Mobile: 1 (809) 299-7332


Re: self-recursive panel

2009-10-08 Thread Eelco Hillenius
 I was not aware of the nested example in wicket-examples.

 Unfortunately, http://www.wicket-library.com/wicket-examples/nested/ barfs
 when I try to access it.

Hmmm, don't know what's going on there. But you can check out the
source and look at it if you're interested. You won't learn much from
it, since it basically does what you do here :-)

Eelco

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



Re: self-recursive panel

2009-10-08 Thread Ryan Gravener
http://wicketstuff.org/wicket13/nested/

Ryan Gravener
http://bit.ly/no_word_docs



On Thu, Oct 8, 2009 at 5:44 PM, Eelco Hillenius
eelco.hillen...@gmail.com wrote:
 I was not aware of the nested example in wicket-examples.

 Unfortunately, http://www.wicket-library.com/wicket-examples/nested/ barfs
 when I try to access it.

 Hmmm, don't know what's going on there. But you can check out the
 source and look at it if you're interested. You won't learn much from
 it, since it basically does what you do here :-)

 Eelco

 -
 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: self-recursive panel

2009-10-08 Thread Eelco Hillenius
 http://wicketstuff.org/wicket13/nested/

 Ryan Gravener
 http://bit.ly/no_word_docs

Oh, right. Or http://wicketstuff.org/wicket14/nested/ (and notice the
fancy toolbar in the upper right corner).

Eelco

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



hide pagination

2009-10-08 Thread tubin gen
I am using dataview which comes with pagination , if the total records   are
less than   records per page is there away I can hide pagination bar ?


TinyMCE Spellcheck

2009-10-08 Thread Dane Laverty
I've added TinyMCE to my application, but I can't get the spellchecker to
work. When I click the button, I get a JavaScript alert that says, Please
specify: spellchecker_rpc_url. I checked it out in the example application,
but I get the same error there. I've installed the Jazzy spell checker, but
apparently I need something else as well. Has anyone gotten this to work?


Re: Showing Modal window within a wizard step

2009-10-08 Thread Jeremy Thomerson
Jeff,
  Sorry I have not had time to read the entire post and that you have not
found better documentation on this issue.  However, your problem on this is
almost certainly caused by the LoadableDetachableModel that is backing your
CompoundPropertyModel in your wizard.

Since a wizard is a multi-page process, you can not really use an LDM to
back it unless you persist changes after every step.  With an LDM (and not
persisting changes at every step), you end up with something like this flow:

WizardPageOne
  - load model from LDM (presumably DB)
  - display page with form
  - submit page
  - load model from LDM (presumably DB)
  - stick values onto model object
  - redirect to page two
WizardPageTwo
  - load model from LDM (presumably DB)
This is where the problem is - because those changes weren't persisted, the
model was detached, and when page two was rendered, reloaded.  The changes
were lost.

So, in your situation, substitute the modal window for page two - the
changes weren't making it into the model object that was used in the modal.

So, in any multi-page process, you either need to persist the changes back
down to wherever the LDM is loading from, or simply remove the LDM when the
wizard (or other multi-page process) is started, OR pass the model object
directly onto the other steps.

I find it easiest to do something similar to this:

public MyWizard(IModelFoo model) {
super(new Model(model.getObject()));
}

Since the model holds on to the actual object between requests, your changes
stay on the model object without persisting to your data store between each
request.

This goes against the standard use of models where you want something to
detach after every request, so it is counter-intuitive, but it is actually
very similar in thought to most any framework - where you will need to hold
a transient object in session during a multi-page process or persist a
partially-completed model object to the data store on every request.

Hope this helps!

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



On Thu, Oct 8, 2009 at 3:43 PM, Jeffrey Schneller 
jeffrey.schnel...@envisa.com wrote:

 I am completely lost.  I have no idea what this means.  How can the
 resolution to my problem be a JIRA issue that was created earlier today?
 To find out how to do something who would think to look in the issue
 tracking system which contains bugs and enhancement requests.

 Anyhow, I resolved my loading of the modal with data by ditching the
 LoadableDetachableModel for the time being and using a
 CompoundPropertyModel.  I know it is not correct but it works for now.

 Now I am attempting to get the data back into the form that the modal is
 called from.  You would think this is easy.  But again I am stuck.

 Wizard
   WizardStep   == data show is read only with a modify link
 which brings
  the modal up.
 Modal == shows the data as editable.  Allows user to press
 submit
   button which closes window and updates the data
 in the WizardStep


 Please, any help with a simple real example will be appreciated.
 Pointing someone to a past post which may touch on the topic in the
 context of another question is not help.  I am sure someone knows how to
 solve my issue.

 Thanks.

 PS:  I need to stick with Wicket because I am at the point of no return
 on this project.


 -Original Message-
 From: Pedro Santos [mailto:pedros...@gmail.com]
 Sent: Thursday, October 08, 2009 4:01 PM
 To: users@wicket.apache.org
 Subject: Re: Showing Modal window within a wizard step

 I disagree, at the moment a got this trouble, few minutes was necessary
 to I
 understand what was happening...
 any way: https://issues.apache.org/jira/browse/WICKET-2515

 On Thu, Oct 8, 2009 at 2:32 PM, Jeffrey Schneller 
 jeffrey.schnel...@envisa.com wrote:

  We are using wicket to have clean html void of jsp tags.  Because they
  cause maintenance problems as the sites evolve over time.  Wicket was
  suggested as a possible solution for this.  Which it is but the lack
 of
  decent documentation/examples of real world issues is getting to be an
  issue.
 
  -Original Message-
  From: Pedro Santos [mailto:pedros...@gmail.com]
  Sent: Thursday, October 08, 2009 12:38 PM
  To: users@wicket.apache.org
  Subject: Re: Showing Modal window within a wizard step
 
  I have built multiple large sites with jsp/servlets/javascript/ajax
 that
  are 1000x more complex than what I am trying to do with less
 headaches.
 
  so why you are using wicket?
 
 
  -
  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




Re: hide pagination

2009-10-08 Thread Douglas Ferguson
I override the onRender and set visibility conditionally.

However, you have to remember to set visible in your page redraws or  
else wicket won't even bother calling the onRender method

If you need, I can send you code.

On Oct 8, 2009, at 7:18 PM, tubin gen wrote:

 I am using dataview which comes with pagination , if the total  
 records   are
 less than   records per page is there away I can hide pagination bar ?


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



Re: ListView for only one element. Something wrong.

2009-10-08 Thread Sven Meier

Hi Nicolas,

use more models:

--
class MyPage:
private IModelList businessObjects;

private MyPanel myPanel;

myPanel = new MyPanel(businessObjects);
this.add(myPanel);
-
class MyPanel(final IModelList businessObjects):

this.add(new SomeComponent(new AbstractReadOnlyModel() {
 public Object getObject() {
   return businessObjects.getObject().get(0);
 }
}));
this.add(new ListView(new AbstractReadOnlyModel() {
 public Object getObject() {
   return businessObjects.getObject().subList(1, 
businessObjects.getObject().size());
 }
}) {
 ...
});
--

HTH

Sven

Nicolas Melendez schrieb:

Hi:
Sven, thanks for replying!

I've added some code below.

--
class MyPage:
private List businessObjectList;
private MyPanel myPanel;
list is populated somehow

myPanel = new MyPanel(businessObjectList);
this.add(myPanel);
...
on some behavior
- target.addComponent(myPanel);
-
class MyPanel(businessObjectList):
this.add(SomeComponent(first element of businessObjectList));
this.add(new ListView(businessObjectList wihout first element){ ... });
--

I'm aware that as the panel receives a modelObject and not a model, then
when it's refreshed it will show the  previous list. So, I was thinking
about myPanel receiving a PropertyModel(this, businessObjectList), but the
thing is: how can it retrieve the first business object (which needs to be
shown differently) in a dynamic way so when the panel is refreshed, it
will take it from the new list (I could use another repeater that will loop
only once, but I was hoping there's a nicer way).

Thanks again,

NM

On Thu, Oct 8, 2009 at 7:50 PM, Sven Meier s...@meiers.net wrote:

  

Hi Nicolas,

you can just use a WebMarkupContainer and recreate its children on each
request in #onBeforeRender().

But the question is: why do you need to refresh your components at all? It
seems you don't use models correctly.
Show us some code.

Sven


Nicolas Melendez wrote:



Hi, i want to use a ListView to use the onpopulate method so when the
panel
refresh i can see the new data.But the listView has always one element and
i
think it was made for lots of elements.
Something is wrong in the way i am thinking.
Any suggestion?

NM



  

-
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