Have you come up with workable code? I'm about to do what you have just done
with freemarker.
Thanks again igor (you always seem to be able to fix any problems I'm having
getting to grasps with wicket)
I've now got a basic IResponseFilter running that will stick data into
freemarker tags.
At
Hm, still a good question. How do you get the IResponseFilter in there? There
doesn't seem to be a way to do anything with the RequestCycle, and
getApplication().getRequestCycleSettings() doesn't seem to have a place to
set the IResponseFilter...I would also like to ensure that the custom
Great, thanks. This is pretty much all set.
http://issues.apache.org/jira/browse/WICKET-795
Eelco Hillenius wrote:
http://issues.apache.org/jira/browse/WICKET
then look for a way to register.
Eelco
--
View this message in context:
Here's a stack trace, if it helps:
org.apache.wicket.WicketRuntimeException: No RequestCycle is currently set!
at org.apache.wicket.Component.getRequest(Component.java:1417)
at com.holla.pages.SomeWebPage.onBeforeRender(SomeWebPage.java:180)
at
Nailed it, thanks. I thought I tried this, but clearly my threading code was
out of whack.
igor.vaynberg wrote:
because of all the threadlocals you should probably run wickettester in a
separate thread:
onclick() {
final String[] output=new String[1];
Runnable gen=new Runnable() {
This issue is ultimately stemming from a specific issue I encountered during
my trials and tribulations in
http://www.nabble.com/How-to-get-HTML-source-code-from-a-wicket-page-tf3968790.html#a11548230
this thread , but it was getting buried a bit in the rest of the thread...I
figured I'd ask
For some reason, after my custom WebRequestProcessorCycle.respond() fires,
RquestCycle.get() returns null...I can't seem to escape that...
I'm not familiar with JIRA, where should I go to sign up or post a bug?
Eelco Hillenius wrote:
It seems to be such a recurring issue (and tbh, I
...Everything is fine until the calling
Wicket page needs to render itself (presumably with a page that says Email
sent).
Tremelune wrote:
There we go. I've pretty much got this, thanks to everyone. Here's a
helper class I drummed up--It's not fully tested, doesn't handle both HTML
text
Is there another example somewhere besides the one that extends
WebApplication? I'd like to encapsulate all of this into a simple object
that took a Page and some params, and I imagine WicketTester is the way to
get that done. I just can't seem to get rendered HTML into the
StringResponse...
...
Tremelune wrote:
Is there another example somewhere besides the one that extends
WebApplication? I'd like to encapsulate all of this into a simple object
that took a Page and some params, and I imagine WicketTester is the way to
get that done. I just can't seem to get rendered HTML
There we go. I've pretty much got this, thanks to everyone. Here's a helper
class I drummed up--It's not fully tested, doesn't handle both HTML text,
and doesn't take parameters yet. I'll try and post a new thread (maybe even
on the wiki?) when I get those details hashed out. For now, this is a
I recently went from 1.3-snapshot to 1.3-beta2 and the following line of code
now won't compile:
addComponentInstantiationListener(new SpringComponentInjector(this));
I'm sure there is a simple solution to this, but I've sniffed around this
forum and looked for clues in the 1.3-beta2 source
Bingo, thanks. I'll add that to my mavenization...That threw me for a loop!
This might be caused by a missing wicket-ioc JAR in your project. I think
sometime between before beta2, a new IOC project was introduced. If you're
compiling from SVN, this should be another project directory.
--
I'm having a great deal of trouble getting this to fire. How does one
accomplish this in the middle of, say, some run-of-the-mill Wicket page? If
I do something like this, I get an error that /pages has already been
mounted (which it has, during my app's initialization). I also tried to do
all
So here's a junit test:
public void testThisThing() {
System.out.println(Testing...);
WicketTester tester = new WicketTester(new TestApp());
System.out.println(Testing page thing);
tester.startPage(TestEmail.class);
}
private class TestApp extends WebApplication {
That's true, but the real problem is that decode() isn't firing at all.
the email isn't displayed because : your rule is associated to the mount
point /pages and you don't call it.
You need to call /pages with a parameter (queryString) email not null. (I
don't know how to simulate this with
Ah, hm. How do I call a /pages URL? I think this may be the missing link. I
thought tester.startPage() would hit that and call all those methods.
Simplified version of test:
public void testThisThing() {
WicketTester tester = new WicketTester(new TestApp());
Ha! That was it! Glorious, thanks.
Al Maw wrote:
Make sure you list your OpenSessionInViewFilter filter-mapping element
*before* your Wicket one in your web.xml. They're run in order.
Al
--
Alastair Maw
Wicket-biased blog at http://herebebeasties.com
to override the decorateScript method of
AjaxCallDecorator.
best,
jim
On 5/30/07, Tremelune [EMAIL PROTECTED] wrote:
I'm looking to add an additional script to the onclick of a (paging) ajax
link. I stumbled on this thread:
http://www.nabble.com/Appending-to-AJAX-Submit-Button-onclick-tf1695285
();
}
};
}
best,
jim
On 5/31/07, Tremelune [EMAIL PROTECTED] wrote:
Sooo...getAjaxCallDecorator() is in AjaxPagingNavigationBehavior, which
is
constructed in AjaxPagingNavigationLink, which is constructed in
AjaxPagingNavigator.newPagingNavigatorLink(), which my subclass
overrides
a PagingNavigationIncrementLink
and add a behavior similar to AjaxPagingNavigationBehavior to it, but
with the scriptaculous stuff added in as well.
hth,
jim
On 5/31/07, Tremelune [EMAIL PROTECTED] wrote:
I misspoke a earlier, the method I need to override is
newPagingNavigationIncrementLink
CancelEventIfNoAjaxDecorator??
Tremelune wrote:
Well, that works...I think this would be made easier if there were a
getAjaxBehavior() method in AjaxPagingNavigationIncrementLink. As it
stands, there are a few methods in my class that were copied/pasted
directly from AjaxPagingNavigationLink:
public class
Fixed this last bit by wrapping the return call decorator in a CancelEvent
one (it chains):
final AjaxPagingNavigationBehavior behavior =
new AjaxPagingNavigationBehavior(this, pageable, onclick) {
protected IAjaxCallDecorator getAjaxCallDecorator() {
return new
to prevent
the onclick from bubbling to the anchors clickhandler. Your
ajaxcalldecorator will need to do that as well. It would be great if
once you are done you could create an rfe in jira with the
enhancements that will make this process easier.
jim
On 5/31/07, Tremelune [EMAIL
I'm looking to add an additional script to the onclick of a (paging) ajax
link. I stumbled on this thread:
http://www.nabble.com/Appending-to-AJAX-Submit-Button-onclick-tf1695285.html#a4600751
I can't seem to find the additional code in 1.3. The thread is a year old,
perhaps the code was
After a bit of mucking around, I essentially did just that--copy
NavigatorLabel's behavior, but with a PageableListView instead of a
DataTable. To do so I abandoned my separate first/last/total components in
favor of a simple constructed String: 1-10 of 100. The code looks
something like this:
That appears to be a timer-based solution. I would like the panel to update
once and only once when a user clicks on a paging link. Also, to clarify,
the list is getting updated by the click, but the viewed range is not. So
you have this:
---
* George Michael
* Ezra Lusk
* T-Bone
Viewing items
Okay, I've got the container being passed into the target onAjaxUpdate()...Is
there a method that then gets called on objects passed into the target? I'm
having trouble understanding where I would change the data from 1-3 to
4-6 (from my previous example).
By viewed range I simply mean that the
Is there an easy way to use this with an ordered list as opposed to a
DataTable? It seems roundabout to define IColumn array to a single-columned,
unlabeled list.
I'm trying to determine if a (possibly overcomplicated) DataTable with a
NavigatorLabel is a better solution than the onAjaxUpdate()
The overview of my goal is to replace 1 2 3 4 with prev next. I
can't see how it can be done through subclassing, so I'm rolling my own
Panel, similar to PagingNavigator (but with a new template).
I'm trying to get AJAX pagination working, and I have--without custom stuff.
If I use
INFO:
INFO: Initiating Ajax GET request on
/app?wicket:interface=:1:topDogsBlock:pager:next::IBehaviorListenerwicket:behaviorId=0random=0.28339447129400336
INFO: Invoking pre-call handler(s)...
ERROR: Received Ajax response with code: 500
INFO: Invoking post-call handler(s)...
INFO: Invoking
unless there is some kind of class-level registration or
reflection (including the package) going on?
I'm boggled.
Matej Knopp-2 wrote:
That is an internal error. Which means that you got an exception. We
need to see the exception (from your server logs).
-Matej
On 5/15/07, Tremelune
Running direct with the source code, it throws an Exception in
AjaxPagingNavigationBehavior:
protected void onEvent(AjaxRequestTarget target)
{
// handle the event
owner.onClick(target);
// find the PagingNavigator parent of this link
So I have to register my AJAX stuff with a particular behavior? That is what
I suspected, but I'm having trouble figuring out where/how that takes place.
The examples don't bother with this since they're using the default classes.
Something googlable besides wicket ajax behavior would point me in
34 matches
Mail list logo