Re: Palette - AJAX functionality

2016-04-27 Thread PDiefent
Hi Sven,
thanks for your help - looks promising now!
Now I only have to improve the CSS ...
Peter

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Palette-AJAX-functionality-tp4674433p4674460.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Palette - AJAX functionality

2016-04-27 Thread PDiefent
Hi Sven, 
thanks for your reply. Please find a QickStart attached.
Peter
palette.7z
  

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Palette-AJAX-functionality-tp4674433p4674453.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Palette - AJAX functionality

2016-04-26 Thread PDiefent
Hello,
I've migrated my Wicket 6 application to Wicket 7 and I got some problems
with a modal window containing a palette component.
In Wicket 7 no updates are visible between the two lists
(available/selected). If I try to move one entry to the opposite list there
is only a short flicker but no entry will be moved.
Unfortunaletly there is no AJAX related example available for Wicket 7 ...
Thanks for any hints
Peter

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Palette-AJAX-functionality-tp4674433.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: AjaxFallbackLink - target NULL

2015-08-09 Thread PDiefent
Hi Sven, I don't get any messages in the browsers console. It is a Java
exception and every AjaxFallbackLink is affected:
22:14:59.614 [http-nio-8037-exec-3] ERROR
org.apache.wicket.DefaultExceptionMapper.mapUnexpectedExceptions(DefaultExceptionMapper.java:170)
- Unexpected error occurred
org.apache.wicket.WicketRuntimeException: Method onLinkClicked of interface
org.apache.wicket.markup.html.link.ILinkListener targeted at
[AjaxFallbackLink [Component id = filter]] on component [AjaxFallbackLink
[Component id = filter]] threw an exception
at
org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:268)
~[wicket-core-7.0.0.jar:na]
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
~[wicket-core-7.0.0.jar:na]
at
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:241)
~[wicket-core-7.0.0.jar:na]
at
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
~[wicket-core-7.0.0.jar:na]
at
org.apache.wicket.core.request.handler.RequestSettingRequestHandler.respond(RequestSettingRequestHandler.java:78)
~[wicket-core-7.0.0.jar:na]
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:865)
~[wicket-core-7.0.0.jar:7.0.0]
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
~[wicket-request-7.0.0.jar:na]
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
[wicket-core-7.0.0.jar:7.0.0]
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
[wicket-core-7.0.0.jar:7.0.0]
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
[wicket-core-7.0.0.jar:7.0.0]
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
[wicket-core-7.0.0.jar:na]
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
[wicket-core-7.0.0.jar:na]
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:284)
[wicket-core-7.0.0.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.24]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.24]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
[catalina.jar:8.0.24]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
[catalina.jar:8.0.24]
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
[catalina.jar:8.0.24]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
[catalina.jar:8.0.24]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
[catalina.jar:8.0.24]
at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
[catalina.jar:8.0.24]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
[catalina.jar:8.0.24]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
[catalina.jar:8.0.24]
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
[tomcat-coyote.jar:8.0.24]
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
[tomcat-coyote.jar:8.0.24]
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
[tomcat-coyote.jar:8.0.24]
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
[tomcat-coyote.jar:8.0.24]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0_51]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_51]
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[tomcat-util.jar:8.0.24]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_51]
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.8.0_51]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[na:1.8.0_51]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.8.0_51]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51]
at
org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
~[wicket-core-7.0.0.jar:na]
... 30 common frames omitted
Caused by: java.lang.NullPointerException: 

Re: Show html help page from dropdown

2014-07-16 Thread PDiefent
Perfect, that's what I searched for.
Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Show-html-help-page-from-dropdown-tp424p428.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Show html help page from dropdown

2014-07-16 Thread PDiefent
I only want to open a html page in a new browser window or tab, no modal
popup. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Show-html-help-page-from-dropdown-tp424p426.html
Sent from the Users forum mailing list archive at Nabble.com.

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



StringResourceModel

2014-02-27 Thread PDiefent
Hi,
I just ran into a problem generating a confirmation for a delete request.
I'm using an AjaxCallListener to build the confirmation message:

public class AjaxConfimListener extends AjaxCallListener {
private static final long serialVersionUID = 1L;
private final LinkIcon icon; 

public AjaxConfimListener(final LinkIcon linkIcon) {
super();
this.icon = linkIcon;
}

@Override
public CharSequence getPrecondition(
Component component) {
return "if (confirm (\"" 
+ new
StringResourceModel("confirm"+icon.name()+"."+component.getPage().getClass().getSimpleName(),
component.getPage(),

component.getParent().getDefaultModel()).getString()
+ "\")) { return true;} else { return false;}";
}


The problem rises with the StringResourceModel. The message is composed with
information of the item to delete:

confirmDELETE.Detail='${name}' wirklich löschen?
  
The getter getName() of the component returns a string like "Buster "The
But" Baggin" with double quotes inside. I suppose that while rendering the
String I will need something like "Buster "The But" Baggin" as a
result.

Is there any help inside Wicket to render the string like this?

Thanks a lot, Peter

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

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



Re: Leaving page after closing modal results in browser pop up

2014-02-15 Thread PDiefent
Hi Paul,
yes, this works. But why didn't I need it in former Wicket releases?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Leaving-page-after-closing-modal-results-in-browser-pop-up-tp4664471p4664484.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Leaving page after closing modal results in browser pop up

2014-02-15 Thread PDiefent
Hi Ernesto, I didn't try because with former versions of Wicket the
confirmation doesn't rise.
The problem seams to exist since Wicket 6.13.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Leaving-page-after-closing-modal-results-in-browser-pop-up-tp4664471p4664475.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Leaving page after closing modal results in browser pop up

2014-02-14 Thread PDiefent
Hi,
with the current Wicket 6.13.0 I got a new problem. When leaving a page
after openin a modal window results in a browser pop up where I have to
confirm leaving the page. If I leave the page without opening the modal
window the browser doesn't request a confirmation.

Any suggestions?

Thanks, Peter 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Leaving-page-after-closing-modal-results-in-browser-pop-up-tp4664471.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Problem with inmethod grid if double quotes are in strings

2013-12-31 Thread PDiefent
Hi Martin,
is there any alternative choice to inmethod grid. I'm searching for a more
flexible grid component like FlexiGrid with more options to control paging
and resizing the grid (perhaps jquery ...)
Thanks for your support and a Happy and Successful New Year.
Peter



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-inmethod-grid-if-double-quotes-are-in-strings-tp4660141p4663348.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Problem with inmethod grid if double quotes are in strings

2013-11-27 Thread PDiefent
Hi Martin,
while the WicketStuff team seems to be too busy to look at this issue I
recognized that also AjaxFallBackLinks won't work if the model contains an
attribute of the type String with a value containing double quotes. I guess
that there are some more errors in the wicket code handling such strings.
Is it possible for you to have a look at this problem.
Thanks, Peter



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-inmethod-grid-if-double-quotes-are-in-strings-tp4660141p4662691.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Problem with inmethod grid if double quotes are in strings

2013-07-08 Thread PDiefent
Hallo,
I'm using the inmethod grid component in my web application. For the first
time a double quote (") appeares in my table data and now the grid is
extended by an additional column containing the .toString() value of the
column with the double quote characters in it.
Now I can't change size and order of the table columns. If I replace the
double quote with a single quote (') character everything works fine again.

Peter

 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-inmethod-grid-if-double-quotes-are-in-strings-tp4660141.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 6 trees

2012-10-23 Thread PDiefent
yes, i've overridden this method:
@Override
protected Component newContentComponent(String id, IModel
model) {
return new StyledLinkLabel(id, model)
{
private static final long serialVersionUID = 1L;


@Override
protected String getStyleClass() {
return "treeIcon";
}

}; 
}

Now I get a link without markup followed by the icon and the text from the
model:


<../page?4-1.ILinkListener-tree-subtree-branches-1-node-junction>  



1 - The space is you - Kurt Klavier (more in time)







--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-trees-tp4653082p4653246.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 6 trees

2012-10-22 Thread PDiefent
Hi,
this helped a lot. But I'm struggling with the link component of the node.
If I'm using a StyledLinkLabel inside the newContentComponent method I get a
link for the textual part of the node but there is no icon for toggling the
subtree.
Do you have a hint for me to solve this problem.
Thanks a lot, Peter
 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-trees-tp4653082p4653201.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Error with tree component with 1.5.2

2011-11-07 Thread PDiefent
One new hint concerning the error messages. If I use the Tree class instead
of AbstractTree and set the linktype after constructing the tree, the
message doesn't appear any more but the tree component slows down extremely!

...
tm = createTreeModel(animals);
tree = new CdTree("tree", tm);
tree.setRootLess(true);
*   tree.setLinkType(LinkType.REGULAR);*
tree.getTreeState().collapseAll();
testForm.add(tree.setOutputMarkupId(true));


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-with-tree-component-with-1-5-2-tp3956513p3997926.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Error with tree component with 1.5.2

2011-11-02 Thread PDiefent
The same problem occurs if I use a PackageResourceReference as an image model
and try to update it in an AjaxLink. When erasing the toggleIcon component
from the target.add method, the error doesn't occur.

/**
 * @author Peter Diefenthäler
 * Link to toggle visibility of a dependent component.
 * 
 * Make sure that Component is Ajax enabled:
 * comp.setOutputMarkupPlaceholderTag(true);  
 */
public class ToggleLink extends AjaxFallbackLink {
private static final long serialVersionUID = 1L;
private static final Log LOG = LogFactory.getLog(ToggleLink.class);
private static final PackageResourceReference RES_MAXIMIZED = new
PackageResourceReference(ToggleLink.class,"icon_min_container.gif");
private static final PackageResourceReference RES_MINIMIZED = new
PackageResourceReference(ToggleLink.class,"icon_max_container.gif");
private final Image toggleIcon = new Image("toggleIcon",new
PropertyModel(this,"imgResource")); 

@SuppressWarnings("unused")
private PackageResourceReference imgResource;
private final Component toggleComp;

/**
 * Constructor
 * 
 * @param id
 *Identifier
 * @param comp
 *Content component to toggle visibility of
 */
public ToggleLink(String id, final Component comp) {
super(id);
this.setDefaultModel(new 
PropertyModel(comp,"visible"));
this.toggleComp = comp;
syncImg();
add(toggleIcon.setOutputMarkupId(true));
}

@Override
public void onClick(AjaxRequestTarget target) {
LOG.debug("toggle ...");
toggleComp.setVisible(!this.getModel().getObject());
syncImg();
LOG.debug("visible: " + toggleComp.isVisible());
target.add(toggleIcon,toggleComp);
}

private void syncImg() {
imgResource =  this.getModel().getObject() ? RES_MAXIMIZED :
RES_MINIMIZED;
}
}

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-with-tree-component-with-1-5-2-tp3956513p3978018.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Error with tree component with 1.5.2

2011-11-01 Thread PDiefent
@Martin: It's on FireFox also.

I don't thimk it's an serialization issue because it works fine with an
older Wicket release. The error occurs on expanding and collapsing single
nodes in the tree (inside the updateTree(target) method). 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-with-tree-component-with-1-5-2-tp3956513p3963083.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Customize AjaxEditableLabel

2011-07-04 Thread PDiefent
Here are some code sniplets, perhaps you can see what's wrong - I definitely
don't call super newEditor().

The next problem I will get is that the ContentEditorLabel closes when I
click on an other field in the form. I would prefer a modal behaviour what
means that I have to use the buttons to close the ne edit fields ...


private class ContentEditorLabel extends AjaxEditableLabel {
private static final long serialVersionUID = 1L;
public ContentEditorLabel(String id) {
super(id);

}   
@Override
protected final FormComponent newEditor(
MarkupContainer parent, String componentId,
IModel model) {

final SwiftFieldInput editor = new 
SwiftFieldInput(componentId, model){
private static final long serialVersionUID = 1L;

@Override
public IConverter getConverter(Class type)
{
IConverter c = 
ContentEditorLabel.this.getConverter(type);
return c != null ? c : 
super.getConverter(type);
}

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

ContentEditorLabel.this.onModelChanged();
}

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

ContentEditorLabel.this.onModelChanging();
}
}; 
editor.setOutputMarkupId(true);
editor.setVisible(false);
editor.add(new EditorAjaxBehavior());
return editor;
}
};

package com.csc.pts.web.panels.swift;

import org.apache.wicket.markup.html.form.FormComponent;
import org.apache.wicket.markup.html.form.FormComponentPanel;
import org.apache.wicket.markup.html.form.TextArea;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;

public class SwiftFieldInput extends FormComponentPanel {
private static final long serialVersionUID = 1L;

private final FormComponent contentArea;
String test;
public SwiftFieldInput(String id, IModel model) {
super(id,model);

contentArea = new TextArea("contentarea",new 
Model());
add(contentArea);
}

@Override
protected void onModelChanged() {
super.onModelChanged();
String content = getModelObject();
if (content != null)
contentArea.setModelObject(content);
else
contentArea.setModelObject(null);
}
}



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Customize-AjaxEditableLabel-tp3643409p3645206.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Customize AjaxEditableLabel

2011-07-04 Thread PDiefent
I tried it like AjaxEditableLabel does itself, but now I get the default
input field plus the new fields in the panel! How do I erase the default
text field?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Customize-AjaxEditableLabel-tp3643409p3643712.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Customize AjaxEditableLabel

2011-07-04 Thread PDiefent
Thanks for your fast response. 
Is there a QuickStart available how to implement it?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Customize-AjaxEditableLabel-tp3643409p3643435.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Tomcat 7 stylesheet problem

2010-08-06 Thread PDiefent

Hello,
I tried to start my Wicket application with the new Tomcat 7.0.0 release and
got a problem with the stylesheet path:

Source HTML:

http://www.w3.org/1999/xhtml";
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd";
xml:lang="en" lang="en">





WicketTest




[tab panel]



Browser HTML:

http://www.w3.org/1999/xhtml";
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd";
xml:lang="en" lang="en">





WicketTest


The relative Path "styles/tabStyles.css" is changed to
"../styles/tabStyles.css". In Tomcat 5 and 6 relaeses it works fine ...

Any Ideas?
Thanks, Peter
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Tomcat-7-stylesheet-problem-tp2316068p2316068.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: DatePicker css

2010-07-21 Thread PDiefent

Hi,
I also have a problem with the date picker CSS. The columns in the calendars
GUI always resize according to the column width of the table in the
background of the calendar GUI.
Is it possible to isolate the calendar in a separate layer/div where no
resizing of the calendar columns take place?
Thanks, Peter
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DatePicker-css-tp1844715p2298194.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 + security, what are the best options? Spring Security reached almost all the way...

2010-05-10 Thread PDiefent

where can I find the wicket-shiro-example stuff?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-security-what-are-the-best-options-Spring-Security-reached-almost-all-the-way-tp2068415p2173369.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 + security, what are the best options? Spring Security reached almost all the way...

2010-05-10 Thread PDiefent

Thanks for this fast respnse. I will have a deeper look at it.
Actually I hoped to find a much more simple solution, because I wanted to
avoid Spring in my application and only use it for authentication ...
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-security-what-are-the-best-options-Spring-Security-reached-almost-all-the-way-tp2068415p2165351.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 + security, what are the best options? Spring Security reached almost all the way...

2010-05-07 Thread PDiefent

I have also problems integrating security into my Wicket project. I wanted to
use simple authentication form the application server as I used many times
before with JSF applications, but it didn't work.

Spring security sounds very good, but since I don't use spring in my Wicket
application I didn't manage to get the examples form above to work.

It would be nice, if anyone could post a little example application as a
kick start especially with Wicket 1.4.x

Thanks, Peter
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-security-what-are-the-best-options-Spring-Security-reached-almost-all-the-way-tp2068415p2134111.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: automatic palette sorting

2010-04-08 Thread PDiefent

Hi Robert,
how did you call the new function. My IE always runs on error if I try to
call the sort function ...
Thanks, Peter


robert.mcguinness wrote:
> 
> in palette.js include the following function and call in
> Wicket.Palette.updateRecorder and Wicket.Palette.remove
> 
> 

-- 
View this message in context: 
http://old.nabble.com/automatic-palette-sorting-tp28096974p28177326.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: Bug in StyleDateConverter?

2010-03-29 Thread PDiefent

An other strange behaviour of the StyleDateConverter("M-"...): If you enter
12.12.12 you get 14.12.12 as a result ...
With Format "S" it is OK and if you enter 12.12.2012 the result is also OK.

Peter


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




-- 
View this message in context: 
http://old.nabble.com/Bug-in-StyleDateConverter--tp28066513p28067878.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: Ajax refresh problem with WebMarkupContainer and CSS class in DeploymentMode

2010-03-26 Thread PDiefent

Because it is urgent, I tried some changes without success. 
It seems to be the AjaxFallBackLink in the dataview, wich causes the table
not to be shown when the page shows up. 
Is there any other possibility to show a modal window without an AjaxLink?

Here is some code of the dataview with the link ...

dataView = new DataView("sorting", dp) {
private static final long serialVersionUID = 1L;

/*
 * (non-Javadoc)
 * @see 
org.apache.wicket.markup.repeater.data.DataViewBase#onDetach()
 */
@Override
protected void onDetach() {
super.onDetach();
}

/*
 * (non-Javadoc)
 * @see
org.apache.wicket.markup.repeater.RefreshingView#populateItem(org.apache.wicket.markup.repeater.Item)
 */
@Override
protected void populateItem(final Item item) {
WebConfig con = (WebConfig) 
item.getModelObject();
AjaxLink detailLink = new 
AjaxLink("detailLink") {
private static final long 
serialVersionUID = 1L;

@Override
public void onClick(AjaxRequestTarget 
target) {
WebConfig item = (WebConfig) 
getParent()
.getDefaultModelObject();
LOGGER.debug("show details " + 
item.getKey() + " ...");

modalNewConfig.setTitle("Configuration Parameter - Details");
modalNewConfig.setContent(new
NewConfigPanel(modalNewConfig.getContentId(),
item, true, 
feedback,modalNewConfig));
modalNewConfig.show(target);

target.appendJavascript("document.getElementById('inKey').focus()");
}
};
item.add(detailLink);

detailLink.add(new Label("key",con.getKey()));

...

Thanks in advance, Peter
-- 
View this message in context: 
http://old.nabble.com/Ajax-refresh-problem-with-WebMarkupContainer-and-CSS-class-in-DeploymentMode-tp27998174p28039133.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: Ajax refresh problem with WebMarkupContainer and CSS class in DeploymentMode

2010-03-23 Thread PDiefent

In development mode the browser shows a WICKET AJAX DEBUG Link after
rendering the page. Maybe this causes the browser to show the contents of
the table.
If I hit the new button in my window, a modal window appears and the table
contents also show up ...



-- 
View this message in context: 
http://old.nabble.com/Ajax-refresh-problem-with-WebMarkupContainer-and-CSS-class-in-DeploymentMode-tp27998174p27999042.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: Ajax refresh problem with WebMarkupContainer and CSS class in DeploymentMode

2010-03-23 Thread PDiefent

The mail import did put the wrong  tag in this message. In the original code
the span tag is well formed. By the way, this will lead to an error in both
modes - development and deployment mode ...


Ilja Pavkovic-3 wrote:
> 
> Hi,
> 
> this looks wrong:
>> 
> use  
> 
> 
> Best Regards,
>   Ilja Pavkovic
> 
> Am Dienstag, 23. März 2010 10:28:41 schrieb Peter Diefenthaeler:
>> Hi Wicket Folks,
>> I have a little problem using a WebMarkupContainer with Ajax refresh in
>> Deployment Mode.
>> 
>> The page shows a table like the sorting data view example in the Wicket
>> Examples. The table resides in a div section with a y-Scrollbar and a
>> ButtonPagingNavigator.
>> 
>> My IE7 doesn't show the view in Deployment Mode, while in Development
>> Mode
>> the page works fine. If I delete the class attribute in the DIV tag, the
>> page works fine in both modes. Adding the CSS class in HTML or as a
>> AttributeModifier in the java code makes no difference. Also using a
>> style
>> attribute or using  inside the DIV tag doesn't help.
>> 
>> Markup:
>> 
>>   
>>   
>> 
>>   
>>  #  "key">[cnfBTest] 
>>   [Yes]> span]>
>> 
>>   
>>   
>> 
>> 
>> Java code:
>> 
>> private final WebMarkupContainer configView = new WebMarkupContainer(
>> "configView");
>> ...
>> configView.setOutputMarkupId(true);
>> add(configView);
>> configView.add(dataView);
>> 
>> Deployment mode:
>> 
>> (Embedded image moved to file: pic08363.gif)
>> Development mode:
>> (Embedded image moved to file: pic04651.gif)
>> 
>> Thanks in advance,
>> Peter Diefenthäler
> 
> 
> -- 
> binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin
> 
>+49 · 171 · 9342 465
> 
> Handelsregister: HRB 115854 - Amtsgericht Charlottenburg
> Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Ajax-refresh-problem-with-WebMarkupContainer-and-CSS-class-in-DeploymentMode-tp27998174p27998947.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: Example for Combobox wanted

2010-02-10 Thread PDiefent

I don't understand. How do I create a textfield and a dropdown in one markup
field. And how to synchronize the two contents?
I didn't find any example in the wicket examples ...

nino martinez wael wrote:
> 
> Yes it's possible, just make a panel with a drop down and textfield, and
> ajax enable both.. It should be simple.. Have you checked the wicket
> examples?
> 
> 2010/2/8 Peter Diefenthaeler 
> 
>>
>> Hi,
>> I'm looking for an example of a ComboBox which is a combination of a
>> textfield and DropDownChoice.
>> It should be possible to type in a new value and submit it, or to select
>> from the values in the DropDownChoice and submit it.
>> The AJAX autocomplete example seems to be good, but you have to type in
>> one
>> character to get a choice ...
>> Thanks, Peter
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Example-for-Combobox-wanted-tp27495901p27534457.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: How to simulate browser back button?

2010-02-02 Thread PDiefent

It's not that simple! My IE doesn't accept the onclick in the   tag.
Is it poosible to run the code in the onSubmit method of a Wicket button?


Erik van Oosten wrote:
> 
> No problem:
> 
>  # back 
> 
> 
> Peter Diefenthaeler wrote:
>> Hallo Wicket users.
>> is there an easy way to simulate the browsers back button with an own
>> button in a form?
>>
>> Thank in advance
>> Peter
>>   
> 
> -- 
> Send from my SMTP compliant software
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/How-to-simulate-browser-back-button--tp27404303p27416704.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: Resource leaks for CSS and IMG tags

2009-11-08 Thread PDiefent

No, it seems not to be this issue. The *.css files and the images are located
in separate folders 'styles' and 'images' at the same location where the
WEB-INF folder is located. There are no jar files including the resources.
I've tested the work around but the problem still exists.
Peter


Jonas-21 wrote:
> 
> could this be the same issue as described here?
> https://issues.apache.org/jira/browse/WICKET-2534
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Resource-leaks-for-CSS-and-IMG-tags-tp26233434p26262301.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: 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:
>   
> 
> 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:
> 
> 
> <>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



Re: What is the best way to handle "Undefined attribute name (wicket:id)" warnings from Eclipse Ganymede?

2009-09-02 Thread PDiefent

This works fine for pages, but how can I manage it when working with panels -
there are no  tags to put the DTD in ...




...



Timo Rantalaiho wrote:
> 
> On Mon, 02 Feb 2009, jWeekend wrote:
>> We've been using: 
>> xmlns:wicket="http://svn.apache.org/repos/asf/wicket/trunk/wicket/wicket-xhtml1-strict.dtd";.
> 
> Nowadays there's also
> 
> http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd
> 
> http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd
> 
> Best wishes,
> Timo
> 
> -- 
> Timo Rantalaiho   
> Reaktor Innovations Oyhttp://www.ri.fi/ >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/What-is-the-best-way-to-handle-%22Undefined-attribute-name-%28wicket%3Aid%29%22--warnings-from-Eclipse-Ganymede--tp2179p25252744.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: Tree Table - Update Model

2009-05-14 Thread PDiefent

Hi Matej,
is it possible to post a little example?
-Peter

Matej Knopp-2 wrote:
> 
> In order for tree to update items your model must fire treeNodesChanged
> event.
> 
> -Matej
> 
> 
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Tree-Table---Update-Model-tp23549640p23554149.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: Update DropDownChoice with ModalWindow

2009-04-28 Thread PDiefent

Hi Vladimir,
for the solution, look at
http://www.nabble.com/Update-DropDownChoice-td22944165.html
Peter

Vladimir K wrote:
> 
> PDiefent,
> 
> I've came across similar problem. In my case, and what I'm discovered fits
> your case as well, the following is happening:
> 
> ModalWindow is component based. It is rendered in two parts. The first
> part is all you put into your markup. The second part is dynamically built
> within a separate div within the  tag.
> 
> Concerning browser's DOM, your form and modal window form are not
> overlapped. Nothing is passed for DDChoice when modal window form is
> submitted.
> Concerning wicket tree your form and modal window form are overlapped
> (modal form is within). So when wicket is updating formcomponent models
> (and it starts from the outermost form for some reason), it has to fill
> DDC, but nothing is passed in request for it. So wicket fills it with
> null, what explains "choose a value" message in it.
> 
> I don't know what is actually wrong - how wicket is processing form or
> ModalWindow implementation that renders modal window somewhere outside of
> the place you pointed. It is up to authors to decide.
> 
> I'm going to investigate workarounds. Will be back if suceed.
> 

-- 
View this message in context: 
http://www.nabble.com/Update-DropDownChoice-with-ModalWindow-tp22595072p23290916.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: Update DropDownChoice

2009-04-08 Thread PDiefent

Hi Dariusz,
thank you very much, that's the solution for my problem. 
Peter


Dariusz Wojtas wrote:
> 
> Try to update the ddc model, then call:
>ddc.modelChanged();
> before rendering.
> 
> Regards,
> 
> Dariusz Wojtas
> 
> On Wed, Apr 8, 2009 at 8:36 AM, Peter Diefenthaeler 
> wrote:
>>
>> Hallo,
>> I'm trying to update a DropDownChoice from a Ajax Callback. The new value
>> is correctly added to the choice of selectable values, but I can't set
>> the
>> new added value as the selected value, only new choice is shown ...
>> Any ideas are welcome.
>> Thanks, Peter
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Update-DropDownChoice-tp22944165p22964826.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: Update DropDownChoice with ModalWindow

2009-03-20 Thread PDiefent

It's definitely not a hashCode/equals problem, because when the page is
rendered, the initial value of the dropDown is set correctly from the
PropertyModel. After coming back from the modal window the DropDownChoice
can't set the new value ...

asfernandes wrote:
> 
>> Looks like lack of hashCode/equals implementation for the type used.
>> I suffered from exactly problem as you initially described... But in my 
>> case, however, equals() was implemented to always return false, and 
>> DropDownChoice calls it. Perhaps, your problem is different, but I don't 
>> know if it can happen due to different instances of objects created by 
>> LoadableDetachableModel so you had to correctly override this method, or 
>> is a totally different thing...
>> 
>> 
>> Adriano
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Update-DropDownChoice-with-ModalWindow-tp22595072p22615156.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: Update DropDownChoice with ModalWindow

2009-03-19 Thread PDiefent

Adriano, I don't know what you mean. In my point of view the
LoadableDetachableModel representing the list with the names is updated, but
the property model representing the actual name not.
I'm using target.addComponent(nameDropDown) in the setWindowClosedCallback()
method and I'm setting the actual name in the onSubmit() method of the
AjaxSubmitLink in the modal window. But obviously there is something missing
...
Looks like lack of hashCode/equals implementation for the type used.


Adriano


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




-- 
View this message in context: 
http://www.nabble.com/Update-DropDownChoice-with-ModalWindow-tp22595072p22601399.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



Update DropDownChoice with ModalWindow

2009-03-19 Thread PDiefent

Hi,
In my panel I have a DropDownChoice with names. An AjaxLink opens a
ModalWindow where I can enter a new name. After submitting the modal window,
the new name is stored in the database and the new entry is added to the
DropDownChoice contents. All this works fine, but one problem remains: The
new name doesn't show up in the DropDownChoice field, only "Choose value" is
shown.
Any suggestions?
Thanx, Peter
-- 
View this message in context: 
http://www.nabble.com/Update-DropDownChoice-with-ModalWindow-tp22595072p22595072.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