Re: When NOT to use models ?

2009-10-27 Thread Michael Mosmann
Am Montag, den 26.10.2009, 10:24 +0200 schrieb Martin Makundi:
  Hmm, maybe I'm missing something, but if you want to have EVALUATED once per
  request, I think the following should be sufficient. (unless I'm missing
  somtething)
 
 I want a generic centrally managed solution. I don't want to cache
 every model manually.

we are using this one:

http://www.wicket-praxis.de/blog/2009/01/03/modell-referenzen/

it's more like an model graph.. so you say

IModelListSomething dataFromDB=new LoadableDetachedModel() ...
IModelInteger countModel=new
CascadingLoad..ModelInteger,ListSomething(dataFromDB);
add(new Label(counter,countModel));

countModel.detach() is called from Label, and dataFromDB.detach() is
called fram countModel.

Because it's generic you can use it everywhere..

mm:)


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



Re: Wicket-stuff site down?

2009-10-27 Thread nino martinez wael
Yeah it does look that way. Anyone around to take a look at the server?

2009/10/27 Brill Pappin br...@pappin.ca

 I don't think this is maintenance, unless they have an extremely long
 running SQL export or something.
 I'd say broken at this point.

 - Brill



 On 2009-10-26, at 7:26 PM, nino martinez wael wrote:

  Here aswell ? argh : http://wicketstuff.org/confluence/errors.jsp

 2009/10/26 Jeremy Thomerson jer...@wickettraining.com

  Yes

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



 On Mon, Oct 26, 2009 at 11:08 AM, Brill Pappin br...@pappin.ca wrote:

  Is the Wicket-stuff site down for anyone else?

 - Brill

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





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




Re: Wicket-stuff site down?

2009-10-27 Thread Johan Compagner
i already did that
its up again but it was AGAIN disk full problems
and that is because of that STUPID maven that generates unique snapshots

Who is the maven expert here that will FIX that problems on all our pom
files?
i have been deleting stuff now for at least 1 hour!

johan


On Tue, Oct 27, 2009 at 10:23, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 Yeah it does look that way. Anyone around to take a look at the server?

 2009/10/27 Brill Pappin br...@pappin.ca

  I don't think this is maintenance, unless they have an extremely long
  running SQL export or something.
  I'd say broken at this point.
 
  - Brill
 
 
 
  On 2009-10-26, at 7:26 PM, nino martinez wael wrote:
 
   Here aswell ? argh : http://wicketstuff.org/confluence/errors.jsp
 
  2009/10/26 Jeremy Thomerson jer...@wickettraining.com
 
   Yes
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Mon, Oct 26, 2009 at 11:08 AM, Brill Pappin br...@pappin.ca
 wrote:
 
   Is the Wicket-stuff site down for anyone else?
 
  - Brill
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: Isssues in Modal Window display in IE8

2009-10-27 Thread vela

Hello again,

Wicket 1.3 is used
-- 
View this message in context: 
http://www.nabble.com/Isssues-in-Modal-Window-display-in-IE8-tp26047156p26074763.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket-stuff site down?

2009-10-27 Thread Martin Grigorov
There was only one distributionManagement in wicketstuff-core/pom.xml
(and sub-modules) without the needed setting:

snapshotRepository
idwicketstuff-org-maven/id

urlscpexe://wicketstuff.org/home/wicket/tomcat/webapps/maven/repository/url
uniqueVersionfalse/uniqueVersion
/snapshotRepository

Now I'll check the projects which are not in wicketstuff-core.

El mar, 27-10-2009 a las 10:41 +0100, Johan Compagner escribió:
 i already did that
 its up again but it was AGAIN disk full problems
 and that is because of that STUPID maven that generates unique snapshots
 
 Who is the maven expert here that will FIX that problems on all our pom
 files?
 i have been deleting stuff now for at least 1 hour!
 
 johan
 
 
 On Tue, Oct 27, 2009 at 10:23, nino martinez wael 
 nino.martinez.w...@gmail.com wrote:
 
  Yeah it does look that way. Anyone around to take a look at the server?
 
  2009/10/27 Brill Pappin br...@pappin.ca
 
   I don't think this is maintenance, unless they have an extremely long
   running SQL export or something.
   I'd say broken at this point.
  
   - Brill
  
  
  
   On 2009-10-26, at 7:26 PM, nino martinez wael wrote:
  
Here aswell ? argh : http://wicketstuff.org/confluence/errors.jsp
  
   2009/10/26 Jeremy Thomerson jer...@wickettraining.com
  
Yes
  
   --
   Jeremy Thomerson
   http://www.wickettraining.com
  
  
  
   On Mon, Oct 26, 2009 at 11:08 AM, Brill Pappin br...@pappin.ca
  wrote:
  
Is the Wicket-stuff site down for anyone else?
  
   - Brill
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 


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



GuiceInjector

2009-10-27 Thread uud ashr
Hi,

I need to use InjectorHolder.getInjector().inject(...) but I'm using Guice
(not Spring), I searching trough the code but I can't find how to do
InjectorHolder.setInjector(...a guice injector...).
Can someone (comitters) add GuiceInjector, it will be looks like:

import org.apache.wicket.injection.ConfigurableInjector;

import org.apache.wicket.injection.IFieldValueFactory;


import com.google.inject.Injector;



public class GuiceInjector extends ConfigurableInjector {

private final Injector injector;

public GuiceInjector(Injector injector) {

this.injector = injector;

}



@Override

public Object inject(Object object) {

injector.injectMembers(object);

return object;

}



@Override

protected IFieldValueFactory getFieldValueFactory() {

// You don't have to do nothing here

return null;

}

}


It just wrapper class.

Thanks  Regards,
uudashr


Re: Wicket-stuff site down?

2009-10-27 Thread Martin Grigorov
One more fixed: wicketstuff-animator/pom.xml

According to http://maven.apache.org/pom.html#Distribution_Management
these fixes should be enough.

@Johan: if the build still produces unique versions of the snapshots
please tell us which are the problematic projects. 

El mar, 27-10-2009 a las 12:48 +0200, Martin Grigorov escribió:
 There was only one distributionManagement in wicketstuff-core/pom.xml
 (and sub-modules) without the needed setting:
 
 snapshotRepository
   idwicketstuff-org-maven/id
 
 urlscpexe://wicketstuff.org/home/wicket/tomcat/webapps/maven/repository/url
   uniqueVersionfalse/uniqueVersion
 /snapshotRepository
 
 Now I'll check the projects which are not in wicketstuff-core.
 
 El mar, 27-10-2009 a las 10:41 +0100, Johan Compagner escribió:
  i already did that
  its up again but it was AGAIN disk full problems
  and that is because of that STUPID maven that generates unique snapshots
  
  Who is the maven expert here that will FIX that problems on all our pom
  files?
  i have been deleting stuff now for at least 1 hour!
  
  johan
  
  
  On Tue, Oct 27, 2009 at 10:23, nino martinez wael 
  nino.martinez.w...@gmail.com wrote:
  
   Yeah it does look that way. Anyone around to take a look at the server?
  
   2009/10/27 Brill Pappin br...@pappin.ca
  
I don't think this is maintenance, unless they have an extremely long
running SQL export or something.
I'd say broken at this point.
   
- Brill
   
   
   
On 2009-10-26, at 7:26 PM, nino martinez wael wrote:
   
 Here aswell ? argh : http://wicketstuff.org/confluence/errors.jsp
   
2009/10/26 Jeremy Thomerson jer...@wickettraining.com
   
 Yes
   
--
Jeremy Thomerson
http://www.wickettraining.com
   
   
   
On Mon, Oct 26, 2009 at 11:08 AM, Brill Pappin br...@pappin.ca
   wrote:
   
 Is the Wicket-stuff site down for anyone else?
   
- Brill
   
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
   
   
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
  
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


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



Re: Setup for stepping into wicket source in eclipse

2009-10-27 Thread Nicolas Melendez
is your build automatically checked?

On Mon, Oct 26, 2009 at 1:07 AM, Flavius flav...@silverlion.com wrote:


 I am trying to debug an issue and am trying to step into wicket
 from my project.  However, the line numbers are not matching
 up with the source I have.  I've done this several times with other
 projects and this is indicative of having the wrong version of the
 source vs. the jar file.

 I am using eclipse version 3.5.0.v20090611a.  I'm also using
 jdk1.6.0_14.

 My project is setup as a java web project and I have a webapp/
 WEB-INF/lib dir with my jars.  These include wicket-1.4.3.jar,
 wicket-extensions-1.4.3.jar, and wicket-datetime-1.4.3.jar.  If I
 remove the wicket jar, the project can no longer identify any
 of the org.apache.wicket.* imports.  This tells me that it isn't
 getting a reference to derived classes.

 If I then either put the wicket jar back and set the source to the
 wicket-sources.jar or simply link to the
 apache-wicket-1.4.3\src\wicket\src\main\java, I still get the same
 result.

 As an example, when I CTRL-click on setDefaultModelObject(), it
 takes me to Component.class line 3022.  I can see it going to
 wicket-1.4.3.jar org.apache.wicket.Component in my Package
 Explorer.  However, when I actually run the code and step into
 that method (having attached the wicket-sources.jar), the method
 setDefaultModelObject is actually on line 3031.

 I've gone into the wicket src dir for wicket 1.4.3 and built the wicket
 jar and sources and pulled them from the target dir and still get the
 same results.

 Can anybody offer any insight into this?


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




Force page expiration

2009-10-27 Thread Tomás Rossi

Hi, I have another question...

in Wicket (1.4.2), can I force the expiration of a page?
Specifically, if users hit browser's back-button, I'd like to show them 
the page-expired message.


I've already tried to invalidate the session, but I got a horrible 
exception when re-submitting the form after reaching it through the back 
button.


Thanks in advance,
--
Tom;



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



Re: container based authentication

2009-10-27 Thread PDiefent


I've uploaded a little Eclipse Project without WEB-INF/lib/libraries -
perhaps anybody can help to get it running ...



PDiefent wrote:
 
 
 Hello,
 I try to secure my wicket appication with container based authentication.
 The problem is, that all users can log also if they don't have the right
 role.
 
 In my login.html I use following form action:
   form action=login/j_security_check method=post
 
 If I change the security-constraint - url-pattern from /login to /*,
 the security check works, but I don't get any page displayed
 (images/leer.gif not found).
  Also the login page doesn't render complete because all images are
 blocked.
 
 It would be nice if their is an example for the correct use of the
 container based authentication. The often statet example in
 
 http://cwiki.apache.org/WICKET/servlet-container-authentication.html
 
 doesn't work!
 
 
 
 The configuration for Apache Tomcat 6.xx:
 
 ?xml version=1.0 encoding=UTF-8?
 tomcat-users
   role rolename=MyWeb/
   role rolename=manager/
   role rolename=admin/
   role rolename=TheirWeb/
   user username=zorro password=zorro roles=MyWeb/
   user username=Pete password=Pete roles=TheirWeb/
   user username=Pete1 password=Pete1 roles=MyWeb/
   user username=admin password=admin roles=admin,manager/
 /tomcat-users
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
http://www.nabble.com/file/p26078586/SimpleApp.zip SimpleApp.zip 
-- 
View this message in context: 
http://www.nabble.com/container-based-authentication-tp26010834p26078586.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



urlFor(ResourceReference) strangeness

2009-10-27 Thread pieter claassen
WHen I start my application, my urlFor() returns a different URL than when I
call it a second time?

ResourceReference iconref = new ResourceReference(anchorclass,
iconname);
System.out.println(URL: +urlFor(iconref));

First time it returns:
URL:
../../../resources/com.musmato.wicket.pages.styles.option1.Option1StyleAnchor/document.png

second time:
URL:
resources/com.musmato.wicket.pages.styles.option1.Option1StyleAnchor/document.png

Any ideas?

Thanks
Pieter
--


Re: Force page expiration

2009-10-27 Thread Pedro Santos
The page returned from back button came from pagemap. Make sure to remove it
from there and you get the expired exception.

On Tue, Oct 27, 2009 at 11:57 AM, Tomás Rossi tro...@mecon.gov.ar wrote:

 Hi, I have another question...

 in Wicket (1.4.2), can I force the expiration of a page?
 Specifically, if users hit browser's back-button, I'd like to show them the
 page-expired message.

 I've already tried to invalidate the session, but I got a horrible
 exception when re-submitting the form after reaching it through the back
 button.

 Thanks in advance,
 --
 Tom;



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




-- 
Pedro Henrique Oliveira dos Santos


Check(box) loses checked state after error

2009-10-27 Thread Matthias Keller

Hi

I'm using a CheckGroup together with a few Check in a repeater because 
the number of boxes displayed is dynamic.
This works fine and the data gets stored in the model correctly when 
submitting.
However, if another form component fails in the validation, all 
checkboxes are getting unchecked.
It seems the uuid increased after the error and does not match the 
submitted data anymore.
In Check.onComponentTag(), the  group.hasRawInput() returns true and 
contains for example  check60, check61  but the uuid variable is much 
higher then, vor example 120, resulting in no checkbox being checked. It 
appears that the Check's already got a new uuid and cannot be 
repopulated from the submitted values as those values were different...?


I'm using Wicket 1.3.5

Thanks for your help

Matt


smime.p7s
Description: S/MIME Cryptographic Signature


Re: urlFor(ResourceReference) strangeness

2009-10-27 Thread Ryan McKinley
urlFor( ) uses the current request to get a relative path.  If the  
location you are calling urlFor() from changes, it will get a new  
location


Note the only difference between the two urls is the ../../.. prefix

On Oct 27, 2009, at 11:05 AM, pieter claassen wrote:

WHen I start my application, my urlFor() returns a different URL  
than when I

call it a second time?

   ResourceReference iconref = new ResourceReference(anchorclass,
iconname);
   System.out.println(URL: +urlFor(iconref));

First time it returns:
URL:
../../../resources/ 
com.musmato.wicket.pages.styles.option1.Option1StyleAnchor/ 
document.png


second time:
URL:
resources/com.musmato.wicket.pages.styles.option1.Option1StyleAnchor/ 
document.png


Any ideas?

Thanks
Pieter
--



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



Re: Check(box) loses checked state after error

2009-10-27 Thread Martin Makundi
 I'm using a CheckGroup together with a few Check in a repeater because the
 number of boxes displayed is dynamic.

If you have a repeater  the redraw event instantiates NEW checkboxes..
so ofcourse you lose the staete.

I have built a reusemanager that copies the old state. Usage sould be
quite straight forward, ask if you need help.

Here is a simple example of usage:

add(reuseManager.rememberOrReuse(rowIndex, custom_id, hoursField));

:::


public class FormComponentReuseManager implements Serializable {
  private final MapObject, MapString, Component idMapRow = new
HashMapObject, MapString, Component();


  /**
   * @param S
   * @param T
   * @param rowId
   * @param componentId
   * @param newComponent
   * @return FormComponent
   */
  @SuppressWarnings(unchecked)
  public S, T extends FormComponentS T rememberOrReuse(Object
rowId, String componentId, T newComponent) {
return (T) rememberOrReuse(rowId, componentId, (Component) newComponent);
  }

  /**
   * @param T
   * @param rowId
   * @param componentId
   * @param newComponent
   * @return FormComponent
   */
  public T extends Component T rememberOrReuse(Object rowId, String
componentId, T newComponent) {
MapString, Component rowMap = createOrReuse(rowId);

@SuppressWarnings(unchecked)
T existingComponent = (T) rowMap.get(componentId);

if (newComponent instanceof FormComponent) {
  // Never reuse the component itself, just reuse the
  rowMap.put(componentId, newComponent);

  if (existingComponent != null) {
MarkupUtils.fakeRawInput((FormComponent?)newComponent,
(FormComponent?)existingComponent);
// Transfer also the error messages
for (FeedbackMessage feedbackMessage :
TakpSession.get().getFeedbackMessages().messages(new
ComponentFeedbackMessageFilter(existingComponent))) {
  MarkupUtils.replaceReporter(feedbackMessage,
(FormComponent?) newComponent);
}
  }

  return newComponent;
}

// else
if (existingComponent == null) {
  rowMap.put(componentId, newComponent);
  return newComponent;
}

// else
return existingComponent;
  }

  /**
   * @param rowId
   * @return MapString, FormComponent
   */
  private MapString, Component createOrReuse(Object rowId) {
MapString, Component rowMap = idMapRow.get(rowId);

if ((rowMap == null)  (rowId instanceof AbstractDTO) 
(((AbstractDTO) rowId).getId() != null)) {
  rowId = ((AbstractDTO) rowId).getId();
  rowMap = idMapRow.get(rowId);
}

if (rowMap == null) {
  rowMap = new HashMapString, Component();
  idMapRow.put(rowId, rowMap);
}

return rowMap;
  }

  /**
   *
   */
  public void clear() {
idMapRow.clear();
  }

  /**
   * @param S
   * @param T
   * @param key
   * @param formComponent
   * @param behaviors
   * @return T
   */
  public S, T extends FormComponentS T rememberOrReuseAndProvideFeedback(
  Object key, T formComponent, IBehavior... behaviors) {
formComponent.add(behaviors);
formComponent.setOutputMarkupId(true);
return rememberOrReuse(key, formComponent.getId(),
FeedbackStyler.add(formComponent));
  }
}


 This works fine and the data gets stored in the model correctly when
 submitting.
 However, if another form component fails in the validation, all checkboxes
 are getting unchecked.
 It seems the uuid increased after the error and does not match the submitted
 data anymore.
 In Check.onComponentTag(), the  group.hasRawInput() returns true and
 contains for example  check60, check61  but the uuid variable is much higher
 then, vor example 120, resulting in no checkbox being checked. It appears
 that the Check's already got a new uuid and cannot be repopulated from the
 submitted values as those values were different...?

 I'm using Wicket 1.3.5

 Thanks for your help

 Matt


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



RE: Release 1.4.3

2009-10-27 Thread Corbin, James
James,

Do you know when the official release of 1.4.3 is happening?  By official I 
mean the Apache Wicket Website updated with the release announcement and links 
to the official package downloads.  

J.D.

-Original Message-
From: James Carman [mailto:jcar...@carmanconsulting.com] 
Sent: Monday, October 26, 2009 9:15 PM
To: users@wicket.apache.org
Subject: Re: Release 1.4.3

It's there:

http://repo1.maven.org/maven2/org/apache/wicket/wicket/1.4.3/

There was an announcement just recently.

On Mon, Oct 26, 2009 at 10:48 PM, Marc-Andre Houle mho...@gmail.com wrote:
 Hello wicket user list,

 I would like to know when is suppose to happen the actual release of wicket
 1.4.3.  When I looked into the branch, it is like if the release have been
 done.  Also in Jira the 1.4.3 project looked closed.  So I am right to
 expect the release of 1.4.3 anytime soon?

 I am actually waiting for a bug fix on wicket-guice and would like to have
 it in the near future.

 Thanks in advance.

 Marc-Andre


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


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



Re: remove all behaviors of a certain type

2009-10-27 Thread keithrbennett

Sean -

This is a little off topic, but for writing this kind of thing, I highly
recommend Google Collections framework.  You write a simple filter method
(called a Predicate), and then call Collections2.filter() to return a
collection over which you can iterate to remove the behaviors.

- Keith


Sean Sullivan-3 wrote:
 
 The Component class provides a method for removing a single IBehavior
 object:
 
 public Component remove(final IBehavior behavior)
 
 
 Is there a similar method that will allow me to remove all IBehaviors of a
 certain type?
 
 I'd like to be able to do this:
 
 
Panel p;
...
p.removeBehaviorsWithType(Clazz behaviorClass);
 
 
 Suggestions?
 
 
 Sean
 
 

-- 
View this message in context: 
http://www.nabble.com/remove-all-behaviors-of-a-certain-type-tp12099034p26079765.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Release 1.4.3

2009-10-27 Thread Matthias Keller

Corbin, James wrote:

James,

Do you know when the official release of 1.4.3 is happening?  By official I mean the Apache Wicket Website updated with the release announcement and links to the official package downloads.  


J.D.
  
Well, it is as official as can be, they just have some troubles updating 
the webpage itself.

Here's the announcement from earlier on:


release tag: https://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.3

download: http://www.apache.org/dyn/closer.cgi/wicket/1.4.3

changelog: https://issues.apache.org/jira/browse/WICKET/fixforversion/12314250
( full release notes below )

maven:

dependency
  groupIdorg.apache.wicket/groupId
  artifactIdwicket/artifactId
  version1.4.3/version
/dependency

thank you.

-igor

ps. our website has not yet been updated with the release
announcement, something is broken with the confluence publishing
plugin.

---

Release Notes - Wicket - Version 1.4.3

** Bug
   * [WICKET-2348] - always insert encoding in http response header
   * [WICKET-2436] - invalid DataTable markup breaks table layout
   * [WICKET-2497] - AutoComplete textfield ignores visible
property within hierarchy.
   * [WICKET-2501] - BaseWicketTester clickLink calls onBeginRequest two times.
   * [WICKET-2505] - Button.onSubmit javadoc is misleading
   * [WICKET-2506] - Regression: Could not find child with id: ID
in the wicket:enclosure for non-component tag
   * [WICKET-2507] - Inconsistent resource path using wicket:link
and HeaderContributor after second request
   * [WICKET-2508] - NullPointerException in
BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:96)
   * [WICKET-2513] - wicket:enclosure does not work if child is a
container and not a component (regression from 1.4.1)
   * [WICKET-2516] - Javadoc for Component.getMarkupId is incorrect
   * [WICKET-2518] - Application_bg.properties property file is
incorrectly encoded
   * [WICKET-2520] - Use of Object instead of generic T in
StringAutoCompleteRenderer
   * [WICKET-2522] - Easy fix suggestion: In BaseWicketTester
'IFormSubmitting' component should be the submitting component, not
just a 'Button'
   * [WICKET-2525] - DatePicker consume too much memory
   * [WICKET-2527] - wicket:enclosure child attribute search path has changed
   * [WICKET-2528] - CheckBoxMultipleChoice ignores isDisabled() checks
   * [WICKET-2530] - Class not found when using OSGI class loader

** Improvement
   * [WICKET-2344] - Performance improvement: more efficient
AnnotProxyFieldValueFactory cache
   * [WICKET-2459] - Add new German Wicket Book
   * [WICKET-2511] - Upgrade to SLF4J version 1.5.8
   * [WICKET-2524] - Configurable Throttle delay for AutoCompleteBehavior

** Wish
   * [WICKET-2468] - AjaxLazyLoadPanel do not respect especific
projects components configuration
   * [WICKET-2515] - ModalWindow javadoc improvent




smime.p7s
Description: S/MIME Cryptographic Signature


RE: Release 1.4.3

2009-10-27 Thread Corbin, James
Okay, that's good enough for me...I want to upgrade from 1.4.1 to 1.4.3
and wanted to be sure it was frozen (as much as can be expected for an
open source product).

Thanks,
j.D.

-Original Message-
From: Matthias Keller [mailto:matthias.kel...@ergon.ch] 
Sent: Tuesday, October 27, 2009 9:36 AM
To: users@wicket.apache.org
Subject: Re: Release 1.4.3

Corbin, James wrote:
 James,

 Do you know when the official release of 1.4.3 is happening?  By
official I mean the Apache Wicket Website updated with the release
announcement and links to the official package downloads.  

 J.D.
   
Well, it is as official as can be, they just have some troubles updating

the webpage itself.
Here's the announcement from earlier on:

 release tag:
https://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.3

 download: http://www.apache.org/dyn/closer.cgi/wicket/1.4.3

 changelog:
https://issues.apache.org/jira/browse/WICKET/fixforversion/12314250
 ( full release notes below )

 maven:

 dependency
   groupIdorg.apache.wicket/groupId
   artifactIdwicket/artifactId
   version1.4.3/version
 /dependency

 thank you.

 -igor

 ps. our website has not yet been updated with the release
 announcement, something is broken with the confluence publishing
 plugin.

 ---

 Release Notes - Wicket - Version 1.4.3

 ** Bug
* [WICKET-2348] - always insert encoding in http response header
* [WICKET-2436] - invalid DataTable markup breaks table layout
* [WICKET-2497] - AutoComplete textfield ignores visible
 property within hierarchy.
* [WICKET-2501] - BaseWicketTester clickLink calls onBeginRequest
two times.
* [WICKET-2505] - Button.onSubmit javadoc is misleading
* [WICKET-2506] - Regression: Could not find child with id: ID
 in the wicket:enclosure for non-component tag
* [WICKET-2507] - Inconsistent resource path using wicket:link
 and HeaderContributor after second request
* [WICKET-2508] - NullPointerException in
 BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:96)
* [WICKET-2513] - wicket:enclosure does not work if child is a
 container and not a component (regression from 1.4.1)
* [WICKET-2516] - Javadoc for Component.getMarkupId is incorrect
* [WICKET-2518] - Application_bg.properties property file is
 incorrectly encoded
* [WICKET-2520] - Use of Object instead of generic T in
 StringAutoCompleteRenderer
* [WICKET-2522] - Easy fix suggestion: In BaseWicketTester
 'IFormSubmitting' component should be the submitting component, not
 just a 'Button'
* [WICKET-2525] - DatePicker consume too much memory
* [WICKET-2527] - wicket:enclosure child attribute search path has
changed
* [WICKET-2528] - CheckBoxMultipleChoice ignores isDisabled()
checks
* [WICKET-2530] - Class not found when using OSGI class loader

 ** Improvement
* [WICKET-2344] - Performance improvement: more efficient
 AnnotProxyFieldValueFactory cache
* [WICKET-2459] - Add new German Wicket Book
* [WICKET-2511] - Upgrade to SLF4J version 1.5.8
* [WICKET-2524] - Configurable Throttle delay for
AutoCompleteBehavior

 ** Wish
* [WICKET-2468] - AjaxLazyLoadPanel do not respect especific
 projects components configuration
* [WICKET-2515] - ModalWindow javadoc improvent


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



Re: Setup for stepping into wicket source in eclipse

2009-10-27 Thread Pedro Santos
Debug Configuration  your server configuration  Source tab  remove older
source codes from it if there is one

On Tue, Oct 27, 2009 at 10:55 AM, Nicolas Melendez 
nmelen...@getsense.com.ar wrote:

 is your build automatically checked?

 On Mon, Oct 26, 2009 at 1:07 AM, Flavius flav...@silverlion.com wrote:

 
  I am trying to debug an issue and am trying to step into wicket
  from my project.  However, the line numbers are not matching
  up with the source I have.  I've done this several times with other
  projects and this is indicative of having the wrong version of the
  source vs. the jar file.
 
  I am using eclipse version 3.5.0.v20090611a.  I'm also using
  jdk1.6.0_14.
 
  My project is setup as a java web project and I have a webapp/
  WEB-INF/lib dir with my jars.  These include wicket-1.4.3.jar,
  wicket-extensions-1.4.3.jar, and wicket-datetime-1.4.3.jar.  If I
  remove the wicket jar, the project can no longer identify any
  of the org.apache.wicket.* imports.  This tells me that it isn't
  getting a reference to derived classes.
 
  If I then either put the wicket jar back and set the source to the
  wicket-sources.jar or simply link to the
  apache-wicket-1.4.3\src\wicket\src\main\java, I still get the same
  result.
 
  As an example, when I CTRL-click on setDefaultModelObject(), it
  takes me to Component.class line 3022.  I can see it going to
  wicket-1.4.3.jar org.apache.wicket.Component in my Package
  Explorer.  However, when I actually run the code and step into
  that method (having attached the wicket-sources.jar), the method
  setDefaultModelObject is actually on line 3031.
 
  I've gone into the wicket src dir for wicket 1.4.3 and built the wicket
  jar and sources and pulled them from the target dir and still get the
  same results.
 
  Can anybody offer any insight into this?
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 




-- 
Pedro Henrique Oliveira dos Santos


Re: Check(box) loses checked state after error

2009-10-27 Thread Pedro Santos
call ListView.setReuseItems(true)

On Tue, Oct 27, 2009 at 1:24 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

  I'm using a CheckGroup together with a few Check in a repeater because
 the
  number of boxes displayed is dynamic.

 If you have a repeater  the redraw event instantiates NEW checkboxes..
 so ofcourse you lose the staete.

 I have built a reusemanager that copies the old state. Usage sould be
 quite straight forward, ask if you need help.

 Here is a simple example of usage:

 add(reuseManager.rememberOrReuse(rowIndex, custom_id, hoursField));

 :::


 public class FormComponentReuseManager implements Serializable {
  private final MapObject, MapString, Component idMapRow = new
 HashMapObject, MapString, Component();


  /**
   * @param S
   * @param T
   * @param rowId
   * @param componentId
   * @param newComponent
   * @return FormComponent
   */
  @SuppressWarnings(unchecked)
  public S, T extends FormComponentS T rememberOrReuse(Object
 rowId, String componentId, T newComponent) {
return (T) rememberOrReuse(rowId, componentId, (Component)
 newComponent);
  }

  /**
   * @param T
   * @param rowId
   * @param componentId
   * @param newComponent
   * @return FormComponent
   */
  public T extends Component T rememberOrReuse(Object rowId, String
 componentId, T newComponent) {
MapString, Component rowMap = createOrReuse(rowId);

@SuppressWarnings(unchecked)
T existingComponent = (T) rowMap.get(componentId);

if (newComponent instanceof FormComponent) {
  // Never reuse the component itself, just reuse the
  rowMap.put(componentId, newComponent);

  if (existingComponent != null) {
MarkupUtils.fakeRawInput((FormComponent?)newComponent,
 (FormComponent?)existingComponent);
// Transfer also the error messages
for (FeedbackMessage feedbackMessage :
 TakpSession.get().getFeedbackMessages().messages(new
 ComponentFeedbackMessageFilter(existingComponent))) {
  MarkupUtils.replaceReporter(feedbackMessage,
 (FormComponent?) newComponent);
}
  }

  return newComponent;
}

// else
if (existingComponent == null) {
  rowMap.put(componentId, newComponent);
  return newComponent;
}

// else
return existingComponent;
  }

  /**
   * @param rowId
   * @return MapString, FormComponent
   */
  private MapString, Component createOrReuse(Object rowId) {
MapString, Component rowMap = idMapRow.get(rowId);

if ((rowMap == null)  (rowId instanceof AbstractDTO) 
 (((AbstractDTO) rowId).getId() != null)) {
  rowId = ((AbstractDTO) rowId).getId();
  rowMap = idMapRow.get(rowId);
}

if (rowMap == null) {
  rowMap = new HashMapString, Component();
  idMapRow.put(rowId, rowMap);
}

return rowMap;
  }

  /**
   *
   */
  public void clear() {
idMapRow.clear();
  }

  /**
   * @param S
   * @param T
   * @param key
   * @param formComponent
   * @param behaviors
   * @return T
   */
  public S, T extends FormComponentS T
 rememberOrReuseAndProvideFeedback(
  Object key, T formComponent, IBehavior... behaviors) {
formComponent.add(behaviors);
formComponent.setOutputMarkupId(true);
return rememberOrReuse(key, formComponent.getId(),
 FeedbackStyler.add(formComponent));
   }
 }


  This works fine and the data gets stored in the model correctly when
  submitting.
  However, if another form component fails in the validation, all
 checkboxes
  are getting unchecked.
  It seems the uuid increased after the error and does not match the
 submitted
  data anymore.
  In Check.onComponentTag(), the  group.hasRawInput() returns true and
  contains for example  check60, check61  but the uuid variable is much
 higher
  then, vor example 120, resulting in no checkbox being checked. It appears
  that the Check's already got a new uuid and cannot be repopulated from
 the
  submitted values as those values were different...?
 
  I'm using Wicket 1.3.5
 
  Thanks for your help
 
  Matt
 

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




-- 
Pedro Henrique Oliveira dos Santos


Re: Check(box) loses checked state after error

2009-10-27 Thread Martin Makundi
 call ListView.setReuseItems(true)

That will work too in simple cases...

**
Martin


 On Tue, Oct 27, 2009 at 1:24 PM, Martin Makundi 
 martin.maku...@koodaripalvelut.com wrote:

  I'm using a CheckGroup together with a few Check in a repeater because
 the
  number of boxes displayed is dynamic.

 If you have a repeater  the redraw event instantiates NEW checkboxes..
 so ofcourse you lose the staete.

 I have built a reusemanager that copies the old state. Usage sould be
 quite straight forward, ask if you need help.

 Here is a simple example of usage:

 add(reuseManager.rememberOrReuse(rowIndex, custom_id, hoursField));

 :::


 public class FormComponentReuseManager implements Serializable {
  private final MapObject, MapString, Component idMapRow = new
 HashMapObject, MapString, Component();


  /**
   * @param S
   * @param T
   * @param rowId
   * @param componentId
   * @param newComponent
   * @return FormComponent
   */
 �...@suppresswarnings(unchecked)
  public S, T extends FormComponentS T rememberOrReuse(Object
 rowId, String componentId, T newComponent) {
    return (T) rememberOrReuse(rowId, componentId, (Component)
 newComponent);
  }

  /**
   * @param T
   * @param rowId
   * @param componentId
   * @param newComponent
   * @return FormComponent
   */
  public T extends Component T rememberOrReuse(Object rowId, String
 componentId, T newComponent) {
    MapString, Component rowMap = createOrReuse(rowId);

   �...@suppresswarnings(unchecked)
    T existingComponent = (T) rowMap.get(componentId);

    if (newComponent instanceof FormComponent) {
      // Never reuse the component itself, just reuse the
      rowMap.put(componentId, newComponent);

      if (existingComponent != null) {
        MarkupUtils.fakeRawInput((FormComponent?)newComponent,
 (FormComponent?)existingComponent);
        // Transfer also the error messages
        for (FeedbackMessage feedbackMessage :
 TakpSession.get().getFeedbackMessages().messages(new
 ComponentFeedbackMessageFilter(existingComponent))) {
          MarkupUtils.replaceReporter(feedbackMessage,
 (FormComponent?) newComponent);
        }
      }

      return newComponent;
    }

    // else
    if (existingComponent == null) {
      rowMap.put(componentId, newComponent);
      return newComponent;
    }

    // else
    return existingComponent;
  }

  /**
   * @param rowId
   * @return MapString, FormComponent
   */
  private MapString, Component createOrReuse(Object rowId) {
    MapString, Component rowMap = idMapRow.get(rowId);

    if ((rowMap == null)  (rowId instanceof AbstractDTO) 
 (((AbstractDTO) rowId).getId() != null)) {
      rowId = ((AbstractDTO) rowId).getId();
      rowMap = idMapRow.get(rowId);
    }

    if (rowMap == null) {
      rowMap = new HashMapString, Component();
      idMapRow.put(rowId, rowMap);
    }

    return rowMap;
  }

  /**
   *
   */
  public void clear() {
    idMapRow.clear();
  }

  /**
   * @param S
   * @param T
   * @param key
   * @param formComponent
   * @param behaviors
   * @return T
   */
  public S, T extends FormComponentS T
 rememberOrReuseAndProvideFeedback(
      Object key, T formComponent, IBehavior... behaviors) {
    formComponent.add(behaviors);
    formComponent.setOutputMarkupId(true);
    return rememberOrReuse(key, formComponent.getId(),
 FeedbackStyler.add(formComponent));
   }
 }


  This works fine and the data gets stored in the model correctly when
  submitting.
  However, if another form component fails in the validation, all
 checkboxes
  are getting unchecked.
  It seems the uuid increased after the error and does not match the
 submitted
  data anymore.
  In Check.onComponentTag(), the  group.hasRawInput() returns true and
  contains for example  check60, check61  but the uuid variable is much
 higher
  then, vor example 120, resulting in no checkbox being checked. It appears
  that the Check's already got a new uuid and cannot be repopulated from
 the
  submitted values as those values were different...?
 
  I'm using Wicket 1.3.5
 
  Thanks for your help
 
  Matt
 

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




 --
 Pedro Henrique Oliveira dos Santos


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



Re: Check(box) loses checked state after error

2009-10-27 Thread Matthias Keller

Hi Pedro

Thanks, that worked for me!

Matt

Pedro Santos wrote:

call ListView.setReuseItems(true)

On Tue, Oct 27, 2009 at 1:24 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

  

I'm using a CheckGroup together with a few Check in a repeater because
  

the


number of boxes displayed is dynamic.
  

If you have a repeater  the redraw event instantiates NEW checkboxes..
so ofcourse you lose the staete.

I have built a reusemanager that copies the old state. Usage sould be
quite straight forward, ask if you need help.

Here is a simple example of usage:

add(reuseManager.rememberOrReuse(rowIndex, custom_id, hoursField));

:::


public class FormComponentReuseManager implements Serializable {
 private final MapObject, MapString, Component idMapRow = new
HashMapObject, MapString, Component();


 /**
  * @param S
  * @param T
  * @param rowId
  * @param componentId
  * @param newComponent
  * @return FormComponent
  */
 @SuppressWarnings(unchecked)
 public S, T extends FormComponentS T rememberOrReuse(Object
rowId, String componentId, T newComponent) {
   return (T) rememberOrReuse(rowId, componentId, (Component)
newComponent);
 }

 /**
  * @param T
  * @param rowId
  * @param componentId
  * @param newComponent
  * @return FormComponent
  */
 public T extends Component T rememberOrReuse(Object rowId, String
componentId, T newComponent) {
   MapString, Component rowMap = createOrReuse(rowId);

   @SuppressWarnings(unchecked)
   T existingComponent = (T) rowMap.get(componentId);

   if (newComponent instanceof FormComponent) {
 // Never reuse the component itself, just reuse the
 rowMap.put(componentId, newComponent);

 if (existingComponent != null) {
   MarkupUtils.fakeRawInput((FormComponent?)newComponent,
(FormComponent?)existingComponent);
   // Transfer also the error messages
   for (FeedbackMessage feedbackMessage :
TakpSession.get().getFeedbackMessages().messages(new
ComponentFeedbackMessageFilter(existingComponent))) {
 MarkupUtils.replaceReporter(feedbackMessage,
(FormComponent?) newComponent);
   }
 }

 return newComponent;
   }

   // else
   if (existingComponent == null) {
 rowMap.put(componentId, newComponent);
 return newComponent;
   }

   // else
   return existingComponent;
 }

 /**
  * @param rowId
  * @return MapString, FormComponent
  */
 private MapString, Component createOrReuse(Object rowId) {
   MapString, Component rowMap = idMapRow.get(rowId);

   if ((rowMap == null)  (rowId instanceof AbstractDTO) 
(((AbstractDTO) rowId).getId() != null)) {
 rowId = ((AbstractDTO) rowId).getId();
 rowMap = idMapRow.get(rowId);
   }

   if (rowMap == null) {
 rowMap = new HashMapString, Component();
 idMapRow.put(rowId, rowMap);
   }

   return rowMap;
 }

 /**
  *
  */
 public void clear() {
   idMapRow.clear();
 }

 /**
  * @param S
  * @param T
  * @param key
  * @param formComponent
  * @param behaviors
  * @return T
  */
 public S, T extends FormComponentS T
rememberOrReuseAndProvideFeedback(
 Object key, T formComponent, IBehavior... behaviors) {
   formComponent.add(behaviors);
   formComponent.setOutputMarkupId(true);
   return rememberOrReuse(key, formComponent.getId(),
FeedbackStyler.add(formComponent));
  }
}




This works fine and the data gets stored in the model correctly when
submitting.
However, if another form component fails in the validation, all
  

checkboxes


are getting unchecked.
It seems the uuid increased after the error and does not match the
  

submitted


data anymore.
In Check.onComponentTag(), the  group.hasRawInput() returns true and
contains for example  check60, check61  but the uuid variable is much
  

higher


then, vor example 120, resulting in no checkbox being checked. It appears
that the Check's already got a new uuid and cannot be repopulated from
  

the


submitted values as those values were different...?

I'm using Wicket 1.3.5

Thanks for your help

Matt
  




smime.p7s
Description: S/MIME Cryptographic Signature


Treetable nodes with no links

2009-10-27 Thread sakthi vel
Hello,

The tree table should be generated with links for certain nodes and no links
for certain nodes. Can anyone tell how to acheive this


Odd even class for each row in tree table

2009-10-27 Thread sakthi vel
Hello,

In the data table the odd and even class for each row is acheived by
overriding

protected Item newRowItem(String id, int index, IModel model)
{
 return new OddEvenItem(id, index, model);
}


Can anyone tell how acheive the odd and even class for each row in
TreeTable.


Generate dynamic tables

2009-10-27 Thread sakthi vel
Hello,

How to generate tables with dynamic columns using any one of the repeaters.
I need to parse the xml and generate the table based on the xml data. Can
anyone tell how to acheive this functionality in wicket


Re: Treetable nodes with no links

2009-10-27 Thread Pedro Santos
you can override newNodeLink or newLink methods to return disabled links, or
any other components

On Tue, Oct 27, 2009 at 2:11 PM, sakthi vel vela@gmail.com wrote:

 Hello,

 The tree table should be generated with links for certain nodes and no
 links
 for certain nodes. Can anyone tell how to acheive this




-- 
Pedro Henrique Oliveira dos Santos


Wicket HTML before graphics design with CSS ...

2009-10-27 Thread Ashley Aitken


Hi All,

Just a quick question.

Can someone please provide some pointers to Wicket-specific or general  
CSS information on how best to produce Web pages (dynamic pages  
generated with Wicket) that a graphics designer can then come in and  
produce appropriate graphics and CSS style sheets for?


I would like to be able to write a Wicket app before the graphic  
design and detailed layout of the site is done. Of course, some  
hierarchical organisation of content will be specified but exact  
locations of items will not. I'm assuming I'd just use lots of divs  
and CSS classes or similar?


I'm no expert in CSS but I've seen what pages look like when a CSS  
style sheet is missing and assume I will be generating something like  
that with Wicket.  In this case, I guess I could just generate the  
HTML files by hand, or would people suggest some I use some tool?


Thanks for any assistance, pointers, suggestions.

Cheers,
Ashley.


--
Ashley Aitken
Perth, Western Australia
Skype/iChat: MrHatken (GMT + 8hrs!)


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



Re: Generate dynamic tables

2009-10-27 Thread Pedro Santos
 You can use table form wicketstuff if you like to create an tableModel to
present your xml data. Then you get dynamic columns...

On Tue, Oct 27, 2009 at 2:22 PM, sakthi vel vela@gmail.com wrote:

 Hello,

 How to generate tables with dynamic columns using any one of the repeaters.
 I need to parse the xml and generate the table based on the xml data. Can
 anyone tell how to acheive this functionality in wicket




-- 
Pedro Henrique Oliveira dos Santos


Tree table with check box

2009-10-27 Thread sakthi vel
Hello,

I have a single column in the tree table.
But I need to have check box in the same column along with nodes and not in
the seperate column.
Can anyone tell how to acheive this.


Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread Martin Makundi
I would just give the artist the freedom to do what ever he wants...
and then just refactor what's necessary afterwards.

**
Martin

2009/10/27 Ashley Aitken mrhat...@mac.com:

 Hi All,

 Just a quick question.

 Can someone please provide some pointers to Wicket-specific or general CSS
 information on how best to produce Web pages (dynamic pages generated with
 Wicket) that a graphics designer can then come in and produce appropriate
 graphics and CSS style sheets for?

 I would like to be able to write a Wicket app before the graphic design and
 detailed layout of the site is done. Of course, some hierarchical
 organisation of content will be specified but exact locations of items will
 not. I'm assuming I'd just use lots of divs and CSS classes or similar?

 I'm no expert in CSS but I've seen what pages look like when a CSS style
 sheet is missing and assume I will be generating something like that with
 Wicket.  In this case, I guess I could just generate the HTML files by hand,
 or would people suggest some I use some tool?

 Thanks for any assistance, pointers, suggestions.

 Cheers,
 Ashley.


 --
 Ashley Aitken
 Perth, Western Australia
 Skype/iChat: MrHatken (GMT + 8hrs!)


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



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



jquery ui dialog and ajax component updating

2009-10-27 Thread Jason Novotny


Hi,

   I'm not sure if this is a jquery or wicket problem I'm having. I am 
using wicket ajax to update (replace) a panel component with a link


AjaxLink link = new AjaxLink(link) {
   public void onClick(AjaxRequestTarget target) {
   summaryDialog.displaySummary(my summary, target);
   }
   };

that when clicked will display the summary dialog that contains a Jquery 
dialog component I created called SummaryDialog that looks like this:


wicket:panel

   script type=text/javascript
   $.ui.dialog.defaults.bgiframe = true;
   $(function() {
   $(#summaryDialog).dialog({ draggable: true, resizable: 
false, autoOpen: false, height: 400, width: 800 }).toggle();

   });

   /script

   div id=summaryDialog title=Summary
   span wicket:id=label/span
   /div

/wicket:panel

and the java code is simply:

public class SummaryDialog extends Panel {

   Label label;
   ModelString labelModel = new ModelString();

   public SummaryDialog(String id) {
   super(id);
   label = new Label(label, labelModel);
   label.setVisible(false);
   label.setOutputMarkupId(true);
   label.setOutputMarkupPlaceholderTag(true);
   add(label);
   }

   public void displaySummary(String summary, AjaxRequestTarget target) {
   label.setVisible(true);
   labelModel.setObject(summary);
   target.addComponent(label);
   target.appendJavascript($(\#summaryDialog\).dialog('open');); 
   target.appendJavascript($(\#summaryDialog\).dialog('option', 
'title', ' + summary+  Summary'););


   }


It all works fine and I notice that at the bottom of the generated HTML, 
Jquery has added this to the DOM:


div aria-labelledby=ui-dialog-title-summaryDialog role=dialog 
tabindex=-1 class=ui-dialog ui-widget ui-widget-content 
ui-corner-all  ui-draggable style=overflow: hidden; display: none; 
position: absolute; z-index: 1000; outline-color: -moz-use-text-color; 
outline-style: none; outline-width: 0px;div style=-moz-user-select: 
none; unselectable=on class=ui-dialog-titlebar ui-widget-header 
ui-corner-all ui-helper-clearfixspan style=-moz-user-select: none; 
unselectable=on id=ui-dialog-title-summaryDialog 
class=ui-dialog-titleMy summary Summary/spana 
style=-moz-user-select: none; unselectable=on role=button 
class=ui-dialog-titlebar-close ui-corner-all href=#span 
style=-moz-user-select: none; unselectable=on class=ui-icon 
ui-icon-closethickclose/span/a/divdiv class=ui-dialog-content 
ui-widget-content id=summaryDialog


   span id=label1e2My Summary/span
/div/div

The problem is when I do something that updates the original panel in 
Ajax, it never removes the generated DOM so it results in two of these


div aria-labelledby id=summaryDialog
   span id=label1e2My Summary/span
/div/div
div aria-labelledby ... id=summaryDialog
   span id=label1e2My New Summary/span
/div/div

which causes it to no longer work since there are two elements with the 
same id in the generated DOM.


Has anyone encountered anything like this before? I could change my 
AjaxLinks to normal Link to perform a whole page refresh to get rid of 
jquery's generated DOM but I'd rather not if I could find a workaround.



   Thanks, Jason

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



Time textfield

2009-10-27 Thread hill180
I understand there is the DateTimeField, is there a textfield specifically
for time only.  Or a way to turn the date off in the DateTimeField.

Thanks!


Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread John Armstrong
I wouldn't do it. The churn of implementing a UI before its designed is huge.

In my opinion your better off watching cartoons for the month it takes
the UI to be developed because you'll most likely waste that month
trying to adapt your UI implementation to the reality of what is
developed by the 'designer'. Unless you really have a solid UI concept
it can be more efficient to wait.

You can use the time to build your backend business logic, your
datastore, your workflow maps and (gasp) assist with the UI
development by lending an engineering perspective etc etc. For us
Wicket is the end of the process, not the beginning.

That may be controversial but it works well for us.

John-

On Tue, Oct 27, 2009 at 9:50 AM, Martin Makundi
martin.maku...@koodaripalvelut.com wrote:
 I would just give the artist the freedom to do what ever he wants...
 and then just refactor what's necessary afterwards.

 **
 Martin

 2009/10/27 Ashley Aitken mrhat...@mac.com:

 Hi All,

 Just a quick question.

 Can someone please provide some pointers to Wicket-specific or general CSS
 information on how best to produce Web pages (dynamic pages generated with
 Wicket) that a graphics designer can then come in and produce appropriate
 graphics and CSS style sheets for?

 I would like to be able to write a Wicket app before the graphic design and
 detailed layout of the site is done. Of course, some hierarchical
 organisation of content will be specified but exact locations of items will
 not. I'm assuming I'd just use lots of divs and CSS classes or similar?

 I'm no expert in CSS but I've seen what pages look like when a CSS style
 sheet is missing and assume I will be generating something like that with
 Wicket.  In this case, I guess I could just generate the HTML files by hand,
 or would people suggest some I use some tool?

 Thanks for any assistance, pointers, suggestions.

 Cheers,
 Ashley.


 --
 Ashley Aitken
 Perth, Western Australia
 Skype/iChat: MrHatken (GMT + 8hrs!)


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



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



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



Re: Time textfield

2009-10-27 Thread Pedro Santos
Hi, I'm using DateTextField in one project, like:

new DateTextField(time, null, new PatternDateConverter(HH:mm, true))

On Tue, Oct 27, 2009 at 2:55 PM, hill180 hill...@gmail.com wrote:

 I understand there is the DateTimeField, is there a textfield specifically
 for time only.  Or a way to turn the date off in the DateTimeField.

 Thanks!




-- 
Pedro Henrique Oliveira dos Santos


Re: Wicket-stuff site down?

2009-10-27 Thread Johan Compagner
you can easily check it your self for example:

http://www.wicketstuff.org/maven/repository/org/wicketstuff/annotation/1.4-SNAPSHOT/

johan


On Tue, Oct 27, 2009 at 11:59, Martin Grigorov mcgreg...@e-card.bg wrote:

 One more fixed: wicketstuff-animator/pom.xml

 According to http://maven.apache.org/pom.html#Distribution_Management
 these fixes should be enough.

 @Johan: if the build still produces unique versions of the snapshots
 please tell us which are the problematic projects.

 El mar, 27-10-2009 a las 12:48 +0200, Martin Grigorov escribió:
  There was only one distributionManagement in wicketstuff-core/pom.xml
  (and sub-modules) without the needed setting:
 
  snapshotRepository
idwicketstuff-org-maven/id
 
  urlscpexe://
 wicketstuff.org/home/wicket/tomcat/webapps/maven/repository/url
uniqueVersionfalse/uniqueVersion
  /snapshotRepository
 
  Now I'll check the projects which are not in wicketstuff-core.
 
  El mar, 27-10-2009 a las 10:41 +0100, Johan Compagner escribió:
   i already did that
   its up again but it was AGAIN disk full problems
   and that is because of that STUPID maven that generates unique
 snapshots
  
   Who is the maven expert here that will FIX that problems on all our pom
   files?
   i have been deleting stuff now for at least 1 hour!
  
   johan
  
  
   On Tue, Oct 27, 2009 at 10:23, nino martinez wael 
   nino.martinez.w...@gmail.com wrote:
  
Yeah it does look that way. Anyone around to take a look at the
 server?
   
2009/10/27 Brill Pappin br...@pappin.ca
   
 I don't think this is maintenance, unless they have an extremely
 long
 running SQL export or something.
 I'd say broken at this point.

 - Brill



 On 2009-10-26, at 7:26 PM, nino martinez wael wrote:

  Here aswell ? argh : http://wicketstuff.org/confluence/errors.jsp

 2009/10/26 Jeremy Thomerson jer...@wickettraining.com

  Yes

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



 On Mon, Oct 26, 2009 at 11:08 AM, Brill Pappin br...@pappin.ca
wrote:

  Is the Wicket-stuff site down for anyone else?

 - Brill


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






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


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




Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread Ashley Aitken


Thanks Martin and John.

I realise that most projects start with Web/GUI storyboards and  
perhaps even fully graphically designed pages and then add the dynamic  
stuff.  However, I think my situation is somewhat the reverse. I want  
to design the logical interface myself, header, footers, navigation,  
and page contents, the hierarchy of contents including any text, but  
then have the graphic designer make it beautiful.


I'm hoping to make it possible for them to do this with a CSS file,  
and some images (logos, buttons, etc.) I am wishing to know what I can  
do in the HTML pages I construct to make this most possible, easy,  
efficient etc. I don't mind the fact that when I am developing the app  
my pages will not look right, hopefully they will be logically clear,  
in fact I would prefer that, so I can focus on the logical interface  
rather than design specifics.


As I mentioned, I think of it as creating the pages but leaving the  
CSS file empty (or at most some basic default).  Does that make  
sense?  Sorry if I am not explaining myself clearly.


Thanks,
Ashley.

--
Ashley Aitken
Perth, Western Australia
mrhatken at mac dot com
Skype Name: MrHatken (GMT + 8 Hours!)








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



Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread John Armstrong
It makes sense what you are asking and it can be done. If you
logically construct your div structure and liberally apply divs/spans
so that your eventually CSS implementor can uniquely address any
element on the page.

More spans/divs will be better. For example, if you have an area of
the page that has

Firstname Lastname
Address
city, state, postal code

my advice would be to wrap it all up with unique id's

div
  div firstname /div div lastname /div
  div address /div
  div city /div div state /div div postal /div
/div

This gives your designer a fighting chance of manipulating the
required page elements via CSS later. You can always strip unused tags
later.

John-

On Tue, Oct 27, 2009 at 10:10 AM, Ashley Aitken mrhat...@mac.com wrote:

 Thanks Martin and John.

 I realise that most projects start with Web/GUI storyboards and perhaps even
 fully graphically designed pages and then add the dynamic stuff.  However, I
 think my situation is somewhat the reverse. I want to design the logical
 interface myself, header, footers, navigation, and page contents, the
 hierarchy of contents including any text, but then have the graphic designer
 make it beautiful.

 I'm hoping to make it possible for them to do this with a CSS file, and some
 images (logos, buttons, etc.) I am wishing to know what I can do in the HTML
 pages I construct to make this most possible, easy, efficient etc. I don't
 mind the fact that when I am developing the app my pages will not look
 right, hopefully they will be logically clear, in fact I would prefer that,
 so I can focus on the logical interface rather than design specifics.

 As I mentioned, I think of it as creating the pages but leaving the CSS file
 empty (or at most some basic default).  Does that make sense?  Sorry if I am
 not explaining myself clearly.

 Thanks,
 Ashley.

 --
 Ashley Aitken
 Perth, Western Australia
 mrhatken at mac dot com
 Skype Name: MrHatken (GMT + 8 Hours!)








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



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



Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread John Armstrong
Oh and don't use an automated tool. It'll add far too much extraneous
noise to your files that will complicate the CSS skinning you are
after later. Hand code it and then move it around in CSS by hand.

This is my opinion. I know our CSS team hates it when someone sends
them something done in a design app since it breaks their standard
toolsets (browser tweaks etc). Its inefficient but thats the tax to be
paid for get ahead of the design process.

Another alternative that I have used is to design my UI in a tool like
iPlotz (awesome btw), exporting the result and sending that off to
HTML/CSS implementation @ RentACoder. It lets you 'design' a UI and
gets you 'logically designed html' without the expense of the designer
off the bat. Figure a few days to develop the mock-up and a week +
$100 to implement the HTML/CSS and get you developing in Wicket
without the CSS headaches. This may fit your process much better. Drop
me a line off the list if you want a list of great RAC CSS folks that
I use regularly.

J

On Tue, Oct 27, 2009 at 10:27 AM, John Armstrong siber...@siberian.org wrote:
 It makes sense what you are asking and it can be done. If you
 logically construct your div structure and liberally apply divs/spans
 so that your eventually CSS implementor can uniquely address any
 element on the page.

 More spans/divs will be better. For example, if you have an area of
 the page that has

 Firstname Lastname
 Address
 city, state, postal code

 my advice would be to wrap it all up with unique id's

 div
  div firstname /div div lastname /div
  div address /div
  div city /div div state /div div postal /div
 /div

 This gives your designer a fighting chance of manipulating the
 required page elements via CSS later. You can always strip unused tags
 later.

 John-

 On Tue, Oct 27, 2009 at 10:10 AM, Ashley Aitken mrhat...@mac.com wrote:

 Thanks Martin and John.

 I realise that most projects start with Web/GUI storyboards and perhaps even
 fully graphically designed pages and then add the dynamic stuff.  However, I
 think my situation is somewhat the reverse. I want to design the logical
 interface myself, header, footers, navigation, and page contents, the
 hierarchy of contents including any text, but then have the graphic designer
 make it beautiful.

 I'm hoping to make it possible for them to do this with a CSS file, and some
 images (logos, buttons, etc.) I am wishing to know what I can do in the HTML
 pages I construct to make this most possible, easy, efficient etc. I don't
 mind the fact that when I am developing the app my pages will not look
 right, hopefully they will be logically clear, in fact I would prefer that,
 so I can focus on the logical interface rather than design specifics.

 As I mentioned, I think of it as creating the pages but leaving the CSS file
 empty (or at most some basic default).  Does that make sense?  Sorry if I am
 not explaining myself clearly.

 Thanks,
 Ashley.

 --
 Ashley Aitken
 Perth, Western Australia
 mrhatken at mac dot com
 Skype Name: MrHatken (GMT + 8 Hours!)








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




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



Re: Isssues in Modal Window display in IE8

2009-10-27 Thread TahitianGabriel

It should be just fine with 1.3.6.


vela wrote:
 
 Hello again,
 
 Wicket 1.3 is used
 

-- 
View this message in context: 
http://www.nabble.com/Isssues-in-Modal-Window-display-in-IE8-tp26047156p26082335.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Force page expiration

2009-10-27 Thread Tomás Rossi

Nothing seems to work.

Does the fact that the page I want to expire is the home page has 
anything to do with it?


Pedro Santos escribió:

The page returned from back button came from pagemap. Make sure to remove it
from there and you get the expired exception.

On Tue, Oct 27, 2009 at 11:57 AM, Tomás Rossi tro...@mecon.gov.ar wrote:

  

Hi, I have another question...

in Wicket (1.4.2), can I force the expiration of a page?
Specifically, if users hit browser's back-button, I'd like to show them the
page-expired message.

I've already tried to invalidate the session, but I got a horrible
exception when re-submitting the form after reaching it through the back
button.

Thanks in advance,
--
Tom;



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






  



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



Re: Force page expiration

2009-10-27 Thread Pedro Santos
You are aware that to an page expire, it has to be statefull, right?
In a statefull page:
getPage().getPageMap().clear()
and the previous versions will to be removed from pagemap, then you got the
page expired when try to back to then...

On Tue, Oct 27, 2009 at 4:05 PM, Tomás Rossi tro...@mecon.gov.ar wrote:

 Nothing seems to work.

 Does the fact that the page I want to expire is the home page has anything
 to do with it?

 Pedro Santos escribió:

  The page returned from back button came from pagemap. Make sure to remove
 it
 from there and you get the expired exception.

 On Tue, Oct 27, 2009 at 11:57 AM, Tomás Rossi tro...@mecon.gov.ar
 wrote:



 Hi, I have another question...

 in Wicket (1.4.2), can I force the expiration of a page?
 Specifically, if users hit browser's back-button, I'd like to show them
 the
 page-expired message.

 I've already tried to invalidate the session, but I got a horrible
 exception when re-submitting the form after reaching it through the back
 button.

 Thanks in advance,
 --
 Tom;



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










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




-- 
Pedro Henrique Oliveira dos Santos


Re: Tree table with check box

2009-10-27 Thread Per Newgro

sakthi vel schrieb:

Hello,

I have a single column in the tree table.
But I need to have check box in the same column along with nodes and not in
the seperate column.
Can anyone tell how to acheive this.

  
Use a markupcontainer and add both components to it. Then add container 
as cell.


Cheers
Per

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



Re: urlFor(ResourceReference) strangeness

2009-10-27 Thread pieter claassen
Ok, but I have a panel and I want to add an Image to the panel but when I
log into my application I get the ../../.. prefix, and the ResourceReference
then fails. However, once I click on any link, the prefix disappears and
then my panel can find the ResourceReference. Am I misunderstanding how
resource references should be used?

Thanks,
Pieter

On Tue, Oct 27, 2009 at 4:21 PM, Ryan McKinley ryan...@gmail.com wrote:

 urlFor( ) uses the current request to get a relative path.  If the location
 you are calling urlFor() from changes, it will get a new location

 Note the only difference between the two urls is the ../../.. prefix


 On Oct 27, 2009, at 11:05 AM, pieter claassen wrote:

  WHen I start my application, my urlFor() returns a different URL than when
 I
 call it a second time?

   ResourceReference iconref = new ResourceReference(anchorclass,
 iconname);
   System.out.println(URL: +urlFor(iconref));

 First time it returns:
 URL:

 ../../../resources/com.musmato.wicket.pages.styles.option1.Option1StyleAnchor/document.png

 second time:
 URL:

 resources/com.musmato.wicket.pages.styles.option1.Option1StyleAnchor/document.png

 Any ideas?

 Thanks
 Pieter
 --



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




-- 
Pieter Claassen
musmato.com


RE: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread Corbin, James
Hi,

I'll weigh in on this discussion if you don't mind.

It sounds like you've already made up your mind on how you want to
proceed.

You can definitely take the approach you describe below, but it removes
some of the freedom from the designer if they have to conform to a
preconceived styling template that a developer provides.

As others had suggested, I would let the designer work in a vacuum (so
to speak), coming up with their own styling, and then you can adopt your
wicket application to use some or all of the css styling the designer
provides.

I don't think there is any right answer to this question, its what works
best for you and your company.

Regards,
J.D.

-Original Message-
From: Ashley Aitken [mailto:mrhat...@mac.com] 
Sent: Tuesday, October 27, 2009 11:10 AM
To: users@wicket.apache.org
Subject: Re: Wicket HTML before graphics design with CSS ...


Thanks Martin and John.

I realise that most projects start with Web/GUI storyboards and  
perhaps even fully graphically designed pages and then add the dynamic  
stuff.  However, I think my situation is somewhat the reverse. I want  
to design the logical interface myself, header, footers, navigation,  
and page contents, the hierarchy of contents including any text, but  
then have the graphic designer make it beautiful.

I'm hoping to make it possible for them to do this with a CSS file,  
and some images (logos, buttons, etc.) I am wishing to know what I can  
do in the HTML pages I construct to make this most possible, easy,  
efficient etc. I don't mind the fact that when I am developing the app  
my pages will not look right, hopefully they will be logically clear,  
in fact I would prefer that, so I can focus on the logical interface  
rather than design specifics.

As I mentioned, I think of it as creating the pages but leaving the  
CSS file empty (or at most some basic default).  Does that make  
sense?  Sorry if I am not explaining myself clearly.

Thanks,
Ashley.

--
Ashley Aitken
Perth, Western Australia
mrhatken at mac dot com
Skype Name: MrHatken (GMT + 8 Hours!)








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


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



Wicket GAE Performance

2009-10-27 Thread Alexander Elsholz
Hi,

we build a wicket-application, running in gae - all works fine. but when
deploying on gae-environment the performance is terrible (tried development and
deploymentmode). an ajax-call takes more than 3 secounds. i logged all
database-queries - no problem there. we lost time anywhere in
wicket-request-cycle. had anyone simelar problems and solved them?

thanks a lot alex


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



Re: Wicket GAE Performance

2009-10-27 Thread Pedro Santos
What profiler is telling you? I had performance problem on file system file
access, and solve it removing this time consuming task from the
wicket-request-cycle thread

On Tue, Oct 27, 2009 at 5:36 PM, Alexander Elsholz 
alexander.elsh...@widas.de wrote:

 Hi,

 we build a wicket-application, running in gae - all works fine. but when
 deploying on gae-environment the performance is terrible (tried development
 and
 deploymentmode). an ajax-call takes more than 3 secounds. i logged all
 database-queries - no problem there. we lost time anywhere in
 wicket-request-cycle. had anyone simelar problems and solved them?

 thanks a lot alex


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




-- 
Pedro Henrique Oliveira dos Santos


Wicket and JQuery

2009-10-27 Thread Jeffrey Schneller
I am trying to determine how to use Wicket and JQuery.  I would prefer
not using wiQuery or similar.  I would like to just include the jQuery
libraries in my html and then use jQuery as javascript and not wrap
everything in java on the server side to generate the client code.

 

How would one go about doing this?  I assume the basic jQuery
functionality is straight forward.  However how would you implement
jQuery code that uses Ajax to communicate back to the server using
Wicket on the server?  Or would the recommendation be to let Wicket
handle the Ajax communication and only use jQuery for the UI components
such as Lightbox, Greybox, apple like sliders, etc.

 

Any ideas?

 

Thanks.

 

 



Using email in SignInPanel Username

2009-10-27 Thread Swarnim Ranjitkar

I'm trying to use wicket signinpanel . When and choose remember me checkbox and 
use email address in username  (eg@ttt.com , next time when i come it it 
just remembers abc as user name instead of a...@ttt.com). It seems when storing 
and retreving value from cookies we need to encode and decode the value . It 
doesn't look like wicket is doing this by default which is why this is 
happening. Does any one know what is the solution for this. 

html
head
titleSign In/title
link rel=stylesheet type=text/css href=style.css/
style
body { background-image: none; }
/style
/head
body
h2Sign In/h2

span wicket:id=signInPanel/
/body
/html

thank you
  

Re: Wicket and JQuery

2009-10-27 Thread Jeremy Thomerson
I'd suggest only using jQuery for the UI effects and let Wicket do the AJAX.

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



On Tue, Oct 27, 2009 at 4:06 PM, Jeffrey Schneller 
jeffrey.schnel...@envisa.com wrote:

 I am trying to determine how to use Wicket and JQuery.  I would prefer
 not using wiQuery or similar.  I would like to just include the jQuery
 libraries in my html and then use jQuery as javascript and not wrap
 everything in java on the server side to generate the client code.



 How would one go about doing this?  I assume the basic jQuery
 functionality is straight forward.  However how would you implement
 jQuery code that uses Ajax to communicate back to the server using
 Wicket on the server?  Or would the recommendation be to let Wicket
 handle the Ajax communication and only use jQuery for the UI components
 such as Lightbox, Greybox, apple like sliders, etc.



 Any ideas?



 Thanks.








Re: Release 1.4.3

2009-10-27 Thread Jeremy Thomerson
1.4.3 is definitely frozen.  Just that confluence replication is not working
for the site right now.  (bummer)

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



On Tue, Oct 27, 2009 at 10:53 AM, Corbin, James jcor...@iqnavigator.comwrote:

 Okay, that's good enough for me...I want to upgrade from 1.4.1 to 1.4.3
 and wanted to be sure it was frozen (as much as can be expected for an
 open source product).

 Thanks,
 j.D.

 -Original Message-
 From: Matthias Keller [mailto:matthias.kel...@ergon.ch]
 Sent: Tuesday, October 27, 2009 9:36 AM
 To: users@wicket.apache.org
 Subject: Re: Release 1.4.3

 Corbin, James wrote:
  James,
 
  Do you know when the official release of 1.4.3 is happening?  By
 official I mean the Apache Wicket Website updated with the release
 announcement and links to the official package downloads.
 
  J.D.
 
 Well, it is as official as can be, they just have some troubles updating

 the webpage itself.
 Here's the announcement from earlier on:

  release tag:
 https://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.3
 
  download: http://www.apache.org/dyn/closer.cgi/wicket/1.4.3
 
  changelog:
 https://issues.apache.org/jira/browse/WICKET/fixforversion/12314250
  ( full release notes below )
 
  maven:
 
  dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
version1.4.3/version
  /dependency
 
  thank you.
 
  -igor
 
  ps. our website has not yet been updated with the release
  announcement, something is broken with the confluence publishing
  plugin.
 
  ---
 
  Release Notes - Wicket - Version 1.4.3
 
  ** Bug
 * [WICKET-2348] - always insert encoding in http response header
 * [WICKET-2436] - invalid DataTable markup breaks table layout
 * [WICKET-2497] - AutoComplete textfield ignores visible
  property within hierarchy.
 * [WICKET-2501] - BaseWicketTester clickLink calls onBeginRequest
 two times.
 * [WICKET-2505] - Button.onSubmit javadoc is misleading
 * [WICKET-2506] - Regression: Could not find child with id: ID
  in the wicket:enclosure for non-component tag
 * [WICKET-2507] - Inconsistent resource path using wicket:link
  and HeaderContributor after second request
 * [WICKET-2508] - NullPointerException in
  BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:96)
 * [WICKET-2513] - wicket:enclosure does not work if child is a
  container and not a component (regression from 1.4.1)
 * [WICKET-2516] - Javadoc for Component.getMarkupId is incorrect
 * [WICKET-2518] - Application_bg.properties property file is
  incorrectly encoded
 * [WICKET-2520] - Use of Object instead of generic T in
  StringAutoCompleteRenderer
 * [WICKET-2522] - Easy fix suggestion: In BaseWicketTester
  'IFormSubmitting' component should be the submitting component, not
  just a 'Button'
 * [WICKET-2525] - DatePicker consume too much memory
 * [WICKET-2527] - wicket:enclosure child attribute search path has
 changed
 * [WICKET-2528] - CheckBoxMultipleChoice ignores isDisabled()
 checks
 * [WICKET-2530] - Class not found when using OSGI class loader
 
  ** Improvement
 * [WICKET-2344] - Performance improvement: more efficient
  AnnotProxyFieldValueFactory cache
 * [WICKET-2459] - Add new German Wicket Book
 * [WICKET-2511] - Upgrade to SLF4J version 1.5.8
 * [WICKET-2524] - Configurable Throttle delay for
 AutoCompleteBehavior
 
  ** Wish
 * [WICKET-2468] - AjaxLazyLoadPanel do not respect especific
  projects components configuration
 * [WICKET-2515] - ModalWindow javadoc improvent


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




images not cached

2009-10-27 Thread Fernando Wermus
Hi all,
I am testing an app in production and I have reached a problem you may
help solve me. Like the war files were big, I decided to move all static
images to a folder in production and add the following code to my
Applicacion class.

mount(new URIRequestTargetUrlCodingStrategy(/images) {

@Override public IRequestTarget decode(RequestParameters requestParameters)
{

try {

return serveStaticImages(getURI(requestParameters), );

} catch (Exception e) {

throw new WicketRuntimeException(e);

}

}

});

The problem is that each time that  someone calls a page, all the images are
downloaded again. I know this isnt the best aproach and actually, it is
awful in practices because of this issue. Why isnt caching the images and
which would be the best approach?

Thanks in advance


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread Ashley Aitken


Thank you all.

So it seems what I am trying to do is not completely impractical.

Perhaps though I could let them edit the HTML files as well (as long  
as they maintain the logical / hierarchical structure I guess).  I  
just wanted to make it easier for them to do things consistently  
(across pages etc.) and thought CSS styles would be the way to go.


Cheers,
Ashley.


--
Ashley Aitken
Perth, Western Australia
Skype/iChat: MrHatken (GMT + 8hrs!)


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



Re: Odd even class for each row in tree table

2009-10-27 Thread Jeremy Thomerson
Something like this oughta work

protected Item newRowItem(String id, int index, IModel model)
{
Item item = super.newRowItem(String id, final int index, IModel model);
item.add(new AttributeModifier(class, true, new
AbstractReadOnlyModelString() {
return index % 2 == 0 ? even : odd;
});
return item;
}

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



On Tue, Oct 27, 2009 at 11:17 AM, sakthi vel vela@gmail.com wrote:

 protected Item newRowItem(String id, int index, IModel model)
 {
 return new OddEvenItem(id, index, model);
 }



Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread Dave B
 thought CSS styles would be the way to go.

Oh, you should definitely use CSS and web standards based markup. You
should be able to apply the most basic style to it yourself so you can
get the functionality going.  Google 3 column layout or something
similar for a basic css based layout.

While my Wicket usage is very basic at the stage, one of the
attractive parts is the code and logic is completely separate to the
layout.  So your designers can do all the fine tuning and magic
without screwing up your work.

Cheers,
Dave


On Wed, Oct 28, 2009 at 11:14 AM, Ashley Aitken mrhat...@mac.com wrote:

 Thank you all.

 So it seems what I am trying to do is not completely impractical.

 Perhaps though I could let them edit the HTML files as well (as long as they
 maintain the logical / hierarchical structure I guess).  I just wanted to
 make it easier for them to do things consistently (across pages etc.) and
 thought CSS styles would be the way to go.

 Cheers,
 Ashley.


 --
 Ashley Aitken
 Perth, Western Australia
 Skype/iChat: MrHatken (GMT + 8hrs!)


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



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



Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread John Armstrong
Its amazing what designers can screw up :)

Design can have a huge impact on code. This peaceful co-existence can
really only occur if you let the designers go first. If you start with
wicket you will either A) tell your designers to go to h*ll daily or
B) spend hours and hours re-factoring to meet their 'whims'.

The separation of html/code is wonderful in wicket and a key reason I
use it and advocate for it but its no substitute for good planning and
a 'design first' mentality.

John-

On Tue, Oct 27, 2009 at 8:18 PM, Dave B d...@davebolton.net wrote:

 While my Wicket usage is very basic at the stage, one of the
 attractive parts is the code and logic is completely separate to the
 layout.  So your designers can do all the fine tuning and magic
 without screwing up your work.

 Cheers,
 Dave

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



Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread Igor Vaynberg
really? because we have quiet the opposite experience.

we take a wireframe prototype, build it, and have the designer go in
afterwards and pretty it up. with only a couple of hours of
wicket-related training the designers know what to touch and what not
to touch.

-igor

On Tue, Oct 27, 2009 at 9:15 PM, John Armstrong siber...@siberian.org wrote:
 Its amazing what designers can screw up :)

 Design can have a huge impact on code. This peaceful co-existence can
 really only occur if you let the designers go first. If you start with
 wicket you will either A) tell your designers to go to h*ll daily or
 B) spend hours and hours re-factoring to meet their 'whims'.

 The separation of html/code is wonderful in wicket and a key reason I
 use it and advocate for it but its no substitute for good planning and
 a 'design first' mentality.

 John-

 On Tue, Oct 27, 2009 at 8:18 PM, Dave B d...@davebolton.net wrote:

 While my Wicket usage is very basic at the stage, one of the
 attractive parts is the code and logic is completely separate to the
 layout.  So your designers can do all the fine tuning and magic
 without screwing up your work.

 Cheers,
 Dave

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



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



Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread John Armstrong
Totally divergent now but its an interesting topic.

We segment our Designers, HTML implementors and Java developers. Thats
probably the key difference.

Our designers work in photoshop or illustrator to pretty exacting
requirements. This lets us contract out design work to a variety of
firms specific to the task/project and they don't have to concern
themselves with our requirements. Lots cheaper for us and at the end
of the 'Creative Process' we are usually very locked on what is going
to be implemented, how it will look and how it all interacts.

We then have a stable of devs around the world who convert the layered
Photoshop document to CSS very cheaply and very quickly and know how
to work to our exact requirements.

We usually dismiss the entire design/html team after the initial
delivery which is often months before the project is completed. We
just don't need them for that project after that stage.

For us I've just found it cheaper and more efficient to entirely
separate these teams and thats actually a big reason I picked wicket.
It lets me do that very easily. $5k for the design process, $200 to
convert it to HTML and a month  or two of coding by a single developer
and you launch, its very assembly line and predictable for me.

So I think its a workflow diff. If your Designer is actually a really
solid hybrid Designer/CSS Person you can get a good workflow going but
I find them an expensive luxury that I (in my business) can't afford
anymore.

John-

On Tue, Oct 27, 2009 at 9:21 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 really? because we have quiet the opposite experience.

 we take a wireframe prototype, build it, and have the designer go in
 afterwards and pretty it up. with only a couple of hours of
 wicket-related training the designers know what to touch and what not
 to touch.

 -igor

 On Tue, Oct 27, 2009 at 9:15 PM, John Armstrong siber...@siberian.org wrote:
 Its amazing what designers can screw up :)

 Design can have a huge impact on code. This peaceful co-existence can
 really only occur if you let the designers go first. If you start with
 wicket you will either A) tell your designers to go to h*ll daily or
 B) spend hours and hours re-factoring to meet their 'whims'.

 The separation of html/code is wonderful in wicket and a key reason I
 use it and advocate for it but its no substitute for good planning and
 a 'design first' mentality.

 John-

 On Tue, Oct 27, 2009 at 8:18 PM, Dave B d...@davebolton.net wrote:

 While my Wicket usage is very basic at the stage, one of the
 attractive parts is the code and logic is completely separate to the
 layout.  So your designers can do all the fine tuning and magic
 without screwing up your work.

 Cheers,
 Dave

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



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



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



Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread Igor Vaynberg
On Tue, Oct 27, 2009 at 9:36 PM, Ashley Aitken mrhat...@mac.com wrote:

 Hi Igor (et al.),

 On 28/10/2009, at 12:21 PM, Igor Vaynberg wrote:

 we take a wireframe prototype, build it, and have the designer go in
 afterwards and pretty it up.

 Great, that is what I was hoping for.

 Any tips on how to do this so that it is easier for the designers?

be sure to enable
idebugsettings().setOutputMarkupContainerClassName(true), this will
make it very easy for the designers to identify which file is
responsible for generating any bit of markup they want to tweak.

also, be sure there is an easy way for the designer to launch an
uptodate build. we keep a set of scripts in our root svn folder that
run svn update and launch the app in a mode that creates a new
database and populates it with test data. to set up a designer we
perform an initial svn checkout, and they are good to go. this means
the designer can work on a live app (thanks to wicket's markup
reloading feature) and immediately see their changes, and more
importantly, if they borked anything.

there are times when the designer goes back to the dev team and asks
to have a bit of functionality added here and there, like a dynamic
css class on a specific tag, etc. the turnaround is usually pretty
quick and once the dev checks in the change the designer simply uses
the above mentioned script to update their build and move forward.
this allows the devs and the designers to pretty much work in parallel
past the initial wireframe implementation.

 Anything special we need to do wrt page layout, CSS, etc.?

not really. once you turn on the the debug setting above and explain
to your designer how tags like wicket:child, wicket:extend, and
wicket:link work they can get around pretty well. eg our guy uses
textmate to edit the html files and that works great for him.

-igor

 I'm happy to do the logical UI design, I just want them to be able to make
 it pretty (as you say).

 Cheers,
 Ashley.

 --
 Ashley Aitken
 Perth, Western Australia
 mrhatken at mac dot com
 Skype Name: MrHatken (GMT + 8 Hours!)








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



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