Re: AutoCompleteTextField: converter seems to be ignored

2010-08-20 Thread Wilhelmsen Tor Iver
 However, wicket never calls the getConverter() method and simply uses
 SomePOJO.toString() to retrieve the text for the choices. What am I
 doing wrong?

One possibility is that in all the nested classes in the typical Wicket source 
file you have added the method to the wrong class. Try adding @Override to 
indicate that you intend to override a superclass method, and see if the 
compiler or IDE complains.

- Tor Iver

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



AutoLinkResolver WARNINGS

2010-08-20 Thread Arjun Dhar

Hi,I have my markups in another folder and am mounting static pages via a
generic template (so I don't have to use a new class for every static page).
The Static pages are in a Common template, that uses a common menu to
navigate and uses wicket:link to get the correct link from Wicket.

Works great; except I see the following in the log, which concerns me. I'd
like to suppress the cause of the log:

WARN  - AutoLinkResolver   - Did not find corresponding java class:
com.mysite.site.pages.templates.static_page_name


Code:
==
 In my extension of WebApplication.init() I have:

mount(new MixedParamUrlCodingStrategy(
/static, GenericStaticPage.class, new 
String[]{pageId} ));


I also have getResourceSettings().setResourceStreamLocator with the
following:
(to direct the location to the markup files: standard stuff)

public ResourceStreamLocator getFileResourceStreamLocator(final
ServletContext sc) {
final IResourceStreamLocator defaultLocator =
super.getResourceSettings().getResourceStreamLocator();
return new ResourceStreamLocator(){
@Override
public IResourceStream locate(final Class? clazz, final String
path) { 
String derivedPath = /html +
path.replaceFirst(com/mysite/site/pages, ); //TODO: Cleanup!

try {
URL url = sc.getResource(derivedPath);
if (url != null) {
log.debug([getFileResourceStreamLocator.locate]
derivedPath =  + derivedPath);
return new UrlResourceStream(url);
}
} catch(MalformedURLException e) { }

log.debug([getFileResourceStreamLocator.locate] default
path =  + path);
return defaultLocator.locate(clazz, path); //Use default
locator
}
};
}

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AutoLinkResolver-WARNINGS-tp2332181p2332181.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



Stateless Login Form possible?

2010-08-20 Thread bht
Hi,

I had a stateless login form that did actually not expire

... until I added an image as submit button.

Sorry to raise this topic again, but AFAIK this has not been answered
yet:

ImageButton - always stateful ?

http://apache-wicket.1842946.n4.nabble.com/ImageButton-always-stateful-td1875620.html

I feel I am forced to use ImageButton because I need it as
IFormSubmittingComponent so I can distinguish between two different
submit methods.

It is really as simple as two image buttons on the form - one as
login, the other as forgot password

Many thanks for any ideas!

Bernard


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



Re: Stateless Login Form possible?

2010-08-20 Thread Johan Compagner
an image button can be stateless:

protected boolean getStatelessHint()
{
return getImageResource() == null  
localizedImageResource.isStateless();
}

but that must be true.

On Fri, Aug 20, 2010 at 13:19,  b...@actrix.gen.nz wrote:
 Hi,

 I had a stateless login form that did actually not expire

 ... until I added an image as submit button.

 Sorry to raise this topic again, but AFAIK this has not been answered
 yet:

 ImageButton - always stateful ?

 http://apache-wicket.1842946.n4.nabble.com/ImageButton-always-stateful-td1875620.html

 I feel I am forced to use ImageButton because I need it as
 IFormSubmittingComponent so I can distinguish between two different
 submit methods.

 It is really as simple as two image buttons on the form - one as
 login, the other as forgot password

 Many thanks for any ideas!

 Bernard


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



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



Re: Wicket Jobs San Francisco Bay Area

2010-08-20 Thread Josh Kamau
Is this vacancy open to non-US residents?

regards.
Josh

On Thu, Aug 19, 2010 at 8:26 PM, Joachim F. Kainz j...@jolira.com wrote:

 My apologies to most of you who will consider this Spam, but we are
 looking for developers with Wicket experience in the San Francisco Bay
 Area.

 We are a boutique consulting business (not voluntarily, but we lacked
 lucrative product ideas when we started the business:). We are
 headquartered in San Francisco. Among other things we are behind two
 very successful mobile  web-sites of Fortune 25 companies. Rating
 agencies such as Gomez seem to think we develop some of the fastest and
 most efficient mobile web-sites in the US.

 We are looking for a number of Wicket developers for a project in
 Brisbane, CA. Besides being funny  personable candidates should have
 the following qualities:

  * At least a year of hands-on experience with Wicket
  * At least 5 years of experience with J2SE  J2EE
  * Candidates must have experience with developing software at a
large enterprise; we are more tun than that, but we need you to
know how to behave.
  * We are using Guice for dependency injection; experience with
this type of IOC would be a plus
  * We are using jersey  cxf WebServices; you do not have to
religious about it (I prefer you are not), but you should now
how to use these technologies
  * Maven runs our builds
  * We are using agile and you will be required to create JUnit
tests and JavaDoc without nagging and complaining!


 Nothing beats having experience; having personality would also be a
 great plus.

 I do not represent a recruiting agency. The jobs are with my company
 directly. If you are interested, please send me a resume that reflect
 what you actually have done in your career. Don't put stuff on your
 resume you do not want me to ask you about in a phone screen. I have
 heard grown men cry before. It is not pretty.

 If you represent some commercial interest, please do not contact me. We
 are not working with recruiting agencies and I do not care how much
 cheaper resources are in China or India. I need capable people on-site
 right here in the US. Unless you are very, very, very good, we do not
 sponsor H1-Bs. Sorry, I am an immigrant myself, but we just do not like
 doing the H1-B paperwork.

 If, after reading all of this, you are still interested, please send
 your resume to j...@jolira.com and make sure you include some contact
 information.

 Best regards,

 Joachim



Re: Sort column header for PageableListView

2010-08-20 Thread deepa

Anton ,
This is what i could find.. In this example its used DataTable, but i want
this sorting to be performed on PageableListView component.
Is it possible to do so with PageableListView? 

Deepa
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Sort-column-header-for-PageableListView-tp2331423p2332537.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



Nested properties in DataTable Filters

2010-08-20 Thread zenith77

I'm having issues with nested properties in DataTable filters. For example;

columns.add( new TextFilteredPropertyColumnUser,String( new
ModelString(Active), subtype.prop, subtype.prop ) );
columns.add( new ChoiceFilteredPropertyColumnUser,Boolean( new
ModelString(Active), subtype.bool, subtype.bool, booleanChoices ) );

Referencing direct properties works, but for nested properties; displaying
works, sorting works, pagination works. But any changes to the filters
(either text or choice) causes errors similar to;

org.apache.wicket.WicketRuntimeException: Null object returned for
expression: subtype.bool for setting value: true on: {}
 at
org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:133)
 at
org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
 at
org.apache.wicket.Component.setDefaultModelObject(Component.java:3114)
 at
org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1168)
 at
org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:227)
 at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:514)
 at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:493)
 at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:493)
 at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:493)

Is this an unsupported function of filters? I don't understand how the
properties can be display or sorted, but fails when updating the filter
models.

Any help would be appreciated.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-properties-in-DataTable-Filters-tp2332638p2332638.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: Sort column header for PageableListView

2010-08-20 Thread Igor Vaynberg
See how HeadersToolbar does this for datatable, you can reuse all
those sortable components

-igor

On Fri, Aug 20, 2010 at 7:10 AM, deepa deeparanb...@gmail.com wrote:

 Anton ,
 This is what i could find.. In this example its used DataTable, but i want
 this sorting to be performed on PageableListView component.
 Is it possible to do so with PageableListView?

 Deepa
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Sort-column-header-for-PageableListView-tp2331423p2332537.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



Reacting to AutoCompleteTextField choice selection event

2010-08-20 Thread Alexandros Karypidis

 Hi,

I have an AutoCompleteTextField, for which I need to react to user 
selections from the choices list. For example, if a user enters Au and 
the choices Austria and Australia are shown, I need to be able to 
execute some code via a callback if the user scrolls down to one of the 
two choices and presses enter on one of them.


Is there some behavior I can add, or callback method I can override to 
react to user selection?


Thanks

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



Re: Stateless Login Form possible?

2010-08-20 Thread bht
Hi Johan,

Thanks.

How is it possible that this is true with any ImageButton constructor:

(getImageResource() == null  localizedImageResource.isStateless())


On Fri, 20 Aug 2010 13:25:11 +0200, you wrote:

an image button can be stateless:

   protected boolean getStatelessHint()
   {
   return getImageResource() == null  
 localizedImageResource.isStateless();
   }

but that must be true.

On Fri, Aug 20, 2010 at 13:19,  b...@actrix.gen.nz wrote:
 Hi,

 I had a stateless login form that did actually not expire

 ... until I added an image as submit button.

 Sorry to raise this topic again, but AFAIK this has not been answered
 yet:

 ImageButton - always stateful ?

 http://apache-wicket.1842946.n4.nabble.com/ImageButton-always-stateful-td1875620.html

 I feel I am forced to use ImageButton because I need it as
 IFormSubmittingComponent so I can distinguish between two different
 submit methods.

 It is really as simple as two image buttons on the form - one as
 login, the other as forgot password

 Many thanks for any ideas!

 Bernard


 -
 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: Reacting to AutoCompleteTextField choice selection event

2010-08-20 Thread Alexandros Karypidis



 Hi,

I have an AutoCompleteTextField, for which I need to react to user 
selections from the choices list. For example, if a user enters Au 
and the choices Austria and Australia are shown, I need to be able 
to execute some code via a callback if the user scrolls down to one of 
the two choices and presses enter on one of them.


Is there some behavior I can add, or callback method I can override to 
react to user selection?




Reading back, I need to clarify something: what I need is to be able to 
access the model object that was selected by the user, Not just the 
textual representation created by the IAutoCompleteRenderer, but the 
actual object instance that produced it.


To elaborate:

1) I have an AutoCompleteTextFieldSomeClass
2) It presents a list of choices using an IteratorSomeClass 
getChoices(String input)
3) An IAutoCompleteRendererSomeClass provides the textual 
representation for the choices
4) When the user selects a choice, I need to react knowing the 
SomeClass object instance that was chosen


Due to (4), a simple AjaxFormComponentUpdatingBehavior(onchange) does 
not suffice: I only know the text that was provided by (3) and not the 
actual object instance of type SomeClass that generated it.


How would I go about doing that?


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



Re: Reacting to AutoCompleteTextField choice selection event

2010-08-20 Thread Igor Vaynberg
you should be using objectautocompletetextfield in wicket-stuff

-igor

On Fri, Aug 20, 2010 at 1:01 PM, Alexandros Karypidis akary...@yahoo.gr wrote:

  Hi,

 I have an AutoCompleteTextField, for which I need to react to user
 selections from the choices list. For example, if a user enters Au and the
 choices Austria and Australia are shown, I need to be able to execute
 some code via a callback if the user scrolls down to one of the two choices
 and presses enter on one of them.

 Is there some behavior I can add, or callback method I can override to
 react to user selection?


 Reading back, I need to clarify something: what I need is to be able to
 access the model object that was selected by the user, Not just the textual
 representation created by the IAutoCompleteRenderer, but the actual object
 instance that produced it.

 To elaborate:

    1) I have an AutoCompleteTextFieldSomeClass
    2) It presents a list of choices using an IteratorSomeClass
 getChoices(String input)
    3) An IAutoCompleteRendererSomeClass provides the textual
 representation for the choices
    4) When the user selects a choice, I need to react knowing the SomeClass
 object instance that was chosen

 Due to (4), a simple AjaxFormComponentUpdatingBehavior(onchange) does not
 suffice: I only know the text that was provided by (3) and not the actual
 object instance of type SomeClass that generated it.

 How would I go about doing that?


 -
 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



AccordionPanel works on web page but not in another panel

2010-08-20 Thread cole

Wicket 1.4 and using the AccordionPanel/AccordionPanelItem src from the
wicket-contrib-accordion area. I can place this component on a web page via 
and it works fine. When I try to place this same component in another tab
panel it fails. The page actually hangs with no output. I used fiddler to
view the output and the markup is missing the leading  and some of the other
markup is also missing. I looked at a post where another user had wrapped
the AccordionPanel in a WebMarkupContainer but when I do that the browser
complains that I am missing all the markup for the panel. It almost appears
that the markup isn't being generated. 
Failed to render.
[MarkupContainer [Component id = accordionMenu]]
[MarkupContainer [Component id = 0]]
[MarkupContainer [Component id = item]]
[Component id = title]
[MarkupContainer [Component id = content]]
[MarkupContainer [Component id = 0]]
[MarkupContainer [Component id = item]]
[Component id = label]
[MarkupContainer [Component id = 1]]
[MarkupContainer [Component id = item]]
[Component id = title]
[MarkupContainer [Component id = content]]
[MarkupContainer [Component id = 0]]
[MarkupContainer [Component id = item]]

I tried adding container.setOutputMarkupId(true); but this doesn't have any
effect.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AccordionPanel-works-on-web-page-but-not-in-another-panel-tp2333034p2333034.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: AccordionPanel works on web page but not in another panel

2010-08-20 Thread nino martinez wael
if you make a quickstart I can take a look at it.

2010/8/20 cole cmilli...@comcast.net


 Wicket 1.4 and using the AccordionPanel/AccordionPanelItem src from the
 wicket-contrib-accordion area. I can place this component on a web page via
 and it works fine. When I try to place this same component in another tab
 panel it fails. The page actually hangs with no output. I used fiddler to
 view the output and the markup is missing the leading  and some of the
 other
 markup is also missing. I looked at a post where another user had wrapped
 the AccordionPanel in a WebMarkupContainer but when I do that the browser
 complains that I am missing all the markup for the panel. It almost appears
 that the markup isn't being generated.
 Failed to render.
 [MarkupContainer [Component id = accordionMenu]]
 [MarkupContainer [Component id = 0]]
 [MarkupContainer [Component id = item]]
 [Component id = title]
 [MarkupContainer [Component id = content]]
 [MarkupContainer [Component id = 0]]
 [MarkupContainer [Component id = item]]
 [Component id = label]
 [MarkupContainer [Component id = 1]]
 [MarkupContainer [Component id = item]]
 [Component id = title]
 [MarkupContainer [Component id = content]]
 [MarkupContainer [Component id = 0]]
 [MarkupContainer [Component id = item]]

 I tried adding container.setOutputMarkupId(true); but this doesn't have any
 effect.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/AccordionPanel-works-on-web-page-but-not-in-another-panel-tp2333034p2333034.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