Re: Copenhagen wicket users meeting?

2007-11-12 Thread Nino Saturnino Martinez Vazquez Wael

super:)

Flemming Boller wrote:

done :-)

On Nov 9, 2007 9:22 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

  

Could more people signup if interested? We  cant only be 3 guys in
denmark interested in this..

I think the release of wicket 1.3 should be an excellent time to hold a
meeting, of course we need to agree on a exact date...

Again as I wrote earlier this is an excellent way to get introduced to
wicket.. If we are enough persons we will divide into two tracks, basic
and advanced..

regards Nino

Nino Saturnino Martinez Vazquez Wael wrote:


Bump for more people to join, otherwise it will not happen...

This would be an excellent opertunity to meet other wicketeers and
discuss relevant problems...

regards Nino

Nino Saturnino Martinez Vazquez Wael wrote:
  

Some time has past since our last meeting. Perhaps it's time for a
new one?

We could focus this meeting on using basic wicket. In order to have
more newcommers?

Whats your opinion on this people? What would make you come to the
meeting, and how many are we from denmark?


regards Nino

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


  

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


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





  


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


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



Re: Displaying feedback

2007-11-12 Thread Roland Kaercher
Hello Joshua,

if you just want to display the feedback in your default feedback
panel all you have to do is add it to your page, there is no need to
tell the form which feedback panel to use then.

roland

On Nov 12, 2007 8:25 AM, Joshua Jackson [EMAIL PROTECTED] wrote:
 Dear all,

 How do I display the feedback/message upon validation failure/error?
 When I read the doc here:
 http://cwiki.apache.org/WICKET/newuserguide.html#Newuserguide-Validation
 , we insert the feedback instance into the Form constructor, but the
 latest Wicket release don't have a constructor that has FeedBackPanel
 as the argument.

 Does anyone know the way?

 Thanks in advance.

 --
 What you want today, may not exist tommorrow

 Blog: http://joshuajava.wordpress.com/

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



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



Re: Copenhagen wicket users meeting?

2007-11-12 Thread Nino Saturnino Martinez Vazquez Wael
We havent agreed on a actual date yet. I think we will be waiting for 
wicket 1.3 to get released so that Frank can participate.. I think 1.3 
are somewhat neer a release at least somewhere  before christmas.


Murat Yücel wrote:

When is the meeting? I have just signed up for the new wicket mailing list.
Maybe i should participate this time :). Flemming do you give a ride?

/Murat

2007/11/9, Flemming Boller [EMAIL PROTECTED]:
  

done :-)

On Nov 9, 2007 9:22 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:



Could more people signup if interested? We  cant only be 3 guys in
denmark interested in this..

I think the release of wicket 1.3 should be an excellent time to hold a
meeting, of course we need to agree on a exact date...

Again as I wrote earlier this is an excellent way to get introduced to
wicket.. If we are enough persons we will divide into two tracks, basic
and advanced..

regards Nino

Nino Saturnino Martinez Vazquez Wael wrote:
  

Bump for more people to join, otherwise it will not happen...

This would be an excellent opertunity to meet other wicketeers and
discuss relevant problems...

regards Nino

Nino Saturnino Martinez Vazquez Wael wrote:


Some time has past since our last meeting. Perhaps it's time for a
new one?

We could focus this meeting on using basic wicket. In order to have
more newcommers?

Whats your opinion on this people? What would make you come to the
meeting, and how many are we from denmark?


regards Nino

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




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


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


  


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


  


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


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



Re: JPA best-practices?

2007-11-12 Thread Nino Saturnino Martinez Vazquez Wael

Do you know if theres any plans on making a maven2 archetype for qwicket?

Evan Chooly wrote:

There's also qwicket.sf.net that specifically uses JPA+spring.  I'm
finishing up updates now for 1.3 support and improved project setup.
SVN is your best bet there but I'm hoping to put up the new version
this weekend.

On Nov 9, 2007 10:04 AM, Francis De Brabandere [EMAIL PROTECTED] wrote:
  

You might want to have a look at http://databinder.net, that project
is using hibernate but the setup should be similar?
The big problem is that a EntityManager is not thread-safe and should
indeed be created per request. Let me know if you get there!

On Nov 9, 2007 1:52 PM, Uwe Schäfer [EMAIL PROTECTED] wrote:


hi

i plan to use JPA together with Wicket. Are there any battle-proven
best-practices out there of how to handle EnityManagers and Transactions?

What do other people use (no, not the spring crowd ;) ?

One EntityManager per Request seems to be the obvious idea and a guice
Provider may help with that. Does anyone have serious experiences with
that or other suggestions?

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


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


  


--
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.

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


  


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


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



Re: Displaying feedback

2007-11-12 Thread Joshua Jackson
Thanks Roland,

It worked. I didn't understand what's written on the wiki.

Thanks alot. :)

On 11/12/07, Roland Kaercher [EMAIL PROTECTED] wrote:
 Hello Joshua,

 if you just want to display the feedback in your default feedback
 panel all you have to do is add it to your page, there is no need to
 tell the form which feedback panel to use then.

 roland

-- 
What you want today, may not exist tommorrow

Blog: http://joshuajava.wordpress.com/

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



Re: Attempted summary of multiple wicket:child / thread

2007-11-12 Thread Eelco Hillenius
 I hope people don't start thinking that this damn newbie comes and wants
 to change a proven framework without knowing it really. But as owner of the
 patch I am very interested in this discussion and probably even responsible
 for it - or maybe eelco was, when he said And hey, maybe some working code
 convinces us :-) (probably) without being prepared to see working code ;)

Nah, that's never a problem. I don't think any of the team cares about
who starts discussions, as long as you stick to technical arguments.

Threads like these are quite time consuming though, and time is
something we all are short on. :-) As long as there is a good JIRA
issue for it, it'll stay in our TODO list to look at. Or... you create
that wicket-stuff project I talked about and you have it whenever
you're ready. Makes it easier for us/ team to look at it later.

Eelco

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



Re: How do others include their browser specific styles in Wicket?

2007-11-12 Thread Eelco Hillenius
On Nov 11, 2007 2:24 AM, Johan Compagner [EMAIL PROTECTED] wrote:
 Session.getClientInfo() ?

See also the HelloBrowser example
(http://wicketstuff.org/wicket13/hellobrowser/).

Eelco

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



Re: Copenhagen wicket users meeting?

2007-11-12 Thread Flemming Boller
On Nov 9, 2007 1:54 PM, Murat Yücel [EMAIL PROTECTED] wrote:

 When is the meeting? I have just signed up for the new wicket mailing
 list.
 Maybe i should participate this time :). Flemming do you give a ride?


of course :-)



 /Murat

 2007/11/9, Flemming Boller [EMAIL PROTECTED]:
  done :-)
 
  On Nov 9, 2007 9:22 AM, Nino Saturnino Martinez Vazquez Wael 
  [EMAIL PROTECTED] wrote:
 
   Could more people signup if interested? We  cant only be 3 guys in
   denmark interested in this..
  
   I think the release of wicket 1.3 should be an excellent time to hold
 a
   meeting, of course we need to agree on a exact date...
  
   Again as I wrote earlier this is an excellent way to get introduced to
   wicket.. If we are enough persons we will divide into two tracks,
 basic
   and advanced..
  
   regards Nino
  
   Nino Saturnino Martinez Vazquez Wael wrote:
Bump for more people to join, otherwise it will not happen...
   
This would be an excellent opertunity to meet other wicketeers and
discuss relevant problems...
   
regards Nino
   
Nino Saturnino Martinez Vazquez Wael wrote:
Some time has past since our last meeting. Perhaps it's time for a
new one?
   
We could focus this meeting on using basic wicket. In order to have
more newcommers?
   
Whats your opinion on this people? What would make you come to the
meeting, and how many are we from denmark?
   
   
regards Nino
   
   
 -
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]
   
   
  
   --
   Nino Martinez Wael
   Java Specialist @ Jayway DK
   http://www.jayway.dk
   +45 2936 7684
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 

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




Re: Wicket runtime Exception

2007-11-12 Thread tbt

Hi

Here is the code that uses RadioGroup


public class RadioListView extends ListView
{
/**
 * 
 */
private static final long serialVersionUID = 1L;

//private static Logger log =
Logger.getLogger(RadioListView.class.getName());

public RadioListView(String id,ArrayListOptionBean 
optionList,PaperModel
paperModel)
{
super(id,optionList);
}

@Override
protected void populateItem(ListItem item) 
{
final OptionBean optionBean = (OptionBean) 
item.getModelObject();
Radio radioButton = new TextRadio(radio,new Model( +
optionBean.getOptionId()),optionBean.getOptionId());
item.add(radioButton);
Label radioLabel = new 
Label(radioValue,optionBean.getOptionText());
item.add(radioLabel);
if(optionBean.getOptionText() != null 
.equals(optionBean.getOptionText()))
{
radioLabel.setVisible(false);
}
else
{
radioLabel.setVisible(true);
}
WebComponent imageLabel = new
TextImage(imageLabel,optionBean.getOptionImage());
item.add(imageLabel);
if(optionBean.getOptionImage() != null 
.equals(optionBean.getOptionImage()))
{
imageLabel.setVisible(false);
}
else
{
imageLabel.setVisible(true);
}
}


}

msc65jap wrote:
 
 Hello,
 
 Please send your code.
 
 J.
 
 On Nov 9, 2007 9:48 AM, tbt [EMAIL PROTECTED] wrote:

 Hi

 I'm a newbie to wicket and i'm using RadioGroup in my application. But
 sometimes it gives the following runtime exception

 ERROR (RequestCycle.java:1043) - submitted http post value [radio0] for
 RadioGroup component [27:paperForm:panel:radioGroup] is illegal because
 it
 does not contain relative path to a Radio componnet. Due to this the
 RadioGroup component cannot resolve the selected Radio component pointed
 to
 by the illegal value. A possible reason is that componment hierarchy
 changed
 between rendering and form submission.
 wicket.WicketRuntimeException: submitted http post value [radio0] for
 RadioGroup component [27:paperForm:panel:radioGroup] is illegal because
 it
 does not contain relative path to a Radio componnet. Due to this the
 RadioGroup component cannot resolve the selected Radio component pointed
 to
 by the illegal value. A possible reason is that componment hierarchy
 changed
 between rendering and form submission.
 at
 wicket.markup.html.form.RadioGroup.convertValue(RadioGroup.java:102)
 at
 wicket.markup.html.form.FormComponent.convert(FormComponent.java:878)
 at wicket.markup.html.form.Form$14.validate(Form.java:983)
 at
 wicket.markup.html.form.Form$ValidationVisitor.formComponent(Form.java:144)
 at wicket.markup.html.form.Form$4.component(Form.java:459)
 at wicket.MarkupContainer.visitChildren(MarkupContainer.java:744)
 at wicket.MarkupContainer.visitChildren(MarkupContainer.java:759)
 at
 wicket.markup.html.form.Form.visitFormComponents(Form.java:455)
 at wicket.markup.html.form.Form.validateConversion(Form.java:979)
 at wicket.markup.html.form.Form.validate(Form.java:953)
 at wicket.markup.html.form.Form.process(Form.java:867)
 at wicket.markup.html.form.Form.onFormSubmitted(Form.java:310)
 at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
 wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:163)
 at
 wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:74)
 at
 wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65)
 at
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57)
 at
 wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:896)
 at
 wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
 at wicket.RequestCycle.step(RequestCycle.java:1010)
 at wicket.RequestCycle.steps(RequestCycle.java:1084)
 at wicket.RequestCycle.request(RequestCycle.java:454)
 at
 wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
 at
 wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:262)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at
 

Wicket Portlets in Liferay

2007-11-12 Thread Thijs

I'm trying to get wicket portlets to work in Liferay.

As fas as I can tell there are at least 2 issues at the moment:
1.) A nullpointer exception in WebResponse due to an issue in de Liferay
code that returns null in the encodeRedirectUrl (see
http://www.liferay.com/web/guest/community/forums/message_boards/message/249501
)

To answer a question on the liferay forum I need to know why the
encodeRedirectUrl is called. I think this is because of the
REDIRECT_TO_RENDER setting done by the WicketFilterPortletContext. But can
somebody confirm that?!

2.) https://issues.apache.org/jira/browse/WICKET-1132
I have no clue what causes this issue or where to look. Can somebody give me
a push in the right direction? 



-- 
View this message in context: 
http://www.nabble.com/Wicket-Portlets-in-Liferay-tf4790149.html#a13703212
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: JPA best-practices?

2007-11-12 Thread Uwe Schäfer

Chris Colman schrieb:


The obvious benefit in such an approach is that your POJO model and the
services that you provide to implement business rules etc., remain
completely portable to different persistence engines - ie., no vendor
lock in.


well, i thought that was JPA was all about !?


As well as wrapping the various persistence engines it also provides
dependency injection without resorting to separate XML/bean mania - it's
all done very quickly and concisely and automatically in Java - 


Thanks, that´s what guice is great for, and it is really neatly 
integrated with wicket.



http://expojo.com


I´ll take a look anyway, thanks.

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


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



Re: {wicket 1.3 rc1} upgrading....

2007-11-12 Thread Johan Compagner
This is already fixed but it didn't make it into the RC as it seems

It is because you use a BufferedWebResponse with your mock application
if you make it a WebResponse then it works fine for now.


/**

* [EMAIL PROTECTED] 
org.apache.wicket.protocol.http.WebApplication#newWebResponse(
javax.servlet.http.HttpServletResponse)

*/

*protected* WebResponse newWebResponse(*final* HttpServletResponse
servletResponse)

{

*return* *new* WebResponse(servletResponse);

}


johan



On Nov 12, 2007 12:05 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 Hi

 After updating our maven dependencies to 1.3 rc1 we are now getting null
 pointer exceptions in almost all our tests.. Is this something that are
 expected?

 A quick look at the migration guide did not give anything. Any ideas? We
 do not get these errors in beta 4, but we do get the redirect error(but
 this does not break the test).


 Heres a partial stacktrace:

 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.066
 sec  FAILURE!
 testCanRender(dk.polfoto.admin.base.texts.ManageSlogansPageTest)  Time
 elapsed: 0.059 sec   ERROR!
 java.lang.NullPointerException
at
 org.apache.wicket.protocol.http.MockHttpServletResponse.sendRedirect(
 MockHttpServletResponse.java:534)
at
 org.apache.wicket.protocol.http.WebResponse.redirect(WebResponse.java:232)
at
 org.apache.wicket.protocol.http.BufferedWebResponse.close(
 BufferedWebResponse.java:66)
at
 org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(
 MockWebApplication.java:386)
at org.apache.wicket.util.tester.FormTester.submit(FormTester.java:588)
at
 dk.polfoto.admin.testutil.WebTestCase.attemptLogin(WebTestCase.java:67)
at
 dk.polfoto.admin.testutil.WebTestCase.assertLogin(WebTestCase.java:84)
at
 dk.polfoto.admin.base.texts.ManageSlogansPageTest.setUp(
 ManageSlogansPageTest.java:14)
at junit.framework.TestCase.runBare(TestCase.java:125)

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


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




Re: {wicket 1.3 rc1} upgrading....

2007-11-12 Thread Nino Saturnino Martinez Vazquez Wael

thanks for the quick answer...

regards Nino

Johan Compagner wrote:

This is already fixed but it didn't make it into the RC as it seems

It is because you use a BufferedWebResponse with your mock application
if you make it a WebResponse then it works fine for now.


/**

* [EMAIL PROTECTED] 
org.apache.wicket.protocol.http.WebApplication#newWebResponse(
javax.servlet.http.HttpServletResponse)

*/

*protected* WebResponse newWebResponse(*final* HttpServletResponse
servletResponse)

{

*return* *new* WebResponse(servletResponse);

}


johan



On Nov 12, 2007 12:05 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

  

Hi

After updating our maven dependencies to 1.3 rc1 we are now getting null
pointer exceptions in almost all our tests.. Is this something that are
expected?

A quick look at the migration guide did not give anything. Any ideas? We
do not get these errors in beta 4, but we do get the redirect error(but
this does not break the test).


Heres a partial stacktrace:

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.066
sec  FAILURE!
testCanRender(dk.polfoto.admin.base.texts.ManageSlogansPageTest)  Time
elapsed: 0.059 sec   ERROR!
java.lang.NullPointerException
   at
org.apache.wicket.protocol.http.MockHttpServletResponse.sendRedirect(
MockHttpServletResponse.java:534)
   at
org.apache.wicket.protocol.http.WebResponse.redirect(WebResponse.java:232)
   at
org.apache.wicket.protocol.http.BufferedWebResponse.close(
BufferedWebResponse.java:66)
   at
org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(
MockWebApplication.java:386)
   at org.apache.wicket.util.tester.FormTester.submit(FormTester.java:588)
   at
dk.polfoto.admin.testutil.WebTestCase.attemptLogin(WebTestCase.java:67)
   at
dk.polfoto.admin.testutil.WebTestCase.assertLogin(WebTestCase.java:84)
   at
dk.polfoto.admin.base.texts.ManageSlogansPageTest.setUp(
ManageSlogansPageTest.java:14)
   at junit.framework.TestCase.runBare(TestCase.java:125)

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


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





  


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


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



Re: How do others include their browser specific styles in Wicket?

2007-11-12 Thread Nino Saturnino Martinez Vazquez Wael
We dont, we have one css for them all. Thats. IE 6,7 FF 1.5,2 Safari  
for us.


regards Nino

Sjoerd Lohuis wrote:
There are a few ways to include your browser specific styles in a 
project:

- CSS hacks to target specific browsers
- IE Conditional Comments
- Server-side browsercheck

I'm not asking which way is better or the best. I'm asking who's using 
one of these methods and what is the best way to implement this in 
Wicket.


The way I'm currently doing it is by using a server-side browsercheck 
which includes the necessary stylesheets in my pages. This is done by 
a Java Class which we reuse in evrey new project. Is there maybe a 
standard Wicket browsercheck component for this?




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


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



RE: How to migrate onAfterRender/onBeforeRender from wicket 1.2.6 to 1.3

2007-11-12 Thread Clay Lehman
You can also use onRender()

@Override
protected void onRender()
{
getResponse().write(StuffBeforeComponent);
super.onRender();
getResponse().write(StuffAfterComponent);
}

But IComponentBorder will do all that for you...

-Clay

-Original Message-
From: Johan Compagner [mailto:[EMAIL PROTECTED] 
Sent: Saturday, November 10, 2007 5:42 AM
To: users@wicket.apache.org
Subject: Re: How to migrate onAfterRender/onBeforeRender from wicket
1.2.6 to 1.3

seee IComponentBorder

On Nov 10, 2007 1:55 AM, rtow [EMAIL PROTECTED] wrote:


 Big thanks!  The onComponentTag(tag) is the perfect replacement for
 onBeforeRender().  Do you have suggestion for onAfterRender()?  I
 explained
 that I also have a problem to render onAfterRender() in previous mail.

 rtow



 Johan Compagner wrote:
 
  hmm thats the first case that i see that used the onBeforeRender
like
  that.
  But what you want is a border around the component see
IComponentBorder
  or override the onComponentTag(tag);
  that is also called right before the tag is rendered.
 
  johan
 
 
 
  On Nov 10, 2007 12:35 AM, rtow [EMAIL PROTECTED] wrote:
 
 
  In wicket 1.2.6, I have the following and  render fine.
 
 private static class RequiredLabel extends Label
 {
 private static final long serialVersionUID = 1L;
 
 private boolean required;
 
 public RequiredLabel(String id, FormComponent fc)
 {
 super(id, fc);
 this.required = fc.isRequired();
 }
 
 @Override
 protected void onBeforeRender()
 {
 super.onBeforeRender();
 if (this.required)
 getResponse().write(*);
 }
 }
 
  After migrated to wicket 1.3 beta, I overrided the method as
following:
 
 @Override
 protected void onBeforeRender()
 {
 if (this.required)
 getResponse().write(*);
 super.onBeforeRender();
 }
 
  The red * still render, but at the very top of the page.  A similar
  problem
  for onAfterRender() is that also render, but at the very bottom of
the
  page.
 
  Thanks for your help!
 
  rtow
  --
  View this message in context:
 

http://www.nabble.com/How-to-migrate-onAfterRender-onBeforeRender-from-w
icket-1.2.6-to-1.3-tf4780695.html#a13677169
  Sent from the Wicket - User mailing list archive at
  Nabble.com http://nabble.com/http://nabble.com/
  .
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:

http://www.nabble.com/How-to-migrate-onAfterRender-onBeforeRender-from-w
icket-1.2.6-to-1.3-tf4780695.html#a13678135
  Sent from the Wicket - User mailing list archive at
Nabble.comhttp://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]



Examples of using detachable models?

2007-11-12 Thread Matthias Karlsson

Hi,

I have recently started to use Wicket and I'm finally getting up to speed after 
getting my Dao-framework and Spring integrated nicely with it. However, I'm 
having problems figuring out how to implement detachable models.

Let's take a simple example from my code base (I'm free-typing here so this 
code may not be 100% correct, but hopefully you'll get what I mean).

public class MyPage extends WebPage {

private Movie movie;

public MyPage(Movie movie) {

this.movie = movie;

add(new MyForm(form));

}

private final MyForm extends Form {

private MyForm(String id) {

super(id, new CompoundPropertyModel(movie));

add(new TextField(name));
add(new TextField(year, Integer.class));

/* etc */

}

}

}

Now, this code works well. However, Movie is not an object that I would like 
serialize, mainly because I due to technical reasons not even can. However, 
using just an identifier I would be able to restore it using a globally 
accessable dao-locator.

If anyone could give me a few hints or pointers I would appreciate it.

Thanks for a great framework.

// Matthias
_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JPA best-practices?

2007-11-12 Thread Evan Chooly
That's a definite feature i plan on adding as soon as I can.  As a
noted maven hater, though, it'll take some time and libations to help
me swallow my pride.  :)

On Nov 12, 2007 3:47 AM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Do you know if theres any plans on making a maven2 archetype for qwicket?

 Evan Chooly wrote:
  There's also qwicket.sf.net that specifically uses JPA+spring.  I'm
  finishing up updates now for 1.3 support and improved project setup.
  SVN is your best bet there but I'm hoping to put up the new version
  this weekend.
 
  On Nov 9, 2007 10:04 AM, Francis De Brabandere [EMAIL PROTECTED] wrote:
 
  You might want to have a look at http://databinder.net, that project
  is using hibernate but the setup should be similar?
  The big problem is that a EntityManager is not thread-safe and should
  indeed be created per request. Let me know if you get there!
 
  On Nov 9, 2007 1:52 PM, Uwe Schäfer [EMAIL PROTECTED] wrote:
 
  hi
 
  i plan to use JPA together with Wicket. Are there any battle-proven
  best-practices out there of how to handle EnityManagers and Transactions?
 
  What do other people use (no, not the spring crowd ;) ?
 
  One EntityManager per Request seems to be the obvious idea and a guice
  Provider may help with that. Does anyone have serious experiences with
  that or other suggestions?
 
  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
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  http://www.somatik.be
  Microsoft gives you windows, Linux gives you the whole house.
 
  -
  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]
 
 
 

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


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



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



Re: Examples of using detachable models?

2007-11-12 Thread Johan Compagner
LoadableDetachableModel ldm = new LoadableDetachableModel(movie) {

load(){ reload the movie}

}

Form form = new Form(xx, new CompoundPropertyModel(ldm));

On Nov 12, 2007 2:46 PM, Matthias Karlsson [EMAIL PROTECTED] wrote:


 Hi,

 I have recently started to use Wicket and I'm finally getting up to speed
 after getting my Dao-framework and Spring integrated nicely with it.
 However, I'm having problems figuring out how to implement detachable
 models.

 Let's take a simple example from my code base (I'm free-typing here so
 this code may not be 100% correct, but hopefully you'll get what I mean).

 public class MyPage extends WebPage {

private Movie movie;

public MyPage(Movie movie) {

this.movie = movie;

add(new MyForm(form));

}

private final MyForm extends Form {

private MyForm(String id) {

super(id, new CompoundPropertyModel(movie));

add(new TextField(name));
add(new TextField(year, Integer.class));

/* etc */

}

}

 }

 Now, this code works well. However, Movie is not an object that I would
 like serialize, mainly because I due to technical reasons not even can.
 However, using just an identifier I would be able to restore it using a
 globally accessable dao-locator.

 If anyone could give me a few hints or pointers I would appreciate it.

 Thanks for a great framework.

 // Matthias
 _
 Express yourself instantly with MSN Messenger! Download today it's FREE!
 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Examples of using detachable models?

2007-11-12 Thread Maurice Marrink
The trick is to let the models do the reloading by id part for you.
If you take a look at LoadableDetachableModel you see it has an
abstract load() method. A very common implementation would be this:
public Object load()
{
 return myDao.get(Movie.class,movieId);
}

of course you have to make the dao and the id available to the model.
The model will make sure that after each request the movie is
disposed.
If you only have a handful of these models you probably don't even
need to look any further.

However as you use more and more of these models you will most likely
want to build your own model (from scratch) to do more fancy stuff
like setting the object, retaining a copy of transient objects, etc.
Fortunately for this purpose there are several other models already
available like the hibernate models (i think in extensions or in
wicket-stuff). So you might want to take a look there before you start
building your own.

Maurice

On Nov 12, 2007 2:46 PM, Matthias Karlsson [EMAIL PROTECTED] wrote:

 Hi,

 I have recently started to use Wicket and I'm finally getting up to speed 
 after getting my Dao-framework and Spring integrated nicely with it. However, 
 I'm having problems figuring out how to implement detachable models.

 Let's take a simple example from my code base (I'm free-typing here so this 
 code may not be 100% correct, but hopefully you'll get what I mean).

 public class MyPage extends WebPage {

 private Movie movie;

 public MyPage(Movie movie) {

 this.movie = movie;

 add(new MyForm(form));

 }

 private final MyForm extends Form {

 private MyForm(String id) {

 super(id, new CompoundPropertyModel(movie));

 add(new TextField(name));
 add(new TextField(year, Integer.class));

 /* etc */

 }

 }

 }

 Now, this code works well. However, Movie is not an object that I would like 
 serialize, mainly because I due to technical reasons not even can. However, 
 using just an identifier I would be able to restore it using a globally 
 accessable dao-locator.

 If anyone could give me a few hints or pointers I would appreciate it.

 Thanks for a great framework.

 // Matthias
 _
 Express yourself instantly with MSN Messenger! Download today it's FREE!
 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
 -
 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]



Multi-file upload and ListView together

2007-11-12 Thread Franklin Antony

Dear Friends,
   I am having a problem with putting MultiFileUploadField inside a
ListView. I am following the example, but somehow the uploads collection is
not getting populated with the files. However when I directly add the
MultiFileUploadField  on a form everything seems to work. Could someone
please shed some light on this.

Here is some code snippet

List ls = Arrays.asList(new String[]{Passport });
ListView pl = new ListView(plist,ls)
{ 

protected void populateItem(ListItem arg0) {


MultiFileUploadField ff=new 
MultiFileUploadField(file_input,new
PropertyModel(this,uploads),3);

fileUploadList.add(ff);
fileUpload.add(ff);
arg0.add(ff);




}


};


And the listview is on a form and the collections(uploads) is on the form to
just as in the example. I am sure its something with the component
hierarchy. But not sure how to call the uploads correctly. I think there is
something wrong with the expression.


Thanks,
Franklin
-- 
View this message in context: 
http://www.nabble.com/Multi-file-upload-and-ListView-together-tf4791788.html#a13707621
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: Examples of using detachable models?

2007-11-12 Thread Matthias Karlsson

Thanks (and to Johan as well).

The simple solution of using a small anonymous implementation of 
LoadableDetachableModel will work just fine for my current needs. If I later 
feel that I need something more enterprisy I'll look into building something 
more complex.

// Matthias

 Date: Mon, 12 Nov 2007 15:55:46 +0100
 From: [EMAIL PROTECTED]
 To: users@wicket.apache.org
 Subject: Re: Examples of using detachable models?

 The trick is to let the models do the reloading by id part for you.
 If you take a look at LoadableDetachableModel you see it has an
 abstract load() method. A very common implementation would be this:
 public Object load()
 {
 return myDao.get(Movie.class,movieId);
 }

 of course you have to make the dao and the id available to the model.
 The model will make sure that after each request the movie is
 disposed.
 If you only have a handful of these models you probably don't even
 need to look any further.

 However as you use more and more of these models you will most likely
 want to build your own model (from scratch) to do more fancy stuff
 like setting the object, retaining a copy of transient objects, etc.
 Fortunately for this purpose there are several other models already
 available like the hibernate models (i think in extensions or in
 wicket-stuff). So you might want to take a look there before you start
 building your own.

 Maurice

 On Nov 12, 2007 2:46 PM, Matthias Karlsson  wrote:

 Hi,

 I have recently started to use Wicket and I'm finally getting up to speed 
 after getting my Dao-framework and Spring integrated nicely with it. 
 However, I'm having problems figuring out how to implement detachable models.

 Let's take a simple example from my code base (I'm free-typing here so this 
 code may not be 100% correct, but hopefully you'll get what I mean).

 public class MyPage extends WebPage {

 private Movie movie;

 public MyPage(Movie movie) {

 this.movie = movie;

 add(new MyForm(form));

 }

 private final MyForm extends Form {

 private MyForm(String id) {

 super(id, new CompoundPropertyModel(movie));

 add(new TextField(name));
 add(new TextField(year, Integer.class));

 /* etc */

 }

 }

 }

 Now, this code works well. However, Movie is not an object that I would like 
 serialize, mainly because I due to technical reasons not even can. However, 
 using just an identifier I would be able to restore it using a globally 
 accessable dao-locator.

 If anyone could give me a few hints or pointers I would appreciate it.

 Thanks for a great framework.

 // Matthias
 _
 Express yourself instantly with MSN Messenger! Download today it's FREE!
 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
 -
 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]


_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JPA best-practices?

2007-11-12 Thread n8han


Evan Chooly wrote:
 
 Do you know if theres any plans on making a maven2 archetype for qwicket?
 
 That's a definite feature i plan on adding as soon as I can.  As a
 noted maven hater, though, it'll take some time and libations to help
 me swallow my pride.  :)
 

Good luck! Archetypes are really a pain, because of the template text
strings in the source that keep them from compiling in place, so they're
hard to code, test, and maintain. I just abandoned mine. People can almost
as easily rename classes and packages after the fact, I've rationalized.

Nathan
-- 
View this message in context: 
http://www.nabble.com/JPA-best-practices--tf4777536.html#a13708172
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket runtime Exception

2007-11-12 Thread Johan Compagner
is that a listview?
do you have called setReuseItems() ?

else the radio's are constantly replaced with new once and that could be the
problem

On Nov 12, 2007 10:31 AM, tbt [EMAIL PROTECTED] wrote:


 Hi

 Here is the code that uses RadioGroup


 public class RadioListView extends ListView
 {
/**
 *
 */
private static final long serialVersionUID = 1L;

//private static Logger log =
 Logger.getLogger(RadioListView.class.getName());

public RadioListView(String id,ArrayListOptionBean
 optionList,PaperModel
 paperModel)
{
super(id,optionList);
}

@Override
protected void populateItem(ListItem item)
{
final OptionBean optionBean = (OptionBean)
 item.getModelObject();
Radio radioButton = new TextRadio(radio,new Model( +
 optionBean.getOptionId()),optionBean.getOptionId());
item.add(radioButton);
Label radioLabel = new Label(radioValue,
 optionBean.getOptionText());
item.add(radioLabel);
if(optionBean.getOptionText() != null 
 .equals(optionBean.getOptionText()))
{
radioLabel.setVisible(false);
}
else
{
radioLabel.setVisible(true);
}
WebComponent imageLabel = new
 TextImage(imageLabel,optionBean.getOptionImage());
item.add(imageLabel);
if(optionBean.getOptionImage() != null 
 .equals(optionBean.getOptionImage()))
{
imageLabel.setVisible(false);
}
else
{
imageLabel.setVisible(true);
 }
}


 }

 msc65jap wrote:
 
  Hello,
 
  Please send your code.
 
  J.
 
  On Nov 9, 2007 9:48 AM, tbt [EMAIL PROTECTED] wrote:
 
  Hi
 
  I'm a newbie to wicket and i'm using RadioGroup in my application. But
  sometimes it gives the following runtime exception
 
  ERROR (RequestCycle.java:1043) - submitted http post value [radio0] for
  RadioGroup component [27:paperForm:panel:radioGroup] is illegal because
  it
  does not contain relative path to a Radio componnet. Due to this the
  RadioGroup component cannot resolve the selected Radio component
 pointed
  to
  by the illegal value. A possible reason is that componment hierarchy
  changed
  between rendering and form submission.
  wicket.WicketRuntimeException: submitted http post value [radio0] for
  RadioGroup component [27:paperForm:panel:radioGroup] is illegal because
  it
  does not contain relative path to a Radio componnet. Due to this the
  RadioGroup component cannot resolve the selected Radio component
 pointed
  to
  by the illegal value. A possible reason is that componment hierarchy
  changed
  between rendering and form submission.
  at
  wicket.markup.html.form.RadioGroup.convertValue(RadioGroup.java:102)
  at
  wicket.markup.html.form.FormComponent.convert(FormComponent.java:878)
  at wicket.markup.html.form.Form$14.validate(Form.java:983)
  at
  wicket.markup.html.form.Form$ValidationVisitor.formComponent(Form.java
 :144)
  at wicket.markup.html.form.Form$4.component(Form.java:459)
  at wicket.MarkupContainer.visitChildren(MarkupContainer.java
 :744)
  at wicket.MarkupContainer.visitChildren(MarkupContainer.java
 :759)
  at
  wicket.markup.html.form.Form.visitFormComponents(Form.java:455)
  at wicket.markup.html.form.Form.validateConversion(Form.java
 :979)
  at wicket.markup.html.form.Form.validate(Form.java:953)
  at wicket.markup.html.form.Form.process(Form.java:867)
  at wicket.markup.html.form.Form.onFormSubmitted(Form.java:310)
  at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
  Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at
  wicket.RequestListenerInterface.invoke(RequestListenerInterface.java
 :163)
  at
 
 wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents
 (ListenerInterfaceRequestTarget.java:74)
  at
  wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
 DefaultEventProcessorStrategy.java:65)
  at
 
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents
 (AbstractCompoundRequestCycleProcessor.java:57)
  at
  wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:896)
  at
  wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
  at wicket.RequestCycle.step(RequestCycle.java:1010)
  at wicket.RequestCycle.steps(RequestCycle.java:1084)
  at wicket.RequestCycle.request(RequestCycle.java:454)
  at
  wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)

Re: Apache Wicket 1.3.0-rc1 released!

2007-11-12 Thread Anders Peterson

Thanks, everyone who contributed!

Is Wicket 1.4 still planned to be a Java 5 version of Wicket 1.3? How 
far away is Wicket 1.4?


I have a small prototype application built using Wicket 1.2.6. I believe 
that little prototype may soon graduate to a real application, and when 
that happens I'd like it to be using a generified version of Wicket.


/Anders
---
http://ojalgo.org/

Martijn Dashorst wrote:

This is the first release candidate for Apache Wicket we have prepared
for your pleasure. It contains over 80 fixes to issues with previous
releases and todo items we have cleared.

In this announcement:

* Apache Wicket
* This release
* Migrating from 1.2
* Downloading the release
* Validating the release
* Reporting bugs
* The distribution
* Release Notes - Wicket - Version 1.3.0-rc1

Eager people click here to download the distribution, others can read further:

http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1

We thank you for your patience and support.

The Wicket Team

-= Apache Wicket =-

Apache Wicket is a component oriented Java web application framework.
With proper mark-up/logic separation, a POJO data model, and a
refreshing lack of XML, Apache Wicket makes developing web-apps simple
and enjoyable again. Swap the boilerplate, complex debugging and
brittle code for powerful, reusable components written with plain Java
and HTML.

Our migration to a top level project is now completed and you can find
our website and documentation here:

http://wicket.apache.org

-= This release =-

This release is the first in a series of release candidates releases
until we feel confident to finalize Wicket 1.3. This is called a
release candidate because we strive for API freeze. This means only
bug fixes will be done on the 1.3 release from now on.

-= Migrating from 1.2 =-

If you are coming from Wicket 1.2, you really want to read our
migration guide, found on the wiki:

http://cwiki.apache.org/WICKET/migrate-13.html

-= Downloading the release =-

You can download the release from the official Apache mirror system,
and you can find it through the following link:

http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/

For the Maven and Ivy fans out there: update your pom's to the
following, and everything will be downloaded automatically:

dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
version1.3.0-rc1/version
/dependency

Substitute the artifact ID with the projects of your liking to get the
other projects.

Please note that we don't prescribe a Logging implementation for
SLF4J. You need to specify yourself which one you prefer. Read more
about SLF4J here: http://slf4j.org

-= Validating the release =-

The release has been signed by Frank Bille, your release manager for
today. The public key can be found in the KEYS file in the download
area. Download the KEYS file only from the Apache website.

http://www.apache.org/dist/wicket/1.3.0-rc1/KEYS

Instructions on how to validate the release can be found here:

http://www.apache.org/dev/release-signing.html#check-integrity

-= Reporting bugs =-

In case you do encounter a bug, we would appreciate a report in our JIRA:

http://issues.apache.org/jira/browse/WICKET

-= The distribution =-

In the distribution you will find a README. The README contains
instructions on how to build from source yourself and a list of all
things that have been fixed, added and/or removed since the first beta
release.

-= Release Notes - Wicket - Version 1.3.0-rc1 =-

Sub-task

* WICKET-1022 - Created new bug - ValueMap set to null

Bug

* WICKET-330 - CheckBox incorrectly converts its model value when a
custom Boolean converter is installed
* WICKET-336 - Inheritable model cannot be a wrap model
* WICKET-382 - Converter misusage/mangling in RadioChoice
* WICKET-487 - Buggy behaviour in PageMap.access(IPageMapEntry,int). Wicket1.2.4
* WICKET-588 - continueToOriginalDestination /
RestartResponseAtInterceptPageException with page parameters broken
* WICKET-605 - Stateless form skips page parameters
* WICKET-607 - Stateless forms don't work with QueryStringUrlCodingStrategy
* WICKET-642 - Need to escape select html option value
* WICKET-645 - Form with ajaxsubmitbutton won't submit after error
* WICKET-702 - MockWebApplication doesn't redirect  properly to
mounted pages under RestartResponseAtInterceptPageException
* WICKET-734 - Custom ILinkListener component causes error in cell on
mounted page
* WICKET-746 - Thread synchronization problems in FilePageStore
* WICKET-855 - ModalWindow makes Internet Explorer 6 show an security
warning dialog
* WICKET-901 - DatePicker#getConfigureYUIBasePath() is useless or never called
* WICKET-916 - inconsistent state after setting AjaxDebugModeEnabled
to true in an AjaxRequest
* WICKET-920 - ExternalLink produces invalid html
* WICKET-950 - StatelessForm + QueryStringUrlCodingStrategy problem
* WICKET-953 - Session invalidateNow() does not immediate remove the
session from disk
* 

Wicket 1.4 expectations (was Re: Apache Wicket 1.3.0-rc1 released!)

2007-11-12 Thread Gwyn Evans
As I understand it, that's still the plan, but having said that, I'd
not expect to see too much work on a 1.4 until we've got a reasonable
amount of confidence that the released 1.3 is stable, so expect to see
a 1.3.1 before 1.4.  If we jump into 1.4 too quickly, we'll be back to
dual-branch working!

Does generification of the core make that much difference to a user of
the API?  I've been focused on JDK 1.4, so didn't have a change to
look at Wicket 2 in practice.

/Gwyn

On 12/11/2007, Anders Peterson [EMAIL PROTECTED] wrote:
 Thanks, everyone who contributed!

 Is Wicket 1.4 still planned to be a Java 5 version of Wicket 1.3? How
 far away is Wicket 1.4?

 I have a small prototype application built using Wicket 1.2.6. I believe
 that little prototype may soon graduate to a real application, and when
 that happens I'd like it to be using a generified version of Wicket.

 /Anders
 ---
 http://ojalgo.org/

 Martijn Dashorst wrote:
  This is the first release candidate for Apache Wicket we have prepared
  for your pleasure. It contains over 80 fixes to issues with previous
  releases and todo items we have cleared.
...

-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

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



Re: Wicket 1.4 expectations (was Re: Apache Wicket 1.3.0-rc1 released!)

2007-11-12 Thread Anders Peterson

Gwyn Evans wrote:

Does generification of the core make that much difference to a user of
the API?  I've been focused on JDK 1.4, so didn't have a change to
look at Wicket 2 in practice.


Don't want to exaggerate, but once you start using Java 5 you don't want 
to go back and you want all code you use to be up to date.


The Models is probably the part of Wicket that needs generification the 
most.


/Anders




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



Re: Multi-file upload and ListView together

2007-11-12 Thread Igor Vaynberg
did you call listview.setreuseitems(true)

it is usually easier if you provide a quickstart...

-igor


On Nov 12, 2007 7:28 AM, Franklin Antony [EMAIL PROTECTED] wrote:

 Dear Friends,
I am having a problem with putting MultiFileUploadField inside a
 ListView. I am following the example, but somehow the uploads collection is
 not getting populated with the files. However when I directly add the
 MultiFileUploadField  on a form everything seems to work. Could someone
 please shed some light on this.

 Here is some code snippet

 List ls = Arrays.asList(new String[]{Passport });
 ListView pl = new ListView(plist,ls)
 {

 protected void populateItem(ListItem arg0) {


 MultiFileUploadField ff=new 
 MultiFileUploadField(file_input,new
 PropertyModel(this,uploads),3);

 fileUploadList.add(ff);
 fileUpload.add(ff);
 arg0.add(ff);




 }


 };


 And the listview is on a form and the collections(uploads) is on the form to
 just as in the example. I am sure its something with the component
 hierarchy. But not sure how to call the uploads correctly. I think there is
 something wrong with the expression.


 Thanks,
 Franklin
 --
 View this message in context: 
 http://www.nabble.com/Multi-file-upload-and-ListView-together-tf4791788.html#a13707621
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



RE: How to migrate onAfterRender/onBeforeRender from wicket 1.2.6 to 1.3

2007-11-12 Thread rtow

Thanks!


cblehman wrote:
 
 You can also use onRender()
 
 @Override
 protected void onRender()
 {
 getResponse().write(StuffBeforeComponent);
 super.onRender();
 getResponse().write(StuffAfterComponent);
 }
 
 But IComponentBorder will do all that for you...
 
 -Clay
 
 -Original Message-
 From: Johan Compagner [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, November 10, 2007 5:42 AM
 To: users@wicket.apache.org
 Subject: Re: How to migrate onAfterRender/onBeforeRender from wicket
 1.2.6 to 1.3
 
 seee IComponentBorder
 
 On Nov 10, 2007 1:55 AM, rtow [EMAIL PROTECTED] wrote:
 

 Big thanks!  The onComponentTag(tag) is the perfect replacement for
 onBeforeRender().  Do you have suggestion for onAfterRender()?  I
 explained
 that I also have a problem to render onAfterRender() in previous mail.

 rtow



 Johan Compagner wrote:
 
  hmm thats the first case that i see that used the onBeforeRender
 like
  that.
  But what you want is a border around the component see
 IComponentBorder
  or override the onComponentTag(tag);
  that is also called right before the tag is rendered.
 
  johan
 
 
 
  On Nov 10, 2007 12:35 AM, rtow [EMAIL PROTECTED] wrote:
 
 
  In wicket 1.2.6, I have the following and  render fine.
 
 private static class RequiredLabel extends Label
 {
 private static final long serialVersionUID = 1L;
 
 private boolean required;
 
 public RequiredLabel(String id, FormComponent fc)
 {
 super(id, fc);
 this.required = fc.isRequired();
 }
 
 @Override
 protected void onBeforeRender()
 {
 super.onBeforeRender();
 if (this.required)
 getResponse().write(*);
 }
 }
 
  After migrated to wicket 1.3 beta, I overrided the method as
 following:
 
 @Override
 protected void onBeforeRender()
 {
 if (this.required)
 getResponse().write(*);
 super.onBeforeRender();
 }
 
  The red * still render, but at the very top of the page.  A similar
  problem
  for onAfterRender() is that also render, but at the very bottom of
 the
  page.
 
  Thanks for your help!
 
  rtow
  --
  View this message in context:
 

 http://www.nabble.com/How-to-migrate-onAfterRender-onBeforeRender-from-w
 icket-1.2.6-to-1.3-tf4780695.html#a13677169
  Sent from the Wicket - User mailing list archive at
  Nabble.com http://nabble.com/http://nabble.com/
  .
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:

 http://www.nabble.com/How-to-migrate-onAfterRender-onBeforeRender-from-w
 icket-1.2.6-to-1.3-tf4780695.html#a13678135
  Sent from the Wicket - User mailing list archive at
 Nabble.comhttp://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/How-to-migrate-onAfterRender-onBeforeRender-from-wicket-1.2.6-to-1.3-tf4780695.html#a13710599
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: Component.wrap and IChainingModel

2007-11-12 Thread ChuckDeal


Dmitry   Kandalov wrote:
 
 On Thursday 08 November 2007 23:28:40 ChuckDeal wrote:
  Perhaps I didn't get the explanation but why can't you wrap models in
  this order?
 
  AppendingListModel(
      SortingModel(
          HibernateListModel()
      )
  )

 In that order the list would be sorting PRIOR to appending the item,
 which
 could result in an unsorted list.  In the order I specified, the item
 would
 get appeneded and then the sort would take place.
 
 You're right. But if you were not using List you could return SortedSet
 from 
 SortingModel and it would work :)
 

But then I'd be using a Set instead of a List.  DropDownChoice (via
AbstractChoice) expects the choices model to represent a List.

Chuck
-- 
View this message in context: 
http://www.nabble.com/Component.wrap-and-IChainingModel-tf4759201.html#a13710989
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: JPA best-practices?

2007-11-12 Thread Al Maw

Uwe Schäfer wrote:
i plan to use JPA together with Wicket. Are there any battle-proven 
best-practices out there of how to handle EnityManagers and Transactions?


What do other people use (no, not the spring crowd ;) ?

One EntityManager per Request seems to be the obvious idea and a guice 
Provider may help with that. Does anyone have serious experiences with 
that or other suggestions?


Subclass WebRequestCycle, and construct it with an EntityManager.

In onBeginRequest(), create a transaction, storing it in a private variable.

In onEndRequest(), commit the transaction if it hasn't already been 
rolled back and clean up the EntityManager.


In onRuntimeException(...), rollback the transaction and then return 
super.onRuntimeException(...).


You'll need to inject a ProviderEntityManager into your WebApplication 
subclass such that you can call .get() on it when you make your custom 
WebRequestCycle. You'll need to configure that provider in a Guice 
module somewhere, obviously. You should be able to figure that out. ;-)


How do you inject things into your WebApplication? Well, you can use the 
new GuiceWebApplicationFactory, which unfortunately didn't quite make it 
into 1.3.0-rc1 but is in trunk. However, you can copy that class from 
trunk and use it in your own project quite happily - it has no extra 
dependencies.


If you need to integrate with your container-managed JTA transactions 
you'll need something a little different (the container may well start 
and commit the tx for you), but the principle is roughly the same.


Alternatively, you can take Wicket out of the picture and do stuff using 
a ServletFilter (like Spring's OpenEntityManagerInView).


Regards,

Al

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



RE: CAPTCHA clarity in post 1.2.6 releaes

2007-11-12 Thread Jonathan Locke


there are no questions.  the kittens are merged into an image that functions
like an image map.  the robot would be guessing co-ordinates, not
combinations.
the idea is that the robot is going to have to actually recognize kittens in
the image
(from among other animals) and send the server co-ordinates that are inside
the
visible region occupied by the kitten.  this is reasonably hard to do.  i
can make it
almost impossible in a day or two.


Chris Colman wrote:
 
 The trouble is that the answers to the kitten questions usually have a
 small number of possible combinations: 1 - 5 roughly so on average a
 robot may be successful 20% of the time.
 
 thoof.com has a better captcha: select the kittens. I'd love to know
 if it works for them or not.
 
 Martijn
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ResourceReference-with-locale-and-style%2C-for-CSSs-tf4767621.html#a13711516
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: question about HybridUrlCodingStrategy

2007-11-12 Thread Matej Knopp
If the page is stateless, why are you using hybrid url coding strategy
for it? You should just mount it.
Also, even more important thing, is the page really stateless?
Stateless pages don't have versions.
Link is not a stateless component so if you use it on a page, it will
make it statefull.

As for why the locale changes version, I don't know. How does your
link's onClick handler look like?

-Matej

On Nov 12, 2007 6:33 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
 Hi,

 I have a page mounted using the hybrid coding strategy. In the page I
 have a language link, to change the locale in the session (to show
 another language). Now what happens is, I have

 http://mysite/mypage.1.1 (in Dutch)

 click English link

 http://mysite/mypage.1.2 (in English)

 click browser back button

 http://mysite/mypage.1.1 (in Dutch)

 click browser reload button

 http://mysite/mypage.1.1 (in English!)

 I was wondering if I could make it switch language without changing the
 page version, since it seems that it makes no difference anyhow: the
 language is determined by the session and not by the page version (as
 proved by the reload above).

 Furthermore, the page is *stateless*, so I was wondering how I could
 keep it that way even with the language link. The problem is that the
 language link is in the base page and knows nothing about the real page
 (if it's bookmarkable, mounted, etc). I currently use a Link and just
 set the locale on the web session...

 Regards,
 Sebastiaan


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



Re: question about HybridUrlCodingStrategy

2007-11-12 Thread Sebastiaan van Erk

Hi,

Thanks for the reply!

Actually, in some cases the page is not stateless all the time (which is 
why I use that strategy), i.e. it starts out on a stateless form. 
Another reason why I use it on non-stateless pages is because the URL 
looks so much better. ;-)


Anyway, I do use Link, so yes that would make it stateful I guess. I 
would like to do it in a non-stateful manner, but I don't really know 
how. Currently my ChangeLocaleLink looks like this:


public class ChangeLocaleLink extends Link {

private final Locale locale;

public ChangeLocaleLink(final String id, final Locale locale) {
super(id);
this.locale = locale;
		add(new ContextImage(flagImage, new Model(images/flag_ + locale + 
.gif)));

}

@Override
public void onClick() {
getSession().setLocale(locale);
}

@Override
public boolean isEnabled() {
return getSession().getLocale() != locale;
}

}

Regards,
Sebastiaan

Matej Knopp wrote:

If the page is stateless, why are you using hybrid url coding strategy
for it? You should just mount it.
Also, even more important thing, is the page really stateless?
Stateless pages don't have versions.
Link is not a stateless component so if you use it on a page, it will
make it statefull.

As for why the locale changes version, I don't know. How does your
link's onClick handler look like?

-Matej

On Nov 12, 2007 6:33 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

Hi,

I have a page mounted using the hybrid coding strategy. In the page I
have a language link, to change the locale in the session (to show
another language). Now what happens is, I have

http://mysite/mypage.1.1 (in Dutch)

click English link

http://mysite/mypage.1.2 (in English)

click browser back button

http://mysite/mypage.1.1 (in Dutch)

click browser reload button

http://mysite/mypage.1.1 (in English!)

I was wondering if I could make it switch language without changing the
page version, since it seems that it makes no difference anyhow: the
language is determined by the session and not by the page version (as
proved by the reload above).

Furthermore, the page is *stateless*, so I was wondering how I could
keep it that way even with the language link. The problem is that the
language link is in the base page and knows nothing about the real page
(if it's bookmarkable, mounted, etc). I currently use a Link and just
set the locale on the web session...

Regards,
Sebastiaan



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



smime.p7s
Description: S/MIME Cryptographic Signature


RE: CAPTCHA clarity in post 1.2.6 releaes

2007-11-12 Thread Jonathan Locke


http://web.mac.com/jonathan.locke/iWeb/JonathanLocke/Blog/CA4A74A0-820C-4FDF-BF65-F4C14754D13E.html


Chris Colman wrote:
 
 The trouble is that the answers to the kitten questions usually have a
 small number of possible combinations: 1 - 5 roughly so on average a
 robot may be successful 20% of the time.
 
 thoof.com has a better captcha: select the kittens. I'd love to know
 if it works for them or not.
 
 Martijn
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ResourceReference-with-locale-and-style%2C-for-CSSs-tf4767621.html#a13712454
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Label: Render HTML content from String

2007-11-12 Thread Francisco Diaz Trepat - gmail
Hi, I have a Label who's model maight come with markup for bold italic,
bullets, etc. (e.g. bThis/b is a iMessage/i)

Obviously I get bThis/b is a iMessage/i rendered.

Is there a way to get the label to render:

*This* is a *Message*

thanks,
f(t)


Re: Label: Render HTML content from String

2007-11-12 Thread Martijn Dashorst
this should get what you want:
add(new Label(foo, text.replaceAll(b, *)
.replaceAll(/b, *)
.replaceAll(i, *)
.replaceAll(/i, *)));

Martijn

On 11/12/07, Francisco Diaz Trepat - gmail
[EMAIL PROTECTED] wrote:
 Hi, I have a Label who's model maight come with markup for bold italic,
 bullets, etc. (e.g. bThis/b is a iMessage/i)

 Obviously I get bThis/b is a iMessage/i rendered.

 Is there a way to get the label to render:

 *This* is a *Message*

 thanks,
 f(t)



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

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



Re: Wicket Portlets in Liferay

2007-11-12 Thread Ate Douma

Thijs wrote:

I'm trying to get wicket portlets to work in Liferay.

As fas as I can tell there are at least 2 issues at the moment:
1.) A nullpointer exception in WebResponse due to an issue in de Liferay
code that returns null in the encodeRedirectUrl (see
http://www.liferay.com/web/guest/community/forums/message_boards/message/249501
)

To answer a question on the liferay forum I need to know why the
encodeRedirectUrl is called. I think this is because of the
REDIRECT_TO_RENDER setting done by the WicketFilterPortletContext. But can
somebody confirm that?!

Hi Thijs,

I've looked a bit deeper into this issue and it turned out that this is (or 
was) a JSR-168 conformance problem indeed.
On Jetspeed-2 this didn't really cause any problems as we are more relaxed on this specific issue (in the end, redirects during rendering are not and will not 
ever be possible so allowing encoding doesn't hurt either).

But clearly this needed to be resolved independently of Jetspeed, so I've 
created a new issue, https://issues.apache.org/jira/browse/WICKET-1155, as well 
as
already resolved it :)
Please do check if this now works for you too.




2.) https://issues.apache.org/jira/browse/WICKET-1132
I have no clue what causes this issue or where to look. Can somebody give me
a push in the right direction? 

For this one, I really don't have a clue.
You'll probably need a Liferay expert here as this goes into the internal url 
handling of the Liferay portlet container and is beyond Wicket itself.

Regards,

Ate








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



Re: Label: Render HTML content from String

2007-11-12 Thread Sebastiaan van Erk

Hehe, nasty! :-)

I suggest doing it in one replaceAll though:

text.replaceAll([^]*, *)

This has the added benefit of correctly treating unexpected and as yet 
unknown tags, and thus is more future proof!


Regards,
Sebastiaan

Martijn Dashorst wrote:

this should get what you want:
add(new Label(foo, text.replaceAll(b, *)
.replaceAll(/b, *)
.replaceAll(i, *)
.replaceAll(/i, *)));

Martijn

On 11/12/07, Francisco Diaz Trepat - gmail
[EMAIL PROTECTED] wrote:

Hi, I have a Label who's model maight come with markup for bold italic,
bullets, etc. (e.g. bThis/b is a iMessage/i)

Obviously I get bThis/b is a iMessage/i rendered.

Is there a way to get the label to render:

*This* is a *Message*

thanks,
f(t)






smime.p7s
Description: S/MIME Cryptographic Signature


Re: Label: Render HTML content from String

2007-11-12 Thread Dmitry Kandalov
On Monday 12 November 2007 23:40:51 Francisco Diaz Trepat - gmail wrote:
 Hi, I have a Label who's model maight come with markup for bold italic,
 bullets, etc. (e.g. bThis/b is a iMessage/i)

 Obviously I get bThis/b is a iMessage/i rendered.

 Is there a way to get the label to render:

 *This* is a *Message*

Hm.. just in case you wanted label look bold and italic you can use 
label.setEscapeModelStrings(false)


Dima

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



Re: Label: Render HTML content from String

2007-11-12 Thread Francisco Diaz Trepat - gmail
It seams the formatted message I set didn't show well.

I want to (as the subject says) Render HTML content from the String.

Is there a way to get the label to render:

*This* is a *Message* [this line here and in the original message is
formatted with bold and italics]

On Nov 12, 2007 5:02 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

 Hehe, nasty! :-)

 I suggest doing it in one replaceAll though:

 text.replaceAll([^]*, *)

 This has the added benefit of correctly treating unexpected and as yet
 unknown tags, and thus is more future proof!

 Regards,
 Sebastiaan

 Martijn Dashorst wrote:
  this should get what you want:
  add(new Label(foo, text.replaceAll(b, *)
  .replaceAll(/b, *)
  .replaceAll(i, *)
  .replaceAll(/i, *)));
 
  Martijn
 
  On 11/12/07, Francisco Diaz Trepat - gmail
  [EMAIL PROTECTED] wrote:
  Hi, I have a Label who's model maight come with markup for bold italic,
  bullets, etc. (e.g. bThis/b is a iMessage/i)
 
  Obviously I get bThis/b is a iMessage/i rendered.
 
  Is there a way to get the label to render:
 
  *This* is a *Message*
 
  thanks,
  f(t)
 
 
 



Re: Apache Wicket 1.3.0-rc1 released!

2007-11-12 Thread Johan Compagner
yes after 1.3 there will be a java 5 version. Still not really know what we
will call it (1.4,1.5 or 2.0)

First finish the 1.3 release then there could be a first alpha/beta version
with generircs pretty fast.

johan



On Nov 12, 2007 5:35 PM, Anders Peterson [EMAIL PROTECTED]
wrote:

 Thanks, everyone who contributed!

 Is Wicket 1.4 still planned to be a Java 5 version of Wicket 1.3? How
 far away is Wicket 1.4?

 I have a small prototype application built using Wicket 1.2.6. I believe
 that little prototype may soon graduate to a real application, and when
 that happens I'd like it to be using a generified version of Wicket.

 /Anders
 ---
 http://ojalgo.org/

 Martijn Dashorst wrote:
  This is the first release candidate for Apache Wicket we have prepared
  for your pleasure. It contains over 80 fixes to issues with previous
  releases and todo items we have cleared.
 
  In this announcement:
 
  * Apache Wicket
  * This release
  * Migrating from 1.2
  * Downloading the release
  * Validating the release
  * Reporting bugs
  * The distribution
  * Release Notes - Wicket - Version 1.3.0-rc1
 
  Eager people click here to download the distribution, others can read
 further:
 
  http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1
 
  We thank you for your patience and support.
 
  The Wicket Team
 
  -= Apache Wicket =-
 
  Apache Wicket is a component oriented Java web application framework.
  With proper mark-up/logic separation, a POJO data model, and a
  refreshing lack of XML, Apache Wicket makes developing web-apps simple
  and enjoyable again. Swap the boilerplate, complex debugging and
  brittle code for powerful, reusable components written with plain Java
  and HTML.
 
  Our migration to a top level project is now completed and you can find
  our website and documentation here:
 
  http://wicket.apache.org
 
  -= This release =-
 
  This release is the first in a series of release candidates releases
  until we feel confident to finalize Wicket 1.3. This is called a
  release candidate because we strive for API freeze. This means only
  bug fixes will be done on the 1.3 release from now on.
 
  -= Migrating from 1.2 =-
 
  If you are coming from Wicket 1.2, you really want to read our
  migration guide, found on the wiki:
 
  http://cwiki.apache.org/WICKET/migrate-13.html
 
  -= Downloading the release =-
 
  You can download the release from the official Apache mirror system,
  and you can find it through the following link:
 
  http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/
 
  For the Maven and Ivy fans out there: update your pom's to the
  following, and everything will be downloaded automatically:
 
  dependency
  groupIdorg.apache.wicket/groupId
  artifactIdwicket/artifactId
  version1.3.0-rc1/version
  /dependency
 
  Substitute the artifact ID with the projects of your liking to get the
  other projects.
 
  Please note that we don't prescribe a Logging implementation for
  SLF4J. You need to specify yourself which one you prefer. Read more
  about SLF4J here: http://slf4j.org
 
  -= Validating the release =-
 
  The release has been signed by Frank Bille, your release manager for
  today. The public key can be found in the KEYS file in the download
  area. Download the KEYS file only from the Apache website.
 
  http://www.apache.org/dist/wicket/1.3.0-rc1/KEYS
 
  Instructions on how to validate the release can be found here:
 
  http://www.apache.org/dev/release-signing.html#check-integrity
 
  -= Reporting bugs =-
 
  In case you do encounter a bug, we would appreciate a report in our
 JIRA:
 
  http://issues.apache.org/jira/browse/WICKET
 
  -= The distribution =-
 
  In the distribution you will find a README. The README contains
  instructions on how to build from source yourself and a list of all
  things that have been fixed, added and/or removed since the first beta
  release.
 
  -= Release Notes - Wicket - Version 1.3.0-rc1 =-
 
  Sub-task
 
  * WICKET-1022 - Created new bug - ValueMap set to null
 
  Bug
 
  * WICKET-330 - CheckBox incorrectly converts its model value when a
  custom Boolean converter is installed
  * WICKET-336 - Inheritable model cannot be a wrap model
  * WICKET-382 - Converter misusage/mangling in RadioChoice
  * WICKET-487 - Buggy behaviour in PageMap.access(IPageMapEntry,int).
 Wicket1.2.4
  * WICKET-588 - continueToOriginalDestination /
  RestartResponseAtInterceptPageException with page parameters broken
  * WICKET-605 - Stateless form skips page parameters
  * WICKET-607 - Stateless forms don't work with
 QueryStringUrlCodingStrategy
  * WICKET-642 - Need to escape select html option value
  * WICKET-645 - Form with ajaxsubmitbutton won't submit after error
  * WICKET-702 - MockWebApplication doesn't redirect  properly to
  mounted pages under RestartResponseAtInterceptPageException
  * WICKET-734 - Custom ILinkListener component causes error in cell on
  mounted page
  * WICKET-746 - Thread 

Re: Wicket Portlets in Liferay

2007-11-12 Thread Thijs

Ate,  your the man :)

I'll try to dive into the parameter problem this week.

Thnx

Thijs

Ate Douma wrote:

Thijs wrote:

I'm trying to get wicket portlets to work in Liferay.

As fas as I can tell there are at least 2 issues at the moment:
1.) A nullpointer exception in WebResponse due to an issue in de Liferay
code that returns null in the encodeRedirectUrl (see
http://www.liferay.com/web/guest/community/forums/message_boards/message/249501 


)

To answer a question on the liferay forum I need to know why the
encodeRedirectUrl is called. I think this is because of the
REDIRECT_TO_RENDER setting done by the WicketFilterPortletContext. 
But can

somebody confirm that?!

Hi Thijs,

I've looked a bit deeper into this issue and it turned out that this 
is (or was) a JSR-168 conformance problem indeed.
On Jetspeed-2 this didn't really cause any problems as we are more 
relaxed on this specific issue (in the end, redirects during rendering 
are not and will not ever be possible so allowing encoding doesn't 
hurt either).
But clearly this needed to be resolved independently of Jetspeed, so 
I've created a new issue, 
https://issues.apache.org/jira/browse/WICKET-1155, as well as

already resolved it :)
Please do check if this now works for you too.




2.) https://issues.apache.org/jira/browse/WICKET-1132
I have no clue what causes this issue or where to look. Can somebody 
give me
a push in the right direction? 

For this one, I really don't have a clue.
You'll probably need a Liferay expert here as this goes into the 
internal url handling of the Liferay portlet container and is beyond 
Wicket itself.


Regards,

Ate








-
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: Apache Wicket 1.3.0-rc1 released!

2007-11-12 Thread mathias axelsson
Mmmm... Generics


Thanks alot for a great framework!


On Nov 12, 2007 7:33 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 yes after 1.3 there will be a java 5 version. Still not really know what we
 will call it (1.4,1.5 or 2.0)

 First finish the 1.3 release then there could be a first alpha/beta version
 with generircs pretty fast.

 johan



 On Nov 12, 2007 5:35 PM, Anders Peterson [EMAIL PROTECTED]
 wrote:


  Thanks, everyone who contributed!
 
  Is Wicket 1.4 still planned to be a Java 5 version of Wicket 1.3? How
  far away is Wicket 1.4?
 
  I have a small prototype application built using Wicket 1.2.6. I believe
  that little prototype may soon graduate to a real application, and when
  that happens I'd like it to be using a generified version of Wicket.
 
  /Anders
  ---
  http://ojalgo.org/
 
  Martijn Dashorst wrote:
   This is the first release candidate for Apache Wicket we have prepared
   for your pleasure. It contains over 80 fixes to issues with previous
   releases and todo items we have cleared.
  
   In this announcement:
  
   * Apache Wicket
   * This release
   * Migrating from 1.2
   * Downloading the release
   * Validating the release
   * Reporting bugs
   * The distribution
   * Release Notes - Wicket - Version 1.3.0-rc1
  
   Eager people click here to download the distribution, others can read
  further:
  
   http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1
  
   We thank you for your patience and support.
  
   The Wicket Team
  
   -= Apache Wicket =-
  
   Apache Wicket is a component oriented Java web application framework.
   With proper mark-up/logic separation, a POJO data model, and a
   refreshing lack of XML, Apache Wicket makes developing web-apps simple
   and enjoyable again. Swap the boilerplate, complex debugging and
   brittle code for powerful, reusable components written with plain Java
   and HTML.
  
   Our migration to a top level project is now completed and you can find
   our website and documentation here:
  
   http://wicket.apache.org
  
   -= This release =-
  
   This release is the first in a series of release candidates releases
   until we feel confident to finalize Wicket 1.3. This is called a
   release candidate because we strive for API freeze. This means only
   bug fixes will be done on the 1.3 release from now on.
  
   -= Migrating from 1.2 =-
  
   If you are coming from Wicket 1.2, you really want to read our
   migration guide, found on the wiki:
  
   http://cwiki.apache.org/WICKET/migrate-13.html
  
   -= Downloading the release =-
  
   You can download the release from the official Apache mirror system,
   and you can find it through the following link:
  
   http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/
  
   For the Maven and Ivy fans out there: update your pom's to the
   following, and everything will be downloaded automatically:
  
   dependency
   groupIdorg.apache.wicket/groupId
   artifactIdwicket/artifactId
   version1.3.0-rc1/version
   /dependency
  
   Substitute the artifact ID with the projects of your liking to get the
   other projects.
  
   Please note that we don't prescribe a Logging implementation for
   SLF4J. You need to specify yourself which one you prefer. Read more
   about SLF4J here: http://slf4j.org
  
   -= Validating the release =-
  
   The release has been signed by Frank Bille, your release manager for
   today. The public key can be found in the KEYS file in the download
   area. Download the KEYS file only from the Apache website.
  
   http://www.apache.org/dist/wicket/1.3.0-rc1/KEYS
  
   Instructions on how to validate the release can be found here:
  
   http://www.apache.org/dev/release-signing.html#check-integrity
  
   -= Reporting bugs =-
  
   In case you do encounter a bug, we would appreciate a report in our
  JIRA:
  
   http://issues.apache.org/jira/browse/WICKET
  
   -= The distribution =-
  
   In the distribution you will find a README. The README contains
   instructions on how to build from source yourself and a list of all
   things that have been fixed, added and/or removed since the first beta
   release.
  
   -= Release Notes - Wicket - Version 1.3.0-rc1 =-
  
   Sub-task
  
   * WICKET-1022 - Created new bug - ValueMap set to null
  
   Bug
  
   * WICKET-330 - CheckBox incorrectly converts its model value when a
   custom Boolean converter is installed
   * WICKET-336 - Inheritable model cannot be a wrap model
   * WICKET-382 - Converter misusage/mangling in RadioChoice
   * WICKET-487 - Buggy behaviour in PageMap.access(IPageMapEntry,int).
  Wicket1.2.4
   * WICKET-588 - continueToOriginalDestination /
   RestartResponseAtInterceptPageException with page parameters broken
   * WICKET-605 - Stateless form skips page parameters
   * WICKET-607 - Stateless forms don't work with
  QueryStringUrlCodingStrategy
   * WICKET-642 - Need to escape select html option value
   * WICKET-645 - Form with ajaxsubmitbutton won't 

RE: Apache Wicket 1.3.0-rc1 released!

2007-11-12 Thread William Hoover
+1 GENERICS!!!

-Original Message-
From: mathias axelsson [mailto:[EMAIL PROTECTED]
Sent: Monday, November 12, 2007 5:35 PM
To: users@wicket.apache.org
Subject: Re: Apache Wicket 1.3.0-rc1 released!


Mmmm... Generics


Thanks alot for a great framework!


On Nov 12, 2007 7:33 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 yes after 1.3 there will be a java 5 version. Still not really know what we
 will call it (1.4,1.5 or 2.0)

 First finish the 1.3 release then there could be a first alpha/beta version
 with generircs pretty fast.

 johan



 On Nov 12, 2007 5:35 PM, Anders Peterson [EMAIL PROTECTED]
 wrote:


  Thanks, everyone who contributed!
 
  Is Wicket 1.4 still planned to be a Java 5 version of Wicket 1.3? How
  far away is Wicket 1.4?
 
  I have a small prototype application built using Wicket 1.2.6. I believe
  that little prototype may soon graduate to a real application, and when
  that happens I'd like it to be using a generified version of Wicket.
 
  /Anders
  ---
  http://ojalgo.org/
 
  Martijn Dashorst wrote:
   This is the first release candidate for Apache Wicket we have prepared
   for your pleasure. It contains over 80 fixes to issues with previous
   releases and todo items we have cleared.
  
   In this announcement:
  
   * Apache Wicket
   * This release
   * Migrating from 1.2
   * Downloading the release
   * Validating the release
   * Reporting bugs
   * The distribution
   * Release Notes - Wicket - Version 1.3.0-rc1
  
   Eager people click here to download the distribution, others can read
  further:
  
   http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1
  
   We thank you for your patience and support.
  
   The Wicket Team
  
   -= Apache Wicket =-
  
   Apache Wicket is a component oriented Java web application framework.
   With proper mark-up/logic separation, a POJO data model, and a
   refreshing lack of XML, Apache Wicket makes developing web-apps simple
   and enjoyable again. Swap the boilerplate, complex debugging and
   brittle code for powerful, reusable components written with plain Java
   and HTML.
  
   Our migration to a top level project is now completed and you can find
   our website and documentation here:
  
   http://wicket.apache.org
  
   -= This release =-
  
   This release is the first in a series of release candidates releases
   until we feel confident to finalize Wicket 1.3. This is called a
   release candidate because we strive for API freeze. This means only
   bug fixes will be done on the 1.3 release from now on.
  
   -= Migrating from 1.2 =-
  
   If you are coming from Wicket 1.2, you really want to read our
   migration guide, found on the wiki:
  
   http://cwiki.apache.org/WICKET/migrate-13.html
  
   -= Downloading the release =-
  
   You can download the release from the official Apache mirror system,
   and you can find it through the following link:
  
   http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/
  
   For the Maven and Ivy fans out there: update your pom's to the
   following, and everything will be downloaded automatically:
  
   dependency
   groupIdorg.apache.wicket/groupId
   artifactIdwicket/artifactId
   version1.3.0-rc1/version
   /dependency
  
   Substitute the artifact ID with the projects of your liking to get the
   other projects.
  
   Please note that we don't prescribe a Logging implementation for
   SLF4J. You need to specify yourself which one you prefer. Read more
   about SLF4J here: http://slf4j.org
  
   -= Validating the release =-
  
   The release has been signed by Frank Bille, your release manager for
   today. The public key can be found in the KEYS file in the download
   area. Download the KEYS file only from the Apache website.
  
   http://www.apache.org/dist/wicket/1.3.0-rc1/KEYS
  
   Instructions on how to validate the release can be found here:
  
   http://www.apache.org/dev/release-signing.html#check-integrity
  
   -= Reporting bugs =-
  
   In case you do encounter a bug, we would appreciate a report in our
  JIRA:
  
   http://issues.apache.org/jira/browse/WICKET
  
   -= The distribution =-
  
   In the distribution you will find a README. The README contains
   instructions on how to build from source yourself and a list of all
   things that have been fixed, added and/or removed since the first beta
   release.
  
   -= Release Notes - Wicket - Version 1.3.0-rc1 =-
  
   Sub-task
  
   * WICKET-1022 - Created new bug - ValueMap set to null
  
   Bug
  
   * WICKET-330 - CheckBox incorrectly converts its model value when a
   custom Boolean converter is installed
   * WICKET-336 - Inheritable model cannot be a wrap model
   * WICKET-382 - Converter misusage/mangling in RadioChoice
   * WICKET-487 - Buggy behaviour in PageMap.access(IPageMapEntry,int).
  Wicket1.2.4
   * WICKET-588 - continueToOriginalDestination /
   RestartResponseAtInterceptPageException with page parameters broken
   * WICKET-605 - Stateless form skips 

RE: JPA best-practices?

2007-11-12 Thread Chris Colman
 Chris Colman schrieb:
 
  The obvious benefit in such an approach is that your POJO model and the
  services that you provide to implement business rules etc., remain
  completely portable to different persistence engines - ie., no vendor
  lock in.
 
 well, i thought that was JPA was all about !?

No, definitely not! JPA was all about creating a standard that Hibernate could 
conform to. Remember there *already* was a standard for Java persistence: JDO. 
JDO implementations such as JPOX and others implement both JDO (obviously) and 
JPA but it is not possible for Hibernate to provide all the features of JDO and 
so it could never implement the JDO standard - hence a less powerful standard 
had to be created so that Hibernate could play the standards game. 

Enough of the history lesson already ;)

  As well as wrapping the various persistence engines it also provides
  dependency injection without resorting to separate XML/bean mania - it's
  all done very quickly and concisely and automatically in Java -
 
 Thanks, that´s what guice is great for, and it is really neatly
 integrated with wicket.

Yes, exPOJO and guice are great alternatives to a heavyweight and XML based 
approach like Spring.

exPOJO, being a lightweight implementation of the exposed POJO domain model 
pattern has the benefit of making it easy to port apps between Hibernate,  JDO 
and JPA without changing any of your model code or 'Service' classes. You only 
need to implement an engine specific Repository class as repositories are the 
only classes that contain engine specific API calls - ie., mainly the queries.

If the slow performance of Hibernate's reflection based dirty state checking 
on large object graphs has you worried then you can quickly change your 
underlying persistence engine over to a byte code enhanced solution, like for 
example JPOX, with the lightning fast dirty state checking and other 
performance gains that brings.

 
  http://expojo.com
 
 I´ll take a look anyway, thanks.
 
 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
 
 
 -
 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: JPA best-practices?

2007-11-12 Thread Chris Colman
 Evan Chooly wrote:
 
  Do you know if theres any plans on making a maven2 archetype for
 qwicket?
 
  That's a definite feature i plan on adding as soon as I can.  As a
  noted maven hater, though, it'll take some time and libations to
help
  me swallow my pride.  :)
 
 
 Good luck! Archetypes are really a pain, because of the template text
 strings in the source that keep them from compiling in place, so
they're
 hard to code, test, and maintain. I just abandoned mine.

 People can almost as easily rename classes and packages after the
fact, I've rationalized.
 

Alleluia brother - I hear what you're saying! Whoever decided declaring
stuff in type safe, compile time checked Java was hard? I've certainly
never found writing or updating Java classes hard - probably because
that's what I do every day!

Give me Java config over XML config any day.

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



Serialization of pages in a cluster/load-balancer environment ?

2007-11-12 Thread mfs

Hi Guys,

Another question relating to the serialization of pages, so lets say we have
multiple instance of an application deployed in a load-balancing
environment, now lets stay in case of wizard type use-case if subsequent
requests get forwarded to different server (based on load sharing), would
the serialized page-components and the model data be synchronized to the
other servers in the cluster ? given the default implementation of the
page-store..? how would that work ?

Thanks and Regards,

Farhan.
-- 
View this message in context: 
http://www.nabble.com/Serialization-of-pages-in-a-cluster-load-balancer-environment---tf4795023.html#a13717677
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: Problem with DefaultDataTable filtering?

2007-11-12 Thread Nick Heudecker
Found the problem - I had two FilterToolbars associated with the same
FilterForm.  The second FilterToolbar was clobbering the value set by the
first.  Removing the second FilterToolbar corrected the problem.

On Nov 12, 2007 7:34 PM, Nick Heudecker [EMAIL PROTECTED] wrote:

 Since updating to Wicket 1.3RC1 it appears that updates to the filter
 columns aren't getting set.  For instance, if enter a first name into a text
 field filter column, the value I enter isn't passed through to the
 DataProvider implementation.

 Is anyone else seeing odd behavior in the DataTable/DataProvider classes?
 I know the API changed between 1.3beta3 and RC1, which seems to have
 helped introduce the problem I'm having.

 Any information is appreciated.  Thanks.

 -Nick



Re: Serialization of pages in a cluster/load-balancer environment ?

2007-11-12 Thread mfs

I am talking of the scenario where the old page instances (and their model)
are serialized to the disk ? how would those be synchronised on the other
machine/server in the cluster ?

Farhan.


igor.vaynberg wrote:
 
 wicket stores its pages in session, so if your sessions are replicated
 within the cluster you should have no problem
 
 -igor
 
 
 On Nov 12, 2007 4:42 PM, mfs [EMAIL PROTECTED] wrote:

 Hi Guys,

 Another question relating to the serialization of pages, so lets say we
 have
 multiple instance of an application deployed in a load-balancing
 environment, now lets stay in case of wizard type use-case if subsequent
 requests get forwarded to different server (based on load sharing), would
 the serialized page-components and the model data be synchronized to the
 other servers in the cluster ? given the default implementation of the
 page-store..? how would that work ?

 Thanks and Regards,

 Farhan.
 --
 View this message in context:
 http://www.nabble.com/Serialization-of-pages-in-a-cluster-load-balancer-environment---tf4795023.html#a13717677
 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/Serialization-of-pages-in-a-cluster-load-balancer-environment---tf4795023.html#a13718547
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: Problem with DefaultDataTable filtering?

2007-11-12 Thread anita nichols
Please unsubscribe


Re: Wicket runtime Exception

2007-11-12 Thread tbt

Hi

It is a ListView
But I haven't called setReuseItems()

The radio buttons are dynamic and replaced each time the page is loaded but
this exception is thrown rarely.


Johan Compagner wrote:
 
 is that a listview?
 do you have called setReuseItems() ?
 
 else the radio's are constantly replaced with new once and that could be
 the
 problem
 
 On Nov 12, 2007 10:31 AM, tbt [EMAIL PROTECTED] wrote:
 

 Hi

 Here is the code that uses RadioGroup


 public class RadioListView extends ListView
 {
/**
 *
 */
private static final long serialVersionUID = 1L;

//private static Logger log =
 Logger.getLogger(RadioListView.class.getName());

public RadioListView(String id,ArrayListOptionBean
 optionList,PaperModel
 paperModel)
{
super(id,optionList);
}

@Override
protected void populateItem(ListItem item)
{
final OptionBean optionBean = (OptionBean)
 item.getModelObject();
Radio radioButton = new TextRadio(radio,new Model( +
 optionBean.getOptionId()),optionBean.getOptionId());
item.add(radioButton);
Label radioLabel = new Label(radioValue,
 optionBean.getOptionText());
item.add(radioLabel);
if(optionBean.getOptionText() != null 
 .equals(optionBean.getOptionText()))
{
radioLabel.setVisible(false);
}
else
{
radioLabel.setVisible(true);
}
WebComponent imageLabel = new
 TextImage(imageLabel,optionBean.getOptionImage());
item.add(imageLabel);
if(optionBean.getOptionImage() != null 
 .equals(optionBean.getOptionImage()))
{
imageLabel.setVisible(false);
}
else
{
imageLabel.setVisible(true);
 }
}


 }

 msc65jap wrote:
 
  Hello,
 
  Please send your code.
 
  J.
 
  On Nov 9, 2007 9:48 AM, tbt [EMAIL PROTECTED] wrote:
 
  Hi
 
  I'm a newbie to wicket and i'm using RadioGroup in my application. But
  sometimes it gives the following runtime exception
 
  ERROR (RequestCycle.java:1043) - submitted http post value [radio0]
 for
  RadioGroup component [27:paperForm:panel:radioGroup] is illegal
 because
  it
  does not contain relative path to a Radio componnet. Due to this the
  RadioGroup component cannot resolve the selected Radio component
 pointed
  to
  by the illegal value. A possible reason is that componment hierarchy
  changed
  between rendering and form submission.
  wicket.WicketRuntimeException: submitted http post value [radio0] for
  RadioGroup component [27:paperForm:panel:radioGroup] is illegal
 because
  it
  does not contain relative path to a Radio componnet. Due to this the
  RadioGroup component cannot resolve the selected Radio component
 pointed
  to
  by the illegal value. A possible reason is that componment hierarchy
  changed
  between rendering and form submission.
  at
  wicket.markup.html.form.RadioGroup.convertValue(RadioGroup.java:102)
  at
  wicket.markup.html.form.FormComponent.convert(FormComponent.java:878)
  at wicket.markup.html.form.Form$14.validate(Form.java:983)
  at
  wicket.markup.html.form.Form$ValidationVisitor.formComponent(Form.java
 :144)
  at wicket.markup.html.form.Form$4.component(Form.java:459)
  at wicket.MarkupContainer.visitChildren(MarkupContainer.java
 :744)
  at wicket.MarkupContainer.visitChildren(MarkupContainer.java
 :759)
  at
  wicket.markup.html.form.Form.visitFormComponents(Form.java:455)
  at wicket.markup.html.form.Form.validateConversion(Form.java
 :979)
  at wicket.markup.html.form.Form.validate(Form.java:953)
  at wicket.markup.html.form.Form.process(Form.java:867)
  at wicket.markup.html.form.Form.onFormSubmitted(Form.java:310)
  at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown
 Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
  Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at
  wicket.RequestListenerInterface.invoke(RequestListenerInterface.java
 :163)
  at
 
 wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents
 (ListenerInterfaceRequestTarget.java:74)
  at
  wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
 DefaultEventProcessorStrategy.java:65)
  at
 
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents
 (AbstractCompoundRequestCycleProcessor.java:57)
  at
  wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:896)
  at
  wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
  at wicket.RequestCycle.step(RequestCycle.java:1010)
  

Search Form and Search List on one page

2007-11-12 Thread Joshua Jackson
Dear all,

Is it possible to have a Page with Search Form and Search List on the same Page?

It seems that the List object that is retrieved from onSubmit() is not
updated to my DataView that lies inside the Page constructor. Or is
there anyway I can have something like afterRender after the button is
submitted or something? I'm quite confused regarding how everything
works here.

Does anyone has a solution for having search form and search list on one page?

Thanks in advance

-- 
What you want today, may not exist tommorrow

Blog: http://joshuajava.wordpress.com/

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



Re: Enable and Disable using Ajax

2007-11-12 Thread Timo Rantalaiho
On Thu, 08 Nov 2007, Toscano wrote:
  IModel regionModelChoices = new AbstractReadOnlyModel()
 {
 public Object getObject(Component component)
 {
if (professionalInfo.getCountryWork()!=null)
  regions =
 getRegionDaoInterface().getRegions(professionalInfo.getCountryWork().getCountryID());

You could extract a method of that monster :)
For example private boolean selectedCountryHasRegions(), or
even professionalInfo.getCountryWork().hasRegions(getRegionDao());

   if (regions.size()==0)
regionWork.setEnabled(false);
else
regionWork.setEnabled(true);

And instead of testing for size == 0 call isEmpty(), and the
formatting here is kind of unconventional as well (Eclipse
3.3 has the nice new possibility of adding Save actions such
as reformat code).

   regionWork  = new DropDownChoice(regionWork, new Model(),
 regionModelChoices,
   new ChoiceRenderer(regionName, regionID));
   regionWork.setOutputMarkupId(true);A

regionWork = new DropDownChoice(...) {
@Override
public boolean isEnabled() {
return selectedCountryHasRegions();
}

or it it doesn't work

regionWork = new DropDownChoice(...) {
@Override
public void onBeforeRender() {
super.onBeforeRender();
setEnabled(selectedCountryHasRegions());
}

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: Enable and Disable using Ajax

2007-11-12 Thread Toscano

Hi again,

That works fine for me! Now I understand how it should be.

Thank you very very much,
Oskar



Dmitry   Kandalov wrote:
 
 On Friday 09 November 2007 12:24:12 Dmitry Kandalov wrote:
 Probably that is because this component is already rendered.
 
 I mean the component has been already checked for being enabled :)
 
 
 Dima
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Enable-and-Disable-using-Ajax-tf4776221.html#a13719466
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: Change css-class of form on validation

2007-11-12 Thread Timo Rantalaiho
On Fri, 09 Nov 2007, BatiB80 wrote:
 example: myfield.add(new AttributeModifier(class, getClassValue());

myfield.add(new RedIfInvalid(myfield));

public class RedIfInvalid extends AttributeModifier() {
private final FormComponent component;

public RedIfInvalid(FormComponent component) {
super(class, true, new AbstractReadOnlyModel() {
@Override
public Object getObject() {
if (component.isValid() {
return green;
}
return red;
}
}
this.component = component;
}
}

Or something like that. 

It's a bit tricky if you want to make it work on ajax (e.g.
with OnChangeAjaxBehavior, I think you have to explicitly
call validate() or something), but very cool :)

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: Strange behavior with DropDownChoice and PropertyModel

2007-11-12 Thread Timo Rantalaiho
On Fri, 09 Nov 2007, Pills wrote:
 public void edit(MyClass l) {
  [...]
 
 shops.modelChanging();
 formTarget.setShops(l.getShops());
 shops.modelChanged();
 
  [...]

What's the point of this method?

And why is it calling modelChanging and modelChanged? I think
that normally you don't call them themselves, just override 
them to react when the framework calls them.

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]



isVisible called before onBeforeRender

2007-11-12 Thread cwilkes

I had code in onAttach() that set a field that was read in isVisible().  Now
with onAttach removed I put this code in the onBeforeRender() method.

However internalBeforeRender() calls isVisible() before onBeforeRender(). 
The fix was pretty easy -- move that code into isVisible().

However I'm not sure if internalBeforeRender() should call isVisible()
before onBeforeRender(), or at least there should be a note in the javadoc
that isVisible() is called very early on in the game and not just in the
render() method.
-- 
View this message in context: 
http://www.nabble.com/isVisible-called-before-onBeforeRender-tf4795699.html#a13719614
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: isVisible called before onBeforeRender

2007-11-12 Thread Timo Rantalaiho
On Mon, 12 Nov 2007, cwilkes wrote:
 However I'm not sure if internalBeforeRender() should call isVisible()
 before onBeforeRender(), or at least there should be a note in the javadoc
 that isVisible() is called very early on in the game and not just in the
 render() method.

This was discussed some time back -- isVisible() gets called
several times during a request, which feels strange indeed. 

If you don't want your isVisble logic to execute so often,
you can work around it by calling setVisible() in
onBeforeRender() instead of overriding isVisible(). It
doesn't look equally elegant in the code though.

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: Serialization of pages in a cluster/load-balancer environment ?

2007-11-12 Thread Eelco Hillenius
On Nov 12, 2007 6:21 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 afaik the current pagestore will save the page to disk after its been
 replicated...or was that another pagestore subclass you were working
 on matej?

Also see 
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-jetty-cluster
and 
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-jetty-cluster-pagestore
for some experimental but working code (might change drastically
though) and consider Terracotta. Also, you can use HttpSessionStore
with regular servlet container replication.

Eelco

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



Re: Serialization of pages in a cluster/load-balancer environment ?

2007-11-12 Thread Eelco Hillenius
On Nov 12, 2007 9:23 PM, Eelco Hillenius [EMAIL PROTECTED] wrote:
 On Nov 12, 2007 6:21 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
  afaik the current pagestore will save the page to disk after its been
  replicated...or was that another pagestore subclass you were working
  on matej?

 Also see 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-jetty-cluster
 and 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-jetty-cluster-pagestore

or make that http instead of https

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



Re: Problem with DefaultDataTable filtering?

2007-11-12 Thread Eelco Hillenius
On Nov 12, 2007 6:33 PM, anita nichols [EMAIL PROTECTED] wrote:
 Please unsubscribe

Nah. Nick is a good guy. Let's keep him around ;-)

Eelco

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



RE: Apache Wicket 1.3.0-rc1 released!

2007-11-12 Thread Philip A. Chapman
I think that by now, everybody knows where I stand.  :-)


+1  GENERICS!

On Mon, 2007-11-12 at 18:02 -0500, William Hoover wrote:
 +1 GENERICS!!!
 
 -Original Message-
 From: mathias axelsson [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 12, 2007 5:35 PM
 To: users@wicket.apache.org
 Subject: Re: Apache Wicket 1.3.0-rc1 released!
 
 
 Mmmm... Generics
 
 
 Thanks alot for a great framework!
 
 
 On Nov 12, 2007 7:33 PM, Johan Compagner [EMAIL PROTECTED] wrote:
  yes after 1.3 there will be a java 5 version. Still not really know what we
  will call it (1.4,1.5 or 2.0)
 
  First finish the 1.3 release then there could be a first alpha/beta version
  with generircs pretty fast.
 
  johan
 
 
 
  On Nov 12, 2007 5:35 PM, Anders Peterson [EMAIL PROTECTED]
  wrote:
 
 
   Thanks, everyone who contributed!
  
   Is Wicket 1.4 still planned to be a Java 5 version of Wicket 1.3? How
   far away is Wicket 1.4?
  
   I have a small prototype application built using Wicket 1.2.6. I believe
   that little prototype may soon graduate to a real application, and when
   that happens I'd like it to be using a generified version of Wicket.
  
   /Anders
   ---
   http://ojalgo.org/
  
   Martijn Dashorst wrote:
This is the first release candidate for Apache Wicket we have prepared
for your pleasure. It contains over 80 fixes to issues with previous
releases and todo items we have cleared.
   
In this announcement:
   
* Apache Wicket
* This release
* Migrating from 1.2
* Downloading the release
* Validating the release
* Reporting bugs
* The distribution
* Release Notes - Wicket - Version 1.3.0-rc1
   
Eager people click here to download the distribution, others can read
   further:
   
http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1
   
We thank you for your patience and support.
   
The Wicket Team
   
-= Apache Wicket =-
   
Apache Wicket is a component oriented Java web application framework.
With proper mark-up/logic separation, a POJO data model, and a
refreshing lack of XML, Apache Wicket makes developing web-apps simple
and enjoyable again. Swap the boilerplate, complex debugging and
brittle code for powerful, reusable components written with plain Java
and HTML.
   
Our migration to a top level project is now completed and you can find
our website and documentation here:
   
http://wicket.apache.org
   
-= This release =-
   
This release is the first in a series of release candidates releases
until we feel confident to finalize Wicket 1.3. This is called a
release candidate because we strive for API freeze. This means only
bug fixes will be done on the 1.3 release from now on.
   
-= Migrating from 1.2 =-
   
If you are coming from Wicket 1.2, you really want to read our
migration guide, found on the wiki:
   
http://cwiki.apache.org/WICKET/migrate-13.html
   
-= Downloading the release =-
   
You can download the release from the official Apache mirror system,
and you can find it through the following link:
   
http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/
   
For the Maven and Ivy fans out there: update your pom's to the
following, and everything will be downloaded automatically:
   
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
version1.3.0-rc1/version
/dependency
   
Substitute the artifact ID with the projects of your liking to get the
other projects.
   
Please note that we don't prescribe a Logging implementation for
SLF4J. You need to specify yourself which one you prefer. Read more
about SLF4J here: http://slf4j.org
   
-= Validating the release =-
   
The release has been signed by Frank Bille, your release manager for
today. The public key can be found in the KEYS file in the download
area. Download the KEYS file only from the Apache website.
   
http://www.apache.org/dist/wicket/1.3.0-rc1/KEYS
   
Instructions on how to validate the release can be found here:
   
http://www.apache.org/dev/release-signing.html#check-integrity
   
-= Reporting bugs =-
   
In case you do encounter a bug, we would appreciate a report in our
   JIRA:
   
http://issues.apache.org/jira/browse/WICKET
   
-= The distribution =-
   
In the distribution you will find a README. The README contains
instructions on how to build from source yourself and a list of all
things that have been fixed, added and/or removed since the first beta
release.
   
-= Release Notes - Wicket - Version 1.3.0-rc1 =-
   
Sub-task
   
* WICKET-1022 - Created new bug - ValueMap set to null
   
Bug
   
* WICKET-330 - CheckBox incorrectly converts its model value when a
custom Boolean converter is installed
* WICKET-336 - Inheritable model cannot be a wrap model
* WICKET-382 - 

Re: Component.wrap and IChainingModel

2007-11-12 Thread Dmitry Kandalov
On Monday 12 November 2007 22:13:33 ChuckDeal wrote:
  You're right. But if you were not using List you could return SortedSet
  from
  SortingModel and it would work :)

 But then I'd be using a Set instead of a List.  DropDownChoice (via
 AbstractChoice) expects the choices model to represent a List.

Well, you could have yet another model that lazily wraps a Set in a List. And 
you could enhance DDC with this model to support Sets (I've always wanted DDC 
and ListView to support sets). But I admit it's quite hackish to solve your 
initial problem like that.

Dima

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



DataProvider.size() problem

2007-11-12 Thread Kevin Liu
Hi! guys
   
  I have a defaultDataTable in a form,   and the dataTable uses 
SortableDataProvider,  
   
   when the submit button clicked, the selected rows will be deleted. 
   
  The problem is the  sortableDataProvider.size() excute before button.submit()
   
  as a result
   
   the total number of the data that navigationlabel displays is wrong..  
   


-Kevin Liu
   
-
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

Re: Multi-file upload and ListView together

2007-11-12 Thread Franklin Antony

Thanks Igor but it doesnt seem to work still.

Just some more hints:

I have the listview on a form and the form is on the page.
The uploads collection object is on the form.
It keeps telling me that there is no such uploads object on the page and so
I changed the call from

MultiFileUploadField ff=new MultiFileUploadField(file_input,new
PropertyModel(this,uploads),3);

to

MultiFileUploadField ff=new MultiFileUploadField(file_input,new
PropertyModel(MyForm.this,uploads),3);

Still doest work.


So now i add the collections uploads directly to the page and make call like
this 


MultiFileUploadField ff=new MultiFileUploadField(file_input,new
PropertyModel(MyPage.this,uploads),3);

Now there is some light in this direction. Only the last set of files in the
listview go inside the uploads collection. 


I really wish if someone could shed some light on this. Wicket has been so
easy to use up to now. But I am getting confused with how it will handle the
model in case of reapeaters. I need all the repeaters to use the same
collections object.


Thanks for all the help Igor,
Franklin



igor.vaynberg wrote:
 
 did you call listview.setreuseitems(true)
 
 it is usually easier if you provide a quickstart...
 
 -igor
 
 
 On Nov 12, 2007 7:28 AM, Franklin Antony [EMAIL PROTECTED] wrote:

 Dear Friends,
I am having a problem with putting MultiFileUploadField inside a
 ListView. I am following the example, but somehow the uploads collection
 is
 not getting populated with the files. However when I directly add the
 MultiFileUploadField  on a form everything seems to work. Could someone
 please shed some light on this.

 Here is some code snippet

 List ls = Arrays.asList(new String[]{Passport });
 ListView pl = new ListView(plist,ls)
 {

 protected void populateItem(ListItem
 arg0) {


 MultiFileUploadField ff=new
 MultiFileUploadField(file_input,new
 PropertyModel(this,uploads),3);

 fileUploadList.add(ff);
 fileUpload.add(ff);
 arg0.add(ff);




 }


 };


 And the listview is on a form and the collections(uploads) is on the form
 to
 just as in the example. I am sure its something with the component
 hierarchy. But not sure how to call the uploads correctly. I think there
 is
 something wrong with the expression.


 Thanks,
 Franklin
 --
 View this message in context:
 http://www.nabble.com/Multi-file-upload-and-ListView-together-tf4791788.html#a13707621
 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/Multi-file-upload-and-ListView-together-tf4791788.html#a13720963
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: Search Form and Search List on one page

2007-11-12 Thread Maurice Marrink
In general you don't let the filterbar provide the list of results
but have it update a filter bean. This filter is then used inside your
dataprovider to get the list of results.

Maurice

On Nov 13, 2007 4:16 AM, Joshua Jackson [EMAIL PROTECTED] wrote:
 Dear all,

 Is it possible to have a Page with Search Form and Search List on the same 
 Page?

 It seems that the List object that is retrieved from onSubmit() is not
 updated to my DataView that lies inside the Page constructor. Or is
 there anyway I can have something like afterRender after the button is
 submitted or something? I'm quite confused regarding how everything
 works here.

 Does anyone has a solution for having search form and search list on one page?

 Thanks in advance

 --
 What you want today, may not exist tommorrow

 Blog: http://joshuajava.wordpress.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]