> you've got to admit it's a short distance between bloody fist fights in
> a
> basement for no purpose whatsoever and using struts.
Hm, it seems the slogan "Struts 2: Not As Bad As Struts 1" did not catch on.
- Tor Iver
-
To u
> public RequestCycle newRequestCycle(Request request, Response response)
> {
> ServletWebRequest servletWebRequest = (ServletWebRequest) request;
> HttpServletRequest hreq =
> servletWebRequest.getHttpServletRequest();
> ServletContext context = hreq.getSession().getServletContext();
>
> about "unversioned", i have just done a quick test on wicket-examples >
> helloworld, adding serialVersionUID (not informed in the examples) and
> the
> result is the same: pagestore file increasing to the "infinite" (max
> size of
> course :)
I meant Wicket's
setVersioned(false);
the serialVe
> hmmm... but we are talking about something very basic: the home page!
Have you set it unversioned? How about trying to make it stateless?
- Tor Iver
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional
> java.lang.IllegalArgumentException: Payload has not the right class at
> org.apache.jetspeed.events.EventCoordinationServiceImpl.createEvent(Eve
> ntCoordinationServiceImpl.java:98)
This is the portlet container complaining about:
> ReportType report = new ReportType();
>
> I am having a problem finding a resource or an example for portlets
> communications with events "processEvent(EventRequest request,
> EventResponse response)"
> how do I dispatch and event from wicket page? for example if I have a
> ViewPage and I need to send an event to a subscribed portlet ,
> I would like to have two access denied pages according to some
> parameters.
> Is this possible?
In your implementation of IUnauthorizedComponentInstantiationListener check for
the parameters (e.g. placed into the request or the like) and set a different
responsepage or redirect to a different
For Servlet 2.4/2.5 I have found (depending on container) that you need to add
the dispatchers involved, like so:
>
> wicket.report
> /report/*
REQUEST
INCLUDE
FORWARD
ERROR
>
- Tor Iver
--
> What I find unclear, is the way it functions. It extends a wicker
> portlet, but the application is ran from WebApplication instance that
> mounts EditPage, HeaderPage, and doesn't seem to have any direct link
> to the WicketPortlet.
The link is via the filter mapping and page mounting. Case in
> I'm doing that. I'm doing what the link referenced earlier in this
> thread
> said to do.
Wicket Ajax cannot update anything that isn't in the DOM. You need a
placeholder element for what you want to render in the Ajax, e.g.
add(new
WebMarkupContainer("panel2").setVisible(false).setOutputMark
> Ah looks like I may have found it:
> http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-
> stuff/attic/wicket-portlets/
probably put in the attic because Wicket has supported portlets "natively"
since 1.4-m3 or thereabouts.
- Tor Iver
--
> I guess the servlet container handles jsessionid transparently.
Yes, coming in (either cookie or in the URI) and setting the cookie; but it
does not normally add it to links in the output from your webapp, that is the
framework or developer's responsibility.
- Tor Iver
--
> jsessionid works
... but leads to lots of boilerplate where you need to rewrite all URLs
targeted at your app's code. I guess Wicket can do that for you, but still...
- Tor Iver
-
To unsubscribe, e-mail: users-unsubscr...@wic
> Problem adding an applet to wicket still remains the same.. can some 1
> help
1) Be aware that applets are not loaded from WEB-INF/classes, but it seems you
know this.
2) The class attribute value should not end in .class since that can make some
browsers try to load HelloWorld.class.class ins
> Consistency is one of wicket's strengths. My tiny vote for 1.4.4
>
> -- Tony
+1
I never interpreted wicket:enclosure (as documented) as allowing the child
attribute to reference a component anywhere else than inside the enclosure.
- Tor Iver
-
> But in Wicket 1.4.3 the validate() method is protected so it's not
> visible. By the way actually only hasError() method is public.
In your Form class you can just override it with public visibility when you
need it to be.
- Tor Iver
-
> It looks like JBoss portal support is incomplete... If I send you a
> minimalistic AJAX portlet which works in eXo, would you mind adapting
> it for
> JBoss (web.xml & portlet.xml) and try and see if it works? HTH!
We use Glassfish + Webspace/Liferay, but ended up using a mapping
> or a shorter
>
> Link foo = new Link
... or wait for JDK 1.7 where you can do
Link foo = new Link<>
Which is more useful in cases like
Map> fie = new HashMap<>();
- Tor Iver
> Yep, we need something to take those obj out from there.
Maybe a collection of weak references?
- Tor Iver
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache
> I have 2 drop-downs and a search button my page. When the page is
> loaded
> for the first time, the first option in both the drop-downs is "Choose
> Option". Now if I select some value and click Search, the page is
> rendered again and the Choose Option is gone forever. But I want it
> back. How
It seems joda-time used by DateLabel has an issue with Liferay's use of the
locale "nb_NO" (for Norwegian "bokmål" in Norwayas opposed to the more common
"no_NO", where it seems to default to U.S. locale and UTC instead of native
(CET+DST here) - i.e. it seems to use both components to decide ti
> Why there are no SVN tags anymore ?
> svn ls http://svn.apache.org/repos/asf/wicket/tags/ does not have tags
> for
> 1.4.1 and 1.4.2
Wicket's not fond of such conventions it seems :) - use
http://svn.apache.org/repos/asf/wicket/releases/ instead.
- Tor Iver
-
I have an AutoCompleteTextField with a POJO model; I override getConverter() to
return a converter that looks up the field value in the same list that
getChoices() uses for filtering. Which works fine if you actually put something
into the field that matches.
However, if you type a non-mathing
> Are people still making fun of your huge nokia? ;-)
... or the "side-talking" 1st gen nGage :P (parodied a lot here:
http://www.sidetalkin.com/photos.html )
On a more serious note, Wicket apps should run well in the iPhone's Safari
browser, but if you want to support small devices in general
> Is there any way of making a nav bar like this:
>
>
> Browse |
> Search
>
>
> Stateful, i.e. only one instance of each page is created. So if you
> were
> on the home page and clicked the 'Search' link, then clicked the
> 'Browse' link, the state of all your components would be re
> WicketMessage: The component(s) below failed to render. A common
> problem is that you have added a component in code but forgot to
> reference it in the markup (thus the component will never be rendered).
This indicates to me you are not using in the parent's markup
and/or not using ... in th
> target.prependJavascript("window.location.href=google.com");
>
> Is there a better way of doing this?
Doubtful; Ajax is primarily concerned with NOT replacing the whole page. If you
always replace the page use a "normal" link instead which lets you set a
RedirectRequestTarget for instance.
-
It seems that our developers frequently mistakenly forget to use "item.add()"
and end up writing "add()" in ListView sublasses and the like. This sounds like
a job for FindBugs, do anyone know of any existing FindBugs plugin that deals
with common mistakes in Wicket code?
Med vennlig hilsen
TO
> What was wrong with implementing
> IAuthorizationStrategy.isActionAuthorized() and adding
> getSecuritySettings().setAuthorizationStrategy(new
> YourParticularImplementation()); in your Application.init()? The action
> to test for is Component.RENDER.
Ah, perhaps the other method is more to your
> I implemented the desired solution by duplicating the complete
> org.apache.wicket.authentication.AuthenticatedWebApplication class in
> our
> source tree,
What was wrong with implementing IAuthorizationStrategy.isActionAuthorized()
and adding getSecuritySettings().setAuthorizationStrategy(new
> It is like I need another selection mechanism for resource file which
> is not
> the locale but something that is specific to the logic of my
> application.
Look at "styles", i.e. Session.setStyle(String) and the documentation there for
resource lookup. Basically the style "tag" goes before the
> But it will be the portlet class the responsible for handling
> processing. So the only way to pass information from the onClick
> function to the
> portlet application for rendering (for example) is using the portlet
> session.
But why would you want to go via the Application? The WicketPortlet
> how to redirect to external url say www.google.com in case
> runtimeexception
> occurs
You need to "drill down" to the HttpServletResponse and call sendRedirect().
- Tor Iver
-
To unsubscribe, e-mail: users-unsubscr...@wicket.
> Is there a reason AjaxFormValidatingBehavior does not call
> setOutputMarkupId(true)? Seems like it would be something it might do
> while visiting the form children.
As I understand it, that would be too late; You need the output to happen in
the first render of the form so that the Ajax behav
> it will place one bye one
> but i need next to next.column wise
Well, either use a Table with three columns to represent the panels or use div
with CSS float: etc. in the page template.
- Tor Iver
-
To unsubscribe, e-mail: us
> I have created panel.now i want to show that panel with diffrent width
> and
> height in another page(3 panels).
Will be replaced with contents of wicket:panel element
Or betters, use classes in nested elements that you specify outside of the
templates.
- Tor Iver
> http://localhost:8080/web/?wicket:interface=:3:logout::ILinkListener::
>
> I don't see the need to expose implementation details (i.e. ?wicket in
> the
> URL) at this point. Therefore, does it make more sense that the
> LogoutPage
> (the response page) itself performs the logout action? The lin
> To address this, I wrote some code that gets the component tree, and
> either returns a List, or a string with the components' id's and
> classes. It can be found at http://gist.github.com/144041.
>
> Is this useful to anyone? Is there a better way for me to view the
> component tree at runtime
> How do I redirect to a mailto: url? This doesn't seem to work:
Mailto is a browser-managed protocol that does not use http; and the
Ajax response does not go to the browser but is analyzed by the Ajax
implementation.
Perhaps adding custom Javascript in the requestTarget to do a
window.open() o
> Does anyone know of a simple way to have more than one option
> with a null value in a DropDownChoice?
Well, how would you disambiguate between them? Null usually means
"unset" in the context of DDC, but here you have semantic meanings to
the choices, so they should be "real" objects.
A better
>
Put some wicket:id on that, then add a WebComponent for it that you add
an AttributeModifier to, which sets the "value" attribute.
> When I try to do the obvious, replace the {{URL_HERE}} part
> with it complains
> about non-valid XML and such.
There are basically two groups
I made a FeedbackPanel to apply the Portlet 2.0 CSS classes to relevant
messages. In my naïvetè I assumed I could just override
getCSSClass(FeedbackMessage), but that is called both to set a style on the
item AND on the contained element. Is there any reason for this,
especially since the HTM
> 2 - A constructor is for constructing - your object should
> not be in an incomplete state when the constructor is
> finished (such a state that methods such as isVisible can not
> be called)
Tha language ensures that the object is "complete" when the constructor
exits, but with the exception
> I just figured out that the deal is that SWFObject doesn't
> like to be set visible false on page load then visible true via Ajax.
>
> Any thoughts on how to get around this?
Ajax in Wicket needs the page DOM to have an element with the id it is
supposed to replace with the output of a (now vi
> Is there a way to use urlFor() or the like to create links
> that updates the breadcrumb model with our BreadCrumbPanel
> subclass for the linked id, i.e.
> IBreadCrumbModel.setActive(new ArticlePanel(...))?
*crickets*
Anyway, I finally found the likely answer in the form of an extended
Page
We have an issue where we are using a CMS that provides an API for
getting article components in a peculiar way: Links are sent over as a
raw HTML "element" followed by a "link element" followed by the rest of
the HTML. So a link like http://foo/fie";> is sent as
1. HTML: http://foo/fie
3. HTML: "
> Jonathan, can you elaborate? Why do you think jersey is
> better? Have you any experience of integrating it with wicket?
We use Jersey for REST here, mostly because it is Sun's reference
implementation of JAX-RS (and thus will most likely be updated fastest).
As for the options:
* Restlet: Imp
> There is no sane reason why anyone would put the html, js,
> css and properties resources in any place except *next* to
> the corresponding.java file. Your .java file can not function
> without the .html file. Your component will fail if the
> .properties file is not available. When the js fi
> It's a *wicket* archetype that uses Maven as a build tool.
But if it *breaks* the assumptions made by all other plugins used by
Maven as a build tool, is it then not an archetype that *abuses* Maven
as a build tool? :)
What other contexts would you want to use this *wicket* archetype that
does
> WicketMessage: Exception 'java.lang.ClassCastException:
> java.lang.Integer' occurred during validation
> org.apache.wicket.validation.validator.RangeValidator on component
> 2:body:recvAnalisysForm:intField Root
> cause:java.lang.ClassCastException: java.lang.Integer at
> java.lang.Stri
> (using Netbeans, wicket 1.4rc2, glassfish v3,
> portlet-container from open-portal project)
I thought the portlet-container in effect was dead since the Sun Portal
is dead? They have ditched that in favor of a solution based on Liferay
5.2 called Web Space (codename WebSynergy during developmen
> I have a panel that is on a page and the panel needs to be
> able to reference another panel on the same page.
In the code, you can either keep instance variables pointing to the two
panels in the page source (since they are on the same page they are in
the same Page) and go via those in the ac
Med vennlig hilsen
TOR IVER WILHELMSEN
Senior systemutvikler
Arrive AS
T (+47) 48 16 06 18
E-post: toriv...@arrive.no
http://servicedesk.arrive.no
> * As far as I understand, all steps are constructed at the
> same time. How, then, can I make the content of step B dynamic?
No it's rendered
> My question is how to ask the cart section to updates its
> state (and redraw it) from a child page?
Just add the superclass element to the AjaxRequetTarget parameter. This
means either holding a reference to it (e.g. a protected instance field)
or better, use get("path:to:cart") to get at it.
> The only problem right now is the cast to Component[]. The
> fix is easy, just change it to Object[]. The optimization
> makes a lot of sense and there is reason why it can't really
> be simple.
The simplest explanation is that the (synthetic) array "classes" both
extend Object but are not in
> Ok.. that didn't stop the client from submitting the form of
> the previous page again.
> Any other solutions to preventing double submissions?
Tell people to use a less stupid browser than IE? (Which is the one with
that behavior if memory serves)? :)
Real solution: Use a "hidden" token that
> that XMLHttpRequest.open(...) are disallowed if they target
> for another domain, than the one the document is in?
> Like disallowing cross-site calls?
Yes, to avoid cross-site scripting attacks; remember Javascript has
globally accessible objects so if cross-site scripting was allowed then
an
Override init() and add
mountBookmarkablePage("/stats", StatisticPage.class);
- Tor Iver
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I got this error during tests when trying to build latest source from
trunk:
junit.framework.AssertionFailedError: expected:<304> but was:<200>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.
> Try:
> Link lk = new ExternalLink("lk", "http://...";) {
> @Override
> protected void onComponentTag(ComponentTag tag) {
> super.onComponentTag(tag);
> tag.put("target", "_blank");
> }
> };
A bit overkill: You might inst
> - when loading the page from the browser, the URL is returned
> including the page parameters;
Yes, that would be a GET-method request.
> - when updating through AJAX, the URL is returned without the
> page parameters.
AAJAX requests are often POST-method. In POST requests the parameters
are
Brill Pappin [EMAIL PROTECTED] wrote:
> I'd say that WIcket *is a product*, and as such the consumers
> of that product have the final say.
Not any more than you can e.g. go to Ford Motor Co. and demand they make
this and that modification to the design of the Mustang, for instance.
Like most con
> When I, on the fly, change the language to something else
> (de_CH), the Locale in my application is not changed.
Looking at Wicket 1.3 and 1.4 sources, the locale is picked up in the
Session constructor, so presumably you need to nuke the Wicket session
or let it expire before trying a new loc
Got it to work after building portlet-bridges-common from the trunk
source.
- The change I made to PortletWindowUtils which seems to work (so far
*crosses fingers*):
public static String getPortletWindowId(PortletSession session)
{
final Object tmp = session.getAttribute(PORTLET_WIN
Thijs Vonk wrote:
> Ate Douma wrote:
Thanks to both of you!
> Note though that you have to build a svn copy of the
> portlet-container.
> RC2 contains a bug I found which prevents Ajax to work correctly.
Will try that.
-
To u
To dig up this old thread:
I now use Ate Douma's patch for JSR-286 support from
https://issues.apache.org/jira/browse/WICKET-1620 which has removed the
need for the portal to implement the Apache portlet bridge's two
interfaces. A small step for man etc. :)
There now is an issue - the same I had
> Take on account that in Ajax, the browser does not make a normal HTTP
request, but an
> XmlHttpRequest from Javascript, and then expects an XML fragment as a
response (a piece of DOM tree
> as far as I know). I cannot imagine how could you transmit an image
via Ajax, but if it is
> possible, pl
> For b) I hope to get started on that ASAP.
Excellent news! :)
(Since this is so significant for us I might have a go at adding the
support later this week if I can wrap my head around the source and API
docs... testing for the presence of the Portlet 2.0 API as you mentioned
is probably the be
We have (wisely :) ) chosen Wicket as web framework, but also chosen Sun
Portal as the portal engine (not just Pluto but the commercial product).
This causes a problem since Sun apparently haven't implemented the two
interfaces required by Apache's bridge, so Wicket 1.3.x portlets do not
work since
> is there an API in wicket to know if a Validator instance has been
added to a form?
Two solutions:
1) Call iterator() and test with instanceof IValidator on each element
until you get true. This will only find validators on the form and not
on the subcomponents...
2) Make a Component.IVisitor
201 - 270 of 270 matches
Mail list logo