[jira] Created: (WICKET-137) Problems with Wickets way of searching all resource files

2006-12-04 Thread Jesper Preuss (JIRA)
Problems with Wickets way of searching all resource files
-

 Key: WICKET-137
 URL: http://issues.apache.org/jira/browse/WICKET-137
 Project: Wicket
  Issue Type: Bug
  Components: wicket
Affects Versions: 1.2.3
Reporter: Jesper Preuss


Take a look in http://cwiki.apache.org/WICKET/i18n-and-resource-boundles.html

Wicket will search for
1. Panel_locale.properties
and if the file exists and the property is not located in this file 
Panel_locale.properties then it will never look in Panel.properties for the 
property.
Wicket will only continue the search in 
2. Panel.properties
if the file Panel_locale.properties does not exist.

See discussion 
http://sourceforge.net/mailarchive/forum.php?thread_id=31159579forum_id=42411


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (WICKET-138) new MixedUrlEncoding

2006-12-04 Thread Erik van Oosten (JIRA)
 [ http://issues.apache.org/jira/browse/WICKET-138?page=all ]

Erik van Oosten updated WICKET-138:
---

Attachment: MixedParamUrlCodingStrategy.java

 new MixedUrlEncoding
 

 Key: WICKET-138
 URL: http://issues.apache.org/jira/browse/WICKET-138
 Project: Wicket
  Issue Type: New Feature
  Components: wicket
Affects Versions: 2.0, 1.3, 1.2.4
Reporter: Erik van Oosten
 Attachments: MixedParamUrlCodingStrategy.java, 
 MixedParamUrlCodingStrategyTest.java


 The current URL encoders have no variant that allows you to specify a part of 
 the parameters as URL path and the rest as querystring.
 Attached is an implementation that does this.
 Feel free to include this in the wicket repository.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[CONF] Apache Wicket: migrate-1.3 (page edited)

2006-12-04 Thread confluence










Page Edited :
WICKET :
migrate-1.3



 
migrate-1.3
has been edited by Martijn Dashorst
(Dec 04, 2006).
 

 
 (View changes)
 

Content:
Migrating to Wicket 1.3

API changes

DatePicker
the DatePicker component has been removed from the wicket-extensions package. It now lives as a separate project on http://wicket-stuff.sf.net/wicket-contrib-datepicker. If you require the datepicker to be present in your code, and don't want to use the new date picker component, then add the following depenency to your maven project (or download the distribution from sourceforge): 

dependency
groupIdwicket-stuff/groupId
artifactIdwicket-contrib-datepicker/artifactId
version1.2/version
/dependency


ISessionStore
ISessionStore had the following changes:
  String getSessionId(Request request); - String getSessionId(Request request, boolean create);
  + void onBeginRequest(Request request);
  + void onEndRequest(Request request);
  + PageMap createPageMap(String name, Session session);
By default, the creation of lasting sessions is deferred until actually needed. As long no lasting session is yet created and users are accessing stateless pages, a temporary session object is used for the current request.

Button
AjaxSubmitButton and AjaxSubmitLink now extend Button and Button extends IFormSubmittingComponent. As a result of this, method onSubmit changed from protected to public

IHeaderContributor
void renderHead(final Response response); - void renderHead(final IHeaderResponse response);
This resulted in a couple of cascading changes, like methods onRenderHeadContribution and onRenderHeadInitContribution not being used anymore. Note that the filtering of duplicate contributions is now part of IHeaderResponse.
A common fix is this:

protected void onRenderHeadInitContribution(Response response) {
writeJsReference(response, AUTOCOMPLETE_JS);
  }


should be converted to:


public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.renderJavascriptReference(AUTOCOMPLETE_JS);
  }


or for instance code like

protected String getImplementationId() {
  return "ArchiveActions";
}

protected void onRenderHeadContribution(Response response) {
  if (!isComplete()) {
response.write("script");
response.write(getCallbackScript().toString());
response.write("/script");
  }
}


would be rewritten like


public void renderHead(IHeaderResponse response) {
  if (!isComplete()) {
response.renderJavascript(getCallbackScript(), "ArchiveActions");
  }
}


ISessionFactory
Session newSession() - Session newSession(Request)

WicketServlet - WicketFilter

In Wicket 2.0 and 1.3 we now prefer using a Filter instead of a Servlet. This allows you to map your application to the root of your context and still let the container serve resources.

If you use a URL pattern in your filter mapping, you need to specify that also as an init-param to the WicketFilter.


filter
filter-nameStatelessApplication/filter-name
filter-classwicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name
param-valuewicket.examples.stateless.StatelessApplication/param-value
/init-param
init-param
param-namefilterPath/param-name
param-valuestateless/param-value
/init-param
/filter

filter-mapping
filter-nameStatelessApplication/filter-name
url-pattern/stateless/*/url-pattern
/filter-mapping












Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








svn commit: r482266 - /incubator/wicket/tags/dashorst/20061204-1855/

2006-12-04 Thread dashorst
Author: dashorst
Date: Mon Dec  4 09:56:07 2006
New Revision: 482266

URL: http://svn.apache.org/viewvc?view=revrev=482266
Log:
Tag for future reference

Added:
incubator/wicket/tags/dashorst/20061204-1855/
  - copied from r482264, incubator/wicket/branches/wicket-1.x/



[jira] Updated: (WICKET-139) DefaultTreeState allowSelectMultiple == false not evaluated when selecting node already selected

2006-12-04 Thread Jim McLaughlin (JIRA)
 [ http://issues.apache.org/jira/browse/WICKET-139?page=all ]

Jim McLaughlin updated WICKET-139:
--

Attachment: defaulttreestate.patch

separate selected == true processing into two stages:
1. if allowSelectMultiple == false, remove nodes except the one being selected, 
if it is present
2. add the selected node if it is not already selected.

 DefaultTreeState allowSelectMultiple == false not evaluated when selecting 
 node already selected
 

 Key: WICKET-139
 URL: http://issues.apache.org/jira/browse/WICKET-139
 Project: Wicket
  Issue Type: Bug
  Components: wicket
Reporter: Jim McLaughlin
Priority: Minor
 Attachments: defaulttreestate.patch


 selectNode will not process the change from allowSelectMultiple == true to 
 allowSelectMultiple == false when selectNode is called on a TreeNode that is 
 already in the selectedNodes set

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[CONF] Apache Wicket: Fancy Validation using AJAX, Alternatives to FeedbackPanel (page created)

2006-12-04 Thread confluence










Page Created :
WICKET :
Fancy Validation using AJAX, Alternatives to FeedbackPanel



 
Fancy Validation using AJAX, Alternatives to FeedbackPanel
has been created by Jeremy Levy
(Dec 04, 2006).
 

Content:
If you want to have a more "web 2.0" validation on your forms here is a quick way to do it:

Using the Wicket Example: Ajax Builtin: FormPage as a base, the onError method is called if any of your validators fail, in there you need to view the children components attached to your form and check the isValid() method on each one. A really easy to do this is the following:

 protected void onError(final AjaxRequestTarget target, Form form) {

 log.warn("onError Called");

   // Safe way to view the children components...
 form.visitFormComponents(new FormComponent.IVisitor() {

 public void formComponent(FormComponent formComponent) Unknown macro: {  log.debug("Checking} 

 }
 });
 }
The above example also adds in _javascript_ effects borrowed from the Effects example using the script.aculo.us library.











Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[CONF] Apache Wicket: Fancy Validation using AJAX, Alternatives to FeedbackPanel (page edited)

2006-12-04 Thread confluence










Page Edited :
WICKET :
Fancy Validation using AJAX, Alternatives to FeedbackPanel



 
Fancy Validation using AJAX, Alternatives to FeedbackPanel
has been edited by Jeremy Levy
(Dec 04, 2006).
 

 
 (View changes)
 

Content:
If you want to have a more "web 2.0" validation on your forms here is a quick way to do it:

Using the Wicket Example: Ajax Builtin: FormPage as a base, the onError method is called if any of your validators fail, in there you need to view the children components attached to your form and check the isValid() method on each one. A really easy to do this is the following:

 protected void onError(final AjaxRequestTarget target, Form form) {

 log.warn("onError Called");

   // Safe way to view the children components...
 form.visitFormComponents(new FormComponent.IVisitor() {

 public void formComponent(FormComponent formComponent) {
  log.debug("Checking: " + formComponent.getMarkupId() + " " + formComponent.isValid());

 if (formComponent.isValid())
Unknown macro: { target.addComponent(formComponent); target.appendJavascript("new Effect.Shake($(" + formComponent.getMarkupId() + "));"); } 

 }
 });
 }
The above example also adds in _javascript_ effects borrowed from the Effects example using the script.aculo.us library.











Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[CONF] Apache Wicket: Fancy Validation using AJAX, Alternatives to FeedbackPanel (page edited)

2006-12-04 Thread confluence










Page Edited :
WICKET :
Fancy Validation using AJAX, Alternatives to FeedbackPanel



 
Fancy Validation using AJAX, Alternatives to FeedbackPanel
has been edited by Jeremy Levy
(Dec 04, 2006).
 

 
 (View changes)
 

Content:
If you want to have a more "web 2.0" validation on your forms here is a quick way to do it:

Using the Wicket Example: Ajax Builtin: FormPage as a base, the onError method is called if any of your validators fail, in there you need to view the children components attached to your form and check the isValid() method on each one. A really easy to do this is the following:

 protected void onError(final AjaxRequestTarget target, Form form) {

 log.warn("onError Called");

   // Safe way to view the children components...
 form.visitFormComponents(new FormComponent.IVisitor() {

 public void formComponent(FormComponent formComponent) {
  log.debug("Checking: " + formComponent.getMarkupId() + " " + formComponent.isValid());

 if (formComponent.isValid())
Unknown macro: {
 target.addComponent(formComponent); 
target.appendJavascript("new Effect.Shake($(" + formComponent.getMarkupId() + "));"); } 

 }
 });
 }
The above example also adds in _javascript_ effects borrowed from the Effects example using the script.aculo.us library.











Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[CONF] Apache Wicket: Fancy validation using AJAX, alternatives to FeedbackPanel (page edited)

2006-12-04 Thread confluence










Page Edited :
WICKET :
Fancy validation using AJAX, alternatives to FeedbackPanel



 
Fancy validation using AJAX, alternatives to FeedbackPanel
has been edited by Jeremy Levy
(Dec 04, 2006).
 

 
 (View changes)
 

Content:
If you want to have a more "web 2.0" validation on your forms here is a quick way to do it:

Using the Wicket Example: Ajax Builtin: FormPage as a base, the onError method is called if any of your validators fail, in there you need to view the children components attached to your form and check the isValid() method on each one. A really easy to do this is the following:

 protected void onError(final AjaxRequestTarget target, Form form) {

 log.warn("onError Called");

   // Safe way to view the children components...
 form.visitFormComponents(new FormComponent.IVisitor() {

 public void formComponent(FormComponent formComponent) {
  log.debug("Checking: " + formComponent.getMarkupId() + " " + formComponent.isValid());

 if (formComponent.isValid())Unknown macro: {
 target.addComponent(formComponent); 
target.appendJavascript("new Effect.Shake($(" + formComponent.getMarkupId() + "));"); 

 } 
 });
 }
The above example also adds in _javascript_ effects borrowed from the Effects example using the script.aculo.us library.











Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[CONF] Apache Wicket: Fancy validation using AJAX, alternatives to FeedbackPanel (page edited)

2006-12-04 Thread confluence










Page Edited :
WICKET :
Fancy validation using AJAX, alternatives to FeedbackPanel



 
Fancy validation using AJAX, alternatives to FeedbackPanel
has been edited by Jeremy Levy
(Dec 04, 2006).
 

 
 (View changes)
 

Content:
If you want to have a more "web 2.0" validation on your forms here is a quick way to do it:

Using the Wicket Example: Ajax Builtin: FormPage as a base, the onError method is called if any of your validators fail, in there you need to view the children components attached to your form and check the isValid() method on each one to determine if that component passed validation. A really easy to do this is the following:

 protected void onError(final AjaxRequestTarget target, Form form) {
 
    log.debug("onError called");

    form.visitFormComponents(new FormComponent.IVisitor() {
    
    public void formComponent(FormComponent formComponent) {
    log.debug("Checking: "  + formComponent.getMarkupId() + " " + formComponent.isValid());
    
    if (!formComponent.isValid()){ // If this component failed validation, do something fancy to display it to the user...
    target.addComponent(formComponent);
    target.appendJavascript("new Effect.Shake($('" + formComponent.getMarkupId() + "'));");
    }
    
    }
    });
    }

The above example also adds in _javascript_ effects borrowed from the Effects example using the script.aculo.us library.











Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[jira] Created: (WICKET-140) Add Icelandic translation (attached)

2006-12-04 Thread Logi Ragnarsson (JIRA)
Add Icelandic translation (attached)


 Key: WICKET-140
 URL: http://issues.apache.org/jira/browse/WICKET-140
 Project: Wicket
  Issue Type: Improvement
  Components: wicket
Affects Versions: 1.2.3
Reporter: Logi Ragnarsson
Priority: Minor


Attached is an Icelandic translation of the wicket/Application.properties file 
found in wicket-1.2.3.jar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (WICKET-140) Add Icelandic translation (attached)

2006-12-04 Thread Logi Ragnarsson (JIRA)
 [ http://issues.apache.org/jira/browse/WICKET-140?page=all ]

Logi Ragnarsson updated WICKET-140:
---

Attachment: Application_is.properties

Icelandic translation of wicket-1.2.3

 Add Icelandic translation (attached)
 

 Key: WICKET-140
 URL: http://issues.apache.org/jira/browse/WICKET-140
 Project: Wicket
  Issue Type: Improvement
  Components: wicket
Affects Versions: 1.2.3
Reporter: Logi Ragnarsson
Priority: Minor
 Attachments: Application_is.properties


 Attached is an Icelandic translation of the wicket/Application.properties 
 file found in wicket-1.2.3.jar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira