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 ModelString( what  
it should say... ))



-
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



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 a target=_top, this
functionally works good, but it adds a pagemap parameter to the URL:

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

script language=javascript type=text/javascript
jQuery(document).ready(function(){
if (typeof Wicket != 'undefined'  
Wicket.Window)
Wicket.Window.unloadConfirmation = 
false;
});
/script


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



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: wicketAjaxGet and PageExpiredException?

2009-06-29 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 McKinleyryan...@gmail.com  
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:1wicket: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:1wicket: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: 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 jweekend_for...@cabouge.com 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: 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




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




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: 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 ryan...@gmail.com  
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



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 egola...@gmail.com  
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 igor.vaynb...@gmail.com 
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 egola...@gmail.com  
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 cmcamer...@gmail.com
wrote:


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 egola...@gmail.com

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):
!-- Do not remove ie7bug-1484. customepalette.js uses this  
element

--

span id=ie7bug-1484 style=display: none;/span

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 egola...@gmail.com

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



flush after /head?

2009-04-09 Thread Ryan McKinley

Is there an easy way to flush after you send the /head 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: 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
child/ 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 ryan...@gmail.com  
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
table
wicket:panel

tr valign=top
 td width=60
  img wicket:id=img src=img/explore.gif /
 /td
 td wicket:id=td valign=top
  h2 wicket:id=titleTitle/h2
  wicket:child/
 /td
/tr

/wicket:panel
/table

- - - - - - - - - -

Then I want a subclass to fill in content for wicket:child/

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

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

ExportRow.html
wicket:extend
Here is some text span wicket:id=testxxx/span
/wicket:extend

- - - - - -  -

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
table
wicket:panel

tr valign=top
 td width=60
   img wicket:id=img src=img/explore.gif /
 /td
 td wicket:id=td valign=top
   h2 wicket:id=titleTitle/h2
   wicket:child/
 /td
/tr

/wicket:panel
/table

- - - - - - - - - -

Then I want a subclass to fill in content for wicket:child/

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

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

ExportRow.html
wicket:extend
Here is some text span wicket:id=testxxx/span
/wicket:extend

- - - - - -  -

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




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



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 mafulaf...@googlemail.com 
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=3486tab=buildResultsDivbuildTypeId=bt35
I'd say it's at least not compiling no more.

Could someone please fix that?

mf





2009/3/25 Maarten Bosteels mbosteels@gmail.com

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 ryan...@gmail.com

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

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=6786projectId=248projectGroupId=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 ryan...@gmail.com  
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 mafulaf...@googlemail.com

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=3486tab=buildResultsDivbuildTypeId=bt35
I'd say it's at least not compiling no more.

Could someone please fix that?

mf





2009/3/25 Maarten Bosteels mbosteels@gmail.com

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

Re: Security in a Spring Wicket layered application

2009-03-09 Thread Ryan McKinley

I have not used it (yet), but check:
http://code.google.com/p/wicket-jsecurity/



On Mar 9, 2009, at 1:46 PM, Kent Larsson wrote:


Hm, I had some problems. Are there any examples out there for this?

On Mon, Mar 9, 2009 at 9:43 AM, Kent Larsson  
kent.lars...@gmail.com wrote:

Hi,

Great answer! :-) I'll try to do that today.

Best regards, Kent


On Sun, Mar 8, 2009 at 8:38 PM, Erik van Oosten  
e.vanoos...@grons.nl wrote:

Hi Kent,

Go with something that enables authorization in the service layer  
(e.g.

Spring Security, jSecurity, ...).

Next base your custom wicket authorization on the authentication  
store of

the chosen base technology. Spring Security uses a thread local as
authentication store and has a servlet filter to copy the  
authenticated user
to/from the session so that the authenticated user is handily  
available

during a request and properly stored afterwards.

Authentication itself can be implemented from Wicket in a custom  
way (e.g. a
username/password form). On success you just store the  
authenticated user in

the authentication store.

Regards,
  Erik.


Kent Larsson wrote:


Hi,

I know there has been some discussion on this. But I've had a hard
time deciding how this project should use security anyway.

The application in question is layered into three layers for
presentation, services and persistence using Wicket, Spring and
Hibernate.

What we need:
- Authentication
- Authorization on pages, components
- Authorization before being able to run methods in the service  
layer
- Authorization for viewing/editing some domain objects using  
Access

Control List's (ACL's)

I have read Wicket in Action and it's custom security solution  
has some

pros:
- It's quite easy to understand
- We have a lot of freedom in how to do authentication and  
authorization


And some cons:
- I don't know how to authorize calls of specific methods, and thus
- All security will be in the presentation layer
- It won't be usable if we want security on web services later  
(which

we do not need now, so maybe this can be disregarded)

It would be nice if we could have a common solution to our security
needs that integrates well with Wicket and Spring. I know that the
Auth Roles project is out there as well as Swarm. But I don't know
which will meet our needs and which will most likely be an option  
to

us when we later move to Wicket 1.4 or a higher version.

Best regards,
Kent





--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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






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




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



Re: a bit of topic but i couldnt resist ....

2009-03-03 Thread Ryan McKinley

Is your 'xxx' the instance inn each case?

Depending on the implementation, removing from the thing you are  
iterating over may cause some wierdness.



On Mar 3, 2009, at 5:44 PM, Johan Compagner wrote:


Is this the same?

Set set1 = xxx
Collection col1 = xxx;

foreach (col in col1)
set1.remove(col)

or

set1.removeAll(col1);


???



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



Re: a bit of topic but i couldnt resist ....

2009-03-03 Thread Ryan McKinley


On Mar 3, 2009, at 6:19 PM, Johan Compagner wrote:


why should that matter?


I am not suggesting that it *should* -- only that experience tells me  
modifying the collection you are iterating over sometimes have funny  
results.


I agree that either choice should be equivalent.





I am taking here purely about interfaces.. So what should an  
implementation

matter?
So you are saying that we have to know the implementations of that  
inside

all my methods to know what really happens?

(this is pretty much my point i want to make)

lets make the set1 a TreeSet() and col1 a HashSet() 
and both have the same kind of objects



That should be fine, no?  In that case you are really talking about:

Set set1 = aaa;
Collection col1 = bbb;
...







On Wed, Mar 4, 2009 at 00:13, Ryan McKinley ryan...@gmail.com wrote:


Is your 'xxx' the instance inn each case?

Depending on the implementation, removing from the thing you are  
iterating

over may cause some wierdness.



On Mar 3, 2009, at 5:44 PM, Johan Compagner wrote:

Is this the same?


Set set1 = xxx
Collection col1 = xxx;

foreach (col in col1)
set1.remove(col)

or

set1.removeAll(col1);


???




-
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: InMethod DataGrid Localization

2009-02-09 Thread Ryan McKinley
Yes -- check the examples.  I think all of them use an external  
properties file to declare the header row display.



On Feb 9, 2009, at 8:50 AM, Michal Hybler wrote:



Hi,
is there any support for localization in DataGrid? I need to  
substitute cell

content of explicit column.

For example:

I have row state and it can reach 3 values (created, updated,  
deleted) in my
database but I want show substitutes for that values in my dataGrid  
(in

other language).

Is there any examples?

Thnx for any suggestions.

Michal
--
View this message in context: 
http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21913141.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: InMethod DataGrid Localization

2009-02-09 Thread Ryan McKinley
For that you may want to try overriding newCell in  
AbstractLightWeightColumn


public IRenderable newCell(IModel rowModel) {
return new IRenderable() {
public void render(IModel rowModel, Response response) {
return your localized text
}
};
}


On Feb 9, 2009, at 10:02 AM, Michal Hybler wrote:



Thanks for your help but I dont need to substitute header but the  
content of

rows in explicit collumn.

id  |  color  |  state
--
1   |   red   |  created
2   |   blue  |  updated

In this example page which describes database table I need to  
substitute the
bold strings. Instead of created i want new for example. Is  
there way to

do this by using *.properties file like in case of state header?


Thnx for help.
Michal


ryantxu wrote:


Yes -- check the examples.  I think all of them use an external
properties file to declare the header row display.


On Feb 9, 2009, at 8:50 AM, Michal Hybler wrote:



Hi,
is there any support for localization in DataGrid? I need to
substitute cell
content of explicit column.

For example:

I have row state and it can reach 3 values (created, updated,
deleted) in my
database but I want show substitutes for that values in my dataGrid
(in
other language).

Is there any examples?

Thnx for any suggestions.

Michal
--
View this message in context:
http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21913141.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





--
View this message in context: 
http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21914610.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: View Layer: implementing presentation logic

2008-12-19 Thread Ryan McKinley
I may be missing something but what about just setting the visible  
property?


for( section : sections ) {
  Label label = new Label( ...
  label.setVisible( section.id != 0 );
  add( label )
}


On Dec 19, 2008, at 4:52 AM, Thorsten Scherler wrote:


Hi all,

I am looking into implementing some presentation logic and wonder what
the best approach is.

In my usecase I have a form and after the user submitted it I present
the values back in a page. There is an optional option that I want to
display if the user had given feedback to the option.

ATM I have implemented the display back page in a panel:
html xmlns:wicket=http://wicket.apache.org/;
 wicket:panel
  ...
   div wicket:id=subSectionsubSection/div
...

And in my java class I do:
...
StringResourceModel ssectionResult = new StringResourceModel(
 subSection.add, this, new Model(model));
add(new Label(subSection, ssectionResult));

And in my properties files I have:
subSection.add=Subseccion: $\{subSection\}

However that leads to the problem that
if (subSection ==null)
 it will be displayed as Subseccion: ${subSection}
else
 it will be displayed as Subseccion: 2.1. NOMBRAMIENTOS,  
SITUACIONES E

INCIDENCIAS

What I am now looking for is a kind of if test for div
wicket:id=subSectionsubSection/div.

something like
wicket:if test=subSection!=0
div wicket:id=subSectionsubSection/div
/wicket:if test=subSection!=0

How can I implement this test with wicket?

salu2
--
Thorsten Scherler thorsten.at.apache.org
Open Source Java consulting, training and solutions

Sociedad Andaluza para el Desarrollo de la Sociedad
de la Información, S.A.U. (SADESI)





-
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



jsessionid 1.4-m1 vs 1.4-rc1

2008-12-09 Thread Ryan McKinley
Have there been any changes to how jsessionid might be handled in  
rc1?  I never seen this error before, but when I upgraded to rc1 I get  
it most of the time when starting a new session.


I'm using the HybridUrlCodingStrategy when I hit something that should  
be mapped, I get directed to:


http://localhost:/;jsessionid=a7m8jcgo54ae?wicket:interface=:1

and get a 404

any thoughts?

thanks
ryan

Application.get() from WicketSessionFilter?

2008-12-06 Thread Ryan McKinley

Hello-

Any advice on how to get the Application from a non-wicket servlet?  I  
have the session filter working well, so I can get the user session.   
However, I only store the name in the sesion, and in the session class  
call:


  public User getUser()
  {
if( userName != null ) {
  UserDAO dao = ((BaseApplication) getApplication()).getUserDao();
  return dao.fetch( userName );
}
return null;
  }

That gives me an error:
org.apache.wicket.WicketRuntimeException: There is no application  
attached to current thread btpool0-1

at org.apache.wicket.Application.get(Application.java:177)
...

Any pointers on how to get around this?  Is it possible to have the  
WicketSessionFilter also bind the Application?


Thanks in advance!  You guys are great.

ryan

Re: Application.get() from WicketSessionFilter?

2008-12-06 Thread Ryan McKinley
I just found that for this use case, I can use spring directly from  
the servlet:


  ServletContext servletContext =this.getServletContext();
  WebApplicationContext ctx =
 
WebApplicationContextUtils 
.getRequiredWebApplicationContext(servletContext);

  UserDAO dao = (UserDAO)ctx.getBean( userDao );

thanks
ryan


On Dec 6, 2008, at 11:24 AM, Ryan McKinley wrote:


Hello-

Any advice on how to get the Application from a non-wicket servlet?   
I have the session filter working well, so I can get the user  
session.  However, I only store the name in the sesion, and in the  
session class call:


  public User getUser()
  {
if( userName != null ) {
  UserDAO dao = ((BaseApplication) getApplication()).getUserDao();
  return dao.fetch( userName );
}
return null;
  }

That gives me an error:
org.apache.wicket.WicketRuntimeException: There is no application  
attached to current thread btpool0-1

at org.apache.wicket.Application.get(Application.java:177)
...

Any pointers on how to get around this?  Is it possible to have the  
WicketSessionFilter also bind the Application?


Thanks in advance!  You guys are great.

ryan




Re: Wicket integration with good charts api

2008-12-05 Thread Ryan McKinley
I just started one with the implementation I have  we can make it  
better, or perhaps add it to wicketstuff...


http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html


On Nov 5, 2008, at 3:59 PM, Thies Edeling wrote:


Maarten Bosteels wrote:
I have a similar requirement and played a bit with Open Flash  
Charts. [1]

It took little effort to integrate wicket + ofc4j [2] + swfobject [3]

[1] http://teethgrinder.co.uk/open-flash-chart-2/glass-bar-chart.php
[2] http://code.google.com/p/ofcj/
[3] http://code.google.com/p/swfobject/

Another requirement was that the user could drag and drop charts  
around on

the page (à la iGoogle) so I tried something like
http://interface.eyecon.ro/demos/sort.html  but that failed  
miserably: half
the time the charts wouldn't show up correctly after dragging them  
around.
I still have to find out if I can solve this somehow. All pointers  
are

welcome.

Anyway, if you're interested, I can create a wiki page showing the  
wicket +

ofc4j + swfobject integration.

Wiki page would be nice, those open flash charts look a lot better  
than the jfreechart images.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-30 Thread Ryan McKinley

Great work!  Its really looking good!

Two more suggestions:

1. Add the maven-jetty-plugin the the root pom.  It would be nice if  
'mvn jetty:run' works for all the examples.


2. Remove all eclipse projects (.project .classpath) from svn and add  
the 'maven-eclipse-plugin' to the root project.


I can make patches for these changes if you like...  but i'm not  
totally clear on the etiquette for wicketstuff.  Is someone (you?)  
allowed to apply a patch that affects build for many projects?


ryan


On Nov 30, 2008, at 1:16 AM, Jeremy Thomerson wrote:


PS - Good suggestion - this was included.  Take a look at:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core

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

On Tue, Nov 25, 2008 at 4:32 PM, Ryan McKinley [EMAIL PROTECTED]  
wrote:


I don't know if this has already been discussed, but another part  
of the
cleanup that would be nice is to group the main project and the  
example

project into a folder with a common parent pom.

For example, I find the layout of:

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/inmethod-grid/

much easier to use/maintain then the apparent standard of
/wicketstuff-project  /wicketstuff-project-example

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push-examples/

one key thing about this change is that mvn eclipse:eclipse makes the
example project depend on the core project

perhaps this could be added to the 'organize' task?

ryan



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-30 Thread Ryan McKinley

Check:
http://wicketstuff.org/jira/browse/WSYUI-6
(YUI seemed like the best option... no 'core' project exists)
This also adds a logging implementation so the tinymce-examples runs  
with jetty:run


I don't have commit access on wicketstuff, so I can't directly apply  
the patch :)


As for svn:ignore on the .classpath and .project... I think you need  
to first go through and delete the files, then add them to the ignore  
list.


thanks!
ryan



On Nov 30, 2008, at 11:54 AM, Jeremy Thomerson wrote:

I agree with both of those.  I'm not real sure either regarding the  
etiquette - that's been my dilemna throughout.  That's the reason I  
started so many vote threads.  I think both of those things would be  
acceptable, though.  A common build setup was the goal of this.  I'd  
like to also see us use a common version of many standard libraries  
at some point (commons, logging etc), but I don't think it's  
critical right this moment. At least they're all against a common  
Wicket version.


If you supply a patch, I'll apply it.  Or you can just do it if you  
want.  You would be making sure each folder also had svn:ignore  
for .classpath, .project and target folder?


Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-Original Message-
From: Ryan McKinley [EMAIL PROTECTED]
Sent: Sunday, November 30, 2008 10:33 AM
To: users@wicket.apache.org
Subject: Re: [discuss] Organizing Wicket Stuff / Regular Release  
Schedule?


Great work!  Its really looking good!

Two more suggestions:

1. Add the maven-jetty-plugin the the root pom.  It would be nice if
'mvn jetty:run' works for all the examples.

2. Remove all eclipse projects (.project .classpath) from svn and add
the 'maven-eclipse-plugin' to the root project.

I can make patches for these changes if you like...  but i'm not
totally clear on the etiquette for wicketstuff.  Is someone (you?)
allowed to apply a patch that affects build for many projects?

ryan


On Nov 30, 2008, at 1:16 AM, Jeremy Thomerson wrote:


PS - Good suggestion - this was included.  Take a look at:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core

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

On Tue, Nov 25, 2008 at 4:32 PM, Ryan McKinley [EMAIL PROTECTED]
wrote:


I don't know if this has already been discussed, but another part
of the
cleanup that would be nice is to group the main project and the
example
project into a folder with a common parent pom.

For example, I find the layout of:

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/inmethod-grid/

much easier to use/maintain then the apparent standard of
/wicketstuff-project  /wicketstuff-project-example

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push-examples/

one key thing about this change is that mvn eclipse:eclipse makes  
the

example project depend on the core project

perhaps this could be added to the 'organize' task?

ryan



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



YUI uploader?

2008-11-30 Thread Ryan McKinley

Anyone tried using wicket with the YUI uploader?
http://developer.yahoo.com/yui/uploader/
http://developer.yahoo.com/yui/examples/uploader/uploader-advanced-queue_clean.html

This uses a flash object to select files and post them -- all the  
progress is handled on the client side rather then passing ajax info  
back from the server.


The one bit that is non-obvious on how to integrate the script is that  
the javascript takes an upload url as its parameter:


uploader.uploadAll(http://www.yswfblog.com/upload/upload_simple.php;,  
POST, null, Filedata);

http://developer.yahoo.com/yui/docs/YAHOO.widget.Uploader.html

If you select multiple files, this could be called multiple times --  
you can also upload multiple files simultaneously.


Any thoughts on how to handle this in wicket?  The only solutions I  
can think of are not very wickety (add a servlet and then put stuff  
directly in the Session)


Thanks for any pointers!
ryan



inmethod-grid generics?

2008-11-30 Thread Ryan McKinley

Hi-

Is there any interest in making inmethod grid generic?

I have a half-way implementation that makes IDataSourceT -- it does  
not make IQueryResult generic though.


Is there anywhere to attach patches for inmethod-grid?  I don't see  
anything on:

http://wicketstuff.org/jira/secure/Dashboard.jspa

thanks!
ryan

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread Ryan McKinley


On Nov 26, 2008, at 11:38 AM, Jeremy Thomerson wrote:

I think Wayne was referring not to your post, but in general - if we  
package
most of the projects up neatly under one parent, then other projects  
that

aren't in the same subdirectory / build cycle may get lost.


Hopefully having a cleaned up source tree with better pom/version  
reuse will make it much easier to keep things up-to-date and useful.   
It should not be that hard to clean up most of the existing projects.


Another thing that would be nice to add to the parent pom is:
http://maven.apache.org/plugin-developers/cookbook/add-svn-revision-to-manifest.html

I have found it invaluable to have the SVN version cooked into the  
artifacts -- particularly after something has been running stable for  
a year and you can't possibly remember exactly where it came from.


ryan




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


On Wed, Nov 26, 2008 at 7:10 AM, James Carman [EMAIL PROTECTED] 
wrote:


Merely bundling the examples with the code itself shouldn't cause  
this,

do
you think?

On Wed, Nov 26, 2008 at 2:17 AM, Wayne Pope 
[EMAIL PROTECTED] wrote:


YES.
However I feel people may pass over the earlier branches  
(especially when
we're on Wicket version 5.8!) and hence miss some great code that  
may not

take much to get working and maintain on the newer branch.

On Wed, Nov 26, 2008 at 2:06 AM, James Carman 

[EMAIL PROTECTED]

wrote:


Yes, our entire project at work is like this.  The top-level  
project

holds multiple modules.  Each has a common, server, and client
submodule.  Works like a charm.

On Tue, Nov 25, 2008 at 5:45 PM, Jeremy Thomerson
[EMAIL PROTECTED] wrote:
Great idea!  Yes.  I have not nested any projects three deep in  
the

past,

but it should work.  Has anybody else tried this?

It would be:

wicket-stuff-parent
-- wicket-foo
   -- wicket-foo-core
   -- wicket-foo-examples

On Tue, Nov 25, 2008 at 4:32 PM, Ryan McKinley [EMAIL PROTECTED]

wrote:


I don't know if this has already been discussed, but another  
part of

the

cleanup that would be nice is to group the main project and the

example

project into a folder with a common parent pom.

For example, I find the layout of:







https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/inmethod-grid/


much easier to use/maintain then the apparent standard of
/wicketstuff-project  /wicketstuff-project-example







https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/








https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push-examples/


one key thing about this change is that mvn eclipse:eclipse makes

the

example project depend on the core project

perhaps this could be added to the 'organize' task?

ryan





-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





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



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread Ryan McKinley
Right, the svn url is important especially when you deploy from 'non- 
released' versions (like most of wicketstuff)


This is what I have in my pom.xml


plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-jar-plugin/artifactId
  configuration
archive
  manifestEntries
  Specification-Title${project.name}/Specification- 
Title
  Specification-Version${project.version}/ 
Specification-Version
  Implementation-Title${project.name}/Implementation- 
Title
  Implementation-Version${project.version} $ 
{buildNumber} - ${user.name}/Implementation-Version

  SCM-Revision${buildNumber}/SCM-Revision
  SCM-url${scm.url}/SCM-url
  /manifestEntries
/archive
  /configuration
/plugin


On Nov 26, 2008, at 3:24 PM, James Carman wrote:

The revision doesn't tell you everything, though.  Typically, you  
don't
release from trunk (at least you're not supposed to).  You create  
a tag
and create the release from there.  So, the tag/revision would be  
what you

need to easily recreate the release.

On Wed, Nov 26, 2008 at 2:13 PM, Ryan McKinley [EMAIL PROTECTED]  
wrote:




On Nov 26, 2008, at 11:38 AM, Jeremy Thomerson wrote:

I think Wayne was referring not to your post, but in general - if we

package
most of the projects up neatly under one parent, then other  
projects that

aren't in the same subdirectory / build cycle may get lost.



Hopefully having a cleaned up source tree with better pom/version  
reuse
will make it much easier to keep things up-to-date and useful.  It  
should

not be that hard to clean up most of the existing projects.

Another thing that would be nice to add to the parent pom is:

http://maven.apache.org/plugin-developers/cookbook/add-svn-revision-to-manifest.html

I have found it invaluable to have the SVN version cooked into the
artifacts -- particularly after something has been running stable  
for a year

and you can't possibly remember exactly where it came from.

ryan





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


On Wed, Nov 26, 2008 at 7:10 AM, James Carman [EMAIL PROTECTED]

wrote:


Merely bundling the examples with the code itself shouldn't  
cause this,

do
you think?

On Wed, Nov 26, 2008 at 2:17 AM, Wayne Pope 
[EMAIL PROTECTED] wrote:

YES.
However I feel people may pass over the earlier branches  
(especially

when
we're on Wicket version 5.8!) and hence miss some great code  
that may

not
take much to get working and maintain on the newer branch.

On Wed, Nov 26, 2008 at 2:06 AM, James Carman 


[EMAIL PROTECTED]


wrote:




Yes, our entire project at work is like this.  The top-level  
project

holds multiple modules.  Each has a common, server, and client
submodule.  Works like a charm.

On Tue, Nov 25, 2008 at 5:45 PM, Jeremy Thomerson
[EMAIL PROTECTED] wrote:

Great idea!  Yes.  I have not nested any projects three deep  
in the



past,



but it should work.  Has anybody else tried this?


It would be:

wicket-stuff-parent
-- wicket-foo
 -- wicket-foo-core
 -- wicket-foo-examples

On Tue, Nov 25, 2008 at 4:32 PM, Ryan McKinley [EMAIL PROTECTED] 




wrote:



I don't know if this has already been discussed, but another  
part of



the



cleanup that would be nice is to group the main project and the



example



project into a folder with a common parent pom.


For example, I find the layout of:








https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/inmethod-grid/




much easier to use/maintain then the apparent standard of
/wicketstuff-project  /wicketstuff-project-example








https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/











https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push-examples/



one key thing about this change is that mvn eclipse:eclipse  
makes



the



example project depend on the core project


perhaps this could be added to the 'organize' task?

ryan




-



To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, e-mail: [EMAIL PROTECTED]





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



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread Ryan McKinley
yes, that is a problem with this plugin -- it looks at the configured  
pom scm and uses the info from there.  The biggest problem is that if  
you build a modified version, the revision number is from the repos,  
*not* your code!  so if 'svn info' shows Revision: 220M or 220~218,  
the cooked in version would still be 220.


In ant, I had a task that calls 'svn info' and parses the result, but  
this is the best off the shelf replacement i could find in maven.


ryan


On Nov 26, 2008, at 5:55 PM, James Carman wrote:

But, here you have to assume it was released from the trunk (which I  
guess
you can ascertain from the pom's SVN url).  I'm not saying this  
information
isn't useful.  I'm just saying it doesn't give you the whole picture  
by
itself.  I was unaware of this plugin, but I do believe I'll add it  
to our

build cycle.  Thanks for the tip!

On Wed, Nov 26, 2008 at 4:18 PM, Ryan McKinley [EMAIL PROTECTED]  
wrote:



Right, the svn url is important especially when you deploy from
'non-released' versions (like most of wicketstuff)

This is what I have in my pom.xml


  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
  archive
manifestEntries
Specification-Title${project.name}/Specification- 
Title


Specification-Version${project.version}/Specification-Version
Implementation-Title${project.name}/Implementation- 
Title
Implementation-Version${project.version} $ 
{buildNumber} - ${

user.name}/Implementation-Version
SCM-Revision${buildNumber}/SCM-Revision
SCM-url${scm.url}/SCM-url
/manifestEntries
  /archive
/configuration
  /plugin



On Nov 26, 2008, at 3:24 PM, James Carman wrote:

The revision doesn't tell you everything, though.  Typically, you  
don't
release from trunk (at least you're not supposed to).  You  
create a tag
and create the release from there.  So, the tag/revision would be  
what you

need to easily recreate the release.

On Wed, Nov 26, 2008 at 2:13 PM, Ryan McKinley [EMAIL PROTECTED]  
wrote:




On Nov 26, 2008, at 11:38 AM, Jeremy Thomerson wrote:

I think Wayne was referring not to your post, but in general - if  
we



package
most of the projects up neatly under one parent, then other  
projects

that
aren't in the same subdirectory / build cycle may get lost.


Hopefully having a cleaned up source tree with better pom/version  
reuse
will make it much easier to keep things up-to-date and useful.   
It should

not be that hard to clean up most of the existing projects.

Another thing that would be nice to add to the parent pom is:


http://maven.apache.org/plugin-developers/cookbook/add-svn-revision-to-manifest.html

I have found it invaluable to have the SVN version cooked into the
artifacts -- particularly after something has been running stable  
for a

year
and you can't possibly remember exactly where it came from.

ryan




--

Jeremy Thomerson
http://www.wickettraining.com


On Wed, Nov 26, 2008 at 7:10 AM, James Carman 
[EMAIL PROTECTED]


wrote:



Merely bundling the examples with the code itself shouldn't  
cause

this,


do
you think?

On Wed, Nov 26, 2008 at 2:17 AM, Wayne Pope 
[EMAIL PROTECTED] wrote:

YES.

However I feel people may pass over the earlier branches  
(especially

when
we're on Wicket version 5.8!) and hence miss some great code  
that may

not
take much to get working and maintain on the newer branch.

On Wed, Nov 26, 2008 at 2:06 AM, James Carman 

[EMAIL PROTECTED]


wrote:





Yes, our entire project at work is like this.  The top-level  
project



holds multiple modules.  Each has a common, server, and client
submodule.  Works like a charm.

On Tue, Nov 25, 2008 at 5:45 PM, Jeremy Thomerson
[EMAIL PROTECTED] wrote:

Great idea!  Yes.  I have not nested any projects three deep  
in the


past,




but it should work.  Has anybody else tried this?




It would be:

wicket-stuff-parent
-- wicket-foo
-- wicket-foo-core
-- wicket-foo-examples

On Tue, Nov 25, 2008 at 4:32 PM, Ryan McKinley [EMAIL PROTECTED] 



wrote:



I don't know if this has already been discussed, but another  
part of




the





cleanup that would be nice is to group the main project and the





example





project into a folder with a common parent pom.





For example, I find the layout of:









https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/inmethod-grid/



much easier to use/maintain then the apparent standard of

/wicketstuff-project  /wicketstuff-project-example









https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/












https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push-examples/


one key thing about

clever wicket link renaming? context path?

2008-10-31 Thread Ryan McKinley

Hello-

I've been happily running my app on the root context path... but now I  
need to run it on something else.


Throughout my html code, I have links that look like this:
 a href=/mount/param1/param2/.../a
this links to a bookmarkable page with a URL coding strategy.

Now I need to run the application on a different context and wonder  
wicket can automagically translate all static urls that start with /  
to be include the context path.  I'd like to have all the links  
written as:  a href=/context/mount/param1...


I know I could re-implement everything with explicit BookmarkableLink  
components, but I was hoping there may be something in wicket I don't  
know about ;)


thanks in advance for any pointers!

best
ryan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: linking to a text ResourceReference

2008-10-02 Thread Ryan McKinley

thanks!

I knew it was one line.  You guys are great!


On Sep 30, 2008, at 10:39 PM, Igor Vaynberg wrote:


call urlfor(resourcereference)

-igor

On Tue, Sep 30, 2008 at 6:08 PM, Ryan McKinley [EMAIL PROTECTED]  
wrote:

Hello-

I know I have seen an example of this somewhere, so i'm feeling  
kinda silly

as I ask for help

I am trying to integrate Open Flash Charts (OFC) with wicket.  You  
pass OFC

a url containing json to draw a chart.  Something like:

script type=text/javascript
var so = new SWFObject(/open-flash-chart.swf, chart, 500,  
300, 9,

#FF);
so.addVariable(data-file, ${TODO -- need to have link to data} );
so.addParam(allowScriptAccess, sameDomain);
so.write(my_chart);
/script

I know I can use a global mount point, but I'm looking to do  
something

similar to how JFreeChart works
http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html

Where you have a Chart object in the Component scope and various  
actions can

manipulate it.

I can create a WebResource -- but how would I pass the URL to  
javascript?


Any pointers would be great!
thanks
ryan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: linking to a text ResourceReference

2008-10-01 Thread Ryan McKinley
Thanks igor!

another message of yours helped too:
http://www.nabble.com/Generate-URL-for-a-Resource-depending-on-component-state-td18941798.html

for the record, here is some code for the next guy searching the archives...

public class OpenFlashChart extends Panel implements IResourceListener
{
  static final ResourceReference SWF = new ResourceReference(
OpenFlashChart.class, open-flash-chart.swf );

  final WebResource jsonResource;
  final SWFObject swf;

  public OpenFlashChart(String id, final int width, final int height)
  {
this( id, width+, height+ );
  }

  public OpenFlashChart(String id, final String width, final String height)
  {
super(id);

final IResourceStream json = new AbstractStringResourceStream(
text/plain) {
  @Override
  public String getString() {
return YOUR STRING HERE...;
  }
};

jsonResource = new WebResource() {
  @Override
  public IResourceStream getResourceStream() {
return json;
  }
};
jsonResource.setCacheable(false);

String swfURL = RequestUtils.toAbsolutePath( urlFor( SWF ).toString() );
swf = new SWFObject( chart, swfURL, 500, 300 );
add( swf );
  }

  @Override
  protected void onBeforeRender() {
CharSequence dataPath =
  RequestCycle.get().urlFor(OpenFlashChart.this,
IResourceListener.INTERFACE);

String data = RequestUtils.toAbsolutePath( dataPath.toString() );

swf.setFlashvar( data-file, data );
swf.setParam( allowScriptAccess, sameDomain );

super.onBeforeRender();
  }

  /**
   * Actually handle the request
   */
  @Override
  public void onResourceRequested() {
jsonResource.onResourceRequested();
  }
}


On Tue, Sep 30, 2008 at 10:39 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 call urlfor(resourcereference)

 -igor

 On Tue, Sep 30, 2008 at 6:08 PM, Ryan McKinley [EMAIL PROTECTED] wrote:
 Hello-

 I know I have seen an example of this somewhere, so i'm feeling kinda silly
 as I ask for help

 I am trying to integrate Open Flash Charts (OFC) with wicket.  You pass OFC
 a url containing json to draw a chart.  Something like:

  script type=text/javascript
  var so = new SWFObject(/open-flash-chart.swf, chart, 500, 300, 9,
 #FF);
  so.addVariable(data-file, ${TODO -- need to have link to data} );
  so.addParam(allowScriptAccess, sameDomain);
  so.write(my_chart);
  /script

 I know I can use a global mount point, but I'm looking to do something
 similar to how JFreeChart works
 http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html

 Where you have a Chart object in the Component scope and various actions can
 manipulate it.

 I can create a WebResource -- but how would I pass the URL to javascript?

 Any pointers would be great!
 thanks
 ryan

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



linking to a text ResourceReference

2008-09-30 Thread Ryan McKinley

Hello-

I know I have seen an example of this somewhere, so i'm feeling kinda  
silly as I ask for help


I am trying to integrate Open Flash Charts (OFC) with wicket.  You  
pass OFC a url containing json to draw a chart.  Something like:


 script type=text/javascript
  var so = new SWFObject(/open-flash-chart.swf, chart, 500,  
300, 9, #FF);

  so.addVariable(data-file, ${TODO -- need to have link to data} );
  so.addParam(allowScriptAccess, sameDomain);
  so.write(my_chart);
 /script

I know I can use a global mount point, but I'm looking to do something  
similar to how JFreeChart works

http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html

Where you have a Chart object in the Component scope and various  
actions can manipulate it.


I can create a WebResource -- but how would I pass the URL to  
javascript?


Any pointers would be great!
thanks
ryan

Re: GMap2 (wicket-contrib-gmap2) and autozoom with getBoundsZoomLevel

2008-09-10 Thread Ryan McKinley

Strangely I needed to get this to work just yesterday!

I was able to hack it by letting GMap2.java take a list of strings it  
will output at the end of getJSinit()


GLatLngBounds bounds = new GLatLngBounds(sw, ne);
gmap.appendInitJS( var xxx = +bounds.getJSconstructor()+;\n );
 
gmap 
.appendInitJS 
( gmap 
.getJSinvoke 
( setZoom( +gmap.getJSinvoke( map.getBoundsZoomLevel(xxx)-1 ) ) ) );


kinda hacky, but it works!

ryan


On Sep 10, 2008, at 7:08 AM, normanr wrote:



With we, I meant my colleagues and me. And for us, I think it's  
enough to
calculate a ZoomLevel passed to the map, that all GLatLngs given are  
visible

on this map. So yes it's more like the link you posted Martin.

Regards,

norman

Martin Funk-3 wrote:


normanr wrote:

Not right now Martin,

but i think that we'll need to do it. But I can't promise ;(


who is it that you mean by 'we'?

I've been rolling the thoughts about a possible implementation in my
head this afternoon, but didn't get to a reasonable answer yet.
I might not have understood the use case yet. Implementing the  
methods

'getBoundsZoomLevel(bounds)  extend(point)' in a way that the server
could ask for their execution, while being in a request/response  
cycle,
and also receive their outcome might be not so easy to implement  
nor to

use.

If the use is closer to what is described in
http://econym.googlepages.com/basic14.htm it might be easier.
Here the server would be enabled to place a call to the map which re
zooms and slips it, so that some given points would show up. Later  
on it

would be informed about the border and the zoomlevel of the map.
I think that's easier to implement.

mf
Btw.: I can't promis anything either ;-)



Martin Funk-3 wrote:


Don't know what bit me there,
I have to apologize.

You don't happen to have any ideas molded in code on that, do you?

mf

normanr wrote:

http://wicketstuff.org/jira/browse/WSGMAPP-7 says implemented in  
Rev

3416.
But I don't find anything like that, neither in the HEAD nor the
comment
for REV 3416. Is it gone or has it never been in svn?



Martin Funk-3 wrote:



Hi Marko,

2008/2/3, Marko Taipale [EMAIL PROTECTED]:



Hi,

I am about to do a feature to my wicket app containing gmap.  
There

are
several markers on the map and the map will autozoom  center
according
to
those marker positions.

Now I am wondering if there is upcoming support for
getBoundsZoomLevel(bounds)  extend(point)* ?



There shure is. It already has its own feature request.
http://wicketstuff.org/jira/browse/WSGMAPP-7

Back to serious:
I think its a reasonable request, but I can't tell you when  
it'll be
implemented. If you can come up with some code you feel  
confident with

you
are welcome to attach ist to the Issue. Or, if you are really
confident
about your code ask for commit access to wicket-stuff.

Thnx,

Martin

Or has anybody already written


an app with such a feature / component and could even pass the  
code -

I'm
feeling lazy ;).

Thanks,
- Marko

*see
http://code.google.com/apis/maps/documentation/reference.html#GMap2and
example at http://econym.googlepages.com/basic14.htm

--
View this message in context:
http://www.nabble.com/GMap2-%28wicket-contrib-gmap2%29-and-autozoom-with-getBoundsZoomLevel-tp15252786p15252786.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]











-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]










-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context: 
http://www.nabble.com/GMap2-%28wicket-contrib-gmap2%29-and-autozoom-with-getBoundsZoomLevel-tp15252786p19410438.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Clear all sessions?

2008-08-03 Thread Ryan McKinley

Hello!

Is there any way to clear all the session/state data for all users ?

I have tried implementing an ISessionStore  
(SecondLevelCacheSessionStore) that hangs on to (wicket) Sessions  
between onBind and onUnbind.  When I want to clear then, I call  
invalidate() on all sessions.


This does not work because invalidate() needs to be called within  
the Request for that Session.


Any ideas?

Thanks
ryan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



modal window navigation?

2008-07-20 Thread Ryan McKinley

Hello-

I'm using a Page within a modal window and when the user clicks an  
'OK' button, I want to refresh the whole page (not the modal window).  
I've tried a few variations of:


form.add( new AjaxButton(actionSave)
{
  @Override
  protected void onSubmit(AjaxRequestTarget target, Form? form) {
getRequestCycle().setResponsePage( ExplorePage.class );
  }
});

but that refreshes the iframe, not the page.

Any pointers?

For extra credit...  what is the easiest way to make the modal window  
background darker?  Do I need to extend the modal window and include a  
different CSS file?  what is the best practice for this kind of thing?


thanks!
ryan

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Ryan McKinley


  [ X] Can best be done in a limited fashion, where we only generify
IModel but not components. I care more about what generifying can do
for API clarity (declaring a component to only accept certain models
for instance) than static type checking.







2) How strongly do you feel about your choice above?
  [X ] Whatever choice ultimately made, I'll happily convert/ start
using 1.4 and up.



ryan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: (Class? extends Page?) casting troubles

2008-05-21 Thread Ryan McKinley

does this mean it should work now?

strangely, things work fine for me in eclipse, but from the command  
line, I still get:


$ mvn clean install:

/Users/ryan/Documents/workspace/dexter/website/src/java/dexter/website/ 
wicket/page/DownloadingPage.java:[18,97] inconvertible types
found   :  
java.lang.Classdexter.website.wicket.page.account.DexSignInPage

required: java.lang.Class? extends org.apache.wicket.Page?

I ran: mvn clean install in the wicket directory...

Not sure if the java version is helpful:
ryan$ mvn -version
Maven version: 2.0.6
ryan$ javac -version
javac 1.6.0_04-dp

thanks for any pointers



On May 21, 2008, at 3:19 AM, Gerolf Seitz wrote:

Eelco,
can you try it again with latest trunk?

Cheers,
 Gerolf

On Wed, May 21, 2008 at 6:54 AM, Eelco Hillenius [EMAIL PROTECTED] 


wrote:

On Tue, May 20, 2008 at 9:44 PM, Gerolf Seitz  
[EMAIL PROTECTED]

wrote:

i have the fix for that in my local checkout and
will commit it sometime today.


Cool. I just found out Wicket In Action's code
(http://code.google.com/p/wicketinaction/) had compile errors.
Ideally, Wicket 1.4 it should be completely backwards compatible.

A copy from the errors Eclipse reports:

The constructor
RestartResponseAtInterceptPageException(ClassSigninPage) is
undefined
book-wicket-in-action/src/java/wicket/in/action/chapter12/ 
authdiscounts

UserPanel.java  line
37  1211331768935   213000
The constructor
RestartResponseAtInterceptPageException(ClassSigninPage) is
undefined
book-wicket-in-action/src/java/wicket/in/action/chapter13/ 
locdiscounts

UserPanel.java  line
41  1211331768461   212926
The constructor
RestartResponseAtInterceptPageException(ClassSigninPage) is
undefined   book-wicket-in-action/src/java/wicket/in/action/ 
common

WiaAuthorizationStrategy.java   line
36  1211331766706   212722
The method setModelObject(capture#6-of ?) in the type
Componentcapture#6-of ? is not applicable for the arguments
(int)
book-wicket-in-action/src/java/wicket/in/action/chapter15/ 
section_15_1

HelloWorldTest.java line
91  1211331768160   212829
The method setObject(Object) of type CheeseModel must override a
superclass method
book-wicket-in-action/src/java/wicket/in/action/chapter04/section_4_3
Index.java  line
42  1211331769904   213426
The method startPanel(TestPanelSource) in the type BaseWicketTester  
is

not applicable for the arguments
(ClassHelloWorldPanel)
book-wicket-in-action/src/java/wicket/in/action/chapter15/ 
section_15_1

HelloWorldTest.java line
66  1211331768160   212828
The return type is incompatible with
Application.getHomePage()
book-wicket-in-action/src/java/wicket/in/action
WicketInActionApplication.java  line
125 1211331770166   213591
The return type is incompatible with
MarkupContainer.setModel(IModel)
book-wicket-in-action/src/java/wicket/in/action/common
AjaxEditableLabel.java  line
129 1211331767509   212759
The return type is incompatible with
Model.getObject()
book-wicket-in-action/src/java/wicket/in/action/chapter03/section_3_2
Index.java  line
61  1211331769986   213564
The return type is incompatible with
Model.getObject()
book-wicket-in-action/src/java/wicket/in/action/chapter03/section_3_3
Index.java  line
61  1211331769970   213527
The return type is incompatible with
Model.getObject()
book-wicket-in-action/src/java/wicket/in/action/chapter03/section_3_3
ShoppingCartPanel.java  line
32  1211331769946   213506
The return type is incompatible with
Model.getObject()
book-wicket-in-action/src/java/wicket/in/action/chapter04/section_4_2
Index.java  line
120 1211331769917   213443
The return type is incompatible with
Model.getObject()
book-wicket-in-action/src/java/wicket/in/action/chapter04/section_4_3
Index.java  line
29  1211331769904   213425
The return type is incompatible with
Model.getObject()
book-wicket-in-action/src/java/wicket/in/action/chapter15/ 
section_15_3

Index.java  line
113 1211331767771   212812
The return type is incompatible with
Model.getObject()
book-wicket-in-action/src/java/wicket/in/action/chapter15/ 
section_15_3

Index.java  line
132 1211331767771   212815


Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: (Class? extends Page?) casting troubles

2008-05-21 Thread Ryan McKinley
The changes to BookmarkablePageLink are working, but not for  
RestartResponseAtInterceptPageException?


It looks like BookmarkablePageLink is:
 new  BookmarkablePageLink(final String id, final ClassC pageClass)

while
 new RestartResponseAtInterceptPageException(
final Class ? extends Page ?  interceptPageClass)

or am i missing something?


On May 21, 2008, at 10:27 AM, Gerolf Seitz wrote:

Ryan,
this is already fixed in trunk and will be included in the rebuilt M2
release.

 Gerolf

On Wed, May 21, 2008 at 3:49 PM, Ryan McKinley [EMAIL PROTECTED]  
wrote:



does this mean it should work now?

strangely, things work fine for me in eclipse, but from the command  
line, I

still get:

$ mvn clean install:

/Users/ryan/Documents/workspace/dexter/website/src/java/dexter/ 
website/wicket/page/DownloadingPage.java:[18,97]

inconvertible types
found   :  
java.lang.Classdexter.website.wicket.page.account.DexSignInPage

required: java.lang.Class? extends org.apache.wicket.Page?

I ran: mvn clean install in the wicket directory...

Not sure if the java version is helpful:
ryan$ mvn -version
Maven version: 2.0.6
ryan$ javac -version
javac 1.6.0_04-dp

thanks for any pointers




On May 21, 2008, at 3:19 AM, Gerolf Seitz wrote:


Eelco,
can you try it again with latest trunk?

Cheers,
Gerolf

On Wed, May 21, 2008 at 6:54 AM, Eelco Hillenius 
[EMAIL PROTECTED]
wrote:

On Tue, May 20, 2008 at 9:44 PM, Gerolf Seitz [EMAIL PROTECTED] 


wrote:


i have the fix for that in my local checkout and
will commit it sometime today.



Cool. I just found out Wicket In Action's code
(http://code.google.com/p/wicketinaction/) had compile errors.
Ideally, Wicket 1.4 it should be completely backwards compatible.

A copy from the errors Eclipse reports:

The constructor
RestartResponseAtInterceptPageException(ClassSigninPage) is
undefined
book-wicket-in-action/src/java/wicket/in/action/chapter12/ 
authdiscounts

UserPanel.java  line
37  1211331768935   213000
The constructor
RestartResponseAtInterceptPageException(ClassSigninPage) is
undefined
book-wicket-in-action/src/java/wicket/in/action/chapter13/ 
locdiscounts

UserPanel.java  line
41  1211331768461   212926
The constructor
RestartResponseAtInterceptPageException(ClassSigninPage) is
undefined   book-wicket-in-action/src/java/wicket/in/action/ 
common

WiaAuthorizationStrategy.java   line
36  1211331766706   212722
The method setModelObject(capture#6-of ?) in the type
Componentcapture#6-of ? is not applicable for the arguments
(int)
book-wicket-in-action/src/java/wicket/in/action/chapter15/ 
section_15_1

HelloWorldTest.java line
91  1211331768160   212829
The method setObject(Object) of type CheeseModel must override a
superclass method
book-wicket-in-action/src/java/wicket/in/action/chapter04/ 
section_4_3

Index.java  line
42  1211331769904   213426
The method startPanel(TestPanelSource) in the type  
BaseWicketTester is

not applicable for the arguments
(ClassHelloWorldPanel)
book-wicket-in-action/src/java/wicket/in/action/chapter15/ 
section_15_1

HelloWorldTest.java line
66  1211331768160   212828
The return type is incompatible with
Application.getHomePage()
book-wicket-in-action/src/java/wicket/in/action
WicketInActionApplication.java  line
125 1211331770166   213591
The return type is incompatible with
MarkupContainer.setModel(IModel)
book-wicket-in-action/src/java/wicket/in/action/common
AjaxEditableLabel.java  line
129 1211331767509   212759
The return type is incompatible with
Model.getObject()
book-wicket-in-action/src/java/wicket/in/action/chapter03/ 
section_3_2

Index.java  line
61  1211331769986   213564
The return type is incompatible with
Model.getObject()
book-wicket-in-action/src/java/wicket/in/action/chapter03/ 
section_3_3

Index.java  line
61  1211331769970   213527
The return type is incompatible with
Model.getObject()
book-wicket-in-action/src/java/wicket/in/action/chapter03/ 
section_3_3

ShoppingCartPanel.java  line
32  1211331769946   213506
The return type is incompatible with
Model.getObject()
book-wicket-in-action/src/java/wicket/in/action/chapter04/ 
section_4_2

Index.java  line
120 1211331769917   213443
The return type is incompatible with
Model.getObject()
book-wicket-in-action/src/java/wicket/in/action/chapter04/ 
section_4_3

Index.java  line
29  1211331769904   213425
The return type is incompatible with
Model.getObject()
book-wicket-in-action/src/java/wicket/in/action/chapter15/ 
section_15_3

Index.java  line
113 1211331767771   212812
The return type is incompatible with
Model.getObject()
book-wicket-in-action/src/java/wicket/in/action/chapter15/ 
section_15_3

Index.java  line
132 1211331767771   212815


Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED

(Class? extends Page?) casting troubles

2008-05-20 Thread Ryan McKinley

Hello-

I'm using 1.4 trunk and running into troubles compiling.

My base page extends WebPageT, then I have a bunch of pages that  
extend that.  Everywhere I need to pass in a class that extends Page,  
I get the error:


/Users/ryan/Documents/workspace/...MyClass.java:[32,97] inconvertible  
types

found   : java.lang.Classmy.package.SomePage
required: java.lang.Class? extends org.apache.wicket.Page?

any pointers?  I tried casting:
throw new RestartResponseAtInterceptPageException( (Class? extends  
Page?) MyPage.class );

and
new BookmarkablePageLink( path, (Class? extends Page?)  
MyPage.class );


but that squaks in the compiler also.

any ideas

thanks
ryan

links in inmethod grid?

2008-04-24 Thread Ryan McKinley
Hello-Should normal links work within the grid component? As is, they get gobbled up by a _javascript_ "return false"I asked this question a while back, but was able to avoid it with a _javascript_ link (document.location=xxx) I can't do that now.http://www.nabble.com/inmethod-grid-links--td15280161.htmlI'm attaching a patch to reproduce the error, the gist of it is:columns.add(new AbstractColumn( "link", new ResourceModel("id") ) {@Overridepublic Component newCell(WebMarkupContainer parent, String componentId, IModel rowModel) { return new SimpleLink( componentId, rowModel );}});where SimpleLink is a component that includes a link.thanks for any pointers.ryan

gridlinks.patch
Description: Binary data


Re: Planning Wicket Next Generation

2008-03-17 Thread Ryan McKinley

yes, generics!  It would make the model business so much more clear.

ryan


Enrique Rodriguez wrote:

On Sun, Mar 16, 2008 at 9:32 PM, Ned Collyer [EMAIL PROTECTED] wrote:

 FWIW +1 to java5 and 1.3.

 Generics == joy, especially with the model stuff wicket uses :)


Same here; would like to see generics.

Enrique

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-17 Thread Ryan McKinley

+1

ryan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: inmethod grid links?

2008-02-04 Thread Ryan McKinley

yes, latest from svn
mvn clean install

thanks
ryan


Matej Knopp wrote:

Hi,

that would be a bug, are you using latest svn version?

-Matej

On Feb 5, 2008 12:16 AM, Ryan McKinley [EMAIL PROTECTED] wrote:

I'm trying to add a href=... links withing the inmethod grid
component.  Clicking on the link does not do anything -- i think this is
becasue the row onclick event eats it up.

I was able to make things work by adding an AttributeModifier to the
link and calling javascript for document.location=URL

Is there a better way to have links in the grid?

Thanks again -- this is a really great component!

ryan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



inmethod grid links?

2008-02-04 Thread Ryan McKinley
I'm trying to add a href=... links withing the inmethod grid 
component.  Clicking on the link does not do anything -- i think this is 
becasue the row onclick event eats it up.


I was able to make things work by adding an AttributeModifier to the 
link and calling javascript for document.location=URL


Is there a better way to have links in the grid?

Thanks again -- this is a really great component!

ryan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



inMethod Grid component, id=main

2008-01-25 Thread Ryan McKinley

First off - this component is excellent!  thank you thank you!

I could just drop it in to some existing projects and it works no 
problem.  But on one project it looked all funky.  After inspecting what 
was happening, it looks like my layout used the id main, and the grid 
adds another main:

  div id=main class=imxt-container1

Perhaps it should use a less commonly used id?


thanks again
ryan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



linking to custom static content

2008-01-24 Thread Ryan McKinley

Hi

I have an application where each object can have some files associated 
with it that I need to pull from various sources.  I have:


 /mount/id//thumb.jpg
 /mount/id//meta.xml
 /mount/id//layer.lyr
 ...

I followed the 'staticpages' example and am implementing a 
UrlCodingStrategy that returns the content within:

 IRequestTarget decode(RequestParameters requestParameters);

This all works fine.  I'm linking to the content with the same method as 
the example:

 add(new StaticLink(hellostream, new Model(docs/hello.html)));

This works fine *unless* the current page is not in the root context. 
Is there a standard way to link to a custom resource regardless of the 
URL structure?


Thanks for any pointers!

ryan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



HybridUrlCodingStrategy with trailing slash...

2008-01-14 Thread Ryan McKinley

Hello-

I ran into a hickup with HybridUrlCodingStrategy and just want to run it 
by you all.


It looks like mounting a page with a trailing '/' causes things to get 
redirected to a page it cant find:

 mount( new HybridUrlCodingStrategy( /aaa/, Index.class) );
 mount( new HybridUrlCodingStrategy( aaa/, Index.class) );

These paths work fine for BookmarkablePageRequestTargetUrlCodingStrategy.

I don't know if its a bug or just needs an added note in the javadoc


Thanks
ryan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



debug InspectorPage?

2008-01-09 Thread Ryan McKinley
The InspectorPage works great in the examples, so I tried putting it in 
my app to see what is in my sessions.  Everything works except 
'RequestsPage' and I can't figure out why.  Actually, I don't understand 
why it works in the examples...


The error I get when I hit this page is:
{{{
WicketMessage: The component(s) below failed to render. A common problem 
is that you have added a component in code but forgot to reference it in 
the markup (thus the component will never be rendered).


1. [Component id = sessionInfo, page = 
org.apache.wicket.examples.debug.RequestsPage, path = 
5:sessionInfo.Label, isVisible = true, isVersioned = false]
2. [Component id = startDate, page = 
org.apache.wicket.examples.debug.RequestsPage, path = 5:startDate.Label, 
isVisible = true, isVersioned = false]
3. [Component id = lastRequestTime, page = 
org.apache.wicket.examples.debug.RequestsPage, path = 
5:lastRequestTime.Label, isVisible = true, isVersioned = false]

}}}

Indeed, the RequestsPage.html does not contain sessionInfo, 
startDate, lstRequestTime, etc.  It only has:


  Id: span wicket:id=id/spanbr/
  Session Size: span wicket:id=sizenone/spanbr/

What am i missing and why does this work within wicket-examples?

Do people tend to use the InspectorPage in real projects, or is that
just for debugging?  If so, do you just copy it into your own project?
Should it be in wicket-extensions rather then wicket-examples?


Another related question: is the InspectorPage the best way to audit 
what is getting serialized?  With normal use, I see something like:


 Session Size: 769 bytes
 Session Size (Including PageMaps): 140.1K
 PageMap null (Size = 139.8K) accesses (most recent first):

With that, can i assume that 500 simultaneous users would have
(500x140K=)~70MB memory usage?

thanks
ryan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: integrating extjs with wicket

2008-01-09 Thread Ryan McKinley

I have not used it, but I noticed that Pickwickuses ExtJs

http://wicketstuff.org/confluence/display/STUFFWIKI/Pickwick
http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/pickwick/src/main/resources/org/wicketstuff/pickwick/ext/2.0/

ryan


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...




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



wicket + solr

2008-01-09 Thread Ryan McKinley

Hello-

I've put together a little sample using wicket and solr.

http://example.solrstuff.org/solr-voyager-example/
 this uses solrj to hit:
http://example.solrstuff.org/pvs/

Its still got some problems and I'm still stumbling through getting the 
models/structure correct, so if anyone is interested it would be great 
to get some feedback and direction.


The source is all:
http://solrstuff.org/svn/voyager/trunk/
To build the solr maven artifact, you will need:
https://issues.apache.org/jira/browse/SOLR-19

The class I'm most concerned with getting correct is:
http://solrstuff.org/svn/voyager/trunk/voyager/src/main/java/solrstuff/voyager/SolrQueryDataProvider.java

All feedback is welcome!

ryan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



nesting repeaters? A child with id 'rows' already exists

2008-01-03 Thread Ryan McKinley

Hello-

I'm struggling with how to nest repeaters - a list within a list.  I 
have a data structure that returns a List of Lists.  My Panel.java code 
looks like:


add(new ListView(fields, new FacetFieldsModel( rsp ) )
{
  @Override
  public void populateItem(final ListItem listItem)
  {
final FacetField field = (FacetField)listItem.getModelObject();
listItem.add(new Label(name, new PropertyModel( field, name ) ));

add(new ListView(rows, field.getValues() ) {
  @Override
  protected void populateItem(ListItem item) {
Count cnt = (Count)item.getModelObject();
item.add( new Label( row, cnt.toString() ) );
  }
});
  }
});

the markup looks like:

wicket:panel

  div wicket:id=fields 
h3span wicket:id=name //h3

span wicket:id=rows
  span wicket:id=row /br/
/span

  /div

/wicket:panel

This gives the error:
java.lang.IllegalArgumentException: A child with id 'rows' already exists:
[MarkupContainer [Component id = fields, page = wicket.solr.QueryPage, 
path = 0:facets:fields.FacetsPanel$1, isVisible = true, isVersioned = 
false]]


I feel like I'm missing something basic.  Thanks for any pointers!

ryan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: nesting repeaters? A child with id 'rows' already exists

2008-01-03 Thread Ryan McKinley

dooh!  Thank you!


Frank Bille wrote:

add(new ListView(rows, field.getValues() ) {

=

listItem.add(new ListView(rows, field.getValues() ) {

On Jan 3, 2008 7:44 PM, Ryan McKinley [EMAIL PROTECTED] wrote:


Hello-

I'm struggling with how to nest repeaters - a list within a list.  I
have a data structure that returns a List of Lists.  My Panel.java code
looks like:

add(new ListView(fields, new FacetFieldsModel( rsp ) )
{
  @Override
  public void populateItem(final ListItem listItem)
  {
final FacetField field = (FacetField)listItem.getModelObject();
listItem.add(new Label(name, new PropertyModel( field, name ) ));

add(new ListView(rows, field.getValues() ) {
  @Override
  protected void populateItem(ListItem item) {
Count cnt = (Count)item.getModelObject();
item.add( new Label( row, cnt.toString() ) );
  }
});
  }
});

the markup looks like:

wicket:panel

  div wicket:id=fields 
h3span wicket:id=name //h3

span wicket:id=rows
  span wicket:id=row /br/
/span

  /div

/wicket:panel

This gives the error:
java.lang.IllegalArgumentException: A child with id 'rows' already exists:
[MarkupContainer [Component id = fields, page = wicket.solr.QueryPage,
path = 0:facets:fields.FacetsPanel$1, isVisible = true, isVersioned =
false]]

I feel like I'm missing something basic.  Thanks for any pointers!

ryan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



maven repository for wicketstuff

2007-12-02 Thread Ryan McKinley

Hello-

I am stumbling through learning wicket and am hitting some things I 
don't grock about maven.


I want to run the gmap2 example.  When I check it out and then run:
$ mvn jetty:run (or mvn install)

I get an error that says Missing: 
org.wicketstuff:wicket-contrib-gmap2:jar:1.3.0-SNAPSHOT


How do I fix that?

Also, I want to try the wicketstuff-jmx-panel component.  How do I add 
that to the quickstart app?  I tried adding:



  dependency
groupIdorg.wicketstuff/groupId
artifactIdwicketstuff-jmx-panel/artifactId
version${wicket.version}/version
  /dependency

and

  repository
repository
  idwicket-stuff-repository/id
  nameWicket-Stuff  Repository/name
  urlhttp://www.wicketstuff.org/maven/repository//url
/repository
  /repositories

to pom.xml, but that does not seem to work.  Do I have the repository wrong?

thanks
ryan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



solr wicket component(s)?

2007-11-06 Thread Ryan McKinley

Hello-

I'm new to wicket and trying to build a general purpose wicket solr 
(http://lucene.apache.org/solr/)


Before getting too deep into it, I figured I'd ask advice on what 
pattern to build from.


In solr, I build a query and get a response with a few parts.  The parts 
correspond to various components on the page: results, facets, debug 
info, etc.


For example, with the page: http://tinyurl.com/2tws7n (built with stripes)

There is a single query, that is transformed into the title with [x], it 
lists the results, and adds facets on the right.  If you are an admin, 
it gives a bunch of debug info too.


My basic question is what example should I start with to build a robust 
component?  Ideally, it would be something that allowed multiple queries 
on a single page.


Should I try to implement the repeater model?  with IDataProvider etc?

thanks for any pointers

ryan






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]