Re: inmethod custom PagingToolbar with dropdownchoice for setting rows not working correctly

2010-06-24 Thread vov

Try to use:

yourDDC.add(new AjaxFormComponentUpdatingBehavior("onchange")
{
  @Override
  protected void onUpdate(AjaxRequestTarget target)
  {
  target.addComponent(yourGridComponent); //like MyGrid.this
  }
});
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-custom-PagingToolbar-with-dropdownchoice-for-setting-rows-not-working-correctly-tp2266659p2268034.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: wicketstuff-push causing WicketRuntimeException component not found on Page

2010-06-24 Thread david_

Yes indeed.
Is it possible that wicket is updating for example 2 Component's of 2
different users with the same Component identifiers?
Maybe that's why Wicket is unable to process the action for a link one of
the 2 Components.


2010/6/25 Rodolfo Hansen [via Apache Wicket] <
ml-node+2267816-1187617804-232...@n4.nabble.com
>

> You mean to say the error is sporadic?
>
> On Wed, 2010-06-23 at 20:16 +0200, David Meulemans wrote:
>
> > Hi
> >
> > I have a Listener object with a Map in it containing
> > org.apache.wicket.Component objects that need to be updated every time
> the
> > onChange(); method is called. For example caused by another user's
> actions.
> > This works perfectly with wicketstuff-push.
> >
> > The org.apache.wicket.Component objects that need to be updated, have
> > org.apache.wicket.ajax.markup.html.AjaxLink objects.
> > Sometimes if I click on the one of the links, I get a
> WicketRuntimeException
> > telling me that the Link is not found on the Page.
> >
> > Any suggestions?
>
>
>
>
> --
>  View message @
> http://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-causing-WicketRuntimeException-component-not-found-on-Page-tp2266008p2267816.html
> To start a new topic under Wicket - User, email
> ml-node+1842947-1066186228-232...@n4.nabble.com
> To unsubscribe from Wicket - User, click 
> here.
>
>
>

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-causing-WicketRuntimeException-component-not-found-on-Page-tp2266008p2268007.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: Announcing: visural-wicket 0.6 released - open source wicket components

2010-06-24 Thread Richard Nichols
Yep noted for 0.6.1 :)

On 24 June 2010 16:53, Ernesto Reinaldo Barreiro  wrote:

> Nice post Nino... Or simply add a check on the component constructor
> adding the ExCanvas JS reference if browser is IE. That way you don't
> need to modify the page or need to remember adding it.
>
> Ernesto
>
> On Thu, Jun 24, 2010 at 8:35 AM, nino martinez wael
>  wrote:
> > why not like this:
> >
> >
> http://ninomartinez.wordpress.com/2008/12/11/wicket-never-stops-to-impress-me/
> >
> > 2010/6/24 Ernesto Reinaldo Barreiro 
> >
> >> Richard.
> >>
> >> why not make the component that needs it sniff  the request and if
> >> browser is IE  then add ExCanvasHeaderContributor. Then users will not
> >> forget to follow your advice;-)
> >>
> >> Ernesto
> >>
> >> On Wed, Jun 23, 2010 at 11:24 PM, Richard Nichols 
> wrote:
> >> > Internet Explorer requires that you use the "ExCanvas" javascript
> add-in.
> >> > You can do this by:
> >> >
> >> >
> >> >class MyPage extends Page {
> >> >public MyPage() {
> >> >add(new
> >> > com.google.excanvas.ExCanvasHeaderContributor());
> >> >}
> >> >}
> >> >
> >> >
> >> > That's from the ToolTips page of the example app.
> >> >
> >> > Ironically, I didn't follow my own advice, and forgot to add it to the
> >> > example! :)
> >> >
> >> > I'll push an update to the example app today. Rest assured though the
> >> > tooltip does work in IE, assuming you add the explorer canvas
> extension.
> >> >
> >> > cheers,
> >> > Rich
> >> >
> >> > On 24 June 2010 01:44, Fernando Wermus 
> >> wrote:
> >> >
> >> >> Tooltip is not working on Internet Explorer 8 and windows xp
> >> >>
> >> >> On Wed, Jun 23, 2010 at 6:31 AM, James Carman <
> >> ja...@carmanconsulting.com
> >> >> >wrote:
> >> >>
> >> >> > Why not just get it published to the main Maven repository?  It's
> not
> >> >> > that difficult.
> >> >> >
> >> >> > On Wed, Jun 23, 2010 at 9:27 AM, Paul Szulc 
> >> >> wrote:
> >> >> > > If you would like to, I can elp you create maven repository on
> >> google
> >> >> > code
> >> >> > > for this project. Let me know.
> >> >> > >
> >> >> > > On Wed, Jun 23, 2010 at 1:05 PM, Richard Nichols  >
> >> >> wrote:
> >> >> > >
> >> >> > >> It's just hosted in SVN w/ .pom
> >> >> > >>
> >> >> > >> http://code.google.com/p/visural-wicket/wiki/MavenSupport
> >> >> > >>
> >> >> > >> It
> >> should
> >> >> > work
> >> >> > >> ok
> >> >> > >> though - let me know if you have issues.
> >> >> > >>
> >> >> > >> cheers,
> >> >> > >> Richard.
> >> >> > >>
> >> >> > >> On 23 June 2010 20:24, Maris Orbidans 
> >> >> wrote:
> >> >> > >>
> >> >> > >> >
> >> >> > >> > Looks great! I will give it a try.  Is it maven repo ?
> >> >> > >> >
> >> >> > >> >
> >> >> > >> > > -Original Message-
> >> >> > >> > > From: r...@richardnichols.net [mailto:r...@richardnichols.net]
> On
> >> >> > Behalf
> >> >> > >> > Of
> >> >> > >> > > Richard Nichols
> >> >> > >> > > Sent: 23 June 2010 01:31
> >> >> > >> > > To: users@wicket.apache.org
> >> >> > >> > > Subject: Announcing: visural-wicket 0.6 released - open
> source
> >> >> > wicket
> >> >> > >> > > components
> >> >> > >> > >
> >> >> > >> > > Hi all,
> >> >> > >> > >
> >> >> > >> > > I'm pleased to announce the next major version of
> >> visural-wicket -
> >> >> > 0.6
> >> >> > >> > >
> >> >> > >> > > This version includes a bunch of new components and
> behaviours.
> >> >> > >> > >
> >> >> > >> > > For the full run down, follow the link -
> >> >> > >> > >
> >> >> > >> > >
> >> >> >
> >> http://www.richardnichols.net/2010/06/visural-wicket-0-6-released-new-
> >> >> > >> > > components/
> >> >> > >> > >
> >> >> > >> > > visural-wicket is Apache 2.0 licensed open source.
> >> >> > >> > >
> >> >> > >> > > Let me know if you have any problems, suggestions or
> feedback.
> >> >> > >> > >
> >> >> > >> > > cheers,
> >> >> > >> > > Richard.
> >> >> > >> > >
> >> >> > >> > > --
> >> >> > >> > > Richard Nichols
> >> >> > >> > > http://www.richardnichols.net/ ::
> http://onmydoorstep.com.au/
> >> >> > >> > >
> >> >> > >> > >
> >> >> > >> > >
> >> >> >
> _
> >> >> > >> > > This e-mail has been scanned for viruses by MessageLabs.
> >> >> > >> >
> >> >> > >> >
> >> >> -
> >> >> > >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> >> > >> > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >> > >> >
> >> >> > >> >
> >> >> > >>
> >> >> > >>
> >> >> > >> --
> >> >> > >> Richard Nichols
> >> >> > >> http://www.richardnichols.net/ :: http://onmydoorstep.com.au/
> >> >> > >>
> >> >> > >
> >> >> > >
> >> >> > >
> >> >> > > --
> >> >> > > Best regards,
> >> >> > > Paul Szulc
> >> >> > >
> >> >> > > http://paulszulc.wordpress.com
> >> >> > >
> >> >> >
> >> >> >
> -

Re: Submitting a component value on a ajax call of a different component

2010-06-24 Thread Michael O'Cleirigh

Hello,

What you need to do is add a parameter to the url of the behaviour.  But 
the trick is that you don't attach a fixed string but rather an 
&otherFieldValue=' + 
document.getElementById(otherFieldComponentMarkupID).value which will 
use javascript to extract the current value of the referenced component 
when the ajax request is initiated.


Then inside the behaviour action you pull the request parameter value in 
and use it to update the model of the drop down box; then you can 
proceed normally.


Look at the AbstractDefaultAjaxBehaviour and this method:

protected CharSequence getCallbackScript(boolean onlyTargetActivePage)
{
return generateCallbackScript("wicketAjaxGet('" + 
getCallbackUrl(onlyTargetActivePage) +

"'");
}

What you will want is something like this:

protected CharSequence getCallbackScript(boolean onlyTargetActivePage)
{
return generateCallbackScript("wicketAjaxGet('" + 
getCallbackUrl(onlyTargetActivePage) + 
"&ddcValue='+$Wicket.$("+ddc.getMarkupId()+").value" +

");");
}

Then in fetch the value in the wicket side:
@Override
protected void onEvent(final AjaxRequestTarget target) {
Request request = RequestCycle.get().getRequest();

String ddcValue = request.getParameter ("ddcValue");

// convert the ddc value to into the proper model object

}

You also need to call ddc.setOutputMarkupID (true) since it will need to 
exist for javascript to find the element in the DOM.


Regards,

Mike


Hi,

  I am looking to submit the selected value from the dropdown to the server ,
on the onblur of the textfield component. Is there a way to do it, though I
have attached the AjaxFormComponentUpdatingBehavior to the textfield but not
to the dropdown box.

Appreciate your help in this regard.

Thanks for your time.
J.
   



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



Re: RE: Programmatically set CSS 'id' in an tag

2010-06-24 Thread Jeremy Thomerson
Right. The wicket id is set in the constructor.

Jeremy Thomerson
-- sent from my smartphone - please excuse formatting and spelling errors

On Jun 24, 2010 8:58 PM, "Chris Colman" 
wrote:

Cool! I'll try those.

Thanks.

So setMarkupId sets the 'id' (as in reference to a CSS element) not the
'wicket:id' right?

Chris


>-Original Message-
>From: Bilgin Ibryam [mailto:bibr...@gmail.com]
>Sent: Friday, 25 June ...


RE: Programmatically set CSS 'id' in an tag

2010-06-24 Thread Chris Colman
Cool! I'll try those.

Thanks.

So setMarkupId sets the 'id' (as in reference to a CSS element) not the
'wicket:id' right?

Chris

>-Original Message-
>From: Bilgin Ibryam [mailto:bibr...@gmail.com]
>Sent: Friday, 25 June 2010 9:30 AM
>To: users@wicket.apache.org
>Subject: Re: Programmatically set CSS 'id' in an  tag
>
>If the link elements are wicket component then you could do:
>
>  add(new SimpleAttributeModifier("id", "menu1"));
>or
>  setMarkupId("menu1");
>
>
>Bilgin Ibryam
>
>
>
>On Thu, Jun 24, 2010 at 10:43 PM, Chris Colman
>> wrote:
>
>> I am using a CSS stylesheet that requires each  tag link in a menu
to
>> specify a differently numbered id value:
>>
>> Eg.,
>>
>> The output needs to be something like this where each  tag has a
>> sequentially numbered id: menu1, menu2, menu3 etc.,
>>
>> 
>>  
>>Home
>>Info
>>About
>>  
>> 
>>
>>
>> Is it possible to get wicket to inject an id tag into the links
markup?
>> If so, how ?
>>
>>
>>
>> -
>> 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: Programmatically set CSS 'id' in an tag

2010-06-24 Thread Bilgin Ibryam
If the link elements are wicket component then you could do:

  add(new SimpleAttributeModifier("id", "menu1"));
or
  setMarkupId("menu1");


Bilgin Ibryam



On Thu, Jun 24, 2010 at 10:43 PM, Chris Colman  wrote:

> I am using a CSS stylesheet that requires each  tag link in a menu to
> specify a differently numbered id value:
>
> Eg.,
>
> The output needs to be something like this where each  tag has a
> sequentially numbered id: menu1, menu2, menu3 etc.,
>
> 
>  
>Home
>Info
>About
>  
> 
>
>
> Is it possible to get wicket to inject an id tag into the links markup?
> If so, how ?
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: wicketstuff-push causing WicketRuntimeException component not found on Page

2010-06-24 Thread Rodolfo Hansen
You mean to say the error is sporadic?

On Wed, 2010-06-23 at 20:16 +0200, David Meulemans wrote:

> Hi
> 
> I have a Listener object with a Map in it containing
> org.apache.wicket.Component objects that need to be updated every time the
> onChange(); method is called. For example caused by another user's actions.
> This works perfectly with wicketstuff-push.
> 
> The org.apache.wicket.Component objects that need to be updated, have
> org.apache.wicket.ajax.markup.html.AjaxLink objects.
> Sometimes if I click on the one of the links, I get a WicketRuntimeException
> telling me that the Link is not found on the Page.
> 
> Any suggestions?




Re: Programmatically set CSS 'id' in an tag

2010-06-24 Thread Jeremy Thomerson
If your links are Wicket components, call setMarkupID on them.

Jeremy Thomerson
-- sent from my smartphone - please excuse formatting and spelling errors

On Jun 24, 2010 5:43 PM, "Chris Colman" 
wrote:

I am using a CSS stylesheet that requires each  tag link in a menu to
specify a differently numbered id value:

Eg.,

The output needs to be something like this where each  tag has a
sequentially numbered id: menu1, menu2, menu3 etc.,


 
   Home
   Info
   About
 



Is it possible to get wicket to inject an id tag into the links markup?
If so, how ?



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


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

2010-06-24 Thread Ryan Crumley
Stefan,

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

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

Cheers,

Ryan

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

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

 All,

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

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

 public abstract class BasePage extends WebPage { ... }

 public class HomePage extends BasePage { ... }

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

 Thanks in advance for any guidance.

 Ryan

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


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


Programmatically set CSS 'id' in an tag

2010-06-24 Thread Chris Colman
I am using a CSS stylesheet that requires each  tag link in a menu to
specify a differently numbered id value:

Eg.,

The output needs to be something like this where each  tag has a
sequentially numbered id: menu1, menu2, menu3 etc.,


  
Home
Info
About
  



Is it possible to get wicket to inject an id tag into the links markup?
If so, how ?



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



[announce]JavaEE Inject updates

2010-06-24 Thread Major Péter
Hi all,

Some info about the project:
JavaEE Inject basically allows you to use @EJB, @Resource and
@PersistenceUnit annotations in your Wicket applications, without the
need of doing lookups and other nasty stuff. :)

The official announcement of the new version can be found at:
https://kir-dev.sch.bme.hu/2010/06/javaee-inject-updates/

Best Regards,
Peter Major

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



tomcat restart error

2010-06-24 Thread Douglas Ferguson
Anybody seen this before?


SEVERE: Error filterStart
Jun 24, 2010 3:24:06 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Jun 24, 2010 3:24:06 PM org.apache.catalina.loader.WebappClassLoader 
clearReferencesThreads
SEVERE: A web application appears to have started a thread named 
[PageSavingThread-wicket.PRManager] but has failed to stop it. This is very 
likely to create a memory leak.

Douglas Ferguson

mobile: 512.293.7279
office/fax: 512.462.0408
skype: stillrecording
aim:   DaAmericanRuse

-

http://www.linkedin.com/in/douglasferguson
http://www.myspace.com/douglasferguson
http://www.douglasferguson.us/
http://www.distilleryrecords.com/
http://www.stillrecording.com/

Join my mailing list: distilleryrecords-subscr...@yahoogroups.com

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



CryptedUrlWebRequestCodingStrategy with JMeter

2010-06-24 Thread Gurpreet.Singh
Hi All,

I am trying to do use JMeter with Wicket. Our application use 
CryptedUrlWebRequestCodingStrategy.

I looked on Wiki page for JMeter and tried to use regular expression for form 
id's. But with CryptedUrlWebRequestCodingStrategy  it's not working .

Any one has idea how to get  formId's  for JMeter to submit.

My JMeter Test Plan is kind of typical web application flow:

Home Page - > Login Page - >  Welcome Page .. some more tests involved Ajax 
components



Thanks
Preet




Who wants to help building 2 special ListView components?

2010-06-24 Thread magicjean

For a webapplication that I'm currently working on, I need 2 special
components which can not be found in the standard Wicket library. Maybe
there is somebody who wants to help me developing these components (doesn't
have to do it for free, as long as it's reasonable). The 2 components I
need:

1) A PropertyListView, with an extra "empty" line. If the user put some data
in this empty row, automatically a new row is added to the list.

2) A PropertyListView. Not all the fields are show, but only the main ones
(Example: Firstname, last name). If the user clicks on a button next to the
row, the PropertyListView gets replaced by another WebMarkupContainer (or
panel) which shows all the data for that specific record. For example: first
name, last name, address, city, etc.). Below the PropertyListView there are
some buttons to switch between the rowview and the single record view,
delete a record, go to next record or previous record (only in single view),
etc.

Many times I've tried to build them myself, but everytime got stuck (like
data is not saved or synchronised). These components are put on a form and I
use Databinder to control the data-model.

If you're interested, may you could sent me an email to jsb...@hotmail.com

Jan Bijl
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Who-wants-to-help-building-2-special-ListView-components-tp2267383p2267383.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



fast user input speed

2010-06-24 Thread Joerib
Hello,
 
We are
developping an application using Wicket 1.4. The application is a rewrite of an
old Delphi program.  The users have a special requirement that all input
data must be done via the right hand keypad.  Input data is mostly numeric
data and field submission is done with the right keypad “ENTER” key or the
right keypad “+” sign.
 
We solved
this by capturing the “ENTER” and “+” sign key code on the key down event and
triggered an Ajax request.  The reasons why were doing this via Ajax
events and not plain JavaScript is because the next focus field is dependent on
the entered data.  This cannot be determent in advance.  Between
field submissions there is also business logic validation happening.
 
This was
working perfectly until the users were getting to know the application better
and their input speed was increasing.  After a while the application
couldn’t follow their input speed and the users were not happy with the
result.  Using the Delphi program they didn’t have this “input lag”.
 
I would
like to hear some ideas on how you guys made the user experience for a web
application as close to a fat client application?  The biggest complaint
they have is when they type the “enter” key a few times the application only
responds to the first event.  
 
Regards,
Joeri


  

Re: About the Mail on this page mainly to Igor

2010-06-24 Thread Nishant Neeraj
:)

On Thu, Jun 24, 2010 at 6:14 PM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> if you want to go incognito just create an email address for that, like
> many
> of the other users on this list have done.
>
> -Nino
>
> 2010/6/24 midikem 
>
> >
> > Hi can u please put the mail invisible. When you search on google on your
> > mail you get all the posts from this forum, that you have posted, and i
> > dont
> > want my mail to be vissible to other people, due to spam and other
> stuffs.
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/About-the-Mail-on-this-page-mainly-to-Igor-tp2266590p2266590.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
> >
> >
>


one session for standAloneApp or one session for FacebookApp

2010-06-24 Thread Fernando Wermus
Hi all,
Users can login into my site in stand alone mode or with facebook
connect. Thus, I would like to have two polimorphic session according to how
the user decides to login.
Could I switch the session in wicket when this happen?

I was looking at Session.replaceSession()


thanks in advance


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Session.replaceSession() behavior

2010-06-24 Thread Doug Leeper
I was under the impression that when I call Session.replaceSession() a new 
session would be created.

I am seeing a new HttpServletSession being created but not my wicket 
application session.  I have placed a System.out.println( "new AppSession()..." 
) in the constructor and I am not seeing that.

Can anyone confirm this behavior as well?  Is this a bug?  Is there a work 
around?

I am using Wicket 1.4.9

BTW...my use case is someone goes to the LoginPage and logs in, the previous 
session will be cleared.

Multi-window support is also on (however...changing this doesn't affect the 
outcome)

Thanks
- Doug

Re: inmethod custom PagingToolbar with dropdownchoice for setting rows not working correctly

2010-06-24 Thread nino martinez wael
I've had some strange things to, as the "delay" in choice you mentioned.
However in my case I had two grids(master/detail) on the same page, my
workaround was to create a new instance of the failing grid.. It had
something todo with a problem with datasources but I dont remember the
details now.

2010/6/24 Sam Zilverberg 

> Hi,
> First I'd like to say that inmethod grid is great, I've been using inmethod
> grid for a while and have been very satisfied with it!
> Major kudos to the creator/s!!
>
> The problem:
> I have a simple drop down choice to change the rowsPerPage:
>
> DropDownChoice ddc = new DropDownChoice("showPerPage",
> new
> PropertyModel(
>MyPagingToolbar.this, "ROWS_NUM"), Arrays.asList(20, 50,
> 100)) {
>private static final long serialVersionUID =
> -8768375316550684005L;
>
>@Override
>protected boolean wantOnSelectionChangedNotifications() {
>return true;
>}
>
>@Override
>protected void onSelectionChanged(Integer newSelection) {
>getDataGrid().setRowsPerPage(newSelection);
>}
>
>};
> add(ddc);
>
> This DDC works fine when it is located outside of the grid, just above it
> markup wise.
> I wanted to put this DDC  inside the paging toolbar so it will look better.
> I've created a MyPagingToolbar with the same code/markup as the
> PagingToolbar and added this component
> to the constructor and markup.
>
> The DDC doesn't work as expected this way, it is always one step behind of
> the grid.
> If I choose 50 rows per page, the grid reloads and only then the DDC model
> is changed to 50.
> The next time I choose 20 again, the grid loads 50 per page (the last ddc
> model) and only then
> changed the ddc model to 20...
>
> Anyone has any idea why this would happen?
>
> The only difference i find so far between the 2 methods - outside the
> grid/inside the toolbar - is that
> when the ddc is inside the toolbar it is also inside a form - a filter form
> i use along with the grid because i've
> created a filter toolbar
>
> -Sam.
>


Re: Hierarchy mismatch with forms and hideable sections.

2010-06-24 Thread nino martinez wael
add a markupcontainer to match  hideableSectionDisabledInitial
>
> ly



2010/6/24 Brown, Berlin [GCG-PFS] 

> I am getting a hierarchy error message and the error makes sense, but
> how do you construct a form that also has hideable sections:
>
> This is what I had originally, a form and sub components.  This works
> fine:
>
> Java:
>
> form = new Form();
> panel.add(form);
>
> form.add(new TextField("t1"))
> form.add(new TextField("t2"))
>
> Html:
>
> 
>  
>  
> 
>
> The above pseudo code works fine.  Now I want to change to the following
> (html):
>
> Html:
>
> 
>  
>  
>
>  
> 
>
> ...
>
> What would I change in the java code so that the code is disaled
> initially, also such that the "t2" text field is part of the form
> hierarchy (or at least I need to submit that with the form)?
>
> Berlin Brown
>
>


Hierarchy mismatch with forms and hideable sections.

2010-06-24 Thread Brown, Berlin [GCG-PFS]
I am getting a hierarchy error message and the error makes sense, but
how do you construct a form that also has hideable sections:
 
This is what I had originally, a form and sub components.  This works
fine:
 
Java:
 
form = new Form();
panel.add(form);
 
form.add(new TextField("t1"))
form.add(new TextField("t2"))
 
Html:
 

  
  

 
The above pseudo code works fine.  Now I want to change to the following
(html):
 
Html:
 

  
  

  

 
...
 
What would I change in the java code so that the code is disaled
initially, also such that the "t2" text field is part of the form
hierarchy (or at least I need to submit that with the form)?  
 
Berlin Brown
 


Re: About the Mail on this page mainly to Igor

2010-06-24 Thread nino martinez wael
if you want to go incognito just create an email address for that, like many
of the other users on this list have done.

-Nino

2010/6/24 midikem 

>
> Hi can u please put the mail invisible. When you search on google on your
> mail you get all the posts from this forum, that you have posted, and i
> dont
> want my mail to be vissible to other people, due to spam and other stuffs.
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/About-the-Mail-on-this-page-mainly-to-Igor-tp2266590p2266590.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: wicketstuff-merged-resources 3.1 parent class scanning?

2010-06-24 Thread Stefan Fussenegger

Hi Ryan,

I'm the maintainer of wicketstuff-merged-resources. Sorry, I don't watch 
the mailing list as closely as I probably should.


I've just reverted your changes as the project wasn't able to build. The 
required org.wicketstuff:annotations:1.4.7-SNAPSHOT isn't available from 
a public repository - at least none I know of. Additionally, there are 
some other problems:


- I'm not happy with a change in dependencies. Could you explain why you 
went for org.wicketstuff:annotations rather than 
org.wicketstuff:wicketstuff-annotations? Is this the official replacement?


- Your implementation of ResourceMount.enableAnnotations(...) is broken. 
It won't work as soon as you need a second ContributionScanner for a 
different package.


- Try to keep binary compatibility with previous versions. Don't add new 
parameters to methods. Try to keep the old one, add a new one with an 
additional parameter and call it from the old one with a default that 
maintains the old behavior.


Next time, please use JIRA at http://wicketstuff.org/jira/browse/WMR 
(when will it be back again? or will it be back at all?) to create a 
ticket (and submit a patch) in order to get my feedback earlier (I'm 
watching the feeds there and should be able to react pretty quickly).


Regarding your issue, wouldn't it be enough it @*Contribution would be 
@Inherited and superclasses of matching classes would be checked as well 
for potentially overridden annotations? Could you provide a test case 
for your issues so we can figure out if there isn't a less obtrusive way 
to fix it?


Cheers, Stefan


On 05/21/2010 04:35 PM, Ryan Crumley wrote:

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

Ryan

On Mon, May 17, 2010 at 11:49 PM, Jeremy Thomerson
  wrote:

I'm not a maintainer on those projects so I defer on applying the following
patches.  However, I think that it is a bug.  If it is a bug, it will also
require a change in the annotations project in WicketStuff.  I have created
a patch for each.  Could you test it and see if it works?  If so, I'll go
ahead and commit it (unless one of the maintainers objects here first).
Patch for annotations: http://pastebin.com/nxQuLfqf
Patch for merged-resources: http://pastebin.com/Cbpjtvqp
File attachments to the list will be stripped.

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



On Mon, May 17, 2010 at 9:43 PM, Ryan Crumley  wrote:


All,

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

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

public abstract class BasePage extends WebPage { ... }

public class HomePage extends BasePage { ... }

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

Thanks in advance for any guidance.

Ryan

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






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




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



inmethod custom PagingToolbar with dropdownchoice for setting rows not working correctly

2010-06-24 Thread Sam Zilverberg
Hi,
First I'd like to say that inmethod grid is great, I've been using inmethod
grid for a while and have been very satisfied with it!
Major kudos to the creator/s!!

The problem:
I have a simple drop down choice to change the rowsPerPage:

DropDownChoice ddc = new DropDownChoice("showPerPage", new
PropertyModel(
MyPagingToolbar.this, "ROWS_NUM"), Arrays.asList(20, 50,
100)) {
private static final long serialVersionUID =
-8768375316550684005L;

@Override
protected boolean wantOnSelectionChangedNotifications() {
return true;
}

@Override
protected void onSelectionChanged(Integer newSelection) {
getDataGrid().setRowsPerPage(newSelection);
}

};
add(ddc);

This DDC works fine when it is located outside of the grid, just above it
markup wise.
I wanted to put this DDC  inside the paging toolbar so it will look better.
I've created a MyPagingToolbar with the same code/markup as the
PagingToolbar and added this component
to the constructor and markup.

The DDC doesn't work as expected this way, it is always one step behind of
the grid.
If I choose 50 rows per page, the grid reloads and only then the DDC model
is changed to 50.
The next time I choose 20 again, the grid loads 50 per page (the last ddc
model) and only then
changed the ddc model to 20...

Anyone has any idea why this would happen?

The only difference i find so far between the 2 methods - outside the
grid/inside the toolbar - is that
when the ddc is inside the toolbar it is also inside a form - a filter form
i use along with the grid because i've
created a filter toolbar

-Sam.


Re: About the Mail on this page mainly to Igor

2010-06-24 Thread Martijn Dashorst
We can't: http://www.apache.org/foundation/public-archives.html

Martijn

On Thu, Jun 24, 2010 at 9:45 AM, midikem  wrote:
>
> Hi can u please put the mail invisible. When you search on google on your
> mail you get all the posts from this forum, that you have posted, and i dont
> want my mail to be vissible to other people, due to spam and other stuffs.
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/About-the-Mail-on-this-page-mainly-to-Igor-tp2266590p2266590.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
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8

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



About the Mail on this page mainly to Igor

2010-06-24 Thread midikem

Hi can u please put the mail invisible. When you search on google on your
mail you get all the posts from this forum, that you have posted, and i dont
want my mail to be vissible to other people, due to spam and other stuffs.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/About-the-Mail-on-this-page-mainly-to-Igor-tp2266590p2266590.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: Announcing: visural-wicket 0.6 released - open source wicket components

2010-06-24 Thread Ernesto Reinaldo Barreiro
OT: maybe in a few months the "ExCanvas hack" will be less needed;-)

http://blogs.msdn.com/b/ie/archive/2010/06/23/html5-native-third-ie9-platform-preview-available-for-developers.aspx


On Thu, Jun 24, 2010 at 8:53 AM, Ernesto Reinaldo Barreiro
 wrote:
> Nice post Nino... Or simply add a check on the component constructor
> adding the ExCanvas JS reference if browser is IE. That way you don't
> need to modify the page or need to remember adding it.
>
> Ernesto
>
> On Thu, Jun 24, 2010 at 8:35 AM, nino martinez wael
>  wrote:
>> why not like this:
>>
>> http://ninomartinez.wordpress.com/2008/12/11/wicket-never-stops-to-impress-me/
>>
>> 2010/6/24 Ernesto Reinaldo Barreiro 
>>
>>> Richard.
>>>
>>> why not make the component that needs it sniff  the request and if
>>> browser is IE  then add ExCanvasHeaderContributor. Then users will not
>>> forget to follow your advice;-)
>>>
>>> Ernesto
>>>
>>> On Wed, Jun 23, 2010 at 11:24 PM, Richard Nichols  wrote:
>>> > Internet Explorer requires that you use the "ExCanvas" javascript add-in.
>>> > You can do this by:
>>> >
>>> >
>>> >                    class MyPage extends Page {
>>> >                        public MyPage() {
>>> >                            add(new
>>> > com.google.excanvas.ExCanvasHeaderContributor());
>>> >                        }
>>> >                    }
>>> >
>>> >
>>> > That's from the ToolTips page of the example app.
>>> >
>>> > Ironically, I didn't follow my own advice, and forgot to add it to the
>>> > example! :)
>>> >
>>> > I'll push an update to the example app today. Rest assured though the
>>> > tooltip does work in IE, assuming you add the explorer canvas extension.
>>> >
>>> > cheers,
>>> > Rich
>>> >
>>> > On 24 June 2010 01:44, Fernando Wermus 
>>> wrote:
>>> >
>>> >> Tooltip is not working on Internet Explorer 8 and windows xp
>>> >>
>>> >> On Wed, Jun 23, 2010 at 6:31 AM, James Carman <
>>> ja...@carmanconsulting.com
>>> >> >wrote:
>>> >>
>>> >> > Why not just get it published to the main Maven repository?  It's not
>>> >> > that difficult.
>>> >> >
>>> >> > On Wed, Jun 23, 2010 at 9:27 AM, Paul Szulc 
>>> >> wrote:
>>> >> > > If you would like to, I can elp you create maven repository on
>>> google
>>> >> > code
>>> >> > > for this project. Let me know.
>>> >> > >
>>> >> > > On Wed, Jun 23, 2010 at 1:05 PM, Richard Nichols 
>>> >> wrote:
>>> >> > >
>>> >> > >> It's just hosted in SVN w/ .pom
>>> >> > >>
>>> >> > >> http://code.google.com/p/visural-wicket/wiki/MavenSupport
>>> >> > >>
>>> >> > >> It
>>> should
>>> >> > work
>>> >> > >> ok
>>> >> > >> though - let me know if you have issues.
>>> >> > >>
>>> >> > >> cheers,
>>> >> > >> Richard.
>>> >> > >>
>>> >> > >> On 23 June 2010 20:24, Maris Orbidans 
>>> >> wrote:
>>> >> > >>
>>> >> > >> >
>>> >> > >> > Looks great! I will give it a try.  Is it maven repo ?
>>> >> > >> >
>>> >> > >> >
>>> >> > >> > > -Original Message-
>>> >> > >> > > From: r...@richardnichols.net [mailto:r...@richardnichols.net] 
>>> >> > >> > > On
>>> >> > Behalf
>>> >> > >> > Of
>>> >> > >> > > Richard Nichols
>>> >> > >> > > Sent: 23 June 2010 01:31
>>> >> > >> > > To: users@wicket.apache.org
>>> >> > >> > > Subject: Announcing: visural-wicket 0.6 released - open source
>>> >> > wicket
>>> >> > >> > > components
>>> >> > >> > >
>>> >> > >> > > Hi all,
>>> >> > >> > >
>>> >> > >> > > I'm pleased to announce the next major version of
>>> visural-wicket -
>>> >> > 0.6
>>> >> > >> > >
>>> >> > >> > > This version includes a bunch of new components and behaviours.
>>> >> > >> > >
>>> >> > >> > > For the full run down, follow the link -
>>> >> > >> > >
>>> >> > >> > >
>>> >> >
>>> http://www.richardnichols.net/2010/06/visural-wicket-0-6-released-new-
>>> >> > >> > > components/
>>> >> > >> > >
>>> >> > >> > > visural-wicket is Apache 2.0 licensed open source.
>>> >> > >> > >
>>> >> > >> > > Let me know if you have any problems, suggestions or feedback.
>>> >> > >> > >
>>> >> > >> > > cheers,
>>> >> > >> > > Richard.
>>> >> > >> > >
>>> >> > >> > > --
>>> >> > >> > > Richard Nichols
>>> >> > >> > > http://www.richardnichols.net/ :: http://onmydoorstep.com.au/
>>> >> > >> > >
>>> >> > >> > >
>>> >> > >> > >
>>> >> > _
>>> >> > >> > > This e-mail has been scanned for viruses by MessageLabs.
>>> >> > >> >
>>> >> > >> >
>>> >> -
>>> >> > >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> >> > >> > For additional commands, e-mail: users-h...@wicket.apache.org
>>> >> > >> >
>>> >> > >> >
>>> >> > >>
>>> >> > >>
>>> >> > >> --
>>> >> > >> Richard Nichols
>>> >> > >> http://www.richardnichols.net/ :: http://onmydoorstep.com.au/
>>> >> > >>
>>> >> > >
>>> >> > >
>>> >> > >
>>> >> > > --
>>> >> > > Best regards,
>>> >> > > Paul Szulc
>>> >> > >
>>> >> > > http://paulszulc.wordpress.com
>>> >> > >
>>>