junit for wicket webpage/panel

2012-08-23 Thread wicket user
Hi, 

I am wondering how to cover  the junit cases for the webpages/ panel as the
constructors are only taking the id's , but in the constructors of the
webpages/panel i have created the some methods for ex: 

My Panel extends Panel{

MyPanel(String id){
super(id);
buildPage();

}


private void buildPage(){
add( ...components)
}

}


Can anybody suggests me how can I write Junit test cases on these kind of
webpages/panels . 

Thanks,



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/junit-for-wicket-webpage-panel-tp4651468.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: enabling and disabling the components

2012-08-13 Thread wicket user
Thanks, it is working but some wierd thing is happening.
I have checked the values in the object also it is getting populated but
just one component is visible otherwise none. 

PriceVO priceVO

if(priceVO.getOnSalePrice()!=null)
 add(new Label(onSalePrice,   +
priceVO.getOnSalePrice())).setVisible(true);
else
add(new Label(onSalePrice, 
)).setVisible(false);

if(priceVO.getRegularPrice()!=null)
add(new Label(regularPrice, Reg. Price :  +
priceVO.getRegularPrice())).setVisible(true);
else
add(new Label(regularPrice, 
)).setVisible(false);

if(priceVO.getSavePrice()!=null)
add( new Label(youSave, You Save : +
priceVO.getSavePrice())).setVisible(true);
else
add( new Label(youSave, 
)).setVisible(false);

if(priceVO.getPlanPrice()!=null)
add(new Label(planPrice,   + 
priceVO.getPlanPrice()+  per
month)).setVisible(true);
else
add(new Label(planPrice, 
)).setVisible(false);





if the planPrice is getting populated then everything should be invisible
that is working fine but in some scenarios only regular price is getting
populated at that time nothing is displayed. 

Please Advise.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/enabling-and-disabling-the-components-tp4651107p4651188.html
Sent from the Users forum mailing list archive at Nabble.com.

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



how to get HttpServletRequest in My Application class

2012-08-13 Thread wicket user
Hi,

I need to get the HttpServletRequest  object in My Application class. In the
WebPage we can get from 

((HttpServletRequest) ((ServletWebRequest)
getRequest()).getContainerRequest())

but its not working in Application class. Please suggest any ideas. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-get-HttpServletRequest-in-My-Application-class-tp4651189.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: how to get HttpServletRequest in My Application class

2012-08-13 Thread wicket user
I am getting java.lang.NullPointerException
((ServletWebRequest)RequestCycle.get().getRequest()).getContainerRequest() 
.  




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-get-HttpServletRequest-in-My-Application-class-tp4651189p4651196.html
Sent from the Users forum mailing list archive at Nabble.com.

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



enabling and disabling the components

2012-08-09 Thread wicket user
Hi,

I am newbie to Wicket,My requirement is to show some components based on the
conditions.

 I have written on WebMarkUpContainer and in that I am add the components
based on the conditions, but on html i have added that wicket:id.
It is throwing MarkupException Unable to find component with id .

Please advise how to handle my requirement.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/enabling-and-disabling-the-components-tp4651107.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: enabling and disabling the components

2012-08-09 Thread wicket user
I was reading about setEnable(false), will that will be sufficient for my
requirement ? 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/enabling-and-disabling-the-components-tp4651107p4651108.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: enabling and disabling the components

2012-08-09 Thread wicket user
Hi,
 I tried this . 

public class MyContainer extends WebMarkupContainer{
public MyContainer(String id, MyVO myVO) {
super(id);
if(myVO.getName()!=null)
  add( new Label(fName,  myVO.getName()));
else
 add( new Label(fName,  )).setVisible(false);
}
public MyContainer(String id){
super(id);
 add(new Label(message, Testing Label);
}

}


Calling from my Class 

add( new MyContainer(test));
add( new MyContainer(test1, VO);


In html

div wicket:id=test

/div

div wicket:id=test1

/div




But the problem is I am getting the first markup which is test and not the
test1 even though the getName is not null. 

PLease advise 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/enabling-and-disabling-the-components-tp4651107p4651112.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: how to include jsp into wicket htmls

2012-07-19 Thread wicket user
Can you give a example of include jsp with
g.apache.wicket.markup.html.include.Include 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-include-jsp-into-wicket-htmls-tp4650615p4650617.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Form Submission problem

2012-07-18 Thread wicket user
custom filter is extended by the other framework which filter we cannot see
as it is Out of the Box.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Form-Submission-problem-tp4650575p4650614.html
Sent from the Users forum mailing list archive at Nabble.com.

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



how to include jsp into wicket htmls

2012-07-18 Thread wicket user
I a newbie to Wicket, please can anyone guide how to include a jsp in the
wicket.
I have existing jsp's I need to include it. i am getting this jsp's
dynamically from services. 
What I did is created a class extending WebMarkContainer. 
 in my class i did like  this 

ServletContext.getRequestDispatcher(filename).include(HttpServletRequest,ServletResponse)

no idea how to proceed. please help how I can easily acheive this
jsp:include in wicket html. 

Thanks,

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-include-jsp-into-wicket-htmls-tp4650615.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Form Submission problem

2012-07-17 Thread wicket user
Hi ,

I have inserted my custom filter in which i have specified url-pattern as
/*, but now the form submission is not going just getting a blank page,
Please advise how to handle this. I dont see any Exceptions on my logs too. 

Thanks,

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Form-Submission-problem-tp4650575.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: jboss ignoring html request

2012-07-13 Thread wicket user
I dont have Wicket Filter in my web.xml 
though i can see  this 
   servlet-nameWicketApplication/servlet-name
  
servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class

I am assuming this will call WicketFilter intern. 

But before this i have make sure my filter is being called.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/jboss-ignoring-html-request-tp4650491p4650517.html
Sent from the Users forum mailing list archive at Nabble.com.

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



jboss ignoring html request

2012-07-12 Thread wicket user
Hi,

We are using Jboss app server, 
we wrote a filter each wicket html's should pass through this filter(which
is a j2ee servlet filter) and we added this filter/filter mapping in the
web.xml for *.html ---url-pattern . 
But still this Request is not going through this filter. Wondering why ? is
somebody is facing the same issue ?

Appreciate the comments.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/jboss-ignoring-html-request-tp4650491.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: jboss ignoring html request

2012-07-12 Thread wicket user
Thanks for the quick reply ,

yes i checked FilterChain.doFilter(req,res), and i have verified also the
url pattern in web.xml 

filter
filter-nameMyFilter/filter-name
filter-classcom.xyz.util.MyFilter/filter-class
/filter
filter-mapping
filter-nameMyFilter/filter-name
url-pattern*.html/url-pattern
/filter-mapping



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/jboss-ignoring-html-request-tp4650491p4650493.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Servlet Filter calling chain of Servlets

2012-07-05 Thread wicket user
Hi,

I was wondering we can write a custom servlet filter , and in that filter
call the servlet chain. 
If so what would be Request and Reponse Objects if I dont write any
Request/Response Wrappers, and how to get that. 

Thanks, 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Servlet-Filter-calling-chain-of-Servlets-tp4650381.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Servlet Filter calling chain of Servlets

2012-07-05 Thread wicket user
so in this case i can get the Request/Response object by 
(WebRequest) getRequestCycle().getRequest() and (WebReponse)
getRequestCycle().getResponse()  right? 
and all the parameters or cookies can get from the WebRequest which will be
passing thorough the Servlet Chain . 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Servlet-Filter-calling-chain-of-Servlets-tp4650381p4650385.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Adding Cookie in 1.5.5

2012-06-27 Thread wicket user
Hi, 

I was trying to add a cookie 
 getWebRequestCycle().getWebResponse().addCookie() 

but couldnt find getWebRequestCycle() in 1.5.5. 

i found getRequestCycle() but did not find addCookie in getResponse(). 

Please suggest how to add/get cookie in 1.5.5 

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Adding-Cookie-in-1-5-5-tp4650265.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Sync up sessions

2012-06-21 Thread wicket user
Thank you guys , i got it what i was looking for. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134p4650175.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Sync up sessions

2012-06-20 Thread wicket user
Hi,

we are using Wicket as a Presentation layer, so we need to sync up with the
Session of the Business Layer framework, we kept this in the same WAR. 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Sync up sessions

2012-06-20 Thread wicket user
Yes taking Wicket Session and Spring Session and maintaining one session
across layers (presentation and business layers)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134p4650141.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: handling user agent

2012-06-01 Thread wicket user
Awesome thanks alot !! 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/handling-user-agent-tp4649565p4649658.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: handling user agent

2012-05-31 Thread wicket user
just wondering how to implement it , i tried the following code not sure am i
doing correct, 

public class MyMapper implements IRequestMapper {

private final IRequestMapper delegate;

public MyMapper(IRequestMapper delegate) {
this.delegate = delegate;
}

public IRequestHandler mapRequest(Request request) {
Url url = request.getUrl();
String user = WebSession.get().getClientInfo().getUserAgent();
   //System.out.println(user);

return delegate.mapRequest(request.cloneWithUrl(url));
}
}

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/handling-user-agent-tp4649565p4649628.html
Sent from the Users forum mailing list archive at Nabble.com.

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



handling user agent

2012-05-30 Thread wicket user
Hi all,

I wondering what will be the difference if i use
*((WebRequest)RequestCycle.get().getRequest()).getHeader(User-Agent);* 

or 

*WebSession.get().getClientInfo().getUserAgent();*

As  the client info per session would be same . 
and If I need to control this on the WebApplication level , then how to
handle this ? 
I got some idea about RequestMapper but not sure I am on right track.  Peers
can anyone give some valuable suggestions. 

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/handling-user-agent-tp4649565.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: handling user agent

2012-05-30 Thread wicket user
Question was how to handle user agent on the application level , i dont wanna
write same code on each page to check the user agent then render the
appropriate page 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/handling-user-agent-tp4649565p4649584.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Jackrabbit APi thorugh Apache wicket

2008-10-14 Thread wicket user
i have written some classes to access items in Jackrabbit repository and
as Edmund mentioned it was specific to my node types and repository.

Alternatively you can look at Brix http://code.google.com/p/brix-cms/

Cheers
Dipu



On Mon, Oct 13, 2008 at 4:22 PM, Edmund Urbani [EMAIL PROTECTED] wrote:

 Nayak Vishal wrote:
  Hello everyone,
 
  Is it possible to access Jackrabbit API(talking to Alfresco ) thorugh
  Apache wicket.
 
  Regards
  Vishal
 
 Well, I don't know of any out-of-the-box components that integrate Wicket
 with
 JCR (or Jackrabbit in particular), but you can always write your own. I
 have
 myself written some Wicket models and data providers to access items in a
 Jackrabbit repository (very specific to my repository and my node types).
 It's
 not too difficult if you're familiar with both Wicket and JCR.

 Cheers
  Edmund

 --
 Liland ...does IT better

 Liland IT GmbH
 Software Architekt
 email: [EMAIL PROTECTED]

 office: +43 (0)463 220-111  | fax: +43 (0)463 220-288
 http://www.Liland.at

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




Re: build from the wicket-1.4-m3 source failing

2008-09-01 Thread wicket user
i am using the version 1.5.0_04

thanks
Dipu

On Sun, Aug 31, 2008 at 12:39 PM, Timo Rantalaiho [EMAIL PROTECTED]wrote:

 On Tue, 26 Aug 2008, wicket user wrote:
  when i try to build the wicket from the wicket-1.4-m3 source its failing
  with the following message

 What Java version do you use to compile? In 1.5 there have
 been a lot of generics bugs, some of which are fixed in
 recent 1.5 versions.

 Best wishes,
 Timo

 --
 Timo Rantalaiho
 Reaktor Innovations OyURL: http://www.ri.fi/ 

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




Re: build from the wicket-1.4-m3 source failing

2008-09-01 Thread wicket user
sorry about that.

I updated to the latest version of JDK and its still failing to build.

pasting the stack trace below if it helps

thanks
Dipu


C:\wicket\wicket-svn\releases\wicket-1.4-m3\wicket\src\main\java\org\apache\wick
et\util\tester\FormTester.java:[600,20] inconvertible types
found   : org.apache.wicket.markup.html.form.FormComponentcapture of ?
required: org.apache.wicket.markup.html.form.upload.FileUploadField


[INFO]

[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
C:\wicket\wicket-svn\releases\wicket-1.4-m3\wicket\src\main\java\org\apache\wick
et\util\tester\FormTester.java:[600,20] inconvertible types
found   : org.apache.wicket.markup.html.form.FormComponentcapture of ?
required: org.apache.wicket.markup.html.form.upload.FileUploadField


at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:579)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:291)
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:287)
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:585)
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: org.apache.maven.plugin.CompilationFailureException: Compilation
fail
ure
C:\wicket\wicket-svn\releases\wicket-1.4-m3\wicket\src\main\java\org\apache\wick
et\util\tester\FormTester.java:[600,20] inconvertible types
found   : org.apache.wicket.markup.html.form.FormComponentcapture of ?
required: org.apache.wicket.markup.html.form.upload.FileUploadField


at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
Mojo.java:516)
at
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:558)
... 16 more






On Mon, Sep 1, 2008 at 2:45 PM, Matej Knopp [EMAIL PROTECTED] wrote:

 What good it is to tell us which version you are using? The latest is
 IIRC updated 16 so your JDK/JRE is really outdated. Please update your
 JDK first before complaining. And when it still doesn't work let us
 know.

 -Matej

 On Mon, Sep 1, 2008 at 3:34 PM, wicket user [EMAIL PROTECTED]
 wrote:
  i am using the version 1.5.0_04
 
  thanks
  Dipu
 
  On Sun, Aug 31, 2008 at 12:39 PM, Timo Rantalaiho [EMAIL PROTECTED]
 wrote:
 
  On Tue, 26 Aug 2008, wicket user wrote:
   when i try to build the wicket from the wicket-1.4-m3 source its
 failing
   with the following message
 
  What Java version do you use to compile? In 1.5 there have
  been a lot of generics bugs, some of which are fixed in
  recent 1.5 versions.
 
  Best wishes,
  Timo
 
  --
  Timo Rantalaiho
  Reaktor Innovations OyURL: http://www.ri.fi/ 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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




build from the wicket-1.4-m3 source failing

2008-08-26 Thread wicket user
Hi,

when i try to build the wicket from the wicket-1.4-m3 source its failing
with the following message

\wicket-1.4-m3\wicket\src\main\java\org\apache\wicket\util\tester\FormTester.java:[600,20]
inconvertible types
found   : org.apache.wicket.markup.html.form.FormComponentcapture of ?
required: org.apache.wicket.markup.html.form.upload.FileUploadField

Can someone help me with what is going wrong please?


Regards
Dipu


Re: sneak peek - brix - wicket/jcr cms

2008-07-10 Thread wicket user
Hi Patrick,

I am very happy to do that.

To start with a Getting Started document will be really handy.

Regards
Dipu






On Wed, Jul 9, 2008 at 10:05 PM, Patrick Angeles [EMAIL PROTECTED]
wrote:


 Hi Dipu,

 Thanks for looking into Brix. If you can identify any specific areas where
 we could improve our documentation, let us know.



 wicket user-2 wrote:
 
  i am very impressed with what i see there,
 
  i had created a simple POC in my company for managing the contents in our
  wicket apps,
  i can see pretty much everything i used here like  jackrabbit, code
  mirror,
  rich editor etc
 
  looking forward for the release and some more documentation.
 
  you guys rock
 
  many thanks
  Dipu
 
 
 
 
 
  On Tue, Jul 8, 2008 at 11:06 PM, Igor Vaynberg [EMAIL PROTECTED]
  wrote:
 
  a few of us have been quietly working on a wicket/jcr cms called Brix
  for a while now. it is almost at a point where we are ready to release
  a beta, just waiting for wicket-m3 build to go official. in the
  meanwhile, if you are not afraid of building from source and want a
  sneak peek, you can check it out here [1].
 
  brix is more of a cms framework/library than a full blown cms. it is
  designed to be integrated into wicket applications that require cms
  functionality as part of their feature set. for example, at my company
  we have built a set of ecommerce tiles (brix tiles are dynamic
  components that can live inside a cms page) that allow us to build
  webstores on top of brix.
 
  brix includes a url coding strategy (which will hopefully become part
  of wicket 1.5) that allows for stateless pages as well as url
  contribution from tiles and query/indexed parameter mixtures. it has
  been designed with scalability in mind although we have not yet built
  a caching solution, nor tested if one is necessary.
 
  to hopefully preempt some common questions:
  brix uses a simple plugin system to allow extensibility. we did not
  use osgi because our time is limited and running wicket inside osgi or
  osgi inside wicket is not straight forward yet. will we switch to osgi
  later? maybe. we did not use spring because we did not need the
  overhead and spring's jcr support is broken because its
  jcrsessionfactory does not support multiple jcr workspaces so we would
  have to roll our own anyways.
 
  suggestions, feedback, etc are welcome as well as any help. we have
  not been working on this very long so it is not extremely polished
  yet. for more info see the website.
 
  [1] http://brix-cms.googlecode.com
 
  -igor
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/sneak-peek---brix---wicket-jcr-cms-tp18350188p18370795.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: listchoice filtered by textfield ajax help

2008-07-10 Thread wicket user
try attaching a AjaxFormComponentUpdatingBehavior to your textfield and
repaint the listchoice

regards
dipu

On Thu, Jul 10, 2008 at 3:38 PM, taygolf [EMAIL PROTECTED] wrote:


 Hey guys,

 I have a question for yall. I want to have a listchoice that holds a list
 of
 options that can be selected by the user. Then I want to have an optional
 textfield. IF the textfield is blank I want all choices to show up in the
 listchoice. If it is not blank I want to filter the choices in the
 listchoice by the text that is typed in the textfield. I also want this to
 happen as the user types in the textfield so I want to us ajax.

 Is this possible with wicket? I have looked at the autocompletetextfiled
 and
 it does some of the stuff that I want to do but it also allows the user to
 type whatever they want to type and I want to force the user to select an
 option from the list of choices.

 Any help would be greatly appreciated

 Thanks

 T
 --
 View this message in context:
 http://www.nabble.com/listchoice-filtered-by-textfield-ajax-help-tp18384359p18384359.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: sneak peek - brix - wicket/jcr cms

2008-07-09 Thread wicket user
cool , sounds very good

On Tue, Jul 8, 2008 at 11:06 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 a few of us have been quietly working on a wicket/jcr cms called Brix
 for a while now. it is almost at a point where we are ready to release
 a beta, just waiting for wicket-m3 build to go official. in the
 meanwhile, if you are not afraid of building from source and want a
 sneak peek, you can check it out here [1].

 brix is more of a cms framework/library than a full blown cms. it is
 designed to be integrated into wicket applications that require cms
 functionality as part of their feature set. for example, at my company
 we have built a set of ecommerce tiles (brix tiles are dynamic
 components that can live inside a cms page) that allow us to build
 webstores on top of brix.

 brix includes a url coding strategy (which will hopefully become part
 of wicket 1.5) that allows for stateless pages as well as url
 contribution from tiles and query/indexed parameter mixtures. it has
 been designed with scalability in mind although we have not yet built
 a caching solution, nor tested if one is necessary.

 to hopefully preempt some common questions:
 brix uses a simple plugin system to allow extensibility. we did not
 use osgi because our time is limited and running wicket inside osgi or
 osgi inside wicket is not straight forward yet. will we switch to osgi
 later? maybe. we did not use spring because we did not need the
 overhead and spring's jcr support is broken because its
 jcrsessionfactory does not support multiple jcr workspaces so we would
 have to roll our own anyways.

 suggestions, feedback, etc are welcome as well as any help. we have
 not been working on this very long so it is not extremely polished
 yet. for more info see the website.

 [1] http://brix-cms.googlecode.com

 -igor

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




Re: sneak peek - brix - wicket/jcr cms

2008-07-09 Thread wicket user
i am very impressed with what i see there,

i had created a simple POC in my company for managing the contents in our
wicket apps,
i can see pretty much everything i used here like  jackrabbit, code mirror,
rich editor etc

looking forward for the release and some more documentation.

you guys rock

many thanks
Dipu





On Tue, Jul 8, 2008 at 11:06 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 a few of us have been quietly working on a wicket/jcr cms called Brix
 for a while now. it is almost at a point where we are ready to release
 a beta, just waiting for wicket-m3 build to go official. in the
 meanwhile, if you are not afraid of building from source and want a
 sneak peek, you can check it out here [1].

 brix is more of a cms framework/library than a full blown cms. it is
 designed to be integrated into wicket applications that require cms
 functionality as part of their feature set. for example, at my company
 we have built a set of ecommerce tiles (brix tiles are dynamic
 components that can live inside a cms page) that allow us to build
 webstores on top of brix.

 brix includes a url coding strategy (which will hopefully become part
 of wicket 1.5) that allows for stateless pages as well as url
 contribution from tiles and query/indexed parameter mixtures. it has
 been designed with scalability in mind although we have not yet built
 a caching solution, nor tested if one is necessary.

 to hopefully preempt some common questions:
 brix uses a simple plugin system to allow extensibility. we did not
 use osgi because our time is limited and running wicket inside osgi or
 osgi inside wicket is not straight forward yet. will we switch to osgi
 later? maybe. we did not use spring because we did not need the
 overhead and spring's jcr support is broken because its
 jcrsessionfactory does not support multiple jcr workspaces so we would
 have to roll our own anyways.

 suggestions, feedback, etc are welcome as well as any help. we have
 not been working on this very long so it is not extremely polished
 yet. for more info see the website.

 [1] http://brix-cms.googlecode.com

 -igor

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




Re: update table with ajax

2008-06-19 Thread wicket user
add the DataTable in a WebmarkupContainer and repaint the container

cheers
dipu


On Thu, Jun 19, 2008 at 4:27 PM, Manuel Corrales [EMAIL PROTECTED]
wrote:

 Hi, i have an input and a link. The link is an ajax link, and then i want
 to
 update a table on the same page according to the input.

 final DataView table = new DataView(table, new
 ListDataProvider(Collections.EMPTY_LIST)) {
public void populateItem(final Item item) {
item.add(new Label(nroAparato,test));
}};
table.setOutputMarkupId(true);
add(table);

AjaxLink link = new AjaxLink(linkSearchCliente) {

@Override
public void onClick(AjaxRequestTarget target) {
target.addComponent(table);
}
};

 I get this error:

 *This component is a repeater and cannot be repainted via ajax directly.
 Instead add its parent or another markup container higher in the
 hierarchy.*

 How can i solve this, i was unable to find any simple table update on the
 web.

 Thanks in advance!!



Re: Javascript/Ajax in wicket, how to?

2008-06-09 Thread wicket user
check the wicket stuff jquery and wicket stuff jquery examples

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


regards
dipu

On Mon, Jun 9, 2008 at 2:58 PM, Sarkast [EMAIL PROTECTED] wrote:


 Hi there,

 Another basic(?) question. I have a small test application where I drag and
 drop square shaped divs around.

 With ajax I pick those shapes up, so to speak and drop those shapes,
 listening for onmousedown and onmouseup events, however I would also like
 to
 display the actual dragging. I assume that Ajaxeventbehaviors are not
 suitable for this (generating many requests (correct me if I'm wrong)),
 thus
 I would like to use javascript, however I have no idea how, especially
 since
 the onmousedown event will call 2 javascript methods, one from wicket for
 the Ajaxeventbehavior and one for my client side javascript.

 Could someone help me out or point me to a tutorial, I'm unable to find an
 understandable one :-/

 Tom
 --
 View this message in context:
 http://www.nabble.com/Javascript-Ajax-in-wicket%2C-how-to--tp17733416p17733416.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread wicket user
 1) Generifying* Wicket
[X ] Can best be done in a limited fashion, where we only generify

IModel but not components. I care more about what generifying can do
for API clarity (declaring a component to only accept certain models
for instance) than static type checking.

2) How strongly do you feel about your choice above?
[ X] Whatever choice ultimately made, I'll happily convert/ start

Dipu


Re: FYI: new wicket site

2008-05-15 Thread wicket user
Hi Lars,

Very good site, i like it its, pretty cool

Dipu

On Wed, May 14, 2008 at 9:36 AM, lars vonk [EMAIL PROTECTED] wrote:

 Hi all,

 A new Wicket site is born! It's a Dutch site on which you can search for
 day
 trips and such. See: www.eropuit.nl.

 Thanks to the user- and dev-group for answering any questions we had during
 the process.

 Lars



Updating the wicket stuff wicket-contrib-tinymce with the latest version of tinyMCE

2008-04-16 Thread wicket user
Hi,

Can we please update the wicket-contrib-tinymce project to use the latest
version of tinyMCE.

I would like to use the HTML Source Editor Syntax Highlighting  Word Wrap
using CodeMirror mentioned in this thread
http://tinymce.moxiecode.com/punbb/viewtopic.php?pid=31049#p31049


I grabbed the wicket-contrib-tinymce from the svn and updated the tinyMCE
files and made the changes as mentioned in the thread and it worked for me
like a charm ( doesn't work with the old version of tinyMCE ) . Can anyone
update rights please update the svn with the latest version of tinyMCE and
probably with the HTML Source Editor Syntax Highlighting using CodeMirror if
its acceptable for the maintainers of the project.


regards
-dipu


Re: Updating the wicket stuff wicket-contrib-tinymce with the latest version of tinyMCE

2008-04-16 Thread wicket user
i am more than willing to do it if i have the permission to do it.

regards
-dipu



2008/4/16 Uwe Schäfer [EMAIL PROTECTED]:

 wicket user schrieb:


  Can we please update the wicket-contrib-tinymce project to use the latest
  version of tinyMCE.
 

 +1

  I grabbed the wicket-contrib-tinymce from the svn and updated the tinyMCE
  files and made the changes as mentioned in the thread and it worked for
  me
  like a charm
 

 i´m very interested in that.
 why double the effort? could you just get commit permission on that
 project or send a patch over to the maintainers?

 cu uwe
 --

 THOMAS DAILY GmbH
 Adlerstraße 19
 79098 Freiburg
 Deutschland
 T  + 49 761 3 85 59 0
 F  + 49 761 3 85 59 550
 E  [EMAIL PROTECTED]
 www.thomas-daily.de

 Geschäftsführer/Managing Directors:
 Wendy Thomas, Susanne Larbig
 Handelsregister Freiburg i.Br., HRB 3947

 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die
 kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages
 morgens um 9:00 in Ihrer Mailbox.

 Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um
 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00
 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion
 lautet [EMAIL PROTECTED]


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




Re: wicket support for page customisation at runtime

2008-04-03 Thread wicket user
Check the wicket stuff jquery project, you will get the idea

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

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

regards
-dipu

On Thu, Apr 3, 2008 at 10:34 AM, kumark [EMAIL PROTECTED] wrote:


 Thanks Igor.

 Here's an example of the usecase I am referring to. Two panels lets say
 (one
 with sports headlines and other with weather headlines) are shown one
 below
 the other by default. I want the user to be able to move their order (lets
 say with up and down arrows) provided in each of those panels.

 once the user makes the above change, I would like the system to remember
 these preferences and render accordingly for that user alone and
 differently
 for other users.

 Any thoughts on the above usecase?

 Many Thanks.



 igor.vaynberg wrote:
 
  huh? hardly any logic for presenting? wicket is a ui framework, it
  wouldnt be a good one if you couldnt present dynamic things...
 
  anywho, there is support for all you want. your question is too
  general to be answered, if you have a more specific usecase you want
  to talk about feel free.
 
  as far as per user theme/colors you can check out session.getstyle()
  and component.getvariation() - there is a wiki page that describes
  skinning you might want to read.
 
  -igor
 
 
  On undefined, kumark [EMAIL PROTECTED] wrote:
 
   Hi,
 
   I was wondering if wicket supports page customisation at runtime per
  user.
   For example, Changing the available theme/colors, applying a different
   layout and being able to move content blocks (for example 2 panels)
  up/down
   at runtime. (similar to myspace or other popular portals).
 
   As I understand that unlike jsps , in wicket there is hardly any logic
  for
   presenting (for example displaying two divs different based on the
  current
   user preferences etc.,).
 
   Any thoughts or a link to a post/article which discusses these issues
  would
   be great.
 
   Thanks.
   --
   View this message in context:
 
 http://www.nabble.com/wicket-support-for-page-customisation-at-runtime-tp16447326p16447326.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/wicket-support-for-page-customisation-at-runtime-tp16447326p16467353.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Page expiration error while using popup

2008-03-27 Thread wicket user
Hi everyone,


Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-17 Thread wicket user
+1

Regards
Dipu


Re: Basic Knowledge on Wicket - reload content of a panel

2008-02-27 Thread wicket user
use an ajaxlink and refresh the other panel

dipu

On Wed, Feb 27, 2008 at 11:14 AM, Mazzanti Luca [EMAIL PROTECTED]
wrote:


 This is a basic question: how can i reload the content of a component as
 a
 panel?

 using render() into a panel cause a markupError into the application.
 using renderComponent() call the re-render of my panel, but the model that
 i
 modified is not readed by inner components like a simple label with text
 readed by model.

 anyone can quickly and simply teach me how to use models and render in
 components?

 THE CASE: i have a page, containing 2 panels. in one i want a link that
 change a label in the other.
 ( the label bring text from his model, that is controlled by his page
 model
 indeed. it's a correct approach? )

 Thanks a lot.
 Mazzanti Luca
 --
 View this message in context:
 http://www.nabble.com/Basic-Knowledge-on-Wicket---reload-content-of-a-panel-tp15711163p15711163.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Multi buttons in ajax form

2008-02-20 Thread wicket user
there is a method called findSubmittingButton()

regards
Dipu

On Feb 20, 2008 10:41 AM, Pierre Gilquin [EMAIL PROTECTED] wrote:

 hi all,

 I try to have to have 2 buttons in a form. This form is used in an ajax
 window.

 in html, they are 2 standards buttons
 input type=submit value=Do Task1
 input type=submit value=Do Task 2

 In the panel of the ajax window, I have an AjaxFormSubmitBehavior:

 form.add(new AjaxFormSubmitBehavior(onsubmit) {
protected void onSubmit(AjaxRequestTarget target) {
doTask1();
 //doTask2();
modal.close(target);
 }
 protected void onError(AjaxRequestTarget target) {
 

 When one button is clicked, the onSubmit method is executed. What can I do
 to distinct which button was used ?

 In some circumstance, I need one button to be invisible or disabled, I try
 to make it a real wicket object without
 success the following way :
 form.add(new WebComponent(button1).add AjaxFormSubmitBehavior(

 Thank in advance for your help.

 Pierre


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




Re: Combining Ajax and non Ajax pages

2008-02-20 Thread wicket user
store the backing model in the session and get it from the session, this
will help you retain the state in all the cases

Cheers
Dipu

On Feb 20, 2008 11:38 AM, steviezz [EMAIL PROTECTED] wrote:


 I have a panel on my application home page containing 3 related dropdowns
 -
 area/country/region.

 I use AjaxFormComponentUpdatingBehavior to populate the lower dropdowns
 when
 a higher one changes - eg:

  area changes - country and region dropdowns get reset
  country changes - region dropdown gets reset

 Code looks like:

 private DropDownChoice getCountriesDDC(IModel countryChoices,
final DropDownChoice regions) {

logger.debug(Enter getCountriesDDC);

final DropDownChoice countries = new
 DropDownChoice(countries,
new PropertyModel(this, selectedCountry),
 countryChoices,
new ChoiceRenderer(name, id));

countries.add(new
 AjaxFormComponentUpdatingBehavior(onchange) {
protected void onUpdate(AjaxRequestTarget target) {
regions.clearInput();
regions.setModelObject(null);
target.addComponent(regions);
}
});

countries.setOutputMarkupId(true);

logger.debug(Exit getCountriesDDC  + countries);

return countries;
}


 My application is not a full-blown Ajax app - it still needs to be search
 engine and user friendly.  So, when I submit my form having selected the
 various dropdowns, I want to forward to a traditional results pages rather
 than pull the results into the original page with Ajax.

 But I also want to include the search panel at the top of the results page
 and maintain its dropdown state from the original search page (so the
 selection matches the displayed results).  For example, user selects
 North
 America / United States / California on the search page, then the results
 page should have all 3 dropdowns popluated with all the North American
 choices in dropdown 2, and the USA states in dropdown 3 - with USA and
 California selected.

 I also need to maintain the same search panel dropdown state if the user
 uses the main site navigation links to go back to the home page - this
 will
 be from a simple url like /app/home.

 Search dropdown state must also survive a page refresh.  I hate it when
 applications (typical flight booking systems, etc) make you re-enter all
 the
 search criteria if you go back to the home page, deviate out of their
 restricted page-flow, or refresh the page.  At present, on page refresh,
 my
 the top level area dropdown retains its choices but the country and region
 dropdowns have their choices removed (no way to get them back unless you
 select a different top level area to re-fire the Ajax Javascript).

 In summary, I need to know:

 1.  how to make the dropdown state survive when I include the search panel
 on another page

 2.  how to make the dropdown state survive when I navigate back to the
 original page using a simple home page navigation link (effectively
 reloading the home page)

 3.  how to make the dropdown state survive a page refresh (much the same
 same as 2).


 Of course, if I am wasting my time because this is stupid, then I'd value
 any other suggestions on how to deal with this by redesigning the user
 interface.

 Thanks.


 --
 View this message in context:
 http://www.nabble.com/Combining-Ajax-and-non-Ajax-pages-tp15587166p15587166.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Using Forms

2008-01-14 Thread wicket user
Hi,

Take a look at the FormInput example in wicket example projects.
Wicket examples have everything to get you started.

Regards
Dipu

On Jan 14, 2008 8:58 AM, j.bokobza [EMAIL PROTECTED] wrote:

 Hello
 I'm new with wicket and I'm looking for samples of basics forms.
 I didn't find how to retrieve datas (variables) sent by a wicket form
 with method setResponsePage.
 Can anyone help me ? Thanks.

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




Re: Update panel from lists

2008-01-14 Thread wicket user
Try adding the behavior to the ListItem or the Label in the ListItem

Regards
Dipu

On Jan 14, 2008 12:34 PM, tsuresh [EMAIL PROTECTED] wrote:


 Hello , I want to update panel from  lists. I have the list of users. When
 I
 click on the user I should get the user details on the UserDetailPanel. I
 want to do this using ajax and to display userdetail side by user list. I
 tried like this. But this is no way near I desired.

 ListView userList = new ListView(rows, userList) {

protected void populateItem(ListItem item) {
User user = User item.getModelObject();
item.add(new Label(name, user.getName()));
}
};

UserDetailPanel udp = new UserDetailPanel(panel,);
final WebMarkupContainer wmc = new WebMarkupContainer(container);
wmc.setOutputMarkupId(true);
wmc.add(userList);  //Since I want to update panel,
 shouldn't it be
 udp instead of userList?.
AjaxEventBehavior behavior = new AjaxEventBehavior(onclick) {

protected void onEvent(AjaxRequestTarget target) {
 User userSelected= (User ) getModelObject();   //I am
 getting null over here , I am trying to get selected
  //user here
 String selectedCat = userSelected.getName();
 target.addComponent(wmc);
//how to update panel and get selected user here?
   }
};
wmc.add(behavior);  //shouldn't it be userList.add(behavior);?
 There
 was onclick response when i did
  //wmc.add(behavior) but not when
 userList.add(behavior).
add(udp);
add(wmc);

}
 }

 Please suggest.
 Thanks.
 --
 View this message in context:
 http://www.nabble.com/Update-panel-from-lists-tp14800898p14800898.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: How do I call my javascript after each wicket partial update?

2008-01-11 Thread wicket user
try AjaxRequestTarget.addJavascript(yourJavascript)

Regards

On Jan 11, 2008 4:00 PM, bmarvell [EMAIL PROTECTED] wrote:


 I'd like to be able to run a piece of javascript after each wicket ajax
 update. Is this possible without hacking the source and if so how?

 Thanks :)
 --
 View this message in context:
 http://www.nabble.com/How-do-I-call-my-javascript-after-each-wicket-partial-update--tp14759508p14759508.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Script in RenderHead method of AjaxFormChoiceComponentUpdatingBehavior needs fixing

2008-01-09 Thread wicket user
done, *Key:* *WICKET-1271https://issues.apache.org/jira/browse/WICKET-1271

Regards
Dipu

*
On Jan 8, 2008 5:37 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:

 yes please, and attach a patch

 -igor


 On Jan 8, 2008 2:31 AM, wicket user [EMAIL PROTECTED] wrote:
  Hi Igor,
 
  Thank you very much for the quick response.
  The project i was working on was using the version 1.2.6, so to use
  AjaxFormChoiceComponentUpdatingBehavior i had to update the project to
 use
  the latest wicket version.
 
  How ever i have noticed a problem with the script in the renderHead
 method
  of AjaxFormChoiceComponentUpdatingBehavior.
 
  The script assumes that the  Radio Component will be the immediate child
 of
  the RadioGroup Component, But in some or in most of the cases that is
 not
  correct.
 
  That is not the case even in the Wicket Examples, in examples the
 hierarchy
  is RadioGroup/ListView/Radio.
 
  I modified the script to work with RadioGroup/ListView/Radio hierarchy
 and
  it is working.
  Do i need to open a jira for this.
 
 
  Regards
  Dipu
 
 
 
 
  On Jan 4, 2008 5:01 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 
   ajaxformchoicecomponentupdatingbehavior or something similar...
  
   -igor
  
   On Jan 4, 2008 8:53 AM, wicket user [EMAIL PROTECTED] wrote:
Hi all,
   
I am trying to add AjaxFormComponentUpdateBehavior to
 Radio/RadioGroup,
   
I cant add the behaviour to the Radio as its not a FormComponent.
Adding the behaviour to RadioGroup is not working as well.
   
Is there any work around to get it working.
   
Regards
Dipu
   
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 

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




Script in RenderHead method of AjaxFormChoiceComponentUpdatingBehavior needs fixing

2008-01-08 Thread wicket user
Hi Igor,

Thank you very much for the quick response.
The project i was working on was using the version 1.2.6, so to use
AjaxFormChoiceComponentUpdatingBehavior i had to update the project to use
the latest wicket version.

How ever i have noticed a problem with the script in the renderHead method
of AjaxFormChoiceComponentUpdatingBehavior.

The script assumes that the  Radio Component will be the immediate child of
the RadioGroup Component, But in some or in most of the cases that is not
correct.

That is not the case even in the Wicket Examples, in examples the hierarchy
is RadioGroup/ListView/Radio.

I modified the script to work with RadioGroup/ListView/Radio hierarchy and
it is working.
Do i need to open a jira for this.


Regards
Dipu




On Jan 4, 2008 5:01 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:

 ajaxformchoicecomponentupdatingbehavior or something similar...

 -igor

 On Jan 4, 2008 8:53 AM, wicket user [EMAIL PROTECTED] wrote:
  Hi all,
 
  I am trying to add AjaxFormComponentUpdateBehavior to Radio/RadioGroup,
 
  I cant add the behaviour to the Radio as its not a FormComponent.
  Adding the behaviour to RadioGroup is not working as well.
 
  Is there any work around to get it working.
 
  Regards
  Dipu
 

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




AjaxFormComponentUpdateBehavior not working with Radio/RadioGroup

2008-01-04 Thread wicket user
Hi all,

I am trying to add AjaxFormComponentUpdateBehavior to Radio/RadioGroup,

I cant add the behaviour to the Radio as its not a FormComponent.
Adding the behaviour to RadioGroup is not working as well.

Is there any work around to get it working.

Regards
Dipu


Re: How to dynamic load a HTML file

2007-12-14 Thread wicket user
override getVariation() in your page to get the appropriate html/markup
picked.

regards
-dipu


On Dec 14, 2007 9:43 AM, qinyi lai [EMAIL PROTECTED] wrote:

 Hi
   I wanne to dynamic load a HTML file to mapping a JAVA class page!
 a JAVA class file will have many HTML files(1:n mapping), and in the
 running time,
 the JAVA class file will select a  HTML file to display a different Page
 layout to User!
 How to carry it out?

 I found a article about this,

 http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
 but it just define the new IResourceStreamLocator class:
 Than, override Application.init() method to add the new
 IResourceStreamLocator
 It only load the file int init of Application! and It 1:1 (java class:html
 file) mapping in the program!

 Thanks for U suggestion!
 Best Regards,
 Mead
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]

 _
 Express yourself instantly with MSN Messenger! Download today it's FREE!
 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


Re: How to dynamic load a HTML file

2007-12-14 Thread wicket user
You don't have to worry about the path.

You should name your file like YourWebPage_variation.html and place the file
where you would place it in normal case.

For example If the variants of the page are

YourWebPage_1.html, YourWebPage_2.html, YourWebPage_n.html
,.,YourWebPage_n.html

 String getVariation()
 {
// add the logic as it fits your need, hope you get the idea
 if(conditon1)
  return 1;
 else if(conditon2)
  return 2;
 else if(conditon3)
  return 3;
  .
  
  else
  return ;
}

regards
dipu



For example, if you have a Page called YourWebPage, and if you want to have
man
On Dec 14, 2007 10:22 AM, qinyi lai [EMAIL PROTECTED] wrote:

 Thanks, I will try it!
 But any example for this!

 I find in the wicket.Component.java

 public String getVariation() {

return null;//how to override it, return the HTML file path+filename?

 }


 and any one have wicket offline API, documents!





  From: [EMAIL PROTECTED]
  To: users@wicket.apache.org
  Subject: Re: How to dynamic load a HTML file
 
  override getVariation() in your page to get the appropriate html/markup
  picked.
 
  regards
  -dipu
 
 
  On Dec 14, 2007 9:43 AM, qinyi lai [EMAIL PROTECTED] wrote:
 
   Hi
 I wanne to dynamic load a HTML file to mapping a JAVA class page!
   a JAVA class file will have many HTML files(1:n mapping), and in the
   running time,
   the JAVA class file will select a  HTML file to display a different
 Page
   layout to User!
   How to carry it out?
  
   I found a article about this,
  
  
 http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
   but it just define the new IResourceStreamLocator class:
   Than, override Application.init() method to add the new
   IResourceStreamLocator
   It only load the file int init of Application! and It 1:1 (java
 class:html
   file) mapping in the program!
  
   Thanks for U suggestion!
   Best Regards,
   Mead
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]
  
   _
   Express yourself instantly with MSN Messenger! Download today it's
 FREE!
   http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

 _
 Express yourself instantly with MSN Messenger! Download today it's FREE!
 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



Re: When to use getModelObject, getConvertedInput, getInput

2007-12-12 Thread wicket user
Ok that's cool but on an AjaxFormComponentUpdatingBehavior the model is
null/hasn't been set so you can't use it? What happens if you want to base a
decision on the value that the user has just changed to?



On 11/12/2007, Johan Compagner [EMAIL PROTECTED] wrote:

 you shouldn't call getConvertedInput() or getInput yourself except if you
 where making a special formcomponent itself.
 The model of an component lives as long as the component does.

 But the dropdownchoice (or all select tag components) have another special
 thing call IChoiceRenderer
 That first tries to convert the string to an option object.

 johan


 On Dec 11, 2007 1:47 PM, wicket user [EMAIL PROTECTED] wrote:

  Hi,
 
  This is more a question of understanding models and input of a
 particular
  component, lets say DropDownChoice (DDC) for example.
 
  You give it a model initially on creation, this has nothing to do with,
 in
  the case of a DDC the selected values as that is supplied by the Choices
  paramater in the constuctor.
 
  So we now have a DDC configured.
 
  A user comes along and selects a value, if we have and
  AjaxFormComponentUpdatingBehavior associated we see that the
  getModelObject
  returns null as well as getConvertedInput but getInput actually has
  something but it's in string form. Is this because we are intercepting
 the
  event before the input is converted to the model?
 
  Basically I'm never sure when to use which accessor and the trial and
  error
  method that I have been using so far is starting to scare me. I guess
 the
  lifecycle of model is what I really need to understand and googling
 hasn't
  thrown up much. I have read the wiki article on models but it doesn't go
  into details such as this...
 
  Anyway, it will be a nice thing to not have nagging me over xmas!
 
  thanks
  simon
 



When to use getModelObject, getConvertedInput, getInput

2007-12-11 Thread wicket user
Hi,

This is more a question of understanding models and input of a particular
component, lets say DropDownChoice (DDC) for example.

You give it a model initially on creation, this has nothing to do with, in
the case of a DDC the selected values as that is supplied by the Choices
paramater in the constuctor.

So we now have a DDC configured.

A user comes along and selects a value, if we have and
AjaxFormComponentUpdatingBehavior associated we see that the getModelObject
returns null as well as getConvertedInput but getInput actually has
something but it's in string form. Is this because we are intercepting the
event before the input is converted to the model?

Basically I'm never sure when to use which accessor and the trial and error
method that I have been using so far is starting to scare me. I guess the
lifecycle of model is what I really need to understand and googling hasn't
thrown up much. I have read the wiki article on models but it doesn't go
into details such as this...

Anyway, it will be a nice thing to not have nagging me over xmas!

thanks
simon


Re: Using ajax to update a panel

2007-12-05 Thread wicket user
-ajax-to-update-a-panel-tf4949239.html#a14170394
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Using ajax to update a panel

2007-12-05 Thread wicket user
is it not possible to post the whole page where you insert the
ImagePreviewPanel ? I don't need the HTML just the java side

On 05/12/2007, Andrew Moore [EMAIL PROTECTED] wrote:


 The ajax stuff is firing (as I can see in the ajax debug window) but the
 panel does not get updated.

 I know I'm getting the id from the drop down and the ajax bit itself is
 fine
 as I can get the value of the drop down and append it to a test label on
 the
 form that's used to store the dropdown details.

 I think it's mostly my lack of understanding of what actually fires with
 the
 ajax call, as I need to be able to refresh the values from the database.
 Should I be creating a Model overriding the setObject to do this?



 wicket user wrote:
 
  Hi Andrew,
 
  So what's actually happening? Anything? Exceptions or does the image
 just
  stay the same?
 
 
 
  On 05/12/2007, Andrew Moore [EMAIL PROTECTED] wrote:
 
 
  Hi,
  I've got a page, which includes a drop down choice box, and a panel
 (with
  a
  list of images).
 
  The drop down box holds an id (which ties back to a list of images),
 what
  I'm wanting to be able to do is that if the user changes the drop down
  choice, the panel refreshes via ajax with the new images.
 
  Here's a few snippets of code:
 
 
 
 -
  //insert the image preview panel
  final ImagePreviewPanel imagePreviewPanel = new
  ImagePreviewPanel(imagePreviewPanel, generalPage.getImageCollectionId
  ());
  imagePreviewPanel.setOutputMarkupId(true);
  form.add(imagePreviewPanel);
  form.setOutputMarkupId(true);
 
  //add the OnChange for the ajax call
  OnChangeAjaxBehavior onChangeAjaxBehavior = new OnChangeAjaxBehavior(){
  protected void onUpdate(AjaxRequestTarget target) {
  FormComponent fc = getFormComponent();
  fc.getForm();
  GeneralPage aGeneralPage = (GeneralPage)
  fc.getForm().getModelObject();
  //get the drop down image collection id
  if (aGeneralPage.getImageCollectionOption() != null){
  String keyValue =
  aGeneralPage.getImageCollectionOption().getKey();
 
  imagePreviewPanel.setImageCollectionId(new
  Long(aGeneralPage.getImageCollectionOption().getKey()));
  }
  target.addComponent(imagePreviewPanel);
  }
  };
 
 
 
 -
 
  Then I've got the panel (which I've cut down on the details here to
 make
  it
  a bit easier to understand)
 
 
 
 -
  public class ImagePreviewPanel extends Panel
  {
  private Long imageCollectionId;
  private String galleryCounterText = ;
  private List imageList = new ArrayList();
 
  public ImagePreviewPanel(final String componentId, Long
  anImageCollectionId){
  super(componentId);
  //set up the instance variable from the constructor
  setImageCollectionId(anImageCollectionId);
 
  //now add the image previews
  //first get the images if there are any
  ImageCollection imageCollection =
  imageCollectionDao.findByImageCollectionId(imageCollectionId);
 
  WebMarkupContainer dataImagecontainer = new
  WebMarkupContainer(dataimage);
  dataImagecontainer.setOutputMarkupId(true);
  add(dataImagecontainer);
 
  //display the total number of images in the list
  galleryCounterText = imageCollection.getImages
 ().size();
  add(new Label(galleryCounter,new PropertyModel(this,
  galleryCounterText)).setOutputMarkupId(true));
 
  //get the collection of images from the imageCollection
  object
  imageList = imageCollection.getImages();
 
  final PageableListView imageView;
  dataImagecontainer.add(imageView = new
  PageableListView(galleryList, new
  CompoundPropertyModel(imageList), 20){
  public void populateItem(final ListItem
  listItem){
  final Image image =
  (Image)listItem.getModelObject();
 
  //set up default image element
  description
  String imageElementDescription = new
  StringResourceModel(noImageElementDescription, this,
 null).getString();
 
  //set up image element description if a
  better one exists
  StaticImage staticImage = new
  StaticImage(previewImage,
  image.getImageHref());
  staticImage.setOutputMarkupId(true);
  listItem.add

Re: Problems deploying Wicket application with Tomcat

2007-12-05 Thread wicket user
Apart from the obvious that  you are out of memory, no not really.

This happens a lot to me in development mode, have you switched to
deployment mode?

On 05/12/2007, James Perry [EMAIL PROTECTED] wrote:

 Checking my Tomcat's server log (catalina.out), it appears the issue is:
 ERROR - [wicketcart]   - Servlet.service() for servlet
 wicketcart th
 rew exception
 java.lang.OutOfMemoryError: PermGen space
 at sun.misc.Unsafe.defineClass(Native Method)
 at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
 at sun.reflect.MethodAccessorGenerator$1.run(
 MethodAccessorGenerator.jav
 a:381)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.reflect.MethodAccessorGenerator.generate
 (MethodAccessorGenerator.
 java:377)
 at
 sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(
 MethodAccessorGenerator.java:95)
 at sun.reflect.ReflectionFactory.newConstructorForSerialization
 (Reflecti
 onFactory.java:313)
 at java.io.ObjectStreamClass.getSerializableConstructor
 (ObjectStreamClas
 s.java:1327)
 at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java
 :52)
 at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:437)


 Any thoughts?

 On Dec 5, 2007 1:00 PM, James Perry [EMAIL PROTECTED] wrote:
  Bare with me. I am just redeploying it.
 
 
  On Dec 5, 2007 12:56 PM, wicket user [EMAIL PROTECTED] wrote:
   I'm getting a 503,
   HTTP Status 503 - This application is not currently available
  
   On 05/12/2007, James Perry [EMAIL PROTECTED] wrote:
   
Dear all,
   
I am deploying my first wicket based web app selling British
traditional sweets at http://www.thebritishsweetshop.co.uk/
   
There seems to be a problem as all the links lead to a 'Page
 Expired'
error page.
   
Any ideas?
   
Cheers,
J.
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
 

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




Re: unable to lazily register a javascript file

2007-12-05 Thread wicket user
upgrading 1.3 RC1  fixed this by the way

On 20/11/2007, wicket user [EMAIL PROTECTED] wrote:

 Hi,

 It's been a while since I've had to come and check the mailing list out
 (always a good sign of a framework). Anyway 300 unit tests down and the
 first version is live, that's the good part, the bad part is that I'm
 finding a few things I've obviously missed and I'm getting a few wierd
 exceptions out, I don't really understand why I haven't seen them up until
 now in either my unit tests or load tests but I guess thats just the nature
 of the user doing wierd things on their end.

 While there seem  to be quite a few issues, this one really gets me, it
 seems to be complaining about not finding a javascript file which is
 definitely there and I was wondering if I could pick a brain or two on where
 to look for this kind of issue

 2007-11-18 17:22:56,598 ERROR [TP-Processor11] 
 resource.SharedResourceRequestTarget (SharedResourceRequestTarget.java:161) - 
 unable to lazily register shared resource templates/main/js/navigation.js
 org.apache.wicket.WicketRuntimeException

 : Unable to load class with name: templates
   at 
 org.apache.wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:114)
   at 
 org.apache.wicket.request.target.resource.SharedResourceRequestTarget.respond

 (SharedResourceRequestTarget.java:146)
   at 
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)
   at 
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java

 :1037)
   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1107)
   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java:499)
   at
 org.apache.wicket.protocol.http.WicketFilter.doGet
 (WicketFilter.java:257)
   at 
 org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java
 :690)
   at javax.servlet.http.HttpServlet.service(
 HttpServlet.java:803)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter
 (ApplicationFilterChain.java:206)

   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

   at org.apache.catalina.core.StandardHostValve.invoke
 (StandardHostValve.java:128)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke
 (StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service
 (CoyoteAdapter.java:263)
   at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
   at org.apache.jk.common.HandlerRequest.invoke
 (HandlerRequest.java:283)
   at org.apache.jk.common.ChannelSocket.invoke
 (ChannelSocket.java:767)
   at 
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
   at org.apache.jk.common.ChannelSocket$SocketConnection.runIt
 (ChannelSocket.java:889)





Re: annoying alert message while closing modal window with wizard

2007-12-04 Thread wicket user
I tried the javascript and never got it to suppress the pop up, did it work
for you?

On 04/12/2007, Matej Knopp [EMAIL PROTECTED] wrote:

 You need to use ajax button to properly close the window.
 Alternatively, you can put this script to your page (only for 1.3):

 script type=text/javascript
 Wicket.Window.unloadConfirmation = false;
 /script

 -Matej

 On Dec 3, 2007 7:48 PM, narup [EMAIL PROTECTED] wrote:
 
  Hello All,
 
  I am using a custom wizard in a modal window, so i have my own custom
 button
  bar such as next, previous, finish and cancel.
  so when i click cancel or finish. i get this alert message.
  http://www.nabble.com/file/p14136120/alert.jpeg
  if i append the javascript like this
  target.appendJavascript(window.onbeforeunload=null); it cause the
 modal
  window to close but it does not do the save operation that i want to
 when i
  click finish button at the end.
  I tried to use the new wicket 1.3 wizard but got the same problem
  if anyone has any idea please let me know.
  Thanks
 
  --
  View this message in context:
 http://www.nabble.com/annoying-alert-message-while-closing-modal-window-with-wizard-tf4938532.html#a14136120
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




two dropdownchoice inputs combined as a fragment/panel/component ??

2007-12-04 Thread wicket user
Hi all,

I'm now on the second phase of the project I'm working on and starting to
find cases where I'm repeating code which means one thing : refactor.

As an example I've got two dropdowns that select make and model with a bit
of ajax to populate the second dropdown, these are always going to be
together so it makes sense to permanently couple them and be done with it.

What is the best way to prevent duplication in a case such as this while
still keeping the ability to validate etc?

Many thanks
Simon


unable to lazily register a javascript file

2007-11-20 Thread wicket user
Hi,

It's been a while since I've had to come and check the mailing list out
(always a good sign of a framework). Anyway 300 unit tests down and the
first version is live, that's the good part, the bad part is that I'm
finding a few things I've obviously missed and I'm getting a few wierd
exceptions out, I don't really understand why I haven't seen them up until
now in either my unit tests or load tests but I guess thats just the nature
of the user doing wierd things on their end.

While there seem  to be quite a few issues, this one really gets me, it
seems to be complaining about not finding a javascript file which is
definitely there and I was wondering if I could pick a brain or two on where
to look for this kind of issue

2007-11-18 17:22:56,598 ERROR [TP-Processor11]
resource.SharedResourceRequestTarget
(SharedResourceRequestTarget.java:161) - unable to lazily register
shared resource templates/main/js/navigation.js
org.apache.wicket.WicketRuntimeException
: Unable to load class with name: templates
at 
org.apache.wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:114)
at 
org.apache.wicket.request.target.resource.SharedResourceRequestTarget.respond
(SharedResourceRequestTarget.java:146)
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)
at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
:1037)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1107)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:499)
at org.apache.wicket.protocol.http.WicketFilter.doGet
(WicketFilter.java:257)
at 
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(
HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:263)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke
(ChannelSocket.java:767)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)


South African Wicket Users?

2007-11-20 Thread wicket user
Hey,

Are there any South African wicket users, if so where are you base, JHB or
CT?

Cheers
Simon


Re: WicketTester and Page parameters Wicket Example Unit tests?

2007-09-12 Thread wicket user
Hi Martijn,

Thanks for the response, I've had a look at the wickettester tests that are
available and they certainly are useful it was more along the lines of the
specific examples. I was just thinking that there would have been a lot less
questions from me if there were tests in the examples. If it's scheduled
thats cool and I would be happy to take on a few if help was needed but I
would probably have to have somebody look over my shoulder at first.
we after all don't want the blind leading the blind (I hope that statement
isn't to unpolitically correct these days).

Now for number 1. ..

Many thanks
Simon

On 11/09/2007, Martijn Dashorst [EMAIL PROTECTED] wrote:

 I'll leave 1 for others.

 re: 2.

 The wicket examples sources are part of the wicket distribution. You
 can find them in src/jdk-1.5/wicket-examples

 There are tests available, but afaik they are jwebunit tests, and
 scheduled to be replaced with WicketTester due to the fact that
 jwebunit is now GPL and hence incompatible with Apache.

 Wicket itself does contain several wicket tester based tests. So you
 may want to take a look at that too.

 And you're not alone in your TDD. You may want to take a look at JDave
 (jdave.org), which is a nice project for test lovers. I also know that
 we have several folks that attain nearly 100% test coverage of their
 user interface (during a visit about 18 months ago to the KNAW they
 showed me).

 Martijn

 On 9/11/07, wicket user [EMAIL PROTECTED] wrote:
  Ok,
 
  Two questions really:
 
  1) I've got a page that gets hit by an outside credit card merchant once
  they have validated the card, they post me my transaction ID along with
 a
  whole host of other parameters. Getting them from the request is easy in
 the
  page itself but trying to unit test it is driving me nuts. Basically I
 want
  to start the page with parameters already loaded, it has to be staring
 me in
  the face but I haven't had any luck.
 
  2) Are there unit tests for all the examples that are on
  http://wicketstuff.org/wicket13/ ? If they are available it would be
 nice to
  have the ability of viewing the tests alongside the htm and source, that
 way
  you can see how to build and break it at the same time. Unless of course
 I'm
  the only one doing a combination of FDD/TDD?
 
  Thanks again,
  Simon
 
  ps. I have been snooping around hoping to actually contribute more then
  questions but all the easy ones are answered already :-)
 


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

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




Re: WicketTester and Page parameters Wicket Example Unit tests?

2007-09-12 Thread wicket user
No I hadn't!  . but I have now! Thanks so much.

If I had made a constructor that took PageParameters parameter I would have
obviously tried that but I never thought to look at the WebPage class and
see that there is a contructor: WebPage(PageParameters ) which you can
override.

Man that's made my testing a lot more simple now.

Thanks again
Simon

On 12/09/2007, cwilkes [EMAIL PROTECTED] wrote:



 wicket user wrote:
 
  1) I've got a page that gets hit by an outside credit card merchant once
  they have validated the card, they post me my transaction ID along with
 a
  whole host of other parameters. Getting them from the request is easy in
  the
  page itself but trying to unit test it is driving me nuts. Basically I
  want
  to start the page with parameters already loaded, it has to be staring
 me
  in
  the face but I haven't had any luck.
 

 Have you tried someething like this?

 PageParameters pageParameters = new PageParameters();
 pageParameters.add(userId, 1234);
 wicketTester.startPage(new ITestPageSource() {
 public Page getTestPage() {
 return new MyPage(pageParameters);
 });
 }
 --
 View this message in context:
 http://www.nabble.com/WicketTester-and-Page-parameters---Wicket-Example-Unit-tests--tf4424879.html#a12638428
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




WicketTester and Page parameters Wicket Example Unit tests?

2007-09-11 Thread wicket user
Ok,

Two questions really:

1) I've got a page that gets hit by an outside credit card merchant once
they have validated the card, they post me my transaction ID along with a
whole host of other parameters. Getting them from the request is easy in the
page itself but trying to unit test it is driving me nuts. Basically I want
to start the page with parameters already loaded, it has to be staring me in
the face but I haven't had any luck.

2) Are there unit tests for all the examples that are on
http://wicketstuff.org/wicket13/ ? If they are available it would be nice to
have the ability of viewing the tests alongside the htm and source, that way
you can see how to build and break it at the same time. Unless of course I'm
the only one doing a combination of FDD/TDD?

Thanks again,
Simon

ps. I have been snooping around hoping to actually contribute more then
questions but all the easy ones are answered already :-)


Page state, undo and versioning?

2007-09-06 Thread wicket user
Hi,

My scenario is the following, I've got a page that allows a user to send an
sms to themselves every 20 seconds to a maximum of two times just incase
something in the network stopped the sms from getting to them in the first
place.

I have an ajax timer that enables the resend button after the specified time
and a count property of the page that stores the number of retries.

All works well and the button is disabled and enabled as expected in the
normal flow of events.

BUT when the user hits the back button after everything has been disabled
it's all enabled again, it's clearly to do with the undo ability of wicket
but no matter what I try I can't seemed to keep those components disabled on
an undo.

I've tried:

- setting the page to versioned/unversioned
- checking the page state onBeforeRendering and trying to set the value

What's really missing in my mind is a fundemental UNDERSTANDING of how this
works and how I deal with this problem. It seems such as simple thing but
I'm more then a little confused and starting to get irked.

So my questions (plural) are the following:
- where can I read more about what happens when the back button is hit?
- is there a way I can TEST this scenario with WicketTester?
- how do I keep that page in the same state on back being hit
- Maybe I'm tackling this the wrong way and I should be storing the state in
a session?

Thanks as always
Simon

ps. Wicket rocks, it's just my understanding that doesn't


Re: WicketTester, testing Form and SubmitLink

2007-09-05 Thread wicket user
Sorry I've been so slack in responding.

I've raised the issue, https://issues.apache.org/jira/browse/WICKET-932

Jean, please excuse my ignorance but when you request a quickstart project
do you mean you want the whole quickstart project with the problem
illustrated zipped into my file.

Any improvements required for the issue description, first JIRA issue
raised.

Thanks
Simon

On 03/09/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:

 * wicket user:
 
  I'm trying to test a form submission with SubmitLink, test code below:
 
  tester.setParameterForNextRequest
 (numberChangeForm:numberToChangeTo,
  numberToChangeTo);
 
  reset(smsServiceMock);
  smsServiceMock.sendActivationSms(isA(Subscriber.class));
  replay(smsServiceMock);
 
  // submit the form
   //tester.clickLink(numberChangeForm:numberChangeSubmitLink);
  tester.submitForm(numberChangeForm);
  snip/
  - trying to call the link directly but I just get the below exception
 which
  I'm not really surpised about
 
  java.lang.IllegalArgumentException: The component class doesn't seem to
  implement any of the known *Listener interfaces: class
  com.yeigo.view.wicket.register.RegistrationCheckPage$2

 This is a bug in WicketTester (BaseWicketTester actually).  Like
 Igor suggests, please create a JIRA issue at
 https://issues.apache.org/jira/browse/WICKET

 If you could provide a quickstart project, that would be great
 too.

 Thanks,
 --
  Jean-Baptiste Quenot
 aka  John Banana   Qwerty
 http://caraldi.com/jbq/

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




Re: WicketTester, testing Form and SubmitLink

2007-09-05 Thread wicket user
Done, I've just included a small project with a form and a submit link as
well as a unit testcase to highlight the problem. They are not unit test
cases for WicketTester as such, I would have to spend a bit more time poking
around the code to know how to write a proper test for the tester...


Thanks again,
Simon

On 05/09/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:

 * wicket user:

  I've raised the issue, https://issues.apache.org/jira/browse/WICKET-932

 Thanks!

  Jean, please excuse my ignorance but when you request a quickstart
 project
  do you mean you want the whole quickstart project with the problem
  illustrated zipped into my file.

 Anything that helps us to go straight to the problem can be
 helpful.

 This can be:

 * A Java project with pom.xml, jetty launcher and relevant
   sources.  This is probably not really the best thing to do for the
   problem at hand
 * Unit tests, this is especially useful if the problem is about
   WicketTester itself

 It is preferrable to submit the unit tests as a patch to the
 existing Wicket test classes, but if you file whole classes, that
 will do it as well.
 --
  Jean-Baptiste Quenot
 aka  John Banana   Qwerty
 http://caraldi.com/jbq/

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




WicketTester, testing Form and SubmitLink

2007-08-30 Thread wicket user
Hi Folks,

I'm trying to test a form submission with SubmitLink, test code below:

tester.setParameterForNextRequest(numberChangeForm:numberToChangeTo,
numberToChangeTo);

reset(smsServiceMock);
smsServiceMock.sendActivationSms(isA(Subscriber.class));
replay(smsServiceMock);

// submit the form
 //tester.clickLink(numberChangeForm:numberChangeSubmitLink);
tester.submitForm(numberChangeForm);

// check that the mock was called
verify(smsServiceMock);

tester.processRequestCycle();

// Verify that the message is displayed, this just checks the
expected components have rendered
checkRender(numberToChangeTo);

Now my SubmitLink has overridden the onSubmit() but when I step through the
debug of the test that's actually not getting called. All my validators on
the text field are getting called as expected and in fact the form works as
expected when deployed so I'm thinking that it might be a WicketTester issue
or the more likely scenario that I'm doing something wrong?

Things I've tried:
- debugging as mentioned, but this just shows me it's not getting called
- trying to call the link directly but I just get the below exception which
I'm not really surpised about

java.lang.IllegalArgumentException: The component class doesn't seem to
implement any of the known *Listener interfaces: class
com.yeigo.view.wicket.register.RegistrationCheckPage$2
..

- Googled.

Many thanks
Simon


Re: url mapping and wizards

2007-08-17 Thread wicket user
Thanks Igor,

I guess it makes sense that you wouldn't want to really bookmark a step
halfway within a wizard. The main reason I wanted to do that though was that
I was hoping to remove the word wicket from the url just from the point of
view of wanting to remove evidence of the frameworks that I rely on.

Simon

On 16/08/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 this is not how wicket works. bookmarkable urls are entry points, but once
 you change the state of the page you have to keep track of that instance
 somehow - that is what :12: is in that url - a wicket page id. so once you
 change the state of any page it is no longer bookmarkable and thus cannot
 have a ncie url.

 -igor

 On 8/16/07, wicket user [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I've just started using Wicket and I've managed to mount pages so that
 the
  urls are cleaned up but for the life of me I can't seem to get it to
 work
  with Wizard pages. Is there a trick to this?
 
  At the moment it looks like this:
  http://localhost:8080/myapp/app/?wicket:interface=:12
 
  I've tried mounting the wizard page as well as mounting the package that
  the
  wizard is in but with no luck.
 
  Many thanks
  Simon
 



Re: Unit testing - updating a DropDownChoice with Ajax : follow on from old mailing list

2007-08-17 Thread wicket user
I managed to solve it by setting the values directly using:

tester.setParameterForNextRequest(wizard:form:view:phoneMaker, 1);

and completely bypassing the ajax.

sorry for the trouble.

Simon

On 17/08/07, wicket user [EMAIL PROTECTED] wrote:

 I'm not entirely sure that this isn't bad mailing list form but this
 article in the old mailing list was so close to my existing problem that I
 thought that I would continue it:

 Ok, so I've got the first part of updating a DropDownChoice Ajax unit test
 working as described in the forum (
 http://www.nabble.com/Unit-testing---updating-a-DropDownChoice-with-Ajax-tf3946499.html)
 previously but when I try to * select* the second DropDownChoice and
 submit the form I'm getting the form returning that the value is missing.
 It is a required field so its supposed to object if it isn't set but I'm not
 sure why it's not picking up that I've set it.

 Here is a bit of the code:

 FormTester ftester = tester.newFormTester(wizard:form);

 // select the phone maker
 ftester.select(view:phone.make, 0);
 tester.executeAjaxEvent(PHONEMAKE, onchange);

 // select the phone model
 DropDownChoice phoneModels =
  (DropDownChoice)tester.getLastRenderedPage().get(PHONEMODEL);

 // This passes
 assertEquals(20, phoneModels.getChoices().size());

  // Here I'm selecting the second dropdown, as usual
 right?
 ftester.select(view:phone.model, 0);

 // submit the wizard to the next
 ftester.submit(buttons:next);

 tester.assertNoInfoMessage();

 *// Here is where I'm expecting nothing but get the
 missing required field*
 tester.assertNoErrorMessage();

 I've tried various combinations of the above but to no avail.
 Thanks Simon





url mapping and wizards

2007-08-16 Thread wicket user
Hi,

I've just started using Wicket and I've managed to mount pages so that the
urls are cleaned up but for the life of me I can't seem to get it to work
with Wizard pages. Is there a trick to this?

At the moment it looks like this:
http://localhost:8080/myapp/app/?wicket:interface=:12

I've tried mounting the wizard page as well as mounting the package that the
wizard is in but with no luck.

Many thanks
Simon