Re: Processing large data while allowing request to return

2016-05-27 Thread Jered Myers
I discovered that deeper in my code there was a synchonization problem where 
both the large process and the main process were fighting over the same 
resource. This is why the two processes seemed to be splitting time. Removing 
the synchronization problem allowed both processes to run in parallel and the 
main process to finish on time. I am still curious if there is a way to allow 
the request cycle to finish before starting the large process. I messed around 
with thread priorities, but is didn’t seem to matter.

On 2016-05-27 16:39, Jered Myers <j...@maplewoodsoftware.com> wrote: 
> More details:> 
> When I run my large process in a thread, the thread that is rendering the 
> next page, and the large process, are getting generally equal slices of 
> processing time and end at about the same time. The page I am navigating too 
> also has heavy work to do in order to spin up data I need.> 
> 
> On 2016-05-27 12:51, Jered Myers <j@maplewoodsoftware.com> wrote: > 
> > I have a large background process that I need to execute when a user 
> > submits a form. The background process can run while the user continues to 
> > use the application. I am having trouble allowing the user to continue 
> > working. How do I run this background process and allow the form submit to 
> > finish and let the user move on. I have tried using Threads and Futures. 
> > Here is example of a login page type of submit:> > 
> > > 
> > protected void onSubmit() > > 
> > {> > 
> > if (!authenticateUser(user)) > > 
> > {> > 
> > error(%u201CInvalid username or password%u201D);> > 
> > return;> > 
> > }> > 
> > > > 
> > if (user.requiresLargeProcess()) > > 
> > {> > 
> > Thread largeProcess = new Thread(new LargeProcessRunnable());> > 
> > largeProcess.start();> > 
> > }> > 
> > > 
> > continueToOriginalDestination();> > 
> > setResponsePage(Application.get().getHomePage());> > 
> > }> > 
> > > 
> > This example is simplified for clarity. In reality, the process is in a 
> > class that does not have access to Wicket code. This means I cannot do 
> > tricks like use an AbstractDefaultAjaxBehavior to make the call later. Can 
> > somebody please point me in the right direction? I think I am needing to 
> > spawn a thread that runs outside of the Wicket RequestCycle, but I am not 
> > sure that is the correct terminology.> > 
> > > 
> > Thanks for any help,> > 
> > Jered>  > 
> 
> 
> 
> -> 
> 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: Processing large data while allowing request to return

2016-05-27 Thread Jered Myers
More details:
When I run my large process in a thread, the thread that is rendering the next 
page, and the large process, are getting generally equal slices of processing 
time and end at about the same time. The page I am navigating too also has 
heavy work to do in order to spin up data I need.

On 2016-05-27 12:51, Jered Myers <j...@maplewoodsoftware.com> wrote: 
> I have a large background process that I need to execute when a user submits 
> a form. The background process can run while the user continues to use the 
> application. I am having trouble allowing the user to continue working. How 
> do I run this background process and allow the form submit to finish and let 
> the user move on. I have tried using Threads and Futures. Here is example of 
> a login page type of submit:> 
> 
> protected void onSubmit() > 
> {> 
> if (!authenticateUser(user)) > 
> {> 
>   error(%u201CInvalid username or password%u201D);> 
>   return;> 
> }> 
> > 
> if (user.requiresLargeProcess()) > 
> {> 
>   Thread largeProcess = new Thread(new LargeProcessRunnable());> 
>   largeProcess.start();> 
> }> 
> 
>   continueToOriginalDestination();> 
> setResponsePage(Application.get().getHomePage());> 
> }> 
> 
> This example is simplified for clarity. In reality, the process is in a class 
> that does not have access to Wicket code. This means I cannot do tricks like 
> use an AbstractDefaultAjaxBehavior to make the call later. Can somebody 
> please point me in the right direction? I think I am needing to spawn a 
> thread that runs outside of the Wicket RequestCycle, but I am not sure that 
> is the correct terminology.> 
> 
> Thanks for any help,> 
> Jered>  



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



Processing large data while allowing request to return

2016-05-27 Thread Jered Myers
I have a large background process that I need to execute when a user submits a 
form. The background process can run while the user continues to use the 
application. I am having trouble allowing the user to continue working. How do 
I run this background process and allow the form submit to finish and let the 
user move on. I have tried using Threads and Futures. Here is example of a 
login page type of submit:

protected void onSubmit() 
{
if (!authenticateUser(user)) 
{
error(“Invalid username or password”);
return;
}

if (user.requiresLargeProcess()) 
{
Thread largeProcess = new Thread(new LargeProcessRunnable());
largeProcess.start();
}

continueToOriginalDestination();
setResponsePage(Application.get().getHomePage());
}

This example is simplified for clarity. In reality, the process is in a class 
that does not have access to Wicket code. This means I cannot do tricks like 
use an AbstractDefaultAjaxBehavior to make the call later. Can somebody please 
point me in the right direction? I think I am needing to spawn a thread that 
runs outside of the Wicket RequestCycle, but I am not sure that is the correct 
terminology.

Thanks for any help,
Jered

Re: Wicket 6.22.0

2016-03-01 Thread Jered Myers
I made the pull request. I noticed the link to the change log lists Wicket 7 
(top of the page here 
http://archive.apache.org/dist/wicket/6.22.0/CHANGELOG-6.x 
<http://archive.apache.org/dist/wicket/6.22.0/CHANGELOG-6.x>). I wasn’t sure 
where fix it.

Cheers,
Jered

> On Mar 1, 2016, at 1:52 PM, Sven Meier <s...@meiers.net> wrote:
> 
> Yes, please do.
> 
> Sven
> 
> On 01.03.2016 22:28, Jered Myers wrote:
>> Okay great. Should I pull request for https://github.com/apache/wicket-site? 
>> <https://github.com/apache/wicket-site?> 
>> <https://github.com/apache/wicket-site? 
>> <https://github.com/apache/wicket-site?>> I can update the _config.yml file 
>> with the new version.
>> 
>>> On Mar 1, 2016, at 10:44 AM, Sven Meier <s...@meiers.net> wrote:
>>> 
>>> Hi Jared,
>>> 
>>> yes it is:
>>> 
>>> http://mail-archives.us.apache.org/mod_mbox/www-announce/201602.mbox/%3CCAB63Y-d-1wB+kP6aGAJOEoMO4y1woFQG=A=ubqdqnis+m+4...@mail.gmail.com%3E
>>> 
>>> Have fun
>>> Sven
>>> 
>>> 
>>> On 01.03.2016 19:19, Jered Myers wrote:
>>>> Is Wicket 6.22.0 out? I thought I saw email stating it was, but the 
>>>> website is still showing 6.21.0.
>>>> 
>>>> Jered
>>>> 
>>>> 
>>>> -
>>>> 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
>>> 
>> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
> <mailto:users-unsubscr...@wicket.apache.org>
> For additional commands, e-mail: users-h...@wicket.apache.org 
> <mailto:users-h...@wicket.apache.org>


Re: Wicket 6.22.0

2016-03-01 Thread Jered Myers
Okay great. Should I pull request for https://github.com/apache/wicket-site? 
<https://github.com/apache/wicket-site?> I can update the _config.yml file with 
the new version.

> On Mar 1, 2016, at 10:44 AM, Sven Meier <s...@meiers.net> wrote:
> 
> Hi Jared,
> 
> yes it is:
> 
> http://mail-archives.us.apache.org/mod_mbox/www-announce/201602.mbox/%3CCAB63Y-d-1wB+kP6aGAJOEoMO4y1woFQG=A=ubqdqnis+m+4...@mail.gmail.com%3E
> 
> Have fun
> Sven
> 
> 
> On 01.03.2016 19:19, Jered Myers wrote:
>> Is Wicket 6.22.0 out? I thought I saw email stating it was, but the website 
>> is still showing 6.21.0.
>> 
>> Jered
>> 
>> 
>> -
>> 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
> 



Wicket 6.22.0

2016-03-01 Thread Jered Myers
Is Wicket 6.22.0 out? I thought I saw email stating it was, but the website is 
still showing 6.21.0.

Jered


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



Wicket Presentation

2016-01-26 Thread Jered Myers
Is anybody planning any Wicket presentations at ApacheCon North America 
in May?


--
Jered


Re: Lightbox2 Integration

2014-07-18 Thread Jered Myers

Done

On 07/18/2014 12:44 AM, Martin Grigorov wrote:

Can you send a PR for master branch (Wicket 7) too ?
git cherry-pick fails to do it automatically :-/

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Fri, Jul 18, 2014 at 9:34 AM, Martin Grigorov mgrigo...@apache.org
wrote:


Thank you!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Thu, Jul 17, 2014 at 7:05 PM, Jered Myers jer...@maplewoodsoftware.com

wrote:
I added the pull request for lightbox2.  lightbox2-examples didn't need
to be updated.

Jered


On 07/17/2014 12:27 AM, Martin Grigorov wrote:


Hi,

Do you want to contribute back ?
Please create a Pull Request at with the updates/fixes at
https://github.com/wicketstuff/core
Thanks!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Thu, Jul 17, 2014 at 12:14 AM, Jered Myers 
jer...@maplewoodsoftware.com
wrote:

  The WicketStuff version of the JavaScript file was out of date. After I

fixed the JavaScript both the thumbnail and full image displayed.  The
close image icon still wasn't showing, so I just rolled my own version
from
http://lokeshdhakar.com/projects/lightbox2/.  I think all that needs to
be done to fix WicketStuff is to copy down the resource files and to add
the data-lightbox attribute to onComponentTag in LightboxLink.

Jered


On 07/14/2014 10:37 AM, Jered Myers wrote:

  I am having trouble getting the wicketstuff Lightbox2 plugin

integration
working.  I am using the basic example with image resources at the
bottom
of https://github.com/wicketstuff/core/wiki/
Lightbox2-Plugin-Integration.
The thumbnail displays just fine, but when I click on the thumbnail
only
the mask for the page shows up and the image is missing.  Does anybody
have
this plugin working?  The examples don't seem to work for me either
(6.15.0).  I tried adding data-lightbox attribute per the (
http://lokeshdhakar.com/projects/lightbox2/) website, but it didn't
seem
to help. Here is my code where res is an instance of a class that
holds the
ResourceReferences:

add(new LightboxLink(imageLink, res.getFullImage()) {
  private static final long serialVersionUID = 1L;

  @Override
  protected void onComponentTag(ComponentTag tag)
  {
  super.onComponentTag(tag);
  tag.put(data-lightbox, getMarkupId());
  }
}.add(new Image(imageFile, res.getThumbnail(;


  -

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





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



Re: Lightbox2 Integration

2014-07-17 Thread Jered Myers
I added the pull request for lightbox2.  lightbox2-examples didn't need 
to be updated.


Jered

On 07/17/2014 12:27 AM, Martin Grigorov wrote:

Hi,

Do you want to contribute back ?
Please create a Pull Request at with the updates/fixes at
https://github.com/wicketstuff/core
Thanks!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Thu, Jul 17, 2014 at 12:14 AM, Jered Myers jer...@maplewoodsoftware.com
wrote:


The WicketStuff version of the JavaScript file was out of date. After I
fixed the JavaScript both the thumbnail and full image displayed.  The
close image icon still wasn't showing, so I just rolled my own version from
http://lokeshdhakar.com/projects/lightbox2/.  I think all that needs to
be done to fix WicketStuff is to copy down the resource files and to add
the data-lightbox attribute to onComponentTag in LightboxLink.

Jered


On 07/14/2014 10:37 AM, Jered Myers wrote:


I am having trouble getting the wicketstuff Lightbox2 plugin integration
working.  I am using the basic example with image resources at the bottom
of https://github.com/wicketstuff/core/wiki/Lightbox2-Plugin-Integration.
The thumbnail displays just fine, but when I click on the thumbnail only
the mask for the page shows up and the image is missing.  Does anybody have
this plugin working?  The examples don't seem to work for me either
(6.15.0).  I tried adding data-lightbox attribute per the (
http://lokeshdhakar.com/projects/lightbox2/) website, but it didn't seem
to help. Here is my code where res is an instance of a class that holds the
ResourceReferences:

add(new LightboxLink(imageLink, res.getFullImage()) {
 private static final long serialVersionUID = 1L;

 @Override
 protected void onComponentTag(ComponentTag tag)
 {
 super.onComponentTag(tag);
 tag.put(data-lightbox, getMarkupId());
 }
}.add(new Image(imageFile, res.getThumbnail(;



-
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: Lightbox2 Integration

2014-07-16 Thread Jered Myers
The WicketStuff version of the JavaScript file was out of date. After I 
fixed the JavaScript both the thumbnail and full image displayed.  The 
close image icon still wasn't showing, so I just rolled my own version 
from http://lokeshdhakar.com/projects/lightbox2/.  I think all that 
needs to be done to fix WicketStuff is to copy down the resource files 
and to add the data-lightbox attribute to onComponentTag in LightboxLink.


Jered

On 07/14/2014 10:37 AM, Jered Myers wrote:
I am having trouble getting the wicketstuff Lightbox2 plugin 
integration working.  I am using the basic example with image 
resources at the bottom of 
https://github.com/wicketstuff/core/wiki/Lightbox2-Plugin-Integration. 
The thumbnail displays just fine, but when I click on the thumbnail 
only the mask for the page shows up and the image is missing.  Does 
anybody have this plugin working?  The examples don't seem to work for 
me either (6.15.0).  I tried adding data-lightbox attribute per the 
(http://lokeshdhakar.com/projects/lightbox2/) website, but it didn't 
seem to help. Here is my code where res is an instance of a class that 
holds the ResourceReferences:


add(new LightboxLink(imageLink, res.getFullImage()) {
private static final long serialVersionUID = 1L;

@Override
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
tag.put(data-lightbox, getMarkupId());
}
}.add(new Image(imageFile, res.getThumbnail(;




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



Lightbox2 Integration

2014-07-14 Thread Jered Myers
I am having trouble getting the wicketstuff Lightbox2 plugin integration 
working.  I am using the basic example with image resources at the 
bottom of 
https://github.com/wicketstuff/core/wiki/Lightbox2-Plugin-Integration. 
The thumbnail displays just fine, but when I click on the thumbnail only 
the mask for the page shows up and the image is missing.  Does anybody 
have this plugin working?  The examples don't seem to work for me either 
(6.15.0).  I tried adding data-lightbox attribute per the 
(http://lokeshdhakar.com/projects/lightbox2/) website, but it didn't 
seem to help. Here is my code where res is an instance of a class that 
holds the ResourceReferences:


add(new LightboxLink(imageLink, res.getFullImage()) {
private static final long serialVersionUID = 1L;

@Override
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
tag.put(data-lightbox, getMarkupId());
}
}.add(new Image(imageFile, res.getThumbnail(;

--
Jered Myers


Re: Replace HTML Markup Dynamically

2014-03-27 Thread Jered Myers
Thank you Martin!  I can confirm this work around is working well in my 
application!


Jered Myers

On 03/27/2014 03:19 AM, Martin Grigorov wrote:

https://issues.apache.org/jira/browse/WICKET-5545

As a workaround you can replace com.test.help.HelpPage#onInitialize() with
com.test.help.HelpPage#onConfigure()

Martin Grigorov
Wicket Training and Consulting


On Thu, Mar 27, 2014 at 11:03 AM, Martin Grigorov mgrigo...@apache.orgwrote:


This is a regression from
https://issues.apache.org/jira/browse/WICKET-5415
I'll debug it and create a ticket.

Martin Grigorov
Wicket Training and Consulting


On Wed, Mar 26, 2014 at 7:58 PM, Jered Myers jer...@maplewoodsoftware.com

wrote:
Martin,

The problem appears to have begun in Wicket 6.13.  I have confirmed the
problem is not in 6.10, 6.11, and 6.12.  I am attaching a quickstart, so
all you need to do is change the Wicket version in the pom between 6.13 and
6.12 to see the difference.  I will start going through Git and see if I
can find the change in 6.13.  Thanks for your help.

Jered Myers


On 03/25/2014 03:16 PM, Martin Grigorov wrote:


Hi,

Upgrade to 6.11, then to 6.12, 6.13 and see when it starts.
Then we can check together the respective changelog/release notes.

Martin Grigorov
Wicket Training and Consulting


On Tue, Mar 25, 2014 at 11:31 PM, Jered Myers
jer...@maplewoodsoftware.comwrote:

  We were running Wicket 6.10 with our application and after upgrading to

Wicket 6.14 our help file system no longer works.  The system would
open a
modal window and dynamically set the HTML file to use based on
StringResourceModels.  This allows us to set the name of the help file
in a
components properties file and use the same help modal window to display
the help file.  The problem now is that the entire page redirects to the
help file instead of just the page in the modal window.  Does anybody
have
any idea what might of changed or how I can fix this?

Here is the key code in the ModalWindow's page:

protected void onInitialize()
{
  super.onInitialize();

  String helpFileName = fileNameModel.getObject() + .html;

  // add the anchor tag if it exists
  if (anchorModel != null  !Strings.isEmpty(anchorModel.
getObject()))
  {
  helpFileName += # + anchorModel.getObject();
  }

  getRequestCycle().scheduleRequestHandlerAfterCurrent(new
RedirectRequestHandler(docs/ + helpFileName));
}

Thanks for your help!

--
Jered Myers




-
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: Wicket with X-editable

2014-03-14 Thread Jered Myers
Thanks for your response.  I agree, it looks like it would be easy to 
implement.  I will likely have to fork X-editable and add custom code 
for my needs (not just Wicket integration), so I am curious if anybody 
has actually used this and run into problems.


On 03/10/2014 10:21 PM, Ernesto Reinaldo Barreiro wrote:

IMHO this should be very easy to implement/integrate with  Wicket: judging
from the documentation. I haven't used the library myself, so I might be
missing some nuances/caveats...


On Tue, Mar 11, 2014 at 12:03 AM, Jered Myers
jer...@maplewoodsoftware.comwrote:


Has anybody tried to work with Wicket and X-editable (
http://vitalets.github.io/x-editable/index.html)?  If so, what was your
experience (e.g. X-editable stability, difficulty to implement, etc.)?  I
am curious if it would be a good idea to go down the road of making my
Wicket application run with the X-editable in-line editable fields.

--
Jered Myers







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



Wicket with X-editable

2014-03-10 Thread Jered Myers
Has anybody tried to work with Wicket and X-editable 
(http://vitalets.github.io/x-editable/index.html)?  If so, what was your 
experience (e.g. X-editable stability, difficulty to implement, etc.)?  
I am curious if it would be a good idea to go down the road of making my 
Wicket application run with the X-editable in-line editable fields.


--
Jered Myers



Re: AutoCompleteTextField break in new wicket 6.10.0?

2013-08-27 Thread Jered Myers
I added this case to JIRA with a quickstart.  It is a critical bug for 
my company.


https://issues.apache.org/jira/browse/WICKET-5332

Jered

On 08/27/2013 06:39 AM, Sven Meier wrote:

Hi Jan,

autoComplete is a little delicate in the ordering of javascript event 
registrations, so this might not have any effects on other components.


A quickstart will help to identify the problem.

Sven

On 08/27/2013 03:21 PM, TechDB wrote:

Hello,

I can confirm the behavior. It happens on al AutoComplete fields that 
are
added lazy via ajax. The mentioned error in ajax debug ERROR: Cannot 
find

element with id: null is produced by the script that tries to add the
autocomplete event to the element via header contribution. It seems 
that the
sequence of the evaluation for component adding and header 
contribution via

ajax has changed. Meaning that the autocomplete script is looking for an
element that was not added yet.


Does this also break other elements?


Jan



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-break-in-new-wicket-6-10-0-tp4661085p4661097.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: AutoCompleteTextField break in new wicket 6.10.0?

2013-08-27 Thread Jered Myers

It appears that this fix is already working in 6.11.0-SNAPSHOT.

The fix was committed here:
https://github.com/apache/wicket/commit/bfd4649656f4f51c8d1a164cc14cb5b8dc71f89d

See https://issues.apache.org/jira/browse/WICKET-5315

I applied that change to my code and the auto complete works now.

On 08/27/2013 07:53 AM, Jered Myers wrote:
I added this case to JIRA with a quickstart.  It is a critical bug for 
my company.


https://issues.apache.org/jira/browse/WICKET-5332

Jered

On 08/27/2013 06:39 AM, Sven Meier wrote:

Hi Jan,

autoComplete is a little delicate in the ordering of javascript event 
registrations, so this might not have any effects on other components.


A quickstart will help to identify the problem.

Sven

On 08/27/2013 03:21 PM, TechDB wrote:

Hello,

I can confirm the behavior. It happens on al AutoComplete fields 
that are
added lazy via ajax. The mentioned error in ajax debug ERROR: 
Cannot find

element with id: null is produced by the script that tries to add the
autocomplete event to the element via header contribution. It seems 
that the
sequence of the evaluation for component adding and header 
contribution via
ajax has changed. Meaning that the autocomplete script is looking 
for an

element that was not added yet.


Does this also break other elements?


Jan



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-break-in-new-wicket-6-10-0-tp4661085p4661097.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







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



Button tag

2013-07-05 Thread Jered Myers
I am looking at switching my input type=submit / submit buttons over 
to button type=submit/buttons buttons.  Is this safe to do in 
Wicket (e.g. my forms will still submit correctly, submit components 
don't have a onComponent tag that requires an input element)?  I am 
supporting IE7 along with modern browsers.

--
Jered Myers



AjaxChannel Queues

2013-06-20 Thread Jered Myers
I am having a few challenges with the AjaxChannel queuing up and 
interfering with actions a user is making while in ajax requests are in 
queue.  When my AbstractDefaultAjaxBehavior hits its respond method, it 
adds a JavaScript call to the target.  Does that JavaScript get executed 
before the next ajax request is release from the AjaxChannel queue?


In my example below, the user would be clicking the button fast enough 
to queue the AjaxChannel.  I need to know if the finishButtonWork 
function call would happen before or after the AjaxChannel releases the 
next ajax request from queue.


// HTML
input type=button onclick=callbackForBehvaior();/input

// JavaScript
callbackForBehavior = function() {
  Wicket.Ajax.ajax({blah});
}
getButtonDetails = function() {
...
return buttonDetailsJSON;
}
finishButtonWork = function(json) {

}

// Java AbstractDefaultAjaxBehavior
protected void updateAjaxAttributes(AjaxRequestAttributes attribs){
super.updateAjaxAttributes(attribs);

// Call the function that sets up the parameters to pass back 
to the server.
attribs.getDynamicExtraParameters().add(return 
getButtonDetails(););

}
protected void respond(AjaxRequestTarget target) {
...
target.appendJavaScript(finishButtonWork( + resultJSON + ););
}

--
Jered Myers



Re: AjaxChannel Queues

2013-06-20 Thread Jered Myers

Thanks!

On 06/20/2013 01:08 PM, Sven Meier wrote:

The Javascript in the response is evaluated as part of the ajax call.

I need to know if the finishButtonWork function call would happen 
before or after the AjaxChannel releases the next ajax request from 
queue.


Before.

Sven

On 06/20/2013 07:48 PM, Jered Myers wrote:
I am having a few challenges with the AjaxChannel queuing up and 
interfering with actions a user is making while in ajax requests are 
in queue.  When my AbstractDefaultAjaxBehavior hits its respond 
method, it adds a JavaScript call to the target. Does that JavaScript 
get executed before the next ajax request is release from the 
AjaxChannel queue?


In my example below, the user would be clicking the button fast 
enough to queue the AjaxChannel.  I need to know if the 
finishButtonWork function call would happen before or after the 
AjaxChannel releases the next ajax request from queue.


// HTML
input type=button onclick=callbackForBehvaior();/input

// JavaScript
callbackForBehavior = function() {
  Wicket.Ajax.ajax({blah});
}
getButtonDetails = function() {
...
return buttonDetailsJSON;
}
finishButtonWork = function(json) {

}

// Java AbstractDefaultAjaxBehavior
protected void updateAjaxAttributes(AjaxRequestAttributes attribs){
super.updateAjaxAttributes(attribs);

// Call the function that sets up the parameters to pass back 
to the server.
attribs.getDynamicExtraParameters().add(return 
getButtonDetails(););

}
protected void respond(AjaxRequestTarget target) {
...
target.appendJavaScript(finishButtonWork( + resultJSON + ););
}




-
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



ModalWindow not visible in Safari

2013-06-14 Thread Jered Myers
When I scroll down on large pages in Safari 5.1.7 (Windows) and click on 
a link to open a modal window, the modal window does not display, but 
the mask for the window does.  I added WICKET-5224 to JIRA with a 
Quickstart.  It looks like the fix for WICKET-4948 is what is causing 
the problem.  It seems that WICKET-4948 was solving the same problem.  
Is this a problem between versions of Safari where the window.scrollTop 
is different between Windows and Mac?  I don't have a Mac to test.


--
Jered Myers



Re: Wicket panel - call jQuery

2013-03-21 Thread Jered Myers
I am not positive, but your selector appears wrong to me.  Try 
response.render( DomReadyHeaderItem.forScript( 
$(\#menu\).find(\.tab-row\).addClass(\myClass\);, someId ) );


On 03/21/2013 07:50 AM, Ernesto Reinaldo Barreiro wrote:

try with DomReadyHederItem to see if you get a different behavior.

On Thu, Mar 21, 2013 at 3:44 PM, mac gmaci...@gmail.com wrote:


Hi,
I have a panel component containing
org.apache.wicket.extensions.markup.html.tabs.TabbedPanel(s):

Java (my component constructor):
ListTab tabs = new ArrayList();
...
add( new AjaxTabbedPanel( menu, tabs ) );

HTML:
div id=menu
div class=tab-row
   ...
/div
div class=tab-panel
   ...
/div
...
/div

I need to add a css class to tab-row and tab-panel selectors (by jQuery
I suppouse).
I tried calling
response.render( JavaScriptHeaderItem.forScript( $(#menu 
.tab-row).addClass(myClass);, someId ) );
inside myComponent#renderHead but without any success.

Maybe my way is not correct? Thanks for any help.

mac



--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-panel-call-jQuery-tp4657401.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: Validator Question

2013-03-06 Thread Jered Myers
Assuming you are extending AbstractFormValidator, you can store the 
components when you construct the validator like so...


public DependantTextFieldValidator(TextField? textField1, TextField? 
dependantTextField)

{
if (textField1 == null)
{
throw new IllegalArgumentException(argument textField1 
cannot be null);

}
if (dependantTextField == null)
{
throw new IllegalArgumentException(argument textField2 
cannot be null);

}
components = new FormComponent[] { textField1, 
dependantTextField };

}

and then pull them back out like so...

public void validate(Form? form)
{
// TextField1
final FormComponent? textField1 = components[0];
// DependantTextField
final FormComponent? dependantTextField = components[1];

boolean textField1Empty = Strings.isEmpty(textField1.getInput());

}

On 03/06/2013 12:03 PM, eugenebalt wrote:

I have a Form-level Validator which works on a pair of Date fields, and makes
sure that one can't be filled in without the other. (None or both filled in
is fine.)

The Validator is Form-level because it is multi-component; it must work
generically on any pair of Component IDs, because it's shared between
different projects. Right now the implementation is:

@Override
public void validate(Form form) {
//...
}

The issue is that I can't pass any arbitrary pair of IDs to validate, the
param is a Form. Do I hard-code all the possible IDs that different projects
can use? Or is there a better way to do it?

Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Validator-Question-tp4657054.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: 404 error in nested ModalWindow IE 7

2013-03-04 Thread Jered Myers

This problem is not replicating in Wicket 1.4.21.

On 03/01/2013 09:36 AM, Jered Myers wrote:

I added this problem to JIRA.

https://issues.apache.org/jira/browse/WICKET-5071

On 03/01/2013 08:29 AM, Jered Myers wrote:
The page is stateless, so it has the same value being set for 
settings.ie8_src and settings.src in getWindowOpenJavaScript().  It 
seems that only pages with setStatelessHint(false) hit the second 
path in the code...


IRequestHandler handler = new 
RenderPageRequestHandler(new PageProvider(page));


pageUrl = requestCycle.urlFor(handler);
String ie8_pageUrl = 
requestCycle.getUrlRenderer().renderRelativeUrl(

requestCycle.mapUrlFor(handler));
appendAssignment(buffer, settings.ie8_src, 
ie8_pageUrl);


When I set the stateless hint to false, the value is the same for 
pageUrl and ie8_pageUrl.  I would expect it to be different as that 
makes having two URLs for window.location pointless.  My guess is 
that I am not replicating the reason for the two different settings 
or there is a bug.


I will add this as a bug in JIRA and clean up my notes to clarify my 
testing results.


On 03/01/2013 01:09 AM, Martin Grigorov wrote:

Hi,

See 
org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow#getWindowOpenJavaScript().

There is such code:
appendAssignment(buffer, settings.ie8_src, pageUrl);

which is used in modal.js:

if(Wicket.Browser.isIELessThan9()){
this.content.contentWindow.location.replace(this.settings.ie8_src);
  }else{
this.content.contentWindow.location.replace(this.settings.src);
}

I guess this code breaks for you.

I don't have IE 7/8 around to test it.


On Fri, Mar 1, 2013 at 12:43 AM, Jered Myers
jer...@maplewoodsoftware.comwrote:

It appears that the request is different between IE7 and Chrome 
once it
hits the Jetty server with the inner modal window.  modal.js is 
calling
window.location.replace in load with the same value no matter what 
browser

I am using.  The first window in the Quickstart has a location of
./wicket/bookmarkable/com.qs.**NestedModals.**OuterModalContent 
and the

second modal is missing wicket/bookmarkable and is only
./com.qs.NestedModals.**InnerModalContent.  I didn't mount 
anything (no
changes in the Application class).  The original problem was on a 
Tomcat6
server and I tried several versions of Jetty and didn't see a 
change.  I
did find that if I mount the content page in the Quickstart the 
problem is
resolved; however, this is not fixing my primary application. It 
appears

that the mappers are not able to locate the page for the class.

Please help if you can.


On 02/26/2013 04:47 PM, Jered Myers wrote:


I am attaching a Quickstart that replicates the problem.

On 02/25/2013 09:48 AM, Jered Myers wrote:

I put a break point in CompoundRequestMapper at line 149 (the 
mapRequest

function). Here are the results of request.getURL.toString():
IE7:
- wicket/page?8 (first ModalWindow)
- page?9 (nested ModalWindow)

Chrome, IE9 (browser IE7, document IE7):
- wicket/page?8 (first ModalWindow)
- wicket/page?9 (nested ModalWindow)

I will keep digging.  Any help is appreciated!

On 02/25/2013 09:17 AM, Jered Myers wrote:


I do see this in my log if I turn on DEBUG in log4j:
[08:43:03] DEBUG 
[org.apache.wicket.request.**mapper.CompoundRequestMapper]

- No compatible mapper found for URL 'page?6'
[08:43:03] DEBUG 
[org.apache.wicket.request.**cycle.RequestCycle] - No
suitable handler found for URL page?6, falling back to container 
to process

this request

I don't see that message when I run in Chrome.

On 02/25/2013 09:13 AM, Jered Myers wrote:


It looks like it was a bug fixed in a 1.5 release candidate (
https://issues.apache.org/**jira/browse/WICKET-3982https://issues.apache.org/jira/browse/WICKET-3982). 


The example in my link (http://www.wicket-library.**
com/wicket-examples/ajax/**modal-windowhttp://www.wicket-library.com/wicket-examples/ajax/modal-window) 

appears to be using Wicket 1.5.9, so it should be fixed in that 
code and it
isn't.  I am replicating the problem in my own code using 
Wicket 6.5.  I am
going to keep digging, but I am suspicious that tests may have 
been done
using the developer tools in IE9.  I know that using the IE9 
developer
tools and changing the document and browser modes will not 
replicate the

problem.

On 02/23/2013 04:53 AM, Martin Grigorov wrote:


Hi,

There was such issue before but as far as I remember it was 
fixed.

Look in Jira. There is also a special code for IE7/8 in
ModalWindow.java


On Sat, Feb 23, 2013 at 2:40 AM, Jered Myers
jer...@maplewoodsoftware.com**wrote:

  The same problem happens in IE 8. Using development mode 
(F12) in

IE9+ to
lower the browser version will not replicate the problem.


On 02/22/2013 03:23 PM, Jered Myers wrote:

  Wicket 6.5

I am getting a 404 error in IE 7 when I open a ModalWindow in a
ModalWindow.  Both windows use page creators. Has anybody 
run

Re: 404 error in nested ModalWindow IE 7

2013-03-01 Thread Jered Myers
The page is stateless, so it has the same value being set for 
settings.ie8_src and settings.src in getWindowOpenJavaScript().  It 
seems that only pages with setStatelessHint(false) hit the second path 
in the code...


IRequestHandler handler = new 
RenderPageRequestHandler(new PageProvider(page));


pageUrl = requestCycle.urlFor(handler);
String ie8_pageUrl = 
requestCycle.getUrlRenderer().renderRelativeUrl(

requestCycle.mapUrlFor(handler));
appendAssignment(buffer, settings.ie8_src, ie8_pageUrl);

When I set the stateless hint to false, the value is the same for 
pageUrl and ie8_pageUrl.  I would expect it to be different as that 
makes having two URLs for window.location pointless.  My guess is that I 
am not replicating the reason for the two different settings or there is 
a bug.


I will add this as a bug in JIRA and clean up my notes to clarify my 
testing results.


On 03/01/2013 01:09 AM, Martin Grigorov wrote:

Hi,

See 
org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow#getWindowOpenJavaScript().
There is such code:
appendAssignment(buffer, settings.ie8_src, pageUrl);

which is used in modal.js:

if(Wicket.Browser.isIELessThan9()){
this.content.contentWindow.location.replace(this.settings.ie8_src);
  }else{
this.content.contentWindow.location.replace(this.settings.src);
}

I guess this code breaks for you.

I don't have IE 7/8 around to test it.


On Fri, Mar 1, 2013 at 12:43 AM, Jered Myers
jer...@maplewoodsoftware.comwrote:


It appears that the request is different between IE7 and Chrome once it
hits the Jetty server with the inner modal window.  modal.js is calling
window.location.replace in load with the same value no matter what browser
I am using.  The first window in the Quickstart has a location of
./wicket/bookmarkable/com.qs.**NestedModals.**OuterModalContent and the
second modal is missing wicket/bookmarkable and is only
./com.qs.NestedModals.**InnerModalContent.  I didn't mount anything (no
changes in the Application class).  The original problem was on a Tomcat6
server and I tried several versions of Jetty and didn't see a change.  I
did find that if I mount the content page in the Quickstart the problem is
resolved; however, this is not fixing my primary application.  It appears
that the mappers are not able to locate the page for the class.

Please help if you can.


On 02/26/2013 04:47 PM, Jered Myers wrote:


I am attaching a Quickstart that replicates the problem.

On 02/25/2013 09:48 AM, Jered Myers wrote:


I put a break point in CompoundRequestMapper at line 149 (the mapRequest
function). Here are the results of request.getURL.toString():
IE7:
- wicket/page?8 (first ModalWindow)
- page?9 (nested ModalWindow)

Chrome, IE9 (browser IE7, document IE7):
- wicket/page?8 (first ModalWindow)
- wicket/page?9 (nested ModalWindow)

I will keep digging.  Any help is appreciated!

On 02/25/2013 09:17 AM, Jered Myers wrote:


I do see this in my log if I turn on DEBUG in log4j:
[08:43:03] DEBUG [org.apache.wicket.request.**mapper.CompoundRequestMapper]
- No compatible mapper found for URL 'page?6'
[08:43:03] DEBUG [org.apache.wicket.request.**cycle.RequestCycle] - No
suitable handler found for URL page?6, falling back to container to process
this request

I don't see that message when I run in Chrome.

On 02/25/2013 09:13 AM, Jered Myers wrote:


It looks like it was a bug fixed in a 1.5 release candidate (
https://issues.apache.org/**jira/browse/WICKET-3982https://issues.apache.org/jira/browse/WICKET-3982).
The example in my link (http://www.wicket-library.**
com/wicket-examples/ajax/**modal-windowhttp://www.wicket-library.com/wicket-examples/ajax/modal-window)
appears to be using Wicket 1.5.9, so it should be fixed in that code and it
isn't.  I am replicating the problem in my own code using Wicket 6.5.  I am
going to keep digging, but I am suspicious that tests may have been done
using the developer tools in IE9.  I know that using the IE9 developer
tools and changing the document and browser modes will not replicate the
problem.

On 02/23/2013 04:53 AM, Martin Grigorov wrote:


Hi,

There was such issue before but as far as I remember it was fixed.
Look in Jira. There is also a special code for IE7/8 in
ModalWindow.java


On Sat, Feb 23, 2013 at 2:40 AM, Jered Myers
jer...@maplewoodsoftware.com**wrote:

  The same problem happens in IE 8. Using development mode (F12) in

IE9+ to
lower the browser version will not replicate the problem.


On 02/22/2013 03:23 PM, Jered Myers wrote:

  Wicket 6.5

I am getting a 404 error in IE 7 when I open a ModalWindow in a
ModalWindow.  Both windows use page creators.  Has anybody run into
this
before?  The code works fine in Firefox, Chrome, and lE9+. This
replicates
in the Wicket examples if you use the Show modal dialog with a
page and
then Open another modal dialog @ http://www.wicket-library.com/**
** http://www.wicket-library.com/**
wicket

Re: 404 error in nested ModalWindow IE 7

2013-03-01 Thread Jered Myers

I added this problem to JIRA.

https://issues.apache.org/jira/browse/WICKET-5071

On 03/01/2013 08:29 AM, Jered Myers wrote:
The page is stateless, so it has the same value being set for 
settings.ie8_src and settings.src in getWindowOpenJavaScript().  It 
seems that only pages with setStatelessHint(false) hit the second path 
in the code...


IRequestHandler handler = new 
RenderPageRequestHandler(new PageProvider(page));


pageUrl = requestCycle.urlFor(handler);
String ie8_pageUrl = 
requestCycle.getUrlRenderer().renderRelativeUrl(

requestCycle.mapUrlFor(handler));
appendAssignment(buffer, settings.ie8_src, 
ie8_pageUrl);


When I set the stateless hint to false, the value is the same for 
pageUrl and ie8_pageUrl.  I would expect it to be different as that 
makes having two URLs for window.location pointless.  My guess is that 
I am not replicating the reason for the two different settings or 
there is a bug.


I will add this as a bug in JIRA and clean up my notes to clarify my 
testing results.


On 03/01/2013 01:09 AM, Martin Grigorov wrote:

Hi,

See 
org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow#getWindowOpenJavaScript().

There is such code:
appendAssignment(buffer, settings.ie8_src, pageUrl);

which is used in modal.js:

if(Wicket.Browser.isIELessThan9()){
this.content.contentWindow.location.replace(this.settings.ie8_src);
  }else{
this.content.contentWindow.location.replace(this.settings.src);
}

I guess this code breaks for you.

I don't have IE 7/8 around to test it.


On Fri, Mar 1, 2013 at 12:43 AM, Jered Myers
jer...@maplewoodsoftware.comwrote:


It appears that the request is different between IE7 and Chrome once it
hits the Jetty server with the inner modal window.  modal.js is calling
window.location.replace in load with the same value no matter what 
browser

I am using.  The first window in the Quickstart has a location of
./wicket/bookmarkable/com.qs.**NestedModals.**OuterModalContent 
and the

second modal is missing wicket/bookmarkable and is only
./com.qs.NestedModals.**InnerModalContent.  I didn't mount 
anything (no
changes in the Application class).  The original problem was on a 
Tomcat6
server and I tried several versions of Jetty and didn't see a 
change.  I
did find that if I mount the content page in the Quickstart the 
problem is
resolved; however, this is not fixing my primary application. It 
appears

that the mappers are not able to locate the page for the class.

Please help if you can.


On 02/26/2013 04:47 PM, Jered Myers wrote:


I am attaching a Quickstart that replicates the problem.

On 02/25/2013 09:48 AM, Jered Myers wrote:

I put a break point in CompoundRequestMapper at line 149 (the 
mapRequest

function). Here are the results of request.getURL.toString():
IE7:
- wicket/page?8 (first ModalWindow)
- page?9 (nested ModalWindow)

Chrome, IE9 (browser IE7, document IE7):
- wicket/page?8 (first ModalWindow)
- wicket/page?9 (nested ModalWindow)

I will keep digging.  Any help is appreciated!

On 02/25/2013 09:17 AM, Jered Myers wrote:


I do see this in my log if I turn on DEBUG in log4j:
[08:43:03] DEBUG 
[org.apache.wicket.request.**mapper.CompoundRequestMapper]

- No compatible mapper found for URL 'page?6'
[08:43:03] DEBUG [org.apache.wicket.request.**cycle.RequestCycle] 
- No
suitable handler found for URL page?6, falling back to container 
to process

this request

I don't see that message when I run in Chrome.

On 02/25/2013 09:13 AM, Jered Myers wrote:


It looks like it was a bug fixed in a 1.5 release candidate (
https://issues.apache.org/**jira/browse/WICKET-3982https://issues.apache.org/jira/browse/WICKET-3982). 


The example in my link (http://www.wicket-library.**
com/wicket-examples/ajax/**modal-windowhttp://www.wicket-library.com/wicket-examples/ajax/modal-window) 

appears to be using Wicket 1.5.9, so it should be fixed in that 
code and it
isn't.  I am replicating the problem in my own code using Wicket 
6.5.  I am
going to keep digging, but I am suspicious that tests may have 
been done
using the developer tools in IE9.  I know that using the IE9 
developer
tools and changing the document and browser modes will not 
replicate the

problem.

On 02/23/2013 04:53 AM, Martin Grigorov wrote:


Hi,

There was such issue before but as far as I remember it was fixed.
Look in Jira. There is also a special code for IE7/8 in
ModalWindow.java


On Sat, Feb 23, 2013 at 2:40 AM, Jered Myers
jer...@maplewoodsoftware.com**wrote:

  The same problem happens in IE 8. Using development mode 
(F12) in

IE9+ to
lower the browser version will not replicate the problem.


On 02/22/2013 03:23 PM, Jered Myers wrote:

  Wicket 6.5

I am getting a 404 error in IE 7 when I open a ModalWindow in a
ModalWindow.  Both windows use page creators. Has anybody run 
into

this
before?  The code works fine in Firefox, Chrome, and lE9+. This
replicates
in the Wicket examples

Re: 404 error in nested ModalWindow IE 7

2013-02-28 Thread Jered Myers
It appears that the request is different between IE7 and Chrome once it 
hits the Jetty server with the inner modal window.  modal.js is calling 
window.location.replace in load with the same value no matter what 
browser I am using.  The first window in the Quickstart has a location 
of ./wicket/bookmarkable/com.qs.NestedModals.OuterModalContent and the 
second modal is missing wicket/bookmarkable and is only 
./com.qs.NestedModals.InnerModalContent.  I didn't mount anything (no 
changes in the Application class).  The original problem was on a 
Tomcat6 server and I tried several versions of Jetty and didn't see a 
change.  I did find that if I mount the content page in the Quickstart 
the problem is resolved; however, this is not fixing my primary 
application.  It appears that the mappers are not able to locate the 
page for the class.


Please help if you can.

On 02/26/2013 04:47 PM, Jered Myers wrote:

I am attaching a Quickstart that replicates the problem.

On 02/25/2013 09:48 AM, Jered Myers wrote:
I put a break point in CompoundRequestMapper at line 149 (the 
mapRequest function). Here are the results of request.getURL.toString():

IE7:
- wicket/page?8 (first ModalWindow)
- page?9 (nested ModalWindow)

Chrome, IE9 (browser IE7, document IE7):
- wicket/page?8 (first ModalWindow)
- wicket/page?9 (nested ModalWindow)

I will keep digging.  Any help is appreciated!

On 02/25/2013 09:17 AM, Jered Myers wrote:

I do see this in my log if I turn on DEBUG in log4j:
[08:43:03] DEBUG 
[org.apache.wicket.request.mapper.CompoundRequestMapper] - No 
compatible mapper found for URL 'page?6'
[08:43:03] DEBUG [org.apache.wicket.request.cycle.RequestCycle] - No 
suitable handler found for URL page?6, falling back to container to 
process this request


I don't see that message when I run in Chrome.

On 02/25/2013 09:13 AM, Jered Myers wrote:
It looks like it was a bug fixed in a 1.5 release candidate ( 
https://issues.apache.org/jira/browse/WICKET-3982). The example in 
my link 
(http://www.wicket-library.com/wicket-examples/ajax/modal-window) 
appears to be using Wicket 1.5.9, so it should be fixed in that 
code and it isn't.  I am replicating the problem in my own code 
using Wicket 6.5.  I am going to keep digging, but I am suspicious 
that tests may have been done using the developer tools in IE9.  I 
know that using the IE9 developer tools and changing the document 
and browser modes will not replicate the problem.


On 02/23/2013 04:53 AM, Martin Grigorov wrote:

Hi,

There was such issue before but as far as I remember it was fixed.
Look in Jira. There is also a special code for IE7/8 in 
ModalWindow.java



On Sat, Feb 23, 2013 at 2:40 AM, Jered Myers
jer...@maplewoodsoftware.comwrote:

The same problem happens in IE 8. Using development mode (F12) in 
IE9+ to

lower the browser version will not replicate the problem.


On 02/22/2013 03:23 PM, Jered Myers wrote:


Wicket 6.5

I am getting a 404 error in IE 7 when I open a ModalWindow in a
ModalWindow.  Both windows use page creators.  Has anybody run 
into this
before?  The code works fine in Firefox, Chrome, and lE9+. This 
replicates
in the Wicket examples if you use the Show modal dialog with a 
page and

then Open another modal dialog @ http://www.wicket-library.com/**
wicket-examples/ajax/modal-**windowhttp://www.wicket-library.com/wicket-examples/ajax/modal-window 




--**--**- 

To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apache.orgusers-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




-
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: 404 error in nested ModalWindow IE 7

2013-02-25 Thread Jered Myers
It looks like it was a bug fixed in a 1.5 release candidate ( 
https://issues.apache.org/jira/browse/WICKET-3982). The example in my 
link (http://www.wicket-library.com/wicket-examples/ajax/modal-window) 
appears to be using Wicket 1.5.9, so it should be fixed in that code and 
it isn't.  I am replicating the problem in my own code using Wicket 
6.5.  I am going to keep digging, but I am suspicious that tests may 
have been done using the developer tools in IE9.  I know that using the 
IE9 developer tools and changing the document and browser modes will not 
replicate the problem.


On 02/23/2013 04:53 AM, Martin Grigorov wrote:

Hi,

There was such issue before but as far as I remember it was fixed.
Look in Jira. There is also a special code for IE7/8 in ModalWindow.java


On Sat, Feb 23, 2013 at 2:40 AM, Jered Myers
jer...@maplewoodsoftware.comwrote:


The same problem happens in IE 8.  Using development mode (F12) in IE9+ to
lower the browser version will not replicate the problem.


On 02/22/2013 03:23 PM, Jered Myers wrote:


Wicket 6.5

I am getting a 404 error in IE 7 when I open a ModalWindow in a
ModalWindow.  Both windows use page creators.  Has anybody run into this
before?  The code works fine in Firefox, Chrome, and lE9+. This replicates
in the Wicket examples if you use the Show modal dialog with a page and
then Open another modal dialog @ http://www.wicket-library.com/**
wicket-examples/ajax/modal-**windowhttp://www.wicket-library.com/wicket-examples/ajax/modal-window



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








Re: 404 error in nested ModalWindow IE 7

2013-02-25 Thread Jered Myers

I do see this in my log if I turn on DEBUG in log4j:
[08:43:03] DEBUG 
[org.apache.wicket.request.mapper.CompoundRequestMapper] - No compatible 
mapper found for URL 'page?6'
[08:43:03] DEBUG [org.apache.wicket.request.cycle.RequestCycle] - No 
suitable handler found for URL page?6, falling back to container to 
process this request


I don't see that message when I run in Chrome.

On 02/25/2013 09:13 AM, Jered Myers wrote:
It looks like it was a bug fixed in a 1.5 release candidate ( 
https://issues.apache.org/jira/browse/WICKET-3982). The example in my 
link (http://www.wicket-library.com/wicket-examples/ajax/modal-window) 
appears to be using Wicket 1.5.9, so it should be fixed in that code 
and it isn't.  I am replicating the problem in my own code using 
Wicket 6.5.  I am going to keep digging, but I am suspicious that 
tests may have been done using the developer tools in IE9.  I know 
that using the IE9 developer tools and changing the document and 
browser modes will not replicate the problem.


On 02/23/2013 04:53 AM, Martin Grigorov wrote:

Hi,

There was such issue before but as far as I remember it was fixed.
Look in Jira. There is also a special code for IE7/8 in ModalWindow.java


On Sat, Feb 23, 2013 at 2:40 AM, Jered Myers
jer...@maplewoodsoftware.comwrote:

The same problem happens in IE 8.  Using development mode (F12) in 
IE9+ to

lower the browser version will not replicate the problem.


On 02/22/2013 03:23 PM, Jered Myers wrote:


Wicket 6.5

I am getting a 404 error in IE 7 when I open a ModalWindow in a
ModalWindow.  Both windows use page creators.  Has anybody run into 
this
before?  The code works fine in Firefox, Chrome, and lE9+. This 
replicates
in the Wicket examples if you use the Show modal dialog with a 
page and

then Open another modal dialog @ http://www.wicket-library.com/**
wicket-examples/ajax/modal-**windowhttp://www.wicket-library.com/wicket-examples/ajax/modal-window 




--**--**- 

To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apache.orgusers-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: 404 error in nested ModalWindow IE 7

2013-02-25 Thread Jered Myers
I put a break point in CompoundRequestMapper at line 149 (the mapRequest 
function).  Here are the results of request.getURL.toString():

IE7:
- wicket/page?8 (first ModalWindow)
- page?9 (nested ModalWindow)

Chrome, IE9 (browser IE7, document IE7):
- wicket/page?8 (first ModalWindow)
- wicket/page?9 (nested ModalWindow)

I will keep digging.  Any help is appreciated!

On 02/25/2013 09:17 AM, Jered Myers wrote:

I do see this in my log if I turn on DEBUG in log4j:
[08:43:03] DEBUG 
[org.apache.wicket.request.mapper.CompoundRequestMapper] - No 
compatible mapper found for URL 'page?6'
[08:43:03] DEBUG [org.apache.wicket.request.cycle.RequestCycle] - No 
suitable handler found for URL page?6, falling back to container to 
process this request


I don't see that message when I run in Chrome.

On 02/25/2013 09:13 AM, Jered Myers wrote:
It looks like it was a bug fixed in a 1.5 release candidate ( 
https://issues.apache.org/jira/browse/WICKET-3982). The example in my 
link 
(http://www.wicket-library.com/wicket-examples/ajax/modal-window) 
appears to be using Wicket 1.5.9, so it should be fixed in that code 
and it isn't.  I am replicating the problem in my own code using 
Wicket 6.5.  I am going to keep digging, but I am suspicious that 
tests may have been done using the developer tools in IE9.  I know 
that using the IE9 developer tools and changing the document and 
browser modes will not replicate the problem.


On 02/23/2013 04:53 AM, Martin Grigorov wrote:

Hi,

There was such issue before but as far as I remember it was fixed.
Look in Jira. There is also a special code for IE7/8 in 
ModalWindow.java



On Sat, Feb 23, 2013 at 2:40 AM, Jered Myers
jer...@maplewoodsoftware.comwrote:

The same problem happens in IE 8. Using development mode (F12) in 
IE9+ to

lower the browser version will not replicate the problem.


On 02/22/2013 03:23 PM, Jered Myers wrote:


Wicket 6.5

I am getting a 404 error in IE 7 when I open a ModalWindow in a
ModalWindow.  Both windows use page creators.  Has anybody run 
into this
before?  The code works fine in Firefox, Chrome, and lE9+. This 
replicates
in the Wicket examples if you use the Show modal dialog with a 
page and

then Open another modal dialog @ http://www.wicket-library.com/**
wicket-examples/ajax/modal-**windowhttp://www.wicket-library.com/wicket-examples/ajax/modal-window 




--**--**- 

To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apache.orgusers-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




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



404 error in nested ModalWindow IE 7

2013-02-22 Thread Jered Myers

Wicket 6.5

I am getting a 404 error in IE 7 when I open a ModalWindow in a 
ModalWindow.  Both windows use page creators.  Has anybody run into this 
before?  The code works fine in Firefox, Chrome, and lE9+. This 
replicates in the Wicket examples if you use the Show modal dialog with 
a page and then Open another modal dialog @ 
http://www.wicket-library.com/wicket-examples/ajax/modal-window


--
Jered Myers


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



Re: 404 error in nested ModalWindow IE 7

2013-02-22 Thread Jered Myers
The same problem happens in IE 8.  Using development mode (F12) in IE9+ 
to lower the browser version will not replicate the problem.


On 02/22/2013 03:23 PM, Jered Myers wrote:

Wicket 6.5

I am getting a 404 error in IE 7 when I open a ModalWindow in a 
ModalWindow.  Both windows use page creators.  Has anybody run into 
this before?  The code works fine in Firefox, Chrome, and lE9+. This 
replicates in the Wicket examples if you use the Show modal dialog 
with a page and then Open another modal dialog @ 
http://www.wicket-library.com/wicket-examples/ajax/modal-window





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



Chrome warning with CSSHeaderItem

2012-12-11 Thread Jered Myers

Wicket 6.3
Chromium 18.0.1025.168(Developer Build134367)Ubuntu 11.10 browser

I get the following warning in my console:
Resource interpreted as Image but transferred with MIME type text/css

I have a JavaScriptResourceReference that is like the Dependency 
Management section on www.wicketinaction.com where I have a 
JavaScriptHeaderItem and a CSSHeaderItem.  Here is that example:


public  class  MyResourceReferenceextends  JavaScriptResourceReference{
public  ResourceReferenceA()  {
super(ResourceReferenceA.class,my.js);
}
 
	public  Iterable?  extends  HeaderItem  getDependencies()  {

ListHeaderItem  dependencies=  new  ArrayListHeaderItem();
 
		Url dojoGoogleCdn=  Url.parse(https://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dojo.js;);

ExternalUrlResourceReference externalUrlResourceReference=  new 
 ExternalUrlResourceReference(dojoGoogleCdn);

dependencies.add(JavaScriptHeaderItem.forReference(externalUrlResourceReference));
 
		dependencies.add(CssHeaderItem.forReference(new  CssResourceReference(ResourceReferenceA.class,a.css)));
 
		return  dependencies;

}
}




My behavior loads my ResourceReference like so:

@Override
public void renderHead(Component component, IHeaderResponse response)
{
response.render(JavaScriptHeaderItem.forReference(MyResourceReference.getInstance()));
}

What can I do to get rid of this warning?

--
Jered Myers



Re: How to call a Wicket Ajax click event

2012-12-06 Thread Jered Myers
I am able to make this work in a Quickstart, so there must be something 
else wrong.  Thanks for the response Martin.


Here is code if anybody wants an example:
Java:
AjaxLinkVoid standardAjaxLink = new 
AjaxLinkVoid(standardAjaxLink)

{
private static final long serialVersionUID = 1L;

@Override
public void onClick(AjaxRequestTarget target)
{
target.appendJavaScript(alert('The standard ajax link 
has been clicked'););

}
};
standardAjaxLink.setOutputMarkupId(true);
add(standardAjaxLink);

FormVoid form = new FormVoid(pageForm);
add(form);

AjaxSubmitLink ajaxSubmitLink = new 
AjaxSubmitLink(ajaxSubmitLink)

{
private static final long serialVersionUID = 1L;

@Override
public void onSubmit(AjaxRequestTarget target, Form? form)
{
target.appendJavaScript(alert('The ajax submit link 
has been subimtted'););

}
};
form.add(ajaxSubmitLink);

HTML:
script
function clickTheAjaxLink() {
$(a[linkType=standard]).triggerHandler(click);
}
function clickTheAjaxSubmitLink() {
$(a[linkType=submit]).triggerHandler(click);
}
/script
a href=# onclick=clickTheAjaxLink();Click the Ajax 
Link/a a wicket:id=standardAjaxLink linktype=standardStandard 
Ajax Link/a

br /br /
a href=# onclick=clickTheAjaxSubmitLink();Click the 
Ajax Submit Link/a

form wicket:id=pageForm
input type=text value=Some Data/input
a wicket:id=ajaxSubmitLink linktype=submitSubmit 
Form/a

/form

On 12/06/2012 12:16 AM, Martin Grigorov wrote:

Hi,

Wicket 6 uses jQuery.on() to register the event listeners.
If your AjaxSubmitLink listens on 'click' then
jQuery('#theSubmitLinkId').triggerHandler('click') should do it.
Also check the docs of jQuery#trigger


On Thu, Dec 6, 2012 at 1:53 AM, Jered Myers jer...@maplewoodsoftware.comwrote:


The link here is actually an AjaxSubmitLink and not an AjaxLink.  I am
trying to get back to the onSubmit on the server side.  I saw
http://apache-wicket.1842946.**n4.nabble.com/Wicket-6-Ajax-**
Behaviors-td4654398.htmlhttp://apache-wicket.1842946.n4.nabble.com/Wicket-6-Ajax-Behaviors-td4654398.html,
but $(mylink).triggerHandler('**click') doesn't seem to be working. Do I
treat the trigger on an AjaxSubmitLink different from a regular AjaxLink?


On 12/05/2012 03:28 PM, Jered Myers wrote:


Wicket 6.3

How do I call a click event on an AjaxLink from via jQuery or JavaScript?
  I have an AjaxLink that I have added to the page and after I run some
JavaScript, I want to pragmatically click the link with JavaScript.  This
broke when updating from Wicket 1.5 to 6.  It appears that the onclick
attribute is no longer on my link and I am not sure how to call the events
that Wicket has registered in the head.







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



How to call a Wicket Ajax click event

2012-12-05 Thread Jered Myers

Wicket 6.3

How do I call a click event on an AjaxLink from via jQuery or 
JavaScript?  I have an AjaxLink that I have added to the page and after 
I run some JavaScript, I want to pragmatically click the link with 
JavaScript.  This broke when updating from Wicket 1.5 to 6.  It appears 
that the onclick attribute is no longer on my link and I am not sure how 
to call the events that Wicket has registered in the head.


--
Jered Myers


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



Re: How to call a Wicket Ajax click event

2012-12-05 Thread Jered Myers
The link here is actually an AjaxSubmitLink and not an AjaxLink.  I am 
trying to get back to the onSubmit on the server side.  I saw 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Ajax-Behaviors-td4654398.html, 
but $(mylink).triggerHandler('click') doesn't seem to be working. Do I 
treat the trigger on an AjaxSubmitLink different from a regular AjaxLink?


On 12/05/2012 03:28 PM, Jered Myers wrote:

Wicket 6.3

How do I call a click event on an AjaxLink from via jQuery or 
JavaScript?  I have an AjaxLink that I have added to the page and 
after I run some JavaScript, I want to pragmatically click the link 
with JavaScript.  This broke when updating from Wicket 1.5 to 6.  It 
appears that the onclick attribute is no longer on my link and I am 
not sure how to call the events that Wicket has registered in the head.






Re: Navigate through Wicket 6 tree

2012-11-02 Thread Jered Myers
I am still using the deprecated tree and am building the new tree in a 
sandbox, so I am able to put the update on hold if there is a good 
solution on the way in the next few weeks.  We are attempting to move to 
the new tree so that we are not having to scramble once the deprecated 
methods are removed.  In 1.5, I am extending DefaultMutableTreeNode and 
the tree model took care of setting up the the next and previous nodes.  
I was able to call DefaultMutableTreeNode#getPreviousNode() to get the 
previous node. I still had to write more complex logic to move up 
through parent nodes when my selected node was index 0.


For now, I am adding the parent node and its children to each tree node 
object after sorting it in ITreeProvider#Iterator? extends T 
getChildren(T node);.  Once that happens, I can grab the parent from the 
selected node and move through the children via indexes.  I tried just 
moving through the nodes in my data cache in the provider, but that 
created a problem as the data cache is not sorted and I am using 
ISortableTreeProvider to do that work.  I may be going about this the 
right way for what I need, but it seems to me that I am making it harder 
than it should be.


Thanks for any help!

On 11/02/2012 03:30 AM, Sven Meier wrote:

Hi,

when do you need this information? How did you do it in 1.5?

Sven

On 11/01/2012 10:34 PM, Jered Myers wrote:
I am updating my trees from Wicket 1.5 to 6.2.  I need to get the 
next node and previous node related to the node the user has 
selected.  I am using a NestedTree similar to 
http://wicket-tree.appspot.com/nested (set Content to 
SelectableFolderContent).  Is there an easy way to do this?





-
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: Navigate through Wicket 6 tree

2012-11-02 Thread Jered Myers
That is a good idea!  That will keep me from messing with the extra 
storage and I won't have to go to two different places for parent child 
relationships.  I was hoping there was something already created for 
what I am trying to do that would make the process easier.  I appreciate 
your help!  Thanks for the examples at 
http://wicket-tree.appspot.com/nested. There is not much out there on 
the trees in Wicket 6 yet and that helped tremendously!


On 11/02/2012 01:45 PM, Sven Meier wrote:
If your domain objects have a reference to their parents, why bother 
with the component structure?
You can walk up your domain tree to search the 'previous' one. All you 
have to do, is re-applying the ordering when you iterate over the 
children.


Sven



On 11/02/2012 08:08 PM, Jered Myers wrote:
The domain objects do know the parent, but they do not know what 
order they exist within their siblings.


Usecase:
- I have a tree of departments that has a list of employees in the 
tree where the parent node is the department and the child nodes are 
employees.
- The tree is handling navigation on the left of my screen. When an 
employee is selected, the right side of the screen allows the 
employee to be edited.
- If I remove an employee by clicking a delete link on the right of 
the screen, I want the node to be removed in the tree and the 
selection to move to the previous node in the list.
- The user can toggle the employee tree nodes between an alphabetical 
order and an order that groups the employees by the job they perform.


Changing how the employee nodes in the tree are ordered is part of 
the ISortableTreeProvider and not the domain objects.  The domain 
objects are always the same as it is only the display that is being 
manipulated.


Walking the Wicket component tree sounds like it would work, but I am 
not sure how much easier it would be than setting parent and children 
on node in ITreeProvider#Iterator? extends T getChildren(T node).  
It does seem like it would remove the need for redundant data.  Is 
there a good way to grab the content component associated to the 
selected model?  I suppose I could just store the component when I 
store the selected model.


On 11/02/2012 10:03 AM, Sven Meier wrote:

I see, you've been using part of Swing's API to traverse the tree.

Don't your domain objects of the tree know their parents? If not, 
you may be able to walk up the Wicket component tree to the parental 
tree item to get the parent domain object.


What do you use this for? What's your usecase?

Sven

On 11/02/2012 05:07 PM, Jered Myers wrote:
I am still using the deprecated tree and am building the new tree 
in a sandbox, so I am able to put the update on hold if there is a 
good solution on the way in the next few weeks.  We are attempting 
to move to the new tree so that we are not having to scramble once 
the deprecated methods are removed.  In 1.5, I am extending 
DefaultMutableTreeNode and the tree model took care of setting up 
the the next and previous nodes.  I was able to call 
DefaultMutableTreeNode#getPreviousNode() to get the previous node. 
I still had to write more complex logic to move up through parent 
nodes when my selected node was index 0.


For now, I am adding the parent node and its children to each tree 
node object after sorting it in ITreeProvider#Iterator? extends T 
getChildren(T node);.  Once that happens, I can grab the parent 
from the selected node and move through the children via indexes.  
I tried just moving through the nodes in my data cache in the 
provider, but that created a problem as the data cache is not 
sorted and I am using ISortableTreeProvider to do that work. I may 
be going about this the right way for what I need, but it seems to 
me that I am making it harder than it should be.


Thanks for any help!

On 11/02/2012 03:30 AM, Sven Meier wrote:

Hi,

when do you need this information? How did you do it in 1.5?

Sven

On 11/01/2012 10:34 PM, Jered Myers wrote:
I am updating my trees from Wicket 1.5 to 6.2.  I need to get the 
next node and previous node related to the node the user has 
selected.  I am using a NestedTree similar to 
http://wicket-tree.appspot.com/nested (set Content to 
SelectableFolderContent).  Is there an easy way to do this?





-
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




-
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

Re: Upgrade Advice

2012-10-22 Thread Jered Myers

Thanks!  That is what I needed to know.

On 10/20/2012 06:10 AM, Sebastien wrote:

+1, perfectly explained IMHO. Migrating from 1.4 to 6 directly is much more
complicated than performing the migration in 2 steps and much more error
prone.

On Sat, Oct 20, 2012 at 2:55 PM, Chris Colman
chr...@stepaheadsoftware.comwrote:


I would say no only because going from 1.5 - 6 was super easy. I
changed a few ints to longs, added a bunch of type parameters for
sorting and then it all just worked.

While I found 1.5 - 6 a lot easier than 1.4 - 1.5 if you like
incremental development and want to have some intermediate compilable
and runnable code then I suggest you target 1.5 first.

1.4 has quite a few methods/classes that are deprecated in 1.5 - this
means that even though they are shunned upon they are still present
and working - which makes your 1.4 - 1.5 efforts easier because you can
avoid doing quite a lot code changes which means less effort before you
get a working system again.

Version 6, on the other hand, removes many of the deprecations of 1.5
which means you will have to replace these before you can a successful
compile.

It depends on your style but I like to do things in shorter increments
with many small successes rather than a big huge effort with no success
for possibly many days, depending on the size of your code, and then one
big success at the end (but you'll probably still have some runtime only
errors to tackle).


Bill-

On Fri, Oct 19, 2012 at 4:30 PM, Jered Myers
jer...@maplewoodsoftware.com wrote:

I am working on migrating a large application from Wicket 1.4.18 to

Wicket

6.x.  Is it better to convert to 1.5 first and then to 6.x or to just

go

straight to 6.x?  Thanks.  Also, an early thanks to everybody who

took

the

time to write the migration guides!

Jered


-
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


-
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



Upgrade Advice

2012-10-19 Thread Jered Myers
I am working on migrating a large application from Wicket 1.4.18 to 
Wicket 6.x.  Is it better to convert to 1.5 first and then to 6.x or to 
just go straight to 6.x?  Thanks.  Also, an early thanks to everybody 
who took the time to write the migration guides!


Jered


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



Re: Custom XHTML tag

2012-07-13 Thread Jered Myers

This seems to be getting me where I want to go with the xhtml tag:
http://sanityresort.blogspot.com/2011/08/creating-custom-wicket-tag-resolver.html

On 07/13/2012 01:40 AM, Decebal Suiu wrote:

Hi

First, is it a good question.
My solution use jqwicket tooltip and I touch both java and html files but
it's ok for me.


InlineHelp.java

public class InlineHelp extends Panel {

private static final long serialVersionUID = 1L;

public InlineHelp(String id, IModelString messageModel) {
   super(id, messageModel);
}

public InlineHelp(String id, String message) {
  super(id, Model.Stringof(message));
}

@Override
protected void onInitialize() {
   super.onInitialize();

   setRenderBodyOnly(true);

   WebComponent image = new ContextImage(image, /images/help.png) {

  private static final long serialVersionUID = 1L;

 @Override
  protected void onComponentTag(ComponentTag tag) {
 tag.put(title, (String)
InlineHelp.this.getDefaultModelObject());
 }

 };
image.add(new TipTipBehavior(new TipTipOptions().maxWidth(auto)));
add(image);
}

}


InlineHelp.html

?xml version=1.0 encoding=utf-8?
html xmlns:wicket=http://wicket.apache.org/;
wicket:panel
  
/wicket:panel

/html


How to use

java

form.add(new InlineHelp(emailHelp, If you want some notifications));

html

Email notifications
input type=checkbox wicket:id=emailNotification/


Best regards,
Decebal




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Custom-XHTML-tag-tp4650489p4650506.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






Custom XHTML tag

2012-07-12 Thread Jered Myers

I am using Wicket 1.4.18.

I need to add custom tool tips to many fields in my application. The 
spec requires a help image with the tool tip (like the question mark 
JIRA uses) at the end of my field label that displays the tool tip on 
mouseover.  The tool tip messages must be localized.  The goal is to 
make this as simple as possible for programmers to add. To make it 
simple, I want to avoid adding code to both the Java and the markup on 
each page.  I can use my base page to contribute jQuery (see Step 7 in 
https://cwiki.apache.org/WICKET/how-to-add-tooltips.html) and I would 
only like to touch the html file on the extending pages.


Is there a way I can make a custom xhtml tag to allow me to replace the 
tag with markup?  I am thinking of something like AutoLabelResolver and 
wicket:message.


Here is an example of the markup (just assume I am already contributing 
the JavaScript I need):
label wicket:for=firstNamewicket:label[First 
Name]/wicket:label/label*/wicket:tooltip/* key=firstNameTip

input type=text wicket:id=firstName

Properties file:
firstName=First Name
firstNameTip=This is the first name

Rendered it would look something like this:
label for=firstName221 class=requiredFirst Name/labelimg 
src=blah id=img323 title=This is the first name /

input type=text name=balh:firstName id=firstName221

Thanks for taking the time to read this!

Jered Myers


Re: Cannot detect ModalWindow cancel

2012-02-01 Thread Jered Myers

Thanks for your help!  I will look into this.

On 02/01/2012 11:34 AM, Chris Colman wrote:

In trying to solve your problem of determining how the user closed the
form you might find the ModalX library in Wicketstuff useful.

ModalX (Modal eXtensions) for Wicket (part of Wickestuff) provides a
generic modal panel, modal form which you can simply extend to build
your own modal panels, modal forms and when you use that you not only
have extremely easy modal construction but you also inherit some
standard behaviours that are common to modal windows in many different
traditional OO UI frameworks.

One of the standard behaviours available in many OO UI frameworks is the
concept of a 'modal result' whereby the method by which the user closed
the modal is stored and accessible in the form object after closure.

In the ModalFormPanel the possible values returned by getModalResult()
are:

public static final int MR_OK = 1;
public static final int MR_CANCEL = 2;

MR_CANCEL indicates the user closed the form using the cancel button or
the X button in the top right corner. Both of these actions are
semantically the same.

In MessageBox that extends MessageBox the following addition
getModalResults() values are:

public static final int MR_YES = 3;
public static final int MR_NO = 4;

because MessageBox can be constructed with a variety of OK/Cancel/Yes/No
combinations in the control panel. These constants are MB_ not MR_
because they aren't modal results but rather specify the combination of
buttons to display in the Message Box.

public static final int MB_OK = 0;
public static final int MB_OK_CANCEL = 1;
public static final int MB_YES_NO = 2;
public static final int MB_YES_NO_CANCEL = 3;


-Original Message-
From: Andrea Del Bene [mailto:adelb...@ciseonweb.it]
Sent: Wednesday, 1 February 2012 8:49 PM
To: users@wicket.apache.org
Subject: Re: Cannot detect ModalWindow cancel

Hi Jered,

this is a known issue, you can find more informations here:
https://issues.apache.org/jira/browse/WICKET-3809

I have a ModalWindow where I need to know if the user saved in the
WindowClosedCallback or if they chose to click the X to close the
window.  To do this in Wicket 1.4, I just set a variable on the page
that the ModalWindow gets in the PageCreator and then check the
variable in the WindowClosedCallback.  When I try this in Wicket 1.5
it doesn't work.  My variable retains the value I initialized it to
and not the value I updated it to when I submitted the form on the
ModalWindow page.  I am attaching a quickstart with the 1.5.4 version
of Wicket.  This is where the bug appears.  I updated the POM and a
few files to test the same code with 1.4.19 and it works.



-
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



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



Re: Shibboleth Integration

2012-01-17 Thread Jered Myers

I figured out a solution.  Here is how the get the eppn I needed in Wicket:

final HttpServletRequest request 
=(HttpServletRequest)getRequestCycle().getRequest().getContainerRequest();
String eppn = request.getAttribute(eppn) != null ? 
request.getAttribute(eppn).toString() : not set;


The application I was working in has multiple forms of authentication.  
The login process allows user to access the application from several 
bookmarkable pages which redirect to different authentication systems.  
I was having problems as I was redirecting after login and the page I 
was jumping to was not secured by Shibboleth directly.  The attribute 
for eppn had to be grabbed after returning from the Shibboleth login 
page and before redirecting to the home page.


The file that tells Shibboleth what to secure was in httpd.conf in 
/etc/apache2.


On 01/16/2012 04:28 PM, Jered Myers wrote:
I am attempting to integrate with Shibboleth using Tomcat 6 and Wicket 
1.4.18.  I don't want to get into too much detail on Shibboleth in 
this list, but I was wonder in anybody had already done this and is 
able to get the eppn attribute back after successfully logging in.  I 
need to know the user that is logging in for my Wicket application and 
all of the login is completed on the Shibboleth identity providers 
login page.




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



Shibboleth Integration

2012-01-16 Thread Jered Myers
I am attempting to integrate with Shibboleth using Tomcat 6 and Wicket 
1.4.18.  I don't want to get into too much detail on Shibboleth in this 
list, but I was wonder in anybody had already done this and is able to 
get the eppn attribute back after successfully logging in.  I need to 
know the user that is logging in for my Wicket application and all of 
the login is completed on the Shibboleth identity providers login page.


--
Jered Myers


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



Duplicate Markup Ids

2011-11-14 Thread Jered Myers
I am getting components with duplicate markup ids in my label 
components.  What can cause this to happen?


I am letting Wicket set the markup ids.  Only one user is setup in a 
manner that creates the problem, so in general there is not a 
duplication problem.  As I understand it the markup id number is coming 
from the Session's nextSequenceValue method, so I don't see how it could 
be duplicated.  The components are getting built by multiple instances 
of the same class and added into the same array.  Here is an example 
reduced down to the basic parts:


Several classes build the MyDisplayRow objects and add them to the same 
ArrayList...

for (DataRow data : myData)
{
  MyDisplayRow row = new MyDisplayRow();
  row.setLabelComponent(new Label(headerLabel, data.getTextColumnData());
  getMyRowArrayList().add(row);
}

...
ListViewMyDispayRow repeater = new ListViewMyDisplayRow(repeater, 
myRowArrrayListModel)

{
 protected void populateItem(ListItemMyDisplayRow item)
 {
// Here is where I see the duplicate markup ids
log.debug(item.getModelObject().getLabelComponent().getMarkupId());
item.add(item.getModelObject().getLabelComponent());
 }
}

--
Jered Myers


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



Re: Duplicate Markup Ids

2011-11-14 Thread Jered Myers
The HTML markup is always span wicket:id=headerLabel/span, so I 
think the answer is no.  I end up with a markup id like headerLabel8f.


On 11/14/2011 12:54 PM, Sven Meier wrote:

Do you have markup ids pre-defined in your html markup?

Sven

On 11/14/2011 09:39 PM, Jered Myers wrote:
I am getting components with duplicate markup ids in my label 
components.  What can cause this to happen?


I am letting Wicket set the markup ids.  Only one user is setup in a 
manner that creates the problem, so in general there is not a 
duplication problem.  As I understand it the markup id number is 
coming from the Session's nextSequenceValue method, so I don't see 
how it could be duplicated.  The components are getting built by 
multiple instances of the same class and added into the same array.  
Here is an example reduced down to the basic parts:


Several classes build the MyDisplayRow objects and add them to the 
same ArrayList...

for (DataRow data : myData)
{
  MyDisplayRow row = new MyDisplayRow();
  row.setLabelComponent(new Label(headerLabel, 
data.getTextColumnData());

  getMyRowArrayList().add(row);
}

...
ListViewMyDispayRow repeater = new 
ListViewMyDisplayRow(repeater, myRowArrrayListModel)

{
 protected void populateItem(ListItemMyDisplayRow item)
 {
// Here is where I see the duplicate markup ids
log.debug(item.getModelObject().getLabelComponent().getMarkupId());
item.add(item.getModelObject().getLabelComponent());
 }
}




-
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: Duplicate Markup Ids

2011-11-14 Thread Jered Myers

I forgot to post Wicket version 1.4.18

On 11/14/2011 02:07 PM, Jered Myers wrote:
The HTML markup is always span wicket:id=headerLabel/span, so I 
think the answer is no.  I end up with a markup id like headerLabel8f.


On 11/14/2011 12:54 PM, Sven Meier wrote:

Do you have markup ids pre-defined in your html markup?

Sven

On 11/14/2011 09:39 PM, Jered Myers wrote:
I am getting components with duplicate markup ids in my label 
components.  What can cause this to happen?


I am letting Wicket set the markup ids.  Only one user is setup in a 
manner that creates the problem, so in general there is not a 
duplication problem.  As I understand it the markup id number is 
coming from the Session's nextSequenceValue method, so I don't see 
how it could be duplicated.  The components are getting built by 
multiple instances of the same class and added into the same array.  
Here is an example reduced down to the basic parts:


Several classes build the MyDisplayRow objects and add them to the 
same ArrayList...

for (DataRow data : myData)
{
  MyDisplayRow row = new MyDisplayRow();
  row.setLabelComponent(new Label(headerLabel, 
data.getTextColumnData());

  getMyRowArrayList().add(row);
}

...
ListViewMyDispayRow repeater = new 
ListViewMyDisplayRow(repeater, myRowArrrayListModel)

{
 protected void populateItem(ListItemMyDisplayRow item)
 {
// Here is where I see the duplicate markup ids
log.debug(item.getModelObject().getLabelComponent().getMarkupId());
item.add(item.getModelObject().getLabelComponent());
 }
}




-
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



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



Re: Duplicate Markup Ids

2011-11-14 Thread Jered Myers
I found the problem.  It was not a Wicket bug as expected.  Thanks for 
taking the time to look at this anyway.


On 11/14/2011 03:36 PM, Jered Myers wrote:

I forgot to post Wicket version 1.4.18

On 11/14/2011 02:07 PM, Jered Myers wrote:
The HTML markup is always span wicket:id=headerLabel/span, so I 
think the answer is no.  I end up with a markup id like headerLabel8f.


On 11/14/2011 12:54 PM, Sven Meier wrote:

Do you have markup ids pre-defined in your html markup?

Sven

On 11/14/2011 09:39 PM, Jered Myers wrote:
I am getting components with duplicate markup ids in my label 
components.  What can cause this to happen?


I am letting Wicket set the markup ids.  Only one user is setup in 
a manner that creates the problem, so in general there is not a 
duplication problem.  As I understand it the markup id number is 
coming from the Session's nextSequenceValue method, so I don't see 
how it could be duplicated.  The components are getting built by 
multiple instances of the same class and added into the same 
array.  Here is an example reduced down to the basic parts:


Several classes build the MyDisplayRow objects and add them to the 
same ArrayList...

for (DataRow data : myData)
{
  MyDisplayRow row = new MyDisplayRow();
  row.setLabelComponent(new Label(headerLabel, 
data.getTextColumnData());

  getMyRowArrayList().add(row);
}

...
ListViewMyDispayRow repeater = new 
ListViewMyDisplayRow(repeater, myRowArrrayListModel)

{
 protected void populateItem(ListItemMyDisplayRow item)
 {
// Here is where I see the duplicate markup ids

log.debug(item.getModelObject().getLabelComponent().getMarkupId());

item.add(item.getModelObject().getLabelComponent());
 }
}




-
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



-
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: Duplicate Markup Ids

2011-11-14 Thread Jered Myers
The actual object I am working with is more complex than my code 
example.  There was a merge row function that was merging rows 
together.  The merge had a bug where it was merging the row and, in some 
scenarios, creating a new row at the same time.  This meant that both 
the merged row and the extra row had the same component.  It was blowing 
up because I was adding the same component to different rows in the 
repeater.  Doh!


On 11/14/2011 06:52 PM, Jeremy Thomerson wrote:

Curious, what was it?

PS - Sent from a tablet. Please excuse typos, spelling and compiler errors.

-- Jeremy Thomerson http://wickettraining.com Need a CMS for Wicket? 
Use Brix! http://brixcms.org On Nov 14, 2011 7:18 PM, Jered Myers 
jer...@maplewoodsoftware.com wrote:

  I found the problem.  It was not a Wicket bug as expected.  Thanks for
  taking the time to look at this anyway.

  On 11/14/2011 03:36 PM, Jered Myers wrote:


  I forgot to post Wicket version 1.4.18

  On 11/14/2011 02:07 PM, Jered Myers wrote:


  The HTML markup is alwaysspan wicket:id=headerLabel/**span, so I
  think the answer is no.  I end up with a markup id like headerLabel8f.

  On 11/14/2011 12:54 PM, Sven Meier wrote:


  Do you have markup ids pre-defined in your html markup?

  Sven

  On 11/14/2011 09:39 PM, Jered Myers wrote:


  I am getting components with duplicate markup ids in my label
  components.  What can cause this to happen?

  I am letting Wicket set the markup ids.  Only one user is setup in a
  manner that creates the problem, so in general there is not a duplication
  problem.  As I understand it the markup id number is coming from the
  Session's nextSequenceValue method, so I don't see how it could be
  duplicated.  The components are getting built by multiple instances of 
the
  same class and added into the same array.  Here is an example reduced 
down
  to the basic parts:

  Several classes build the MyDisplayRow objects and add them to the
  same ArrayList...
  for (DataRow data : myData)
  {
MyDisplayRow row = new MyDisplayRow();
row.setLabelComponent(new Label(headerLabel,
  data.getTextColumnData());
getMyRowArrayList().add(row);
  }

  ...
  ListViewMyDispayRow  repeater = new 
ListViewMyDisplayRow(**repeater,
  myRowArrrayListModel)
  {
protected void populateItem(ListItem**MyDisplayRow  item)
{
  // Here is where I see the duplicate markup ids
  log.debug(item.getModelObject(**).getLabelComponent().**
  getMarkupId());
  item.add(item.getModelObject()**.getLabelComponent());
}
  }




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



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



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



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




PageMap Reuse

2011-09-08 Thread Jered Myers

I'm using Wicket 1.4.18.

I'm having trouble moving between browser tabs in my application as I am 
opening a duplicate tab.  Here is an example:
1.  The user starts on browser tab A via a mounted page (e.g. 
www.mysite.com/MyApp/PageA)
2.  The user clicks on a bookmarkable link (with popup settings 
including a PageMap name) to browser tab B.  The new browser tab opens 
correctly.
3.  The user clicks on a bookmarkable link (with popup settings 
including a PageMap name) to browser tab C.  The new browser tab opens 
correctly.
4.  The user clicks on a bookmarkable link (with popup settings 
including a PageMap name) to browser tab B.  The browser tab for B is 
already open, so the user switches back to browser tab B.
5.  The user clicks on a bookmarkable link (with popup settings 
including a PageMap name) to browser tab A.  A new browser tab A opens 
when I want the user to be returned to the already open tab A.


Here is my mounting procedure:
mount(new QueryStringUrlCodingStrategey(PageA, PageA.class);

Also, AutomaticMultiWindowSupport is on.

--
Jered


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



Re: PageMap Reuse

2011-09-08 Thread Jered Myers
It appears the initial window name is wicket-wicket:default.  The 
other tab windows match the PageMap name.  Thanks for the help!  I will 
explore a way to manipulate the window name.


On 9/8/2011 3:16 PM, Dan Retzlaff wrote:

In step #5, what page map name do you use in your popup settings? Does it
match the window.name global variable in that tab? (Use a browser debugger
to check.) If yes, that should do the trick by my reading of the code.

On Thu, Sep 8, 2011 at 2:19 PM, Jered Myersjer...@maplewoodsoftware.comwrote:


I'm using Wicket 1.4.18.

I'm having trouble moving between browser tabs in my application as I am
opening a duplicate tab.  Here is an example:
1.  The user starts on browser tab A via a mounted page (e.g.
www.mysite.com/MyApp/PageA)
2.  The user clicks on a bookmarkable link (with popup settings including a
PageMap name) to browser tab B.  The new browser tab opens correctly.
3.  The user clicks on a bookmarkable link (with popup settings including a
PageMap name) to browser tab C.  The new browser tab opens correctly.
4.  The user clicks on a bookmarkable link (with popup settings including a
PageMap name) to browser tab B.  The browser tab for B is already open, so
the user switches back to browser tab B.
5.  The user clicks on a bookmarkable link (with popup settings including a
PageMap name) to browser tab A.  A new browser tab A opens when I want the
user to be returned to the already open tab A.

Here is my mounting procedure:
mount(new QueryStringUrlCodingStrategey(**PageA, PageA.class);

Also, AutomaticMultiWindowSupport is on.

--
Jered


--**--**-
To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apache.orgusers-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: PageMap Reuse

2011-09-08 Thread Jered Myers
Do you know where I can set the window name of the first window?  I can 
use JavaScript to reset it, but I am not sure if this will mess up the 
PageMap process.


On 9/8/2011 4:12 PM, Dan Retzlaff wrote:

Check out PopupSettings#getPopupJavaScript(). If the pagemap name is null it
uses . Since you've enabled AutomaticMultiWindowSupport, you know it
should be wicket-wicket:default.

You might consider submitting a JIRA to suggest that this function use  or
wicket-wicket:default based
on Application.get().getPageSettings().getAutomaticMultiWindowSupport().
That way other users won't encounter this gotcha.

On Thu, Sep 8, 2011 at 3:47 PM, Jered Myersjer...@maplewoodsoftware.comwrote:


It appears the initial window name is wicket-wicket:default.  The other
tab windows match the PageMap name.  Thanks for the help!  I will explore a
way to manipulate the window name.


On 9/8/2011 3:16 PM, Dan Retzlaff wrote:


In step #5, what page map name do you use in your popup settings? Does it
match the window.name global variable in that tab? (Use a browser
debugger
to check.) If yes, that should do the trick by my reading of the code.

On Thu, Sep 8, 2011 at 2:19 PM, Jered Myersjeredm@**
maplewoodsoftware.comjer...@maplewoodsoftware.comwrote:

  I'm using Wicket 1.4.18.

I'm having trouble moving between browser tabs in my application as I am
opening a duplicate tab.  Here is an example:
1.  The user starts on browser tab A via a mounted page (e.g.
www.mysite.com/MyApp/PageA)
2.  The user clicks on a bookmarkable link (with popup settings including
a
PageMap name) to browser tab B.  The new browser tab opens correctly.
3.  The user clicks on a bookmarkable link (with popup settings including
a
PageMap name) to browser tab C.  The new browser tab opens correctly.
4.  The user clicks on a bookmarkable link (with popup settings including
a
PageMap name) to browser tab B.  The browser tab for B is already open,
so
the user switches back to browser tab B.
5.  The user clicks on a bookmarkable link (with popup settings including
a
PageMap name) to browser tab A.  A new browser tab A opens when I want
the
user to be returned to the already open tab A.

Here is my mounting procedure:
mount(new QueryStringUrlCodingStrategey(PageA, PageA.class);

Also, AutomaticMultiWindowSupport is on.

--
Jered


--**
--**-
To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apa**che.orghttp://apache.org
users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




--**--**-
To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apache.orgusers-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



Label tag wicket:for question

2011-08-12 Thread Jered Myers
I am using a label tag with wicket:for (Wicket 1.4.18) and the text of 
the label is not replacing as I expect.


I am using a label tag in my HTML like so:

label wicket:for=firstName
span class=label-textName/span
/label
input type=text wicket:id=firstName /


In my Java code:

RequiredTextField? firstName = new RequiredTextFieldString(firstName)
firstName.setOutputMarkupId(true));
firstName.setLabel(new ModelString(Yo!); // TODO This should come 
from a properties file

add(firstName);

When the page renders, the text for the label tag is Name and I expect 
it to be Yo!.  The error message works and shows Field 'Yo!' is 
required.  Am I understanding the use of the label tag correctly?


Jered




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



Re: Label tag wicket:for question

2011-08-12 Thread Jered Myers

Thanks that worked perfectly!

On 08/12/2011 01:28 PM, Igor Vaynberg wrote:

this has been changed in later commits, use
wicket:labelName/wicket:label  instead ofspan class=label-text

-igor


On Fri, Aug 12, 2011 at 1:05 PM, Jered Myers
jer...@maplewoodsoftware.com  wrote:

I am using a label tag with wicket:for (Wicket 1.4.18) and the text of the
label is not replacing as I expect.

I am using a label tag in my HTML like so:

label wicket:for=firstName
span class=label-textName/span
/label
input type=text wicket:id=firstName /


In my Java code:

RequiredTextField?  firstName = new RequiredTextFieldString(firstName)
firstName.setOutputMarkupId(true));
firstName.setLabel(new ModelString(Yo!); // TODO This should come from a
properties file
add(firstName);

When the page renders, the text for the label tag is Name and I expect it
to be Yo!.  The error message works and shows Field 'Yo!' is required.
  Am I understanding the use of the label tag correctly?

Jered




-
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



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



Re: Graceful Session Expiry

2011-06-09 Thread Jered Myers
I have done this in the past (not in Wicket).  The problem I ran into 
was JavaScript alerts stopping the JavaScript timer thread until the 
user closed the alert box.  I used a modal window for my warning message 
to prevent that problem.


On 6/9/2011 2:25 AM, Martin Grigorov wrote:

Yep, this will work.

For each request to the page you'll have to reset the JS counter.
This JS counter will count from session-timeout to 0 and display some
notification when it reaches the treshold.
But you have to assure that this counter is reset for *every* request.

On Thu, Jun 9, 2011 at 11:11 AM, Arjun Dhardhar...@yahoo.com  wrote:

I just had an idea to solve both the problems. (please see if it makes sense)

Well, what if we on every Page request tell the Browser how much time it has
left = Session Duration. (Pass it via some param or header script variable)
And let the Browser do house keeping for that window session.

I'll put a script via WebPage.setHeader(...) in my base class; extended by
all pages that use a session.
The rest is taken care by the client.

..though am not sure if there is a way for me to inject into all pages that
use a particular session object automatically or I should keep it simple and
put it in the base WebPage class?
(All WebPages may not share a common parent)


thanks

-
Software documentation is like sex: when it is good, it is very, very good; and 
when it is bad, it is still better than nothing!
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Graceful-Session-Expiry-tp3584660p3584943.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



JavaScript form submit

2011-05-26 Thread Jered Myers
I am having trouble figuring out how to submit a form that is 
dynamically created via JavaScript.  The page uses JavaScript to create 
a list of commands inside a form element like so:


form
input type=hidden name=ActionCd value=Move /
input type=hidden name=Origination value=Person1 /
input type=hidden name=Destination value=Person2 /
input type=hidden name=ActionCd value=Copy /
input type=hidden name=Origination value=Person3 /
input type=hidden name=Destination value=Person5 /
/form

I need to be able to complete each command in my Wicket code like so:
public void onSubmit() {
ListCommands data =  getAndParseFormDataIntoCommands();

for (Command com : data) {
  if( com.getAction() == Action.MOVE) do this;
  if( com.getAction() == Action.COPY) do that;
}
}

For now, I am taking an empty Wicket Form and copying in the innerHTML 
of my dynamic form and then submitting the Wicket Form.  This gets me 
into the onSubmit of the Wicket Form Java code.  When I 
Form.toString(true) the Wicket Form inside the onSubmit(), it does not 
contain my newly copied over input elements.  I think this is a 
client/server issue, but I am not sure.


Does anybody know of a good way to do something like this?  I have two 
problems.  First, I need to get the dynamic form data to the server side 
of the code.  Second, I need to know how to parse the data as I expect 
raw HTML.  I tried using MarkupStream for the parsing, but I don't know 
if that is the correct tool.  I want to do this inside a Panel, so I 
don't want to post the form to another page if I don't have to do so.  
Thanks for any help!


--
Jered Myers



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



Re: JavaScript form submit

2011-05-26 Thread Jered Myers
Using the Request object seems to work here.  I am not sure if this is a 
good idea.  Here is an example from in the form onSubmit():


Request request = RequestCycle.get().getRequest();
String[] actions = request.getParameters(ActionCd);
String[] orginations = request.getParameters(Origination);
...

On 5/26/2011 4:07 PM, Jered Myers wrote:
I am having trouble figuring out how to submit a form that is 
dynamically created via JavaScript.  The page uses JavaScript to 
create a list of commands inside a form element like so:


form
input type=hidden name=ActionCd value=Move /
input type=hidden name=Origination value=Person1 /
input type=hidden name=Destination value=Person2 /
input type=hidden name=ActionCd value=Copy /
input type=hidden name=Origination value=Person3 /
input type=hidden name=Destination value=Person5 /
/form

I need to be able to complete each command in my Wicket code like so:
public void onSubmit() {
ListCommands data =  getAndParseFormDataIntoCommands();

for (Command com : data) {
  if( com.getAction() == Action.MOVE) do this;
  if( com.getAction() == Action.COPY) do that;
}
}

For now, I am taking an empty Wicket Form and copying in the innerHTML 
of my dynamic form and then submitting the Wicket Form.  This gets me 
into the onSubmit of the Wicket Form Java code.  When I 
Form.toString(true) the Wicket Form inside the onSubmit(), it does not 
contain my newly copied over input elements.  I think this is a 
client/server issue, but I am not sure.


Does anybody know of a good way to do something like this?  I have two 
problems.  First, I need to get the dynamic form data to the server 
side of the code.  Second, I need to know how to parse the data as I 
expect raw HTML.  I tried using MarkupStream for the parsing, but I 
don't know if that is the correct tool.  I want to do this inside a 
Panel, so I don't want to post the form to another page if I don't 
have to do so.  Thanks for any help!




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



Re: BookmarkablePageLink with PopupSettings

2011-05-24 Thread Jered Myers
I looks like this problem is not replicating in a Quickstart.  I thought 
it might be an expected behavior of some sort as removing the 
PopupSettings fixed my problem.


On 5/23/2011 10:47 PM, Martin Grigorov wrote:

put a breakpoint in your page constructor and see why it is called twice

On Mon, May 23, 2011 at 11:48 PM, Jered Myers
jer...@maplewoodsoftware.comwrote:


I am attempting to open a new browser tab to a bookmarkable page.  The
constructor of my page is being called twice.  Is there a way I can prevent
this from happening?  When I remove the PopupSettings the constructor is
only called once, but the page does not open in a new tab.

Here is an example fragment of my implementation in Wicket 1.4.16:

ApplicationClass.java... mount(new QueryStringUrlCodingStrategy(MyPage,
MyPage.class));

MyPageLink.java
public class MyPageLink extends BookmarkablePageLinkInteger
{
  public MyPageLink(String id, IModelInteger  identifierModel)
  {
 super(id, MyPage.class);
 setParameter(Identifier, identifierModel.getObject());
 PopupSettings popupSettings = new PopupSettings( blah | blah | blah);
-- Only PopupSettings.blah here
 setPopupSettings(popupSettings);
  }
}

MyPage.java
public class MyPage extends WebPage
{
public MyPage(final PageParameters params)
{
   super(params);
}
}

--
Jered


-
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: BookmarkablePageLink with PopupSettings

2011-05-24 Thread Jered Myers

Setting a pageMapName in PopupSettings fixed this problem.

On 5/24/2011 9:16 AM, Jered Myers wrote:
I looks like this problem is not replicating in a Quickstart.  I 
thought it might be an expected behavior of some sort as removing the 
PopupSettings fixed my problem.


On 5/23/2011 10:47 PM, Martin Grigorov wrote:

put a breakpoint in your page constructor and see why it is called twice

On Mon, May 23, 2011 at 11:48 PM, Jered Myers
jer...@maplewoodsoftware.comwrote:


I am attempting to open a new browser tab to a bookmarkable page.  The
constructor of my page is being called twice.  Is there a way I can 
prevent
this from happening?  When I remove the PopupSettings the 
constructor is

only called once, but the page does not open in a new tab.

Here is an example fragment of my implementation in Wicket 1.4.16:

ApplicationClass.java... mount(new 
QueryStringUrlCodingStrategy(MyPage,

MyPage.class));

MyPageLink.java
public class MyPageLink extends BookmarkablePageLinkInteger
{
  public MyPageLink(String id, IModelInteger  identifierModel)
  {
 super(id, MyPage.class);
 setParameter(Identifier, identifierModel.getObject());
 PopupSettings popupSettings = new PopupSettings( blah | blah | 
blah);

-- Only PopupSettings.blah here
 setPopupSettings(popupSettings);
  }
}

MyPage.java
public class MyPage extends WebPage
{
public MyPage(final PageParameters params)
{
   super(params);
}
}

--
Jered


-
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



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



BookmarkablePageLink with PopupSettings

2011-05-23 Thread Jered Myers
I am attempting to open a new browser tab to a bookmarkable page.  The 
constructor of my page is being called twice.  Is there a way I can 
prevent this from happening?  When I remove the PopupSettings the 
constructor is only called once, but the page does not open in a new tab.


Here is an example fragment of my implementation in Wicket 1.4.16:

ApplicationClass.java... mount(new 
QueryStringUrlCodingStrategy(MyPage, MyPage.class));


MyPageLink.java
public class MyPageLink extends BookmarkablePageLinkInteger
{
  public MyPageLink(String id, IModelInteger identifierModel)
  {
 super(id, MyPage.class);
 setParameter(Identifier, identifierModel.getObject());
 PopupSettings popupSettings = new PopupSettings( blah | blah | 
blah); -- Only PopupSettings.blah here

 setPopupSettings(popupSettings);
  }
}

MyPage.java
public class MyPage extends WebPage
{
public MyPage(final PageParameters params)
{
   super(params);
}
}

--
Jered


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



Re: wicket datatable to excel

2011-04-08 Thread Jered Myers
I haven't used Apache POI, so that may be the way to go.  For my exports 
I use JExcel (http://jexcelapi.sourceforge.net/resources/faq/).  With 
JExcel you will need to loop through the cells in you data table and 
create the Excel cells to match.  There is example code in the FAQ I linked.


On 4/8/2011 6:55 AM, Rafał Krupiński wrote:

On Thu, Apr 7, 2011 at 16:40, henryhenstri...@yahoo.com  wrote:

Hi guys,

please i need a code to export my dataTable values into an excel format on
click of a button.

Any help will do.

Use Apache POI to create excel file/stream and IResourceListener to
hook it to Wicket.

Next time research on your own and ask more specific questions ;-).



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



setObject with invisible panel

2011-03-25 Thread Jered Myers
I have a form with a section that the user can show or hide via an 
AjaxLink.  The AjaxLink is hiding and showing using 
Component.isVisible(boolean).  When the user expands the section of the 
form, enters data, collapses the section of the form, and then saves, I 
lose the edits the user makes.  Is there a way to keep the edits without 
having to change my AjaxLink to just manipulate the display style 
attribute?  The hide/show section of the form  starts hidden so it 
doesn't need to load from the DB until the LoadableDetachableModel 
attaches and I would lose that if I only manipulate the style attribute.


Jered Myers



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



Re: Trouble with DropDownChoice

2011-03-25 Thread Jered Myers
You can create a simple PropertyModel to hold the value your form is 
trying to set.  Here is an example:


public  Pageextends  WebPage {
   private  List letters = Arrays.asList(new  String[] {A,B,C  }));
   public  String  selected =B;

   public  Page() {
 Form form =new  Form(form);
 DropDownChoice choice=new  DropDownChoice(ddc,new  
PropertyModel(this,selected), letters);
   }
}

The example is from: 
https://cwiki.apache.org/WICKET/dropdownchoice-examples.html.  It is 
missing the generics if you are working in 1.4.x, but it demonstrates 
the process well.
The model object here is the selected string.  When the form saves it 
will set the selected string with the value in the drop down.


On 3/25/2011 9:40 AM, Jim Goodwin wrote:

I'm trying to follow the example in the Javadoc for DropDownChoice
which says:


Java:

  List SITES = Arrays.asList(new String[] { The Server Side, Java 
Lobby, Java.Net });


  // Add a dropdown choice component that uses Input's 'site' 
property to designate the
  // current selection, and that uses the SITES list for the 
available options.
  // Note that when the selection is null, Wicket will lookup a 
localized string to
  // represent this null with key: id + '.null'. In this case, this 
is 'site.null'

  // which can be found in DropDownChoicePage.properties

  form.add(new DropDownChoice(site, SITES));
  HTML:
select wicket:id=site
optionsite 1/option
optionsite 2/option
/select

 I follow this quite closely. The code is inside a form:


ListString recCapNames = new ArrayListString();
for (Capability cap : recognizedCaps)
recCapNames.add(cap.toString());

final DropDownChoice permissionDropDown = new 
DropDownChoice(

permissionDropdown, recCapNames);
add(permissionDropDown);



select wicket:id=permissionDropdown
optionP1/option
optionP2/option
/select



The page renders fine. The dropdown shows the right elements in the 
list when I pull it down,
and allows me to select one, etc. But when I hit any button on the 
form  it pukes,

complaining about trying to setModelObject on a null model.

(I have several buttons on the form, only one of which is related to 
the DropDownChoice,
and they all fail the same way. Their onSubmit() methods never get 
reached: some sort of
general process of form-handling is run first, and that's where the 
exception happens.)


Stack dump below. Wicket 1.5 RC2.

Any ideas?

Thanks in advance
Jim

Stackdump:

Root cause:

java.lang.IllegalStateException: Attempt to set model object on null 
model of component: 
AdministerGroupForm:permissionspanel:permissionpanelform:permissionDropdown
 at 
org.apache.wicket.Component.setDefaultModelObject(Component.java:3006)
 at 
org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1038)
 at 
org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:221)
 at 
org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:192)
 at 
org.apache.wicket.util.visit.Visits.visitPostOrderHelper(Visits.java:274)
 at 
org.apache.wicket.util.visit.Visits.visitPostOrderHelper(Visits.java:263)
 at 
org.apache.wicket.util.visit.Visits.visitPostOrder(Visits.java:246)
 at 
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:384)
 at 
org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1669)
 at 
org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1634)

 at org.apache.wicket.markup.html.form.Form.process(Form.java:807)
 at 
org.apache.wicket.markup.html.form.StatelessForm.process(StatelessForm.java:61)
 at 
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:743)
 at 
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:685)

 at java.lang.reflect.Method.invoke(Unknown Source)
 at 
org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:259)
 at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:215)
 at 
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:171)
 at 
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:157)
 at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:706)
 at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
 at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
 at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
 at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
 at 

Color Picker

2011-03-22 Thread Jered Myers
Does anybody know of a good color picker component for Wicket?  I am 
seeing the DojoColorPicker in Wicket Stuff, but I am not finding code 
for it in Github.  I am using Wicket 1.4.16.  I don't want to waste time 
rolling my own if there is already one out there that is already setup 
as a Wicket component.


Jered Myers



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



Submit Form from AjaxFormChoiceComponentUpdatingBehavior

2010-12-20 Thread Jered Myers
Does anybody know a good way to trigger a form submit from inside the 
onUpdate method of an AjaxFormChoiceComponentUpdatingBehavior?


Here is an example:
int i = 0;
int mode = 0;
...
RadioGroupInteger group = new RadioGroupInteger(group, new 
PropertyModelInteger(this, mode));

group.add(new AjaxFormChoiceComponentUpdatingBehavior() {
protected void onUpdate(AjaxRequestTarget target) {
if(mode == 3  i ==0) {
// submit my form ==
}
}
});

RadioInteger mode1 = new RatioInteger(one, new ModelInteger(1));
group.add(mode1);
RadioInteger mode2 = new RatioInteger(two, new ModelInteger(2));
group.add(mode2);
RadioInteger mode3 = new RatioInteger(three, new ModelInteger(3));
group.add(mode3);

Jered Myers



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



Re: Submit Form from AjaxFormChoiceComponentUpdatingBehavior

2010-12-20 Thread Jered Myers

Thanks, that worked!

On 12/20/2010 2:36 PM, Jeremy Thomerson wrote:

Probably something like this should work:

target.appendJavascript(Wicket.$(' + getForm().getMarkupId() + ').submit());

On Mon, Dec 20, 2010 at 4:34 PM, Jered Myers
jer...@maplewoodsoftware.com  wrote:

Does anybody know a good way to trigger a form submit from inside the
onUpdate method of an AjaxFormChoiceComponentUpdatingBehavior?

Here is an example:
int i = 0;
int mode = 0;
...
RadioGroupInteger  group = new RadioGroupInteger(group, new
PropertyModelInteger(this, mode));
group.add(new AjaxFormChoiceComponentUpdatingBehavior() {
protected void onUpdate(AjaxRequestTarget target) {
if(mode == 3  i ==0) {
// submit my form==
}
}
});

RadioInteger  mode1 = new RatioInteger(one, new ModelInteger(1));
group.add(mode1);
RadioInteger  mode2 = new RatioInteger(two, new ModelInteger(2));
group.add(mode2);
RadioInteger  mode3 = new RatioInteger(three, new ModelInteger(3));
group.add(mode3);

Jered Myers



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







--
Jered Myers
509-252-3550 x 109
Programmer/Analyst
Maplewood Software


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



Re: wickert:id changes to attribute

2010-10-06 Thread Jered Myers
 Good catch!  I must have looked at that line 20 times!  The problem 
was a missing end quote on a parent container attribute.


On 10/6/2010 3:25 PM, Jeremy Thomerson wrote:

That should be quotation marks

Jeremy Thomerson
http://wickettraining.com
-- sent from my smart phone, so please excuse spelling, formatting, or
compiler errors

On Oct 6, 2010 5:24 PM, Jeremy Thomersonjer...@wickettraining.com
wrote:

You probably have two shoptalk marks after your equals sign.

Jeremy Thomerson
http://wickettraining.com
-- sent from my smart phone, so please excuse spelling, formatting, or
compiler errors



On Oct 4, 2010 7:49 PM, Jered Myersjer...@maplewoodsoftware.com

wrote:

  My markup look...


--
Jered Myers
509-252-3550 x 109
Programmer/Analyst
Maplewood Software


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



wickert:id changes to attribute

2010-10-04 Thread Jered Myers

 My markup looks like this:
...
td
div wicket:id=canvasPanelstuff/div
/td
...

When I render the code and swap in another panel via 
canvasPanel.replaceWith(newPanel);, the page source looks like this:

...
td canvasPanel= 
  new panel markup
/td
...

Any ideas on why this would happen?  I looked through my markup and it 
looks correct.  I have seen the wicket:id become part of the id (e.g. 
id=canvasPanel0), but I have never seen a wicket:id become an attribute.


Jered


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



Where to post wicket jobs

2010-09-30 Thread Jered Myers
 I am looking for a good place to post small jobs (e.g. creating custom 
UI components) using Wicket like RentACoder.  Can someone please point 
me to a good site or the proper mailing list for this.  Thanks!


Jered


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



Wicket Rich Text Editor with YUI 2

2010-09-30 Thread Jered Myers
 We are looking for someone to make a Rich Text Editor using Wicket and 
YUI 2.  We are looking to make the editor easy to work with on the Java 
side (e.g. simple configuration of the toolbar via Java).  Its basic 
implementation if very javascript heavy and we want to be able to 
manipulate the control in a Wicket manner (e.g. see DatePicker), so 
that it can be used as easily as Wicket's TextArea.  The job, with the 
full details, is posted on RentACoder at 
http://www.vworker.com/RentACoder/misc/BidRequests/ShowBidRequest.asp?lngBidRequestId=1507539.


--
Jered Myers
Maplewood Software


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



Nesting Links

2010-04-12 Thread Jered Myers
I need to be able to nest links and have the link clicked on trigger, 
but not its parent.  I am not sure how to do this with a regular Link.  
Right now, I believe that I have a problem with event bubbling.  The 
parent link it firing when I click on the child.  Any help is appreciated.


Example:
An example would be a calendar day where the entire day is a link and 
the day contains text that is a different link. Clicking a day will open 
a panel that for inserting an event and clicking the text will open a 
different panel for editing the event.


div wicket:id=parent
div
  Click here to click paerent and insert
/div
table
tr
td
a href=# wicket:id=childto edit/a
/td
/tr
/table
/div

final Link parent = new Link(parent){
protected void onClick() { open insert panel };
}
add(parent);
final Link child= new Link(child){
protected void onClick() { open edit panel };
}
parent.add(child);

Jered Myers


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



Re: Nesting Links

2010-04-12 Thread Jered Myers
I figured out a solution that works for me, so here it is: 


protected void onComponentTag(ComponentTag tag) {
   super.onComponentTag(tag);
   String script = tag.getAttribute(onclick);
   String stopBubble = e = window.event; 
if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble = true;};

   tag.put(onclick, stopBubble + script);
} 

Jered Myers writes: 

I need to be able to nest links and have the link clicked on trigger, but 
not its parent.  I am not sure how to do this with a regular Link.  Right 
now, I believe that I have a problem with event bubbling.  The parent link 
it firing when I click on the child.  Any help is appreciated. 


Example:
An example would be a calendar day where the entire day is a link and the 
day contains text that is a different link. Clicking a day will open a 
panel that for inserting an event and clicking the text will open a 
different panel for editing the event. 


div wicket:id=parent
div
  Click here to click paerent and insert
/div
table
tr
td
a href=# wicket:id=childto edit/a
/td
/tr
/table
/div 


final Link parent = new Link(parent){
protected void onClick() { open insert panel };
}
add(parent);
final Link child= new Link(child){
protected void onClick() { open edit panel };
}
parent.add(child); 

Jered Myers 



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





Jered Myers
Programmer
Maplewood Software
(509)252-3550x109

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



Re: Clear feedback panel

2010-03-05 Thread Jered Myers
You can try grabbing the FeebackMessages via 
Session.get().getFeedbackMessages() or 
Session.get().getFeedbackMessages().messages(IFeedbackMessageFilter) and 
then call FeedbackMessage.markRendered().


On 3/5/2010 1:34 PM, Anna Simbirtsev wrote:

It does not work for some reason.

Session.get().cleanupFeedbackMessages();
target.addComponent(feedback);

The message is still visible.

On Fri, Mar 5, 2010 at 4:29 PM, Martin Makundi
martin.maku...@koodaripalvelut.com  wrote:

   

session.cleanupfeedbackmessages.

2010/3/5 Anna Simbirtsevasimbirt...@gmail.com:
 

Hi,

How can I clear FeedbackPanel messages?
I want to remove them from the page using target.addComponent(f); where f
   

is
 

FeedbackPanel.
I just don't know how to set messages to null.

Thanks,
Anna

   

-
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: Cannot get default invisible TextField's ModelObject ?

2010-01-20 Thread Jered Myers
What do you mean by cannot get their values?  I am wondering if the 
model's value is not showing in the TextField when it become visible or 
if the model's value is not getting set based on what you type into the 
TextField.  If your problem is that the value you type into the 
TextField is not getting to the model, check to make sure the Form that 
the TextField is in is reaching the Form's onSubmit method when you 
submit the form.  Wicket does not push the TextField value to the model 
until it has checked for required fields, converted the input, and 
validated the converted input.  If you can copy in the related code to 
this thread, that may help.


-Jered

On 1/20/2010 5:14 PM, smallufo wrote:

To make it more clear :
When the radio button is clicked , by implement AjaxEventBehavior(onClick)

, a default-invisible WebMarkupContainer is set visible ,
The WebMarkupContainer  contains other TextFields , which I cannot get their
values at all 
I've stuck with this problems for half day , searching but found no anwser
...
I need help

Wicket 1.4.5


2010/1/21 smallufosmall...@gmail.com

   

I have a form , which contains a radio button.
When user clicks the radio button , a default-invisible textfield is set
visible.
But I cannot get the textfield's Model Object , it is null 

What's the problem ? Did I miss anything ?

 
   


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



Popup New Window After Submit

2010-01-18 Thread Jered Myers
I need to process my Form and then popup a report in a new browser 
window with the result of the Form processing.  I would like to do this 
with one click from the user.  Any ideas if this solution is already 
built?  I tried to use Link with PopupSettings, but the form submit does 
not trigger and results in the form not being validated and the form 
component models not being updated with the user input.


Here is a simplified example, in Form.onSubmit():
{
int sum = userInput1 + userInput2;
PageParameters params = new PageParameters();
params.add(Total, String.valueOf(sum));

// I want the response in a new window
setResponse(new ReportPage(params));
}
--
Jered Myers
Programmer/Project Analyst
jer...@maplewoodsoftware.com mailto:jer...@maplewoodsoftware.com

Maplewood Software
508 W. 6th Ave, Suite 900
Spokane, WA 99204
(509) 252-3550 ext. 109
www.maplewoodsoftware.com

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



Javascript Resources Loading Slow

2009-12-18 Thread Jered Myers
I just converted my code from Wicket 1.4m2 to 1.4.4 and am see 
performance problems with resource load times.  For example, when I load 
a page that has a LinkTree in it, the browser takes a long time (20 - 30 
seconds) to load 
http://localhost:8080/MyProject/resources/org.apache.wicket.markup.html.tree.BaseTree/res/base;.  
I had a similar problem with a javascript file I was adding like so:


private static final CompressedResourceReference PROTO_JS = new 
CompressedResourceReference(ScriptaculousAjaxBehavior.class, 
prototype.js);

...
add(JavascriptPackageResource.getHeaderContribution(PROTO_JS));

When I commented these lines out, the problem went away.  Any ideas why 
this is so slow or what I can do to fix it?


Jered

www.maplewoodsoftware.com