Re: On Label/Div or some other component, how to use setMarkupId and dynamic id

2011-09-01 Thread Robert Dahlström
If all you need is to scrape for them just give them a specific class. 
No need to use custom attributes.


Regards
Robert

On 09/01/2011 10:38 PM, Brown, Berlin [GCG-PFS] wrote:

Well setMarkId is already there.
And I have seen it done before, I think with the render Header?

I think I got what I needed.

-Original Message-
From: jcgarciam [mailto:jcgarc...@gmail.com]
Sent: Thursday, September 01, 2011 4:34 PM
To: users@wicket.apache.org
Subject: Re: On Label/Div or some other component, how to use
setMarkupId and dynamic id

I meant "some specific custom attribute".

On Thu, Sep 1, 2011 at 5:33 PM, Juan Carlos Garcia
wrote:


Why not adding a behavior that output some specific custom tag using
the "onComponentTag" method? Will that work for you?



On Thu, Sep 1, 2011 at 4:54 PM, Brown, Berlin [GCG-PFS] [via Apache
Wicket]  wrote:


Strange but I may scrape the page and search for those particular
elements.  I want the prefix but I also want to keep uniqueness.



-Original Message-
From: Igor Vaynberg [mailto:[hidden
email]]

Sent: Thursday, September 01, 2011 2:19 PM
To: [hidden email]

Subject: Re: On Label/Div or some other component, how to use
setMarkupId and dynamic id

i guess the question would be: why?

-igor

On Thu, Sep 1, 2011 at 10:57 AM, Brown, Berlin [GCG-PFS]<[hidden
email]>
wrote:


Is there a way to prefix a component with using setMarkupid but
also have the dynamic id.

I want my end output to have:

With Code:

x = new WebMarkupContainer("myId")
x.setMarkupId("myId");





-
To unsubscribe, e-mail: [hidden
email]
For additional commands, e-mail: [hidden
email]




-
To unsubscribe, e-mail: [hidden
email]
For additional commands, e-mail: [hidden
email]



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

http://apache-wicket.1842946.n4.nabble.com/On-Label-Div-or-some-other
-component-how-to-use-setMarkupId-and-dynamic-id-tp3784344p3784600.ht
ml  To start a new topic under Apache Wicket, email
ml-node+1842946-398011874-65...@n4.nabble.com
To unsubscribe from Apache Wicket, click

here.







--

JC








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



1.5 equivalent of setRedirect(false); ?

2011-09-01 Thread bht
Hi,

In 1.4, in a page constructor, we can call setRedirect(false);

What is the equivalent of this in Wicket 1.5?

The purpose of it is to avoid the creation of a new request. I am
aware of the consequences of doing this in 1.4, and I am prepared for
them in 1.5, too.

Many thanks.

Bernard

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



UrlEncoder - question mark not encoded for parameter values

2011-09-01 Thread pasto
Hi,

while patching the original portlet support in Wicket 1.4 to Wicket 1.5, I
run into 2 problems:

1) Url returned by the RequestMapper does not seem to be properly rendered,
as it does not encode question mark character in the Url parameter value (I
haven't checked the w3c spec, but at least Liferay Portal seems to require
it to be encoded)

The reason is this definition in the UrlEncoder:
case QUERY :
// to allow direct passing of URL in query
dontNeedEncoding.set('/');
// to allow direct passing of URL in query
dontNeedEncoding.set('?');

Is it a bug or (according to the comment) a feature?

2) I could not find an easy way to make the markup ID unique across
applications (multiple applications per page). The original portlet support
adds a portlet identifier to the markup ID in the PortletRequestContext. Is
there a way to do it in Wicket 1.5? (I haven't checked, if it's possible,
but maybe a MarkupFilter?)

Thanks,
Peter.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/UrlEncoder-question-mark-not-encoded-for-parameter-values-tp3785027p3785027.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: Resource references vs serving resources through web server

2011-09-01 Thread Igor Vaynberg
some resources are shipped in jars, so unless you manually unpack the
jars there is no way apache can serve them. what you can have apache
do is cache them after they have been served once.

performance-wise there should be minimal overhead.

-igor


On Thu, Sep 1, 2011 at 2:03 PM, Alec Swan  wrote:
> Hello,
>
> I am wondering if there is a significant performance overhead of using
> resource references vs serving those resources through a web server,
> e.g. Apache, which is fronting the servlet container running Wicket
> app?
>
> What advantages do resource references have over just hard-coding
> resource paths?
>
> Thanks,
>
> Alec
>
> -
> 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



Resource references vs serving resources through web server

2011-09-01 Thread Alec Swan
Hello,

I am wondering if there is a significant performance overhead of using
resource references vs serving those resources through a web server,
e.g. Apache, which is fronting the servlet container running Wicket
app?

What advantages do resource references have over just hard-coding
resource paths?

Thanks,

Alec

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



RE: On Label/Div or some other component, how to use setMarkupId and dynamic id

2011-09-01 Thread Brown, Berlin [GCG-PFS]
Well setMarkId is already there.
And I have seen it done before, I think with the render Header?

I think I got what I needed. 

-Original Message-
From: jcgarciam [mailto:jcgarc...@gmail.com] 
Sent: Thursday, September 01, 2011 4:34 PM
To: users@wicket.apache.org
Subject: Re: On Label/Div or some other component, how to use
setMarkupId and dynamic id

I meant "some specific custom attribute".

On Thu, Sep 1, 2011 at 5:33 PM, Juan Carlos Garcia
wrote:

> Why not adding a behavior that output some specific custom tag using 
> the "onComponentTag" method? Will that work for you?
>
>
>
> On Thu, Sep 1, 2011 at 4:54 PM, Brown, Berlin [GCG-PFS] [via Apache 
> Wicket]  wrote:
>
>> Strange but I may scrape the page and search for those particular 
>> elements.  I want the prefix but I also want to keep uniqueness.
>>
>>
>>
>> -Original Message-
>> From: Igor Vaynberg [mailto:[hidden 
>> email]]
>>
>> Sent: Thursday, September 01, 2011 2:19 PM
>> To: [hidden email] 
>> 
>> Subject: Re: On Label/Div or some other component, how to use 
>> setMarkupId and dynamic id
>>
>> i guess the question would be: why?
>>
>> -igor
>>
>> On Thu, Sep 1, 2011 at 10:57 AM, Brown, Berlin [GCG-PFS] <[hidden 
>> email] >
>> wrote:
>>
>> > Is there a way to prefix a component with using setMarkupid but 
>> > also have the dynamic id.
>> >
>> > I want my end output to have:
>> >
>> > With Code:
>> >
>> > x = new WebMarkupContainer("myId")
>> > x.setMarkupId("myId");
>> >
>> > 
>> >
>>
>> -
>> To unsubscribe, e-mail: [hidden 
>> email]
>> For additional commands, e-mail: [hidden 
>> email]
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [hidden 
>> email]
>> For additional commands, e-mail: [hidden 
>> email]
>>
>>
>>
>> --
>>  If you reply to this email, your message will be added to the 
>> discussion
>> below:
>>
>> http://apache-wicket.1842946.n4.nabble.com/On-Label-Div-or-some-other
>> -component-how-to-use-setMarkupId-and-dynamic-id-tp3784344p3784600.ht
>> ml  To start a new topic under Apache Wicket, email
>> ml-node+1842946-398011874-65...@n4.nabble.com
>> To unsubscribe from Apache Wicket, click
here.
>>
>>
>
>
>
> --
>
> JC
>
>
>


-- 

JC


--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/On-Label-Div-or-some-other-co
mponent-how-to-use-setMarkupId-and-dynamic-id-tp3784344p3784704.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




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



Re: On Label/Div or some other component, how to use setMarkupId and dynamic id

2011-09-01 Thread jcgarciam
I meant "some specific custom attribute".

On Thu, Sep 1, 2011 at 5:33 PM, Juan Carlos Garcia wrote:

> Why not adding a behavior that output some specific custom tag using the
> "onComponentTag" method? Will that work for you?
>
>
>
> On Thu, Sep 1, 2011 at 4:54 PM, Brown, Berlin [GCG-PFS] [via Apache Wicket]
>  wrote:
>
>> Strange but I may scrape the page and search for those particular
>> elements.  I want the prefix but I also want to keep uniqueness.
>>
>>
>>
>> -Original Message-
>> From: Igor Vaynberg [mailto:[hidden 
>> email]]
>>
>> Sent: Thursday, September 01, 2011 2:19 PM
>> To: [hidden email] 
>> Subject: Re: On Label/Div or some other component, how to use
>> setMarkupId and dynamic id
>>
>> i guess the question would be: why?
>>
>> -igor
>>
>> On Thu, Sep 1, 2011 at 10:57 AM, Brown, Berlin [GCG-PFS]
>> <[hidden email] >
>> wrote:
>>
>> > Is there a way to prefix a component with using setMarkupid but also
>> > have the dynamic id.
>> >
>> > I want my end output to have:
>> >
>> > With Code:
>> >
>> > x = new WebMarkupContainer("myId")
>> > x.setMarkupId("myId");
>> >
>> > 
>> >
>>
>> -
>> To unsubscribe, e-mail: [hidden 
>> email]
>> For additional commands, e-mail: [hidden 
>> email]
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [hidden 
>> email]
>> For additional commands, e-mail: [hidden 
>> email]
>>
>>
>>
>> --
>>  If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://apache-wicket.1842946.n4.nabble.com/On-Label-Div-or-some-other-component-how-to-use-setMarkupId-and-dynamic-id-tp3784344p3784600.html
>>  To start a new topic under Apache Wicket, email
>> ml-node+1842946-398011874-65...@n4.nabble.com
>> To unsubscribe from Apache Wicket, click 
>> here.
>>
>>
>
>
>
> --
>
> JC
>
>
>


-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/On-Label-Div-or-some-other-component-how-to-use-setMarkupId-and-dynamic-id-tp3784344p3784704.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: On Label/Div or some other component, how to use setMarkupId and dynamic id

2011-09-01 Thread jcgarciam
Why not adding a behavior that output some specific custom tag using the
"onComponentTag" method? Will that work for you?



On Thu, Sep 1, 2011 at 4:54 PM, Brown, Berlin [GCG-PFS] [via Apache Wicket]
 wrote:

> Strange but I may scrape the page and search for those particular
> elements.  I want the prefix but I also want to keep uniqueness.
>
>
>
> -Original Message-
> From: Igor Vaynberg [mailto:[hidden 
> email]]
>
> Sent: Thursday, September 01, 2011 2:19 PM
> To: [hidden email] 
> Subject: Re: On Label/Div or some other component, how to use
> setMarkupId and dynamic id
>
> i guess the question would be: why?
>
> -igor
>
> On Thu, Sep 1, 2011 at 10:57 AM, Brown, Berlin [GCG-PFS]
> <[hidden email] >
> wrote:
>
> > Is there a way to prefix a component with using setMarkupid but also
> > have the dynamic id.
> >
> > I want my end output to have:
> >
> > With Code:
> >
> > x = new WebMarkupContainer("myId")
> > x.setMarkupId("myId");
> >
> > 
> >
>
> -
> To unsubscribe, e-mail: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>
>
>
>
> -
> To unsubscribe, e-mail: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/On-Label-Div-or-some-other-component-how-to-use-setMarkupId-and-dynamic-id-tp3784344p3784600.html
>  To start a new topic under Apache Wicket, email
> ml-node+1842946-398011874-65...@n4.nabble.com
> To unsubscribe from Apache Wicket, click 
> here.
>
>



-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/On-Label-Div-or-some-other-component-how-to-use-setMarkupId-and-dynamic-id-tp3784344p3784701.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: On Label/Div or some other component, how to use setMarkupId and dynamic id

2011-09-01 Thread Brown, Berlin [GCG-PFS]
Strange but I may scrape the page and search for those particular
elements.  I want the prefix but I also want to keep uniqueness.

 

-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Sent: Thursday, September 01, 2011 2:19 PM
To: users@wicket.apache.org
Subject: Re: On Label/Div or some other component, how to use
setMarkupId and dynamic id

i guess the question would be: why?

-igor

On Thu, Sep 1, 2011 at 10:57 AM, Brown, Berlin [GCG-PFS]
 wrote:
> Is there a way to prefix a component with using setMarkupid but also 
> have the dynamic id.
>
> I want my end output to have:
>
> With Code:
>
> x = new WebMarkupContainer("myId")
> x.setMarkupId("myId");
>
> 
>

-
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



Re: On Label/Div or some other component, how to use setMarkupId and dynamic id

2011-09-01 Thread Igor Vaynberg
i guess the question would be: why?

-igor

On Thu, Sep 1, 2011 at 10:57 AM, Brown, Berlin [GCG-PFS]
 wrote:
> Is there a way to prefix a component with using setMarkupid but also
> have the dynamic id.
>
> I want my end output to have:
>
> With Code:
>
> x = new WebMarkupContainer("myId")
> x.setMarkupId("myId");
>
> 
>

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



Re: On Label/Div or some other component, how to use setMarkupId and dynamic id

2011-09-01 Thread Martin Grigorov
the only way is with
org.apache.wicket.markup.ComponentTag.putInternal(String,
CharSequence) but as its javadoc and name say it is internal and may
change its behavior any time

On Thu, Sep 1, 2011 at 7:57 PM, Brown, Berlin [GCG-PFS]
 wrote:
> Is there a way to prefix a component with using setMarkupid but also
> have the dynamic id.
>
> I want my end output to have:
>
> With Code:
>
> x = new WebMarkupContainer("myId")
> x.setMarkupId("myId");
>
> 
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



On Label/Div or some other component, how to use setMarkupId and dynamic id

2011-09-01 Thread Brown, Berlin [GCG-PFS]
Is there a way to prefix a component with using setMarkupid but also
have the dynamic id.
 
I want my end output to have:
 
With Code:
 
x = new WebMarkupContainer("myId")
x.setMarkupId("myId");
 



Why is UTF-8 encoding lost on redirect

2011-09-01 Thread Per Newgro

Hi,

i have the following situation.

In browser i type my url (localhost:8080/param/Küche).
In page-parameters param is Küche (fine).
On Page there are two links

public MyPage(final PageParameters parameters) {
super(parameters);
StatelessForm form = new StatelessForm("form");
form.add(new StatelessLink("redirectlink") {

@Override
public void onClick() {
setResponsePage(MyPage.class, getPageParameters());
setRedirect(true);
}
});
form.add(new StatelessLink("simplelink") {

@Override
public void onClick() {
setResponsePage(MyPage.class, getPageParameters());
}
});
add(form);
}
}

Clicking on the simplelink provides Küche as parameter. But the url 
contains the listener interface

which i would like to remove.
Click chain on the redirectlink leads firstly to K%FCche then to K{a 
sign}che and at the end K.

What could that be?

I've created a quickstart for this 
https://issues.apache.org/jira/browse/WICKET-3981


Testing this with 1.5-RC7 had no problem. But i'm on 1.4.18 and have to 
stay there so long.


Maybe someone can give me a hint.
Thanks
Per

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



Re: Stateless Wicket and Ajax

2011-09-01 Thread Decebal Suiu
Hi

I have the same problem "unable to find component with path... " (a
DropDownChoice with StatelessAjaxFormComponentUpdatingBehavior("onchange")
on each item in a repeater ). It's now a solution without to modify wicket
sources (probably with the wicket 1.5 version)?

Thanks,
decebal

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Stateless-Wicket-and-Ajax-tp3348266p3783810.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: How to control the href rewrite in link tag

2011-09-01 Thread Jordi Deu-Pons
Ok,

 thanks Martin.

On Thu, Sep 1, 2011 at 1:01 PM, Martin Grigorov  wrote:
> Wicket has a special IMarkupFilter implementation that does that:
> org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler
> It is not possible to extend it or replace it but you can add your own
> one that will modify the urls even more.
> You'll have to set your own
> org.apache.wicket.settings.IMarkupSettings.setMarkupParserFactory(IMarkupParserFactory)
> which you look like the default but will append your filter to the
> created MarkupParser additionaly
>
> On Thu, Sep 1, 2011 at 12:30 PM, Jordi Deu-Pons  wrote:
>> Hi,
>>
>>  I want to control the href rewrite behaviour of the links in the head 
>> section.
>>
>> Now from this:
>> 
>>
>> Wicket rewrites to this:
>> 
>>
>> I would like to rewrite to do something like this:
>> 
>>
>> Is this possible?
>>
>> Thanks!
>>
>> --
>> a10! i fins aviat.
>> J:-Deu
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
a10! i fins aviat.
J:-Deu

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



Re: How to control the href rewrite in link tag

2011-09-01 Thread Martin Grigorov
Wicket has a special IMarkupFilter implementation that does that:
org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler
It is not possible to extend it or replace it but you can add your own
one that will modify the urls even more.
You'll have to set your own
org.apache.wicket.settings.IMarkupSettings.setMarkupParserFactory(IMarkupParserFactory)
which you look like the default but will append your filter to the
created MarkupParser additionaly

On Thu, Sep 1, 2011 at 12:30 PM, Jordi Deu-Pons  wrote:
> Hi,
>
>  I want to control the href rewrite behaviour of the links in the head 
> section.
>
> Now from this:
> 
>
> Wicket rewrites to this:
> 
>
> I would like to rewrite to do something like this:
> 
>
> Is this possible?
>
> Thanks!
>
> --
> a10! i fins aviat.
> J:-Deu
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



How to control the href rewrite in link tag

2011-09-01 Thread Jordi Deu-Pons
Hi,

 I want to control the href rewrite behaviour of the links in the head section.

Now from this:


Wicket rewrites to this:


I would like to rewrite to do something like this:


Is this possible?

Thanks!

--
a10! i fins aviat.
J:-Deu

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



RE: AW: drag and drop

2011-09-01 Thread Ramona
HI all!
I'm trying to use wicket with html5 for drag and drop multiple files but i
haven't found the way to communicate the javascript of html (the one that
representates drag & drop: ) with wicket in each upload.
Let's say that i have a page where i can drop files and for each file that a
drop i have to add a new component to the page (like a panel) that will show
information about the file that is being upload.
I have html code for the page (wich includes javascript for doing the drag &
drop) but in each drop that is detected in that javascript i have to start
uploading the file and adding the components as i said before.
My problem is that i don't know where exactly do this connection.
I can't use other libraries just wicket, hmtl5 .
I'm just looking for new ideas, i have being using list views for the upload
so that in each populate i can add it the panel but i stil don't know hoy to
connect things.
Thanks a lot!
Regards,
Ramona.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p3782634.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: Loading items in repeater the facebook/twiiter way

2011-09-01 Thread armandoxxx
thank you ! 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Loading-items-in-repeater-the-facebook-twiiter-way-tp3780809p3782935.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