RE: getting AutoCompleteTextField to display values

2012-09-14 Thread Paul Bors
I would recommend using Select2 if you really want to show all the available
options and let the user filter through them.

See wicket-select2:
https://github.com/ivaynberg/wicket-select2

And also the live demos at:
http://ivaynberg.github.com/select2/

~ Thank you,
  Paul Bors

-Original Message-
From: Carter, Isaac [mailto:isaac.car...@mantech.com] 
Sent: Friday, September 14, 2012 2:34 PM
To: users@wicket.apache.org
Subject: getting AutoCompleteTextField to display values

Hi,

I'm currently using an AutoCompleteTextField for a couple of textfields on
my form.  It works well, but would like for the user to be able to see all
the values that are contained within that field.  Is there a way to be able
to present the user the values by default or do I just set up a value that
when typed in presents all the values the user could choose from?

-Isaac

This e-mail and any attachments are intended only for the use of the
addressee(s) named herein and may contain proprietary information. If you
are not the intended recipient of this e-mail or believe that you received
this email in error, please take immediate action to notify the sender of
the apparent error by reply e-mail; permanently delete the e-mail and any
attachments from your computer; and do not disseminate, distribute, use, or
copy this message and any attachments.

-
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: Using and creating URLs to Bookmarkable Pages without Wicket Application

2012-09-14 Thread Dirk Forchel
I'm already familiar with the usual way how to mount bookmarkable pages and
how to handle page parameters. That's not the point. I don't wanna create
the URLs manually, because Wicket does already have the knowledge about all
mounted pages. The URLs might be change in the future (different segments or
whatever) that's why I wanna use an interface and an implementation within
the wicket package to generate the URLs for me. At least if I have a
WebRequest I can already use Wicket to generate the URLs for me (e.g.
RequestCycle.get().urlFor(Class, PageParameters)). But what happens if I
don't have a WebRequest and a RequestCycle (like using jUnit to test Wicket
Components and/or Pages). I think I have to use something like a "mocked"
RequestCycle. Or do I miss something?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-and-creating-URLs-to-Bookmarkable-Pages-without-Wicket-Application-tp4652002p4652009.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



getting AutoCompleteTextField to display values

2012-09-14 Thread Carter, Isaac
Hi,

I'm currently using an AutoCompleteTextField for a couple of textfields on my 
form.  It works well, but would like for the user to be able to see all the 
values that are contained within that field.  Is there a way to be able to 
present the user the values by default or do I just set up a value that when 
typed in presents all the values the user could choose from?

-Isaac

This e-mail and any attachments are intended only for the use of the 
addressee(s) named herein and may contain proprietary information. If you are 
not the intended recipient of this e-mail or believe that you received this 
email in error, please take immediate action to notify the sender of the 
apparent error by reply e-mail; permanently delete the e-mail and any 
attachments from your computer; and do not disseminate, distribute, use, or 
copy this message and any attachments.

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



Re: Using and creating URLs to Bookmarkable Pages without Wicket Application

2012-09-14 Thread Fergal Keating
Im not clear if this is what your looking for, but it seems you just need
to set your application to be able to accept the URL format
http://wicket.website.com/ConfirmationPage/?user=foo&token=1234
and
then you can generate it maually in your emails.

In your MyApplication#init() you can mount a page to

   mountPage("/confirmationpage/", ConfirmationPage.class);



Then create your  ConfirmationPage to accept
parameters..something like

public class  ConfirmationPage{

public  ConfirmationPage (final PageParameters parameters) {

StringValue token= parameters.get("token");
StringValue user=   parameters.get("user");
 }

}


On 14 September 2012 12:46, Dirk Forchel  wrote:

> What is the prefered way in Wicket 1.5 to create page links to access a
> wicket page, e.g. using this link in an email. In my case, we need a link
> to
> a "subscription page" in a Wicket application. When a new user subscribes a
> confirmation email containing the link to this wicket page has to be sent.
> I know the usual way how to generate URLs with a wicket application (see
> https://cwiki.apache.org/WICKET/getting-a-url-for-display.html
> https://cwiki.apache.org/WICKET/getting-a-url-for-display.html ). But I
> want
> to create links like this
> "http://wicket.website.com/ConfirmationPage.html?user=foo&token=1234";
> outside a Wicket application and from another WebServlet.
>
> My intentation was to use an interface like IEmailUrlProvider with methods
> returning the required URL strings.
>
>
>
> And let Wicket do the generation part like:
>
>
> Is this the prefered way to do this with Wicket? Or do I miss something?
> Any
> other hints?
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Using-and-creating-URLs-to-Bookmarkable-Pages-without-Wicket-Application-tp4652002.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
>
>


-- 
Fergal Keating
IT Senior Engineer
---
e. fergal.keat...@directski.com
p. NA
w. www.directski.com


Re: Generating markup from Wicket

2012-09-14 Thread Sven Meier

Here's the sample code:







IModel strings = ...;
 
add(new ListView("strings", strings)) {

  protected void populateItem(ListItem item) {
item.add(new Label("string", item.getModel()));
  }
};

Not too much code for an always up-to-date rendered list with clean separation 
of markup and code.

Sven


On 09/14/2012 02:55 PM, jam.ntk wrote:

Thanks, I think i can achieve this simply by adding mark up tags in the
wicket code.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Generating-markup-from-Wicket-tp4652003p4652005.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: Generating markup from Wicket

2012-09-14 Thread jam.ntk
Thanks, I think i can achieve this simply by adding mark up tags in the
wicket code.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Generating-markup-from-Wicket-tp4652003p4652005.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: Generating markup from Wicket

2012-09-14 Thread vineet semwal
use a repeater

On Fri, Sep 14, 2012 at 5:34 PM, jam.ntk  wrote:
> Hi - I have data strings coming from database e.g. ABC, 123, DEF,456. Now I
> am creating a MultilineLabel to hold the string with new line characters to
> diplay on the page with line breaks. It is working fine but I want to
> display them as mark up list items as it would display with the following
> mark up. Can you please suggest how i can do this in Wicket code as my model
> is being created in wicket? Do I need to use WebMarkupContainer instead of
> MultiLineLabel?
>
> 
> ABC
> 123
> DEF
> 456
> 
>
> dbLabelText = ABC.append("\n").123..
> add(new MultiLineLabel("label", dbLabelText));
>
> Please give an example.
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Generating-markup-from-Wicket-tp4652003.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
>



-- 
regards,

Vineet Semwal

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



Generating markup from Wicket

2012-09-14 Thread jam.ntk
Hi - I have data strings coming from database e.g. ABC, 123, DEF,456. Now I
am creating a MultilineLabel to hold the string with new line characters to
diplay on the page with line breaks. It is working fine but I want to
display them as mark up list items as it would display with the following
mark up. Can you please suggest how i can do this in Wicket code as my model
is being created in wicket? Do I need to use WebMarkupContainer instead of
MultiLineLabel?


ABC
123
DEF
456


dbLabelText = ABC.append("\n").123..
add(new MultiLineLabel("label", dbLabelText));

Please give an example.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Generating-markup-from-Wicket-tp4652003.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 and creating URLs to Bookmarkable Pages without Wicket Application

2012-09-14 Thread Dirk Forchel
What is the prefered way in Wicket 1.5 to create page links to access a
wicket page, e.g. using this link in an email. In my case, we need a link to
a "subscription page" in a Wicket application. When a new user subscribes a
confirmation email containing the link to this wicket page has to be sent.
I know the usual way how to generate URLs with a wicket application (see 
https://cwiki.apache.org/WICKET/getting-a-url-for-display.html
https://cwiki.apache.org/WICKET/getting-a-url-for-display.html ). But I want
to create links like this
"http://wicket.website.com/ConfirmationPage.html?user=foo&token=1234";
outside a Wicket application and from another WebServlet.

My intentation was to use an interface like IEmailUrlProvider with methods
returning the required URL strings.



And let Wicket do the generation part like:


Is this the prefered way to do this with Wicket? Or do I miss something? Any
other hints?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-and-creating-URLs-to-Bookmarkable-Pages-without-Wicket-Application-tp4652002.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



Announce: Wicket and Dojo integration for Wicket 6.0.0

2012-09-14 Thread Gonzalo Aguilar Delgado
Hello, 

I'm doing some work integrating Wicket and Dojo. I've just taken the
well done wiquery library and
tried to go that way. But I'm diverging to optimize the library for Dojo
great toolkit. 

Maybe you want take a look. There's not much done, but the core. 

Hope it's the place to announce.

Here we have some examples, not really much as I said:

http://wicket-dojo.level2crm.com/wicket-dojo-examples-1.6.0/

I will try to setup a blog at my page:

http://www.level2crm.com/wicket-dojo

And the code is here:


https://gitorious.org/wicket-dojo

Right now, converting a button to a Dojox Busy button is as easy as:


Button ajaxButton = new Button("ajax-button");

DojoxBusyButtonBehavior dojoBehavior = new 
DojoxBusyButtonBehavior();
dojoBehavior.setBusyLabel("Loading...");
button.add(dojoBehavior);

That's it. 

There are missing lots of widgets but they are usually easy to
implement.

1.- Set the annotation with the Dojo class.
2.- Extend abstract method
3.- Add requirements to the header. 

Library will take care of the rest!

@IDojoUIPlugin("dojox/form/BusyButton")
public class DojoxBusyButtonBehavior extends AbstractDijitButtonBehavior
{
...
@Override
public void renderHead(Component component, IHeaderResponse response) {
super.renderHead(component, response);
response.render(CssHeaderItem.forReference(new
DojoxCDNResourceReference("form/resources/BusyButton.css")));
}

...
}


Re: what license is WicketStuff DataTables ?

2012-09-14 Thread Martin Grigorov
I think it is ASF v2 but let's ask its contributor - Bruno.

On Fri, Sep 14, 2012 at 10:33 AM, seba.wag...@gmail.com
 wrote:
> I was wondering what license:
>
> https://github.com/wicketstuff/core/wiki/DataTables
>
> is. I could not find any information on the licenses of that product
> and if it is compatible with Wicket 6.0.0.
>
> Does anybody know something about that?
>
> Thanks!
> Sebastian
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>
> -
> 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



what license is WicketStuff DataTables ?

2012-09-14 Thread seba.wag...@gmail.com
I was wondering what license:

https://github.com/wicketstuff/core/wiki/DataTables

is. I could not find any information on the licenses of that product
and if it is compatible with Wicket 6.0.0.

Does anybody know something about that?

Thanks!
Sebastian

-- 
Sebastian Wagner
https://twitter.com/#!/dead_lock
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wag...@gmail.com

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