Re: [ANNOUNCE] Wicket jQuery UI 6.14.0 is released

2014-02-25 Thread Farrukh SATTOROV
nice news for me, thanks! )


On Wed, Feb 26, 2014 at 6:52 AM, Scott Cleland wrote:

> Thank you so much. I depend on your wonderful library all the time.
>  On Feb 23, 2014 8:04 AM, "Sebastien"  wrote:
>
> > Dear all,
> >
> > Wicket jQuery UI 6.14.0 based on Apache Wicket 6.14.0 is released and
> will
> > be shortly available in Maven Central.
> >
> > The changelog is available at the wiki page:
> >
> >
> https://github.com/sebfz1/wicket-jquery-ui/wiki/%5Bchangelog%5D-wicket-jquery-ui-6.14.0
> >
> > Maven dependency
> >
> > 
> > com.googlecode.wicket-jquery-ui
> > wicket-jquery-ui
> > 6.14.0
> > 
> >
> > Non Maven users can download the jars manually from here
> > http://central.maven.org/maven2/com/googlecode/wicket-jquery-ui/
> >
> > Enjoy!
> > Sebastien
> >
>



-- 
Regards, Farrukh


Re: [ANNOUNCE] Wicket jQuery UI 6.14.0 is released

2014-02-25 Thread Scott Cleland
Thank you so much. I depend on your wonderful library all the time.
 On Feb 23, 2014 8:04 AM, "Sebastien"  wrote:

> Dear all,
>
> Wicket jQuery UI 6.14.0 based on Apache Wicket 6.14.0 is released and will
> be shortly available in Maven Central.
>
> The changelog is available at the wiki page:
>
> https://github.com/sebfz1/wicket-jquery-ui/wiki/%5Bchangelog%5D-wicket-jquery-ui-6.14.0
>
> Maven dependency
>
> 
> com.googlecode.wicket-jquery-ui
> wicket-jquery-ui
> 6.14.0
> 
>
> Non Maven users can download the jars manually from here
> http://central.maven.org/maven2/com/googlecode/wicket-jquery-ui/
>
> Enjoy!
> Sebastien
>


Detecting if page is opened in another tab

2014-02-25 Thread eaglei22
Hello, I am running a thread that displays a list of results to the page. I
want the user to be able to open the page only in one browser tab. If they
open it in another tab then it will give an information message and not let
them. I have a worker thread running, so I only want the list being
displayed in one tab, and not updating multiple instance of the same page
throughout the session. I was able to do this setting a flag in the session,
but then there comes the issues if the user totally exits out of all pages
and then reopens the application and goes to the page. Then the user is
locked out of the page entirely. 

I tried browsing the pageMap and it seems the page still exists in the
pageMap even if the user closes all tabs of the application. So that idea
didn't work.. I was able to check this because I would open an instance of
the page and check the pageMap to see if it already exists in there
somewhere. Then I closed any tabs with the application opened in it, and
then opened the page in a new tab. The page still existed in the pageMap.

What is the best way to iterate through and check if there is another active
instance of a page attached to the application (beyond just sitting in the
pageMap and not currently active) I need to do this since there doesn't seem
a way to check if the page was closed. I tried using detach(), but I have an
AjaxSelfUpdatingTimer, and this calls detach() numerous times.. so that
wouldn't work either. 


Thanks!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Detecting-if-page-is-opened-in-another-tab-tp4664674.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: Radiobutton with one choice that has Textfield

2014-02-25 Thread Sven Meier

public BookExternalPanel(String id, final IModel model) {
   super(id, model);
   setOutputMarkupId(true);

   otherTextField = new TextField("other", new 
PropertyModel(model,

  "package.other") {
 protected void onConfigure() {
setVisible(BOOK_SORTING_OTHER.equals(model.getObject().getPackage().getSort()));
 }
   };
   add(otherTextField);

   bookSort = new RadioChoice("sort", new 
PropertyModel(model, "package.sort"),

BOOK_SORTING_CHOICES);
   bookSort.add(new AjaxFormChoiceUpdatingBehavior() {
 protected void onUpdate(AjaxRequestTarget target) {
   target.add(BookExternalPanel.this);
 }
   });
   add(bookSort);
}

On 02/25/2014 04:43 PM, zelelbien wrote:

Hi Sven,

thanks for your fast answer! it helps surely!

I just didnt understood you exactly. The containing panel you mean the
RadioChoice "bookSort" or the TextField or the Panel i'm adding the whole
fields (in my case "BookExternalPanel") ? And how will it know that the new
TextField should be just for the radiochoice "other" ? my RadioChoices are
saved in the List BOOK_SORTING_CHOICES as you can see in my first post.

Could you paste here the code?

Here is what i did till now, when trying to follow your instruction.. is it
right? im pretty sure it isnt! that's why im asking another time for the
code.. pretty confused!

bookSort.add(new AjaxFormChoiceComponentUpdatingBehavior() {


private static final long serialVersionUID = 
5740866285381867529L;

@Override
protected void onUpdate(AjaxRequestTarget target) {
target.add(new TextArea<>("sortOther", new 
PropertyModel(
packageModel, "bookSort")));

}
});

Thanks for your help!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Radiobutton-with-one-choice-that-has-Textfield-tp4664665p4664671.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: Radiobutton with one choice that has Textfield

2014-02-25 Thread zelelbien
Hi Sven,

thanks for your fast answer! it helps surely! 

I just didnt understood you exactly. The containing panel you mean the
RadioChoice "bookSort" or the TextField or the Panel i'm adding the whole
fields (in my case "BookExternalPanel") ? And how will it know that the new
TextField should be just for the radiochoice "other" ? my RadioChoices are
saved in the List BOOK_SORTING_CHOICES as you can see in my first post.

Could you paste here the code?  

Here is what i did till now, when trying to follow your instruction.. is it
right? im pretty sure it isnt! that's why im asking another time for the
code.. pretty confused! 

bookSort.add(new AjaxFormChoiceComponentUpdatingBehavior() {


private static final long serialVersionUID = 
5740866285381867529L;

@Override
protected void onUpdate(AjaxRequestTarget target) {
target.add(new TextArea<>("sortOther", new 
PropertyModel(
packageModel, "bookSort")));

}
});

Thanks for your help!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Radiobutton-with-one-choice-that-has-Textfield-tp4664665p4664671.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: Radiobutton with one choice that has Textfield

2014-02-25 Thread Sven Meier

Hi,

you just add an AjaxFormChoiceComponentUpdatingBehavior to the 
RadioChoice, in #onUpdate() you add the containing panel to the 
AjaxRequestTarget for update.
Your textField overrides #onConfigure() to set its visibility depending 
on the currently selected choice.


Hope this helps
Sven

On 02/25/2014 03:16 PM, zelelbien wrote:

Hi!

I'm trying to make a RadioChoice, with the last choice "other" which has a
TextField to specify that "other"..
I would like that the TextField will be just displayed in case the
"other"-choice is selected.

Is that possible? If yes, could someone help me with the code? Here is what
I have now.. (Without the TextField):

public BookExternalPanel(String id, IModel model) {
super(id, model);

 IModel bookModel = Model.of(model.getObject()
.getPackage());

bookSort = new RadioChoice("sort", new
PropertyModel(bookModel, "sort"), BOOK_SORTING_CHOICES);

add(packageMounting);

The "BOOK_SORTING_CHOICES" is just a String-List of predifined book sorts.


Here is the MarkUp:


Package Mounting
 

 
 


Thanks for your help!!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Radiobutton-with-one-choice-that-has-Textfield-tp4664665.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



Radiobutton with one choice that has Textfield

2014-02-25 Thread zelelbien
Hi!

I'm trying to make a RadioChoice, with the last choice "other" which has a
TextField to specify that "other".. 
I would like that the TextField will be just displayed in case the
"other"-choice is selected. 

Is that possible? If yes, could someone help me with the code? Here is what
I have now.. (Without the TextField): 

public BookExternalPanel(String id, IModel model) {
super(id, model);

IModel bookModel = Model.of(model.getObject()
.getPackage());

bookSort = new RadioChoice("sort", new
PropertyModel(bookModel, "sort"), BOOK_SORTING_CHOICES);

add(packageMounting);

The "BOOK_SORTING_CHOICES" is just a String-List of predifined book sorts. 


Here is the MarkUp:


Package Mounting
 
   
 



Thanks for your help!! 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Radiobutton-with-one-choice-that-has-Textfield-tp4664665.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: Fw: Generating Dynamic PDF using AjaxFallbackButton

2014-02-25 Thread Martin Grigorov
Yes, I already requested that.

Martin Grigorov
Wicket Training and Consulting


On Tue, Feb 25, 2014 at 2:58 PM, Richard W. Adams  wrote:

> Please blacklist this spammer.
>
> - Forwarded by Richard W. Adams/UPC on 02/25/2014 06:58 AM -
>
> From:   Abigail 
> To: users@wicket.apache.org
> Date:   02/24/2014 08:01 PM
> Subject:Re: Generating Dynamic PDF using AjaxFallbackButton
>
>
>
> HI there
> In modern enterprise's document management system, people often need to
> process and handle large volumes of multi-page PDF document files.
> Therefore, a professional  PDF document page processing
>  utility
> will bring much convenience for users to manipulate and manage those PDF
> files, especially when they are processing some PDF document files that
> have
> over 500+ pages.
>
> --
> View this message in context:
>
> http://apache-wicket.1842946.n4.nabble.com/Generating-Dynamic-PDF-using-AjaxFallbackButton-tp4272343p4664660.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
>
>
>
> **
>
> This email and any attachments may contain information that is
> confidential and/or privileged for the sole use of the intended recipient.
>  Any use, review, disclosure, copying, distribution or reliance by others,
> and any forwarding of this email or its contents, without the express
> permission of the sender is strictly prohibited by law.  If you are not the
> intended recipient, please contact the sender immediately, delete the
> e-mail and destroy all copies.
> **
>


Fw: Generating Dynamic PDF using AjaxFallbackButton

2014-02-25 Thread Richard W. Adams
Please blacklist this spammer.

- Forwarded by Richard W. Adams/UPC on 02/25/2014 06:58 AM -

From:   Abigail 
To: users@wicket.apache.org
Date:   02/24/2014 08:01 PM
Subject:Re: Generating Dynamic PDF using AjaxFallbackButton



HI there
In modern enterprise's document management system, people often need to
process and handle large volumes of multi-page PDF document files.
Therefore, a professional  PDF document page processing
 utility
will bring much convenience for users to manipulate and manage those PDF
files, especially when they are processing some PDF document files that 
have
over 500+ pages.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Generating-Dynamic-PDF-using-AjaxFallbackButton-tp4272343p4664660.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



**

This email and any attachments may contain information that is confidential 
and/or privileged for the sole use of the intended recipient.  Any use, review, 
disclosure, copying, distribution or reliance by others, and any forwarding of 
this email or its contents, without the express permission of the sender is 
strictly prohibited by law.  If you are not the intended recipient, please 
contact the sender immediately, delete the e-mail and destroy all copies.
**