integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread mahone9

Hi @all
I´m new to spring and wicket. I´d like to know how is it possible to inject
wicket beans in a smart way???

My preconditions are: using jdk 1.4


for example: my applicationContext.xml file looks like.



 

  
 

  
 

class LoginPanel extends xxx.wicket.Panel


Setting through a setter method in LoginUseCase works fine.

But the setting through a setter method like for loginPanel dosnt work. The
useCase is always null !!!

setUseCase(LoginUseCase useCase) {
this.useCase =  useCase;
}

I´ve read that wicket is an unmanaged framework and it can´t work in this
way.
It´s recommend to use the annotions command @springbean: xxx etc...
But I´m looking for another way??? Is there one???

Can somebody provide an example, how to solve this???

Any help would kindly appreciate

Cheers Phil




-- 
View this message in context: 
http://www.nabble.com/integration-Spring-Wicket-Hibernate-problem-with-injection-bean-tp19462602p19462602.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]



Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread mahone9

Thanks for ur quick response.
I already read this article. But I don´t like this approach calling this
creation Proxy stuff when I need it for
from a Wicket-Bean.

private ContactDao dao = LazyInitProxyFactory.createProxy(ContractDao.class,
  new IProxyTargetLocator() {
 public Object locateProxyTarget() {
return
((MyApplication)Application.get()).getSpringContext().getBean("contactDao");
 }
  }
   }

I´m knew to it and I´m struggeling for the right solution.
Is there no possibility to tell spring or wicket to do that in the
background.

I´m just don´t want to care about it... is it now a dao bean or simple bean
or this special kind of wicket bean which I have to instantiate in another
way.

What I want is simple to set this stuff in the applicationContext file.

And that spring does the injection throug the "setter-method".

Thanks in advance for ur comments.
I apprciate it very much.

Cheers Phil

-- 
View this message in context: 
http://www.nabble.com/integration-Spring-Wicket-Hibernate-problem-with-injection-bean-tp19462602p19462930.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]



Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread mahone9

Hmmm, i thought about it too. But is it the best practise or an acceptable
hack ???

With ur mentioned approach I have always to be aware of wicket beans in
order to handle them in that special way.

Is it somehow possible to hook into any bean instantiation class (or
beanFactory etc.)... and tell spring if any wicket bean comes into then
handle it in a special way. 

Are there any other options ???

Thanks



-- 
View this message in context: 
http://www.nabble.com/AW%3A-integration-Spring-Wicket-Hibernate-problem-with-injection-bean-tp19462976p19463709.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]



Re: AW: Wicket and Mootools?

2008-09-19 Thread mahone9

I think I´m gonna use scriptaculous.
It´s much more easier to use it and I guess you can also compress the js
files as mootools does.
Scriptaculous provides almost that much effects as mootools.
JQuery is very poor on effects...



Nino.Martinez wrote:
> 
> 
> 
> Agent Mahone wrote:
>> O, thank u very much for ur comments.
>>
>> I have some questions to you:
>>
>> 1. What is the package mini under contribution package for?
>> What is the difference to package contribution/wicket-mootools???
>>   
> Im not sure how well managed wicket-mootools are...
>> 2. I also noticed that wicket offers you "scriptaculous" and "jquery".
>>Is there any comparsion between that frameworks?
>>   
> Go google:)
>> I´ve seen that scriptaculous is much more easier to understand and
>> difinitely to use.
>>
>> Thanks again for any comments
>>
>>
>>
>>
>>
>> - Ursprüngliche Mail 
>> Von: Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>
>> An: users@wicket.apache.org
>> Gesendet: Donnerstag, den 18. September 2008, 09:50:32 Uhr
>> Betreff: Re: Wicket and Mootools?
>>
>> You can also check out the new addition to wicket stuff minis, the 
>> mootips integration..
>>
>> Agent Mahone wrote:
>>   
>>> Hi all
>>>
>>> What is the best way to integrate mootools in wicket ?
>>>
>>> Does Mootools slow down the application? Does somebody had good
>>> expierence with it?
>>>
>>> Thanks in advane for any comments
>>>
>>>
>>> __
>>> Do You Yahoo!?
>>> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
>>> gegen Massenmails. 
>>> http://mail.yahoo.com 
>>>  
>>> 
>>
>>   
> 
> -- 
> -Wicket for love
> 
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AW%3A-Wicket-and-Mootools--tp19550432p19574467.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]



Re: AjaxRequestTarget is null in Internet Explorer 6

2008-09-22 Thread mahone9

I still have that problem and why is sb. responding to another thread...



mahone9 wrote:
> 
> Hi all 
> 
> I´m struggeling with the AjaxFallbackLink the target object is null, if it
> runs to the onClick() method. 
> In Firefox and Opera it works fine!!! 
> 
> class MyPanel extends Panel { 
> private AjaxFallbackLink link; 
> 
> public MyPanel() { 
>this.link = AjaxFallbackLink("link"); 
>add(link); 
> } 
> 
> public void onClick(AjaxRequestTarget target) { 
> if (target == null) { 
>   System.out.println("my target is: " + target);   //target is
> null 
> } else { 
>   System.out.println("my target is: " + target);   
>   target.appendJavascript("alert('is working');");   
> } 
> } 
> ... 
> } 
> 
> class MyPage extends WebPage { 
> private MyPanel myPanel; 
> 
> public MyPage() { 
>  this.myPanel = new MyPanel("myPanel"); 
>  add(myPanel); 
> } 
> 
> } 
> 
> If I add the AjaxFallbackLink to a WebPage instead to a Panel it works
> pretty fine. 
> 
> What I do is: 
> - call the page and click the link 
> - refresh the page through F5 
> - once again click the link 
> 
> __
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
> gegen Massenmails. 
> http://mail.yahoo.com
> 
I still have that problem and why is sb. responding to another thread... 
-- 
View this message in context: 
http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19605102.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]



Re: AjaxRequestTarget is null in Internet Explorer 6

2008-09-23 Thread mahone9

Oh my goodness, I missed to add the instantiation of the AjaxFallbackLink to
my example.

The error still exists. I post you the right code-snipet. Sorry for the
inconvience ...


public class MenuePanel extends Panel {

private ListView menueListView = null;

public MenuePanel(final String id) {
super(id);

this.menueListView = new ListView("menue", getMenueEntries()) {

// this method is called for each entry in the list 

public void populateItem(ListItem item) {
final MenueEntry menueEntry = 
(MenueEntry)item.getModelObject();

AjaxFallbackLink ajaxFallbackLink = new 
AjaxFallbackLink("menueEntry") {
public void onClick(AjaxRequestTarget 
target) {
// target is null when 
refreshing the page ...
//although JavaScript is on
in Internet Explorer 6.0
}
};

item.add(ajaxFallbackLink);
}
};

this.menueListView.setOutputMarkupId(true);
add(this.menueListView);
}

...
}


















pointbreak+wicketstuff wrote:
> 
> Override onClick for your link. Your code defines an onClick in the
> panel, it doesn't override your Link's onclick.
> 
> On Mon, 22 Sep 2008 03:16:47 -0700 (PDT), "mahone9" <[EMAIL PROTECTED]>
> said:
>> 
>> I still have that problem.... and why is sb. responding to another
>> thread...
>> 
>> 
>> 
>> mahone9 wrote:
>> > 
>> > Hi all 
>> > 
>> > I´m struggeling with the AjaxFallbackLink the target object is null, if
>> it
>> > runs to the onClick() method. 
>> > In Firefox and Opera it works fine!!! 
>> > 
>> > class MyPanel extends Panel { 
>> > private AjaxFallbackLink link; 
>> > 
>> > public MyPanel() { 
>> >this.link = AjaxFallbackLink("link"); 
>> >add(link); 
>> > } 
>> > 
>> > public void onClick(AjaxRequestTarget target) { 
>> > if (target == null) { 
>> >   System.out.println("my target is: " + target);   //target is
>> > null 
>> > } else { 
>> >   System.out.println("my target is: " + target);   
>> >   target.appendJavascript("alert('is working');");   
>> > } 
>> > } 
>> > ... 
>> > } 
>> > 
>> > class MyPage extends WebPage { 
>> > private MyPanel myPanel; 
>> > 
>> > public MyPage() { 
>> >  this.myPanel = new MyPanel("myPanel"); 
>> >  add(myPanel); 
>> > } 
>> > 
>> > } 
>> > 
>> > If I add the AjaxFallbackLink to a WebPage instead to a Panel it works
>> > pretty fine. 
>> > 
>> > What I do is: 
>> > - call the page and click the link 
>> > - refresh the page through F5 
>> > - once again click the link 
>> > 
>> > __
>> > Do You Yahoo!?
>> > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden
>> Schutz
>> > gegen Massenmails. 
>> > http://mail.yahoo.com
>> > 
>> I still have that problem and why is sb. responding to another
>> thread... 
>> -- 
>> View this message in context:
>> http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19605102.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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19623968.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]



Re: AjaxRequestTarget is null in Internet Explorer 6

2008-09-23 Thread mahone9

Hello Matej

I´m using 
wicket version 1.3.4.
Internet Explorer: Version: 6.0.2900.2180.xpsp_sp2_rtm.040803-2158

My AjaxRequestTarget is still "null" even if I use AjaxLink instead of
AjaxFallbackLink.





Matej Knopp-2 wrote:
> 
> What happens if you change AjaxFallbackLink to simple AjaxLink?
> 
> That would mean problems with xmlhttprequest in IE6. There are some
> users complaining with cetain IE6 revisions, but so far I have been
> unable to reproduce this problem. And unless I reproduce it there
> really is no way for me to fix it.
> 
> What wicket version are you testing this with?
> 
> -Matej
> 
> On Tue, Sep 23, 2008 at 11:10 AM, mahone9 <[EMAIL PROTECTED]> wrote:
>>
>> Oh my goodness, I missed to add the instantiation of the AjaxFallbackLink
>> to
>> my example.
>>
>> The error still exists. I post you the right code-snipet. Sorry for the
>> inconvience ...
>>
>>
>> public class MenuePanel extends Panel {
>>
>>private ListView menueListView = null;
>>
>>public MenuePanel(final String id) {
>>super(id);
>>
>>this.menueListView = new ListView("menue",
>> getMenueEntries()) {
>>
>>// this method is called for each entry in the
>> list
>>public void populateItem(ListItem item) {
>>final MenueEntry menueEntry =
>> (MenueEntry)item.getModelObject();
>>
>>AjaxFallbackLink ajaxFallbackLink = new
>> AjaxFallbackLink("menueEntry") {
>>public void
>> onClick(AjaxRequestTarget target) {
>>// target is null when
>> refreshing the page ...
>>//although JavaScript is
>> on
>> in Internet Explorer 6.0
>>}
>>};
>>
>>item.add(ajaxFallbackLink);
>>}
>>};
>>
>>this.menueListView.setOutputMarkupId(true);
>>    add(this.menueListView);
>>}
>>
>>...
>> }
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> pointbreak+wicketstuff wrote:
>>>
>>> Override onClick for your link. Your code defines an onClick in the
>>> panel, it doesn't override your Link's onclick.
>>>
>>> On Mon, 22 Sep 2008 03:16:47 -0700 (PDT), "mahone9" <[EMAIL PROTECTED]>
>>> said:
>>>>
>>>> I still have that problem and why is sb. responding to another
>>>> thread...
>>>>
>>>>
>>>>
>>>> mahone9 wrote:
>>>> >
>>>> > Hi all
>>>> >
>>>> > I´m struggeling with the AjaxFallbackLink the target object is null,
>>>> if
>>>> it
>>>> > runs to the onClick() method.
>>>> > In Firefox and Opera it works fine!!!
>>>> >
>>>> > class MyPanel extends Panel {
>>>> > private AjaxFallbackLink link;
>>>> >
>>>> > public MyPanel() {
>>>> >this.link = AjaxFallbackLink("link");
>>>> >add(link);
>>>> > }
>>>> >
>>>> > public void onClick(AjaxRequestTarget target) {
>>>> > if (target == null) {
>>>> >   System.out.println("my target is: " + target);   //target
>>>> is
>>>> > null
>>>> > } else {
>>>> >   System.out.println("my target is: " + target);
>>>> >   target.appendJavascript("alert('is working');");
>>>> > }
>>>> > }
>>>> > ...
>>>> > }
>>>> >
>>>> > class MyPage extends WebPage {
>>>> > private MyPanel myPanel;
>>>> >
>>>> > public MyPage() {
>>>> >  this.myPanel = new MyPanel("myPanel");
>>>> >  add(myPanel);
>>>> > }
>>>> >
>>>> > }
>>>> >
>>>> > If I add the AjaxFallbackLink to a WebP