Re: Help, why the loginpage has the whole package name?

2008-11-24 Thread wch2001


sorry, Martjin,

Can u tell me more clear?

change the mountBookmarkablePage?


thanks


Martijn Dashorst wrote:
 
 Mount your page with one of the URL coding strategies. 1000 examples
 on the list or wiki.
 
 Martijn
 
 On 11/24/08, wch2001 [EMAIL PROTECTED] wrote:

 Dear all,

 why My application run with the whole package  name?

 like
 https://apps.rednano.sg/peopleupdate/?wicket:bookmarkablePage=%3Asg.sphsearch.people.selfupdate.wicket.page.LoginPage

 the below is my web application:



 package sg.sphsearch.people.selfupdate.wicket.application;

 import java.net.MalformedURLException;
 import javax.servlet.http.HttpServletRequest;
 import org.acegisecurity.AuthenticationManager;
 import org.apache.wicket.Request;
 import org.apache.wicket.RequestCycle;
 import org.apache.wicket.Response;
 import org.apache.wicket.Session;
 import org.apache.wicket.WicketRuntimeException;
 import
 org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadWebRequest;
 import org.apache.wicket.protocol.http.WebRequest;
 import org.apache.wicket.security.hive.HiveMind;
 import org.apache.wicket.security.hive.authentication.LoginContext;
 import org.apache.wicket.security.hive.config.PolicyFileHiveFactory;
 import org.apache.wicket.security.swarm.SwarmWebApplication;
 import org.apache.wicket.spring.injection.annot.SpringComponentInjector;
 import org.apache.wicket.util.file.Folder;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import sg.sphsearch.people.selfupdate.wicket.config.NameConstants;
 import sg.sphsearch.people.selfupdate.wicket.page.AccessDeniedPage;
 import sg.sphsearch.people.selfupdate.wicket.page.ErrorPage;
 import sg.sphsearch.people.selfupdate.wicket.page.ExpiredPage;
 import sg.sphsearch.people.selfupdate.wicket.page.IndexPage;
 import sg.sphsearch.people.selfupdate.wicket.page.LoginPage;
 import
 sg.sphsearch.people.selfupdate.wicket.page.RegistrationConfirmPage;
 import sg.sphsearch.people.selfupdate.wicket.page.RegistrationPage;
 import sg.sphsearch.people.selfupdate.wicket.security.AcegiApplication;
 import sg.sphsearch.people.selfupdate.wicket.security.AcegiLoginContext;
 import
 sg.sphsearch.people.selfupdate.wicket.security.SelfupdateRequestCycle;
 import
 sg.sphsearch.people.selfupdate.wicket.session.PeopleSelfUpdateSession;

 /**
  *
  * @author jmulyadi
  *
  */
 public class PeopleSelfUpdateApplication extends SwarmWebApplication
 implements AcegiApplication
 {

 static final Logger logger =
 LoggerFactory.getLogger(PeopleSelfUpdateApplication.class);
 private static final String TEMP_CONFIG_ID = 4;
 private AuthenticationManager authenticationManager;
 private Folder uploadTempFolder = null;

 @Override
 protected void init()
 {
 super.init();

 addComponentInstantiationListener(new
 SpringComponentInjector(this));

 // Application Settings
 getApplicationSettings().setInternalErrorPage(ErrorPage.class);

 getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class);

 getApplicationSettings().setAccessDeniedPage(AccessDeniedPage.class);

 // Markup Settings
 getMarkupSettings().setCompressWhitespace(true);
 getMarkupSettings().setStripComments(true);
 getMarkupSettings().setStripWicketTags(true);

 // Request Cycle Settings
 getRequestCycleSettings().setResponseRequestEncoding(UTF-8);
 getSessionSettings().setMaxPageMaps(100);

 // Obtain location for upload
 uploadTempFolder = new
 Folder(NameConstants.IMAGESERVERCONFIGS.getImageServerConfigs().get(TEMP_CONFIG_ID).getServerPath());
 // Ensure folder exists
 uploadTempFolder.mkdirs();

 mountBookmarkablePage(/register, RegistrationPage.class);
 mountBookmarkablePage(/confirmregistration,
 RegistrationConfirmPage.class);
 }

 @Override
 @SuppressWarnings(value = unchecked)
 public Class getHomePage()
 {
 return IndexPage.class;
 }

 @Override
 @SuppressWarnings(value = unchecked)
 public Class getLoginPage()
 {
 return LoginPage.class;
 }

 @Override
 protected void setUpHive()
 {
 PolicyFileHiveFactory factory = new
 PolicyFileHiveFactory(getActionFactory());

 try
 {

 factory.addPolicyFile(getServletContext().getResource(/WEB-INF/policy/selfupdate.hive));
 factory.setAlias(principal,
 sg.sphsearch.auth.domain.Principal);
 factory.setAlias(base,
 sg.sphsearch.people.selfupdate.wicket);

 //this application currently uses 1 policy file but you can add
 as
 many as you like
 //factory.addPolicyFile(...);
 }
 catch (MalformedURLException e)
 {
 throw new WicketRuntimeException(e);
 }

 HiveMind.registerHive(getHiveKey(), factory);
 }

 @Override
 protected Object getHiveKey()
 {
 return getServletContext().getContextPath();
 }

 

Re: Wicket JavaDoc - plz publish

2008-11-24 Thread Ayodeji Aladejebi
If you have netbeans plugin for maven, you can generate the latest Javadoc
yourself from netbeans. Just right-click in netbeans and select generate
Javadoc and dats all

On Mon, Nov 24, 2008 at 7:40 AM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:

 Like I said in my blog post I won't be publishing anything until maven
 site plugin works without problems. You don't have any idea how much
 time I've already sunk into that fcker.

 Martijn

 On 11/24/08, Ned Collyer [EMAIL PROTECTED] wrote:
 
  Can something be set up to publish either the snapshot or rc1 javadocs to
 a
  public URL.
 
  Does the wicket version need to be final to be published to
  http://wicket.apache.org/docs/
 
  I currently use -DdownloadSources - but its just not so great for
 navigating
  - especially if you want to cut/paste URL's to other devs.
  --
  View this message in context:
 
 http://www.nabble.com/Wicket-JavaDoc---plz-publish-tp20652802p20652802.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/


Re: Help, why the loginpage has the whole package name?

2008-11-24 Thread Ayodeji Aladejebi
do a little more research on the wicket wiki site, there are plenty examples
on this

On Mon, Nov 24, 2008 at 8:04 AM, wch2001 [EMAIL PROTECTED] wrote:



 sorry, Martjin,

 Can u tell me more clear?

 change the mountBookmarkablePage?


 thanks


 Martijn Dashorst wrote:
 
  Mount your page with one of the URL coding strategies. 1000 examples
  on the list or wiki.
 
  Martijn
 
  On 11/24/08, wch2001 [EMAIL PROTECTED] wrote:
 
  Dear all,
 
  why My application run with the whole package  name?
 
  like
 
 https://apps.rednano.sg/peopleupdate/?wicket:bookmarkablePage=%3Asg.sphsearch.people.selfupdate.wicket.page.LoginPage
 
  the below is my web application:
 
 
 
  package sg.sphsearch.people.selfupdate.wicket.application;
 
  import java.net.MalformedURLException;
  import javax.servlet.http.HttpServletRequest;
  import org.acegisecurity.AuthenticationManager;
  import org.apache.wicket.Request;
  import org.apache.wicket.RequestCycle;
  import org.apache.wicket.Response;
  import org.apache.wicket.Session;
  import org.apache.wicket.WicketRuntimeException;
  import
 
 org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadWebRequest;
  import org.apache.wicket.protocol.http.WebRequest;
  import org.apache.wicket.security.hive.HiveMind;
  import org.apache.wicket.security.hive.authentication.LoginContext;
  import org.apache.wicket.security.hive.config.PolicyFileHiveFactory;
  import org.apache.wicket.security.swarm.SwarmWebApplication;
  import org.apache.wicket.spring.injection.annot.SpringComponentInjector;
  import org.apache.wicket.util.file.Folder;
  import org.slf4j.Logger;
  import org.slf4j.LoggerFactory;
  import sg.sphsearch.people.selfupdate.wicket.config.NameConstants;
  import sg.sphsearch.people.selfupdate.wicket.page.AccessDeniedPage;
  import sg.sphsearch.people.selfupdate.wicket.page.ErrorPage;
  import sg.sphsearch.people.selfupdate.wicket.page.ExpiredPage;
  import sg.sphsearch.people.selfupdate.wicket.page.IndexPage;
  import sg.sphsearch.people.selfupdate.wicket.page.LoginPage;
  import
  sg.sphsearch.people.selfupdate.wicket.page.RegistrationConfirmPage;
  import sg.sphsearch.people.selfupdate.wicket.page.RegistrationPage;
  import sg.sphsearch.people.selfupdate.wicket.security.AcegiApplication;
  import sg.sphsearch.people.selfupdate.wicket.security.AcegiLoginContext;
  import
  sg.sphsearch.people.selfupdate.wicket.security.SelfupdateRequestCycle;
  import
  sg.sphsearch.people.selfupdate.wicket.session.PeopleSelfUpdateSession;
 
  /**
   *
   * @author jmulyadi
   *
   */
  public class PeopleSelfUpdateApplication extends SwarmWebApplication
  implements AcegiApplication
  {
 
  static final Logger logger =
  LoggerFactory.getLogger(PeopleSelfUpdateApplication.class);
  private static final String TEMP_CONFIG_ID = 4;
  private AuthenticationManager authenticationManager;
  private Folder uploadTempFolder = null;
 
  @Override
  protected void init()
  {
  super.init();
 
  addComponentInstantiationListener(new
  SpringComponentInjector(this));
 
  // Application Settings
  getApplicationSettings().setInternalErrorPage(ErrorPage.class);
 
  getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class);
 
  getApplicationSettings().setAccessDeniedPage(AccessDeniedPage.class);
 
  // Markup Settings
  getMarkupSettings().setCompressWhitespace(true);
  getMarkupSettings().setStripComments(true);
  getMarkupSettings().setStripWicketTags(true);
 
  // Request Cycle Settings
  getRequestCycleSettings().setResponseRequestEncoding(UTF-8);
  getSessionSettings().setMaxPageMaps(100);
 
  // Obtain location for upload
  uploadTempFolder = new
 
 Folder(NameConstants.IMAGESERVERCONFIGS.getImageServerConfigs().get(TEMP_CONFIG_ID).getServerPath());
  // Ensure folder exists
  uploadTempFolder.mkdirs();
 
  mountBookmarkablePage(/register, RegistrationPage.class);
  mountBookmarkablePage(/confirmregistration,
  RegistrationConfirmPage.class);
  }
 
  @Override
  @SuppressWarnings(value = unchecked)
  public Class getHomePage()
  {
  return IndexPage.class;
  }
 
  @Override
  @SuppressWarnings(value = unchecked)
  public Class getLoginPage()
  {
  return LoginPage.class;
  }
 
  @Override
  protected void setUpHive()
  {
  PolicyFileHiveFactory factory = new
  PolicyFileHiveFactory(getActionFactory());
 
  try
  {
 
 
 factory.addPolicyFile(getServletContext().getResource(/WEB-INF/policy/selfupdate.hive));
  factory.setAlias(principal,
  sg.sphsearch.auth.domain.Principal);
  factory.setAlias(base,
  sg.sphsearch.people.selfupdate.wicket);
 
  //this application currently uses 1 policy file but you can add
  as
  many as you like
  //factory.addPolicyFile(...);
  }
  

Re: Wicket JavaDoc - plz publish

2008-11-24 Thread Ned Collyer

I would have some idea ... I'm using that plugin.. maven plugins have
issues.. :) i think it stems from the lack of standard approach of writing
the plugins, and even then - if you check the maven generated sites, so many
pages can be unintentionally left blank!!  The documentation on them is
generally poor too.

Hmm i should start reading ur blog hey :)


Martijn Dashorst wrote:
 
 Like I said in my blog post I won't be publishing anything until maven
 site plugin works without problems. You don't have any idea how much
 time I've already sunk into that fcker.
 
 Martijn
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-JavaDoc---plz-publish-tp20652802p20657152.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Field value null on Submit after onUpdate()

2008-11-24 Thread kerim bey

I debuged some more and realized that only the TextInput ModelObject is null!
Althougt it was not null after filling in a Value (call of onUpdate() of the
TextInput)

Pleas help me someone. This is driving me nuts.


kerim bey wrote:
 
 Hi, Everyone!
 
 I wrote this Ajax Event Handler for a AutoCompleteTextField:
 
 @Override
 protected void onUpdate(AjaxRequestTarget target)
 {
 
   ChildObj co = (ChildObj)AutoCompleteTextField.findChoice();
   if(null != co )
   {
   ((Obj)Form.getModelObject()).setChildObject(co);
   ((Obj)Form.getModelObject()).setPrice(co.getPrice());
   if(co.isBoolAttribute())
   {
   ((Obj)Form.getModelObject()).setAmount(new Float(1));
   TextInput.setEnabled(false);
   target.addComponent(TextInput);
   }
   else
   {
   ((Obj)Form.getModelObject()).setAmount(new Float(1));
   obj.setAmount(new Float(1));
   TextInput.setModelObject(new Float(1));
   TextInput.setEnabled(true);
   target.addComponent(TextInput);
   }
   }
 }
 
 This is working as long as the else-block is not executed but when I
 submit the Form including the AutoCompleteTextField and the TextInput both
 AutoCompleteTextField and TextInput have a NULL value. 
 
 Someone please help me what's wrong.
 

-- 
View this message in context: 
http://www.nabble.com/Field-value-null-on-Submit-after-onUpdate%28%29-tp20579000p20657658.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Problem with Crypted URL

2008-11-24 Thread francisco treacy
i updated to rc1 i'm still getting stacktraces in logs with
CryptedUrlWebRequestCodingStrategy


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


could it be a bug?

 ?x=5M5HhZnN1b1LpMPMBO5Pmr*YBxchBZCmSdUDJCdEYzUOOBDF1Zr0DA  doesn't
seem to be modified be someone else than 

Re: datatable and access to toolbars

2008-11-24 Thread Eyal Golan
Alex,
I think you can still use the DataTable provided by Wicket.
Why not make a toolbar as a member of the table, add it, and then you'll get
all the access you need?

Eyal Golan
[EMAIL PROTECTED]

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

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


On Mon, Nov 24, 2008 at 9:31 AM, Alex Parvulescu
[EMAIL PROTECTED]wrote:

 Hello,

 Your solution is good, I actually did that, but it does not cover all the
 use cases.A toolbar can replace itself with another toolbar, but I need
 external access to the toolbars, from the hierarchy.
 For example, each table row has an 'edit' button, on click, I need the
 'edit' toolbar to appear/activate.

 My problem is that I can't reach the toolbar component with a simple
 table.get(DataTable.TOOLBAR_COMPONENT_ID) .

 I think I'll roll my own, as Igor suggested,

 Thank you very much!
 Alex

 On Sun, Nov 23, 2008 at 4:10 PM, James Carman [EMAIL PROTECTED]
 wrote:

  How about you have your toolbar replace its own contents based on what
  mode it's in?
 
  On Sun, Nov 23, 2008 at 7:59 AM, Alex Parvulescu
  [EMAIL PROTECTED] wrote:
   Hi,
   Perhaps i did not make myself clear,
  
   After adding the toolbar , i need to replace it with another toolbar.
  
   Let's say that I have an 'add new' toolbar - with only an 'add new'
  button,
   and an 'edit' toolbar, for the editing part.
  
   The user clicks 'add new' - the 'add new' toolbar is replaced with the
   'edit' toolbar. on ok , the 'edit' toolbar is replaced again with the
  'add
   new' toolbar.A simple CRUD editor, embedded in the datatable component.
  
   That's why i need a way to reach the toolbar through the api, maybe
  through
   the #get method (something like
 table.get(DataTable.TOOLBAR_COMPONENT_ID)
  )
  
   It seems that after adding a toolbar to a table, there is no way that
 you
   can reach it in the component hierarchy anymore.
  
   Thanks,
   Alex
  
   On Fri, Nov 21, 2008 at 5:49 PM, Igor Vaynberg 
 [EMAIL PROTECTED]
  wrote:
  
   see #addbottomtoolbar()
  
   -igor
  
   On Fri, Nov 21, 2008 at 2:57 AM, Alex Parvulescu
   [EMAIL PROTECTED] wrote:
Hello,
   
i have a question about the toolbars in the DataTable component.
   
my use case is this : i want to embed a small editor in a bottom
   toolbar.Its
a simple ok / cancel panel.
   
I see that there no access to the 'bottomToolbars' variable in the
   DataTable
its private and final and has no accessors.
   
Plus theres no way i can replace a toolbar, if i try
table.get(DataTable.TOOLBAR_COMPONENT_ID) the result is null,
another approach is table.replace(new EditToolbar(table)); - which
   outputs
an error: org.apache.wicket.WicketRuntimeException: Cannot replace a
component which has not been added: id='toolbar'...
   
My guess is that this is because of the   DataTable#addToolbar
 method:
toolbar.setRenderBodyOnly(true); ..
   
I have no workaround for this , except to drop the toolbars and
 start
  new
with some panels.
   
My question is if theres a reason toolbars are hidden away from the
  user,
theres no clear way of working with them, except to initialise, and
  them
   let
them be.
   
   
btw i am using wicket 1.3.4
   
thanks,
   
Alex
   
  
   -
   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: underscores in java package name doesn't work

2008-11-24 Thread Steve Swinsburg
I'm using underscores in my package names and it works fine, Wicket  
1.3.5 Java 1.5.0_16, Tomcat 5.5.


Could be an issue introduced with Java 6/Tomcat 6?




cheers,
Steve

---
Steve Swinsburg
Portal Systems Developer
Centre for e-Science
Lancaster University
Lancaster
LA1 4YT

email: [EMAIL PROTECTED]
phone: +44 (0) 1524 594870







On 23 Nov 2008, at 16:33, Alexandr Khlystov wrote:


underscores in java package name doesn't work

I've changed the title of letter.

-- Forwarded message --
From: Alexandr Khlystov [EMAIL PROTECTED]
Date: Sun, Nov 23, 2008 at 10:32 PM
Subject: Re: guys how to submit a bug to
https://issues.apache.org/jira/browse/WICKET
To: users@wicket.apache.org


Hm.

wicket version: 1.3.5. Simple project. I run it on the Tomcat 6.0,  
Java 6.0,

build on maven2, based on wicket-quickstart archetype.

three files:
*1. CheesrApplication.java*
package org.ovservice.wicket_in_action.web;

public class *CheesrApplication* extends WebApplication {
...
   @Override
   public Class? extends Page getHomePage() {
   return *IndexPage*.class;
   }
...
}

2. *IndexPage.java*

package org.ovservice.wicket_in_action.web.pages;
...
public class *IndexPage *extends WebPage {
...
   public IndexPage(final PageParameters parameters) {
   add(new Label(message, MESSAGE_TEXT));
   }
}

3. IndexPage.html of course at the same folder as *IndexPage.java*
html
   head
   titleIndex Page/title
   /head
   body
   strongWicket Quickstart Archetype Homepage/strong
   br/br/
   span wicket:id=messagemessage will be here/span
   /body
/html

After trying to run the application I've got the following exception:
...
org.apache.wicket.markup.MarkupNotFoundException: Markup not found.
...

Saying that Wicket was trying to find html file at  .../org/ovservice/
folder, but not at .../org/ovservice/wicket_in_action/web/pages/

After chaging wicket_in_action to wicketinaction All works fine.

And what scenario do you have?

Thanks.


On Sun, Nov 23, 2008 at 10:14 PM, Swinsburg, Stephen 
[EMAIL PROTECTED] wrote:

You need to be logged in to Jira, or create an account if you don't  
have

one. Then choose 'Create New Issue' in the top menu.

But, I use underscores in my package names and have no problem.  
Perhaps you
should discuss it here before you log it as an issue? What version  
Wicket

etc?

cheers.


-Original Message-
From: Alexandr Khlystov [mailto:[EMAIL PROTECTED]
Sent: Sun 11/23/2008 4:00 PM
To: users@wicket.apache.org
Subject: guys how to submit a bug to
https://issues.apache.org/jira/browse/WICKET

guys how to submit a bug to https://issues.apache.org/jira/browse/WICKET

I can't find the button :).

bug is about that wicket can't deal with packages which contains
underlinings e.g. org.ovservice.wicket_in_action.IndexPage

throwing:
org.apache.wicket.markup.MarkupNotFoundException: Markup not found.
Component class

--

Best regards,
Alexandr Khlystov



--

Best regards,
Alexandr Khlystov



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





--

Best regards,
Alexandr Khlystov



--

Best regards,
Alexandr Khlystov




smime.p7s
Description: S/MIME cryptographic signature


Re: Wicket JavaDoc - plz publish

2008-11-24 Thread Susan Liebeskind

Ayodeji Aladejebi wrote:

If you have netbeans plugin for maven, you can generate the latest Javadoc
yourself from netbeans. Just right-click in netbeans and select generate
Javadoc and dats all

  
If you use Eclipse, there is a similar facility, assuming you use 
Sonatype's M2Eclipse plugin, available here - http://m2eclipse.sonatype.org/


In the comments posted on Martijn's blog entry on this subject, Tim 
O'Brien of Sonatype posted a video link in which he walks you through 
generating the Wicket Javadoc, using the m2Eclipse plugin.   Here's the 
link to that video, which assumes you have the m2eclipse plugin 
installed in advance


http://blogs.sonatype.com/people/book/2008/10/23/browsing-javadoc-for-dependencies-in-eclipse-m2eclipse/

Maybe these interim techniques for generating Wicket Javadoc in two 
oft-used IDEs, are items that could at least temporarily be added to the 
migration to 1.4 wiki page?  If you decide to include javadocs in the 
future distros, you can always remove the information in later revisions.


Susan

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



Re: Help, why the loginpage has the whole package name?

2008-11-24 Thread jWeekend

http://cwiki.apache.org/WICKET/url-coding-strategies.html
http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-annotation

Regards - Cemal
http://www.jWeekend.co.uk http://jWeekend.co.uk 



wch2001 wrote:
 
 
 sorry, Martjin,
 
 Can u tell me more clear?
 
 change the mountBookmarkablePage?
 
 
 thanks
 
 
 Martijn Dashorst wrote:
 
 Mount your page with one of the URL coding strategies. 1000 examples
 on the list or wiki.
 
 Martijn
 
 On 11/24/08, wch2001 [EMAIL PROTECTED] wrote:

 Dear all,

 why My application run with the whole package  name?

 like
 https://apps.rednano.sg/peopleupdate/?wicket:bookmarkablePage=%3Asg.sphsearch.people.selfupdate.wicket.page.LoginPage

 the below is my web application:



 package sg.sphsearch.people.selfupdate.wicket.application;

 import java.net.MalformedURLException;
 import javax.servlet.http.HttpServletRequest;
 import org.acegisecurity.AuthenticationManager;
 import org.apache.wicket.Request;
 import org.apache.wicket.RequestCycle;
 import org.apache.wicket.Response;
 import org.apache.wicket.Session;
 import org.apache.wicket.WicketRuntimeException;
 import
 org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadWebRequest;
 import org.apache.wicket.protocol.http.WebRequest;
 import org.apache.wicket.security.hive.HiveMind;
 import org.apache.wicket.security.hive.authentication.LoginContext;
 import org.apache.wicket.security.hive.config.PolicyFileHiveFactory;
 import org.apache.wicket.security.swarm.SwarmWebApplication;
 import org.apache.wicket.spring.injection.annot.SpringComponentInjector;
 import org.apache.wicket.util.file.Folder;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import sg.sphsearch.people.selfupdate.wicket.config.NameConstants;
 import sg.sphsearch.people.selfupdate.wicket.page.AccessDeniedPage;
 import sg.sphsearch.people.selfupdate.wicket.page.ErrorPage;
 import sg.sphsearch.people.selfupdate.wicket.page.ExpiredPage;
 import sg.sphsearch.people.selfupdate.wicket.page.IndexPage;
 import sg.sphsearch.people.selfupdate.wicket.page.LoginPage;
 import
 sg.sphsearch.people.selfupdate.wicket.page.RegistrationConfirmPage;
 import sg.sphsearch.people.selfupdate.wicket.page.RegistrationPage;
 import sg.sphsearch.people.selfupdate.wicket.security.AcegiApplication;
 import sg.sphsearch.people.selfupdate.wicket.security.AcegiLoginContext;
 import
 sg.sphsearch.people.selfupdate.wicket.security.SelfupdateRequestCycle;
 import
 sg.sphsearch.people.selfupdate.wicket.session.PeopleSelfUpdateSession;

 /**
  *
  * @author jmulyadi
  *
  */
 public class PeopleSelfUpdateApplication extends SwarmWebApplication
 implements AcegiApplication
 {

 static final Logger logger =
 LoggerFactory.getLogger(PeopleSelfUpdateApplication.class);
 private static final String TEMP_CONFIG_ID = 4;
 private AuthenticationManager authenticationManager;
 private Folder uploadTempFolder = null;

 @Override
 protected void init()
 {
 super.init();

 addComponentInstantiationListener(new
 SpringComponentInjector(this));

 // Application Settings
 getApplicationSettings().setInternalErrorPage(ErrorPage.class);

 getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class);

 getApplicationSettings().setAccessDeniedPage(AccessDeniedPage.class);

 // Markup Settings
 getMarkupSettings().setCompressWhitespace(true);
 getMarkupSettings().setStripComments(true);
 getMarkupSettings().setStripWicketTags(true);

 // Request Cycle Settings
 getRequestCycleSettings().setResponseRequestEncoding(UTF-8);
 getSessionSettings().setMaxPageMaps(100);

 // Obtain location for upload
 uploadTempFolder = new
 Folder(NameConstants.IMAGESERVERCONFIGS.getImageServerConfigs().get(TEMP_CONFIG_ID).getServerPath());
 // Ensure folder exists
 uploadTempFolder.mkdirs();

 mountBookmarkablePage(/register, RegistrationPage.class);
 mountBookmarkablePage(/confirmregistration,
 RegistrationConfirmPage.class);
 }

 @Override
 @SuppressWarnings(value = unchecked)
 public Class getHomePage()
 {
 return IndexPage.class;
 }

 @Override
 @SuppressWarnings(value = unchecked)
 public Class getLoginPage()
 {
 return LoginPage.class;
 }

 @Override
 protected void setUpHive()
 {
 PolicyFileHiveFactory factory = new
 PolicyFileHiveFactory(getActionFactory());

 try
 {

 factory.addPolicyFile(getServletContext().getResource(/WEB-INF/policy/selfupdate.hive));
 factory.setAlias(principal,
 sg.sphsearch.auth.domain.Principal);
 factory.setAlias(base,
 sg.sphsearch.people.selfupdate.wicket);

 //this application currently uses 1 policy file but you can add
 as
 many as you like
 //factory.addPolicyFile(...);
 }
 catch (MalformedURLException e)
 {
 

Create custom UrlCodingStrategy

2008-11-24 Thread Mathias P.W Nilsson

Hi,

I need some info in how to create my own UrlCodingStrategy

This is the preconditions.
I have a database with 20 - 100 customers that needs to access this
application. Every customer has it's own properties files and css variation.

What I want is that let's say Edgesoft wants to use the application. Then
the user will access
http://localhost/app/edgesoft

If I want to mount Base.class I do not want to do /edgesoft/base only base
and the UrlCodingStrategy will handle the rest for me. Check if the customer
exists, set variation and then continue with the request.

An example. 
http://localhost/edgesoft/order/order/13
http://localhost/another/order/order/14
mount( MyStrategy( /order/ ,  );

This should go to the exact same page but with different variation and
properties. How can this be achieved. What classes do I need to subclass to
make this happen? 
-- 
View this message in context: 
http://www.nabble.com/Create-custom-UrlCodingStrategy-tp20660813p20660813.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Running wicketstuff examples

2008-11-24 Thread Nino Saturnino Martinez Vazquez Wael

yup, I believe that most of the projects are setup like this..

Jeremy Thomerson wrote:

You can just do mvn jetty:run from that folder and it will run (just
verified).  You will need to do a mvn clean install in the
wicket-contrib-accordians folder first.

On Sun, Nov 23, 2008 at 1:06 PM, Eyal Golan [EMAIL PROTECTED] wrote:

  

Hi,
I've checked out wicket-stuff trunk.
I want to run examples but can't.
For example, I want to run Start in the accordion sub project.
Right click on the mouse gives doesn't give me the Run option.

Should I check out again differently?

Eyal Golan
[EMAIL PROTECTED]

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

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






  


--
-Wicket for love

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


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



Re: Display two modal windows in one request

2008-11-24 Thread Martin Sachs

Hi,

we have had the same issue. We are solving this Problem with a little
workaround in the Wicket-Source. 

We also created a ticket with our solution for this problem. 

https://issues.apache.org/jira/browse/WICKET-1771

The problem was, that the close would be excecuted in Javascript with a
timeout and the create doent do the timeout. So if you close and create a
modalwindow you would ever create and close the window. 

Martin S.



Newgro wrote:
 
 Hi *,
 
 i'm facing a problem i couldn't solve until now. Our base page contain an
 modal error window which is used to present the occurred error.
 
 Now i added a password request modal window on a page. If an error
 occurred after clicking the request button i would like to display the
 error window over the request window. If i click the close button on error
 window this should disappear but the request window should stay.
 
 But the error window disappears immidiatly ( 1sec). The request window
 stays. After i clicked the request button again the request window gets
 closed.
 
 Is there a solution for that issue? I've tried the example (multiple
 windows) but there are used pages and cookies for displaying (it seems to
 be to heavy for me).
 
 thanks 4 help
 Per
 

-- 
View this message in context: 
http://www.nabble.com/Display-two-modal-windows-in-one-request-tp20600479p20661354.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Panel as instance variable of parent ?

2008-11-24 Thread Martijn Dashorst
unless you have a clear indication that keeping the reference is
causing you pain, I should not worry about it. A reference takes up 4
bytes iirc, so if you have 1024 of them in your app instance, that
will take a 4kb hit. Now that is nothing to worry about.

Here's a histogram snapshot (jmap -histo pid) of memory usage of one
of our production boxes:

num   #instances#bytes  class name
--
  1:   1013497   268442672  [C
  2:   3430701   164673648  java.util.HashMap$Entry
  3:54768690858392  [Ljava.util.HashMap$Entry;
  4:11530370210936  [B
  5:60156755782288  [Ljava.lang.Object;
  6:   121803548721400  java.lang.String
  7:12519644284696  [I
  8:61725234566112  org.apache.wicket.markup.html.basic.Label
  9:51388532888640  java.util.HashMap
 10:15476127478104  constMethodKlass
 11: 2073924243264  constantPoolKlass
 12:64087021669424  [Ljava.lang.String;
 13:15476118585784  methodKlass
 14:45779818311920  java.sql.Timestamp
 15:75389218093408  java.lang.Long
 16:13819517688960  com.foo.entities.Foo
 17: 2073916699448  instanceKlassKlass
 18: 1902915086496  constantPoolCacheKlass
 19:16719214712896  org.hibernate.collection.PersistentSet
 20:17998814399040  org.hibernate.collection.PersistentBag

As you can see: the top 20 doesn't contain that many components from
Wicket (most is caching related to hibernate), this also explains why
we are very conservative of adding new flags to the core Wicket
components: these are typically used many, many times, but your own
custom components not as much.

Our first custom component is #48 with 32404 instances and 2592320
bytes of memory (80 bytes per instance shallow depth). Adding an
additional reference would've increased the memory usage by 128kb
which is peanuts.

Martijn

On Mon, Nov 24, 2008 at 3:03 PM, Thies Edeling [EMAIL PROTECTED] wrote:
 Hi all,

 I was wondering what the best aproach is, memory-wise, to reference a panel
 from it's parent (or other compent). Either keep a reference to a panel as
 an instance variable in it's parent or look it up in the hierarchy  using
 get(path). The look up in the hierarchy is more brittle but I'm not entirely
 sure what the memory impact (if any) is of storing it as an instance var.

 thx
 Thies

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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: Panel as instance variable of parent ?

2008-11-24 Thread Thies Edeling

Thanks! I was more worried about preventing garbage collection etc.
But I guess that when a component is loaded in memory all of it's 
children should be as well so any reference is valid.


Martijn Dashorst wrote:

unless you have a clear indication that keeping the reference is
causing you pain, I should not worry about it. A reference takes up 4
bytes iirc, so if you have 1024 of them in your app instance, that
will take a 4kb hit. Now that is nothing to worry about.

Here's a histogram snapshot (jmap -histo pid) of memory usage of one
of our production boxes:

num   #instances#bytes  class name
--
  1:   1013497   268442672  [C
  2:   3430701   164673648  java.util.HashMap$Entry
  3:54768690858392  [Ljava.util.HashMap$Entry;
  4:11530370210936  [B
  5:60156755782288  [Ljava.lang.Object;
  6:   121803548721400  java.lang.String
  7:12519644284696  [I
  8:61725234566112  org.apache.wicket.markup.html.basic.Label
  9:51388532888640  java.util.HashMap
 10:15476127478104  constMethodKlass
 11: 2073924243264  constantPoolKlass
 12:64087021669424  [Ljava.lang.String;
 13:15476118585784  methodKlass
 14:45779818311920  java.sql.Timestamp
 15:75389218093408  java.lang.Long
 16:13819517688960  com.foo.entities.Foo
 17: 2073916699448  instanceKlassKlass
 18: 1902915086496  constantPoolCacheKlass
 19:16719214712896  org.hibernate.collection.PersistentSet
 20:17998814399040  org.hibernate.collection.PersistentBag

As you can see: the top 20 doesn't contain that many components from
Wicket (most is caching related to hibernate), this also explains why
we are very conservative of adding new flags to the core Wicket
components: these are typically used many, many times, but your own
custom components not as much.

Our first custom component is #48 with 32404 instances and 2592320
bytes of memory (80 bytes per instance shallow depth). Adding an
additional reference would've increased the memory usage by 128kb
which is peanuts.

Martijn

On Mon, Nov 24, 2008 at 3:03 PM, Thies Edeling [EMAIL PROTECTED] wrote:
  

Hi all,

I was wondering what the best aproach is, memory-wise, to reference a panel
from it's parent (or other compent). Either keep a reference to a panel as
an instance variable in it's parent or look it up in the hierarchy  using
get(path). The look up in the hierarchy is more brittle but I'm not entirely
sure what the memory impact (if any) is of storing it as an instance var.

thx
Thies

-
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: Make FeedbackMessages#add(FeedbackMessage) public?

2008-11-24 Thread Matthew Hanlon
That's great.  Thanks.

Regards,
Matthew.

On Sat, Nov 22, 2008 at 12:47 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 it is now public.

 as far as tweaking this further, we already have this on the wishlist
 for 1.5 but for 1.4 we do not want to break the api too much.

 -igor

 On Fri, Nov 21, 2008 at 2:26 PM, Matthew Hanlon [EMAIL PROTECTED] wrote:
 Greetings!
 Is there any reason why FeedbackMessages#add(FeedbackMessage) is package
 private?  I'd like to be able to just stick a FeedbackMessage directly in my
 Session rather than having to call add(Component, String, int), info(...),
 error(...), warn(...), fatal(...) or debug(...).

 Alternatively, but probably more disruptive, could the signature of the add,
 info, warn, fatal and debug methods be changed from taking a String object
 to taking a Serializable, like the error method does?  This would achieve
 what I am looking for.

 Basically, I have a javascript FeedbackPanel which works on a subclass of
 FeedbackMessage.  I wrap my javascript foo as the serializable object in the
 FeedbackMessage.  This works great for all component feedback, but I came
 across a case where I'd like to stick a feedback message in my session for
 events such as the first visit to a page, for example, and this message kind
 of falls outside the standard feedback levels.  I'd like to be able to
 manually create my js message, wrap it in a FeedbackMessage and stick it in
 the session.

 If there is a better suggestion, I'd be open to that, too!  Thanks!

 Regards,
 Matt.

 --
 Matthew Rollins Hanlon
 http://squareoftwo.org
 _
 Hanlon's Razor:
 Never attribute to malice that which can be adequately explained by
 stupidity.
 http://wikipedia.org/wiki/Hanlon's_razor


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





-- 
Matthew Rollins Hanlon
http://squareoftwo.org
_
Hanlon's Razor:
Never attribute to malice that which can be adequately explained by stupidity.
http://wikipedia.org/wiki/Hanlon's_razor

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



SV: page refresh cleans my page state

2008-11-24 Thread Singh Mukesh
Hi 

I have gone through the HybridUrlCodingStrategy. The HybridUrlCodingStrategy is 
working porperly in WebApplication but not in portal environment. In 
WebApplication it retain the page state but not in portal environment.

Please suggest what should I do in portal environment.

Thanks in advance.
 


Med vennlig hilsen

MUKESH SINGH
CAPGEMINI Consultant
Arrive AS
T (+47) 46 47 90 16
E-post: [EMAIL PROTECTED]



-Opprinnelig melding-
Fra: jWeekend [mailto:[EMAIL PROTECTED] 
Sendt: 20 November 2008 14:25
Til: users@wicket.apache.org
Emne: Re: page refresh cleans my page state


Singh,

Take a look at  http://cwiki.apache.org/WICKET/url-coding-strategies.html
HybridUrlCodingStrategy .

Regards - Cemal
http://www.jWeekend.co.uk http://jWeekend.co.uk 


Singh Mukesh wrote:
 
 
 Hi,
 
 I am using wicket. I have a page with one links which increase the 
 counter value based on user click on the link, for all these actions I 
 am using Ajax. For instance user click 5 times on link the counter shows 
 value 5.
 It is ok but if I click on browsers refresh button all changes are 
 lost and it shows the counter value 0 instead of 5. How to handle the 
 refresh button?
 
 Please find the code below.
 
 TestPage.java
 
 import org.apache.wicket.PageParameters; import 
 org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.markup.html.AjaxLink;
 import org.apache.wicket.ajax.markup.html.form.AjaxCheckBox;
 import org.apache.wicket.markup.html.WebPage;
 import org.apache.wicket.markup.html.basic.Label;
 import org.apache.wicket.model.IModel; import 
 org.apache.wicket.model.Model;
 
 public class TestPage extends WebPage {
   
   public TestPage(PageParameters parameters) {
   super(parameters);
   final ModelInteger modell = new ModelInteger(new 
 Integer(0));
   // Slik at telleverdien legges i session
   setDefaultModel(modell);
   final Label telleLabel = new Label(teller, modell);
   telleLabel.setOutputMarkupId(true);
   final Label hashcodeLabel = new Label(hashcode, new 
 IModelString() {
   private static final long serialVersionUID = 1L;
 
   public String getObject() {
   return 
 String.valueOf(System.identityHashCode(TestPage.this));
   }
 
   public void setObject(String object) {
   /* NOOP */
   }
 
   public void detach() {
   /* NOOP */
   }
   
   });
   hashcodeLabel.setOutputMarkupId(true);
   add(telleLabel);
   add(new AjaxLinkInteger(link, modell) {
   private static final long serialVersionUID = 1L;
 
   @Override
   public void onClick(AjaxRequestTarget target) {
   // Øk det delte modellobjektet
   Integer tall = getModelObject();
   int verdi = tall.intValue() + 1;
   tall = new Integer(verdi);
   setModelObject(tall);
   // Fortell klienten hvilken komponent som skal 
 oppdateres
   target.addComponent(telleLabel);
   target.addComponent(hashcodeLabel);
   }   
   });
   add(hashcodeLabel);
   add(new AjaxCheckBox(versioned, new 
 ModelBoolean(Boolean.TRUE)) {
   private static final long serialVersionUID = 1L;
 
   @Override
   protected void onUpdate(AjaxRequestTarget target) {
   
 setVersioned(this.getModelObject().booleanValue());
   }
   
   });
   setVersioned(true);
   }
   
   
 
   
 }
 
 
 
 TestApplication.java
 
 import org.apache.wicket.Page;
 import org.apache.wicket.Request;
 import org.apache.wicket.Response;
 import org.apache.wicket.Session;
 import org.apache.wicket.protocol.http.WebApplication;
 
 public class TestApplication extends WebApplication {
 
   @Override
   public Class? extends Page getHomePage() {
   return TestPage.class;
   }
   
 }
 
 TestPage.html
 
 html
   xmlns=http://www.w3.org/1999/xhtml;  
   xmlns:wicket=http://wicket.apache.org/;
 !-- Basis-side som inneholder navigasjonssti --
   head
   titleTestside/title
 /head
 body
# + nbsp;0
   p class=portlet-fontDenne portleten har hashCode lik 34563./p
   p class=portlet-fontinput type=checkbox 
 class=portlet-form-field
 wicket:id=versioned Versjonert/p
 /body
 /html
 
 
 Please suggest me the way how to handle the refresh 

Re: Problem with Crypted URL

2008-11-24 Thread Johan Compagner
hmm weird, wasnt merged yet with 4.1
thought i did that with the big merge.

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

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


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

Re: Set the HTML id programmatically

2008-11-24 Thread Martin Letendre

Works fine: thank you !


igor.vaynberg wrote:
 
 also need to call setoutputmarkupid(true)
 
 -igor
 
 On Fri, Nov 21, 2008 at 12:08 PM, Martin Letendre
 [EMAIL PROTECTED] wrote:

 I am usign this version of Wicket: 1.3.5

 1- I would like to override an id for a TextArea programmatically

 textarea   wicket:id=description
id=toOverride
name=description
rows=10
cols=50   /textarea


 2- In my java code I tried this method

TextArea description =  new TextArea(description);
description.setMarkupId(myDescription);
form.add(description);


 3- But it's not setting anything... Here is the generated HTML

 textarea cols=50 rows=10 wicket:id=description name=description
 id=toOverride/textarea

 :confused:

 Question: Is it possible to override the id programatically. Because it
 would be usefull in my integration between YUI and Wicket...


 --
 View this message in context:
 http://www.nabble.com/Set-the-HTML-id-programmatically-tp20628692p20628692.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Set-the-HTML-id-programmatically-tp20628692p20665440.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: ajax busy indicator never stops in IE

2008-11-24 Thread Karol Wiszowaty

The problem is in wicket-ajax.js file. In 1.4-rc1 it is line #1448:
if (typeof(id) == string  id.length  0) {
Change it to:
if ((typeof(id) == String || typeof(id) == string)  id.length  0) {

and it all works.
Cheers!


miro wrote:
 
 My  page has IndicatingAjaxLinkWhen user clicks on this  link   the
 busy indicator never stops , it works fine in firefox 
 
 here some html
 
   tbody 
 wicket:id=auditInfoContainer
 style=width:100%;height:556;overflow:auto; 
   wicket:container 
 wicket:id=auditInfos
   tr 
 wicket:id=auditInfo  height=10 
   
 td
   
 
   
 /td   
   
 td
   
 
   
 /td   
   
 td
   
 
   
 /td
   
 td
   
 
   
 /td
   
 td
   
 
   
 /td
   
 td
   
 
   
 /td
   
 td
   
 
   
 /td
   
 td
   
 
   
 /td
   
 td
   
 
   
 /td
   /tr
   /wicket:container 
   /tbody
 auditInfo   is the link .
 
 I am using wicket 1.3.5  
 

-- 
View this message in context: 
http://www.nabble.com/ajax-busy-indicator-never-stops-in-IE-tp20485948p20665553.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Problem with Crypted URL

2008-11-24 Thread francisco treacy
johan, i'm not sure i understand correctly.

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

francisco

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

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

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


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

Re: Display two modal windows in one request

2008-11-24 Thread Per Newgro
On Monday 24 November 2008 15:20:11 Martin Sachs wrote:
 Hi,

 we have had the same issue. We are solving this Problem with a little
 workaround in the Wicket-Source.

 We also created a ticket with our solution for this problem.

 https://issues.apache.org/jira/browse/WICKET-1771

 The problem was, that the close would be excecuted in Javascript with a
 timeout and the create doent do the timeout. So if you close and create a
 modalwindow you would ever create and close the window.

 Martin S.
Thank you Martin,

i'll give it a try.

Cheers
Per


[VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-24 Thread Jeremy Thomerson
Hello everyone,
  I would like to get your opinion on an idea regarding the Wicket Stuff
project(s).  As you are familiar with, Wicket Stuff is where anyone can
create anything related to Wicket, small or large.  One problem that new
users of Wicket (and us old users) come across is that there is a lot of
stuff in there, and not all of it is well maintained, and there aren't
specific releases of many of the projects.  So, you have to build it
yourself and figure out which version matches which Wicket version, etc...

  What I would like to know is if everyone thinks it would be good to have a
subset of WS projects that are structured in a way that they are always in
sync with the Wicket versions.  IOW, there would be two branches - 1.3.X and
1.4 (trunk), just like Wicket has.  There would be a parent module and all
of the modules that wanted to participate would be structured under it.
They would all release in sync with Wicket.  For instance, when Wicket
releases 1.4-RC2, we would cut a release of this wicket-stuff-structured
(bad name) and all of the projects under it at 1.4-RC2.  I haven't yet
figured out how interim releases would work (new features are added to a WS
project and it wants to cut a release between wicket releases) or if that
matters.

  This would not have to effect all WS projects - someone could continue to
add projects to WS just like they do today.  This would simply create a
sub-tree of projects that are in the structured / scheduled release area.
For those that don't want to be part of that structure, they could continue
operating as they do today.

So, here's the vote:

[ ] - NO!  We should leave Wicket Stuff like it is - a free-for-all with no
structure
[ ] - YES - I would like to see at least the most used Wicket Stuff projects
structured so that they mirror Wicket, and a release is produced for each
Wicket release.
[ ] - Maybe - I have a better idea (perfect!)

Also - please add the following:
1 - Would you be interested in helping to maintain such a thing. (If we had
two or three of the owners of the larger projects on board, I don't think it
would be too hard to keep the codebase of this in sync with Wicket core.)
2 - What projects do you own (and by your vote we'll see if you want those
projects to be included in this restructuring).

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


Re: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-24 Thread Francisco Diaz Trepat - gmail
[X] - YES - I would like to see at least the most used Wicket Stuff projects
structured so that they mirror Wicket, and a release is produced for each
Wicket release.

On Mon, Nov 24, 2008 at 3:13 PM, Jeremy Thomerson [EMAIL PROTECTED]
 wrote:

 Hello everyone,
  I would like to get your opinion on an idea regarding the Wicket Stuff
 project(s).  As you are familiar with, Wicket Stuff is where anyone can
 create anything related to Wicket, small or large.  One problem that new
 users of Wicket (and us old users) come across is that there is a lot of
 stuff in there, and not all of it is well maintained, and there aren't
 specific releases of many of the projects.  So, you have to build it
 yourself and figure out which version matches which Wicket version, etc...

  What I would like to know is if everyone thinks it would be good to have a
 subset of WS projects that are structured in a way that they are always in
 sync with the Wicket versions.  IOW, there would be two branches - 1.3.X
 and
 1.4 (trunk), just like Wicket has.  There would be a parent module and all
 of the modules that wanted to participate would be structured under it.
 They would all release in sync with Wicket.  For instance, when Wicket
 releases 1.4-RC2, we would cut a release of this wicket-stuff-structured
 (bad name) and all of the projects under it at 1.4-RC2.  I haven't yet
 figured out how interim releases would work (new features are added to a WS
 project and it wants to cut a release between wicket releases) or if that
 matters.

  This would not have to effect all WS projects - someone could continue to
 add projects to WS just like they do today.  This would simply create a
 sub-tree of projects that are in the structured / scheduled release area.
 For those that don't want to be part of that structure, they could continue
 operating as they do today.

 So, here's the vote:

 [ ] - NO!  We should leave Wicket Stuff like it is - a free-for-all with no
 structure
 [ ] - YES - I would like to see at least the most used Wicket Stuff
 projects
 structured so that they mirror Wicket, and a release is produced for each
 Wicket release.
 [ ] - Maybe - I have a better idea (perfect!)

 Also - please add the following:
 1 - Would you be interested in helping to maintain such a thing. (If we had
 two or three of the owners of the larger projects on board, I don't think
 it
 would be too hard to keep the codebase of this in sync with Wicket core.)
 2 - What projects do you own (and by your vote we'll see if you want those
 projects to be included in this restructuring).

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



Re: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-24 Thread Nino Saturnino Martinez Vazquez Wael
Argh that should have been  = igor did a release prior to the 1.4 
initial release, called 1.3 or something..


Nino Saturnino Martinez Vazquez Wael wrote:
[ X ] - YES - I would like to see at least the most used Wicket Stuff 
projects

structured so that they mirror Wicket, and a release is produced for each

But I also believe this is how it are today sort of anyway not so 
strict, but cool with me.. Igor did a branch when the initial release 
of 1-4 were created...


Jeremy Thomerson wrote:

Hello everyone,
  I would like to get your opinion on an idea regarding the Wicket Stuff
project(s).  As you are familiar with, Wicket Stuff is where anyone can
create anything related to Wicket, small or large.  One problem that new
users of Wicket (and us old users) come across is that there is a 
lot of

stuff in there, and not all of it is well maintained, and there aren't
specific releases of many of the projects.  So, you have to build it
yourself and figure out which version matches which Wicket version, 
etc...


  What I would like to know is if everyone thinks it would be good to 
have a
subset of WS projects that are structured in a way that they are 
always in
sync with the Wicket versions.  IOW, there would be two branches - 
1.3.X and
1.4 (trunk), just like Wicket has.  There would be a parent module 
and all

of the modules that wanted to participate would be structured under it.
They would all release in sync with Wicket.  For instance, when Wicket
releases 1.4-RC2, we would cut a release of this wicket-stuff-structured
(bad name) and all of the projects under it at 1.4-RC2.  I haven't yet
figured out how interim releases would work (new features are added 
to a WS
project and it wants to cut a release between wicket releases) or if 
that

matters.

  This would not have to effect all WS projects - someone could 
continue to

add projects to WS just like they do today.  This would simply create a
sub-tree of projects that are in the structured / scheduled release 
area.
For those that don't want to be part of that structure, they could 
continue

operating as they do today.

So, here's the vote:

[ ] - NO!  We should leave Wicket Stuff like it is - a free-for-all 
with no

structure
[ ] - YES - I would like to see at least the most used Wicket Stuff 
projects
structured so that they mirror Wicket, and a release is produced for 
each

Wicket release.
[ ] - Maybe - I have a better idea (perfect!)

Also - please add the following:
1 - Would you be interested in helping to maintain such a thing. (If 
we had
two or three of the owners of the larger projects on board, I don't 
think it
would be too hard to keep the codebase of this in sync with Wicket 
core.)
2 - What projects do you own (and by your vote we'll see if you want 
those

projects to be included in this restructuring).

  




--
-Wicket for love

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


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



RES: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-24 Thread Bruno Cesar Borges
[X] - YES - 
  SR on
and let be Igor the one controlling all releases. :-) 
  /Sarcastic Reply off

-Mensagem original-
De: Jeremy Thomerson [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 24 de novembro de 2008 16:13
Para: users@wicket.apache.org; Wicket Development
Assunto: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?


Hello everyone,
  I would like to get your opinion on an idea regarding the Wicket Stuff
project(s).  As you are familiar with, Wicket Stuff is where anyone can
create anything related to Wicket, small or large.  One problem that new
users of Wicket (and us old users) come across is that there is a lot of
stuff in there, and not all of it is well maintained, and there aren't
specific releases of many of the projects.  So, you have to build it
yourself and figure out which version matches which Wicket version, etc...

  What I would like to know is if everyone thinks it would be good to have a
subset of WS projects that are structured in a way that they are always in
sync with the Wicket versions.  IOW, there would be two branches - 1.3.X and
1.4 (trunk), just like Wicket has.  There would be a parent module and all
of the modules that wanted to participate would be structured under it.
They would all release in sync with Wicket.  For instance, when Wicket
releases 1.4-RC2, we would cut a release of this wicket-stuff-structured
(bad name) and all of the projects under it at 1.4-RC2.  I haven't yet
figured out how interim releases would work (new features are added to a WS
project and it wants to cut a release between wicket releases) or if that
matters.

  This would not have to effect all WS projects - someone could continue to
add projects to WS just like they do today.  This would simply create a
sub-tree of projects that are in the structured / scheduled release area.
For those that don't want to be part of that structure, they could continue
operating as they do today.

So, here's the vote:

[ ] - NO!  We should leave Wicket Stuff like it is - a free-for-all with no
structure
[ ] - YES - I would like to see at least the most used Wicket Stuff projects
structured so that they mirror Wicket, and a release is produced for each
Wicket release.
[ ] - Maybe - I have a better idea (perfect!)

Also - please add the following:
1 - Would you be interested in helping to maintain such a thing. (If we had
two or three of the owners of the larger projects on board, I don't think it
would be too hard to keep the codebase of this in sync with Wicket core.)
2 - What projects do you own (and by your vote we'll see if you want those
projects to be included in this restructuring).

-- 
Jeremy Thomerson
http://www.wickettraining.com
***
Atenção: Esta mensagem foi enviada para uso exclusivo do(s) destinatários(s) 
acima identificado(s),
podendo conter informações e/ou documentos confidencias/privilegiados e seu 
sigilo é protegido por 
lei. Caso você tenha recebido por engano, por favor, informe o remetente e 
apague-a de seu sistema.
Notificamos que é proibido por lei a sua retenção, disseminação, distribuição, 
cópia ou uso sem 
expressa autorização do remetente. Opiniões pessoais do remetente não refletem, 
necessariamente, 
o ponto de vista da CETIP, o qual é divulgado somente por pessoas autorizadas.


Warning: This message was sent for exclusive use of the addressees above 
identified, possibly 
containing information and or privileged/confidential documents whose content 
is protected by law. 
In case you have mistakenly received it, please notify the sender and delete it 
from your system. 
Be noticed that the law forbids the retention, dissemination, distribution, 
copy or use without 
express authorization from the sender. Personal opinions of the sender do not 
necessarily reflect 
CETIP's point of view, which is only divulged by authorized personnel.
***


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



Re: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-24 Thread James Carman
[X] YES

On Mon, Nov 24, 2008 at 1:13 PM, Jeremy Thomerson
[EMAIL PROTECTED] wrote:
 Hello everyone,
  I would like to get your opinion on an idea regarding the Wicket Stuff
 project(s).  As you are familiar with, Wicket Stuff is where anyone can
 create anything related to Wicket, small or large.  One problem that new
 users of Wicket (and us old users) come across is that there is a lot of
 stuff in there, and not all of it is well maintained, and there aren't
 specific releases of many of the projects.  So, you have to build it
 yourself and figure out which version matches which Wicket version, etc...

  What I would like to know is if everyone thinks it would be good to have a
 subset of WS projects that are structured in a way that they are always in
 sync with the Wicket versions.  IOW, there would be two branches - 1.3.X and
 1.4 (trunk), just like Wicket has.  There would be a parent module and all
 of the modules that wanted to participate would be structured under it.
 They would all release in sync with Wicket.  For instance, when Wicket
 releases 1.4-RC2, we would cut a release of this wicket-stuff-structured
 (bad name) and all of the projects under it at 1.4-RC2.  I haven't yet
 figured out how interim releases would work (new features are added to a WS
 project and it wants to cut a release between wicket releases) or if that
 matters.

  This would not have to effect all WS projects - someone could continue to
 add projects to WS just like they do today.  This would simply create a
 sub-tree of projects that are in the structured / scheduled release area.
 For those that don't want to be part of that structure, they could continue
 operating as they do today.

 So, here's the vote:

 [ ] - NO!  We should leave Wicket Stuff like it is - a free-for-all with no
 structure
 [ ] - YES - I would like to see at least the most used Wicket Stuff projects
 structured so that they mirror Wicket, and a release is produced for each
 Wicket release.
 [ ] - Maybe - I have a better idea (perfect!)

 Also - please add the following:
 1 - Would you be interested in helping to maintain such a thing. (If we had
 two or three of the owners of the larger projects on board, I don't think it
 would be too hard to keep the codebase of this in sync with Wicket core.)
 2 - What projects do you own (and by your vote we'll see if you want those
 projects to be included in this restructuring).

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


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



Re: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-24 Thread Nino Saturnino Martinez Vazquez Wael

[ X ] - YES - I would like to see at least the most used Wicket Stuff projects
structured so that they mirror Wicket, and a release is produced for each

But I also believe this is how it are today sort of anyway not so 
strict, but cool with me.. Igor did a branch when the initial release of 
1-4 were created...


Jeremy Thomerson wrote:

Hello everyone,
  I would like to get your opinion on an idea regarding the Wicket Stuff
project(s).  As you are familiar with, Wicket Stuff is where anyone can
create anything related to Wicket, small or large.  One problem that new
users of Wicket (and us old users) come across is that there is a lot of
stuff in there, and not all of it is well maintained, and there aren't
specific releases of many of the projects.  So, you have to build it
yourself and figure out which version matches which Wicket version, etc...

  What I would like to know is if everyone thinks it would be good to have a
subset of WS projects that are structured in a way that they are always in
sync with the Wicket versions.  IOW, there would be two branches - 1.3.X and
1.4 (trunk), just like Wicket has.  There would be a parent module and all
of the modules that wanted to participate would be structured under it.
They would all release in sync with Wicket.  For instance, when Wicket
releases 1.4-RC2, we would cut a release of this wicket-stuff-structured
(bad name) and all of the projects under it at 1.4-RC2.  I haven't yet
figured out how interim releases would work (new features are added to a WS
project and it wants to cut a release between wicket releases) or if that
matters.

  This would not have to effect all WS projects - someone could continue to
add projects to WS just like they do today.  This would simply create a
sub-tree of projects that are in the structured / scheduled release area.
For those that don't want to be part of that structure, they could continue
operating as they do today.

So, here's the vote:

[ ] - NO!  We should leave Wicket Stuff like it is - a free-for-all with no
structure
[ ] - YES - I would like to see at least the most used Wicket Stuff projects
structured so that they mirror Wicket, and a release is produced for each
Wicket release.
[ ] - Maybe - I have a better idea (perfect!)

Also - please add the following:
1 - Would you be interested in helping to maintain such a thing. (If we had
two or three of the owners of the larger projects on board, I don't think it
would be too hard to keep the codebase of this in sync with Wicket core.)
2 - What projects do you own (and by your vote we'll see if you want those
projects to be included in this restructuring).

  


--
-Wicket for love

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


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



RE: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-24 Thread Hoover, William
[X] - YES - I would like to see at least the most used Wicket Stuff
projects structured so that they mirror Wicket, and a release is
produced for each Wicket release.

This should be a no-brainer ;o)

-Original Message-
From: Jeremy Thomerson [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 24, 2008 1:13 PM
To: users@wicket.apache.org; Wicket Development
Subject: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

Hello everyone,
  I would like to get your opinion on an idea regarding the Wicket Stuff
project(s).  As you are familiar with, Wicket Stuff is where anyone can
create anything related to Wicket, small or large.  One problem that new
users of Wicket (and us old users) come across is that there is a lot
of stuff in there, and not all of it is well maintained, and there
aren't specific releases of many of the projects.  So, you have to build
it yourself and figure out which version matches which Wicket version,
etc...

  What I would like to know is if everyone thinks it would be good to
have a subset of WS projects that are structured in a way that they are
always in sync with the Wicket versions.  IOW, there would be two
branches - 1.3.X and
1.4 (trunk), just like Wicket has.  There would be a parent module and
all of the modules that wanted to participate would be structured under
it.
They would all release in sync with Wicket.  For instance, when Wicket
releases 1.4-RC2, we would cut a release of this wicket-stuff-structured
(bad name) and all of the projects under it at 1.4-RC2.  I haven't yet
figured out how interim releases would work (new features are added to a
WS project and it wants to cut a release between wicket releases) or if
that matters.

  This would not have to effect all WS projects - someone could continue
to add projects to WS just like they do today.  This would simply create
a sub-tree of projects that are in the structured / scheduled release
area.
For those that don't want to be part of that structure, they could
continue operating as they do today.

So, here's the vote:

[ ] - NO!  We should leave Wicket Stuff like it is - a free-for-all with
no structure [ ] - YES - I would like to see at least the most used
Wicket Stuff projects structured so that they mirror Wicket, and a
release is produced for each Wicket release.
[ ] - Maybe - I have a better idea (perfect!)

Also - please add the following:
1 - Would you be interested in helping to maintain such a thing. (If we
had two or three of the owners of the larger projects on board, I don't
think it would be too hard to keep the codebase of this in sync with
Wicket core.)
2 - What projects do you own (and by your vote we'll see if you want
those projects to be included in this restructuring).

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


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



Re: ics-wicket-examples: beginner wicket examples available

2008-11-24 Thread Eelco Hillenius
Hi Philip,

Really great to see our work being put to good use!

Thanks!

Eelco

On Sun, Nov 23, 2008 at 10:03 AM, PhilipJohnson [EMAIL PROTECTED] wrote:

 Greetings all,

 I teach software engineering and I've assigned a simple webapp using Wicket
 to my students this semester. To help them bootstrap, I created a Google
 Project with an initial set of simple examples for them to look at.  I
 thought I would post a link here in case others might find it of use:

 http://code.google.com/p/ics-wicket-examples/
 http://code.google.com/p/ics-wicket-examples/

 These examples conform to the conventions for my class, including:
  * Ant-based, no use of Maven.
  * Test cases (using WicketTester) with 100% coverage
  * Conforms to class coding standards checked by Checkstyle, PMD, and
 FindBugs.

 The book Wicket In Action is required for the class, and so one of the
 examples is the Cheesr application from that book re-worked slightly to
 conform to the above coding standards.

 If you see a way to improve an example, or have a self-contained, short
 example code that you think might be useful to the class, I would love to
 learn about it.   I don't read this list regularly, so please contact me at
 [EMAIL PROTECTED], or simply post an Issue to the ics-wicket-examples
 project. I teach this class every year and intend to maintain and add to
 this set of examples for quite a while.

 If you would like to read about the students' initial reactions to using
 wicket, they are required to post a blog entry by tomorrow.  Here's one
 student's summary:

 http://ronnreeves.blogspot.com/2008/11/mystackcom-sic-wicket-webapp.html
 http://ronnreeves.blogspot.com/2008/11/mystackcom-sic-wicket-webapp.html

 A directory to all of their blogs (some have not posted their entry for this
 assignment yet) is available here:

 http://groups.google.com/group/ics-software-engineering-fall-2008/web/00-engineering-log
 http://groups.google.com/group/ics-software-engineering-fall-2008/web/00-engineering-log

 I have found the Wicket community to be very helpful and responsive as I've
 learned about the framework, and I hope this can partially return the favor
 by helping others get started easily.

 Philip Johnson

 --
 View this message in context: 
 http://www.nabble.com/ics-wicket-examples%3A--beginner-wicket-examples-available-tp20648922p20648922.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



DateTimeField and java.util.Calendar

2008-11-24 Thread Eduardo Simioni
Hi all,

I'm trying to use the DateTimeField from the wicket-datetime project. But I
realized that it's stuck to java.util.Date, all my entities use
java.util.Calendar to store dates. So the question is: Is there a clean way
to work with DateTimeField and java.util.Calendar targets?
I tried to find something in the list archive but looks like everybody uses
java.util.Date, or I'm missing something silly.

Thanks!

Eduardo.*
*


Re: DateTimeField and java.util.Calendar

2008-11-24 Thread Igor Vaynberg
write a model that converts to and from.

-igor

On Mon, Nov 24, 2008 at 12:30 PM, Eduardo Simioni
[EMAIL PROTECTED] wrote:
 Hi all,

 I'm trying to use the DateTimeField from the wicket-datetime project. But I
 realized that it's stuck to java.util.Date, all my entities use
 java.util.Calendar to store dates. So the question is: Is there a clean way
 to work with DateTimeField and java.util.Calendar targets?
 I tried to find something in the list archive but looks like everybody uses
 java.util.Date, or I'm missing something silly.

 Thanks!

 Eduardo.*
 *


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



Re: DateTimeField and java.util.Calendar

2008-11-24 Thread Jeremy Thomerson
Yes - this would be a perfect time for a nested model - write a generic
model that implements IModelDate and takes an IModelCalendar as its
input.

See
http://www.jeremythomerson.com/blog/2008/11/06/wicket-the-power-of-nested-models/
for
assistance with the rest.

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




On Mon, Nov 24, 2008 at 3:08 PM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 write a model that converts to and from.

 -igor

 On Mon, Nov 24, 2008 at 12:30 PM, Eduardo Simioni
 [EMAIL PROTECTED] wrote:
  Hi all,
 
  I'm trying to use the DateTimeField from the wicket-datetime project. But
 I
  realized that it's stuck to java.util.Date, all my entities use
  java.util.Calendar to store dates. So the question is: Is there a clean
 way
  to work with DateTimeField and java.util.Calendar targets?
  I tried to find something in the list archive but looks like everybody
 uses
  java.util.Date, or I'm missing something silly.
 
  Thanks!
 
  Eduardo.*
  *
 

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




Odd number of page parameters - why IllegalStateException ?

2008-11-24 Thread Stefan Simik

Hi all,

I would like to ask,
why the default URL strategy throws IllegalStateException, when there is odd
number of parameters ?

We have a problem with this way handling, because our users rewrite URLs
manually 
(we cannot prevent users from doing this).

Our pages are stateless and they don't use any parameters - BUT there are
throwing exceptions
and showing InternalErrorPage-s. It is presented like a serious problem like
DB, or like service failed
but there is no problem actually - only parameters, that are not used.

I think, that page parameters should not result in INTERNAL ERROR, 
because there are many cases, where this is not relevant.
There should be an alternative way - some custom handling or ignoring
parameters in such a situation.

What do you think about this problem ?

Thanks




-- 
View this message in context: 
http://www.nabble.com/Odd-number-of-page-parameters---why-IllegalStateException---tp20671254p20671254.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Proper place to post questions about Wicket in Action examples?

2008-11-24 Thread James Carman
I'd say this forum is fine for questions about WIA.  Most of us are
quite familiar with the book.

On Mon, Nov 24, 2008 at 5:42 PM, Susan Liebeskind
[EMAIL PROTECTED] wrote:
 Should I be posting on the Wicket in Action forum on the Manning Publishing
 website? That forum doesn't look very active.
 Or should I post them on this site which receives many more eyeballs?

 I have noticed a problem with the back button in the Cheesr example (appears
 in the version I built for 1.3.5 as well as the one I've fixed up to work
 with 1.4rc1) and am not sure if/where I should mention this.



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



quit email list

2008-11-24 Thread fish3934
Dear All,
I would like to quit this email list temporarily. I try to send email to
[EMAIL PROTECTED] , but failed. Can anyone tell me how I
can quit email list?

Best regards,



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



ImageButton - always stateful ?

2008-11-24 Thread Stefan Simik

Hi all,

I would like to ask, why ImageButton is stateful ?


THE CODE IN ImageButton
---

protected boolean getStatelessHint()
{
  return getImageResource() == null 
localizedImageResource.isStateless();
}

The method #getImageResource() return never null, so the whole method
returns always false and the
component is marked as stateful.

I use the component this way:

ImageButton submitButton = new ImageButton(submitButton, new
ResourceReference(VyhladatDomenuPanel.class, images/Search.png));
form.add(submitButton);

I know, that ImageButton uses Locale/Style to find the right image, but what
should be done, if I don't want ImageButton to be stateful ?
(problem is, that that this ImageButton binds new session, what is unwanted
behavior)

Thanx.





-- 
View this message in context: 
http://www.nabble.com/ImageButton---always-stateful---tp20674146p20674146.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Odd number of page parameters - why IllegalStateException ?

2008-11-24 Thread Igor Vaynberg
we can return a 404 instead i suppose. create a jira issue.

-igor

On Mon, Nov 24, 2008 at 2:25 PM, Stefan Simik [EMAIL PROTECTED] wrote:

 Hi all,

 I would like to ask,
 why the default URL strategy throws IllegalStateException, when there is odd
 number of parameters ?

 We have a problem with this way handling, because our users rewrite URLs
 manually
 (we cannot prevent users from doing this).

 Our pages are stateless and they don't use any parameters - BUT there are
 throwing exceptions
 and showing InternalErrorPage-s. It is presented like a serious problem like
 DB, or like service failed
 but there is no problem actually - only parameters, that are not used.

 I think, that page parameters should not result in INTERNAL ERROR,
 because there are many cases, where this is not relevant.
 There should be an alternative way - some custom handling or ignoring
 parameters in such a situation.

 What do you think about this problem ?

 Thanks




 --
 View this message in context: 
 http://www.nabble.com/Odd-number-of-page-parameters---why-IllegalStateException---tp20671254p20671254.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



wicket, mootips and a NoSuchMethodError

2008-11-24 Thread rvieregge

A newbie needs some help here...

I've an existing application that uses wicket 1.3.5, and I've tried to add a
simple (non-ajax) tooltip using mootips from wicketstuff-minis-1.4-SNAPSHOT.

Here's my code:
Label projectLabel = new Label(projectName,
projectStatus.getProjectAssignment().getProject().getName());
projectLabel.add(new MootipBehaviour(Tooltip Title, Tooltip contents.));

Debugging this in eclipse, the label gets added, a MootipBehaviour gets
created and added to the label component. The component add calls the
MootipBehaviour's bind, which does an add of an AttributeModifer to change
the title. That's where it blows up:

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

org.wicketstuff.minis.mootipbehavior.MootipBehaviour.bind(MootipBehaviour.java:138)
org.apache.wicket.Component.add(Component.java:929)

net.rrm.ehour.ui.panel.overview.projectoverview.ProjectOverviewPanel$1.populateItem(ProjectOverviewPanel.java:242)

org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:573)

org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:127)
org.apache.wicket.Component.internalBeforeRender(Component.java:1002)
org.apache.wicket.Component.beforeRender(Component.java:1034)
...

I don't see how I'm missing the Component.add(IBehavoiur) method. Is it
because I'm using wicketstuff-minis.1.4-SNAPSHOT? I don't see an older
version of mootips. Do I need to recompile mootips or all of
wicketstuff-minis? 

Or am I completely on the wrong track?

Thanks...
Richard
-- 
View this message in context: 
http://www.nabble.com/wicket%2C-mootips-and-a-NoSuchMethodError-tp20674603p20674603.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Odd number of page parameters - why IllegalStateException ?

2008-11-24 Thread Stefan Simik

oki, thx
https://issues.apache.org/jira/browse/WICKET-1957



igor.vaynberg wrote:
 
 we can return a 404 instead i suppose. create a jira issue.
 
 -igor
 
 On Mon, Nov 24, 2008 at 2:25 PM, Stefan Simik [EMAIL PROTECTED]
 wrote:

 Hi all,

 I would like to ask,
 why the default URL strategy throws IllegalStateException, when there is
 odd
 number of parameters ?

 We have a problem with this way handling, because our users rewrite URLs
 manually
 (we cannot prevent users from doing this).

 Our pages are stateless and they don't use any parameters - BUT there are
 throwing exceptions
 and showing InternalErrorPage-s. It is presented like a serious problem
 like
 DB, or like service failed
 but there is no problem actually - only parameters, that are not used.

 I think, that page parameters should not result in INTERNAL ERROR,
 because there are many cases, where this is not relevant.
 There should be an alternative way - some custom handling or ignoring
 parameters in such a situation.

 What do you think about this problem ?

 Thanks




 --
 View this message in context:
 http://www.nabble.com/Odd-number-of-page-parameters---why-IllegalStateException---tp20671254p20671254.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Odd-number-of-page-parameters---why-IllegalStateException---tp20671254p20674964.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-24 Thread Per Ejeklint


[X] - YES - I would like to see at least the most used Wicket Stuff projects
structured so that they mirror Wicket, and a release is produced for each
Wicket release.

-- 
View this message in context: 
http://www.nabble.com/-VOTE--Organizing-Wicket-Stuff---Regular-Release-Schedule--tp20666510p20676088.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-24 Thread Marat Radchenko
[X] YES

2008/11/24 Jeremy Thomerson [EMAIL PROTECTED]:
 Hello everyone,
  I would like to get your opinion on an idea regarding the Wicket Stuff
 project(s).  As you are familiar with, Wicket Stuff is where anyone can
 create anything related to Wicket, small or large.  One problem that new
 users of Wicket (and us old users) come across is that there is a lot of
 stuff in there, and not all of it is well maintained, and there aren't
 specific releases of many of the projects.  So, you have to build it
 yourself and figure out which version matches which Wicket version, etc...

  What I would like to know is if everyone thinks it would be good to have a
 subset of WS projects that are structured in a way that they are always in
 sync with the Wicket versions.  IOW, there would be two branches - 1.3.X and
 1.4 (trunk), just like Wicket has.  There would be a parent module and all
 of the modules that wanted to participate would be structured under it.
 They would all release in sync with Wicket.  For instance, when Wicket
 releases 1.4-RC2, we would cut a release of this wicket-stuff-structured
 (bad name) and all of the projects under it at 1.4-RC2.  I haven't yet
 figured out how interim releases would work (new features are added to a WS
 project and it wants to cut a release between wicket releases) or if that
 matters.

  This would not have to effect all WS projects - someone could continue to
 add projects to WS just like they do today.  This would simply create a
 sub-tree of projects that are in the structured / scheduled release area.
 For those that don't want to be part of that structure, they could continue
 operating as they do today.

 So, here's the vote:

 [ ] - NO!  We should leave Wicket Stuff like it is - a free-for-all with no
 structure
 [ ] - YES - I would like to see at least the most used Wicket Stuff projects
 structured so that they mirror Wicket, and a release is produced for each
 Wicket release.
 [ ] - Maybe - I have a better idea (perfect!)

 Also - please add the following:
 1 - Would you be interested in helping to maintain such a thing. (If we had
 two or three of the owners of the larger projects on board, I don't think it
 would be too hard to keep the codebase of this in sync with Wicket core.)
 2 - What projects do you own (and by your vote we'll see if you want those
 projects to be included in this restructuring).

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


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



Re: wicket, mootips and a NoSuchMethodError

2008-11-24 Thread Nino Saturnino Martinez Vazquez Wael

Hi Ricard

As is now, mootips are compiled against wicket 1.4 and thus incompatible 
with the 1.3 branch. So you are completely correct. But it should be 
somewhat easy to make it compile against 1.3..


regards Nino

rvieregge wrote:

A newbie needs some help here...

I've an existing application that uses wicket 1.3.5, and I've tried to add a
simple (non-ajax) tooltip using mootips from wicketstuff-minis-1.4-SNAPSHOT.

Here's my code:
Label projectLabel = new Label(projectName,
projectStatus.getProjectAssignment().getProject().getName());
projectLabel.add(new MootipBehaviour(Tooltip Title, Tooltip contents.));

Debugging this in eclipse, the label gets added, a MootipBehaviour gets
created and added to the label component. The component add calls the
MootipBehaviour's bind, which does an add of an AttributeModifer to change
the title. That's where it blows up:

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

org.wicketstuff.minis.mootipbehavior.MootipBehaviour.bind(MootipBehaviour.java:138)
org.apache.wicket.Component.add(Component.java:929)

net.rrm.ehour.ui.panel.overview.projectoverview.ProjectOverviewPanel$1.populateItem(ProjectOverviewPanel.java:242)

org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:573)

org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:127)
org.apache.wicket.Component.internalBeforeRender(Component.java:1002)
org.apache.wicket.Component.beforeRender(Component.java:1034)
...

I don't see how I'm missing the Component.add(IBehavoiur) method. Is it
because I'm using wicketstuff-minis.1.4-SNAPSHOT? I don't see an older
version of mootips. Do I need to recompile mootips or all of
wicketstuff-minis? 


Or am I completely on the wrong track?

Thanks...
Richard
  


--
-Wicket for love

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


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



SOLUTION:Hibernate Lazy initialazation issues and multi page wizard!

2008-11-24 Thread Nino Saturnino Martinez Vazquez Wael

Hi Guys

I've been having a little trouble with hibernate and a multipage wizard, 
I finally cracked the nut. And heres my solution:


In the link that refers to the wizard use a loadable detachable model.. 
Onclick you initialize all proper collections and CLONE the object, 
after the wizard are done you merge the clone..


codesniplet:

   LinkEvent linkEdit = new LinkEvent(edit, 
item.getModel()) {

   @Override
   public void onClick() {
   LoadableDetachableEventModel model=new 
LoadableDetachableEventModel(eventRepository,this.getModelObject());
  
   Hibernate.initialize(((Event)model.getObject())

   .getLinks());
   Hibernate.initialize(((Event)model.getObject())
   .getDateStart());
   Hibernate.initialize(((Event)model.getObject())
   .getDateEnd());
   Hibernate.initialize(((Event)model.getObject())
   .getTags());

   ModelEvent eventModel = new ModelEvent(
   (Event) 
SerializationHelper.clone((Event) model.getObject()));
   CompoundPropertyModelEvent e = new 
CompoundPropertyModelEvent(

   eventModel);
   EventWizard newWizard = new EventWizard(eventWizard
   .getId(), e) {
   @Override
   public void onFinish() {
   
eventRepository.update(eventModel.getObject());

   eventWizard.setVisible(false);
   }
   };
   newWizard.setVisible(true);
   eventWizard.getPage().addOrReplace(newWizard);
   eventWizard = newWizard;

   }
   };


--
-Wicket for love

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


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



Panel's read more link

2008-11-24 Thread Anton Veretennikov
Hi,

I want to make a read more link that will make visible initially hidden label.
Running debugger I found that my Panel's constructor is called every
time I click this link.
So it again invisible.
What is wrong?

public class ReadMoreWicketPanel extends WicketPanel {
  private Label moreTextLabel;

  public ReadMoreWicketPanel(String id,
 String title,
 boolean escapeTitle,
 String text,
 boolean escapeText,
 String moreText,
 boolean escapeMoreText) {
super(id, title, escapeTitle, text, escapeText);
add(new Link(readMoreLink) {
  @Override
  public void onClick() {
boolean is=moreTextLabel.isVisible();
moreTextLabel.setVisible(!is);
  }
});
moreTextLabel=new Label(readMoreText,moreText);
moreTextLabel.setEscapeModelStrings(escapeMoreText);
moreTextLabel.setVisible(false);
add(moreTextLabel);
  }
}

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