Re: invalid URL when using a pageparameter that contains a quote

2011-11-03 Thread Ryan
1.5.2 works as expected (no backslash in the url).

Ryan

On Thu, Nov 03, 2011 at 01:07:33PM -0700, Igor Vaynberg exclaimed:

>Does it happen with 1.5.x?
>
>-igor
>On Nov 3, 2011 12:20 PM, "Ryan"  wrote:
>
>> Using Wicket 1.4.19 and doing something simple such as this:
>>
>> public HomePage(final PageParameters parameters) {
>>parameters.add("meh", "someone's link");
>>add(new BookmarkablePageLink("link",HomePage.class,
>> parameters));
>> }
>>
>> The url that is generated for the link is:
>> 127.0.0.1:8080/myproject/test/meh/someone\'s link
>>
>> If you then click the link the new url is:
>> 127.0.0.1:8080/myproject/test/meh/someone\\'s link/meh/someone\'s link
>>
>> This happens because JavascriptUtils.escapeQuotes() gets called on the
>> pageparameters. Am I missing something or is this just a bug? If it is a
>> bug I am happy to file a jira issue with a quickstart attached.
>>
>> Thanks,
>> Ryan
>>
>> -
>> 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



invalid URL when using a pageparameter that contains a quote

2011-11-03 Thread Ryan
Using Wicket 1.4.19 and doing something simple such as this:

public HomePage(final PageParameters parameters) {
parameters.add("meh", "someone's link");
add(new BookmarkablePageLink("link",HomePage.class, parameters));
}

The url that is generated for the link is:
127.0.0.1:8080/myproject/test/meh/someone\'s link

If you then click the link the new url is:
127.0.0.1:8080/myproject/test/meh/someone\\'s link/meh/someone\'s link

This happens because JavascriptUtils.escapeQuotes() gets called on the
pageparameters. Am I missing something or is this just a bug? If it is a
bug I am happy to file a jira issue with a quickstart attached. 

Thanks,
Ryan

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



Re: chrome + wicket ajax + back button = problem?

2010-10-11 Thread Ryan Crumley
I have (I am using MixedParamHybridUrlCodingStrategy) however in this case
the browser is not contacting the server on back button click so the
UrlCodingStrategy does not come into play.

Ryan

On Wed, Oct 6, 2010 at 4:13 PM,  wrote:

> I've had similar issues, have you tried  HybridUrlCodingStrategy?
>
>
>
> Notice: This communication, including any attachments, is intended solely
> for the use of the individual or entity to which it is addressed. This
> communication may contain information that is protected from disclosure
> under State and/or Federal law. Please notify the sender immediately if
> you have received this communication in error and delete this email from
> your system. If you are not the intended recipient, you are requested not
> to disclose, copy, distribute or take any action in reliance on the
> contents of this information.


Re: chrome + wicket ajax + back button = problem?

2010-10-03 Thread Ryan Crumley
Just to clarify:

The page in the example link I sent is stateless (it's static html). The
other point is that Chrome and IE do not fetch the original page on back
button click. They are serving the original html straight from the cache
(without the DOM modifications).

It sounds like the only "fix" is to update the page headers so that no
browser will ever cache the page. That seems like an overkill but so far I
haven't found any other solution that works across browsers. This seems like
a very common scenario... is it also very common to set all the no-cache
headers?

Ryan

On Sun, Oct 3, 2010 at 5:56 PM, Zilvinas Vilutis  wrote:

> Yes, it is not repeatable on FF because FF does page caching which IE
> does not for "Back" history.
>
> Your page must be stateless on the server side.
>
> Žilvinas Vilutis
>
> Mobile:   (+370) 652 38353
> E-mail:   cika...@gmail.com
>
>
>
> On Sun, Oct 3, 2010 at 3:47 PM, Ryan Crumley  wrote:
> > What is interesting is this is not a wicket specific issue however it is
> > more serious when using wicket than other frameworks due to the expired
> > links causing errors when they reappear.
> >
> > I created a very simple version of the problem. Chrome and IE8 exhibits
> the
> > problem but Firefox and Safari do not:
> >
> > http://www.cupofcrumley.com/chrome-test/Page1.html
> >
> > <http://www.cupofcrumley.com/chrome-test/Page1.html>Ryan
> >
> > On Fri, Sep 24, 2010 at 1:48 AM, Peter Karich  wrote:
> >
> >> I had the same problem ...
> >> > Take a look at
> >> >
> >>
> http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/
> >> >
> >>
> >> isn't there a better fix? E.g. it seems to me that this 'hack' avoids
> >> client-side js caching (or is this a wrong observation)?
> >>
> >> Regards,
> >> Peter.
> >>
> >>
> >>
> >>
> >> --
> >> http://jetwick.com twitter search prototype
> >>
> >>
> >> -
> >> 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: chrome + wicket ajax + back button = problem?

2010-10-03 Thread Ryan Crumley
What is interesting is this is not a wicket specific issue however it is
more serious when using wicket than other frameworks due to the expired
links causing errors when they reappear.

I created a very simple version of the problem. Chrome and IE8 exhibits the
problem but Firefox and Safari do not:

http://www.cupofcrumley.com/chrome-test/Page1.html

<http://www.cupofcrumley.com/chrome-test/Page1.html>Ryan

On Fri, Sep 24, 2010 at 1:48 AM, Peter Karich  wrote:

> I had the same problem ...
> > Take a look at
> >
> http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/
> >
>
> isn't there a better fix? E.g. it seems to me that this 'hack' avoids
> client-side js caching (or is this a wrong observation)?
>
> Regards,
> Peter.
>
>
>
>
> --
> http://jetwick.com twitter search prototype
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


chrome + wicket ajax + back button = problem?

2010-09-21 Thread Ryan Crumley
All,

I ran into strange behavior involving wicket ajax updates + chrome + back
button. I am pretty sure the issue is not caused by wicket but I am hoping
the problem might sound familiar to someone and they can point me in the
right direction. The scenario goes like this:

- An ajax request is made that updates the DOM.
- The user navigates to another page by clicking on a link.
- The user uses the browser back button to go back to the original page.

After clicking back Google Chrome shows the page as it was originally
rendered (before the DOM update). All other browsers show the page as it was
when the user left the page (with the DOM update). Besides the possibility
of showing stale data the other problem is that the page state has been
altered by the ajax request and links that were originally rendered may no
longer be valid.

I found a few links where people are having similar issues:

http://www.maintaino.com/nuts-and-bolts/2010/04/08/teaching-chrome-not-to-cache-your-rails-pages/

Possibly related to using jQuery and/or window.onUnload() and "bfcache":

http://stackoverflow.com/questions/158319/cross-browser-onload-event-and-the-back-button
https://developer.mozilla.org/En/Using_Firefox_1.5_caching

In addition to using Wicket 1.4.12 I am also using jQuery 1.4.2 and google
analytics on these pages. I don't think any unload handlers have been added
however my only check was looking at all the attributes on the "window"
object via the inspector.

Has anyone else seen similar behavior? Even better, anyone else have a
solution? You may be seeing errors like this one in your logs:

org.apache.wicket.protocol.http.request.InvalidUrlException:
org.apache.wicket.WicketRuntimeException: component wid1:wid2:1:wid3 not
found on page com.foo.xxx


Thanks!

Ryan


Re: wicketstuff-merged-resources 3.1 parent class scanning?

2010-06-24 Thread Ryan Crumley
Stefan,

I apologize for checking in changes without your approval. I was excited
about using your project but without scanning super classes it was not
useful to me. I was eager to get it working. =)

These are all good points... I will follow up with you off-list once I have
a few minutes to put together a response and a test case.

Cheers,

Ryan

On Thu, Jun 24, 2010 at 5:52 AM, Stefan Fussenegger  wrote:

> Hi Ryan,
>
> I'm the maintainer of wicketstuff-merged-resources. Sorry, I don't watch
> the mailing list as closely as I probably should.
>
> I've just reverted your changes as the project wasn't able to build. The
> required org.wicketstuff:annotations:1.4.7-SNAPSHOT isn't available from a
> public repository - at least none I know of. Additionally, there are some
> other problems:
>
> - I'm not happy with a change in dependencies. Could you explain why you
> went for org.wicketstuff:annotations rather than
> org.wicketstuff:wicketstuff-annotations? Is this the official replacement?
>
> - Your implementation of ResourceMount.enableAnnotations(...) is broken. It
> won't work as soon as you need a second ContributionScanner for a different
> package.
>
> - Try to keep binary compatibility with previous versions. Don't add new
> parameters to methods. Try to keep the old one, add a new one with an
> additional parameter and call it from the old one with a default that
> maintains the old behavior.
>
> Next time, please use JIRA at http://wicketstuff.org/jira/browse/WMR (when
> will it be back again? or will it be back at all?) to create a ticket (and
> submit a patch) in order to get my feedback earlier (I'm watching the feeds
> there and should be able to react pretty quickly).
>
> Regarding your issue, wouldn't it be enough it @*Contribution would be
> @Inherited and superclasses of matching classes would be checked as well for
> potentially overridden annotations? Could you provide a test case for your
> issues so we can figure out if there isn't a less obtrusive way to fix it?
>
> Cheers, Stefan
>
>
>
> On 05/21/2010 04:35 PM, Ryan Crumley wrote:
>
>> Thanks Jeremy. I applied the patches and there are some more errors
>> down the line. I am looking into resolving them and will submit a
>> patch once I get to that point. Hopefully this weekend.
>>
>> Ryan
>>
>> On Mon, May 17, 2010 at 11:49 PM, Jeremy Thomerson
>>   wrote:
>>
>>> I'm not a maintainer on those projects so I defer on applying the
>>> following
>>> patches.  However, I think that it is a bug.  If it is a bug, it will
>>> also
>>> require a change in the annotations project in WicketStuff.  I have
>>> created
>>> a patch for each.  Could you test it and see if it works?  If so, I'll go
>>> ahead and commit it (unless one of the maintainers objects here first).
>>> Patch for annotations: http://pastebin.com/nxQuLfqf
>>> Patch for merged-resources: http://pastebin.com/Cbpjtvqp
>>> File attachments to the list will be stripped.
>>>
>>> --
>>> Jeremy Thomerson
>>> http://www.wickettraining.com
>>>
>>>
>>>
>>> On Mon, May 17, 2010 at 9:43 PM, Ryan Crumley  wrote:
>>>
>>>>
>>>> All,
>>>>
>>>> [If there is a wicketstuff specific mailing list please let me know
>>>> and I will be happy to post there (wicketstuff.org is down so its
>>>> difficult to find information).]
>>>>
>>>> I am using wicketstuff-merged-resources (3.1-SNAPSHOT) with
>>>> wicketstuff-annotation (1.1) and I have found a potential issue with
>>>> annotation detection. My page hierarchy looks something like this:
>>>>
>>>> public abstract class BasePage extends WebPage { ... }
>>>>
>>>> public class HomePage extends BasePage { ... }
>>>>
>>>> I would like to add @JsContribution to BasePage however the resources
>>>> are only included if the concrete page (in this example: 'HomePage')
>>>> also has resource annotations. Removing @JsContribution from HomePage
>>>> results in all resources from BasePage also disappearing. Is this a
>>>> known bug? Am I using the framework incorrectly?
>>>>
>>>> Thanks in advance for any guidance.
>>>>
>>>> Ryan
>>>>
>>>> -
>>>> 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: wicketstuff-merged-resources 3.1 parent class scanning?

2010-05-21 Thread Ryan Crumley
rcrumley

On Fri, May 21, 2010 at 10:04 AM, Jeremy Thomerson
 wrote:
> What's your sf.net ID?   I can add you as committer and you can just commit
> the patches.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Fri, May 21, 2010 at 9:35 AM, Ryan Crumley  wrote:
>>
>> Thanks Jeremy. I applied the patches and there are some more errors
>> down the line. I am looking into resolving them and will submit a
>> patch once I get to that point. Hopefully this weekend.
>>
>> Ryan
>>
>> On Mon, May 17, 2010 at 11:49 PM, Jeremy Thomerson
>>  wrote:
>> > I'm not a maintainer on those projects so I defer on applying the
>> > following
>> > patches.  However, I think that it is a bug.  If it is a bug, it will
>> > also
>> > require a change in the annotations project in WicketStuff.  I have
>> > created
>> > a patch for each.  Could you test it and see if it works?  If so, I'll
>> > go
>> > ahead and commit it (unless one of the maintainers objects here first).
>> > Patch for annotations: http://pastebin.com/nxQuLfqf
>> > Patch for merged-resources: http://pastebin.com/Cbpjtvqp
>> > File attachments to the list will be stripped.
>> >
>> > --
>> > Jeremy Thomerson
>> > http://www.wickettraining.com
>> >
>> >
>> >
>> > On Mon, May 17, 2010 at 9:43 PM, Ryan Crumley  wrote:
>> >>
>> >> All,
>> >>
>> >> [If there is a wicketstuff specific mailing list please let me know
>> >> and I will be happy to post there (wicketstuff.org is down so its
>> >> difficult to find information).]
>> >>
>> >> I am using wicketstuff-merged-resources (3.1-SNAPSHOT) with
>> >> wicketstuff-annotation (1.1) and I have found a potential issue with
>> >> annotation detection. My page hierarchy looks something like this:
>> >>
>> >> public abstract class BasePage extends WebPage { ... }
>> >>
>> >> public class HomePage extends BasePage { ... }
>> >>
>> >> I would like to add @JsContribution to BasePage however the resources
>> >> are only included if the concrete page (in this example: 'HomePage')
>> >> also has resource annotations. Removing @JsContribution from HomePage
>> >> results in all resources from BasePage also disappearing. Is this a
>> >> known bug? Am I using the framework incorrectly?
>> >>
>> >> Thanks in advance for any guidance.
>> >>
>> >> Ryan
>> >>
>> >> -
>> >> 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: wicketstuff-merged-resources 3.1 parent class scanning?

2010-05-21 Thread Ryan Crumley
Thanks Jeremy. I applied the patches and there are some more errors
down the line. I am looking into resolving them and will submit a
patch once I get to that point. Hopefully this weekend.

Ryan

On Mon, May 17, 2010 at 11:49 PM, Jeremy Thomerson
 wrote:
> I'm not a maintainer on those projects so I defer on applying the following
> patches.  However, I think that it is a bug.  If it is a bug, it will also
> require a change in the annotations project in WicketStuff.  I have created
> a patch for each.  Could you test it and see if it works?  If so, I'll go
> ahead and commit it (unless one of the maintainers objects here first).
> Patch for annotations: http://pastebin.com/nxQuLfqf
> Patch for merged-resources: http://pastebin.com/Cbpjtvqp
> File attachments to the list will be stripped.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Mon, May 17, 2010 at 9:43 PM, Ryan Crumley  wrote:
>>
>> All,
>>
>> [If there is a wicketstuff specific mailing list please let me know
>> and I will be happy to post there (wicketstuff.org is down so its
>> difficult to find information).]
>>
>> I am using wicketstuff-merged-resources (3.1-SNAPSHOT) with
>> wicketstuff-annotation (1.1) and I have found a potential issue with
>> annotation detection. My page hierarchy looks something like this:
>>
>> public abstract class BasePage extends WebPage { ... }
>>
>> public class HomePage extends BasePage { ... }
>>
>> I would like to add @JsContribution to BasePage however the resources
>> are only included if the concrete page (in this example: 'HomePage')
>> also has resource annotations. Removing @JsContribution from HomePage
>> results in all resources from BasePage also disappearing. Is this a
>> known bug? Am I using the framework incorrectly?
>>
>> Thanks in advance for any guidance.
>>
>> Ryan
>>
>> -
>> 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



wicketstuff-merged-resources 3.1 parent class scanning?

2010-05-17 Thread Ryan Crumley
All,

[If there is a wicketstuff specific mailing list please let me know
and I will be happy to post there (wicketstuff.org is down so its
difficult to find information).]

I am using wicketstuff-merged-resources (3.1-SNAPSHOT) with
wicketstuff-annotation (1.1) and I have found a potential issue with
annotation detection. My page hierarchy looks something like this:

public abstract class BasePage extends WebPage { ... }

public class HomePage extends BasePage { ... }

I would like to add @JsContribution to BasePage however the resources
are only included if the concrete page (in this example: 'HomePage')
also has resource annotations. Removing @JsContribution from HomePage
results in all resources from BasePage also disappearing. Is this a
known bug? Am I using the framework incorrectly?

Thanks in advance for any guidance.

Ryan

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



Re: When to use InjectorHolder

2010-05-03 Thread Ryan Gravener
Not sure wicket-guice works with injectorholder.  If you are not extending
component, then you should pass the service to the constructor.

Sent from my Incredible.


On Mon, May 3, 2010 at 10:58 PM, Douglas Ferguson <
doug...@douglasferguson.us> wrote:

> Do I need to use InjectorHolder when using @Inject in a model?
>
>
>


Re: [OT] Wicket App Hosting

2010-02-24 Thread Ryan Gravener
I use prgmr.com, cheap and more reliable than rackspace :)

Sent from my nexus one.


On Wed, Feb 24, 2010 at 8:42 PM,  wrote:

> Linode. Best vps provider I've ever had by far, never had any problems at
> all. Very good prices too.
>
> --Original Message--
> From: Mauro Ciancio
> To: Wicket Mailing List
> ReplyTo: users@wicket.apache.org
> Subject: [OT] Wicket App Hosting
> Sent: Feb 24, 2010 7:50 PM
>
> Hello everyone,
>
>  I need to deploy a couple of wicket apps (2 or 3 apps). I'm looking for
> advices
> in order to get a good hosting service. In fact, I think i'll get a vps
> service.
>
> Any advices? Which vps providers are good?
>
> Thanks in advance.
> Cheers!
> --
> Mauro Ciancio 
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
>
> Sent via BlackBerry from T-Mobile
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


AjaxPagingNavigator and mounted pages produces incorrect links

2010-02-13 Thread Ryan
I just filed bug: https://issues.apache.org/jira/browse/WICKET-2743

I have a 2 mounted pages, one mounted at "home" and one mounted at
"page2". When clicking a BookmarkablePageLink for "home" the browser is
sent to the correct page. The home page then uses a DataView to create
many panels with BookmarkablePageLinks to page2. If you paginate using
AjaxPagingNavigator the links in the panels incorrectly point to
"/home/test/foo/page2". Where test/foo was a pageparameter sent to the
page. 

It could be user error, but I think thats a pretty standard use case.
Does anyone else have errors with generated urls for mounted pages when
using ajax?

I just tested this on 1.4.5 and it works correctly.

-Ryan

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



Re: Google analytics on home page slowing down access

2010-01-08 Thread Ryan Gravener
Yea, that code should be at the bottom of the page.

Ryan Gravener
http://bit.ly/no_word_docs


On Fri, Jan 8, 2010 at 9:06 AM, Loritsch, Berin C. <
berin.lorit...@gd-ais.com> wrote:

> Just an FYI, the call to google-analytics on the Wicket home page is
> causing the site to crawl as I have to wait for the connection to time
> out before I see anything (at least 30s).
>
> That is because the call is in the header, and it should be placed at
> the bottom of the  section to avoid this problem.  Most browsers
> will be able to display the page as it is loading resources in the order
> they are declared.  For things like google analytics and populating ads,
> it's best to incorporate those javascript goodies after the page is
> rendered.
>
> Example:
>
> Move the following snippet:
>
> 
> 
> 
>  
> _uacct = "UA-2350632-1";
> urchinTracker();
> 
> 
> 
> 
>
> To the following location:
>
> 
> 
> 
>  
> _uacct = "UA-2350632-1";
> urchinTracker();
> 
> 
> 
>
>


PageExpiredException not being thrown

2010-01-07 Thread Ryan O'Hara
After letting a session expire on a Search page using  
QueryStringUrlCodingStrategy, hovering on a Link with an onmouseover  
AjaxEventBehavior event throws a PageExpiredException, as expected.   
However, after allowing the session to expire in the same  
circumstance, and then clicking another link with only onclick  
overridden (containing one line: setResponsePage(Search.class,  
params)), no PageExpiredException is thrown.  Instead, the following  
is thrown:


org.apache.wicket.WicketRuntimeException unable to find component with  
path  on stateless page [Page class = edu.chop.bic.cnv.ui.Search, id =  
0, version = 0] it could be that the component
is inside a repeater make your component return false in  
getStatelessHint()


Any ideas why PageExpiredException is not being thrown in this case?

Also, resubmitting the Search form after the session expires does not  
cause the PageExpiredException, either.


Thanks,
Ryan

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



Re: Static link for stateful page (Wicket 1.3)

2009-12-02 Thread Ryan Crumley
After some thought I have a better description of what I am trying to do:

- I would like to have a stateless page that is always accessed via a
bookmarkable link.
- This page has an iframe whose content is backed by a stateful page
that is altered via ajax links.
- When the parent page is refreshed via the bookmarkable link I would
like the state in the iframe to persist (eg the iframe content is
rendered exactly as it was left before the refresh).

The question boils down to how to generate a link to the stateful page
that always points to the latest version of the page. The link can
change from render to render as long as the link can be generated
statelessly (because the containing page is stateless).

In case anyone is curious the real use case is a dynamically generated
javascript file that writes the iframe and other features into any
host page (similar to getsatisfaction.com or nabble.com).

Any hints on how to go about this are appreciated.

Ryan

On Mon, Nov 30, 2009 at 6:06 PM, Ryan Crumley  wrote:
> Hi all,
>
> I have an unusual requirement for a stateful page that can be accessed
> via a static url. To state it another way I would like the same url to
> always shows the latest state of a page for that session. For example:
>
> Operations:
> 1. Initial Render. url = http://ABC/XYZ
> 2. User changes the page state using links & ajax operations
> 3. User returns to url = http://ABC/XYZ and the operations from step
> #2 are present from the same url visited in step #1.
>
> I tried modifying my page so that it was not versioned and hardcoding
> the numeric id to 0. This works for the first render but the changes
> made to the page on the first render are not reflected when that same
> url is refreshed. Here is the snippet of code I am using to generate
> the "static" url:
>
> PageMap pageMap = PageMap.forName("myMapName");
> Page page = pageMap.get(0, -1);
> if(page == null) {
>        page = new MyPage(pageMap);
> }
>
> return getRequestCycle().urlFor(page).toString();
>
>
> Seems like there is an elegant way to do this, any pointers? I am
> using Wicket 1.3.
>
> Thanks in advance,
>
> Ryan
>

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



Static link for stateful page (Wicket 1.3)

2009-11-30 Thread Ryan Crumley
Hi all,

I have an unusual requirement for a stateful page that can be accessed
via a static url. To state it another way I would like the same url to
always shows the latest state of a page for that session. For example:

Operations:
1. Initial Render. url = http://ABC/XYZ
2. User changes the page state using links & ajax operations
3. User returns to url = http://ABC/XYZ and the operations from step
#2 are present from the same url visited in step #1.

I tried modifying my page so that it was not versioned and hardcoding
the numeric id to 0. This works for the first render but the changes
made to the page on the first render are not reflected when that same
url is refreshed. Here is the snippet of code I am using to generate
the "static" url:

PageMap pageMap = PageMap.forName("myMapName");
Page page = pageMap.get(0, -1);
if(page == null) {
page = new MyPage(pageMap);
}

return getRequestCycle().urlFor(page).toString();


Seems like there is an elegant way to do this, any pointers? I am
using Wicket 1.3.

Thanks in advance,

Ryan

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



Re: Restarting AjaxLazyLoadingPanel

2009-11-13 Thread Ryan O'Hara

Finally got this working by changing the following line of code:


   newPanel.setOutputMarkupId(true);


to :


newPanel.setOutputMarkupId(true).setOutputMarkupPlaceholderTag(true);


Hopefully this helps someone.

Ryan

On Nov 12, 2009, at 2:57 PM, rjohara wrote:



We are after the same behavior, as well.  During the initial page  
load, the
AjaxLazyLoadPanel works great.  However, after hiding/showing the  
image
(using an AjaxLink), the panel no longer loads.  I tried using the  
custom
ReloadingAjaxLazyPanel, too, and the results were the same as  
replacing with

a new panel instance.  Any ideas?  Below is a code snippet:

   final Label gbrowseHideShowLabel = new  
Label("gbrowseHideShowLabel",

new LoadableDetachableModel() {
   protected Object load() {
   return gbrowseHideShowText;
   }
   });
   gbrowseHideShowLabel.setOutputMarkupId(true);
   gbrowseLazyLoaded = getNewGbrowseLazyLoaded();
   add(gbrowseLazyLoaded);
   AjaxLink gbrowseHideShow = new AjaxLink("gbrowseHideShow") {
   public void onClick(AjaxRequestTarget target) {
   if (!gbrowseVisible) {
   gbrowseVisible = true;
   gbrowseHideShowText = "Hide image";
   user.setImageViewer(true);
   } else {
   gbrowseVisible = false;
   gbrowseHideShowText = "Show image";
   user.setImageViewer(false);
   }
   target.addComponent(gbrowseHideShowLabel);
   AjaxLazyLoadPanel newPanel = getNewGbrowseLazyLoaded();
   newPanel.setOutputMarkupId(true);
   getGbrowseLazyLoaded().replaceWith(newPanel);
   setGbrowseLazyLoaded(newPanel);
   target.addComponent(newPanel);
   }
   };
   gbrowseHideShow.add(gbrowseHideShowLabel);
   add(gbrowseHideShow);

Thanks,
Ryan


igor.vaynberg wrote:


you can just replace the entire panel with a new instance.

-igor

On Sat, May 30, 2009 at 3:11 AM, Antony Stubbs >

wrote:
We use AjaxLazyLoadingPanel, and want to be able to trigger the  
process

of
showing the indicator, and requesting the panels contents with a  
separate
Ajax request, after the first complete render has finished. I.e.  
do the
whole process over and over, without having to reload the entire  
page.


I came up with this, which I was surprised actually worked first  
try :)

gotta love Wicket.

But perhaps there's a better way to do it ? A simpler way?  
Something I'm

missing? I tried simply replacing the lazy loading panel with a new
instance
of one but that didn't seem to have an effect - I think the magic  
is in

the
adding a new AbstractAjaxBehaviour on each request.


import org.apache.wicket.Component;
import org.apache.wicket.ajax.AbstractDefaultAjaxBehavior;
import org.apache.wicket.ajax.AjaxRequestTarget;
import  
org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel;

import org.apache.wicket.markup.html.IHeaderResponse;

/**
 * An {...@link AjaxLazyLoadPanel} extension which allows it to
 * {...@link #restart(AjaxRequestTarget)} the process of showing the  
loading

 * indicator, then load it's contents using a separate Ajax request.
 *
 * @author Antony Stubbs
 */
abstract public class ReloadingAjaxLazyPanel extends  
AjaxLazyLoadPanel {


   private static final long serialVersionUID = 1L;

   public ReloadingAjaxLazyPanel(String id) {
   super( id );
   }

   /**
* Causes the {...@link AjaxLazyLoadPanel} to re-display the loading
indicator,
* then in a seperate ajax request, get it's contents.
*
* @param target
*/
   public void restart(AjaxRequestTarget target) {
   target.addComponent( this );

   // replace panel contents with loading icon
   Component loadingComponent =  
getLoadingComponent( "content" );


   this.replace( loadingComponent );

   // add ajax behaviour to install call back
   loadingComponent.add( new AbstractDefaultAjaxBehavior() {

   private static final long serialVersionUID = 1L;

   @Override
   protected void respond(AjaxRequestTarget target) {
   Component component =
ReloadingAjaxLazyPanel.this.getLazyLoadComponent( "content" );
   ReloadingAjaxLazyPanel.this.replace(
component.setRenderBodyOnly( true ) );
   target.addComponent( ReloadingAjaxLazyPanel.this );
   // setState((byte)2);
   }

   @Override
   public void renderHead(IHeaderResponse response) {
   super.renderHead( response );
   response.renderOnDomReadyJavascript(
getCallbackScript().toString() );
   }

   } );
   }

}

As you can see, there is duplication from AjaxLazyLoadingPanel -  
which

would
need re-factoring in order to remove. - no problem t

Re: LDAP Authentication

2009-11-05 Thread Ryan McKinley

take a look at Apache Shiro
http://incubator.apache.org/shiro/

I found it much easier to work with...

There is a basic example with:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/

I have it working with JDBC or ActiveDirectory, using LDAP should be  
straight forward...



On Nov 5, 2009, at 3:16 PM, Benjamin Pack wrote:

We’re working on an application that requires authentication against  
Active
Directory and authorization based on Roles.  I wanted to ask the  
community

what they would recommend for a out-of-the-box Wicket 1.4 plus LDAP
integration with the least amount of headaches (that will be our  
starting
point).  I’ve investigated SWARM and WASP along with Spring  
Security, but we
have concerns that our final solution will need to be a little more  
dynamic

and scalable than what SWARM can currently support.  Anyone have any
thoughts, ideas or experiences in working with Wicket, Roles and LDAP?



Thanks,

Ben



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



Re: 508 accessibility support

2009-10-31 Thread Ryan McKinley


takes values for alt attribute .  Like the sortable columns   , If I  
can set

value for alt attribute that would be really nice.


how about:
div.add( new AttributeModifier( "alt", true, new Model( "what  
it should say..." ))



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



Re: setResponsePage chaining

2009-10-29 Thread Ryan
Ahh yes, very simple order of operations. Can I chalk it up to being
sleep and caffeine deprived? ;-)

Thanks,
Ryan

On Wed, Oct 28, 2009 at 05:27:00PM -0700, bgooren exclaimed:

>
>Well, new P2() is executed _before_ it's result (a P2 instance) is passed to
>setResponsePage(), so this behavior is perfectly normal: setResponsePage(
>new P3() ) is executed before the resulting P2 instance is passed to
>setResponsePage().
>
>Timeline:
>1. new P2() is executed
>2. P2 constructor is called, which calls setResponsePage( new P3() )
>3. P2 constructor returns a P2 instance, which is used as input in the first
>setResponsePage() call
>
>As you can see, the final call to setResponsePage() wins, P2 in this case
>
>The reason that setResponsePage( P2.class ) does result in P3 being rendered
>is also logical: it results in wicket instantiating P2.class _after_
>setResponsePage( P2.class ) is called.
>
>Timeline:
>
>1. setResponsePage( P2.class )
>2. wicket calls the P2 constructor, which calls setResponsePage( new P3() )
>
>As you can see, in this case the final call to setResponsePage() is in the
>P2 constructor, so it "wins".
>
>By throwing a RestartResponseException, setResponsePage( [P2 class instance]
>) is never executed, since the exception breaks out of the code.
>
>Bas
>
>
>Ryan-117 wrote:
>> 
>> Throwing RestartResponseException works as expected, but I'm still not
>> sure if the setResponsePage behavior is correct...
>> 
>> On Wed, Oct 28, 2009 at 11:52:09AM -0600, Ryan exclaimed:
>> 
>>>If you have a page,P1, with a form which has an onSubmit() that calls
>>>setResponsePage(new P2()) and the constructor in P2 calls
>>>setResponsePage(new P3()) the page that is rendered is P2.
>>>
>>>However, P3 is rendered if the onSubmit calls setResponsePage(P2.class)
>>>and the P2 constructor calls setResponsePage(P3.class).
>>>
>>>Is this a bug or am I missing something?
>>>
>>>Thanks,
>>>Ryan
>>>
>>>-
>>>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
>> 
>> 
>> 
>
>-- 
>View this message in context: 
>http://www.nabble.com/setResponsePage-chaining-tp26099119p26104397.html
>Sent from the Wicket - User 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: setResponsePage chaining

2009-10-28 Thread Ryan
Throwing RestartResponseException works as expected, but I'm still not
sure if the setResponsePage behavior is correct...

On Wed, Oct 28, 2009 at 11:52:09AM -0600, Ryan exclaimed:

>If you have a page,P1, with a form which has an onSubmit() that calls
>setResponsePage(new P2()) and the constructor in P2 calls
>setResponsePage(new P3()) the page that is rendered is P2.
>
>However, P3 is rendered if the onSubmit calls setResponsePage(P2.class)
>and the P2 constructor calls setResponsePage(P3.class).
>
>Is this a bug or am I missing something?
>
>Thanks,
>Ryan
>
>-
>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



setResponsePage chaining

2009-10-28 Thread Ryan
If you have a page,P1, with a form which has an onSubmit() that calls
setResponsePage(new P2()) and the constructor in P2 calls
setResponsePage(new P3()) the page that is rendered is P2.

However, P3 is rendered if the onSubmit calls setResponsePage(P2.class)
and the P2 constructor calls setResponsePage(P3.class).

Is this a bug or am I missing something?

Thanks,
Ryan

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



Re: urlFor(ResourceReference) strangeness

2009-10-27 Thread Ryan McKinley
urlFor( ) uses the current request to get a relative path.  If the  
location you are calling urlFor() from changes, it will get a new  
location


Note the only difference between the two urls is the ../../.. prefix

On Oct 27, 2009, at 11:05 AM, pieter claassen wrote:

WHen I start my application, my urlFor() returns a different URL  
than when I

call it a second time?

   ResourceReference iconref = new ResourceReference(anchorclass,
iconname);
   System.out.println("URL: "+urlFor(iconref));

First time it returns:
URL:
../../../resources/ 
com.musmato.wicket.pages.styles.option1.Option1StyleAnchor/ 
document.png


second time:
URL:
resources/com.musmato.wicket.pages.styles.option1.Option1StyleAnchor/ 
document.png


Any ideas?

Thanks
Pieter
--



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



Re: Strong Password Validation using Ajax (with Fallback)

2009-10-16 Thread Ryan Gravener
I don't think you want to validate passwords by sending them to the
server multiple times.

Ryan Gravener
http://bit.ly/no_word_docs



On Fri, Oct 16, 2009 at 2:31 PM, Bernhard Grünewaldt
 wrote:
> Hello,
>
> Is there such a thing as a "Strong Password Validator"?
> I found a jquery plugin which is nice:
> http://bassistance.de/jquery-plugins/jquery-plugin-password-validation/
>
> But it lacks the serverside Java implementation and i18n.
> Does anyone know of such a component?
> The code isn't that complex, but if it is already there why implement it
> yourself.
>
> thx
>
> Bernhard
>
>
> -
> 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: self-recursive panel

2009-10-08 Thread Ryan Gravener
http://wicketstuff.org/wicket13/nested/

Ryan Gravener
http://bit.ly/no_word_docs



On Thu, Oct 8, 2009 at 5:44 PM, Eelco Hillenius
 wrote:
>> I was not aware of the "nested" example in wicket-examples.
>>
>> Unfortunately, http://www.wicket-library.com/wicket-examples/nested/ barfs
>> when I try to access it.
>
> Hmmm, don't know what's going on there. But you can check out the
> source and look at it if you're interested. You won't learn much from
> it, since it basically does what you do here :-)
>
> Eelco
>
> -
> 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: vps hosting for wicket app

2009-10-06 Thread Ryan Gravener
I used to use slicehost but switched to prgmr since it was cheaper and
had less outages believe it or not.

Ryan Gravener
http://bit.ly/no_word_docs



On Wed, Oct 7, 2009 at 12:13 AM, Jan Kriesten
 wrote:
>
> Hi,
>
> I'm always surprised, how expensive hosting is on the other side of the 
> ocean. ;-)
>
> Just two examples from Germany, where server performance make Slicehost look
> like a lame duck:
>
> http://hetzner.de/en/ (my favorite!)
> http://webtropia.com/home/ (only in Germany, sorry)
>
> I agree, though, that if the data has to travel from Germany to the US the
> experience might not be the same like from here. ;-)
>
> Best regards, --- Jan.
>
>
>
> -
> 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: iPhone webapp support?

2009-10-06 Thread Ryan Gravener
use iui.

Ryan Gravener
http://bit.ly/no_word_docs



On Tue, Oct 6, 2009 at 5:33 PM, Wilhelmsen Tor Iver  wrote:
>> Are people still making fun of your huge nokia? ;-)
>
> ... or the "side-talking" 1st gen nGage :P (parodied a lot here: 
> http://www.sidetalkin.com/photos.html )
>
> On a more serious note, Wicket apps should run well in the iPhone's Safari 
> browser, but if you want to support small devices in general you should look 
> into client detection and using the style feature to server more compact 
> pages.
>
> - Tor Iver
>
> -
> 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



Bookmarkable link to parent frame from a Modal window?

2009-09-30 Thread Ryan McKinley
Hi-

How do I make a bookmarkable link to the parent window from a Modal
window?  I added a bookmarkable link and http://localhost:8080/my/page/wicket:pageMapName/modal-dialog-pagemap

How can I remove the page map name?  It looks like I could set the
IPageMap on the BookmarkablePageLink, but from within the modal window
(iframe), how do I get access to this?

thanks for any pointers

ryan

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



Re: User name validation - how to check database to find if a name has already been taken?

2009-09-25 Thread Ryan Gravener
I think you are overcomplicating things.  Validate the users input, if
two users want the same name within 1 second of each request you
probably have bigger problems to deal with.  Anyhow,  when submit is
called, if you get a nonunique exception.  Catch in dao/service and
throw an exception wicket can handle and present.

Ryan Gravener
http://bit.ly/no_word_docs



On Fri, Sep 25, 2009 at 11:58 AM, Paul Huang  wrote:
> Hello,
>
> I would like to get your suggestion about how to validate a user name input
> by checking if the name has already been taken (exists in the back-end
> database); and how to show feedback messages right next to the input field
> if it has.
>
> Typically, when a user registers to a website, he needs to choose a user
> name, a password, etc. To make sure that the chosen name is unique, one
> needs to access the back-end database to check if it already exists.
>
> My solution right now is to extend "AbstractValidator", and override
> "onValidate(IValidatable validatable)" to put the database-checking
> logic in it. But the more I think about it, the more I felt it might be a
> wrong solution. The problem (I think, not 100% sure) is that
> "onValidate(IValidatable validatable)" will be called during the
> form validation process, even if this process goes through, I may still find
> out later that the user chosen name has been taken when trying to save all
> the user inputs (name, password, etc) to the database. This happens when
> another user registers with the same name between the time the validation
> process finished and the time I start persisting all inputs from the first
> user to the database,
>
> So now I am trying to figure out another solution. Here is the idea: Instead
> of putting the database-checking logic into the validation process, I simply
> try to save all the user inputs into the database after receiving them. If
> an unique key exception happens, I know that the user chosen name has been
> taken. Now my questions are:
> 1. where should I put this save-catch-exception logic? Is "Form.onSubmit()"
> the right place to put it?
> 2. After I catch an unique key exception. How can I show a feedback message
> like "This name has already been taken" RIGHT NEXT to the user name input
> field? (Just like what a typical Wicket Validator does though
> "FeedbackPanel").
>
> I am new to Wicket and your inputs and suggestions are greatly appreciated.
>
> Cheers
> Paul
>

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



Column Pagingview

2009-09-21 Thread Ryan Burns
Is there a way of having a paging view for columns instead of rows? Does
anybody know how to do this or have any examples?

Thanks


Column Pagingview

2009-09-17 Thread Ryan Burns
Is there a way of having a paging view for columns instead of rows? Does
anybody know how to do this or have any examples?

Thanks


Update parent component from child component

2009-09-17 Thread Ryan O'Hara
I'm trying to update a parent's, parent's, parent component using  
AJAX.  I tried combing the archives and came up with some seemingly  
useful stuff (http://www.nabble.com/How-to-update-base-page-panel-from-child-page--td20998486.html#a21015568 
), although I'm still have trouble.  Below is a code snippet:


AjaxSubmitLink asl = new AjaxSubmitLink("submitButton") {
public void onSubmit(AjaxRequestTarget target, Form form) {
target.addComponent(this.getParent().getParent().getParent());
}
};

'this' is an AjaxSubmitLink
1st getParent() is a Form
2nd getParent() is a Panel
3rd getParent() is a SecureWebPage

I'd like to reload SecureWebPage, so that all of its Panel child  
components (and their child components) are reloaded.  I've tried  
explicitly calling setOutputMarkupId(true) on each Form, Panel, and  
SecureWebPage component.  I've also tried wrapping the Panels with a  
WebMarkupContainer and updating that, but that didn't seem to work  
either.  Any advice?


Thanks,
Ryan

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



Re: How to redirect from a ModalWindow

2009-09-12 Thread Ryan McKinley

even better is to add this call to the request that opens the window:

onClick( AjaxRequestTarget target )
{
  target.appendJavascript( "Wicket.Window.unloadConfirmation =  
false;" );

  ...
  modal.show( target);
}

This way the logic is still contained in java and it works for a panel  
or a page popup.




On Sep 12, 2009, at 2:36 AM, Vladimir K wrote:



Try adding this one to the page markup


jQuery(document).ready(function(){
if (typeof Wicket != 'undefined' && 
Wicket.Window)
Wicket.Window.unloadConfirmation = 
false;
});



Matthias Keller wrote:


Hi Peter

You would be right as long as it wasn't for a ModalWindow.
When having an open ModalWindow, wicket seems to register an unload
javascript event which - when trying to navigate away from the page  
(be
it by following a link, closing the window etc), displays a  
confirmation
message which you have to accept. I need to avoid that message, but  
the
only way to do that probably is by closing that window first so  
that the

javascript event gets unloaded.

Matt

Peter Ertl wrote:



   throw new RestartResponseException(OtherPage.class)

window.close() is not needed!


Am 10.09.2009 um 12:50 schrieb Matthias Keller:


OtherPage.class



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








--
View this message in context: 
http://www.nabble.com/How-to-redirect-from-a-ModalWindow-tp25381117p25411990.html
Sent from the Wicket - User 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: Full integration Wicket - Blazeds. Is it possible?

2009-08-19 Thread Ryan Gravener
Make your own filter and implement these methods this way:
http://pastie.org/588344

Ryan Gravener
http://bit.ly/no_word_docs



On Mon, May 4, 2009 at 1:01 PM, Fernando
Wermus wrote:
> Hi all,
>     I am working with flex and wicket and I would like to get a full
> integration. What I mean is that a wicket's model page will be updated in
> case someone uses a flex component that called a blazeds service. I run
> succesfuly http://ryangravener.com/wordpress/?p=21, which I would like to
> improve.
>
> My problem is how to get wicket session, for getting the model's page which
> I would like to update.
>
> Some ideas that come up to my mind are:
>
> a. using cookie JSESSIONID to get wicket session.
> b. getting HttpSession through FlexContext to get Wicket Session after:
>        HttpSession session = FlexContext.getHttpRequest().getSession(true);
>
> Is this possible? This is the web.xml file config according ryangravener:
>
>  
>    
>        wicket.miApp
>
> org.apache.wicket.protocol.http.WicketFilter
>        
>              applicationClassName
>              com.miApp.MiAppApplication
>        
>      
>    
>        wicket.MiApp
>        /*
>      
>
> 
>      
>        MessageBrokerServlet
>        
>            flex.messaging.MessageBrokerServlet
>        
>        
>            services.configuration.file
>            /WEB-INF/flex/services-config.xml
>          
>        
>            flex.write.path
>            /WEB-INF/flex
>          
>        1
>    
>
>    
>        MessageBrokerServlet
>        /messagebroker/*
>    
>
>    
>        wicket.myApp
>        /messagebroker/*
>    
>
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
> http://mientretiempo.blogspot.com/
>

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



Re: OT: Wicket + Blazeds debugger doesnt stop in breakpoints

2009-08-18 Thread Ryan Gravener
Check out wicket-flex-blazeds on google code.

On Tuesday, August 18, 2009, Fernando Wermus  wrote:
> Hello all,
>       I am using jetty to launch my app, which is developed with wicket +
> blazeds. Some days ago I found that the breakpoints I mark in blazeds
> services are useless. I mean the debugger doesn't stop in them. Do you have
> any idea what could it be?
>
> I am trying to install wtp just for testing blazeds services with jetty. I
> am not happy at all with this aproach. I would like to run/debug with jetty
> in only one way.
>
> Thanks in advance.
>
> --
> Fernando Wermus.
>
> http://www.linkedin.com/in/fernandowermus
>

-- 
Ryan Gravener
http://bit.ly/no_word_docs

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



Re: integrating extjs with wicket

2009-08-12 Thread Ryan
It looks like this code base is still being updated:
http://code.google.com/p/wicket-ext/source/list

I'm not using it right now but might be looking into it for a project I
am starting soon. Last time I checked groovy did not support anon. inner
classes and that made using wicket very verbose. There is a
groovy-wicket builder that might work, but I haven't checked in quite a
while.

Ryan

On Wed, Aug 12, 2009 at 04:56:29AM -0700, walnutmon exclaimed:

>
>Did anything ever come of this idea?  I worked with wicket a lot, but then
>our company switched into the grails direction, which I understand from a
>business perspective, and I also love groovy, I was thinking that using
>groovy, wicket, and extjs combined would be a great combination, but it
>would require the overhead of combining wicket and extjs.  Using groovy to
>output the ExtJs components would be a great place to start; you could then
>use groovy to parse incoming ExtJs requests and pass them back to wicket.  I
>think that this is the most important part because it allows you to use
>ExtJs's great javascript support and fantastic widgets with wicket's solid
>application architecture.
>
>I'm interested to hear if anyone attempted it.
>
>
>
>Nino.Martinez wrote:
>> 
>> 
>> You could also look at the wicket input events contrib. It's very small 
>> and uses text templates.
>> 
>> I'd be happy to help out writing the contrib at a mentor level(answering 
>> questions on how to implement the different things), since my stack are 
>> full.
>> 
>> 
>> [1]=http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-stuff-contrib-input-events
>>  
>> 
>> 
>> Johan Maasing wrote:
>>> I've been looking for the same thing. It seems (to me as a wicket
>>> newbie) that wicket is very good at producing HTML but I am not so
>>> sure about producing dynamic javascript.
>>>
>>> There is something called TextTemplates
>>> http://chillenious.wordpress.com/2006/05/03/wicket-header-contributions-with-behaviors/
>>>  
>>>
>>> but I have not found much more documentation for that. Does someone
>>> know if there is something more written (available on the internet)
>>> about the javascript support in wicket?
>>> I tried to find it on the wiki but
>>> http://cwiki.apache.org/WICKET/javascript-and-css-support.html
>>> does not mention it.
>>>
>>> 2008/1/9, Jeremy Fergason :
>>>  
>>>> wicket seems to provide some nice management classes like TextField, 
>>>> that do
>>>> things like set the value for you, I don't see how to integrate this 
>>>> with a
>>>> javascript solution like ExtJs which does not use an >>> type="text" ...
>>>> tag.  It could be something very simple and I am just missing it, if so
>>>> please point me in the right direction.
>>>>
>>>> Thanks!
>>>>
>>>> On Jan 9, 2008 10:19 AM, Martijn Dashorst 
>>>> wrote:
>>>>
>>>>
>>>>> What is keeping you from building it?
>>>>>
>>>>> Martijn
>>>>>
>>>>> On Jan 9, 2008 6:15 PM, Reinout van Schouwen  wrote:
>>>>>  
>>>>>> Op woensdag 09-01-2008 om 09:07 uur [tijdzone -0700], schreef Jeremy
>>>>>> Fergason:
>>>>>>
>>>>>>
>>>>>>> I'm just starting out with wicket and I would like to use a
>>>>>>>   
>>>>> client-side
>>>>>  
>>>>>>> javascript library--ExtJs, to enhance the end user experience.
>>>>>>>   
>>>>>> +1
>>>>>>
>>>>>> At my company we use Ext2 and are very enthousiastic about it.
>>>>>> I want to move us from Struts to Wicket but lack of support for Ext2
>>>>>> would be a roadblock...
>>>>>>
>>>>>> -- 
>>>>>> Reinout van Schouwen
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> -
>>>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>>>
>>>>>>
>>>>>> 
>>>>>
>>>>> -- 

Re: Wicketstuff releases?

2009-08-12 Thread Ryan McKinley


On Aug 12, 2009, at 9:11 AM, Jeremy Thomerson wrote:

Now that Wicket 1.4.0 is out, I wonder which wicketstuff core  
version is
compatible. There is no 1.4.0 version of wicketstuff core (yet?).  
Should I

use 1.4-rc8-SNAPSHOT?


It should be just 1.4-SNAPSHOT.  1.4-rc8-SNAPSHOT was an accidental
relic of after I built rc8

Side note:  I don't see the version of wicket-stuff has to match  
exactly

with version of wicket ?
Suppose someone releases wicketstuff-core-1.4.0 today, and tomorrow  
some
bugs are fixed in wicketstuff-core, then we can't release these bug- 
fixes

until wicket 1.4.1 is out ?

IMO, wicket is just a dependency of wicketstuff-code (as defoined  
in the
pom) and both projects should use their own unrelated version  
numbers.


wdyt ?


When I setup wicketstuff-core, I proposed that we structure it to have
identical releases to Wicket.  The community agreed.  I still think
this should be the case.


I agree.  I also like the idea of monthly wicketstuff "release" builds.

I'm not sure this would work, but perhaps we could have each month  
release everything in wicketstuff-core with the wicket dependency  
pointed to the latest stable wicket release.  If any project fails to  
build with the latest stable release (say it depends on 1.5, not  
1.4.0) that is fine, but it will not get a monthly release.


just brainstorming...




--
Jeremy Thomerson
http://www.wickettraining.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



AjaxFormValidatingBehavior not calling setOutputMarkupId

2009-08-11 Thread Ryan
Is there a reason AjaxFormValidatingBehavior does not call
setOutputMarkupId(true)? Seems like it would be something it might do
while visiting the form children.

Thanks,
Ryan

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



Re: How To Kill Previous Page

2009-08-09 Thread Ryan
It seems like this could also be done by maintaining some state in the
page/session. Then check the state in onBeforeRender and act
accordingly.

Simple example:

Constructor of View Page sets state to State 1
onBeforeRender checks that user is in State 1

Constructor of Ack. Page changes state to State 2

-Ryan

On Fri, Aug 07, 2009 at 07:29:56PM +0800, Carlo Camerino exclaimed:

>Hi,
>
>I would like to ask if it's possible to kill the previous page out of the
>pagestore.
>I have this requirement in which i have a view screen which can be able to
>delete or edit an entity.
>
>My problem is that when the client copies the url and pastes it back the
>client can go back to the previous page since the client can retrieve it
>from the session store.
>
>Is there  a way in which wicket can actually destroy the previous page?
>
>the problem is the users can copy for exampler
>
>View Page
>wicket:interface=1
>
>Acknowledgement Page
>wicket:interface=2
>
>The user can actually paste the url
>
>wicket:interface=1 to the browser and still be able to view the record.
>
>Is there any way for me to kill the page with id = 1?
>
>Thanks A Lot
>Carlo

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



Job Oportunity

2009-07-31 Thread Ryan McKinley
I am building a search engine for geographic data -- see http://voyagergis.com/ 
  -- and would love some help from a good wicketeer.


If interested, please contact me directly ryan...@gmail.com or skype:  
ryantxu


Ideally someone who could get to/from Washington DC without much  
hassle, but we are flexible.


Thanks!
Ryan

(ps, is there a more appropriate place to post job opportunities?)

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



Re: Looking for Pop-up menu...

2009-07-22 Thread Ryan McKinley

why not just a YUI menu?  (not a context menu)


On Jul 22, 2009, at 12:47 PM, Petr Fejfar wrote:


Hi all,

I went through lot of Javascript integrating components
to find out pop-up menu similiar to YUI context menu
except a menu could be poped-up by left mouse click,
mouse hover etc...

But I did not find any. Is somewhere such component?


Thanks, Petr

-
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: How to get DateField value

2009-07-20 Thread Ryan Burns
It's working now. Overriding the newDateTextField worked.
Thanks for your help

On Mon, Jul 20, 2009 at 9:31 PM, Mathias Nilsson <
wicket.program...@gmail.com> wrote:

>
> Also, how does your markup look? You should use the DateField with a span
> or
> div.
> --
> View this message in context:
> http://www.nabble.com/How-to-get-DateField-value-tp24567634p24576073.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: How to get DateField value

2009-07-20 Thread Ryan Burns
wicket-extension. This one,
org.apache.wicket.extensions.yui.calendar.DateField;

On Mon, Jul 20, 2009 at 8:45 PM, Mathias Nilsson <
wicket.program...@gmail.com> wrote:

>
> from wicket-extension or from another project?
> --
> View this message in context:
> http://www.nabble.com/How-to-get-DateField-value-tp24567634p24575317.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: How to get DateField value

2009-07-20 Thread Ryan Burns
Yes, that does work for DateTextField. But i am using the DateField
component which is a combination of DateTextField and DatePicker

Ryan

On Mon, Jul 20, 2009 at 8:25 PM, Mathias Nilsson <
wicket.program...@gmail.com> wrote:

>
>
> import java.util.Date;
>
> import org.apache.wicket.ajax.AjaxRequestTarget;
> import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
> import org.apache.wicket.extensions.markup.html.form.DateTextField;
> import org.apache.wicket.markup.html.WebPage;
> import org.apache.wicket.markup.html.form.Form;
> import org.apache.wicket.model.Model;
>
> /**
>  * Homepage
>  */
> public class HomePage extends WebPage{
>
>private static final long serialVersionUID = 1L;
>  protected DateTextField dateField;
>public HomePage() {
>
>
>   Form form = new Form( "form" );
>
>dateField = new DateTextField("date", new Model(new
> Date()));
>
>dateField.add(new
> AjaxFormComponentUpdatingBehavior("onchange")
> {
> private static final long
> serialVersionUID = 1L;
>
> @Override
>protected void onUpdate(AjaxRequestTarget arg0) {
> Date d = dateField.getModelObject();
>System.out.println( d );
>}
>
>});
>
>form.add( dateField );
>add( form );
>
>
>
>}
>
>
>
>
> }
> --
> View this message in context:
> http://www.nabble.com/How-to-get-DateField-value-tp24567634p24574979.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: How to get DateField value

2009-07-20 Thread Ryan Burns
Ok, i tried this. But i get the date the DateField was initialised with ie
today 20/07/09. If i change text field to 10/07/09 i still get the 20/07/09.
I can get it working with a normal submit button but when i try anything
with ajax i get the problem stated. Can paste the code that you got this
working with?

Thanks

Ryan

On Mon, Jul 20, 2009 at 4:11 PM, Mathias Nilsson <
wicket.program...@gmail.com> wrote:

>
> The above code works for me. You know that the onchange method is only
> triggered when you click the textfield for focus and the click the webpage
> to lose focus
>
> have you put the field in a form?
> --
> View this message in context:
> http://www.nabble.com/How-to-get-DateField-value-tp24567634p24570614.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: How to get DateField value

2009-07-20 Thread Ryan Burns
Hi,

Thanks for the reply. I've tried this too, but this also returns null. There
is date in the textfield box of the datefield but for some reason it doen't
get it

Ryan

On Mon, Jul 20, 2009 at 2:19 PM, Mathias Nilsson <
wicket.program...@gmail.com> wrote:

>
> You can get the model
>
>  Date d = dateField.getModelObject();
>
> Format it by using the SimpleDateFormat
> --
> View this message in context:
> http://www.nabble.com/How-to-get-DateField-value-tp24567634p24568750.html
> Sent from the Wicket - User 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
>
>


How to get DateField value

2009-07-20 Thread Ryan Burns
Hi i'm new to wicket, I wonder if any of yous can help me. I'm trying to get
the date selected from DateField component when the date is changed. I've
tried getConvertedInput() and getInput()but they just return null. Below is
my code, I've striped it down to just display the date in the console to
make things a bit easier.

Thanks,

Ryan

public class TestFormPanel extends Panel{

protected DateField dateField;
private static final long serialVersionUID = 1L;

public TestFormPanel (String id){
super(id);

dateField = new DateField("date", new Model(new Date()));
add(dateField);

dateField.add(new AjaxFormComponentUpdatingBehavior("onchange")
{
@Override
protected void onUpdate(AjaxRequestTarget arg0) {
System.out.println("new datee "
+ dateField.getInput());
System.out.println("new datee "
+ dateField.getConvertedInput());
}
  });
}
}


Re: wicketAjaxGet and PageExpiredException?

2009-06-28 Thread Ryan McKinley

yup!  works great

actually I had to use e.getCause() instanceof...

thanks (as usual) for the excellent help!

ryan


On Jun 23, 2009, at 11:19 PM, Igor Vaynberg wrote:


have you tried

class myrequestcycle extends webrequestcycle {
 onruntimeexception(e) {
if (e instanceof pageexpiredexeption) {
 if (getrequst().isajax()) {
 // this is an ajax request that caused pep exception
 throw new abortwithhttpstatusexception(400);
   

-igor

On Tue, Jun 23, 2009 at 6:13 PM, Ryan McKinley  
wrote:

Is there anyway for an ajax call to catch the PageExpiredException?

I am using the jquery history plugin to load pages in wicket
(http://www.mikage.to/jquery/jquery_history.html) -- this lets me do
ajax updates with bookmarkable urls.  The one issue I am having is
that if the session has expired it gives a big error when I could
easily recover by simply refreshing the whole page.

I figured the failure callback on wicketAjaxGet would let me do this.
I have tried:

function pageload(hash) {
 var cburl = "../?wicket:interface=:0::IActivePageBehaviorListener: 
1:1&wicket:ignoreIfNotActive=true"

+ "&hash="+hash;
 wicketAjaxGet( cburl, function(){}, function(){
   // on failure... reload the whole page...
   alert( "Dooh " + document.location  );
   window.location.reload();
 } );
}

This works fine if the server is turned off, but for the
PageExpiredException - it redirects to:
http://localhost:8080/?wicket:bookmarkablePage=:org.apache.wicket.markup.html.pages.InternalErrorPage

anyway to avoid that?

Perhaps override WebApplication:
 protected Page onDeploymentRuntimeException(Page cause,  
RuntimeException ex) {

// 
 }

but not sure what is the wicket way...

thanks for any pointers!

ryan

-
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



wicketAjaxGet and PageExpiredException?

2009-06-23 Thread Ryan McKinley
Is there anyway for an ajax call to catch the PageExpiredException?

I am using the jquery history plugin to load pages in wicket
(http://www.mikage.to/jquery/jquery_history.html) -- this lets me do
ajax updates with bookmarkable urls.  The one issue I am having is
that if the session has expired it gives a big error when I could
easily recover by simply refreshing the whole page.

I figured the failure callback on wicketAjaxGet would let me do this.
I have tried:

function pageload(hash) {
  var cburl = 
"../?wicket:interface=:0::IActivePageBehaviorListener:1:1&wicket:ignoreIfNotActive=true"
+ "&hash="+hash;
  wicketAjaxGet( cburl, function(){}, function(){
// on failure... reload the whole page...
alert( "Dooh " + document.location  );
window.location.reload();
  } );
}

This works fine if the server is turned off, but for the
PageExpiredException - it redirects to:
http://localhost:8080/?wicket:bookmarkablePage=:org.apache.wicket.markup.html.pages.InternalErrorPage

anyway to avoid that?

Perhaps override WebApplication:
  protected Page onDeploymentRuntimeException(Page cause, RuntimeException ex) {
 // 
  }

but not sure what is the wicket way...

thanks for any pointers!

ryan

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



Re: Hibernate Transactions and Wicket

2009-06-19 Thread Ryan
Consider this use case:

1) User object is read from hibernate, either in a transaction or not
2) User is modified via wicket, and passed wicket's validation
3) User is sent to service tier for further validation, this service is
marked as propagation required
4) Validation fails, or for some reason the user should not be
persisted. At this point a number of things can happen:
 
  a. Throw exception, which clears the hibernate session and rolls back
  b. manually call session.clear on the hibernate session
  c. Let the method finish, perhaps returning false. This will auto
  commit the transaction and the user is persisted.

It gets even more tricky if Wicket also read another entity from
hibernate and modified it, but it was not ready to be persisted to the
db. When the transactional service method is called on the user object,
it will commit and flush *any* modified objects loaded in the hibernate
session.

My setup adds another option to the list. Since all the transactions
are readonly, the service tier must call a specific dao method that is
marked as read-write and requires_new. This creates a new hibernate
session which merges *only* the object passed into the method.

It all comes down to handling detached objects or long hibernate
sessions. It is by no means a new issue, but I think it can confuse
first time users of LDMs.

-Ryan

On Fri, Jun 19, 2009 at 06:30:14AM -0400, James Carman exclaimed:

>The only changes that will be persisted to the database are ones that
>go on within a transaction.  So, do all of your work in transactional
>methods (in spring-managed beans), but leave your session open for the
>entire request so that you can traverse relationships if necessary.
>
>On Fri, Jun 19, 2009 at 1:43 AM, Ryan  wrote:
>>
>> I have been reading Nick Wiedenbrueck's blog, specifically about
>> patterns and pitfalls when using wicket with spring and hibernate.
>>
>> It seems fairly common for programmers to run into the "issue" of having
>> entities persisted to the database at unexpected times. This happens
>> when a transaction is closed and the hibernate session is flushed.
>> Certainly this issue is not specific to using Wicket with spring and
>> hibernate, but I think it is common enough to warrant some attention.
>>
>> There are a few suggestions to solving this problem:
>>
>> 1) Use DTOs
>> 2) Make sure validation happens in wicket so the object is not modified
>> 3) Clear the hibernate session or throw exceptions at just the right
>> times
>>
>> I think all of these have some issues. Using DTOs is code heavy.
>> Validating entirely in wicket is not always an option (sometimes the
>> service tier needs to do some extended business validation). Clearing
>> the hibernate session or throwing exceptions will cause Lazy
>> Initialization exceptions if not used carefully (which can be hard when
>> you do not control all the components on a page)
>>
>> I wanted to share one solution I have used and see what others think.
>>
>> I mark all of my transactional methods (usually in the service) as read
>> only. I then define a set of "persist" methods (usually on a DAO) that
>> are marked as REQUIRES_NEW and are not read only. When I am ready to
>> persist an object it is passed to one of these methods and merged into
>> the session. This effectively persists the object. Some of these persist
>> methods can take a collection of objects so that they can be persisted
>> efficiently in one transaction. So far this has worked well for me.
>>
>> Does anyone have any thoughts on this method or can share some other
>> techniques?
>>
>> Thanks,
>> Ryan
>>
>> -
>> 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: Hibernate Transactions and Wicket

2009-06-19 Thread Ryan
I use Entity objects directly as well. I read the thread you mentioned
and it sounds like you do not use Spring. In our application we are
using spring and so the solutions are a bit different. I just wanted to
offer up another solution to the problem when using Spring to manage
transactions and the hibernate session.

On Fri, Jun 19, 2009 at 10:42:16AM +0300, Martin Makundi exclaimed:

>> 1) Use DTOs
>> I think all of these have some issues. Using DTOs is code heavy.
>
>I use @Entity objects directly as objects. No overhead.
>
>There was some discussion about Hibernate and wicket in:
>* http://www.nabble.com/JPA-EntityManager-storage-td23888325.html
>* http://www.mail-archive.com/users@wicket.apache.org/msg37772.html
>
>**
>Martin
>
>-
>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: Hibernate Transactions and Wicket

2009-06-19 Thread Ryan
I think your misunderstanding the issue. My application is working fine,
no lazy init issues etc. I call merge because I *want* things persisted
to the DB. I mentioned the lazy init exception because that is what
happens if you clear the hibernate session (and spring will do it if it
rolls back a transaction).

Here is the blog post with a concrete example:
http://stronglytypedblog.blogspot.com/2009/03/wicket-patterns-and-pitfalls-3.html

I only sent the email as another option for the Session flushing that
happens when a transaction (or nested transaction) is committed. 

-Ryan

On Fri, Jun 19, 2009 at 11:45:42AM +0530, vineet semwal exclaimed:

>lazy initialization exception happens whens you try to initialize a object
>(generally collection)
>and hibernate session is already closed.
>merge is not recommended  ,it attaches a object back to hibernate session +
>also cause database update( why will you update a object when you actually
>need to read a collection also what are the chances that it won't give you
>the same lazy initialized exception again as hibernate session can be closed
>before you try to access the collection.)
>
>Simple solutions
>1) eager fetch the collection if it's small.
>2)For a big collection, write a method in  data access layer  that retrieves
>collection/association( initialize the collection this time).
>   you can also do  database paging  in this case.
>
>regards,
>vineet semwal
>
>On Fri, Jun 19, 2009 at 11:13 AM, Ryan  wrote:
>
>> I have been reading Nick Wiedenbrueck's blog, specifically about
>> patterns and pitfalls when using wicket with spring and hibernate.
>>
>> It seems fairly common for programmers to run into the "issue" of having
>> entities persisted to the database at unexpected times. This happens
>> when a transaction is closed and the hibernate session is flushed.
>> Certainly this issue is not specific to using Wicket with spring and
>> hibernate, but I think it is common enough to warrant some attention.
>>
>> There are a few suggestions to solving this problem:
>>
>> 1) Use DTOs
>> 2) Make sure validation happens in wicket so the object is not modified
>> 3) Clear the hibernate session or throw exceptions at just the right
>> times
>>
>> I think all of these have some issues. Using DTOs is code heavy.
>> Validating entirely in wicket is not always an option (sometimes the
>> service tier needs to do some extended business validation). Clearing
>> the hibernate session or throwing exceptions will cause Lazy
>> Initialization exceptions if not used carefully (which can be hard when
>> you do not control all the components on a page)
>>
>> I wanted to share one solution I have used and see what others think.
>>
>> I mark all of my transactional methods (usually in the service) as read
>> only. I then define a set of "persist" methods (usually on a DAO) that
>> are marked as REQUIRES_NEW and are not read only. When I am ready to
>> persist an object it is passed to one of these methods and merged into
>> the session. This effectively persists the object. Some of these persist
>> methods can take a collection of objects so that they can be persisted
>> efficiently in one transaction. So far this has worked well for me.
>>
>> Does anyone have any thoughts on this method or can share some other
>> techniques?
>>
>> Thanks,
>> Ryan
>>
>> -
>> 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



Creating a form dynamically

2009-06-19 Thread Ryan LaHue
I'm trying to build a form dynamically and am having a little problem.
Basically I have a class that takes a List and then passes
them into a ListView for display on screen.  The problem is that they were
created elsewhere and I have no control over two things:
1) The order/type of each FormComponent
2) The wicket:id that was chosen for them when the FormComponents were
created

I think I've solved 1) by creating wrapper classes for each supported
FormComponent type... for example, I have a DropDownChoicePanel which simply
adds the DropDownChoice it is passed to its html, which is simply a .  This way I can simply wrap each
FormComponent in the list with a panel and add all the panels to my listview
rather than the components themselves -- this solves the problem of
homogenizing the listview's HTML.

But 2) is causing me problems, because unless I require all FormComponents
to be given a wicket:id which is prespecified and is the same as that in the
DropDownChoicePanel (wicket:id="component") then it will not work.

Am I going about this all wrong?  Is there any way I can receive a
FormComponent and then change its wicket:id so that it will always be
"component" in my ListView?  Or is there a solution for this problem
already?

Much thanks for any advice.


Hibernate Transactions and Wicket

2009-06-18 Thread Ryan
I have been reading Nick Wiedenbrueck's blog, specifically about
patterns and pitfalls when using wicket with spring and hibernate.

It seems fairly common for programmers to run into the "issue" of having
entities persisted to the database at unexpected times. This happens
when a transaction is closed and the hibernate session is flushed.
Certainly this issue is not specific to using Wicket with spring and
hibernate, but I think it is common enough to warrant some attention.

There are a few suggestions to solving this problem:

1) Use DTOs
2) Make sure validation happens in wicket so the object is not modified
3) Clear the hibernate session or throw exceptions at just the right
times

I think all of these have some issues. Using DTOs is code heavy.
Validating entirely in wicket is not always an option (sometimes the
service tier needs to do some extended business validation). Clearing
the hibernate session or throwing exceptions will cause Lazy
Initialization exceptions if not used carefully (which can be hard when
you do not control all the components on a page)

I wanted to share one solution I have used and see what others think.

I mark all of my transactional methods (usually in the service) as read
only. I then define a set of "persist" methods (usually on a DAO) that
are marked as REQUIRES_NEW and are not read only. When I am ready to
persist an object it is passed to one of these methods and merged into
the session. This effectively persists the object. Some of these persist
methods can take a collection of objects so that they can be persisted
efficiently in one transaction. So far this has worked well for me.

Does anyone have any thoughts on this method or can share some other
techniques?

Thanks,
Ryan

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



Re: JDeveloper - Can I get a show of hands?

2009-06-18 Thread Ryan Gravener
http://instantcrickets.com
Ryan Gravener
http://bit.ly/no_word_docs


On Thu, Jun 18, 2009 at 7:12 PM, Nick Heudecker wrote:

> JDeveloper?
>
> *crickets*
>
> :)
>
> --
> Nick Heudecker
> Professional Wicket Training & Consulting
> http://www.systemmobile.com
>


Re: file upload

2009-06-02 Thread Ryan Gravener
Not sure what the wicket default is but you may want to do in your
application:

getApplicationSettings().setDefaultMaximumUploadSize(Bytes.megabytes(100));

On Tue, Jun 2, 2009 at 12:37 PM, Igor Vaynberg wrote:

> wicket file upload will do just fine.
>
> -igor
>
> On Tue, Jun 2, 2009 at 9:29 AM, tubin gen  wrote:
> > I am using wicket file upload , In our application users want to upload
> big
> > files  with the size of 50 MB+,  Do I need any  additional support of or
> > wicket file upload allows this ?
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: can't build Elephas

2009-06-01 Thread Ryan Gravener
It's unlikely the SNAPSHOT for surefire will linger around.  Change that to
2.4.3

Ryan Gravener
http://isithotinhereorisitjust.me | http://twitter.com/ryangravener


On Mon, Jun 1, 2009 at 2:47 PM, danisevsky  wrote:

> hi, I would like to try Elephas but I can't build it with maven. Does
> anyone
> have actual pom.xml file? Or am I doing somethig wrong?
>
> mvn install -Dmaven.test.skip=true
>
>
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.apache.maven.plugins:maven-surefire-plugin
>
> Reason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in
> reposi
> tory: Unable to download the artifact from any repository
>
>  org.apache.maven.plugins:maven-surefire-plugin:pom:2.4-SNAPSHOT
>
> from the specified remote repositories:
>  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/),
>  elephas-repository (http://elephas.googlecode.com/svn/misc/maven/),
>  wicket-stuff-repository (http://www.wicketstuff.org/maven/repository/),
>  central (http://repo1.maven.org/maven2),
>  temp-repository (
> http://people.apache.org/~frankbille/releases/apache-wicket-1
> .4-m1/m2-repo/<http://people.apache.org/%7Efrankbille/releases/apache-wicket-1%0A.4-m1/m2-repo/>
> )
>
>  for project org.apache.maven.plugins:maven-surefire-plugin
>
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Mon Jun 01 20:35:22 CEST 2009
> [INFO] Final Memory: 2M/6M
> [INFO]
> 
>


Re: Help debugging why a component is not showing up...

2009-06-01 Thread Ryan McKinley
yup that helps!  Also just found:
WicketTesterHelper.getComponentData( getPage() )

thanks


On Sat, May 30, 2009 at 3:06 PM, jWeekend  wrote:
>
> Ryan,
>
> Is PageView what you're looking for?
>
> Regards - Cemal
> http://jWeekend.com jWeekend
>
>
>
>
> ryantxu wrote:
>>
>> Hello-
>>
>> I am pulling my hair out trying to figure out why a component is not
>> showing up within a page.  When I run the app from eclipse in
>> development or deployment mode, it shows up just fine.  When I build a
>> package run that... no luck.  However it does include javascript
>> libraries added from the (not visible) components.
>>
>> Is there an easy way to debug the component hierarchy on the page?
>>
>> Perhaps some way to dump the current page tree to text or something?
>>
>> Any pointers would be great!
>>
>> thanks
>> ryan
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Help-debugging-why-a-component-is-not-showing-up...-tp23796086p23796445.html
> Sent from the Wicket - User 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



Help debugging why a component is not showing up...

2009-05-30 Thread Ryan McKinley
Hello-

I am pulling my hair out trying to figure out why a component is not
showing up within a page.  When I run the app from eclipse in
development or deployment mode, it shows up just fine.  When I build a
package run that... no luck.  However it does include javascript
libraries added from the (not visible) components.

Is there an easy way to debug the component hierarchy on the page?

Perhaps some way to dump the current page tree to text or something?

Any pointers would be great!

thanks
ryan

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



Re: Wicket Quickstart vs WIA eclipse projects: why so different?

2009-05-29 Thread Ryan Gravener
Yes, that is the real students dream.

mvn eclipse:eclipse


On Fri, May 29, 2009 at 5:51 PM, Igor Vaynberg wrote:

> why dont you just start the project from eclipse directly using the
> Start class, that way you get debug and hotswap - which should be the
> real "student's dream" :)
>
> -igor
>
> On Fri, May 29, 2009 at 2:53 PM, David Brown
>  wrote:
> > Hello Martin, Jeremy, dev, gurus, users and mortals. I have just finished
> ch. 13 of the WIA.pdf. I have followed closely the reading using the
> wicket-in-action eclipse project. I have the wicket-in-action running under
> the: mvn jetty:run. The wicket-in-action project is redeployed every 60
> seconds (a student's dream). After finishing the 13th chapter I decided to
> leave the nest for the 1.4rc QuickStart. The new QuickStart project expanded
> and imported into the Eclipse workspace no-problemo. The mystery is what am
> I doing wrong to get the automatic 60 second re-deploy. As it stands now I
> have to kill jetty, mvn package and then restart jetty (mvn jetty:run). I
> have pasted in the:
> >
> >
> > **
> > 
> >configuration
> >development
> > 
> > **
> >
> > from the wicket-in-action web.xml but no change. The Windows cmd console
> shows the usual Wicket WARNING: running in development mode. I plan to use
> the wicket-in-action almost verbatim including the Hibernate DAO for my
> current gig. It is probably only a few weeks before they start holding my
> feet to the fire.
> >
> > Please advise, David.
> >
> > -
> > 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: Expired sign in link after signing out

2009-05-26 Thread Ryan Gravener
add(new BookmarkablePageLink("signin", SigninPage.class));

Ryan Gravener
http://isithotinhereorisitjust.me | http://twitter.com/ryangravener


On Tue, May 26, 2009 at 6:32 PM, Tim Moose  wrote:

> Hi,
>
> This seems like a FAQ but I couldn't find it. All of my pages have a
> common header with sign in / sign out links. When the user clicks the
> sign in link, I want to display the sign in page and then return to
> the previous page after the user signs in. My sign in link looks like
> this:
>
>add(new Link("signin") {
>@Override
>public void onClick() {
>throw new
> RestartResponseAtInterceptPageException(SignInPage.class);
>}
>...
>}
>
> This works fine unless the user has just signed out, at which point
> the link leads to an expired page error. My sign out page constructor
> does the following:
>
>getSession().invalidate();
>setResponsePage(pageClass);
>
> I think I get what's wrong with this, but none of the variations I've
> tried work. So how can I get the sign in link to work after signing
> out?
>
> Thanks,
> Tim
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Getting the display string for the selected option in a DropDownChoice

2009-05-22 Thread Ryan LaHue
I am trying to write a generic behavior which needs to work for any
DropDownChoice.  I need to retrieve the selected option's display string.
The problem is, much of the time I only store the ID (not the display), so
using getModelObject() and running it through the
DropDownChoice.getChoiceRenderer().getDisplayValue(T) does not work and only
returns null.
i.e. ddc.getChoiceRenderer().getDisplayValue(ddc.getModelObject());

I also cannot guarantee that the ID class's equals and hashcode functions
will be implemented as expected, so this will not work:
i.e. ddc.getChoices().get(ddc.getChoices().indexOf(ddc.getModelObject()));

Is there a method I'm missing which I can call to return the
dropdownchoice's display value of its internal list's selected option?  Any
other ideas?


Re: OT: JavaOne

2009-05-18 Thread Ryan
This is my first time attending and there is certainly a ton of JavaFX
crap that I'll be skipping. There still seems to be some useful stuff
this year, and it will be fun to meet some other like minded people :-)

I don't blame you for not going. I wouldn't be going either if my costs
weren't covered.

If I can find someone/some place to offer suggestions or to gripe I will
certainly vote for some wicket sessions. There are some fairly obscure
topics, so there is no excuse for ignoring Wicket. Even Tapestry has a
session and there are a ton of JSF sessions.

If you decide to come down let me know, it would be great to meet you in
person.

-Ryan

On Mon, May 18, 2009 at 04:47:01PM -0700, Igor Vaynberg exclaimed:

>I was thinking of going. I went last year but it was such a
>javafx-fest that it was hard to find anything interesting that wasn't.
>This year seems even more so. If I wanted to get a bunch of sun
>propaganda thrown at me I don't  see why I need to pay for it. Have I
>mentioned they rejected a wicket presentation proposal last year, and
>two this year?
>
>-Igor
>
>On Monday, May 18, 2009, Ryan  wrote:
>> Are there any Wicket fans going to JavaOne this year? I'm flying in from
>> Boise on June 1st and would love to meet some fellow wicketers while I'm
>> there. I'll be wearing all my Wicket attire and singing the Wicket
>> praise every chance I get... maybe we will see a session on wicket next
>> year.
>>
>> -Ryan
>>
>> -
>> 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



OT: JavaOne

2009-05-18 Thread Ryan
Are there any Wicket fans going to JavaOne this year? I'm flying in from
Boise on June 1st and would love to meet some fellow wicketers while I'm
there. I'll be wearing all my Wicket attire and singing the Wicket
praise every chance I get... maybe we will see a session on wicket next
year.

-Ryan

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



Re: HybridUrlCodingStrategy and parameters with "."

2009-05-13 Thread Ryan McKinley

any thoughts?  thanks


On May 7, 2009, at 4:04 PM, Ryan McKinley wrote:

I'm using the HybridUrlCodingStrategy and ran into a glitch when I  
have parameter values that include the character "."


For example, if I make a link with:
params.add( "p", "Hello 2.01.00" )

This creates a link to:
http://host/context/path/p/Hello%202.01.00

and then that gets redirected to:
http://host/context/path/p/Hello%202.${page version here}

and the parameter value is lost.

Things work fine if I escape "." with "%2E":
http://host/context/path/p/Hello%202%2E01%2E00

I'm trying to follow the parameter setting code to where it actually  
does the escaping with little success.  What would be the  
recommended way to get around this limitation?  Is it something that  
should be fixed for HybridUrlCodingStrategy in general?


thanks
ryan




Behavior to replace the contents between open and close ComponentTag tags

2009-05-12 Thread Ryan LaHue
Can I remove/replace the contents between an open and close tags in the
onComponentTag(component, tag) method of AbstractBehavior?
I'm able to change the tag from an ,  or  to 
as I wanted, but I am unable to remove the guts of the previous form
component.  When I do this with a  it leaves behind all the 
tags.

Here's what I have so far.  I am able to update the attributes of the tag
itself, but I can't seem to remove/replace the text between open and close
tags:

 public void onComponentTag(final Component component, final
ComponentTag tag) {
  if (!component.isEnabled()) {
tag.setName("span");
tag.put("value", component.getDefaultModelObjectAsString()); //This
only updates the "value" attribute of the tag, not the contents
  }

I am trying to find a non-intrusive way to replace disabled components with
labels.  I started working on a Visitor but it does not seem to work since
my page uses multiple ajax refreshes of various subsections of a form -- the
Visitor works better for full page refreshes.

I was about to subclass the various form elements (TextField, TextArea,
DropDownChioce, etc) and then override their onBeforeRender methods to
replace the components with labels if they were disabled, but I'm wondering
if I can achieve this with a behavior instead.


Re: inmethod grid & converter/formatter?

2009-05-07 Thread Ryan McKinley

what about just implementing AbstractLightWeightColumn#newCell?

this lets you write text directly to the output...


On May 7, 2009, at 4:15 PM, Brill Pappin wrote:

I'm spiking on the inmethod grid components from wicketstuff (1.4- 
SNAPSHOT)


I need to be able to format the data in columns and or modify it for  
view only columns.


the specific case is a description field that sometime needs and  
ellipsis.


I can't see any way to add converters or formatters to the column  
models.. have anyone else tried this or come up with a solution?


So far the only solution i have is to wrap my Pojo's in another pojo  
and provide read-only access to one of the fields.


- Brill Pappin




HybridUrlCodingStrategy and parameters with "."

2009-05-07 Thread Ryan McKinley
I'm using the HybridUrlCodingStrategy and ran into a glitch when I  
have parameter values that include the character "."


For example, if I make a link with:
params.add( "p", "Hello 2.01.00" )

This creates a link to:
http://host/context/path/p/Hello%202.01.00

and then that gets redirected to:
http://host/context/path/p/Hello%202.${page version here}

and the parameter value is lost.

Things work fine if I escape "." with "%2E":
http://host/context/path/p/Hello%202%2E01%2E00

I'm trying to follow the parameter setting code to where it actually  
does the escaping with little success.  What would be the recommended  
way to get around this limitation?  Is it something that should be  
fixed for HybridUrlCodingStrategy in general?


thanks
ryan

Re: Wicket Offline Applications

2009-05-01 Thread Ryan Gravener
I would just make an adobe air application for offline use.


Ryan Gravener
http://isithotinhereorisitjust.me | http://twitter.com/ryangravener


On Fri, May 1, 2009 at 10:53 AM, Jeremy Thomerson  wrote:

> I haven't looked into Gears at great length, but I think you may be up
> against a wall here - where the two may be incompatible.  Offline
> gears applications require fat clients.  Wicket isn't typically for
> making fat clients because everything about it ties it back to the
> server.
>
> If you already have it such that each office has their own server and
> database, then it seems that this isn't a product development problem
> so much as it's a network support issue.  How often should the network
> within an office really be down?  I'd try to push this problem back up
> the management chain.
>
> Conceptually, it's a cool idea, though.  Let us know if you have any
> success.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Fri, May 1, 2009 at 3:04 AM, Carlo Camerino 
> wrote:
> > Hi,
> >
> > Is there any project which has Wicket And Google Gears Integration?
> > Wicket has really done a lot of us in speeding up development time.
> Coming
> > from a struts we saw the power of Wicket in terms its reusability and
> i've
> > noticed that
> > wicket already did most of the tasks that we would have to manually do
> using
> > struts application, like session timeouts, redirects, etc
> >
> >  One of our main concerns however are that clients
> > are asking for our applications to be available even if the network is
> down
> > or if the central server is down..
> > Currently we implemented our applications in a distributed fashion
> wherein
> > every branch ( Remote Location)  has its own server.
> > However, this has implications of cost and administration issues.
> > However, if offline mode is enabled we can just begin syncing right.
> >
> > I think that Wicket WIth Google Gears Application will make it even
> better .
> >
> >
> > I think this is really a plus when it comes to marketing it to customers.
> > Most of the applications that we create our banking applications and any
> > downtime is costing our clients.
> >
> > Hopefully we can also do this to offload the central servers and to put
> > processing into client machines.
> >
> > One large problem I see though is that most code wil have to be moved to
> the
> > Browser Layer.
> > I'm thinking of how to create a wicket application which is mostly run by
> > java classes work on the client side.
> > Looks as if there will be a lot of code changes...
> > I'm not really sure if it would be a totally different programming model.
> >
> > Anyone out there tried to integrate Gears And Wicket
> >
> > Carlo
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Share Localization across many pages/componets

2009-04-30 Thread Ryan McKinley

aaah, that makes sense...


On Apr 30, 2009, at 4:29 PM, Jeremy Thomerson wrote:


put it all in MyApp.properties or MyBasePage.properties.  There's a
very good section on this in WiA book, and I know that someone also
did a good blog post about it around a year ago.

--
Jeremy Thomerson
http://www.wickettraining.com




On Thu, Apr 30, 2009 at 3:22 PM, Ryan McKinley   
wrote:
I'm finally getting around to localizing my application -- the  
wicket tools

for this are awesome, thank you!

Everything works great when I follow the standard pattern:
 page.html
 page.properties
 page_es.properties

This is all fine and good, but in practice, I have many strings  
that are
duplicated across many pages/components and don't want to maintain  
duplicate

translations etc.

How do people generally solve this problem?  I don't see any  
references on
the wiki/web -- perhaps a custom ResourceStreamLocator?  Is there a  
standard
way to consolidate all my localization rather then sprinkled within  
my

source tree?

Thanks for any pointers

Ryan

-
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



Share Localization across many pages/componets

2009-04-30 Thread Ryan McKinley
I'm finally getting around to localizing my application -- the wicket  
tools for this are awesome, thank you!


Everything works great when I follow the standard pattern:
 page.html
 page.properties
 page_es.properties

This is all fine and good, but in practice, I have many strings that  
are duplicated across many pages/components and don't want to maintain  
duplicate translations etc.


How do people generally solve this problem?  I don't see any  
references on the wiki/web -- perhaps a custom ResourceStreamLocator?   
Is there a standard way to consolidate all my localization rather then  
sprinkled within my source tree?


Thanks for any pointers

Ryan

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



Re: Weird DatePicker / DateTextField off by one hour

2009-04-30 Thread Ryan Gravener
https://issues.apache.org/jira/browse/WICKET-1314

Ryan Gravener
http://isithotinhereorisitjust.me | http://twitter.com/ryangravener


On Thu, Apr 30, 2009 at 11:28 AM, Ryan Gravener wrote:

> What version of wicket, what timezone?
>


Re: Weird DatePicker / DateTextField off by one hour

2009-04-30 Thread Ryan Gravener
What version of wicket, what timezone?

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



Weird DatePicker / DateTextField off by one hour

2009-04-29 Thread Ryan LaHue
I have a DateTextField to which I am adding a DatePicker.  The Display works
fine: if I select 4/1/2009 using the DatePicker and I save the form data to
my database, then populate the form again from values in the database, I am
seeing 4/1/2009.

But when I look at my database I see that the stored date is actually
3/31/2009 23:00:00, which is 1 hour before 4/1/2009.

This does not seem to be a Locale issue (that I can tell), as I am running
everything on my local machine.  Also, the odd thing is that when I select
4/1/2009 through 4/5/2009 I get a date stored in my database which is 1 hour
before the selected date.  But when I select anything from 4/6/2009 through
4/30/2009 the date is stored correctly.

I added log statements when the info is loaded from the database and before
it is persisted, and the issue is within the web application.  When I print
the dates before persisting them to the database they are wrong by 1 hour,
for 4/1/2009 through 4/5/2009.

I had the same issue with yui.DateField, but I'm not sure if this is a YUI
DatePicker issue or something else I am not considering or doing correctly.

Here's a snippet of my code:

DateTextField appointmentPickerTextField = new
DateTextField("dayOfYear", new PropertyModel(appointment, "dayOfYear"), new
StyleDateConverter(false)) {
  @Override
  public boolean isVisible() {
return appointment.getScheduledDate() != null;
  }
};
appointmentPickerTextField .setRequired(true);
appointmentPickerTextField .add(new DatePicker());

Any thoughts?


Re: Updating a Label in a Form using AjaxFormComponentUpdatingBehavior

2009-04-29 Thread Ryan Norris

Wow.  Nice catch.

Lesson learned - be cautious with the m2eclipse plugin and the WTP  
when attching Javadocs to the library.


Thanks.

On Apr 28, 2009, at 10:55 PM, Jeremy Thomerson wrote:


You have the javadocs jar in your classpath.  It shouldn't be.  That
should fix the error page so that you can see your error (which should
also be visible in the logs anyway).

--
Jeremy Thomerson
http://www.wickettraining.com




On Tue, Apr 28, 2009 at 8:53 PM, Ryan Norris   
wrote:

I've been struggling for a while now fighting with
AjaxFormComponentUpdatingBehavior and changing the value of a label
within form when a certain javascript precondition is met.

Code below.

public final class RegistrationForm extends Form {
private static final long serialVersionUID = 1L;

private Registration _registration = new Registration();
private CityState _cityState = new CityState();

public RegistrationForm(String id) {
super(id);

add(new TextField("emailAddress", new
PropertyModel(_registration, "emailAddress")));
add(new PasswordTextField("password", new
PropertyModel(_registration, "password")));
add(new TextField("firstName", new
PropertyModel(_registration, "firstName")));
add(new TextField("lastName", new
PropertyModel(_registration, "lastName")));
add(new TextField("address1", new
PropertyModel(_registration, "address1")));
add(new TextField("address2", new
PropertyModel(_registration, "address2")));
add(new TextField("establishmentName", new
PropertyModel(_registration, "establishmentName")));

final Label cityStateLabel = new Label("cityState", new
PropertyModel(_cityState, "city"));
cityStateLabel.setOutputMarkupId(true);

final TextField zipCodeField = new
TextField("zip", new PropertyModel(_registration,
"postalCode"));

zipCodeField.add(new  
AjaxFormComponentUpdatingBehavior("onKeyUp") {

private static final long serialVersionUID = 1L;

@Override
protected CharSequence getPreconditionScript() {
return "return $(\"input[name='zip'] 
\").val().length == 5;";

}

@Override
protected void onUpdate(AjaxRequestTarget target) {
if(target != null) {
_log.info(String.format("Looking up postal
code: %1$s", _registration.getPostalCode()));

PostalCode pc =
_postalCodeManager 
.getLocaleDataForCode(_registration.getPostalCode());


_cityState.setCity(pc.getCity());
_cityState.setState(pc.getState());

target.addComponent(cityStateLabel);
}
}
});

add(zipCodeField);
add(cityStateLabel);
}

@Override
protected void onSubmit() {
try {

_accountManager.createAccount(_registration.getEmailAddress(),
_registration.getPassword());
} catch (DuplicateEmailAddressException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

The general gist is to display the city for a given input of 5
characters.  The error I'm getting is completely unrelated...

exception

org.apache.wicket.WicketRuntimeException: Internal Error: Could not
render error page class
org.apache.wicket.markup.html.pages.InternalErrorPage

org 
.apache 
.wicket 
.request 
.AbstractRequestCycleProcessor 
.respond(AbstractRequestCycleProcessor.java:174)

   org.apache.wicket.RequestCycle.step(RequestCycle.java:1321)
   org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370)
   org.apache.wicket.RequestCycle.request(RequestCycle.java:501)

org 
.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java: 
455)

org 
.apache 
.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)


root cause

org.apache.wicket.markup.MarkupException: Tag '' (line 101,  
column

1) has a mismatched close tag at '' (line 102, column 1)
[markup = jar:file:/C:/Documents%20and%20Settings/rnorris/ 
workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/ 
wtpwebapps/web/WEB-INF/lib/wicket-1.4-rc2-javadoc.jar!/org/apache/ 
wicket/markup/html/pages/ExceptionErrorPage.html

http://www.w3.org/TR/html4/loose.dtd";>




So, aside from the exception being pretty useless - debugging things
gets me pretty deep in the weeds.  Before I go through the trouble of
filing a JIRA ticket, can anyone tell me:

1.  Is what I'm doing a covered use case 

Updating a Label in a Form using AjaxFormComponentUpdatingBehavior

2009-04-28 Thread Ryan Norris
I've been struggling for a while now fighting with
AjaxFormComponentUpdatingBehavior and changing the value of a label
within form when a certain javascript precondition is met.

Code below.

    public final class RegistrationForm extends Form {
        private static final long serialVersionUID = 1L;

        private Registration _registration = new Registration();
        private CityState _cityState = new CityState();

        public RegistrationForm(String id) {
            super(id);

            add(new TextField("emailAddress", new
PropertyModel(_registration, "emailAddress")));
            add(new PasswordTextField("password", new
PropertyModel(_registration, "password")));
            add(new TextField("firstName", new
PropertyModel(_registration, "firstName")));
            add(new TextField("lastName", new
PropertyModel(_registration, "lastName")));
            add(new TextField("address1", new
PropertyModel(_registration, "address1")));
            add(new TextField("address2", new
PropertyModel(_registration, "address2")));
            add(new TextField("establishmentName", new
PropertyModel(_registration, "establishmentName")));

            final Label cityStateLabel = new Label("cityState", new
PropertyModel(_cityState, "city"));
            cityStateLabel.setOutputMarkupId(true);

            final TextField zipCodeField = new
TextField("zip", new PropertyModel(_registration,
"postalCode"));

            zipCodeField.add(new AjaxFormComponentUpdatingBehavior("onKeyUp") {
                private static final long serialVersionUID = 1L;

                @Override
                protected CharSequence getPreconditionScript() {
                    return "return $(\"input[name='zip']\").val().length == 5;";
                }

                @Override
                protected void onUpdate(AjaxRequestTarget target) {
                    if(target != null) {
                        _log.info(String.format("Looking up postal
code: %1$s", _registration.getPostalCode()));

                        PostalCode pc =
_postalCodeManager.getLocaleDataForCode(_registration.getPostalCode());

                        _cityState.setCity(pc.getCity());
                        _cityState.setState(pc.getState());

                        target.addComponent(cityStateLabel);
                    }
                }
            });

            add(zipCodeField);
            add(cityStateLabel);
        }

        @Override
        protected void onSubmit() {
            try {

_accountManager.createAccount(_registration.getEmailAddress(),
_registration.getPassword());
            } catch (DuplicateEmailAddressException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
    }

The general gist is to display the city for a given input of 5
characters.  The error I'm getting is completely unrelated...

exception

org.apache.wicket.WicketRuntimeException: Internal Error: Could not
render error page class
org.apache.wicket.markup.html.pages.InternalErrorPage

org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:174)
org.apache.wicket.RequestCycle.step(RequestCycle.java:1321)
org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370)
org.apache.wicket.RequestCycle.request(RequestCycle.java:501)

org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)

org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)

root cause

org.apache.wicket.markup.MarkupException: Tag '' (line 101, column
1) has a mismatched close tag at '' (line 102, column 1)
[markup = 
jar:file:/C:/Documents%20and%20Settings/rnorris/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/web/WEB-INF/lib/wicket-1.4-rc2-javadoc.jar!/org/apache/wicket/markup/html/pages/ExceptionErrorPage.html
http://www.w3.org/TR/html4/loose.dtd";>




So, aside from the exception being pretty useless - debugging things
gets me pretty deep in the weeds.  Before I go through the trouble of
filing a JIRA ticket, can anyone tell me:

1.  Is what I'm doing a covered use case (update a label in a form as
a result of a AjaxFormComponentUpdatingBehavior event)?
2.  Is my approach expected to work?  From the scattered documentation
I've found, this looks completely feasible.
3.  Are there any known issues with the rendering and handling of
Errors in 1.4-rc2?  This isn't the first time I've encountered some
really difficult to debug problems, but the fact that this is in an
AJAX scenario makes this really painful.

Thanks.

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



Reversing checkbox behavior or negating a property model expression

2009-04-24 Thread Ryan LaHue
I'm scratching my head trying to figure out the best way to reverse the
behavior of a checkbox, i.e. display an unchecked box when the model behind
is true, and a checked box when the model behind is false.  I don't want to
negate all my domain objects' getters/setters to accomodate this.

I was going to override the CheckBox.getConverter class to point to an
extension of CheckBoxConverter with an overridden convertToObject method and
simply reverse the:
if ("on".equals(value) || "true".equals(value))
{
return Boolean.TRUE;
}
else
{
return Boolean.FALSE;
}

Unfortunately the CheckBox.getConverter method is marked final, so this is
not a possibility.  I could override the onComponentTag method but I do not
think it would be a good idea since there is a lot going on in there.

Alternatively if there was a simple way to negate the value of the
setter/getter in a PropertyModel I think that would do the trick, i.e.
new CheckBox("checkbox", new PropertyModel(domainObject, "!blue"));

Any suggestions?


Re: Strange behavior with palette (1.3.4) and IE7

2009-04-22 Thread Ryan McKinley
The following like is for Apache Solr, but most of it applies to any  
Apache project:

http://wiki.apache.org/solr/HowToContribute

In particular, check:
http://wiki.apache.org/solr/HowToContribute#head-23efb2d0bdccabdfb1de743a6dea519e9194


On Apr 22, 2009, at 3:55 PM, Jeremy Thomerson wrote:


http://issues.apache.org/jira/browse/WICKET

--
Jeremy Thomerson
http://www.wickettraining.com




On Wed, Apr 22, 2009 at 2:53 PM, Eyal Golan   
wrote:

I would love doing so.
Is there a special way / place?
(where to put? what to put?)


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really  
necessary



On Wed, Apr 22, 2009 at 7:43 PM, Igor Vaynberg >wrote:


the right thing to do would be to provide a patch back to the  
community...


-igor

On Wed, Apr 22, 2009 at 7:52 AM, Eyal Golan   
wrote:

With pleasure.

1. I overridden Palette.java and Palette.html
In Palette.html I added the line below (with the span).
In Palette.java all we did is override renderHead (see below)
2. We created a new palette.js and added the script file as below.

Hope that helps.

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really

necessary



On Wed, Apr 22, 2009 at 5:34 PM, Carlo Camerino 
I think we are also expericning this problem same as yours
If you will allow, can I have a copy of your fix for this one?
what files did you modify?
Thanks

Carlo

2009/4/22 Eyal Golan 

I fixed the annoying thing by overriding the html panel of the  
palette

(which I did previously for other purposes) and adding an element

(1484

is

our bugzilla issue number):




Also:
   /**
* Renders header contributions
*
* @param response
*/
   @Override
   public void renderHead(IHeaderResponse response) {
   super.renderHead(response);
   response.renderJavascriptReference(new
ResourceReference(CustomPalette.class, "customepalette.js"));
   }

and finally:
Wicket.Palette.moveUp=function(choicesId, selectionId,  
recorderId) {

   var selection=Wicket.Palette.$(selectionId);

   if (Wicket.Palette.moveUpHelper(selection)) {
   document.getElementById('ie7bug-1484').innerHTML = '';
   var recorder=Wicket.Palette.$(recorderId);
   Wicket.Palette.updateRecorder(selection, recorder);
   } else {
   document.getElementById('ie7bug-1484').innerHTML = '';
   }
   }

I really don't like these kinds of hacks, but what can I say? IE7

wouldn't

let me any other option.

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really

necessary



On Wed, Apr 22, 2009 at 12:13 PM, Eyal Golan 

wrote:



We have a very strange behavior in palette and IE7.
We use Wicket 1.3.4 .

The situation is:
when pressing the UP button, the selected element goes up in  
each

click.

That's OK.
The problem occurs when this element is in the second row.
When pressing UP, it won't go to the first (upper) row. Only  
when we

move

the mouse to the area of the selected elements it goes up.

In FF it doesn't happen.
in IE6 it doesn't happen as well.

I looked in the mailing list and couldn't see something about  
it.


Was it fixed in 1.3.5 ?

Thanks


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's  
really

necessary










-
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: @SSLRequired

2009-04-17 Thread Ryan Gravener
How about just having apache httpd rewrite the http(s) for the pages you
need?  I haven't yet did our ssl implementation, but I know that I don't
want the logic in wicket.

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Fri, Apr 17, 2009 at 11:27 AM, Douglas Ferguson <
doug...@douglasferguson.us> wrote:

> That's where I got my code..
>
> I'm hitting 2 issues
>
> 1) The ssl detection/redirect isn't happening till the end of the chain and
> when it redirects it redirects back to the top.
>Ie. Page 1 is not secure, Page 2 is secure. Page one redirects to
> Page 2.
>  If you go to page 1 then it attempts to redirect to page2 and then
> wicket redirects to Page 1 with https..
>  I would prefer to go directly to Page 2, but I can't figure out how to
> build that url..
> 2) My other issues is this:
> else if (requestTarget instanceof IPageRequestTarget) {
>targetClass = ((IPageRequestTarget)
> requestTarget).getPage()
>.getClass();
>}
> This means that if you redirect to a Page object which you have
> constructed with special state, then this throws that object away and wicket
> will use default constructor.
>
> -Original Message-
> From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of Ryan
> Gravener
> Sent: Friday, April 17, 2009 10:00 AM
> To: users@wicket.apache.org
> Subject: Re: @SSLRequired
>
> maybe this is of use:
> http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html
>
> Ryan Gravener
> http://ryangravener.com/flex | http://twitter.com/ryangravener
>
>
> On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson <
> doug...@douglasferguson.us> wrote:
>
> > I'm implement an SSL scheme using annotations and I'm having some issues
> > with redirecting properly.
> >
> > The issue is when I have non-secured page that redirects to a secured
> page.
> >
> > I'm doing the https/http redirecting inside of a
> WebRequestCycleProcessor,
> > which works well unless there is a redirect prior to the ssl redirect. If
> > this happens then I redirect back to the top of the chain, because I'm
> using
> > the HttpServletRequest to build the url, which returns url info based on
> the
> > orginal request. I've been looking all around and I can't find any way of
> > building a url that represents the last redirect. I've tried
> >
> >
> >
> Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget);
> > and
> > RequestCycle.get().urlFor(requestTarget)
> >
> > Here's my current impl for The RequestCycleProcessor.
> >
> >
> >WebRequest webRequest = (WebRequest) requestCycle .getRequest();
> >WebResponse webResponse = (WebResponse) requestCycle
> .getResponse();
> >HttpServletRequest httpServletRequest =
> > webRequest.getHttpServletRequest();
> >StringBuffer url = new StringBuffer(protocol);
> >url.append(httpServletRequest.getServerName());
> >if(defaultPort != port){
> >url.append(":" + port);
> >}
> >
> >
> >
> >
> >  url.append(webRequest.getHttpServletRequest().getContextPath());
> >url.append(webRequest.getServletPath());
> >String queryString =
> > webRequest.getHttpServletRequest().getQueryString();
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


Re: @SSLRequired

2009-04-17 Thread Ryan Gravener
maybe this is of use:
http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson <
doug...@douglasferguson.us> wrote:

> I'm implement an SSL scheme using annotations and I'm having some issues
> with redirecting properly.
>
> The issue is when I have non-secured page that redirects to a secured page.
>
> I'm doing the https/http redirecting inside of a WebRequestCycleProcessor,
> which works well unless there is a redirect prior to the ssl redirect. If
> this happens then I redirect back to the top of the chain, because I'm using
> the HttpServletRequest to build the url, which returns url info based on the
> orginal request. I've been looking all around and I can't find any way of
> building a url that represents the last redirect. I've tried
>
>
> Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget);
> and
> RequestCycle.get().urlFor(requestTarget)
>
> Here's my current impl for The RequestCycleProcessor.
>
>
>WebRequest webRequest = (WebRequest) requestCycle .getRequest();
>WebResponse webResponse = (WebResponse) requestCycle .getResponse();
>HttpServletRequest httpServletRequest =
> webRequest.getHttpServletRequest();
>StringBuffer url = new StringBuffer(protocol);
>url.append(httpServletRequest.getServerName());
>if(defaultPort != port){
>url.append(":" + port);
>}
>
>
>
>
>  url.append(webRequest.getHttpServletRequest().getContextPath());
>url.append(webRequest.getServletPath());
>String queryString =
> webRequest.getHttpServletRequest().getQueryString();
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


spring transaction rollback and wicket

2009-04-16 Thread Ryan
Has anyone found a convenient fix for this scenario:

You have a form that has fields for working on a large object. Most of
the validation is done through wicket, but there are a few complex
business rules that must be validated at the service tier. If these
rules fail an exception is thrown and spring rolls back the current
transaction (which was ultimately started by the Form and joined by the
service methods). The problem is that when spring rolls back a
transaction it clears the current hibernate session. This causes a
LazyInit exception because I have a panel that tries to load a
collection from the object during the same rendering cycle.

So far I can only think of 2 good fixes:
1) make the collection eagerly loaded
2) mark the forms transaction read-only, but mark the service method (which
persists the object) REQUIRES_NEW and then merge the object into this
new transaction if it passes extended validation.

I'm not even sure if #2 will work. Has anyone run into this?

-Ryan

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



Retrieving/serializing the javascript for an AjaxLink

2009-04-14 Thread Ryan LaHue
I am trying to embed javascript links in some JSON which I pass to Open
Flash Chart.  I am able to test this by giving the "on-click" attribute of a
chart element the value of "alert('testing')" and it pops up the alert as I
expect.  Now I need to create links to a Wicket page.  All the links will go
to the same page but I need to have different parameters depending on which
element of my chart was clicked.

I tried something like this but got null for the markup stream:

AjaxLink lateLink = new AjaxLink ("late")  {
  public void onClick(AjaxRequestTarget target) {
setResponsePage(new CarPage(make, model, year));
return;
  }
};
chart.setOnClick(lateLink.getMarkupStream());

How can I go about building a dynamic javascript link to a wicket page which
I can pass into the flash object?  The chart object is just a bean which I
run through a converter to seralizize its attributes to JSON.

Thanks for any help.


Re: iLearn Wicket - Please reply with your feedback

2009-04-13 Thread Ryan Gravener
I use jetty everywhere.

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Mon, Apr 13, 2009 at 12:49 PM, James Carman  wrote:

> On Mon, Apr 13, 2009 at 12:47 PM, Chenini, Mohamed 
> wrote:
> > Hi,
> >
> > I think that Wicket Users tend to use more Jetty than Tomcat as the
> application server.
>
> I don't know that that is true.  We definitely use jetty for
> development/debugging.  But, I don't know that the "production"
> application server is jetty more often than not (we use Tomcat for
> production).
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


ResourceReferences not working as expected

2009-04-13 Thread Ryan LaHue
I'm having trouble getting ResourceReferences to work for some reason, and
was hoping somebody could give me some pointers.  I'm using wicket 1.4.

As a simple test I added a new page and put a "test.png" image in the same
directory in my project.  My structure is like so:
project
|--src
|mypkg
|--test
|TestResource.java
|test.png
|--public_html
|images
|--test.png

Java class: mypkg.test.TestResource.java
...
ResourceReference ref = new ResourceReference(TestResource.class,
"test.png");
System.out.println("Valid resource: " + (ref.getResource() != null));
...

This always returns false.  I also tried putting the "test.png" in my
public_html/images directory but no luck.  I don't seem to have any luck
getting these Resources to load correctly, so I've had to resort to
hardcoding my javascript references into my html files.  Anybody have any
suggestions?  I've verified that all the files are being copied to my output
classes folder.


flush after ?

2009-04-09 Thread Ryan McKinley

Is there an easy way to flush after you send the  tag?

http://developer.yahoo.com/performance/rules.html#flush

I don't know if this is premature optimization or just hoping for  
magic speed up from simple fixes... but it is worth a shot!


thanks
ryan





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



Re: Turning off ModificationWatcher

2009-04-08 Thread Ryan Crumley
Matt,

Add this to your WebApplication.init() method:

getResourceSettings().setResourcePollFrequency(null);

Ryan

On Wed, Apr 8, 2009 at 9:33 PM, Matthew Welch  wrote:
> I'm experimenting with Wicket inside Google's new Java support for its App
> Engine. My simple apps run fine if the configuration is set to DEPLOYMENT,
> however in development mode, I get an exception related to
> ModificationWatcher. Looking at the exception I think this
> ModificationWatcher is being used as part of a new thread which is a no-no
> inside the App Engine sandbox. Is there way way to just disbable this
> modification watcher without putting the entire app in deployment mode?
> There are a number of items I like about development mode but this one
> glitch is preventing me from using it.
>
> Matt
>

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



Re: Updating form components in list view

2009-04-06 Thread Ryan Gravener
have you tried ListView#setReuseItems(true) ?

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Mon, Apr 6, 2009 at 4:57 PM, Jeff Palmer  wrote:

> I have a list view that has some form components (a checkbox and a
> RadioChoice). All of the data from the ListView is getting displayed on the
> page properly, but when I try to modify one of the form values, it isn't
> getting updated as expected. If anyone has any idea what I might be doing
> wrong, please let me know. I have pasted the contents of my code below.
>
> public class MaintainUsersPage extends EzdecBaseWebPage {
>
>@SpringBean
>private ISecurityRepository securityRepository;
>
>@SpringBean
>private ISecurityService securityService;
>
>private EzdecAccount account;
>
>public class UsersModel extends LoadableDetachableModel {
>private EzdecAccount account;
>
>public UsersModel(EzdecAccount account) {
>this.account = account;
>}
>
>@Override
>protected Object load() {
>List users =
> securityRepository.findAllNonArchivedUsersByAccount(account);
>return users;
>}
>}
>
> public MaintainUsersPage() {
>add(new FeedbackPanel("feedback"));
>
>account = EzdecSession.getCurrentUser().getAccount();
>
>add(new BookmarkablePageLink("inviteUserLink", InviteUser.class));
>
>add(new Label("accountName", new PropertyModel(account, "name")));
>
>Form form = new Form("maintainUsersForm");
>PageableListView users = new PageableListView("users", new
> UsersModel(account), 20) {
>
>@Override
>protected void populateItem(final ListItem item) {
>if (item.getIndex() % 2 == 0) {
>item.add(new SimpleAttributeModifier("class", "odd"));
>}
>final EzdecUser user = (EzdecUser) item.getModelObject();
>Link nameLink = new Link("nameLink") {
>@Override
>public void onClick() {
>setResponsePage(new UpdateUserProfilePage(user));
>}
>};
>nameLink.add(new Label("fullname", user.getFullname()));
>item.add(nameLink);
>item.add(new ExternalLink("emailLink", "mailto:"; +
> user.getEmail()).add(new Label("email", user.getEmail(;
>item.add(new CheckBox("active", new PropertyModel(user,
> "active")));
>item.add(new RadioChoice("roles",
> new PropertyModel(user, "roles"),
> Arrays.asList(EzdecRole.values(;
>Link deleteLink = new Link("delete") {
>@Override
>public void onClick() {
>if (securityService.archiveUser(user)) {
>EzdecSession.get().info("User " +
> user.getFullname() + " has been deleted.");
>setResponsePage(MaintainUsersPage.class);
>} else {
>EzdecSession.get().info("User " +
> user.getFullname() +
>" could not be be deleted. Please ensure
> that you " +
>" are an account administrator and that you
> are " +
>" not trying to delete your own account.");
>setResponsePage(MaintainUsersPage.class);
>}
>}
>};
>deleteLink.add(new SimpleAttributeModifier("onclick",
>"return confirm('Are you sure?');"));
>item.add(deleteLink);
>
>Link submitLink = new Link("submitLink") {
>@Override
>public void onClick() {
>if (securityService.updateUser(user)) {
>EzdecSession.get().info("User " +
> user.getFullname() + " has been updated.");
>setResponsePage(MaintainUsersPage.class);
>} else {
>EzdecSession.get().info("User " +
> user.getFullname() + " has not been updated.");
>setResponsePage(MaintainUsersPage.class);
>}
>}
>};
>item.add(submitLink);
>}
>};
>
>form.add(users);
>add(form);
>add(new PagingNavigator("navigator", users));
>}
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: panel wicket:extend confusion

2009-04-03 Thread Ryan McKinley

aaah.

I take it a Page is automatically marked as a transparent resolver --  
how do I mark a Panel as a transparent resolver?


I'll add the solution to:
http://cwiki.apache.org/WICKET/markup-inheritance.html

for the next guy!


On Apr 3, 2009, at 3:42 AM, Martijn Dashorst wrote:


You don't add the child to the right component: you have wrapped the
 tag inside a markup container. You have to make the markup
container a transparent resolver, *or* add the child components to the
markup container.

Martijn

On Fri, Apr 3, 2009 at 7:47 AM, Ryan McKinley   
wrote:
I have been using markup inheritance for page layout for a while  
without any

issue.

I just tried to use it for a Panel and am running into some issues  
-- I
imagine it is user error, so i figured I would ask here before  
banging my

head much longer.

I have two classes:


SimpleRow.java
public class SimpleRow extends Panel
{
 public SimpleRow(String id )
 {
   ...
  }
}

SimpleRow.html




 
  
 
 
  Title
  
 





- - - - - - - - - -

Then I want a subclass to fill in content for 

ExportRow.java
public class ExportRow extends SimpleRow
{
 public ExportRow(String id)
 {
   super( id );

   add( new Label( "test", "hello" ) );
 }
}

ExportRow.html

Here is some text xxx


- - - - - -  -

With this, I get an errror:
Unable to find component with id 'test' in [MarkupContainer  
[Component id =

_extend8]] ...

If I do not try to add any components in the subclass, things  
behave as I

would expect.

Am I missing something?

Thanks
ryan







--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
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



panel wicket:extend confusion

2009-04-02 Thread Ryan McKinley
I have been using markup inheritance for page layout for a while  
without any issue.


I just tried to use it for a Panel and am running into some issues --  
I imagine it is user error, so i figured I would ask here before  
banging my head much longer.


I have two classes:


SimpleRow.java
public class SimpleRow extends Panel
{
  public SimpleRow(String id )
  {
...
   }
}

SimpleRow.html




 
   
 
 
   Title
   
 





- - - - - - - - - -

Then I want a subclass to fill in content for 

ExportRow.java
public class ExportRow extends SimpleRow
{
  public ExportRow(String id)
  {
super( id );

add( new Label( "test", "hello" ) );
  }
}

ExportRow.html

Here is some text xxx


- - - - - -  -

With this, I get an errror:
Unable to find component with id 'test' in [MarkupContainer [Component  
id = _extend8]] ...


If I do not try to add any components in the subclass, things behave  
as I would expect.


Am I missing something?

Thanks
ryan




Re: maven-eclipse-plugin 2.6 will break your wicket projects

2009-04-02 Thread Ryan Gravener
Someone needs to start a facebook group and protest this change.

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Thu, Apr 2, 2009 at 2:14 PM, James Carman
wrote:

> On Thu, Apr 2, 2009 at 2:11 PM, Philippe Marschall  wrote:
> > Well there's a reason these folders are called java.
>
> Yes, but it's not specifically "illegal" in the maven world to put
> non-java files in there (didn't we have this argument a few days ago).
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Ryan Gravener
I'm still waiting on the scala implementation that was talked about around
this time last year.

2009/4/1 Daan van Etten 

> FX sounds just way cool.
>
> "WicketFX. Where function meets form. Web development in style."
>
> Say for yourself, would you rather want to work with a framework called
> Wicket, or a framework called WicketFX?!
>
> Birthday parties and pub nights never are the same again:
> "What technologies you use?
>  - "WicketFX, Spri.."
> "Wow! You are so cool!"
>
> Regards,
>
> Daan
>
> Op 1 apr 2009, om 15:36 heeft Chenini, Mohamed het volgende geschreven:
>
>
>  Same concern here. Why the "FX" suffix?
>>
>> -Original Message-
>> From: Johan Compagner [mailto:jcompag...@gmail.com]
>> Sent: Wednesday, April 01, 2009 9:33 AM
>> To: users@wicket.apache.org
>> Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX
>>
>> Failed eXtremely
>>
>>
>>
>> On Wed, Apr 1, 2009 at 15:08, Ames, Tim  wrote:
>>
>>  Please excuse my EXTREME ignorance, but what exactly does or will the
>>>
>> FX
>>
>>> mean from a Wicket standpoint?  What does it do or allow a developer
>>>
>> to do
>>
>>> that would designate it as "FX"?
>>>
>>>
>>>
>>> -Original Message-
>>> From: David Leangen [mailto:wic...@leangen.net]
>>> Sent: Wednesday, April 01, 2009 4:08 AM
>>> To: users@wicket.apache.org
>>> Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX
>>>
>>>  Or... WTF! (Wicket The Framework)
>>>>
>>>
>>> +1
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>>>
>> _ _ _
>>
>>>
>>> EMAIL CONFIDENTIALITY NOTICE
>>>
>>> This Email message, and any attachments, may contain confidential
>>> patient health information that is legally protected. This information
>>> is intended only for the use of the individual or entity named above.
>>> The authorized recipient of this information is prohibited from
>>>
>> disclosing
>>
>>> this information to any other party unless required to do so by law
>>> or regulation and is required to destroy the information after its
>>>
>> stated
>>
>>> need has been fulfilled. If you are not the intended recipient, you
>>>
>> are
>>
>>> hereby notified that any disclosure, copying, distribution, or action
>>> taken in reliance on the contents of this message is strictly
>>>
>> prohibited.
>>
>>>
>>> If you have received this information in error, please notify
>>> the sender immediately by replying to this message and delete the
>>> message from your system.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>  
>> This email/fax message is for the sole use of the intended
>> recipient(s) and may contain confidential and privileged information.
>> Any unauthorized review, use, disclosure or distribution of this
>> email/fax is prohibited. If you are not the intended recipient, please
>> destroy all paper and electronic copies of the original message.
>>
>>
>> -
>> 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
>
>


-- 
Ryan Gravener
http://ryangravener.com


Re: Start Wicket project with Spring and Hibernate

2009-03-31 Thread Ryan Gravener
Should be good.

http://code.google.com/p/wicket-flex-blazeds/source/browse/trunk/myproject-core/pom.xml

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Tue, Mar 31, 2009 at 10:45 AM, HHB  wrote:

> Hey,
> Our new Wicket application is to be build with Spring and Hibernate, so I
> included these:
>
>
>org.springframework
>spring
>2.5.6
>
>
>org.hibernate
>hibernate
>3.2.6.ga
>
>
>org.apache.wicket
>wicket-spring
>1.3.5
>
>
>org.apache.wicket
>wicket-spring-annot
>1.3.5
>
>
> Anything is missing?
> I noticed there are dependencies like spring-context,
> spring-context-support,
> spring-aop, hibernate-annotations and the list goes on.
> Should I include them too?
> Thanks.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


visibility Behavior?

2009-03-30 Thread Ryan McKinley
I am working on some security integration (Ki/wicket), and am looking  
at a general way to set component visibility based on the user  
permissions/roles etc.


Of course I could do:  component.setVisible( false ), but that gets  
really verbose when 'false' can be a rather long statement.


Wicket-auth-roles uses the authorize actions annotation to disable  
"RENDER/ENABLE"


I understand how to apply that if I construct a class with the  
annotation, but how would I apply something like that to an arbitrary  
component?


Could this be implemented with a Behavior?

Perhaps, beforeRender() could set enabled/visibility and cleanup()  
would restore it?


It would be great to be able to do:

WebMarkupContainer stuff = new WebMarkupContainer( "stats" );
stats.add( new AuthorizationConstraint( "view: stats" );

or something like that.

Any pointers?  Am I missing another preferred way to do this?

thanks
ryan

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



Re: freelance gig

2009-03-25 Thread Ryan McKinley


On Mar 25, 2009, at 2:58 PM, Martin Makundi wrote:


Don't do it: http://www.joelonsoftware.com/articles/fog69.html



I don't think that advice applies here...  assuming the meat of the  
project is contained in the " already written suite of spring services  
that work..."


Re-implementing a UI seems like a totally reasonable endeavor.




**
Martin

2009/3/25 Phillip Rhodes :
I apologize for this posting, but being a fellow wicket enthusiast  
who needs some help, I wouldn't have minded seeing such a posting.   
For our project, we are implementing a new user interface.  The  
existing UI is written using another java-based web framework, and  
many of the elements of the new interface requires components (i.e.  
Modal popups, trees) that either do not exist in this framework or  
are buggy.
Most of the application code is in the service layer and not the UI  
layer, so given the vastly different UI, a total UI rewrite is  
necessary.


The project is to implement a newly redesigned UI using wicket.   
The wicket UI will interface with an already written suite of  
spring services that work with hibernate to persist data to the  
database.  In addition to hibernate, the spring services layer will  
integrate with Lucene.  Ideally, the person to do this work is  
already familiar with wicket, spring, hibernate and Lucene.  Of  
most importance is familiarity with wicket.


The work can be done remotely, and we will be working together  
(splitting out the components, pages, etc) to deliver a new UI.   
Delivery is slated for mid-may.  Please email me (off the mailing  
list of course) if you are interested, how your experience matches  
what i need and what your rate requirements are.


Thanks, and I apologize for the non-development question.
Phillip



-
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: wicketstuff / ki / jsecurity

2009-03-25 Thread Ryan McKinley

dooh -- totally my fault.  I unintentionally posted some local changes:

/trunk/wicketstuff-core/inmethod-grid-parent/inmethod-grid/src/main/ 
java/com/inmethod/grid/DataProviderAdapter.java
/trunk/wicketstuff-core/inmethod-grid-parent/inmethod-grid/src/main/ 
java/com/inmethod/grid/IDataSource.java
/trunk/wicketstuff-core/inmethod-grid-parent/inmethod-grid-examples/ 
pom.xml
/trunk/wicketstuff-core/inmethod-grid-parent/inmethod-grid-examples/ 
src/main/java/com/inmethod/grid/examples/WicketApplication.java
/trunk/wicketstuff-core/inmethod-grid-parent/inmethod-grid-examples/ 
src/main/java/com/inmethod/grid/examples/contact/ 
DetachableContactModel.java
/trunk/wicketstuff-core/inmethod-grid-parent/inmethod-grid-examples/ 
src/main/java/com/inmethod/grid/examples/pages/BaseExamplePage.html
/trunk/wicketstuff-core/inmethod-grid-parent/inmethod-grid-examples/ 
src/main/java/com/inmethod/grid/examples/pages/datagrid/ 
ContactDataSource.java
/trunk/wicketstuff-core/inmethod-grid-parent/inmethod-grid-examples/ 
src/main/java/com/inmethod/grid/examples/pages/datagrid/ 
ContactDataSourceWithUnknownItemCount.java


now I'll figure out how to revert that...

ryan


On Mar 25, 2009, at 11:59 AM, Jeremy Thomerson wrote:


http://www.wickettraining.com/continuum/buildResult.action?buildId=6786&projectId=248&projectGroupId=2

That shows what commit it started failing on, etc.

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Mar 25, 2009 at 10:53 AM, Ryan McKinley   
wrote:


Hymm.  I'm not sure what it could be...  I did copy the inmethod- 
grid pom

to cuild the ki-secuity pom, but I think i got rid of any conflicts.

What is the error the Continuum server spits out?  Perhaps it has  
something
to do with syringe?  (committed about the same time as ki- 
security)  When I

try to build wicketstuff-core now, I get the following error:


[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

Missing:
--
1) org.apache.commons:commons-proxy:jar:1.1-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.commons
-DartifactId=commons-proxy -Dversion=1.1-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the  
file

there:
mvn deploy:deploy-file -DgroupId=org.apache.commons
-DartifactId=commons-proxy -Dversion=1.1-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
  1) org.wicketstuff:wicket-syringe:jar:1.4-SNAPSHOT
  2) org.apache.commons:commons-proxy:jar:1.1-SNAPSHOT

--
1 required artifact is missing.

for artifact:
org.wicketstuff:wicket-syringe:jar:1.4-SNAPSHOT

from the specified remote repositories:
wicket-snaps (http://wicketstuff.org/maven/repository),
central (http://repo1.maven.org/maven2)




On Mar 25, 2009, at 11:21 AM, Jeremy Thomerson wrote:

I run Continuum on my server and just started receiving  
notifications two
days ago that inmethod grid was not compiling.  It showed up right  
after

the
commit of this ki security stuff.

I haven't looked at it yet, hoping that someone who was working  
with ki

security or inmethod would do so.

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Mar 25, 2009 at 5:48 AM, Martin Funk 
wrote:




Am 25.03.2009 um 10:17 schrieb nino martinez wael:

The problem with wicket stuff have been cleared up a bit, the  
part about


which projects are dead and not.. Those in wicketstuff-core are  
alive,

and
if they become incompatible with the current version of wicket  
they will

be
kicked..

are they? I mean alive.

Locking here:


http://wicketstuff.org/teamcity/viewLog.html?buildId=3486&tab=buildResultsDiv&buildTypeId=bt35
I'd say it's at least not compiling no more.

Could someone please fix that?

mf





2009/3/25 Maarten Bosteels 

Hi Ryan,



I added you to the Project Members, so feel free to commit your
examples.
Unfortunately, until now I haven't had time to work on it myself

The idea was to let the code mature in
http://code.google.com/p/wicket-jsecurity/
and maybe move it to wicket-stuff later on.

Maybe we should move it to wicket-stuff already.
My main problem with wicket-stuff is/was that it's not always  
very

clear
which projects are still alive and maintained and which are  
practically
dead. And at the time, wicket-stuff had some problems with  
continuous

integration, IIRC.

Les, what do you think ?
We should change the project name to wicket-ki anyway.

regards,
Maarten

On Wed, Mar 25, 2009 at 7:47 AM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

Yeah I've for one always been very pro for wicketstuff.. It's  
nice




keeping


things in one place..

Re: wicketstuff / ki / jsecurity

2009-03-25 Thread Ryan McKinley
Hymm.  I'm not sure what it could be...  I did copy the inmethod-grid  
pom to cuild the ki-secuity pom, but I think i got rid of any conflicts.


What is the error the Continuum server spits out?  Perhaps it has  
something to do with syringe?  (committed about the same time as ki- 
security)  When I try to build wicketstuff-core now, I get the  
following error:



[INFO]  


[ERROR] BUILD ERROR
[INFO]  


[INFO] Failed to resolve artifact.

Missing:
--
1) org.apache.commons:commons-proxy:jar:1.1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.apache.commons - 
DartifactId=commons-proxy -Dversion=1.1-SNAPSHOT -Dpackaging=jar - 
Dfile=/path/to/file


  Alternatively, if you host your own repository you can deploy the  
file there:
  mvn deploy:deploy-file -DgroupId=org.apache.commons - 
DartifactId=commons-proxy -Dversion=1.1-SNAPSHOT -Dpackaging=jar - 
Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  Path to dependency:
1) org.wicketstuff:wicket-syringe:jar:1.4-SNAPSHOT
2) org.apache.commons:commons-proxy:jar:1.1-SNAPSHOT

--
1 required artifact is missing.

for artifact:
  org.wicketstuff:wicket-syringe:jar:1.4-SNAPSHOT

from the specified remote repositories:
  wicket-snaps (http://wicketstuff.org/maven/repository),
  central (http://repo1.maven.org/maven2)



On Mar 25, 2009, at 11:21 AM, Jeremy Thomerson wrote:

I run Continuum on my server and just started receiving  
notifications two
days ago that inmethod grid was not compiling.  It showed up right  
after the

commit of this ki security stuff.

I haven't looked at it yet, hoping that someone who was working with  
ki

security or inmethod would do so.

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Mar 25, 2009 at 5:48 AM, Martin Funk >wrote:




Am 25.03.2009 um 10:17 schrieb nino martinez wael:

The problem with wicket stuff have been cleared up a bit, the part  
about
which projects are dead and not.. Those in wicketstuff-core are  
alive, and
if they become incompatible with the current version of wicket  
they will

be
kicked..


are they? I mean alive.
Locking here:

http://wicketstuff.org/teamcity/viewLog.html?buildId=3486&tab=buildResultsDiv&buildTypeId=bt35
I'd say it's at least not compiling no more.

Could someone please fix that?

mf





2009/3/25 Maarten Bosteels 

Hi Ryan,


I added you to the Project Members, so feel free to commit your  
examples.

Unfortunately, until now I haven't had time to work on it myself

The idea was to let the code mature in
http://code.google.com/p/wicket-jsecurity/
and maybe move it to wicket-stuff later on.

Maybe we should move it to wicket-stuff already.
My main problem with wicket-stuff is/was that it's not always  
very clear
which projects are still alive and maintained and which are  
practically
dead. And at the time, wicket-stuff had some problems with  
continuous

integration, IIRC.

Les, what do you think ?
We should change the project name to wicket-ki anyway.

regards,
Maarten

On Wed, Mar 25, 2009 at 7:47 AM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

Yeah I've for one always been very pro for wicketstuff.. It's nice



keeping

things in one place.. Plus as you write if we share a somewhat  
similar

structure it's potentially easier to maintain..

2009/3/24 Ryan McKinley 

Hi-


I've been looking to integrate a complex security model with  
wicket --

jsecurity seems really good.  I tried messing with:
http://code.google.com/p/wicket-jsecurity/

This appears to be a starting place, but does not have any  
running



example.



In an effort to get things running (and learn JSecurity) i took  
that +
wicket-auth-roles and tried to make a functioning core +  
example.  I've



got


something running and would love to share it...

Should I post this to the google code site?

It makes more sense (to me) if we keep it in the wicketstuff  
repos --



that

way we get the benefit of Jeremy's work to make wickettuff-core  
much

cleaner.

Thoughts?

Ryan



-
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: wicketstuff / ki / jsecurity

2009-03-25 Thread Ryan McKinley


On Mar 25, 2009, at 4:12 AM, Maarten Bosteels wrote:


Hi Ryan,

I added you to the Project Members, so feel free to commit your  
examples.

Unfortunately, until now I haven't had time to work on it myself



Thanks Maarten



The idea was to let the code mature in
http://code.google.com/p/wicket-jsecurity/
and maybe move it to wicket-stuff later on.

Maybe we should move it to wicket-stuff already.
My main problem with wicket-stuff is/was that it's not always very  
clear
which projects are still alive and maintained and which are  
practically

dead. And at the time, wicket-stuff had some problems with continuous
integration, IIRC.



yes, wicketstuff has some issues, but at least it has a continuous  
integration process in place -- and there is greater motivation for  
keeping it running as it gets more usage.


Jeremy has done a lot of work to get wicketstuff-core projects working  
well, and the hope is that things in that directory are actively  
maintained for the current release.  This directory will have branches  
for the various wicket releases etc.


I vote we move any wicket/jsecurity/ki attention to the wicketstuff  
repository.


We can add a big NOTICE describing the state of the project...  it is  
currently broken as I try to figure out what an "Enterprise Session"  
is :)  -- I'm following up on Les' suggestion on jsecurity-u...@incubator.apache.org 
 now...



ryan

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



wicketstuff / ki / jsecurity

2009-03-24 Thread Ryan McKinley

Hi-

I've been looking to integrate a complex security model with wicket --  
jsecurity seems really good.  I tried messing with: http://code.google.com/p/wicket-jsecurity/


This appears to be a starting place, but does not have any running  
example.


In an effort to get things running (and learn JSecurity) i took that +  
wicket-auth-roles and tried to make a functioning core + example.   
I've got something running and would love to share it...


Should I post this to the google code site?

It makes more sense (to me) if we keep it in the wicketstuff repos --  
that way we get the benefit of Jeremy's work to make wickettuff-core  
much cleaner.


Thoughts?

Ryan



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



Re: The ServerSide Java Symposium

2009-03-20 Thread Ryan Gravener
Send him a tweet: http://twitter.com/kinabalu

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Fri, Mar 20, 2009 at 12:49 PM, Scott Swank  wrote:

> http://javasymposium.techtarget.com/html/frameworks.html#ALombardiWicket
>
>
> On Fri, Mar 20, 2009 at 9:44 AM, Scott Swank 
> wrote:
> > Is anyone in Vegas?  Want to nab a beer?
> >
> > Cheers,
> > Scott
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


  1   2   3   4   5   >