@SpringBean support for bean in child ApplicationContext

2016-02-24 Thread jchappelle
I'm working with the developer of PF4J(Plugin Framework for Java) to provide
better plugin functionality for Wicket. There is already a pf4j-spring and a
pf4j-wicket project to provide some basic integration. In order to allow the
@SpringBean or @Inject annotations to have access to plugin beans in a child
context we need to be able to lookup the ApplicationContext associated with
a specific class. 

So for example, say I have a MyService bean in a child(plugin)
ApplicationContext and that plugin also provides a panel that needs that via
a @SpringBean annotation. Spring doesn't allow the parent ApplicationContext
to see beans in a child context and for good reason. So we would get an
exception saying that bean could not be found since @SpringBean only looks
up beans in the parent context. We have code that we have developed that
look up the child context like so:

SpringPlugin plugin =
(SpringPlugin)PluginManager.whichPlugin(MyService.class);
ApplicationContext pluginContext = plugin.getApplicationContext();

How could I modify or provide this functionality in a custom version of
SpringComponentInjector? It uses a ISpringContextLocator but that context
locator does not specify the class for which it needs the
ApplicationContext. 

Any ideas on how this could be achieved?

Thanks for your help!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/SpringBean-support-for-bean-in-child-ApplicationContext-tp4673719.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



Conflicting warnings about location of wicket.properties in Wicket 7

2016-01-12 Thread jchappelle
I have a dashboard library that we use at our company. It has an Initializer.
The wicket.properties file is stored in the same package as the rest of the
code, not in a META-INF folder. After upgrading to Wicket 7 I started
noticing the following warning:

//wicket.properties location is deprecated. Please move the file to
/META-INF/wicket/ folder and give it a name that matches your packages'
name, e.g. com.example.myapp.properties/

So I thought, no problem, I'll just follow the instructions in the well
written message and move the properties file and rename it. I renamed the
file to com.redi.wicket.dashboard.properties and moved it to META-INF/wicket
folder. Now I get the following warning:

//META-INF/wicket/*.properties doesn't work in OSGi and single-jar
environments and is not supported anymore! Please see
https://issues.apache.org/jira/browse/WICKET-5997 for more details and
report an issue for the library that still uses it./

I looked at WICKET-5997, WICKET-6030 AND WICKET-5713 and tried to piece
together what I was supposed to do.

I've noticed in the Application class there are deprecated methods regarding
this and one, collectWicketProperties, that will be removed in 7.3.0. So I'd
like to get this fixed while it is fresh on my mind and not have it bite me
down the road when I upgrade.

So where do I put my initializer properties file and what do I name it?

Thanks




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Conflicting-warnings-about-location-of-wicket-properties-in-Wicket-7-tp4673269.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: Conflicting warnings about location of wicket.properties in Wicket 7

2016-01-12 Thread jchappelle
I'm adding my own answer in hopes that it helps someone in the future. 

I figured it out by looking at the code for org.apache.wicket.Application.
Here the developers mention that you should use the ServiceLoader class for
Initializers. https://issues.apache.org/jira/browse/WICKET-5997. I noticed
the Application.initInitializers method and saw the ServiceLoader class they
were talking about.

So I read up on the java.util.ServiceLoader class and it states the
following:

A service provider is identified by placing a provider-configuration file in
the resource directory META-INF/services. The file's name is the
fully-qualified binary name of the service's type. The file contains a list
of fully-qualified binary names of concrete provider classes, one per line.

So I created a META-INF/services folder and put a text file named
org.apache.wicket.IInitializer and inside the file I put the fully qualified
class name of my IInitializer implementation.

The warning went away and my Initializer was called on application startup
which is exactly what I wanted.

NOTE: If you are migrating from using wicket.properties make sure to take
out the "initializer=" part of the file. The new way is not a properties
file so it doesn't have key value pairs. It only has fully qualified class
names separated by new lines. See the java.util.ServiceLocator documentation
if you need more details.

Also if you are using maven, the META-INF/services folder will go in
src/main/resources.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Conflicting-warnings-about-location-of-wicket-properties-in-Wicket-7-tp4673269p4673270.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: Conflicting warnings about location of wicket.properties in Wicket 7

2016-01-12 Thread jchappelle
Thank you Martin!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Conflicting-warnings-about-location-of-wicket-properties-in-Wicket-7-tp4673269p4673277.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



Install/Setup page with Spring

2014-10-19 Thread jchappelle
This isn't a wicket problem but a general question to the community related
to wicket and spring.

We have a properties file that has configurations for 3 separate datasources
and a couple of other things like license keys that are used by spring to
configure the application and create the datasources. When our app is
launched for the first time it would be great to give our team a setup page
that allows them to fill out a form with this information because if
something is mistyped in the properties file then it requires a restart
after fixing it.

The problem is that we use the ContextLoaderListener to startup our spring
context so everything has to be set up ahead of time.

Have any of you written something like this for your applications? If so it
would be great if you could share with me your experience and give some
pointers on how to achieve this.

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Install-Setup-page-with-Spring-tp4667986.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: org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException when provider data for DataTable changes before paging (Wicket 6.x up to and including 6.15.0)

2014-06-11 Thread jchappelle
By the way that is exactly how we handle these errors as well. The only time
I ever see ListenerInvocationNotAllowedExceptions are when the state of the
database changes between clicks. With repainting the screen the users may
click a link and then the link disappears which is weird. But that is way
better than redirecting them to an error page.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/org-apache-wicket-core-request-handler-ListenerInvocationNotAllowedException-when-provider-data-for--tp4666171p4666206.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



Testing a DropDownChoice without a Form with wantOnSelectionChangedNotifications=true

2014-03-25 Thread jchappelle
I have a DropDownChoice that is not within a Form and I'm trying to write a
test that selects an item in that DropDownChoice. I have been trying to use
WicketTester.executeUrl and give it the url in the onchange attribute of the
DropDownChoice but I'm not having any luck. Even if I do get that to work,
it requires me duplicating the logic of how wicket generates that url, which
means my code could break if wicket changes this.

Does anyone know of a good way to do this?

Thanks!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Testing-a-DropDownChoice-without-a-Form-with-wantOnSelectionChangedNotifications-true-tp4665121.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: The wicket way of getting application base URL

2014-03-13 Thread jchappelle
We just use a configuration property in our application that is stored in our
properties database table. So our solution really doesn't involve wicket
at all.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/The-wicket-way-of-getting-application-base-URL-tp4664925p4664938.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



Pass exception to internal error page

2014-03-13 Thread jchappelle
I am using wicket 6.14.0.

I have a RequestCycleListener that listens for onException. I handle
PageExpiredException, UnauthorizedInstantiationException(this is custom),
and by default I redirect to a custom ErrorPage class that takes the
Exception object in the constructor. It also contains a list of ignored
exceptions that it will return null for. This custom ErrorPage actually
reports an error to our JIRA bug tracker when it renders to the user.

The problem I am having is we are getting a lot of bug reports for things
like StalePageException and ComponentNotFoundException when I think wicket
can handle those without the user knowing. While I can add them to the
ignored list, I don't think this is a good design because as wicket changes,
these exceptions can change.

I would like a way to just register my internal error page with
getApplicationSettings().setInternalErrorPage(...) but I can't because I
won't have my Exception passed to my error page. Is there a way to do this?
Or is there some way to access the last exception associated with the
session?

I suppose I can create an Exception variable in my Session class and set it
in my RequestCycleListener but I'm hoping there is a better way.

Thanks!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Pass-exception-to-internal-error-page-tp4664951.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: View page not updating after Edit page makes changes

2014-03-03 Thread jchappelle
On your View page your ListView should have a LoadableDetachableModel passed
to it instead of the Article.getArticles() list. In fact you could use the
same model that you have feeding your DropDownChoice in your edit page. Just
refactor that model out into a separate class and use in both cases.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/View-page-not-updating-after-Edit-page-makes-changes-tp4664739p4664745.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: View page not updating after Edit page makes changes

2014-03-03 Thread jchappelle
I took your code and I could reproduce it but then I realized that my
Article.getArticles() method was returning a new ArrayList every time it was
called. I changed it to be static and it fixed it. I did omit the
article.getSmallThumbImageResource() method though.

Can you post the code for your Article class please? 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/View-page-not-updating-after-Edit-page-makes-changes-tp4664739p4664751.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: View page not updating after Edit page makes changes

2014-03-03 Thread jchappelle
I tried using your code with wicket 6 and it wasn't working so I'm guessing
you are using something earlier than wicket 6. ByteImageResource could not
be resolved. 

I did make a change to the Article class and the TestView class that seemed
to make it work. I changed Article to have a url String instead of storing
the byte array of the image. I think that is better from a design standpoint
as well. But I'll try not to muddy the waters with my design
recommendations. Once I did that I changed the TestView to display the image
like this:

item.add(new Image(thumbImg, new
UrlResourceReference(Url.parse(item.getModelObject().getUrl();

Once I did that it seemed to work. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/View-page-not-updating-after-Edit-page-makes-changes-tp4664739p4664758.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: tinymce textarea in a modal window not letting to type

2014-02-07 Thread jchappelle
The original issue is pretty old but tinymce in a modal window worked in 1.5
and it is not working in 6.13.0. I guess I'm going to have to redesign my
pages to not use the tinymce in a modal window.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-modal-window-not-letting-to-type-tp1886534p4664309.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: tinymce textarea in a modal window not letting to type

2014-02-05 Thread jchappelle
I am having this same issue in wicket 6.13.0. Any fixes as of yet?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-modal-window-not-letting-to-type-tp1886534p4664214.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: Understanding setPageExpiredErrorPage and onUnauthorizedInstantiation

2014-01-22 Thread jchappelle
Martin,

Yes our Application.init method is where we register a
IAuthorizationStrategy and a IUnauthorizedComponentInstantiationListener. Do
those override the setPageExpiredErrorPage() somehow? I'm trying to
understand the interplay so that I can give our users a meaningful message
when they click something after the session expires.

We have a custom IExceptionMapper as well but that never gets called when I
am reproducing this. What does get called is the onUnauthorizedInstantiation
method and it redirects to a login page since the user is not logged in. In
that method there is no way for me to know if it was an unauthorized
instantiation because of a session timeout or because of some other reason.

If you need a quickstart I can create one. I just figured this is such a
common thing that someone might be able to point me in the right direction.

Thanks,

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Understanding-setPageExpiredErrorPage-and-onUnauthorizedInstantiation-tp4663870p4663891.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: Understanding setPageExpiredErrorPage and onUnauthorizedInstantiation

2014-01-22 Thread jchappelle
Martin,

I noticed in one of your posts you point out the difference between session
expiration and page expiration. I have been thinking they are the same thing
when they are obviously not. I'm looking to redirect when the session
expires. Although thinking through this I'm not sure there is a way since it
will expire on the server and there most likely won't be a request in
progress when this happens. I guess I can use a client side timer that
checks back with the server on an interval and redirects when it expires. Is
there a wicket recommended way to do this or is this something that everyone
re-invents the wheel for?

Thanks,

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Understanding-setPageExpiredErrorPage-and-onUnauthorizedInstantiation-tp4663870p4663894.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: Understanding setPageExpiredErrorPage and onUnauthorizedInstantiation

2014-01-22 Thread jchappelle
I think I have it working like I want now. The IExceptionMapper that I had
registered was causing an issue. I'm not sure why but when I used the
RequestCycleListener.onException method it seems to send me
PageExpiredExceptions when the session expires. This way I can redirect to
the login page with a message to the user.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Understanding-setPageExpiredErrorPage-and-onUnauthorizedInstantiation-tp4663870p4663895.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



Understanding setPageExpiredErrorPage and onUnauthorizedInstantiation

2014-01-21 Thread jchappelle
I'm trying to set a custom PageExpiredErrorPage and I'm not able to do that.
It appears that the framework is calling my onUnauthorizedInstantiation
method in my implementation of IUnauthorizedComponentInstantiationListener
instead. 

Here is how I am able to reproduce:
1. User logs in
2. Wait longer than the session timeout (1 minute for testing)
3. User clicks a link on the page

My IUnauthorizedComponentInstantiationListener is sending them back to the
login page because they are no longer logged in. 

I've searched and looked through wicket code but I can't find the answer.
What am I doing wrong?

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Understanding-setPageExpiredErrorPage-and-onUnauthorizedInstantiation-tp4663870.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



ListenerInvocationNotAllowedException and EmptyRequestHandler

2014-01-10 Thread jchappelle
We are starting to get ListenerInvocationNotAllowedExceptions intermittently
in production. What are some suggestions for handling this? My first thought
is return an EmptyRequestHandler in my custom IExceptionMapper
implementation. Is this a bad practice?

Thanks for your time.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ListenerInvocationNotAllowedException-and-EmptyRequestHandler-tp4663618.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: ListenerInvocationNotAllowedException and EmptyRequestHandler

2014-01-10 Thread jchappelle
Sometimes it's an AjaxLazyLoadPanel and sometimes it is an AjaxLink. This
particular one is from an AjaxLazyLoadPanel.


2013-10-17 07:23:42,782 ERROR ajp-127.0.0.1-8009-6
com.redi.risk.ui.RiskExceptionMapper - Unexpected error occurred
2013-10-17 07:23:45,985 WARN  ajp-127.0.0.1-8009-36
org.apache.wicket.RequestListenerInterface - behavior not enabled; ignore
call. Behavior
org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel$1@1ddb562 at
component [ [Component id = filterFormPanel]]
2013-10-17 07:23:46,001 WARN  ajp-127.0.0.1-8009-36
com.redi.risk.ui.RiskExceptionMapper - Error during request
org.apache.wicket.request.handler.ListenerInvocationNotAllowedException:
Behavior rejected interface invocation. Component: [ [Component id =
filterFormPanel]] Behavior:
org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel$1@1ddb562
Listener: [RequestListenerInterface name=IBehaviorListener, method=public
abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:237)
at
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:255)
at
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:784)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at 
org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:448)
at
org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:403)
at 
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1760)
at java.lang.Thread.run(Unknown Source)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ListenerInvocationNotAllowedException-and-EmptyRequestHandler-tp4663618p4663628.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: TinyMce disappears with CryptoMapper

2014-01-08 Thread jchappelle
I have found a work around but this seems to be a bug in the
wicketstuff-tinymce project. I looked in the
wicket.contrib.tinymce.TinyMceInitializer class and the first line of the
init method had this:
application.getRootRequestMapperAsCompound().add(new
TinyMceRequestMapper());

The change I made is in my Application.init. I added the above line after
registering my CryptoMapper. So the last two lines of my Application.init
look like this:

setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), 
this));
getRootRequestMapperAsCompound().add(new 
TinyMceRequestMapper());

I'm not sure how to post a bug to the tinymce project but this seems like
something they would want to fix. Hopefully others that have this issue will
find this post useful.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMce-disappears-with-CryptoMapper-tp4663499p4663556.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: TinyMce disappears with CryptoMapper

2014-01-07 Thread jchappelle
I have a quickstart now. The setResponsePage(new TinyMcePage()) seems to
cause the issue. On the HomePage I have a tinymce and it displays fine.
However if you click a link that does the setResponsePage and transition to
a new page it does not display.

Any ideas?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMce-disappears-with-CryptoMapper-tp4663499p4663518.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: TinyMce disappears with CryptoMapper

2014-01-07 Thread jchappelle
Sorry I thought I posted it. 

Another thing I'll mention is when I turn on request logging I see these two
lines logged out in the console when the problem occurs. It looks like the
last couple of segments aren't being encrypted.

http://localhost:8080/L7ExSNbPC4sb6TPJDblCAkN0baRJxw3qBR0wyJEtP3uLmhnUUFEbeu7SFNM9wrlMrHBtoodlQMAPr5CCP9g2aproPDfvon2O/L7E59/TPJfd//langs/en.js
http://localhost:8080/L7ExSNbPC4sb6TPJDblCAkN0baRJxw3qBR0wyJEtP3uLmhnUUFEbeu7SFNM9wrlMrHBtoodlQMAPr5CCP9g2aproPDfvon2O/L7E59/TPJfd//themes/simple/editor_template.js

Here is the quickstart
tinymce-crypto-quickstart.zip
http://apache-wicket.1842946.n4.nabble.com/file/n4663520/tinymce-crypto-quickstart.zip
  

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMce-disappears-with-CryptoMapper-tp4663499p4663520.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



TinyMce disappears with CryptoMapper

2014-01-06 Thread jchappelle
I have a weird problem in wicket 6.12.0 where the TinyMce component does not
display. It will in certain cases and in some of those cases a browser
refresh causes it to vanish. If I remove the CryptoMapper from my
Application.init method then it works fine. I tried creating a quickstart
but I was unable to recreate the problem. I am hoping someone can point me
in the right direction.

By the way I do not think this was just introduced in 6.12.0. I have tried
several versions and it is still there.

Everytime it does not appear I see this error in the log:

java.lang.IllegalArgumentException: Argument 'name' may not be null or
empty.
at org.apache.wicket.util.lang.Args.notEmpty(Args.java:64)
at
org.apache.wicket.core.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:137)
at
org.apache.wicket.core.request.mapper.BookmarkableMapper.parseRequest(BookmarkableMapper.java:118)
at
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:288)
at
org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:152)
at
org.apache.wicket.core.request.mapper.CryptoMapper.mapRequest(CryptoMapper.java:127)
at
org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:190)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:215)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
at
org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:152)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:349)
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:904)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:565)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217)
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
at java.lang.Thread.run(Thread.java:724)


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMce-disappears-with-CryptoMapper-tp4663499.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: TinyMce disappears with CryptoMapper

2014-01-06 Thread jchappelle
Yes. It is version 6.12.0 also.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMce-disappears-with-CryptoMapper-tp4663499p4663504.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: Detecting when nothing is added to AjaxRequestTarget

2014-01-05 Thread jchappelle
Thanks for the replies.

Marco there is a good possibility that is what we are facing too. I have
just been guessing at the causes at this point and haven't considered the
double click.

I wonder if there is there a more global way to set that for all Ajax links
instead of creating a custom AjaxLink component. I would have to touch a lot
of code otherwise. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Detecting-when-nothing-is-added-to-AjaxRequestTarget-tp4663469p4663475.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: Detecting when nothing is added to AjaxRequestTarget

2014-01-05 Thread jchappelle
I have found the issue and I can finally reproduce it!

The issue is similar to what you described. We have a dashboard panel that
has several tabs. Those tabs are ajax tabs. If a user clicks a tab and it
takes a while to load then they click on a link on the current tab while
waiting then you will get a ComponentNotFoundException. I tried to use the
updateAjaxAttributes approach by making custom tab links, but that didn't
work. Probably because the link they are clicking on the tab panel itself
does not have that attribute.

My simple solution to this is to just use a regular TabbedPanel instead of
AjaxTabbedPanel. It seems to fix the issue. 

Thanks a bunch for your input because it pointed me in the right direction!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Detecting-when-nothing-is-added-to-AjaxRequestTarget-tp4663469p4663477.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: Detecting when nothing is added to AjaxRequestTarget

2014-01-05 Thread jchappelle
That's a good point. We use those in a lot of our data tables that take a
while to load. In fact I have created a base class that hides that and
automatically wraps the DataTable in an AjaxLazyLoadPanel. I might make a
custom TabbedPanel that wraps the panel in an AjaxLazyLoadPanel. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Detecting-when-nothing-is-added-to-AjaxRequestTarget-tp4663469p4663480.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



Detecting when nothing is added to AjaxRequestTarget

2014-01-04 Thread jchappelle
We get a lot of ComponentNotFoundExceptions in production and I have not been
able to reproduce them. I've had discussions on here before about this and I
think what is happening is that the user clicks something to change the
state of the page, say it removes a button. If we don't add the panel to the
AjaxRequestTarget then the button will still be there on the browser for the
user to click. When they click that button wicket throws this exception
because the server side does not find that button in the component
hierarchy(or it isn't visible or whatever).

So my question is how can I detect when an Ajax request happens and nothing
gets added to the AjaxRequestTarget and log it out? Or is there a better way
to run this down? I'm open to any ideas or strategies for fixing this issue.

Thanks,

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Detecting-when-nothing-is-added-to-AjaxRequestTarget-tp4663469.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



Link to BreadCrumbPanel from javascript

2013-11-22 Thread jchappelle
I have written an integration between Google Visualization api and Wicket. I
can click on a chart and receive an onSelection() event in java and it hands
me information about what was clicked. This all works great. 

The problem is that often times I want to bread crumb to another panel
instead of calling setResponsePage(new MyPage()) so that the user can return
to the chart easily. I have looked at BreadCrumbLink and used some of the
code in there to modify the BreadCrumbModel and set the active participant.
However, since it is ajax, the page never gets updated. I've tried adding
several panels to the AjaxRequestTarget to no avail. Is there a trick for
doing something like this?

Thanks!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Link-to-BreadCrumbPanel-from-javascript-tp4662622.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



Setting Session timezone without using getClientInfo()

2013-11-17 Thread jchappelle
I have been googling and searching this forum and haven't found an answer to
my question so I'm hoping someone can help me.

I have dates stored in a database that are stored as UTC. The application
that stores the data has the -Duser.timezone=UTC property set. My users have
a timezone that is set in the database. So when they log in I would like to
be able to set the timezone on the user and have it reflected in DateLabel. 

I can write some specific components if I need. I wanted to check to see
what would be a best practice in this scenario. If there isn't a global way
to set this, then should I just create a bean property on my Session for
timeZone and have all my components look at that?

Thanks,

Josh



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Setting-Session-timezone-without-using-getClientInfo-tp4662466.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: AutoCompleteTextField ajax update problem

2013-09-03 Thread jchappelle
Thanks for your response Sven. The AutoCompleteTextField was part of a bigger
component that was a homegrown tagging component. I ended up re-implementing
it using wicket-select2 and it works now, even better I might add! However,
I did have a similar problem on another panel where loading the
AutoCompleteTextField via ajax did not work. I saw somewhere that bug has
been fixed in the latest trunk. I couldn't figure out how to get the
6.11.0-SNAPSHOT to pull in through our nexus repository so I reverted back
to 6.9.1 and it worked. I'll wait for the 6.11.0 release and see if that
fixes it.

Thanks a bunch!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-ajax-update-problem-tp4661176p4661182.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



AutoCompleteTextField ajax update problem

2013-09-02 Thread jchappelle
I am in the process of migrating our app from wicket 1.5.10 to 6.10.0. I have
a panel that uses an AutoCompleteTextField with an
AjaxFormComponentUpdatingBehavior(onchange) behavior attached. It works
fine the first time I type something and select it, but it does not fire the
onchange event after that. I'm adding the entire panel that contains the
AutoCompleteTextField to the AjaxRequestTarget. If I only add the label that
displays the selection, then it works. I know javascript event registration
changed in wicket 6 and I'm assuming it has something to do with that.

This worked in 1.5.10. I can post my quickstart or just my code since it is
a very small amount. I've seen other posts similar to this but I could not
find my exact use case.

Any help is greatly appreciated.

Thanks,

Josh



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-ajax-update-problem-tp4661176.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: NullPointerException in Page constructor

2013-03-26 Thread jchappelle
Sure thing. Obviously the last two methods are getting in to my code but this
will let you see how it gets there.


Message: Can't instantiate page using constructor 'public
com.mycompany.ui.HomePage()'. Might be it doesn't exist, may be it is not
visible (public).
Root cause:
java.lang.NullPointerException
at
com.mycompany.ui.MasterPage.isProtectedComponentAction(MasterPage.java:58)
at
com.mycompany.ui.AbstractRiskAuthorizationStrategy.isActionAuthorized(AbstractRiskAuthorizationStrategy.java:39)
at org.apache.wicket.Component.isActionAuthorized(Component.java:2037)
at org.apache.wicket.Component.isEnableAllowed(Component.java:2047)
at org.apache.wicket.Component.isEnabledInHierarchy(Component.java:4420)
at org.apache.wicket.Component.isStateless(Component.java:2082)
at org.apache.wicket.Page.isPageStateless(Page.java:485)
at
org.apache.wicket.page.AbstractPageManager.touchPage(AbstractPageManager.java:123)
at
org.apache.wicket.page.PageManagerDecorator.touchPage(PageManagerDecorator.java:56)
at
org.apache.wicket.page.PageAccessSynchronizer$2.touchPage(PageAccessSynchronizer.java:273)
at org.apache.wicket.Page.dirty(Page.java:324)
at org.apache.wicket.markup.html.WebPage.dirty(WebPage.java:321)
at org.apache.wicket.Page.init(Page.java:740)
at org.apache.wicket.Page.init(Page.java:215)
at org.apache.wicket.Page.init(Page.java:194)
at org.apache.wicket.markup.html.WebPage.init(WebPage.java:104)
at com.mycompany.ui.BasePage.init(BasePage.java:27)
at com.mycompany.ui.MasterPage.init(MasterPage.java:41)
at com.mycompany.ui.MasterPage.init(MasterPage.java:36)
at com.mycompany.ui.MasterPage.init(MasterPage.java:31)
at com.mycompany.ui.HomePage.init(HomePage.java:9)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:174)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:67)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:46)
at
org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:103)
at
org.apache.wicket.request.handler.PageProvider.resolvePageInstance(PageProvider.java:274)
at
org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:165)
at
org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
at
org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:96)
at
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:246)
at
org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:167)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:784)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:349)
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:904)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:565)
at 

Re: NullPointerException in Page constructor

2013-03-26 Thread jchappelle
Here is MasterPage and below it is it's parent class BasePage.



public abstract class MasterPage extends BasePage implements Protected,
ProtectedComponent
{
private static final String bodyId = bodyPanel;

private final BaseProtectedComponent protection;

abstract protected WebMarkupContainer makeBodyPanel(String id,
PageParameters parms, Object[] objParms);

public MasterPage()
{
this(new PageParameters(), new Object[0]);
}

public MasterPage(PageParameters parms, Object[] objParms)
{
this(parms, objParms, new UnprotectedPermission());
}

public MasterPage(PageParameters parms, Object[] objParms, MyPermission
permission)
{
super(parms);

if(!isErrorPage())
{
MySession.get().resetBreadCrumbState();
}
this.protection = 
BaseProtectedComponent.makeRenderProtection(permission);
setOutputMarkupId(true);

add(new TimeoutMessagePanel(timeoutMessagePanel));
add(makeBodyPanel(bodyId, parms, objParms));
add(new MyMenuPanel(menuPanel));
}

public boolean isProtectedComponentAction(final Action action)
{
return protection.isProtectedComponentAction(action);
}

public MyPermission getRequiredPermission()
{
return protection.getRequiredPermission();
}
}

public abstract class BasePage extends WebPage
{
public BasePage()
{
super();
init();
}

public BasePage(IModel? model)
{
super(model);
init();
}

public BasePage(PageParameters parameters)
{
super(parameters);
init();
}

private void init()
{
add(new Label(applicationTitle, makeTitleModel()));
add(new JQueryHeaderContributor());
add(new MainHeaderPanel(mainHeaderPanel));
add(new MainFooterPanel(mainFooterPanel));
}

protected IModelString makeTitleModel()
{
return Model.of(My App);
}
}





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/NullPointerException-in-Page-constructor-tp4657502p4657519.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: NullPointerException in Page constructor

2013-03-26 Thread jchappelle
Sorry I left out HomePage. Here it is.


public class HomePage extends MasterPage
{
@Override
protected WebMarkupContainer makeBodyPanel(String id, PageParameters 
parms,
Object[] objParms)
{
return new HomePanel(id);
}
}




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/NullPointerException-in-Page-constructor-tp4657502p4657520.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: NullPointerException in Page constructor

2013-03-26 Thread jchappelle
Thanks for the answer Martin.

Would you suggest I extend AbstractPageManager and apply that change for
now? If so how to you install a custom page manager?




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/NullPointerException-in-Page-constructor-tp4657502p4657525.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



NullPointerException in Page constructor

2013-03-25 Thread jchappelle
We have just upgraded from wicket 1.5.4 to 1.5.10 and we are getting a
NullPointerException in the constructor of all the pages. It is happening
because our AuthorizationStrategy.isActionAuthorized calls a method on the
on our BasePage class. A NullPointerException occurrs in that method because
the constructor of our BasePage has not completed. 

This did not occur in 1.5.4 so something must have changed between 1.5.4 and
1.5.10 to cause the AuthorizationStrategy.isActionAuthorized method to be
called in the constructor of Component. I'm guessing this may be related to
a security fix?

My question is this. What is the best way to handle this? I tried moving the
code in the constructor of our BasePage to the onInitialize method of our
BasePage but that does not fix the issue. Any suggestions?

Thanks,

Josh



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/NullPointerException-in-Page-constructor-tp4657502.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: Suppress Ajax ComponentNotFoundException

2013-03-21 Thread jchappelle
Did anyone ever find a solution to this? We are having the same problem with
ComponentNotFoundExceptions. 

Thanks,

Josh



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Suppress-Ajax-ComponentNotFoundException-tp4650209p4657428.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: Parsing company id from url

2012-12-27 Thread jchappelle
Sebastian,

That makes a lot of sense. I think I like that solution better because it
seems simpler and more intuitive. I may write a ServletFilter that does the
app lookup part and store it in the session.

Thanks a lot!

Josh



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Parsing-company-id-from-url-tp4655029p4655086.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



Parsing company id from url

2012-12-23 Thread jchappelle
I'm hoping this will be an easy question to answer for the wicket gurus out
there.

I'm developing an app that will have pages specific to companies. They will
be able to configure styles and logos and all the pages will be branded for
their company. The root url looks like http://server/app. I'm going to have
an Apache web server proxy in front of it that looks like http://yourcompany
that will proxy to the backing tomcat instance. 

My problem is that I'm not sure how to formulate a URL that wicket can use
to parse the institution id. I was thinking that I could proxy
http://company1 to http://server/app/1 and http://company2 to
http://server/app/2. I'm not sure if this is a best practice for this
situation but it seems reasonable.

*Question*
How do I parse this kind of parameter from within wicket? IRequestMapper?
*Note*
Some pages will be secured requiring the user to log in, and other pages
will be publicly accessible.

Thanks for your time.

Josh





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Parsing-company-id-from-url-tp4655029.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



IExceptionMapper to notify support of errors

2012-08-15 Thread jchappelle
I have written an IExceptionMapper that notifies our support team if an
unexpected exception occurs. It will redirect the user to our ErrorPage and
in the ErrorPanel.onBeforeRender I send a notification via email in a new
Thread. This mostly works except we are getting several false positives.
What I mean is that the user never sees the ErrorPanel and continues to
work. So our support team doesn't know if the user really notices an error
or not.

Here are the things that I don't understand about this behavior. If my
notification code is in the onBeforeRender of my ErrorPanel, then how does
this code execute and the user never see the panel? Also, we keep getting
the following exceptions (it seems to happen where we have a tinymce in a
form). The first one we see in development only but the second we see in
production only. However, they both seem to be around
org.apache.wicket.request.mapper.AbstractComponentMapper.getPageClass. The
second generates a notification and the user never sees the ErrorPanel. 

*Error seen in development environment:*

*Error seen in production*




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IExceptionMapper-to-notify-support-of-errors-tp4651251.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: IExceptionMapper to notify support of errors

2012-08-15 Thread jchappelle
Thanks for the quick response Igor.

Are there any callback methods in Panel that will allow me to put my
notification code and guarantee that it will be rendered to the user? Worst
case I could add a timer behavior to the panel that makes a callback to the
server and executes the notification, but I don't really like that solution.

Josh



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IExceptionMapper-to-notify-support-of-errors-tp4651251p4651254.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: IExceptionMapper to notify support of errors

2012-08-15 Thread jchappelle
I'll do the timer then. Thanks for your help Igor.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IExceptionMapper-to-notify-support-of-errors-tp4651251p4651256.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: MountedMapper and CryptoMapper

2012-08-07 Thread jchappelle
Hi Jesse,

Thanks for the response.

I am using 1.5.4. And I don't have any other IRequestMappers installed.

 I will say that it doesn't affect other pages. So if I click a link that
takes me to another page then it's fine. However, we use bread crumb pages
quite a bit so if one page has encryption turned off then that might mean
several views for the end-user. 

Maybe there is a way to redirect to an encrypted mapper after the
mountedmapper does it's thing? So if the user types http://server/abc then
the mountedmapper would determine which page that is and maybe get
cryptomapper to rewrite the url as encrypted and process it from there? Not
sure I'm just throwing out ideas.

Josh






--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MountedMapper-and-CryptoMapper-tp4651024p4651037.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: MountedMapper and CryptoMapper

2012-08-07 Thread jchappelle
I think what I am going to do is have a mounted page called AbcMountedPage
that throws a RestartResponseAtInterceptPageException so that it redirects
to AbcPage. That way AbcPage will be handled by CryptoMapper. I've also
noticed that there is a RedirectPage. I could extend that I suppose.

It's not perfect but it's not that bad either.

Thanks for your help.

Josh



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MountedMapper-and-CryptoMapper-tp4651024p4651040.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: Editing list in Dataview

2012-08-07 Thread jchappelle
You don't have to have Spring to do this one table, it just makes it easier
to do many more like really fast in the future. It is more scalable.

The Dataview and ListView components are just the UI component(the view). So
your query won't have to change. The main thing that will change is how you
feed the data returned by your query to the view. So for ListView you are
either using a List or a IModel to feed it data. With a Dataview you will
have to implement IDataProvider to feed it data. 

If your query is handling pagination right now then you are good, however if
it isn't then here is something to consider. You can still have paging
without modifying the query but if you do that then that means the query
will return all records, and you will be filtering your results down inside
your java code. A lot of my Dataviews do that because the result sets are
small enough, however if you have very large result sets then you might
consider incorporating paging into your query.

Josh





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Editing-list-in-Dataview-tp4650885p4651041.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



MountedMapper and CryptoMapper

2012-08-06 Thread jchappelle
Currently I am using CryptoMapper for my application. It is installed in the
init method of my application like this: setRootRequestMapper(new
CryptoMapper(getRootRequestMapper(), this));. I need some of my pages to be
bookmarkable with a url like /abc. I was able to accomplish this by doing
this in my init method: getRootRequestMapperAsCompound().add(new
MountedMapper(/abc, AbcPage.class));

My problem is that if I do it like that then the url's generated for any
clicks on that page are not encrypted. Ideally I would like the urls to be
encrypted. Is there any way around this? I'm sure it is possible to write an
IRequestMapper or extend MountedMapper but I'm not really sure how to go
about it.

Any ideas?

Thanks,

Josh



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MountedMapper-and-CryptoMapper-tp4651024.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: Image urls with CryptoMapper

2012-07-26 Thread jchappelle
I went back and edited my post. It might not have come through the mailing
list but if you look at it from the nabble website it shows up.

Josh

On Thu, Jul 26, 2012 at 2:57 PM, michael mosmann [via Apache Wicket] 
ml-node+s1842946n4650807...@n4.nabble.com wrote:

 Are you sure, that your panel markup works? I can not see any wicket Tag
 in it?
 --
 Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
 gesendet.



 jchappelle [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4650807i=0
 schrieb:

 I'm hitting a problem with images not being found when using CryptoMapper.
 I
 have 2 pages listed below. The dynamic image on the second page does not
 show but it does on the first page. I get to the second page by clicking
 the
 Page 2 link on the first. The code below is from my quickstart I have
 created. It is pretty small so I figured why not list it here. Any help is
 appreciated.


 public class Page1 extends WebPage
 {
 public Page1()
 {
 add(new ImagePanel(panel));
 add(new AjaxLinkVoid(page2Link)
 {
 @Override
 public void onClick(AjaxRequestTarget target)
 {
 setResponsePage(Page2.class);
 }
 });
 }
 }

 !DOCTYPE html
 html xmlns:wicket=http://wicket.apache.org;
 body
 div wicket:id=panel/div
  # Page 2
 /body
 /html


 public class Page2 extends WebPage
 {
 public Page2()
 {
 add(new ImagePanel(panel));
 }
 }

 !DOCTYPE html
 html xmlns:wicket=http://wicket.apache.org;
 body
 div wicket:id=panel/div
 /body
 /html


 public class ImagePanel extends Panel
 {
 public ImagePanel(String id)
 {
 super(id);

 add(new Label(dynamicImage, Model.of(Image Here:
 images/arrow-up-green.gif )).setEscapeModelStrings(false));
 }
 }

 ?xml version=1.0 encoding=UTF-8?
 html xmlns=http://www.w3.org/1999/xhtml;
 xmlns:wicket=http://wicket.apache.org/;
 wicket:panel
 divHard-Coded Image: images/arrow-up-green.gif /div
 divDynamic Image: /div
 /wicket:panel
 /html

 public class WicketApplication extends WebApplication
 {
 @Override
 public Class? extends Page getHomePage()
 {
 return Page1.class;
 }
 @Override
 public void init()
 {
 super.init();
 setRootRequestMapper(new
 CryptoMapper(getRootRequestMapper(), this));
 }
 }





 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Image-urls-with-CryptoMapper-tp4650805.html
 Sent from the Users forum mailing list archive at Nabble.com.

 _

 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4650807i=1
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4650807i=2



 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/Image-urls-with-CryptoMapper-tp4650805p4650807.html
  To unsubscribe from Image urls with CryptoMapper, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4650805code=amNoYXBwZWxsZUA0cmVkaS5jb218NDY1MDgwNXwtMTI5MjQyMjY0NQ==
 .
 NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Image-urls-with-CryptoMapper-tp4650805p4650808.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: Image urls with CryptoMapper

2012-07-26 Thread jchappelle
Issue created.

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



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Image-urls-with-CryptoMapper-tp4650805p4650809.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: Image urls with CryptoMapper

2012-07-26 Thread jchappelle
Well, in my actual live application I don't have that option. We are
sending a query to a web service and part of the response from that web
service has these image links embedded in it. So we are using a label to
display them just as I am doing in the quickstart.

As you can see in the quickstart, there is an ImagePanel which has a
hard-coded image, which only lives in html and then a dynamic image, which
is created within a wicket label. That ImagePanel is reused on both pages.
The dynamic image on the second page shows a red x in the browser. In fact
if you look at the src attribute you will see that wicket has modified the
src attribute of the hard-coded img tag to this
../../../images/arrow-up-green.gif however it left the other unchanged.

Everything works if the CryptoMapper is not the root mapper.

Josh

On Thu, Jul 26, 2012 at 3:25 PM, michael mosmann [via Apache Wicket] 
ml-node+s1842946n4650810...@n4.nabble.com wrote:

 I have some questions. How does the first img-tag on the second page
 differ from the first one? Why dont you use a wicket image component?

 Mm:)
 --
 Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
 gesendet.



 jchappelle [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4650810i=0
 schrieb:

 I went back and edited my post. It might not have come through the mailing
 list but if you look at it from the nabble website it shows up.

 Josh

 On Thu, Jul 26, 2012 at 2:57 PM, michael mosmann [via Apache Wicket] 
 [hidden email] http://user/SendEmail.jtp?type=nodenode=4650810i=1
 wrote:

  Are you sure, that your panel markup works? I can not see any wicket Tag
  in it?
  --
  Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
  gesendet.
 
 
 
  jchappelle [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650807i=0
  schrieb:
 
  I'm hitting a problem with images not being found when using
 CryptoMapper.
  I
  have 2 pages listed below. The dynamic image on the second page does not
  show but it does on the first page. I get to the second page by clicking
  the
  Page 2 link on the first. The code below is from my quickstart I have
  created. It is pretty small so I figured why not list it here. Any help
 is
  appreciated.
 
 
  public class Page1 extends WebPage
  {
  public Page1()
  {
  add(new ImagePanel(panel));
  add(new AjaxLinkVoid(page2Link)
  {
  @Override
  public void onClick(AjaxRequestTarget target)
  {
  setResponsePage(Page2.class);
  }
  });
  }
  }
 
  !DOCTYPE html
  html xmlns:wicket=http://wicket.apache.org;
  body
  div wicket:id=panel/div
  # Page 2
  /body
  /html
 
 
  public class Page2 extends WebPage
  {
  public Page2()
  {
  add(new ImagePanel(panel));
  }
  }
 
  !DOCTYPE html
  html xmlns:wicket=http://wicket.apache.org;
  body
  div wicket:id=panel/div
  /body
  /html
 
 
  public class ImagePanel extends Panel
  {
  public ImagePanel(String id)
  {
  super(id);
 
  add(new Label(dynamicImage, Model.of(Image Here:
  images/arrow-up-green.gif )).setEscapeModelStrings(false));
  }
  }
 
  ?xml version=1.0 encoding=UTF-8?
  html xmlns=http://www.w3.org/1999/xhtml;
  xmlns:wicket=http://wicket.apache.org/;
  wicket:panel
  divHard-Coded Image: images/arrow-up-green.gif /div
  divDynamic Image: /div
  /wicket:panel
  /html
 
  public class WicketApplication extends WebApplication
  {
  @Override
  public Class? extends Page getHomePage()
  {
  return Page1.class;
  }
  @Override
  public void init()
  {
  super.init();
  setRootRequestMapper(new
  CryptoMapper(getRootRequestMapper(), this));
  }
  }
 
 
 
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Image-urls-with-CryptoMapper-tp4650805.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
 _

 
  To unsubscribe, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650807i=1
  For additional commands, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650807i=2
 
 
 
 _

  If you reply to this email, your message will be added to the discussion
  below:
 
 

  .
  NAML
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespa



 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/Image-urls-with-CryptoMapper-tp4650805p4650810.html
  To unsubscribe from Image urls with CryptoMapper, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4650805code=amNoYXBwZWxsZUA0cmVkaS5jb218NDY1MDgwNXwtMTI5MjQyMjY0NQ==
 .
 NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace

Re: Image urls with CryptoMapper

2012-07-26 Thread jchappelle
Sven,

You closed this ticket but let me say this. I'm clearly not perfectly
reproducing what I am seeing in my live app. However, what is common is
that wicket is finding the hard-coded image on the second page because it
is rewriting the url of that image and it is not doing that for the dynamic
image. I believe this is the source of my problem in my live app because
when I look at the html the same thing is happening.

Is there any advice you have on this issue?

Josh

On Thu, Jul 26, 2012 at 2:46 PM, Sven Meier [via Apache Wicket] 
ml-node+s1842946n4650806...@n4.nabble.com wrote:

 That's hard to say from the snippet you've provided here, especially
 since a few markup tags didn't make it through.

 Please create an issue and attach your quickstart to it.

 Sven

 On 07/26/2012 09:31 PM, jchappelle wrote:

  I'm hitting a problem with images not being found when using
 CryptoMapper. I
  have 2 pages listed below. The dynamic image on the second page does not
  show but it does on the first page. I get to the second page by clicking
 the
  Page 2 link on the first. The code below is from my quickstart I have
  created. It is pretty small so I figured why not list it here. Any help
 is
  appreciated.
 
 
  public class Page1 extends WebPage
  {
  public Page1()
  {
  add(new ImagePanel(panel));
  add(new AjaxLinkVoid(page2Link)
  {
  @Override
  public void onClick(AjaxRequestTarget target)
  {
  setResponsePage(Page2.class);
  }
  });
  }
  }
 
  !DOCTYPE html
  html xmlns:wicket=http://wicket.apache.org;
  body
  div wicket:id=panel/div
  # Page 2
  /body
  /html
 
 
  public class Page2 extends WebPage
  {
  public Page2()
  {
  add(new ImagePanel(panel));
  }
  }
 
  !DOCTYPE html
  html xmlns:wicket=http://wicket.apache.org;
  body
  div wicket:id=panel/div
  /body
  /html
 
 
  public class ImagePanel extends Panel
  {
  public ImagePanel(String id)
  {
  super(id);
 
  add(new Label(dynamicImage, Model.of(Image Here:
  images/arrow-up-green.gif )).setEscapeModelStrings(false));
  }
  }
 
  ?xml version=1.0 encoding=UTF-8?
  html xmlns=http://www.w3.org/1999/xhtml;
  xmlns:wicket=http://wicket.apache.org/;
  wicket:panel
  divHard-Coded Image:  images/arrow-up-green.gif /div
  divDynamic Image: /div
  /wicket:panel
  /html
 
  public class WicketApplication extends WebApplication
  {
  @Override
  public Class? extends Page getHomePage()
  {
  return Page1.class;
  }
  @Override
  public void init()
  {
  super.init();
  setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), this));
  }
  }
 
 
 
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Image-urls-with-CryptoMapper-tp4650805.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4650806i=0
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4650806i=1
 


 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4650806i=2
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4650806i=3



 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/Image-urls-with-CryptoMapper-tp4650805p4650806.html
  To unsubscribe from Image urls with CryptoMapper, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4650805code=amNoYXBwZWxsZUA0cmVkaS5jb218NDY1MDgwNXwtMTI5MjQyMjY0NQ==
 .
 NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Image-urls-with-CryptoMapper-tp4650805p4650812.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: Image urls with CryptoMapper

2012-07-26 Thread jchappelle
Thanks Martin! I was hoping there was a static utility to rewrite that url.
I think this will get me what I need.

On Thu, Jul 26, 2012 at 3:50 PM, Martin Grigorov-4 [via Apache Wicket] 
ml-node+s1842946n465081...@n4.nabble.com wrote:

 Hi,

 Either generate absolute urls from the backend service or if you are
 certain that the image url is context relative then pass it first to
 org.apache.wicket.core.util.string.UrlUtils#rewriteToContextRelative()
 before setting it in the model.

 On Thu, Jul 26, 2012 at 11:43 PM, jchappelle [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4650814i=0
 wrote:

  Sven,
 
  You closed this ticket but let me say this. I'm clearly not perfectly
  reproducing what I am seeing in my live app. However, what is common is
  that wicket is finding the hard-coded image on the second page because
 it
  is rewriting the url of that image and it is not doing that for the
 dynamic
  image. I believe this is the source of my problem in my live app because
  when I look at the html the same thing is happening.
 
  Is there any advice you have on this issue?
 
  Josh
 
  On Thu, Jul 26, 2012 at 2:46 PM, Sven Meier [via Apache Wicket] 
  [hidden email] http://user/SendEmail.jtp?type=nodenode=4650814i=1
 wrote:
 
  That's hard to say from the snippet you've provided here, especially
  since a few markup tags didn't make it through.
 
  Please create an issue and attach your quickstart to it.
 
  Sven
 
  On 07/26/2012 09:31 PM, jchappelle wrote:
 
   I'm hitting a problem with images not being found when using
  CryptoMapper. I
   have 2 pages listed below. The dynamic image on the second page does
 not
   show but it does on the first page. I get to the second page by
 clicking
  the
   Page 2 link on the first. The code below is from my quickstart I
 have
   created. It is pretty small so I figured why not list it here. Any
 help
  is
   appreciated.
  
  
   public class Page1 extends WebPage
   {
   public Page1()
   {
   add(new ImagePanel(panel));
   add(new AjaxLinkVoid(page2Link)
   {
   @Override
   public void onClick(AjaxRequestTarget target)
   {
   setResponsePage(Page2.class);
   }
   });
   }
   }
  
   !DOCTYPE html
   html xmlns:wicket=http://wicket.apache.org;
   body
   div wicket:id=panel/div
   # Page 2
   /body
   /html
  
  
   public class Page2 extends WebPage
   {
   public Page2()
   {
   add(new ImagePanel(panel));
   }
   }
  
   !DOCTYPE html
   html xmlns:wicket=http://wicket.apache.org;
   body
   div wicket:id=panel/div
   /body
   /html
  
  
   public class ImagePanel extends Panel
   {
   public ImagePanel(String id)
   {
   super(id);
  
   add(new Label(dynamicImage, Model.of(Image Here:
   images/arrow-up-green.gif )).setEscapeModelStrings(false));
   }
   }
  
   ?xml version=1.0 encoding=UTF-8?
   html xmlns=http://www.w3.org/1999/xhtml;
   xmlns:wicket=http://wicket.apache.org/;
   wicket:panel
   divHard-Coded Image:  images/arrow-up-green.gif /div
   divDynamic Image: /div
   /wicket:panel
   /html
  
   public class WicketApplication extends WebApplication
   {
   @Override
   public Class? extends Page getHomePage()
   {
   return Page1.class;
   }
   @Override
   public void init()
   {
   super.init();
   setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), this));
   }
   }
  
  
  
  
  
   --
   View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Image-urls-with-CryptoMapper-tp4650805.html
   Sent from the Users forum mailing list archive at Nabble.com.
  
   -
   To unsubscribe, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650806i=0
   For additional commands, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650806i=1
  
 
 
  -
  To unsubscribe, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650806i=2
  For additional commands, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650806i=3
 
 
 
  --
   If you reply to this email, your message will be added to the
 discussion
  below:
 
 

  .
  NAML
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

 
 
 
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Image-urls-with-CryptoMapper-tp4650805p4650812.html

  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4650814i=2
  For additional commands, e-mail

NonCachingImage and CryptoMapper do not work together

2012-07-06 Thread jchappelle
I have a NonCachingImage that gets loaded via ajax and I have noticed the the
ajax debug window that the src attribute of the img is encrypted except for
the antiCache url parameter at the end. The problem I am seeing is that the
image is the browser red x instead of the image I am requesting.

I'm fairly certain that it is the combination of the NonCachingImage and the
CryptoMapper because if I instead use an Image then it works. Also, if I
only remove the CryptoMapper it works. 

I'm using wicket 1.5.4. I've searched around but did not find that this has
been reported. Am I missing something or is this a bug?

I can make a quickstart if you need.

Thanks,

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/NonCachingImage-and-CryptoMapper-do-not-work-together-tp4650406.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: Help I need to understand page locking

2012-04-18 Thread jchappelle
I am having this same issue. Have you figured out what the issue was?

Thanks,

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Help-I-need-to-understand-page-locking-tp3543950p4568549.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: Streaming a zip file then going back to previous BreadCrumbPanel

2012-03-22 Thread jchappelle
Ahhh. I see what you are saying. I don't have a problem with the user seeing
the previous panel and then seeing the download prompt. I think I can get
the url for my IRequestHandler from the RequestCycle and then just generate
the javascript that goes back to the server and initiates the download.

Thanks a lot!

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Streaming-a-zip-file-then-going-back-to-previous-BreadCrumbPanel-tp4493168p4495811.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: Streaming a zip file then going back to previous BreadCrumbPanel

2012-03-21 Thread jchappelle
When you say Can you initiate the download *after* your redirect? I'm
guessing you mean this:

ListIBreadCrumbParticipant participants =
crumbModel.allBreadCrumbParticipants(); 
crumbModel.setActive(participants.get(participants.size() - 2)); 
getRequestCycle().scheduleRequestHandlerAfterCurrent(target); 

I have tried this and it doesn't work either. 

The ajax idea is a good idea although I would use that as a last resort. I
was hoping that their was a cleaner way that doesn't generate a lot of
traffic to the server. I wonder if I could create an IRequestHandler that
holds a reference to two other IRequestHandlers. The first being the
streaming zip file, the second being one that updates the breadcrumb model
and refreshes via ajax. I don't know exactly how to implement that second
one though.

Thanks for the help.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Streaming-a-zip-file-then-going-back-to-previous-BreadCrumbPanel-tp4493168p4494225.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: Adding a header contribution as the first in the head tag

2012-03-02 Thread jchappelle
Thanks! 

I was able to write an IResponseFilter and install it within my
Application.init via the method
getRequestCycleSettings().addResponseFilter(...).

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Adding-a-header-contribution-as-the-first-in-the-head-tag-tp4437445p4438773.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: StalePageException with CryptoMapper

2012-02-10 Thread jchappelle
Martin,

Here is the jira bug:

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

I created a quickstart and the results are slightly different but it still
does not work. I don't get a StalePageException but the respond method of my
behavior never gets called. 

Thanks for the help.

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/StalePageException-with-CryptoMapper-tp4355184p4377238.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: StalePageException with CryptoMapper

2012-02-06 Thread jchappelle
Hi Martin,

The reason I don't extend the AjaxEventBehavior is because I'm using the YUI
javascript library to create my menu and my behavior is not being attached
to a dom element. There are two ways they allow you to create the menu. One
way is by having some markup that backs up the javascript or by pure
javascript. I'm using the pure javascript way. So my wicket java code just
builds up a javascript string that gets loaded when the page is loaded and
it knows the div's id to write the output to.


I know that AjaxLinks are not broken and I'm pretty sure that I'm going
through the same code to generate my url that the AjaxLink class does.

I'll work on creating a quickstart. Should I just upload it to this post or
is there a different place for those?

Thanks,

Josh


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/StalePageException-with-CryptoMapper-tp4355184p4362997.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



generateCallbackScript in Wicket 1.5.4 with CryptoMapper

2012-02-01 Thread jchappelle
I have a behavior that generates a url to a page. This behavior is attached
to menu items. I have the behavior code below. After moving to Wicket 1.5.4
this is not working. I get a message in the WICKET DEBUG window like this
500 error had text: .

I will say that we are using the CryptoMapper and it works if I remove the
CryptoMapper. I have added the CryptoMapper as the last line in my
Application.init method. The line looks like this:

setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), this));

Also, I believe the links worked in Wicket 1.5.3, but I was getting error
messages because of  https://issues.apache.org/jira/browse/WICKET-4222
WICKET-4222  so I upgraded to Wicket 1.5.4 and the error messages have gone
away, but now my menu doesn't work.

Here is the code for my behavior:

public class YuiMenuBarItemSelectionBehavior extends
AbstractDefaultAjaxBehavior
{
private YuiMenuBarItem menuItem;

public YuiMenuBarItemSelectionBehavior(YuiMenuBarItem menuItem)
{
this.menuItem = menuItem;
}

@Override
protected void onBind()
{
super.onBind();
menuItem.setUrl(javascript:  + 
generateCallbackScript(wicketAjaxGet('
+ getCallbackUrl() + ').toString());
}

@Override
protected void respond(AjaxRequestTarget target)
{
menuItem.onMenuItemClicked(target);
}
}

Any help is appreciated.

Thanks,

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/generateCallbackScript-in-Wicket-1-5-4-with-CryptoMapper-tp4348734p4348734.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: generateCallbackScript in Wicket 1.5.4 with CryptoMapper

2012-02-01 Thread jchappelle
By the way the ajax response above is not rendering what I put in there. It
has a CDATA section and contains
[../../../fyBfZ9p6trO9WTR7h0OMLw/fyBce/R7h42].

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/generateCallbackScript-in-Wicket-1-5-4-with-CryptoMapper-tp4348734p4348745.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



Wicket 1.5.3 AutoCompleteTextField not working in ModalWindow

2012-01-20 Thread jchappelle
Hi,

I'm upgrading to 1.5.3 and one of the issues that I can't figure out is why
the AutoCompleteTextField has stopped working in ModalWindows. I've tested
in IE9. Before upgrading this worked fine. I'm using the
DefaultCssAutoCompleteTextField and I've looked at the style sheets from
each version and both appear to be the same. Also, the wicket debug window
shows the ajax response is returning an html unordered list when I type into
the field.

Any help is greatly appreciated.

Thanks,

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-3-AutoCompleteTextField-not-working-in-ModalWindow-tp4314182p4314182.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 1.5.3 AutoCompleteTextField not working in ModalWindow

2012-01-20 Thread jchappelle
I found that there is a jira bug on the issue. Here is the link:
https://issues.apache.org/jira/browse/WICKET-4294
https://issues.apache.org/jira/browse/WICKET-4294 

If you put the following CSS in your style sheet for your
AutoCompleteTextField it will fix it.

/* 
 * FIXES rendering issue of autocomplete 
 * suggestions on modal windows in internet explorer 7, 8, ..? 
 */ 
DIV.wicket-modal DIV.w_content_container { 
position : static !important; 
} 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-3-AutoCompleteTextField-not-working-in-ModalWindow-tp4314182p4314470.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



YUI sub menu not showing until refresh

2011-12-14 Thread jchappelle
Hi,

We have been using the wicket-yui menu for some time now and I recently
updated our jar file to the 1.4.15 version because of a problem we were
hitting with the 1.4.2 version. Well it seems that we have traded one
problem for another. The 1.4.15 version will not show the drop down icons
for the sub menu unless you ctrl-F5 the browser to force a refresh.

Has anyone had this problem. By the way I have setStripWicketTags(true) set
to true in our application.

Thanks,

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/YUI-sub-menu-not-showing-until-refresh-tp4195883p4195883.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 + jasper reports

2011-10-18 Thread jchappelle
I believe the way I have done this in the past is by putting the report file
at the root of the WEB-INF/classes folder when building the war file. I
don't use maven so I can't advise you on where to place the files in your
project before deployment.

I hope this helps.

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-jasper-reports-tp3914476p3917467.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: AutoCompleteTextField problems

2011-10-09 Thread jchappelle
One way to do it is to extend AutoCompleteTextField and override the
getConverter() method. That will define to wicket how to convert to and from
your domain object. Right now wicket is trying to convert your domain object
to a String and that's why you are getting the casting problem.

If you don't want to override it then I think there is a way to register
global converters in your Application class. I have never done that but here
is a link that describes how to do it: 
https://cwiki.apache.org/WICKET/using-custom-converters.html
https://cwiki.apache.org/WICKET/using-custom-converters.html 

Hope this helps.

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-problems-tp3887774p3887839.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



Using Wicket.Event.add in javascript

2011-10-04 Thread jchappelle
Is the Wicket.Event.add method considered part of the public api for wicket?
I have been writing more and more javascript lately and have found it useful
but I can roll my own if needed. I just didn't know if these methods are
subject to change without notice.

Thanks,

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-Wicket-Event-add-in-javascript-tp3870815p3870815.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: Using Wicket.Event.add in javascript

2011-10-04 Thread jchappelle
Thanks a lot!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-Wicket-Event-add-in-javascript-tp3870815p3870841.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



Detect dirty text field

2011-09-29 Thread jchappelle
Hi,

I have a behavior that changes the background color of a TextField if the
user presses any keys. It does this by changing the className in the dom.
This works fine but the problem I have is that when I have a form that
submits via Ajax I need to remove the added className. Currently if I
override Form.onSubmit and check the RequestCycle.get().getRequestTarget()
to see if it is Ajax then I can call appendJavascript. That is messy and the
logic is not all contained in my behavior. 

Any ideas would be greatly appreciated.

Thanks,

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Detect-dirty-text-field-tp3856096p3856096.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



Show ModalWindow when a RuntimeException occurrs

2011-09-26 Thread jchappelle
Hi, 

Currently I have subclassed the RequestCycle and overridden the
onRuntimeException method in it to return a custom error page for the user.
It works very well but the only problem is that it takes the user away from
the page they were on. I would like to be able to show a ModalWindow with a
custom error message in it when an uncaught runtime exception occurrs. 

Does anyone have any tips on how to do this? 

Thanks, 

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Show-ModalWindow-when-a-RuntimeException-occurrs-tp3845808p3845808.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: YUI menu and development mode

2011-09-18 Thread jchappelle
I am having the same issue. Has anyone found a solution to this? I am using
wicket version 1.4.15. 

Thanks,

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/YUI-menu-and-development-mode-tp1882092p3822359.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: YUI menu and development mode

2011-09-18 Thread jchappelle
Thanks a lot Ernesto! That pointed me in the right direction and I found the
specific setting that was causing the problem. The following code is in my
Application subclass's init method and it seems to fix the problem for me.

getMarkupSettings().setStripWicketTags(true);

Thanks,

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/YUI-menu-and-development-mode-tp1882092p3822415.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: Switch tab only if user doesn't want to save changes.

2009-03-11 Thread jchappelle

Could you post how you are detecting unsaved changes? I am trying to
implement something similar.

Thanks,

Josh


Fabio Fioretti wrote:
 
 Thank you Maurice,
 
 what you suggested matched the way I was trying to solve the problem,
 but I had to add a bit of client-side logic to decide whether to
 display the confirm dialog or not, basing the decision on the
 enabled/disabled status of the save button inside the first tab, which
 already implemented the logic to detect unsaved changes.
 
 I paste the relevant bits to share my solution with you all. Probably
 it's not optimal at all, so please do feel free to
 comment/correct/laugh. :)
 
 @Override
 protected IAjaxCallDecorator getAjaxCallDecorator() {
   // Add custom decorator for tabs other than the one containing
 detailsPanel
   if ( index != 0 ) {
   return new AjaxCallDecorator() {
   @Override
   public CharSequence decorateScript( CharSequence script 
 ) {
   // Ask for user confirmation, as tab-switching 
 discards unsaved
 changes.
   final String saveButton = detailsPanel != null ?
 detailsPanel.getSaveButtonMarkupId() : ;
   final StringBuffer decoration = new 
 StringBuffer();
   return decoration.append(String.format(if(
 document.getElementById('%s')!= null , saveButton))
 .append(String.format(
 !document.getElementById('%s').disabled , saveButton))
 .append( !confirm('Please note that 
 unsaved changes will be
 lost.\\n\\nDo you want to switch tab?')) )
 .append({ return false; })
 .append(script);
   }
   };
   }
   return super.getAjaxCallDecorator();
 }
 
 
 Cheers,
 
 Fabio Fioretti - WindoM
 
 
 On Sun, Jul 13, 2008 at 9:43 PM, Maurice Marrink marr...@gmail.com
 wrote:
 Override newLink to return an ajaxfallbacklink where you have
 overridden the getAjaxCallDecorator method to return a custom
 IAjaxCallDecorator.
 Use that to insert a javascript confirm dialog.

 Maurice

 On Fri, Jul 11, 2008 at 7:28 PM, Fabio Fioretti
 windom.macroso...@gmail.com wrote:
 Hi all,

 thanks in advance for your precious support.

 I have an AjaxTabbedPanel with two tabs. In the first tab there is a
 panel with a form, some input fields and a save button; the content of
 the second tab is irrelevant.

 Use-case:

 1 - user selects first tab;
 2 - user makes some changes in the input fields but doesn't click the
 save button;
 3 - user selects second tab.

 On step 3, users loses all his updates without being warned.

 I would like to add a javascript confirm dialog to be triggered only
 when some changes have been performed but not saved (no ModalWindow,
 just javascript). I mean something like: There are some unsaved
 changes that will be lost, do you really want to switch tab? OK
 Cancel. OK brings the user to the second tab, Cancel makes him stay
 in the first tab.

 The panel inside the first tab has a handy boolean hasUnsavedChanges()
 method, but I don't know where I could call it and how to inject an
 if (!confirm('...')) return false;.

 Maybe in the onClick(AjaxRequestTarget target) method of the
 AjaxFallbackLink returned by AjaxTabbedPanel's newLink() method?

 What's the best way to do it?


 Thank you very much,

 Fabio Fioretti - WindoM

 -
 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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Switch-tab-only-if-user-doesn%27t-want-to-save-changes.-tp18408885p22460250.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: YUI menu and wicker border problem

2009-03-03 Thread jchappelle

I am having a similar problem. I have a MasterPage class that is my common
page. When I hard code the menu as a page that extends Webpage everything is
fine but when I extend my MasterPage class it doesn't work. 

Could someone please help?

Josh


Michal Hybler wrote:
 
 Hi all!
 I want to combine YUI menu( from yui examples) with wicket border system
 to reach that menu will be displayed on each page.
 I have 2 problems:
 - menu lost its functionality (sub menu doesnt work) if i use it in hard
 coded page its all right.
 - in spite of I added menu in table it is outside the table and cell which
 should contain it is empty.
 
 There is my code:
 
 layoutPage:
 
 java:
 
 public class PageBorder extends Border {
   BoxBorder box;
 
   /**
* Constructor
*/
   /*
* public Page1() { add(new Menu(navomaticBorder));
* 
* }
*/
   public PageBorder(String id) {
   super(id);
   initMenu();
   }
 
   private void initMenu() {
   AbstractYuiMenuItem mi = null;
 
   YuiMenu menu = new YuiMenu(menu);
 
   menu.addMenuItem(new TestAction(M : L1));
   menu.addMenuItem(new TestAction(M : L2));
   mi = menu.addMenuItem(new TestAction(M : L3));
   menu.addMenuItem(new TestAction(M : L4));
   menu.addMenuItem(new TestAction(M : L5));
 
   YuiMenu subMenu = mi.newSubMenu(m_subMenu1);
   subMenu.addMenuItem(new TestAction(Label 1));
   subMenu.addMenuItem(new TestAction(Label 2));
   add(menu);
 
   }
 
   private static class TestAction implements IYuiMenuAction,
   java.io.Serializable {
   private final String id;
 
   public TestAction(String id) {
   this.id = id;
   }
 
   public IModel getName() {
   return new Model(id);
   }
 
   public void onClick() {
   System.out.println(Link:  + id);
   }
   }
 
 }
 
 html:
 
 ?xml version=1.0 encoding=UTF-8?
 html xmlns=http://www.w3.org/1999/xhtml; 
 head
 
 /head
 body class=yui-skin-sam
 
 
 wicket:border
 table
 tr
 td
 div wicket:id=menuMenu Here/div
 /td
 tdwicket:body//td
 /tr
 /table
 /wicket:border
 
 
 /body
 /html
 
 
 page ancestor:
 
 
 package cz.legend.mvcr.kup.lims.application;
 
 import org.apache.wicket.Component;
 import org.apache.wicket.MarkupContainer;
 import org.apache.wicket.markup.html.WebPage;
 import org.apache.wicket.markup.html.border.Border;
 
 public abstract class CommonPage extends WebPage {
   private Border border;
 
   public MarkupContainer add(final Component child) {
   // Add children of the page to the page's border component
   if (border == null) {
   // Create border and add it to the page
   border = new PageBorder(border);
   super.add(border);
   }
   border.add(child);
   return this;
   }
 
 }
 
 test page:
 
 java:
 
 package cz.legend.mvcr.kup.lims.application;
 
 import org.apache.wicket.markup.html.basic.Label;
 
 public class Page1 extends CommonPage {
 
   /**
* Constructor
*/
   /*
* public Page1() { add(new Menu(navomaticBorder));
* 
* }
*/
   public Page1() {
   add(new Label(test, This is a Test));
   }
 
 }
 
 
 html:
 
 html xmlns:wicket=http://wicket.apache.org/;
 head
 titleWicket Examples - navomatic/title
 link rel=stylesheet type=text/css href=style.css/
 /head
 body
 
 div style = width:250px
 TEST LABEL
 Welcome to Page 1 of Navomatic.  Notice that the Page1 link is now
 clickable
 (so that you can return to Page1 if you want to) and the Page2
 link is
 italicized text.  Go ahead and click the Page3 link.
 /div
 
 /body
 /html
 
 
 If i use label instead of menu (for test) everything is ok then I thinkn
 problem is in Yui menu. Any ideas about that?
 
 Thanx for your help (and sorry for my english :blush:)
 Regards Michal Hybler
 

-- 
View this message in context: 
http://www.nabble.com/YUI-menu-and-wicker-border-problem-tp21683436p22314033.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



RadioGroup in a DataTable?

2009-02-13 Thread jchappelle

Is it possible to have a RadioGroup in a DataTable. I am trying to display a
list of items from the database and I want the user to only select one of
these items. There could be a lot of items so I am letting the user filter
the values by using a FilterForm and a DataTable. 

Any ideas?

Thanks,

Josh
-- 
View this message in context: 
http://www.nabble.com/RadioGroup-in-a-DataTable--tp22005040p22005040.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



TreeTable text-align

2008-12-18 Thread jchappelle

I have a TreeTable that I would like to have some columns with a text-align:
right; style. I have tried overriding the newCell method on the
PropertyRenderableColumn and returning a Label with an AttributeModifier.
That did not work nor did returning a custom Panel with an
AttributeModifier. 

This should be simple as pie. Is there something I am missing?

Thanks,

Josh
-- 
View this message in context: 
http://www.nabble.com/TreeTable-text-align-tp21079163p21079163.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



TreeTable text-align

2008-12-18 Thread jchappelle

I have a TreeTable that I would like to have some columns with a text-align:
right; style. I have tried overriding the newCell method on the
PropertyRenderableColumn and returning a Label with an AttributeModifier.
That did not work nor did returning a custom Panel with an
AttributeModifier. 

This should be simple as pie. Is there something I am missing? 

Thanks, 

Josh
-- 
View this message in context: 
http://www.nabble.com/TreeTable-text-align-tp21079263p21079263.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



Dynamically update TreeTable model

2008-12-17 Thread jchappelle

I have a TreeTable and I have links within it. When a user clicks a link they
are presented with a modal window with a FileUpload component in it. When
they upload a new file and click close on the modal window, the TreeTable is
not updated. I tried to use a LoadableDetachableModel that returns a
DefaultTreeModel but if I do that then every time I click to expand a folder
node the tree refreshes the model and the tree state and the icon doesn't
expand(i'm guessing it's because the treestate gets recreated?). 

I searched but couldn't find anyone with this specific problem in the forum.
Can someone please help?

Thanks,

Josh
-- 
View this message in context: 
http://www.nabble.com/Dynamically-update-TreeTable-model-tp21056846p21056846.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: TinyMCE init method rendering twice

2008-12-10 Thread jchappelle

That works perfectly! Thanks for all your help.


pointbreak+wicketstuff wrote:
 
 Yes, it looks like TinyMceSettings does not have methods to remove the
 toolbars. I'll add those as soon as TeamCity deploys jars again... But
 you could work around that by adding a method overload for
 toJavaScript() to your custom MyTinyMceSettings, something like:
 
 public String toJavaScript(Mode mode, CollectionComponent
 components) {
 StringBuffer buffer = new StringBuffer(super.toJavaScript(mode,
 components));
 buffer.append(,\n\ttheme_advanced_buttons2: \\);
 buffer.append(,\n\ttheme_advanced_buttons3: \\);
 return buffer.toString();
 }
 
 Then you can also remove most of your disableButton calls. Or use the
 simple theme instead.
 
 
 On Tue, 9 Dec 2008 14:06:54 -0800 (PST), jchappelle
 [EMAIL PROTECTED] wrote:
 
 I downloaded the latest snapshot from the wicket-stuff repository and did
 the
 setStatusbarLocation(null) and that fixed that problem. However, now I
 have
 three toolbars in the top instead of one. All of my buttons are on the
 top
 toolbar but underneath it is two others that only have separators in them
 so
 it looks pretty weird. Here is my custom settings class:
 
 public class MyTinyMceSettings extends TinyMCESettings
 {
  private static final long serialVersionUID = 1L;
 
  public MyTinyMceSettings ()
  {
  super(TinyMCESettings.Theme.advanced);
  
 add(TinyMCESettings.bullist, TinyMCESettings.Toolbar.first,
 TinyMCESettings.Position.after);
 add(TinyMCESettings.numlist, TinyMCESettings.Toolbar.first,
 TinyMCESettings.Position.after);
 
 disableButton(TinyMCESettings.styleselect);
 disableButton(TinyMCESettings.sub);
 disableButton(TinyMCESettings.sup);
 disableButton(TinyMCESettings.charmap);
 disableButton(TinyMCESettings.image);
 disableButton(TinyMCESettings.anchor);
 disableButton(TinyMCESettings.help);
 disableButton(TinyMCESettings.code);
 disableButton(TinyMCESettings.link);
 disableButton(TinyMCESettings.unlink);
 disableButton(TinyMCESettings.formatselect);
 disableButton(TinyMCESettings.indent);
 disableButton(TinyMCESettings.outdent);
 disableButton(TinyMCESettings.undo);
 disableButton(TinyMCESettings.redo);
 disableButton(TinyMCESettings.cleanup);
 disableButton(TinyMCESettings.hr);
 disableButton(TinyMCESettings.visualaid);
 disableButton(TinyMCESettings.separator);
 disableButton(TinyMCESettings.formatselect);
 disableButton(TinyMCESettings.removeformat);
 
 setToolbarAlign(TinyMCESettings.Align.left);
 setToolbarLocation(TinyMCESettings.Location.top);
 setStatusbarLocation(null);
 setVerticalResizing(true);
 setHorizontalResizing(true);
  }
 }
  Any idea of how to remove those toolbars?
 
 Thanks,
 
 Josh
 
 
 pointbreak+wicketstuff wrote:
  
  You seem to be using an old version of tinymce. AFAIK, the latest
  version does not use mode: specific_textareas, but mode: exact in
  the tinyMCE.init call. Update to the latest version, and you should be
  fine I guess.
  
  You can remove the statusbar via
  TinyMceSettings.setStatusbarLocation(null) (which by the way is the
  default). See
  http://wiki.moxiecode.com/index.php/TinyMCE:Configuration#Layout for a
  comprehensive list and documentation on all available options.
  
  
  On Mon, 8 Dec 2008 10:45:40 -0800 (PST), jchappelle
  [EMAIL PROTECTED] wrote:
  
  I have a TinyMCE component in one of my pages and I am trying to
 remove
  the
  Path: toolbar at the bottom. I have noticed that the init method
  renders
  on my page twice. I only have one textarea on my page and I am adding
 a
  custom TinyMceBehavior to it. I am trying to disable the visualaid
  button(i
  assume that is how you remove the Path: at the bottom). On one of the
  init
  methods rendered it has that button disabled and on the other one it
  doesn't. I wonder if that could be causing it. Here is part of the
 html
  rendered:
  
  tinyMCE.init({
mode : specific_textareas,
editor_selector : 70fa4bd0-497a-4eb3-8de5-a3fbc13bedf3,
theme : advanced,
language : en,
plugins : contextmenu, save, paste, searchreplace, insertdatetime,
  preview, zoom, table, emotions, iespell, flash, print, directionality,
  fullscreen,
theme_advanced_buttons1_add_before : save, newdocument, separator,
theme_advanced_buttons1_add : fontselect, fontsizeselect,
theme_advanced_buttons2_add_before: cut, copy, paste, pastetext,
  pasteword, separator, search, replace, separator,
theme_advanced_buttons2_add : separator, inserttime, insertdate,
  separator, preview, zoom, separator, forecolor, backcolor,
theme_advanced_buttons3_add_before : tablecontrols,
theme_advanced_buttons3_add : emotions, iespell, flash

Re: TinyMCE init method rendering twice

2008-12-09 Thread jchappelle

I downloaded the latest snapshot from the wicket-stuff repository and did the
setStatusbarLocation(null) and that fixed that problem. However, now I have
three toolbars in the top instead of one. All of my buttons are on the top
toolbar but underneath it is two others that only have separators in them so
it looks pretty weird. Here is my custom settings class:

public class MyTinyMceSettings extends TinyMCESettings
{
private static final long serialVersionUID = 1L;

public MyTinyMceSettings ()
{
super(TinyMCESettings.Theme.advanced);

add(TinyMCESettings.bullist, TinyMCESettings.Toolbar.first,
TinyMCESettings.Position.after);
add(TinyMCESettings.numlist, TinyMCESettings.Toolbar.first,
TinyMCESettings.Position.after);

disableButton(TinyMCESettings.styleselect);
disableButton(TinyMCESettings.sub);
disableButton(TinyMCESettings.sup);
disableButton(TinyMCESettings.charmap);
disableButton(TinyMCESettings.image);
disableButton(TinyMCESettings.anchor);
disableButton(TinyMCESettings.help);
disableButton(TinyMCESettings.code);
disableButton(TinyMCESettings.link);
disableButton(TinyMCESettings.unlink);
disableButton(TinyMCESettings.formatselect);
disableButton(TinyMCESettings.indent);
disableButton(TinyMCESettings.outdent);
disableButton(TinyMCESettings.undo);
disableButton(TinyMCESettings.redo);
disableButton(TinyMCESettings.cleanup);
disableButton(TinyMCESettings.hr);
disableButton(TinyMCESettings.visualaid);
disableButton(TinyMCESettings.separator);
disableButton(TinyMCESettings.formatselect);
disableButton(TinyMCESettings.removeformat);

setToolbarAlign(TinyMCESettings.Align.left);
setToolbarLocation(TinyMCESettings.Location.top);
setStatusbarLocation(null);
setVerticalResizing(true);
setHorizontalResizing(true);
}
}
 Any idea of how to remove those toolbars?

Thanks,

Josh


pointbreak+wicketstuff wrote:
 
 You seem to be using an old version of tinymce. AFAIK, the latest
 version does not use mode: specific_textareas, but mode: exact in
 the tinyMCE.init call. Update to the latest version, and you should be
 fine I guess.
 
 You can remove the statusbar via
 TinyMceSettings.setStatusbarLocation(null) (which by the way is the
 default). See
 http://wiki.moxiecode.com/index.php/TinyMCE:Configuration#Layout for a
 comprehensive list and documentation on all available options.
 
 
 On Mon, 8 Dec 2008 10:45:40 -0800 (PST), jchappelle
 [EMAIL PROTECTED] wrote:
 
 I have a TinyMCE component in one of my pages and I am trying to remove
 the
 Path: toolbar at the bottom. I have noticed that the init method
 renders
 on my page twice. I only have one textarea on my page and I am adding a
 custom TinyMceBehavior to it. I am trying to disable the visualaid
 button(i
 assume that is how you remove the Path: at the bottom). On one of the
 init
 methods rendered it has that button disabled and on the other one it
 doesn't. I wonder if that could be causing it. Here is part of the html
 rendered:
 
 tinyMCE.init({
  mode : specific_textareas,
  editor_selector : 70fa4bd0-497a-4eb3-8de5-a3fbc13bedf3,
  theme : advanced,
  language : en,
  plugins : contextmenu, save, paste, searchreplace, insertdatetime,
 preview, zoom, table, emotions, iespell, flash, print, directionality,
 fullscreen,
  theme_advanced_buttons1_add_before : save, newdocument, separator,
  theme_advanced_buttons1_add : fontselect, fontsizeselect,
  theme_advanced_buttons2_add_before: cut, copy, paste, pastetext,
 pasteword, separator, search, replace, separator,
  theme_advanced_buttons2_add : separator, inserttime, insertdate,
 separator, preview, zoom, separator, forecolor, backcolor,
  theme_advanced_buttons3_add_before : tablecontrols,
  theme_advanced_buttons3_add : emotions, iespell, flash, separator,
 print,
 separator, ltr, rtl, separator, fullscreen,
  theme_advanced_toolbar_location : top,
  theme_advanced_statusbar_location : bottom,
  theme_advanced_toolbar_align : left,
  theme_advanced_resizing : true,
  theme_advanced_resize_horizontal : false,
  plugin_insertdate_timeFormat : Time: %H:%M,
  plugin_insertdate_dateFormat : Date: %m-%d-%Y,
  fullpage_default_xml_pi : false
 });
 
 /*--]]*//script
 
 script type=text/javascript id=init!--/*--![CDATA[/*!--*/
 tinyMCE.init({
  mode : specific_textareas,
  editor_selector : 679c2b60-3c42-47e0-986e-3d653f7a28d6,
  theme : advanced,
  language : en,
  theme_advanced_disable : styleselect, sub, sup, charmap, image, anchor,
 help, code, link, unlink, formatselect, bullist, numlist, indent,
 outdent,
 undo, redo, cleanup, hr, visualaid, separator, removeformat,
  theme_advanced_buttons1_add : bullist

TinyMCE init method rendering twice

2008-12-08 Thread jchappelle

I have a TinyMCE component in one of my pages and I am trying to remove the
Path: toolbar at the bottom. I have noticed that the init method renders
on my page twice. I only have one textarea on my page and I am adding a
custom TinyMceBehavior to it. I am trying to disable the visualaid button(i
assume that is how you remove the Path: at the bottom). On one of the init
methods rendered it has that button disabled and on the other one it
doesn't. I wonder if that could be causing it. Here is part of the html
rendered:

tinyMCE.init({
mode : specific_textareas,
editor_selector : 70fa4bd0-497a-4eb3-8de5-a3fbc13bedf3,
theme : advanced,
language : en,
plugins : contextmenu, save, paste, searchreplace, insertdatetime,
preview, zoom, table, emotions, iespell, flash, print, directionality,
fullscreen,
theme_advanced_buttons1_add_before : save, newdocument, separator,
theme_advanced_buttons1_add : fontselect, fontsizeselect,
theme_advanced_buttons2_add_before: cut, copy, paste, pastetext,
pasteword, separator, search, replace, separator,
theme_advanced_buttons2_add : separator, inserttime, insertdate,
separator, preview, zoom, separator, forecolor, backcolor,
theme_advanced_buttons3_add_before : tablecontrols,
theme_advanced_buttons3_add : emotions, iespell, flash, separator, 
print,
separator, ltr, rtl, separator, fullscreen,
theme_advanced_toolbar_location : top,
theme_advanced_statusbar_location : bottom,
theme_advanced_toolbar_align : left,
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,
plugin_insertdate_timeFormat : Time: %H:%M,
plugin_insertdate_dateFormat : Date: %m-%d-%Y,
fullpage_default_xml_pi : false
});

/*--]]*//script

script type=text/javascript id=init!--/*--![CDATA[/*!--*/
tinyMCE.init({
mode : specific_textareas,
editor_selector : 679c2b60-3c42-47e0-986e-3d653f7a28d6,
theme : advanced,
language : en,
theme_advanced_disable : styleselect, sub, sup, charmap, image, anchor,
help, code, link, unlink, formatselect, bullist, numlist, indent, outdent,
undo, redo, cleanup, hr, visualaid, separator, removeformat,
theme_advanced_buttons1_add : bullist, numlist,
theme_advanced_toolbar_location : top,
theme_advanced_statusbar_location : bottom,
theme_advanced_toolbar_align : left,
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : true
});

Could someone please help? 

Thanks,

Josh
-- 
View this message in context: 
http://www.nabble.com/TinyMCE-init-method-rendering-twice-tp20901160p20901160.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



CheckGroupSelector not working at all in a Wizard

2008-12-05 Thread jchappelle

I have followed the example exactly(from what I can see) and when I click my
Select All button nothing happens to the other buttons. Here is the code:

This is in the constructor of a WizardStep:

Form form = new Form(form)
{
private static final long serialVersionUID = 1L;

@Override
protected void onSubmit()
{
super.onSubmit();
}

};
LoadableDetachableModel contactsModel = new 
LoadableDetachableModel()
{
private static final long serialVersionUID = 1L;

@Override
protected Object load()
{
ContactSession sess = new 
ContactSessionImpl();
ListContact result = new 
ArrayListContact();
try
{
result = 
sess.getContacts(contactsLogin.getLoginName(),
contactsLogin.getPassword(), contactsLogin.getService());
}
catch(ContactsRetrievalException e)
{
//TODO:
e.printStackTrace();
}
return result;
}

};
CheckGroup group = new CheckGroup(group, new 
ArrayList());
group.add(new CheckGroupSelector(groupselector));
ListView contacts = new ListView(contacts, 
contactsModel)
{
private static final long serialVersionUID = 1L;

@Override
protected void populateItem(ListItem item)
{
Contact contact = 
(Contact)item.getModelObject();
CheckBox contactCheckBox = new 
CheckBox(contactCheckBox, new
Model());//TODO: (JBC)
Model titleModel = null;
if(contact.getName() == null || 
contact.getName().trim().length() == 0)
{
titleModel = new 
Model(contact.getEmailAddress());
}
else
{
titleModel = new 
Model(contact.getName());
}
Label contactTitle = new 
Label(contactTitle, titleModel);
Label contactEmail = new 
Label(contactEmail, new
Model(contact.getEmailAddress()));
item.add(contactCheckBox);
item.add(contactTitle);
item.add(contactEmail);
}
};
group.add(contacts);

form.add(group);
add(form);


Could someone please tell me what I am doing wrong?

Thanks,

Josh
-- 
View this message in context: 
http://www.nabble.com/CheckGroupSelector-not-working-at-all-in-a-Wizard-tp20863784p20863784.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



CheckGroup model only has one element

2008-12-05 Thread jchappelle

I have a CheckGroup inside of a WizardStep panel. In the constructor I am
giving it a PropertyModel like this:

final CheckGroup group = new CheckGroup(group, new
PropertyModel(RegistrationWizard.this, contacts));

My wizard class has a setContacts and a getContacts that take a Set and
return a Set respectively. I add a ListView to this group:

Form form = new Form(form);
group.add(new CheckGroupSelector(groupselector));
ListView contacts = new ListView(contacts, 
contactsModel)
{
private static final long serialVersionUID = 1L;

@Override
protected void populateItem(ListItem item)
{
Contact contact = 
(Contact)item.getModelObject();
Check contactCheckBox = new 
Check(contactCheckBox, item.getModel());

Model titleModel = null;
if(contact.getName() == null || 
contact.getName().trim().length() == 0)
{
titleModel = new 
Model(contact.getEmailAddress());
}
else
{
titleModel = new 
Model(contact.getName());
}
Label contactTitle = new 
Label(contactTitle, titleModel);
Label contactEmail = new 
Label(contactEmail, new
Model(contact.getEmailAddress()));
item.add(contactCheckBox);
item.add(contactTitle);
item.add(contactEmail);
}
};


The top checked contact is always the one returned. It never has the full
collection of selections in my contacts Set. I have been beating my head
over this for hours. Could someone please help!!! I am using wicket 1.3.4

Thanks,

Josh
-- 
View this message in context: 
http://www.nabble.com/CheckGroup-model-only-has-one-element-tp20865674p20865674.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Where can I download wicket extensions?

2008-12-04 Thread jchappelle

The most logical place would be at
http://www.wicketframework.org/wicket-extensions/.

However the link to the sourceforge site from there gives me old
code(1.2.7). I have a jar right now that is 1.3.2 and I'm not sure where it
came from.

I need the source code so I can customize the wizard component.

Please help.

Thanks,

Josh
-- 
View this message in context: 
http://www.nabble.com/Where-can-I-download-wicket-extensions--tp20844206p20844206.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



WicketMockServlet-filestore question

2008-11-07 Thread jchappelle

I have started unit testing my wicket pages using the WicketTester class. For
now most of my tests just consist of something like this:

WicketTester tester = getWicketTester();

tester.startPage(new AdminPage());
tester.assertRenderedPage(AdminPage.class);

For some reason every time I run a test I get a new folder under this path:

target/work/WicketMockServlet-filestore

And for each test I have a folder named something like
_d29c5f4_11d77e4b4d2_7ffc and inside that folder there is a text file called
pm-null with what looks like serialized objects in it.

Is there a way to turn this off or do I need to do some cleanup in my junit
tearDown method? 

Thanks

Josh


-- 
View this message in context: 
http://www.nabble.com/WicketMockServlet-filestore-question-tp20384649p20384649.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: WicketMockServlet-filestore question

2008-11-07 Thread jchappelle

I am using version 1.3.4.

I am creating my WicketTester by handing it my custom Application object in
the constructor. The code I posted below is extending a BaseWicketTest class
that I have created that has a getWicketTester() method in it. 

Thanks



igor.vaynberg wrote:
 
 looks like dummywebapplication, which the tester uses by default, uses
 HttpSessionStore which should not cause any directories to be created.
 what wicket version are you using?
 
 -igor
 
 On Fri, Nov 7, 2008 at 9:04 AM, jchappelle [EMAIL PROTECTED] wrote:

 I have started unit testing my wicket pages using the WicketTester class.
 For
 now most of my tests just consist of something like this:

WicketTester tester = getWicketTester();

tester.startPage(new AdminPage());
tester.assertRenderedPage(AdminPage.class);

 For some reason every time I run a test I get a new folder under this
 path:

 target/work/WicketMockServlet-filestore

 And for each test I have a folder named something like
 _d29c5f4_11d77e4b4d2_7ffc and inside that folder there is a text file
 called
 pm-null with what looks like serialized objects in it.

 Is there a way to turn this off or do I need to do some cleanup in my
 junit
 tearDown method?

 Thanks

 Josh


 --
 View this message in context:
 http://www.nabble.com/WicketMockServlet-filestore-question-tp20384649p20384649.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/WicketMockServlet-filestore-question-tp20384649p20386731.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: WicketMockServlet-filestore question

2008-11-07 Thread jchappelle

The target and the target/work folder are still getting created but I can
live with that. If you know of a quick and easy way to stop that from
happening then that would be great. Otherwise don't spend any time on it.

Thanks for your help.

Josh


igor.vaynberg wrote:
 
 then you have to subclass your application, override newsessionstore
 and return httpsessionstore for your tests.
 
 -igor
 
 On Fri, Nov 7, 2008 at 10:51 AM, jchappelle [EMAIL PROTECTED] wrote:

 I am using version 1.3.4.

 I am creating my WicketTester by handing it my custom Application object
 in
 the constructor. The code I posted below is extending a BaseWicketTest
 class
 that I have created that has a getWicketTester() method in it.

 Thanks



 igor.vaynberg wrote:

 looks like dummywebapplication, which the tester uses by default, uses
 HttpSessionStore which should not cause any directories to be created.
 what wicket version are you using?

 -igor

 On Fri, Nov 7, 2008 at 9:04 AM, jchappelle [EMAIL PROTECTED] wrote:

 I have started unit testing my wicket pages using the WicketTester
 class.
 For
 now most of my tests just consist of something like this:

WicketTester tester = getWicketTester();

tester.startPage(new AdminPage());
tester.assertRenderedPage(AdminPage.class);

 For some reason every time I run a test I get a new folder under this
 path:

 target/work/WicketMockServlet-filestore

 And for each test I have a folder named something like
 _d29c5f4_11d77e4b4d2_7ffc and inside that folder there is a text file
 called
 pm-null with what looks like serialized objects in it.

 Is there a way to turn this off or do I need to do some cleanup in my
 junit
 tearDown method?

 Thanks

 Josh


 --
 View this message in context:
 http://www.nabble.com/WicketMockServlet-filestore-question-tp20384649p20384649.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://www.nabble.com/WicketMockServlet-filestore-question-tp20384649p20386731.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/WicketMockServlet-filestore-question-tp20384649p20389450.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



QueryStringUrlCodingStrategy question

2008-11-03 Thread jchappelle

I have the following code:

PageParameters parms = new PageParameters();
parms.put(answerId, Long.toString(answer.getEntityId()));
add(new BookmarkablePageLink(edit, EditBlogEntryPage.class, 
parms));

In my Application init method I have: 

mount(new QueryStringUrlCodingStrategy(answerdetails,
EditBlogEntryPage.class));

When I click the edit link to get to my page my URL looks like:

http://localhost/robojot/answerdetails/?x=SvX0Lakly72TaK8AnLyL*A

Can someone tell me why it doesn't look like the following:
/answerdetails?answerId=123

Thanks
-- 
View this message in context: 
http://www.nabble.com/QueryStringUrlCodingStrategy-question-tp20309566p20309566.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Saving panel state

2008-10-29 Thread jchappelle

I have some reused panels that have a custom built CollapsiblePanelHeader
component in them. I would like to save the boolean value of whether it is
collapsed or not within the Session object. I had it working for a while by
using a Map in the Session with the panel's classname as the key and the
boolean value as the value. This works mostly until you have a panel that is
reused in another page. Then it will share it's state with the other panel
of the same class.

I tried to use the getPath() method but since I am constructing my
CollapsiblePanelHeader in the constructor of the Panel, the parent of the
Panel component is null therefore I am only getting back the id of the Panel
which still causes many collisions(mainly because I have a BasePage that has
a div wicket:id=bodyPanel/ that gets replaced by other subclasses). 

Does anyone have any ideas of how to uniquely identify reused Panel
components? If not, is there a way that I can get the full path of the Panel
by calling getPath() from within its constructor?

Any help is greatly appreciated.

Josh
-- 
View this message in context: 
http://www.nabble.com/Saving-panel-state-tp20236203p20236203.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: form components within an AccordionPanel

2008-10-16 Thread jchappelle

It looks like the files they are using are 

http://yui.yahooapis.com/2.6.0/build/animation/animation-min.js
http://yui.yahooapis.com/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js

and the files that our accordion uses are

http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js
http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js
http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js
http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js

So it looks like they are different unless you were referring to something
else that I didn't see.

I haven't tried to contact him but I will do that. I'll let you know if I
find out anything.

Thanks,

Josh


Nino.Martinez wrote:
 
 Looking at YUI... They do actually link directly to the js I based the 
 accordion component on:
 
 http://developer.yahoo.com/yui/animation/
 
 Did you try writing to the guy who did the js script?
 
 Nino Saturnino Martinez Vazquez Wael wrote:


 jchappelle wrote:
 Yea, if it is having the problem in the javascript then it has 
 nothing to do
 with wicket. I was just hoping you might be a javascript guru. :-)
 I only change stuff, if it's really needed. You could break a dozen 
 things when correcting stuff..
   I have
 recently found some javascript that works for me and I've almost got a
 component in wicket created for it. It will work for now.
   
 Okay great.
 However, it would be nice to have a component that is backed by a 
 javascript
 library that is maintained and kept up to date like YUI.
 Yeah, thats my thought too. What ever 3rd party javascript api wicket 
 changes it ajax to, i'll probably start doing components for..
  I don't know if I
 would worry about the wicket:container or fieldset stuff. It looks 
 like the
 big problem is with the javascript and until that is fixed there is 
 no use
 in tweaking anything else.   
 Yeah my thought too..:(
 Let me know if you update the component to use something like YUI. I 
 would
 definately be interested in using it. I could even help out if you 
 need.   
 Okay.. I'll ponder over it..
 Thanks,

 Josh


 Nino.Martinez wrote:
  
 Great that you have done some extensive diagnostics..

 jchappelle wrote:

 Thanks for the quick response. I am using wicket 1.3.4. I have been 
 able
 to
 reproduce my problem with a very simplified example that is just an
 extension of the wicket-contrib-accordion-examples project. I have 
 taken
 the
 AccordionPage and added another menu item that has a TextField 
 inside of
 it.
 It works fine in Safari and Google Chrome, but not in IE7 or 
 Mozilla 5.
 In
 IE7 the input is not rendered at all when the menu item is expanded.
 However
 when you close it, it shows up for a split second and then goes away
 again
 before the menu item fully closes. Also, the normal menu items seem to
 show
 up fine when clicked, but when I close them they reopen again and 
 then go
 closed really quickly.
 I have run the code with just the barebones html, css and 
 javascript that
 is
 available at http://www.hedgerwow.com/360/mwd/accordion/demo.php 
 and I am
 getting the same problem with the form components but not with the 
 other
 I
 mentioned. 
 Hmm if you get the same problem here, it's not so great:( Then it's 
 out of my hands. And I'd say that we should pick another js lib that 
 does not have these issues. I could be convinced to do some YUI 
 equalent..

 Could it be the span tags that are in the wicket code? Is it upset
 because
 of form components being inside of a span tag maybe? 
 Could be, if this is the problem then it's a really really easy 
 fix.. I can go see if I can replace it with wicket:container or 
 fieldset? WDYT?

 Thanks for your time,

 Josh


 Nino.Martinez wrote:

 I forgot to mention, that I do think dojo are being picked up at 
 wicket 1.4, some guys talked about it on the dev list. I take it 
 you are using the 1.3?

 Nino Saturnino Martinez Vazquez Wael wrote:

 jchappelle wrote:

 I am trying to render a form inside a Panel within an 
 AccordionPanel. I have
 even reduced it to trying to only render a TextArea inside a 
 Panel within
 it. However, when I click on the title of one of the items it 
 expands with
 nothing but white space within it.
   
 Sounds a little wierd. What I would do would be to try to have a 
 simple mock html that used the accordion js and see if I could 
 replicate it there. Theres also a chance that the author of 
 accordion.js has some hints on this.

 The examples for the AccordionPanel only have a Label inside a 
 Panel as the
 content.
 
 Yeah that's what I needed at the time.

  Is this not possible? I even tried to use the
 DojoAccordionContainer but it gave some weird error debug messages
 that
 splattered all over my webpage(I'm not even sure how that 
 happened unless it
 found

Re: form components within an AccordionPanel

2008-10-16 Thread jchappelle

I copied you on the email I sent to the javascript developer but I want to
post the solution that I found here so that it might help others.

In the accordion-menu-v2.css file I commented out one line of code. Here is
the snippet:

html.accordion-menu-js dd.a-m-d-before-expand {
display:block;
position:relative;
z-index:-1;
opacity:0;
height:auto !important;
/* visibility:hidden;*/
overflow:visible;
}

The “visibility:hidden;” style was somehow causing the form component to not
render. Like maybe its style was not being reset after it is expanded or
something. 

I do want to point out that this was only occurring in IE7. When I removed
it, it did not seem to break when viewed in other browsers, namely chrome
and safari(Whole thing never works in Mozilla Firefox 5 but that's another
issue). 

Nino, thanks for all your help. You might want to test this out and when you
are convinced commit the changes to svn. I still think converting to a more
stable framework will be good but this should be good bubble gum to plug the
hole until then.

Thanks,

Josh




Nino.Martinez wrote:
 
 Looking at YUI... They do actually link directly to the js I based the 
 accordion component on:
 
 http://developer.yahoo.com/yui/animation/
 
 Did you try writing to the guy who did the js script?
 
 Nino Saturnino Martinez Vazquez Wael wrote:


 jchappelle wrote:
 Yea, if it is having the problem in the javascript then it has 
 nothing to do
 with wicket. I was just hoping you might be a javascript guru. :-)
 I only change stuff, if it's really needed. You could break a dozen 
 things when correcting stuff..
   I have
 recently found some javascript that works for me and I've almost got a
 component in wicket created for it. It will work for now.
   
 Okay great.
 However, it would be nice to have a component that is backed by a 
 javascript
 library that is maintained and kept up to date like YUI.
 Yeah, thats my thought too. What ever 3rd party javascript api wicket 
 changes it ajax to, i'll probably start doing components for..
  I don't know if I
 would worry about the wicket:container or fieldset stuff. It looks 
 like the
 big problem is with the javascript and until that is fixed there is 
 no use
 in tweaking anything else.   
 Yeah my thought too..:(
 Let me know if you update the component to use something like YUI. I 
 would
 definately be interested in using it. I could even help out if you 
 need.   
 Okay.. I'll ponder over it..
 Thanks,

 Josh


 Nino.Martinez wrote:
  
 Great that you have done some extensive diagnostics..

 jchappelle wrote:

 Thanks for the quick response. I am using wicket 1.3.4. I have been 
 able
 to
 reproduce my problem with a very simplified example that is just an
 extension of the wicket-contrib-accordion-examples project. I have 
 taken
 the
 AccordionPage and added another menu item that has a TextField 
 inside of
 it.
 It works fine in Safari and Google Chrome, but not in IE7 or 
 Mozilla 5.
 In
 IE7 the input is not rendered at all when the menu item is expanded.
 However
 when you close it, it shows up for a split second and then goes away
 again
 before the menu item fully closes. Also, the normal menu items seem to
 show
 up fine when clicked, but when I close them they reopen again and 
 then go
 closed really quickly.
 I have run the code with just the barebones html, css and 
 javascript that
 is
 available at http://www.hedgerwow.com/360/mwd/accordion/demo.php 
 and I am
 getting the same problem with the form components but not with the 
 other
 I
 mentioned. 
 Hmm if you get the same problem here, it's not so great:( Then it's 
 out of my hands. And I'd say that we should pick another js lib that 
 does not have these issues. I could be convinced to do some YUI 
 equalent..

 Could it be the span tags that are in the wicket code? Is it upset
 because
 of form components being inside of a span tag maybe? 
 Could be, if this is the problem then it's a really really easy 
 fix.. I can go see if I can replace it with wicket:container or 
 fieldset? WDYT?

 Thanks for your time,

 Josh


 Nino.Martinez wrote:

 I forgot to mention, that I do think dojo are being picked up at 
 wicket 1.4, some guys talked about it on the dev list. I take it 
 you are using the 1.3?

 Nino Saturnino Martinez Vazquez Wael wrote:

 jchappelle wrote:

 I am trying to render a form inside a Panel within an 
 AccordionPanel. I have
 even reduced it to trying to only render a TextArea inside a 
 Panel within
 it. However, when I click on the title of one of the items it 
 expands with
 nothing but white space within it.
   
 Sounds a little wierd. What I would do would be to try to have a 
 simple mock html that used the accordion js and see if I could 
 replicate it there. Theres also a chance that the author

stopping event bubbling from link to enclosing div

2008-10-16 Thread jchappelle

I have an AjaxLink inside a div. There is an onclick event handler added at
the document level in the dom. If I am clicking the div that contains my
AjaxLink the event will fire. However, I don't want it to fire if I click
the link. 

It seems that there is a way to do this in javascript. I think it is called
cancelling event bubbling. Can someone help me do this in wicket?

Thanks,

Josh
-- 
View this message in context: 
http://www.nabble.com/stopping-event-bubbling-from-link-to-enclosing-div-tp20025613p20025613.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: stopping event bubbling from link to enclosing div

2008-10-16 Thread jchappelle

I found the solution. I will post it for everyone that is interested. 

I created a this class:

public class AjaxCancelEventBubbleCallDecorator extends
AjaxPostprocessingCallDecorator
{
private static final long serialVersionUID = 1L;

public AjaxCancelEventBubbleCallDecorator()
{
this((IAjaxCallDecorator)null);
}

public AjaxCancelEventBubbleCallDecorator(IAjaxCallDecorator delegate)
{
super(delegate);
}

public CharSequence postDecorateScript(CharSequence script)
{
return e = window.event; if(e.stopPropagation)
{e.stopPropagation();}else{e.cancelBubble = true;} + script;
}
}

Then on the AjaxLink override this method:

@Override
protected IAjaxCallDecorator getAjaxCallDecorator()
   {
  return new AjaxCancelEventBubbleCallDecorator();
   }

Thanks,

Josh


jchappelle wrote:
 
 I have an AjaxLink inside a div. There is an onclick event handler added
 at the document level in the dom. If I am clicking the div that contains
 my AjaxLink the event will fire. However, I don't want it to fire if I
 click the link. 
 
 It seems that there is a way to do this in javascript. I think it is
 called cancelling event bubbling. Can someone help me do this in wicket?
 
 Thanks,
 
 Josh
 

-- 
View this message in context: 
http://www.nabble.com/stopping-event-bubbling-from-link-to-enclosing-div-tp20025613p20025840.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: tinymce ajax submit

2008-10-16 Thread jchappelle

Has that code been posted for wicketstuff-1.3? I am using the old
wicket-contrib-tinymce-1.3-SNAPSHOT.jar. Where would I find an updated
snapshot?

Thanks,

Josh



sander v F wrote:
 
 For a project I also needed a AjaxSubmitLink to submit the tinyMce data,
 so
 i've searched for a solution and found it at
 http://dwairi.blogspot.com/2006/12/tinymce-ajax.html
 The solution is to add tinyMCE.triggerSave(true,true); to the onclick of
 the ajax button/link before the wicket code is called.
 
 I made a nice Wicket AttributeModifier (TinyMceAjaxSubmitModifier) which
 can
 be added to the ajax button/link and I also made a TinyMceAjaxButton and
 TinyMceAjaxSubmitLink for easier use.
 
 These component are added to the wicket-contrib-tinymce project.
 
 
 
 2008/2/19 Igor Vaynberg [EMAIL PROTECTED]
 
 tinymce replaces the textarea with an iframe. after that it installs
 an onsubmit hook to detect when the form is submitted and does the
 opposite. since you are submitting via ajax form's onsubmit() is never
 called and so tinymce doesnt replace the iframe with a textarea piror
 tp submit. you need to look at what that callback calls and call it
 yourself

 -igor

 On Feb 19, 2008 2:55 AM, Benjamin Ernst [EMAIL PROTECTED] wrote:
  Hi Marc,
 
  I have the same problem. When i am submitting a textarea with a
  TinyMCEBehavior the model of the textarea does not get updated.
  I am interested in your solution, but I do not understand it.
 
  It would be nice if you (or anyone else) could explain it for me.
 
  Thanks in advance,
  Benjamin
 
  2007/11/19, godin [EMAIL PROTECTED]:
 
  
   godin a écrit :
Frank Bille a écrit :
Hi,
   
Do you have problems with it?
   
   
   
yes , the submit work half a time 
i will investigate it more
  
  
   Ok find a workaround,
   pb on mozilla, use a decorator
   super.decorateScript(tinyMCE.triggerSave(true,
   true);+script+tinyMCE.idCounter=0;);
  
   regards marc
   Wicket rocks !
I tried it over a year ago, and as far as I remember there was
nothing to
it. That was Wicket 1.2.3 and tinymce from back then.
   
Frank
   
On Nov 16, 2007 5:24 PM, godin [EMAIL PROTECTED] wrote:
   
   
Hi,
doe somebody manage to make tinymce work with an ajax submit
 button
regards
Marc
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   
   
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 

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


 
 

-- 
View this message in context: 
http://www.nabble.com/tinymce-ajax-submit-tp13796517p20026094.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: form components within an AccordionPanel

2008-10-15 Thread jchappelle

Thanks for the quick response. I am using wicket 1.3.4. I have been able to
reproduce my problem with a very simplified example that is just an
extension of the wicket-contrib-accordion-examples project. I have taken the
AccordionPage and added another menu item that has a TextField inside of it. 

It works fine in Safari and Google Chrome, but not in IE7 or Mozilla 5. In
IE7 the input is not rendered at all when the menu item is expanded. However
when you close it, it shows up for a split second and then goes away again
before the menu item fully closes. Also, the normal menu items seem to show
up fine when clicked, but when I close them they reopen again and then go
closed really quickly. 

I have run the code with just the barebones html, css and javascript that is
available at http://www.hedgerwow.com/360/mwd/accordion/demo.php and I am
getting the same problem with the form components but not with the other I
mentioned. 

Could it be the span tags that are in the wicket code? Is it upset because
of form components being inside of a span tag maybe? 

Thanks for your time,

Josh


Nino.Martinez wrote:
 
 I forgot to mention, that I do think dojo are being picked up at wicket 
 1.4, some guys talked about it on the dev list. I take it you are using 
 the 1.3?
 
 Nino Saturnino Martinez Vazquez Wael wrote:


 jchappelle wrote:
 I am trying to render a form inside a Panel within an AccordionPanel. 
 I have
 even reduced it to trying to only render a TextArea inside a Panel 
 within
 it. However, when I click on the title of one of the items it expands 
 with
 nothing but white space within it.
   
 Sounds a little wierd. What I would do would be to try to have a 
 simple mock html that used the accordion js and see if I could 
 replicate it there. Theres also a chance that the author of 
 accordion.js has some hints on this.
 The examples for the AccordionPanel only have a Label inside a Panel 
 as the
 content.
 Yeah that's what I needed at the time.
  Is this not possible? I even tried to use the
 DojoAccordionContainer but it gave some weird error debug messages that
 splattered all over my webpage(I'm not even sure how that happened 
 unless it
 found a FeedbackPanel or something).   
 Im not sure what state dojo are in.
 I'm starting to lose faith in many of these wicket-stuff projects. 
 PLEASE
 HELP!
   
 Well some of the wicketstuff projects are not being maintained, AFAIK. 
 People are always welcome to maintain them. I saw you wrote a direct 
 mail to me i'll reply on the questions you had there.
 Thanks,

 Josh
   

 
 -- 
 -Wicket for love
 
 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
http://www.nabble.com/file/p19996411/AccordionPage.html AccordionPage.html 
http://www.nabble.com/file/p19996411/AccordionPage.java AccordionPage.java 
http://www.nabble.com/file/p19996411/formcontent.html formcontent.html 
http://www.nabble.com/file/p19996411/formcontent.java formcontent.java 
http://www.nabble.com/file/p19996411/content.java content.java 
http://www.nabble.com/file/p19996411/content.html content.html 
-- 
View this message in context: 
http://www.nabble.com/form-components-within-an-AccordionPanel-tp19980730p19996411.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: form components within an AccordionPanel

2008-10-15 Thread jchappelle

Yea, if it is having the problem in the javascript then it has nothing to do
with wicket. I was just hoping you might be a javascript guru. :-)  I have
recently found some javascript that works for me and I've almost got a
component in wicket created for it. It will work for now.

However, it would be nice to have a component that is backed by a javascript
library that is maintained and kept up to date like YUI. I don't know if I
would worry about the wicket:container or fieldset stuff. It looks like the
big problem is with the javascript and until that is fixed there is no use
in tweaking anything else. 

Let me know if you update the component to use something like YUI. I would
definately be interested in using it. I could even help out if you need. 

Thanks,

Josh


Nino.Martinez wrote:
 
 Great that you have done some extensive diagnostics..
 
 jchappelle wrote:
 Thanks for the quick response. I am using wicket 1.3.4. I have been able
 to
 reproduce my problem with a very simplified example that is just an
 extension of the wicket-contrib-accordion-examples project. I have taken
 the
 AccordionPage and added another menu item that has a TextField inside of
 it. 

 It works fine in Safari and Google Chrome, but not in IE7 or Mozilla 5.
 In
 IE7 the input is not rendered at all when the menu item is expanded.
 However
 when you close it, it shows up for a split second and then goes away
 again
 before the menu item fully closes. Also, the normal menu items seem to
 show
 up fine when clicked, but when I close them they reopen again and then go
 closed really quickly. 

 I have run the code with just the barebones html, css and javascript that
 is
 available at http://www.hedgerwow.com/360/mwd/accordion/demo.php and I am
 getting the same problem with the form components but not with the other
 I
 mentioned. 
   
 Hmm if you get the same problem here, it's not so great:( Then it's out 
 of my hands. And I'd say that we should pick another js lib that does 
 not have these issues. I could be convinced to do some YUI equalent..
 Could it be the span tags that are in the wicket code? Is it upset
 because
 of form components being inside of a span tag maybe? 
   
 Could be, if this is the problem then it's a really really easy fix.. I 
 can go see if I can replace it with wicket:container or fieldset? WDYT?
 Thanks for your time,

 Josh


 Nino.Martinez wrote:
   
 I forgot to mention, that I do think dojo are being picked up at wicket 
 1.4, some guys talked about it on the dev list. I take it you are using 
 the 1.3?

 Nino Saturnino Martinez Vazquez Wael wrote:
 
 jchappelle wrote:
   
 I am trying to render a form inside a Panel within an AccordionPanel. 
 I have
 even reduced it to trying to only render a TextArea inside a Panel 
 within
 it. However, when I click on the title of one of the items it expands 
 with
 nothing but white space within it.
   
 
 Sounds a little wierd. What I would do would be to try to have a 
 simple mock html that used the accordion js and see if I could 
 replicate it there. Theres also a chance that the author of 
 accordion.js has some hints on this.
   
 The examples for the AccordionPanel only have a Label inside a Panel 
 as the
 content.
 
 Yeah that's what I needed at the time.
   
  Is this not possible? I even tried to use the
 DojoAccordionContainer but it gave some weird error debug messages
 that
 splattered all over my webpage(I'm not even sure how that happened 
 unless it
 found a FeedbackPanel or something).   
 
 Im not sure what state dojo are in.
   
 I'm starting to lose faith in many of these wicket-stuff projects. 
 PLEASE
 HELP!
   
 
 Well some of the wicketstuff projects are not being maintained, AFAIK. 
 People are always welcome to maintain them. I saw you wrote a direct 
 mail to me i'll reply on the questions you had there.
   
 Thanks,

 Josh
   
 
 -- 
 -Wicket for love

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


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



 
 http://www.nabble.com/file/p19996411/AccordionPage.html
 AccordionPage.html 
 http://www.nabble.com/file/p19996411/AccordionPage.java
 AccordionPage.java 
 http://www.nabble.com/file/p19996411/formcontent.html formcontent.html 
 http://www.nabble.com/file/p19996411/formcontent.java formcontent.java 
 http://www.nabble.com/file/p19996411/content.java content.java 
 http://www.nabble.com/file/p19996411/content.html content.html 
   
 
 -- 
 -Wicket for love
 
 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context

form components within an AccordionPanel

2008-10-14 Thread jchappelle

I am trying to render a form inside a Panel within an AccordionPanel. I have
even reduced it to trying to only render a TextArea inside a Panel within
it. However, when I click on the title of one of the items it expands with
nothing but white space within it.

The examples for the AccordionPanel only have a Label inside a Panel as the
content. Is this not possible? I even tried to use the
DojoAccordionContainer but it gave some weird error debug messages that
splattered all over my webpage(I'm not even sure how that happened unless it
found a FeedbackPanel or something). 

I'm starting to lose faith in many of these wicket-stuff projects. PLEASE
HELP!

Thanks,

Josh
-- 
View this message in context: 
http://www.nabble.com/form-components-within-an-AccordionPanel-tp19980730p19980730.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



wicket 1.3.4 - setDefaultFormProcessing(true) not solving the GoAndClearFilter problem

2008-10-02 Thread jchappelle

I have looked at the other posts people have made about this problem and each
says that the solution is to call setDefaultFormProcessing(true) on the
clear button. I have done that and it doesn't solve my problem. I started
with wicket 1.3.2 but I saw where a bug fix for this was in 1.3.3 so now I
am using 1.3.4. I am doing this in a modal window but I don't know if that
has anything to do with the problem. Here is my code: 

new FilteredAbstractColumn(new Model()) 
{ 
private static final long
serialVersionUID = 1L; 

public void populateItem(Item
cellItem, String componentId, IModel rowModel) 
{ 
cellItem.add(new
WebMarkupContainer(componentId, new Model())); 
} 

public Component getFilter(String
id, FilterForm form) 
{ 
GoAndClearFilter filter =
new GoAndClearFilter(id, form) 
{ 
private static final
long serialVersionUID = 1L; 

@Override 
protected Button
getClearButton() 
{ 
Button
result = super.getClearButton(); 
   
result.setDefaultFormProcessing(true); 
return
result; 
} 
}; 
return filter; 
} 

} 
}; 

Thanks
-- 
View this message in context: 
http://www.nabble.com/wicket-1.3.4---setDefaultFormProcessing%28true%29-not-solving-the-GoAndClearFilter-problem-tp19786310p19786310.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



GoAndClearFilter not clearing

2008-09-30 Thread jchappelle

I have looked at the other posts people have made about this problem and each
says that the solution is to call setDefaultFormProcessing(true) on the
clear button. I have done that and it doesn't solve my problem. I am doing
this in a modal window but I don't know if that has anything to do with the
problem. Here is my code:

new FilteredAbstractColumn(new Model())
{
private static final long 
serialVersionUID = 1L;

public void populateItem(Item cellItem, 
String componentId, IModel
rowModel)
{
cellItem.add(new 
WebMarkupContainer(componentId, new Model()));
}

public Component getFilter(String id, 
FilterForm form)
{
GoAndClearFilter filter = new 
GoAndClearFilter(id, form)
{
private static final 
long serialVersionUID = 1L;

@Override
protected Button 
getClearButton()
{
Button result = 
super.getClearButton();

result.setDefaultFormProcessing(true);
return result;
}
};
return filter;
}

}
};

Thanks
-- 
View this message in context: 
http://www.nabble.com/GoAndClearFilter-not-clearing-tp19747163p19747163.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



  1   2   >