HI,
On Thu, May 2, 2013 at 1:55 AM, Hemen wrote:
> I have an image that I access by using the following code:
>
> String fullUrl = (String) "/" + RequestCycle.get().mapUrlFor(new
> PackageResourceReference(Anchor.class, LOGO_NAME), pp).toString();
>
The code above creates context-absolute url.
Ignore my last email - I was being dumb!
"[wicket 6] Any shortcut to get full url ?" does have my answer...! Doh! Sorry!
:)
-Original Message-
From: Bertrand Guay-Paquet [mailto:ber...@step.polymtl.ca]
Sent: 02 May 2013 15:17
To: users@wicket.apache.org
Subject: Re: Page's Mounted URL
H
I did! But as I said - urlFor() only deals in relative paths.
So if I'm on page X and ask for the path of X I always get "./" which isn't
useful for determining anything! :)
(and using getUrl() of the request gives me the ajax URL for the link I just
requested - " ?2-3.ILinkListener-settings-my
Have a look at RequestUtils#toAbsolutePath().
Also, look at the email on this mailing list preceding yours titled
"[wicket 6] Any shortcut to get full url ?" :)
On 02/05/2013 1:06 AM, Colin Rogers wrote:
Wicketeers,
Where I have;
mountPage( "path/to/myPage", MyPersonalPage.class );
mountPag
Wicketeers,
Where I have;
mountPage( "path/to/myPage", MyPersonalPage.class );
mountPage( "different/path/customPage", AnotherCustomPage.class );
I now have a Page class (i.e. MyPersonalPage) - how can I determine the
mountPage String (i.e "path/to/myPage") ?
I'm sure this should be simple, bu
I'm using something like the following (in 6.7.0):
String url2 = RequestCycle.get().getUrlRenderer()
.renderFullUrl( Url.parse(urlFor(Page.class, newPps).toString()));
On Wednesday, May 1, 2013 at 9:26 PM, Bertrand Guay-Paquet wrote:
> Hi,
>
> On 01/05/2013 10:57 PM, smallufo wrote:
> > Stri
Hi,
On 01/05/2013 10:57 PM, smallufo wrote:
String url2 = RequestUtils.toAbsolutePath(urlFor(Page.class ,
newPps).toString() , "");
System.out.println("url2 = " + url2); // full in 1.4 , but relative in 6.0
The Javadoc says "Calculates absolute path to url relative to another
absolute url." so
Hi,
I believe Wicket uses a minified version of jQuery in deployment. Maybe
this causes problems with that library?
Otherwise, check all callers to Application#usesDevelopmentConfig() and
replace them one by one to the deployment value until you get the same
error.
On 01/05/2013 1:59 PM, s
Any thoughts on this please, what is different in wicket between deployment
and development mode that could have caused this problem.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/event-firing-issue-switching-from-development-to-deployment-mode-tp4658450p4658461.ht
I have an image that I access by using the following code:
String fullUrl = (String) "/" + RequestCycle.get().mapUrlFor(new
PackageResourceReference(Anchor.class, LOGO_NAME), pp).toString();
Logo path on my dev ==>
http://host-name/wicket/resource/package.Name.ClassName/logo.png
Resource Path on
https://code.google.com/p/reflections/wiki/JBossIntegration
On Wed, May 1, 2013 at 9:24 PM, David Beer wrote:
> Hi All
>
> I have a web project which uses Wicket-Bootstrap for styling and various
> other functions. Everything appears to run fine in Tomcat, but I am
> starting to add more Java E
I think I can drop my own class too since I found:
org.apache.wicket.extensions.ajax.markup.html.repeater.data.sort.AjaxFallbackOrderByBorder
I'll extend from that one and change the behavior I need :)
~ Thank you!
Paul Bors
-Original Message-
From: Martin Grigorov [mailto:mgrigo...@ap
Hi,
Just drop it. No need of it anymore.
On Wed, May 1, 2013 at 11:23 PM, Paul Bors wrote:
>
>
> I'm migrating from 5.x to 6.x and I have a few classes that make use of the
> older IAjaxCallDecorator and I was wondering what's a simple substitution
> for code like this:
>
>
>
> add(new AjaxEve
I'm migrating from 5.x to 6.x and I have a few classes that make use of the
older IAjaxCallDecorator and I was wondering what's a simple substitution
for code like this:
add(new AjaxEventBehavior("onclick") {
protected void onEvent(AjaxRequestTarget target) {
ISortState state = state
Create a QuickStart and share it with us.
~ Thank you,
Paul Bors
On Tue, Apr 30, 2013 at 7:17 AM, Merlijn wrote:
> Nope, added in the code. This is my code
>
> public QuickSearchFilterPanel(String id) {
> super(id);
> Form form = new Form("filterform");
>
> List> cla
See the examples for form input and the use of CheckGroup:
http://www.wicket-library.com/wicket-examples/forminput
If you want to "uncheck" or "check" one of your component, either insert or
remove from your collection the element you want checked or not.
~ Thank you,
Paul Bors
PS: If by now y
No one replie to you because this has nothing to do with Wicket.
You might want to get familiar with Java's File IO:
http://docs.oracle.com/javase/tutorial/essential/io/walk.html
Once you get to iterate over your folder you may choose to show that in
Wicket via a repeater or a data table etc.
For
Hi All
I have a web project which uses Wicket-Bootstrap for styling and various
other functions. Everything appears to run fine in Tomcat, but I am
starting to add more Java EE stuff and looking at using JBoss As 7. I
can deploy a normal wicket Quickstart with out errors but when I try and
de
I am using JQuery multi select by Eric Hynds in my current wicket application
in few places.
http://www.erichynds.com/examples/jquery-ui-multiselect-widget/demos/
This works great in a Wicket application (using ListMultipleChoice) in
wicket development mode, but when i change wicket mode to deplo
The link at the bottom of the given wiki page has:
To disable caching altogether (e.g. for performance comparisons) use
getResourceSettings().setCachingStrategy(NoOpResourceCachingStrategy.INSTANCE)
On 01/05/2013 1:05 PM, smallufo wrote:
Hi
thanks.
But it doesn't mention how to turn off the
Hi
thanks.
But it doesn't mention how to turn off the -ver-blah-blah-blah string.
I just want a general "xxx.png" , not
"xxx-ver-7E49549BCE322EACE0C8F26B4CD553C5.png"
2013/5/2 Martin Grigorov
> Hi,
>
> Check https://cwiki.apache.org/WICKET/caching-in-wicket-15.html
>
>
> On Wed, May 1, 2013 a
Hi,
Check https://cwiki.apache.org/WICKET/caching-in-wicket-15.html
On Wed, May 1, 2013 at 6:36 PM, smallufo wrote:
> I am upgrading from 1.4 to 6.7
> Is the random string appended used for anti-caching or object versioning ?
> I try to redeploy and the appended string is identical !?
>
> Now
how is this different than handling an exception that comes from say javax.mail?
-igor
On Wed, May 1, 2013 at 2:48 AM, Behrooz Nobakht wrote:
> Thanks for the reply.
>
> The purpose is that when it's determined that exception comes from Wicket,
> the error page (1) can reduce the cause chain (wh
I am upgrading from 1.4 to 6.7
Is the random string appended used for anti-caching or object versioning ?
I try to redeploy and the appended string is identical !?
Now I am stuck by how to get rid of image/resource versioning , and enable
caching ...
I use general Image ,
or override shouldAddAnti
Bertrand thanks for your quick reply.
I will call it from a page (incluedes form and fields). then returned value
fill a form text element. lastly user submit all values.
If I can not succeed by this method, I will do with your suggestion.
--
View this message in context:
http://apache-wick
On 01/05/2013 12:13 PM, Bertrand Guay-Paquet wrote:
In your app init code, mount your page like this:
mountPage("/activate/#{code}", BarcodePage.class);
Assuming you want to mount this under the "activate" path.
I just noticed your example uses the root app mount. I think you might
run into s
Hi,
Sure you can!
In BarcodePage, use the PageParameters to extract the code. If the code
is there, show its associated content.
StringValue codeValue = getPageParameters().get("code");
if (!codeValue.isEmpty())
...
In your app init code, mount your page like this:
mountPage("
Hi,
I want to integrate zxing application (barcode reader) to my web application
for android phones.
When user click an ajax button in a page,
the code will call zxing with a custom url (like:
"zxing://scan/?ret=http://mydomain.com/MyApp/{CODE}";),
then zxing can post or (get) to a generated url
Hello,
I'd like to localize the urls generated by my app like so:
/en/account/settings -> AccountSettingsPage, locale EN
/fr/compte/parametres -> AccountSettingsPage, locale FR
I already have urls prefixed with the locale base on the
LocaleFirstMapper from Wicket examples, but they are
Thanks for the reply.
The purpose is that when it's determined that exception comes from Wicket,
the error page (1) can reduce the cause chain (which can be independent of
Apache Wicket of course), and (2) based on this information provide the
user to report a bug or email the stack trace to a set
On Wed, May 1, 2013 at 1:23 AM, Behrooz Nobakht wrote:
> More clearly, the intention is to be able to distinguish exceptions from
> Apache Wicket and other frameworks and not really handle them.
for what purpose? an unhandled exception is an unhandled exception...
> For
> instance, there can be
More clearly, the intention is to be able to distinguish exceptions from
Apache Wicket and other frameworks and not really handle them. For
instance, there can be two exceptions: MarkupException and
CouldNotLockPageException. Both are in the context of Apache Wicket,
however, we actually need to "t
what is the purpose of knowing whether an exception is a wicket
exception or something from further down the stack?
eg how would you handle a runtime exception that came from within
java.lang.String differently then the one that came from Wicket or the
one that came from the servlet api?
-igor
O
Hello,
I've been working on an error page in Apache Wicket and came across a
general pattern in Apache Wicket and I'd like to understand the reason for
it.
Exceptions in Apache Wicket do not have a single class hierarchy; i.e.
there are exceptions that eventually extend "WicketRuntimeException" b
34 matches
Mail list logo